:root {
  --bg: #f5f4f9; --panel: #ffffff; --panel-2: #faf9fd; --line: #e6e3ef; --line-2: #d6d2e3;
  --text: #1b1830; --muted: #6f6a85; --faint: #a39fb5;
  --accent: #6d5efc; --accent-2: #ff5e7e; --accent-soft: #efecff;
  --feed: #2f7df6; --reel: #c13df0; --story: #f08a1c;
  --ok: #17a673; --warn: #d98a00; --err: #e0354b; --err-soft: #fdecef; --ok-soft: #e6f7f0; --warn-soft: #fff5df;
  --shadow: 0 1px 2px rgba(27,24,48,.05), 0 8px 24px rgba(27,24,48,.06);
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121019; --panel: #1b1826; --panel-2: #201d2d; --line: #2c283b; --line-2: #3a3550;
    --text: #efedf7; --muted: #a29db8; --faint: #6f6a85;
    --accent: #8a7dff; --accent-soft: #2a2550;
    --err-soft: #3a1820; --ok-soft: #123026; --warn-soft: #36290c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 "Segoe UI", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
.muted { color: var(--muted); } .small { font-size: 12px; }
svg.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- düzen --- */
#app { height: 100%; }
.shell { display: grid; grid-template-columns: 220px 1fr; height: 100%; }
.side { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 12px; gap: 4px; min-height: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { font-size: 19px; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; border: 0; background: none; text-align: left; color: var(--muted); font-weight: 550; width: 100%; }
.nav:hover { background: var(--panel-2); color: var(--text); }
.nav.on { background: var(--accent-soft); color: var(--accent); }
.nav .badge { margin-left: auto; background: var(--err); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 6px; line-height: 17px; }
.side .spacer { flex: 1; }
.health { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 8px 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); } .dot.err { background: var(--err); box-shadow: 0 0 0 3px var(--err-soft); }
.me { border-top: 1px solid var(--line); padding: 12px 10px 0; display: flex; align-items: center; gap: 8px; }
.me .who { flex: 1; min-width: 0; } .me .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 14px 22px; flex-wrap: wrap; }
.top h1 { font-size: 20px; min-width: 150px; text-transform: capitalize; }
.top .grow { flex: 1; }
.content { flex: 1; min-height: 0; overflow: auto; padding: 0 22px 22px; }

/* --- düğmeler / form --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-2); background: var(--panel); border-radius: 9px; padding: 7px 13px; font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: var(--faint); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--err); } .btn.ghost { border-color: transparent; background: none; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.icon { padding: 7px; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 7px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--accent-soft); color: var(--accent); }
.seg button .sw { width: 9px; height: 9px; border-radius: 50%; }
label.f { display: block; font-weight: 600; font-size: 12.5px; color: var(--muted); margin: 14px 0 6px; }
.inp, textarea.inp, select.inp { width: 100%; border: 1px solid var(--line-2); background: var(--panel); border-radius: 9px; padding: 8px 11px; outline: none; }
.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.inp { resize: vertical; min-height: 110px; }
.row { display: flex; gap: 10px; align-items: center; } .row > .grow { flex: 1; min-width: 0; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 550; }
.help { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* --- takvim --- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 100%; grid-template-rows: auto; grid-auto-rows: minmax(118px, 1fr); }
.cal .dow { padding: 8px 10px; font-size: 12px; font-weight: 650; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--panel-2); }
.day { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; min-width: 0; display: flex; flex-direction: column; gap: 3px; cursor: pointer; position: relative; }
.day:nth-child(7n) { border-right: 0; }
.day.out { background: var(--panel-2); } .day.out .num { color: var(--faint); }
.day.past { background-image: repeating-linear-gradient(135deg, transparent 0 7px, rgba(127,120,160,.045) 7px 8px); }
.day.drop { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--accent-soft); }
.day .num { font-weight: 650; font-size: 12.5px; padding: 1px 4px; align-self: flex-start; border-radius: 7px; display: flex; gap: 6px; align-items: center; }
.day.today .num { background: var(--accent); color: #fff; }
.day .add { position: absolute; top: 5px; right: 6px; opacity: 0; color: var(--accent); font-weight: 700; font-size: 16px; line-height: 1; }
.day:hover .add { opacity: 1; }
.chip { display: flex; align-items: center; gap: 5px; border-radius: 7px; padding: 3px 5px 3px 3px; font-size: 12px; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--accent)); min-width: 0; cursor: pointer; overflow: hidden; }
.chip .st svg { width: 14px; height: 14px; }
.chip:hover { border-color: var(--faint); border-left-color: var(--c, var(--accent)); }
.chip .th { width: 20px; height: 20px; border-radius: 4px; object-fit: cover; background: var(--line); flex: none; }
.chip .tm { font-weight: 650; font-variant-numeric: tabular-nums; }
.chip .ty { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.chip .cap { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.chip .st { flex: none; display: inline-flex; }
.chip.published { opacity: .62; } .chip.published .st { color: var(--ok); }
.chip.failed, .chip.missed { background: var(--err-soft); border-color: var(--err); } .chip.failed .st, .chip.missed .st { color: var(--err); }
.chip.draft { border-style: dashed; border-left-style: solid; }
.chip.publishing .st { color: var(--accent); animation: spin 1s linear infinite; }
.more { font-size: 11.5px; color: var(--muted); padding: 0 4px; font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }
.t-feed { background: var(--feed); } .t-reel { background: var(--reel); } .t-story { background: var(--story); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); align-items: center; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }

/* --- liste --- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 18px; }
.dayhead { font-weight: 650; margin: 18px 4px 8px; text-transform: capitalize; }
.dayhead:first-child { margin-top: 0; }
.item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.item:last-child { border-bottom: 0; } .item:hover { background: var(--panel-2); }
.item .th { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--line); flex: none; }
.item .tm { width: 48px; font-weight: 650; font-variant-numeric: tabular-nums; }
.item .mid { flex: 1; min-width: 0; }
.item .mid .cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; border-radius: 99px; padding: 2px 9px; background: var(--panel-2); border: 1px solid var(--line); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.tag.err { background: var(--err-soft); color: var(--err); border-color: transparent; }
.tag.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag.acc { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty h3 { color: var(--text); margin-bottom: 6px; font-size: 16px; }

/* --- pencere (modal) --- */
.overlay { position: fixed; inset: 0; background: rgba(15,12,30,.5); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal { background: var(--panel); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35); width: min(980px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.modal.narrow { width: min(480px, 100%); }
.modal > header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal > header h2 { font-size: 16px; flex: 1; }
.modal > .body { overflow: auto; padding: 4px 18px 18px; }
.modal > footer { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
.modal > footer .grow { flex: 1; }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; }
@media (max-width: 800px) { .composer { grid-template-columns: 1fr; } .shell { grid-template-columns: 64px 1fr; } .nav span, .brand b, .me .who, .health span { display: none; } }

/* --- instagram paneli --- */
.igprofile { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.igavatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: var(--line); flex: none; display: block; }
.igwho { flex: 1; min-width: 200px; }
.igbio { white-space: pre-line; margin-top: 4px; font-size: 13px; }
.igstats { display: flex; gap: 22px; flex-wrap: wrap; }
.igstat { display: flex; flex-direction: column; align-items: center; min-width: 60px; }
.igstat b { font-size: 18px; font-variant-numeric: tabular-nums; } .igstat span { font-size: 12px; color: var(--muted); }
.igstories { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.igstory { flex: none; width: 74px; height: 130px; border-radius: 12px; overflow: hidden; border: 2px solid var(--accent); background: var(--line); }
.igstory img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.igpost { overflow: hidden; display: flex; flex-direction: column; }
.igpost.latest { outline: 2px solid var(--accent); outline-offset: -1px; }
.igthumb { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--line); }
.igthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.igthumb .tag { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.6); color: #fff; border: 0; }
.igbody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.igmeta { font-weight: 650; font-variant-numeric: tabular-nums; gap: 14px; }
.igmeta svg.ic { width: 15px; height: 15px; }
.igcap { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.igcomments { display: flex; flex-direction: column; gap: 5px; border-top: 1px solid var(--line); padding-top: 8px; font-size: 12.5px; }
.igc { overflow-wrap: anywhere; }
.dropz { border: 2px dashed var(--line-2); border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; }
.dropz:hover, .dropz.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.dropz b { color: var(--text); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.mth { width: 92px; position: relative; }
.mth .box { width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--line); position: relative; border: 2px solid transparent; cursor: pointer; }
.mth.sel .box { border-color: var(--accent); }
.mth img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mth .x { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--text); color: var(--panel); font-weight: 700; line-height: 1; z-index: 2; }
.mth .ord { position: absolute; bottom: 4px; left: 4px; display: flex; gap: 3px; z-index: 2; }
.mth .ord button { border: 0; border-radius: 5px; background: rgba(0,0,0,.6); color: #fff; width: 20px; height: 20px; padding: 0; line-height: 1; }
.mth .kind { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,.6); color: #fff; border-radius: 5px; font-size: 10.5px; padding: 1px 5px; z-index: 1; }
.mth .prog { position: absolute; inset: 0; background: rgba(0,0,0,.55); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.mth .prog .bar { width: 70%; height: 4px; background: rgba(255,255,255,.3); border-radius: 9px; margin-top: 6px; overflow: hidden; }
.mth .prog .bar i { display: block; height: 100%; background: #fff; }
.mth .meta { font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mth.error .box { border-color: var(--err); }
.note { border-radius: 9px; padding: 8px 11px; font-size: 12.5px; margin-top: 10px; display: flex; gap: 8px; }
.note.warn { background: var(--warn-soft); color: var(--warn); } .note.err { background: var(--err-soft); color: var(--err); } .note.ok { background: var(--ok-soft); color: var(--ok); } .note.info { background: var(--accent-soft); color: var(--accent); }
.preview { position: sticky; top: 14px; }
.phone { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel-2); }
.phone .ph-head { display: flex; align-items: center; gap: 8px; padding: 9px 11px; font-weight: 650; font-size: 12.5px; }
.phone .ph-head .av { width: 22px; height: 22px; border-radius: 50%; }
.phone .ph-media { background: #000; display: flex; align-items: center; justify-content: center; }
.phone .ph-media img, .phone .ph-media video { width: 100%; height: 100%; object-fit: contain; display: block; }
.phone .ph-cap { padding: 9px 11px; font-size: 12.5px; white-space: pre-wrap; word-break: break-word; max-height: 110px; overflow: auto; }
.counter { float: right; font-weight: 500; }
.aibox { border: 1px solid var(--line-2); background: var(--accent-soft); border-radius: 12px; padding: 10px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 8px; }
.aibox .row { display: flex; gap: 8px; align-items: center; }
.aibox .grow { flex: 1; min-width: 0; }
.aibox .help { margin: 0; }
.btn.ai { background: linear-gradient(135deg, #7c5cff, #e14fad); color: #fff; border: 0; white-space: nowrap; }
.btn.ai:disabled { opacity: .6; }
.coverbox { display: flex; gap: 12px; align-items: flex-start; }
.coverbox .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cover-thumb { position: relative; width: 72px; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: var(--panel); border: 1px solid var(--line-2); flex: none; }
.cover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-thumb.empty { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); text-align: center; }
.cover-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); color: #fff; font-weight: 600; font-size: 12px; }

/* --- giriş --- */
.auth { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(1200px 600px at 20% -10%, rgba(124,92,255,.18), transparent 60%), radial-gradient(900px 500px at 100% 110%, rgba(255,94,126,.16), transparent 60%), var(--bg); }
.auth-card { width: min(880px, 100%); display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(20,14,50,.22); }
.auth-hero { position: relative; padding: 38px 34px; color: #fff; background: linear-gradient(145deg, #7c5cff 0%, #b54fd8 55%, #ff5e7e 100%); display: flex; flex-direction: column; overflow: hidden; }
.auth-hero::before, .auth-hero::after { content: ""; position: absolute; border-radius: 50%; border: 34px solid rgba(255,255,255,.09); }
.auth-hero::before { width: 300px; height: 300px; right: -120px; top: -110px; }
.auth-hero::after { width: 200px; height: 200px; left: -90px; bottom: -80px; }
.auth-hero .brand { padding: 0; } .auth-hero .brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 0 0 2px rgba(255,255,255,.35); } .auth-hero .brand b { font-size: 23px; }
.auth-hero h1 { font-size: 27px; line-height: 1.2; margin: 34px 0 26px; letter-spacing: -.02em; }
.auth-hero ul { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 15px; position: relative; z-index: 1; }
.auth-hero li { display: flex; gap: 12px; align-items: center; }
.auth-hero .pi { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex: none; }
.auth-hero li b { display: block; font-size: 14px; } .auth-hero li span { font-size: 12.5px; opacity: .85; }
.auth-form { padding: 38px 34px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h2 { font-size: 22px; } .auth-form > p { margin: 6px 0 8px; }
.auth-form .inp { padding: 10px 12px; }
.auth-form .btn { width: 100%; margin-top: 16px; padding: 11px; }
.auth-form .btn.ghost { margin-top: 6px; color: var(--muted); font-weight: 550; }
@media (max-width: 720px) { .auth-card { grid-template-columns: 1fr; } .auth-hero ul { display: none; } .auth-hero h1 { margin: 18px 0 0; font-size: 20px; } .auth-hero, .auth-form { padding: 26px 22px; } }
.code { font-family: Consolas, ui-monospace, monospace; letter-spacing: .08em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; }
.code.big { font-size: 17px; padding: 8px 12px; text-align: center; }

/* --- çeşitli --- */
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.acc { display: flex; gap: 12px; align-items: center; }
.acc .av { width: 44px; height: 44px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 17px; object-fit: cover; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 650; padding: 8px 12px; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 10px 16px; align-items: center; }
.kv > div:nth-child(odd) { color: var(--muted); font-weight: 600; }
.meter { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; max-width: 320px; }
.meter i { display: block; height: 100%; background: var(--accent); }
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--text); color: var(--panel); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); max-width: 380px; font-weight: 550; }
.toast.err { background: var(--err); color: #fff; }
.act { display: flex; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); align-items: baseline; }
.act:last-child { border-bottom: 0; } .act time { color: var(--muted); font-size: 12px; width: 120px; flex: none; font-variant-numeric: tabular-nums; }
.act.error { color: var(--err); } .act.ok .txt { color: var(--ok); } .act.warn .txt { color: var(--warn); }

/* =================================================================== telefon */
.mbar, .fab, .phead, .pcontent { display: none; }
@media (max-width: 640px) {
  body { font-size: 15px; background: var(--bg); }
  .shell { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .main { position: relative; }

  /* üst çubuk */
  .mbar { display: flex; align-items: center; gap: 9px; padding: calc(10px + env(safe-area-inset-top)) 16px 8px; }
  .mbar img { width: 30px; height: 30px; border-radius: 9px; }
  .mbar b { font-size: 19px; letter-spacing: -.02em; }
  .mbar .grow { flex: 1; }
  .mavatar { width: 34px; height: 34px; border-radius: 50%; border: 0; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(145deg, #7c5cff, #ff5e7e); }

  /* alt menü */
  .side { order: 2; flex-direction: row; align-items: stretch; gap: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .side .brand, .side .spacer, .health, .me, .nav-team, .nav-activity { display: none !important; }
  .nav { flex: 1; flex-direction: column; gap: 3px; padding: 4px 0; font-size: 11px; font-weight: 600; position: relative; justify-content: center; min-width: 0; border-radius: 0; background: none !important; }
  .nav svg.ic { width: 22px; height: 22px; padding: 4px 16px; box-sizing: content-box; border-radius: 99px; transition: background .15s; }
  .nav.on svg.ic { background: var(--accent-soft); }
  .nav .lbl { display: block !important; white-space: nowrap; }
  .nav .badge { display: inline !important; position: absolute; top: 0; left: 50%; margin: 0 0 0 8px; }

  /* yuvarlak + düğmesi */
  .fab { display: flex; position: absolute; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 18px; border: 0; align-items: center; justify-content: center; color: #fff; background: linear-gradient(145deg, #7c5cff, #b54fd8); box-shadow: 0 10px 28px rgba(109,94,252,.45); z-index: 20; }
  .fab svg.ic { width: 26px; height: 26px; stroke-width: 2.4; }
  .top .btn.primary { display: none; }

  /* genel sayfa başlığı (liste, hesaplar...) */
  .top { padding: 4px 16px 12px; gap: 10px; }
  .top h1 { font-size: 24px; min-width: 0; width: 100%; letter-spacing: -.02em; }
  .top .grow { display: none; }
  .top .legend { display: none; }
  .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { white-space: nowrap; padding: 7px 12px; }
  .content { padding: 0 16px 96px; }

  /* takvim başlığı */
  .phead { display: block; padding: 0 0 6px; }
  .pmonth { padding: 2px 16px 0; gap: 6px; }
  .pmonth h1 { font-size: 26px; letter-spacing: -.02em; text-transform: capitalize; }
  .pnav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); display: flex; align-items: center; justify-content: center; color: var(--text); }
  .ptoday { border: 0; background: var(--accent-soft); color: var(--accent); font-weight: 700; border-radius: 99px; padding: 8px 14px; margin-left: 4px; }
  .psum { display: flex; gap: 14px; padding: 4px 16px 0; font-size: 12.5px; color: var(--muted); }
  .psum i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; }

  .pstrip { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .pstrip::-webkit-scrollbar { display: none; }
  .pday { flex: none; width: 48px; height: 70px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; scroll-snap-align: center; color: var(--text); padding: 0; }
  .pday .wd { font-size: 11px; color: var(--muted); font-weight: 600; }
  .pday b { font-size: 18px; line-height: 1.1; font-variant-numeric: tabular-nums; }
  .pday .dots { display: flex; gap: 3px; height: 6px; }
  .pday .dots i { width: 5px; height: 5px; border-radius: 50%; }
  .pday.past { opacity: .55; }
  .pday.today { border-color: var(--accent); }
  .pday.today .wd { color: var(--accent); }
  .pday.on { background: linear-gradient(160deg, #7c5cff, #b54fd8); border-color: transparent; color: #fff; opacity: 1; box-shadow: 0 8px 20px rgba(109,94,252,.35); }
  .pday.on .wd { color: rgba(255,255,255,.85); }
  .pday.on .dots i { background: #fff !important; }

  .pfilters { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 4px; scrollbar-width: none; align-items: center; }
  .pfilters::-webkit-scrollbar { display: none; }
  .pchip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); border-radius: 99px; padding: 7px 13px; font-weight: 600; font-size: 13px; white-space: nowrap; }
  .pchip i { width: 8px; height: 8px; border-radius: 50%; }
  .pchip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
  .top .pfilters { margin: 0 -16px; width: calc(100% + 32px); padding: 2px 16px; }
  .psep { flex: none; width: 1px; height: 20px; background: var(--line-2); }

  /* seçili günün kartları */
  .pcontent { display: block; padding-top: 6px; }
  .pdaytitle { display: flex; align-items: center; gap: 8px; margin: 8px 2px 12px; }
  .pdaytitle b { font-size: 16px; text-transform: capitalize; }
  .pdaytitle .grow { flex: 1; }
  .pcards { display: flex; flex-direction: column; gap: 10px; }
  .pcard { display: flex; gap: 12px; padding: 10px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
  .pcard::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
  .pcard:active { transform: scale(.985); }
  .pthumb { width: 64px; height: 80px; border-radius: 12px; overflow: hidden; background: var(--line); flex: none; position: relative; display: flex; align-items: center; justify-content: center; color: var(--muted); margin-left: 4px; }
  .pthumb img { width: 100%; height: 100%; object-fit: cover; }
  .pcount { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 0 5px; }
  .pmid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
  .ptime { font-size: 17px; font-variant-numeric: tabular-nums; }
  .ptype { font-size: 11px; font-weight: 700; color: #fff; border-radius: 99px; padding: 2px 8px; }
  .pmid .tag svg.ic { width: 12px; height: 12px; }
  .pcap { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
  .pacc { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
  .pacc i { width: 8px; height: 8px; border-radius: 50%; }
  .pcard.published { opacity: .8; }
  .pcard.failed, .pcard.missed { border-color: var(--err); }
  .pempty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 34px 20px; border: 1.5px dashed var(--line-2); border-radius: 20px; color: var(--muted); }
  .pempty b { color: var(--text); font-size: 15px; }
  .pempty-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
  .pempty-ic svg.ic { width: 26px; height: 26px; }

  /* liste ve kartlar */
  .card { border-radius: 18px; }
  .item { padding: 12px; }
  .item .th { width: 52px; height: 52px; border-radius: 10px; }

  /* pencereler tam ekran, iOS yakınlaştırmasın diye 16px yazı */
  .overlay { padding: 0; align-items: stretch; }
  .modal, .modal.narrow { border-radius: 0; height: 100%; width: 100%; max-height: none; }
  .modal > header { padding-top: calc(14px + env(safe-area-inset-top)); }
  .modal > footer { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .inp, textarea.inp, select.inp { font-size: 16px; }

  .igstats { gap: 12px; width: 100%; justify-content: space-between; }
  .iggrid { grid-template-columns: 1fr; gap: 12px; }

  /* sekme düğmeleri tam genişlik, eşit */
  .seg.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; overflow: hidden; }
  .seg.tabs button { justify-content: center; padding: 8px 4px; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

  /* instagram (telefon) */
  .pig .igavatar { width: 62px; height: 62px; }
  .pig-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
  .pig-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .pig-recent { display: flex; gap: 14px; align-items: center; margin-top: 12px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
  .pig-recent > span:first-child { color: var(--muted); font-weight: 500; flex: 1; }
  .pig-recent svg.ic { width: 15px; height: 15px; }
  .pig-bio { margin-top: 10px; font-size: 13px; }
  .pig-bio summary { color: var(--muted); cursor: pointer; font-weight: 600; }
  .pig-latest { display: block; overflow: hidden; color: inherit; text-decoration: none; }
  .pig-latest img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--line); }
  .pig-latest-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
  .pig-latest-body svg.ic { width: 17px; height: 17px; }
  .pig-comments { padding: 4px 0; }
  .pig-c { display: flex; gap: 12px; padding: 10px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
  .pig-c:last-child { border-bottom: 0; }
  .pig-c img, .pig-c .ph { width: 40px; height: 50px; border-radius: 8px; object-fit: cover; flex: none; background: var(--line); }
  .pig-ctext { font-size: 13.5px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .pig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 14px; overflow: hidden; }
  .pig-grid a { position: relative; aspect-ratio: 4 / 5; background: var(--line); display: block; }
  .pig-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .pig-ov { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; display: flex; align-items: center; gap: 3px; color: #fff; font-size: 11.5px; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
  .pig-ov svg.ic { width: 12px; height: 12px; }
  .igstories { margin: 0 -16px; padding: 0 16px 4px; }

  /* hesaplar */
  .howto { display: none; }
  .accbtns { flex-wrap: wrap; }
  .accbtns .grow { width: 100%; flex: none; }
  .accbtns .btn { flex: 1; }

  /* sistem: etiket üstte, değer altta */
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv > div:nth-child(odd) { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
  .kv > div:nth-child(even) { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); min-width: 0; }
  .kv > div:nth-child(even):last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  .kv .tag { white-space: normal; line-height: 1.35; padding: 4px 10px; }
  .kv .inp { max-width: none !important; min-width: 0; }

  /* giriş ekranı */
  .auth { padding: 0; align-items: stretch; background: var(--panel); }
  .auth-card { border: 0; border-radius: 0; box-shadow: none; min-height: 100%; display: flex; flex-direction: column; }
  .auth-hero { padding: calc(36px + env(safe-area-inset-top)) 26px 64px; border-radius: 0 0 32px 32px; }
  .auth-hero .brand { display: flex; }
  .auth-hero .brand b { display: inline !important; font-size: 26px; }
  .auth-hero .brand img { width: 48px; height: 48px; border-radius: 14px; }
  .auth-hero h1 { font-size: 24px; margin: 28px 0 0; }
  .auth-form { padding: 30px 24px calc(30px + env(safe-area-inset-bottom)); margin-top: -34px; background: var(--panel); border-radius: 28px 28px 0 0; position: relative; z-index: 1; flex: 1; justify-content: flex-start; }
  .auth-form .inp { padding: 14px 14px; border-radius: 14px; }
  .auth-form .btn { padding: 15px; border-radius: 14px; font-size: 16px; }
  .auth-form .btn.primary { background: linear-gradient(145deg, #7c5cff, #b54fd8); border: 0; box-shadow: 0 10px 24px rgba(109,94,252,.35); }
}
