/* Life Club Woman — Yönetim paneli */
:root {
  --p: #e8336f; --p-d: #c71f58; --d: #17161a; --d2: #222127; --bg: #f4f4f7; --card: #fff; --line: #e8e8ee;
  --text: #2b2b33; --muted: #85858f; --ok: #1a9b4b; --warn: #b7791f; --err: #c0002f; --r: 10px;
  --side: 260px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); }
a { color: var(--p); text-decoration: none; }
a:hover { color: var(--p-d); }
img { max-width: 100%; }
.ico { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
h1, h2 { margin: 0; }

/* Yerleşim */
.adm { display: flex; min-height: 100vh; }
.adm-side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--d); color: #c9c9d1; overflow-y: auto; z-index: 50; transition: transform .3s; }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.adm-brand img { height: 34px; width: auto; }
.adm-brand span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #8b8b95; margin-left: auto; }
.adm-nav { padding: 10px 10px 40px; }
.adm-nav-group { margin: 18px 12px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #6f6f79; }
.adm-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; color: #c9c9d1; border-radius: 8px; font-weight: 500; }
.adm-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.adm-nav a.active { background: var(--p); color: #fff; }
.adm-nav a .ico { opacity: .85; }
.adm-nav span { flex: 1; display: flex; align-items: center; justify-content: space-between; }
.badge { background: #fff; color: var(--p); font-size: 11px; padding: 1px 7px; border-radius: 20px; }
.adm-main { flex: 1; margin-left: var(--side); min-width: 0; display: flex; flex-direction: column; }
.adm-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: rgba(244,244,247,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.adm-title { font-size: 21px; font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-top-actions { display: flex; align-items: center; gap: 10px; }
.adm-burger { display: none; width: 40px; height: 40px; border: 0; border-radius: 8px; background: var(--d); color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.adm-user { position: relative; }
.adm-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--p); color: #fff; display: grid; place-items: center; font-weight: 700; cursor: pointer; }
.adm-user-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 40px rgba(0,0,0,.12); min-width: 220px; padding: 12px; display: none; }
.adm-user:hover .adm-user-menu, .adm-user:focus-within .adm-user-menu { display: block; }
.adm-user-menu strong { display: block; }
.adm-user-menu small { display: block; color: var(--muted); margin-bottom: 8px; }
.adm-user-menu a { display: block; padding: 7px 0; border-top: 1px solid var(--line); color: var(--text); }
.adm-content { padding: 26px 28px 60px; max-width: 1400px; width: 100%; }
.adm-backdrop { display: none; }

/* Kartlar */
.acard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 20px; }
.acard-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.acard-title a { font-size: 13px; font-weight: 500; }
.muted-card { background: #fff8e6; border-color: #f4e3b5; }
.muted-card p { margin: 0; }
.adesc { color: var(--muted); margin: -4px 0 18px; }
.agrid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.agrid-2 > .acard { margin-bottom: 20px; }

/* Butonlar */
.abtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; }
.abtn:hover { border-color: #cfcfd8; color: var(--text); background: #fafafa; }
.abtn-primary { background: var(--p); border-color: var(--p); color: #fff; }
.abtn-primary:hover { background: var(--p-d); border-color: var(--p-d); color: #fff; }
.abtn-danger { color: var(--err); border-color: #f3c6d1; }
.abtn-danger:hover { background: var(--err); color: #fff; border-color: var(--err); }
.abtn-ghost { background: transparent; }
.abtn-block { width: 100%; }
.abtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.abtns form { display: inline; }
.abar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.aicon { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); cursor: pointer; vertical-align: middle; }
.aicon:hover { border-color: var(--p); color: var(--p); }
.aicon.danger:hover { border-color: var(--err); color: var(--err); }
.w-act form { display: inline; }

/* Uyarılar */
.aalert { padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; font-weight: 500; }
.aalert-success { background: #e6f7ec; color: #11633a; }
.aalert-error { background: #fdecef; color: #9b0026; }
.aalert-warn { background: #fff6e0; color: #7a5410; }

/* İstatistikler */
.astats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.astat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; color: var(--text); transition: .2s; }
.astat:hover { border-color: var(--p); transform: translateY(-2px); color: var(--text); }
.astat-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 12px; background: #fdebf1; color: var(--p); display: grid; place-items: center; }
.astat-ico .ico { width: 24px; height: 24px; }
.astat strong { font-size: 26px; line-height: 1.1; }
.astat small { color: var(--muted); }
.amsg-list, .achecks, .apopular { list-style: none; margin: 0; padding: 0; }
.amsg-list li a { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.amsg-list li:last-child a { border-bottom: 0; }
.amsg-list span { grid-column: 1; color: var(--muted); font-size: 14px; }
.amsg-list small { grid-row: 1; grid-column: 2; color: var(--muted); }
.amsg-list li.unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--p); margin-right: 7px; vertical-align: middle; }
.achecks li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.achecks li .ico { margin-top: 2px; }
.achecks li.ok .ico { color: var(--ok); }
.achecks li.no .ico { color: var(--err); }
.achecks small { display: block; color: var(--muted); }
.aquick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aquick a { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-weight: 500; }
.aquick a:hover { border-color: var(--p); color: var(--p); }
.aquick .ico { color: var(--p); }
.apopular li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* Tablo */
.atable-wrap { padding: 0; overflow: hidden; }
.atable { width: 100%; border-collapse: collapse; }
.atable th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafafc; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.atable td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.atable tr:last-child td { border-bottom: 0; }
.atable tr:hover td { background: #fcfcfe; }
.atable tr.unread td { font-weight: 600; background: #fff7fa; }
.atable td .ico { color: var(--p); width: 22px; height: 22px; }
.w-sort { width: 80px; }
.w-act { width: 96px; text-align: right; white-space: nowrap; }
.asort { width: 64px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.athumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; display: block; background: #eee; }
.athumb.empty { display: block; }
.alink { font-weight: 600; color: var(--text); }
.alink:hover { color: var(--p); }
.apill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #eee; color: #666; border: 0; font-family: inherit; cursor: default; }
button.apill { cursor: pointer; }
.apill.ok { background: #e3f6ea; color: var(--ok); }
.apill.off { background: #f3f3f5; color: #9a9aa3; }
.apill.warn { background: #fff1d6; color: var(--warn); }
.atable-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px; border-top: 1px solid var(--line); background: #fafafc; }
.atable-foot small { margin-left: auto; color: var(--muted); }
.aempty { text-align: center; padding: 50px 20px; color: var(--muted); }
.apager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0; }
.apager a, .apager span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--text); padding: 0 8px; }
.apager a.active { background: var(--p); border-color: var(--p); color: #fff; }
.asearch { display: flex; flex-wrap: wrap; gap: 8px; }
.asearch input, .asearch select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; min-width: 200px; }
.abulk { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.abulk input[type=text] { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.atabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.atabs a { padding: 10px 16px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.atabs a.active { color: var(--p); border-color: var(--p); }

/* Form */
.aform-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.aform-side { position: sticky; top: 84px; }
.aform-narrow { max-width: 760px; }
.afields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.afield { grid-column: 1 / -1; min-width: 0; }
.afield.half { grid-column: auto; }
.afield > label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.req { color: var(--err); font-style: normal; }
.afield input[type=text], .afield input[type=email], .afield input[type=password], .afield input[type=number], .afield input[type=time], .afield input[type=datetime-local], .afield select, .afield textarea, .ahours input[type=time] {
  width: 100%; padding: 10px 12px; border: 1px solid #dcdce3; border-radius: 8px; font: inherit; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.afield input:focus, .afield select:focus, .afield textarea:focus { outline: 0; border-color: var(--p); box-shadow: 0 0 0 3px rgba(232,51,111,.12); }
.afield textarea { resize: vertical; }
.help { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.acount { float: right; font-size: 12px; color: var(--muted); font-weight: 500; }
.acount.over { color: var(--err); }
.aswitch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; user-select: none; }
.aswitch input { position: absolute; opacity: 0; pointer-events: none; }
.aswitch span { width: 42px; height: 24px; border-radius: 20px; background: #d5d5dd; position: relative; transition: .2s; flex: none; }
.aswitch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.aswitch input:checked + span { background: var(--p); }
.aswitch input:checked + span::after { left: 21px; }
.aswitch input:focus-visible + span { outline: 2px solid var(--p); outline-offset: 2px; }
.acheck { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.aimg { display: flex; gap: 14px; align-items: flex-start; }
.aimg-preview { width: 120px; height: 90px; border-radius: 8px; background: #f0f0f4 repeating-conic-gradient(#e7e7ed 0 25%, #f4f4f8 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; overflow: hidden; flex: none; border: 1px solid var(--line); }
.aimg-preview img { width: 100%; height: 100%; object-fit: contain; }
.aimg-preview span { font-size: 12px; color: var(--muted); }
.aimg-ctrl { flex: 1; display: grid; gap: 8px; min-width: 0; }
.aimg-ctrl input[type=file] { font-size: 13px; max-width: 100%; }
.aimg-path { font-size: 13px !important; padding: 8px 10px !important; color: var(--muted) !important; }
.aicon-pick { display: flex; gap: 10px; align-items: center; }
.aicon-pick select { flex: 1; }
.aicon-preview { width: 44px; height: 44px; border-radius: 8px; background: #fdebf1; color: var(--p); display: grid; place-items: center; flex: none; }
.aicon-preview .ico { width: 24px; height: 24px; }
.acolor { display: flex; gap: 8px; }
.acolor input[type=color] { width: 48px; height: 42px; padding: 2px; border: 1px solid #dcdce3; border-radius: 8px; background: #fff; cursor: pointer; }
.asticky-save { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); z-index: 5; }
.ahours td { padding: 10px 14px; }
.ahours input[type=time] { max-width: 160px; }

/* Editör */
.ql-toolbar.ql-snow { border-color: #dcdce3; border-radius: 8px 8px 0 0; background: #fafafc; }
.ql-container.ql-snow { border-color: #dcdce3; border-radius: 0 0 8px 8px; font: inherit; font-size: 15px; }
.ql-editor { min-height: 260px; line-height: 1.65; }
.ql-editor img { max-width: 100%; }

/* Mesaj detayı */
.amsg dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0 0 18px; }
.amsg dt { color: var(--muted); }
.amsg dd { margin: 0; font-weight: 600; }
.amsg-body { padding: 18px; background: #fafafc; border-radius: 8px; border: 1px solid var(--line); white-space: normal; }

/* Giriş */
.alogin-body { background: var(--d); }
.alogin { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.alogin-art { background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; padding: 50px; }
.alogin-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,22,26,.3), rgba(23,22,26,.9)); }
.alogin-art div { position: relative; color: #d8d8de; }
.alogin-art img { height: 48px; width: auto; }
.alogin-form { background: #fff; display: flex; flex-direction: column; justify-content: center; padding: 60px; max-width: 520px; width: 100%; margin: 0 auto; }
.alogin-form h1 { font-size: 28px; margin-bottom: 4px; }
.alogin-form .afield { margin: 14px 0; }
.alogin-form .abtn { margin-top: 10px; padding: 13px; font-size: 16px; }
.aback { display: block; text-align: center; margin-top: 20px; color: var(--muted); }
.alogin-body > .alogin { background: #fff; }

@media (max-width: 1100px) {
  .astats { grid-template-columns: repeat(2, 1fr); }
  .aform-grid { grid-template-columns: 1fr; }
  .aform-side { position: static; }
}
@media (max-width: 900px) {
  .adm-side { transform: translateX(-100%); box-shadow: 20px 0 50px rgba(0,0,0,.3); }
  .adm-side.is-open { transform: none; }
  .adm-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; }
  .adm-main { margin-left: 0; }
  .adm-burger { display: inline-flex; }
  .adm-top { padding: 10px 16px; }
  .adm-title { font-size: 17px; }
  .adm-top-actions .abtn span { display: none; }
  .adm-content { padding: 18px 14px 60px; }
  .agrid-2 { grid-template-columns: 1fr; }
  .afields { grid-template-columns: 1fr; }
  .afield.half { grid-column: 1 / -1; }
  .alogin { grid-template-columns: 1fr; }
  .alogin-art { display: none; }
  .alogin-form { padding: 40px 22px; }
  /* Tablo → kart görünümü */
  .atable thead { display: none; }
  .atable, .atable tbody, .atable tr, .atable td { display: block; width: 100%; }
  .atable tr { padding: 12px 14px; border-bottom: 1px solid var(--line); position: relative; }
  .atable td { padding: 4px 0; border: 0; display: flex; gap: 10px; align-items: center; }
  .atable td[data-label]::before { content: attr(data-label); min-width: 90px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .atable td.w-act { position: absolute; right: 12px; top: 12px; width: auto; }
  .asearch input, .asearch select { min-width: 0; flex: 1; }
  .aquick { grid-template-columns: 1fr; }
  .amsg dl { grid-template-columns: 1fr; }
  .amsg dd { margin-bottom: 8px; }
}
@media (max-width: 520px) {
  .astats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .astat { grid-template-columns: 1fr; padding: 14px; }
  .astat-ico { grid-row: auto; margin-bottom: 8px; width: 40px; height: 40px; }
  .aimg { flex-direction: column; }
  .abar .abtn-primary { width: 100%; }
}

/* Modüller */
.amods { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 20px; align-items: start; }
.amods-all { display: flex; gap: 4px; }
.amods-all .abtn { padding: 5px 10px; font-size: 12.5px; }
.amods-list { list-style: none; margin: 0; padding: 0; }
.amods-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.amods-list li:last-child { border-bottom: 0; }
.amods-link { font-size: 12.5px; color: var(--muted); }
@media (max-width: 520px) { .amods { grid-template-columns: 1fr; } .acard-title { flex-wrap: wrap; gap: 8px; } }
