:root {
  --bg: #eef1f5; --card: #fff; --text: #111827; --muted: #6b7280; --line: #e5e7eb;
  --brand: #1d4f91; --brand-d: #163d72; --brand-l: #dbe7f7; --brand-xl: #eef4fc;
  --paper: #fffefb; --desk: #eef1f5; --shelf: #13294b; --shelf-d: #0c1c36;
  --red: #b91c1c; --red-l: #fee2e2; --orange: #c2410c; --orange-l: #ffedd5;
  --yellow: #a16207; --yellow-l: #fef9c3; --green: #15803d; --green-l: #dcfce7;
  --blue: #1d4ed8; --blue-l: #dbeafe; --gray-l: #f3f4f6;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--brand); }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
[hidden] { display: none !important; }

.top { background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 20px; position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; }
nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
nav a, nav .link { padding: 6px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px; }
nav a.on { background: var(--brand-l); color: var(--brand-d); font-weight: 600; }
nav a:hover { background: var(--gray-l); }

main { max-width: 1180px; margin: 0 auto; padding: 22px 20px 60px; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.grid { display: grid; gap: 12px; }
.kpis { grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; border-top: 4px solid var(--line); }
.kpi b { display: block; font-size: 28px; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi.red { border-top-color: var(--red); } .kpi.red b { color: var(--red); }
.kpi.orange { border-top-color: var(--orange); } .kpi.orange b { color: var(--orange); }
.kpi.yellow { border-top-color: #eab308; } .kpi.yellow b { color: var(--yellow); }
.kpi.gray { border-top-color: #9ca3af; }

button, .btn { font: inherit; font-size: 14px; border: 1px solid var(--line); background: #fff; color: var(--text); padding: 7px 12px;
  border-radius: 7px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
button:hover, .btn:hover { background: var(--gray-l); }
button.primary, .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.primary:hover, .btn.primary:hover { background: var(--brand-d); }
button.wa { background: #16a34a; border-color: #16a34a; color: #fff; }
button.wa:hover { background: #15803d; }
button.danger { color: var(--red); }
body.ro .w { display: none !important; }   /* patron: yalnız görüntüleme */
.scanbox { border: 1px dashed var(--brand); border-radius: var(--radius); padding: 12px; margin: 0 0 14px; background: var(--brand-xl); }
.warn-text { color: #92400e; }
.ok-text { color: var(--green); }
button.link { border: 0; background: none; padding: 6px 10px; color: var(--muted); }
button:disabled { opacity: .55; cursor: default; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
input, select, textarea { font: inherit; font-size: 14px; width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 7px; background: #fff; color: var(--text); margin-top: 3px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-l); border-color: var(--brand); }
input[type=checkbox] { width: auto; margin: 0 6px 0 0; }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { display: flex; align-items: center; color: var(--text); font-size: 14px; }

table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 8px; border-bottom: 1px solid var(--line); }
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.scroll { overflow-x: auto; }
.clickrow { cursor: pointer; }
.clickrow:hover td { background: #fafafa; }

.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.s-overdue { background: var(--red-l); color: var(--red); }
.s-week { background: var(--orange-l); color: var(--orange); }
.s-month { background: var(--yellow-l); color: var(--yellow); }
.s-later { background: var(--green-l); color: var(--green); }
.s-done { background: var(--gray-l); color: var(--muted); }

/* giriş / kayıt */
.auth { max-width: 420px; margin: 6vh auto 40px; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; margin-bottom: 16px; }
.wide { width: 100%; justify-content: center; padding: 10px; font-size: 15px; }

/* giriş / kayıt + tanıtım: geniş ekranda tanıtım solda, form sağda; telefonda önce form */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; max-width: 1080px; margin: 5vh auto 40px; align-items: start; }
.auth-wrap .auth { margin: 0; position: sticky; top: 24px; }
.auth-wrap .intro { order: -1; }
.intro-jump { display: none; margin: -6px 0 12px; }
.intro-title { font-size: 26px; line-height: 1.25; margin: 6px 0 10px; }
.intro > .muted { font-size: 16px; margin: 0 0 14px; }
.chipline { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.tag { font-size: 13px; background: var(--brand-l); color: var(--brand-d); border-radius: 999px; padding: 3px 10px; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.feat { display: flex; gap: 12px; align-items: flex-start; }
.feat-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.feat b { display: block; margin-bottom: 2px; }
.feat p { margin: 0; font-size: 14px; color: var(--muted); }
.intro-sub { margin: 26px 0 8px; font-size: 16px; }
.steps3 { margin: 0 0 16px; padding-left: 20px; }
.steps3 li { margin: 4px 0; }
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; gap: 28px; margin: 4vh auto 40px; padding: 0 2px; }
  .auth-wrap .auth { position: static; width: 100%; max-width: 420px; margin: 0 auto; }
  .auth-wrap .intro { order: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .intro-jump { display: block; }
  .intro-title { font-size: 21px; }
  .feats { grid-template-columns: 1fr; }
}

/* özet çipleri ve filtreler */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.chip { flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 14px; border-radius: var(--radius); border-top: 4px solid var(--line); white-space: normal; }
.chip b { font-size: 24px; line-height: 1.15; }
.chip span { font-size: 13px; color: var(--muted); }
.chip.c-overdue { border-top-color: var(--red); } .chip.c-overdue b { color: var(--red); }
.chip.c-week { border-top-color: var(--orange); } .chip.c-week b { color: var(--orange); }
.chip.c-month { border-top-color: #eab308; } .chip.c-month b { color: var(--yellow); }
.chip.c-all { border-top-color: var(--brand); }
.chip.on { outline: 2px solid var(--brand); background: var(--brand-xl); }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.filters input, .filters select { margin: 0; }

/* liste */
.group { margin-bottom: 14px; }
.gh { margin: 0 0 6px; font-size: 14px; }
.g-overdue { color: var(--red); } .g-week { color: var(--orange); } .g-month { color: var(--yellow); } .g-later { color: var(--green); }
.card.list { padding: 0; overflow: hidden; }
.irow { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; cursor: pointer; }
.irow:last-child { border-bottom: 0; }
.irow:hover { background: #fafafa; }
.b-overdue { border-left-color: var(--red); } .b-week { border-left-color: var(--orange); } .b-month { border-left-color: #eab308; } .b-later { border-left-color: #86efac; } .b-done { border-left-color: var(--line); }
.imain { flex: 1; min-width: 0; }
.ititle { font-weight: 600; overflow-wrap: anywhere; }
.isub { font-weight: 400; color: var(--muted); }
.iside { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.idate { font-weight: 600; font-variant-numeric: tabular-nums; }
.renew { font-size: 13px; padding: 5px 10px; }

/* form */
.lbl { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.daychips { display: flex; flex-wrap: wrap; gap: 6px; }
.daychip { margin: 0; color: var(--text); }
.daychip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.daychip span { display: inline-block; padding: 5px 10px; border: 1px solid #d1d5db; border-radius: 999px; font-size: 13px; cursor: pointer; background: #fff; }
.daychip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.daychip input:focus-visible + span { outline: 2px solid var(--brand-l); }
.daychip-add { padding: 5px 10px; border-radius: 999px; border-style: dashed; font-size: 13px; color: var(--brand); }
.calc { background: var(--gray-l); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.fs { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 2px; margin: 0 0 12px; }
.fs legend { font-size: 13px; color: var(--muted); padding: 0 4px; }
input[type=radio] { width: auto; margin: 0 6px 0 0; }
.kv th { text-transform: none; letter-spacing: 0; font-size: 13px; width: 110px; padding: 6px 8px 6px 0; vertical-align: top; }
.kv td { padding: 6px 0; }
.hist { padding-left: 18px; margin: 8px 0 0; }

/* evrak dosyaları */
.files { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 12px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.thumb { min-width: 0; }
.thumb a { display: block; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--gray-l); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .pdf { height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--red); font-size: 20px; }
.tname { font-size: 13px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb .link { padding: 0 0 0 6px; font-size: 12px; }
.clip { font-weight: 400; font-size: 13px; }
.starter td { padding: 6px; }

/* abonelik */
.subbar { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px 16px; font-size: 14px; text-align: center; }
.subbar.info { background: var(--blue-l); color: #1e3a8a; }
.subbar.warn { background: var(--yellow-l); color: #713f12; }
.subbar.danger { background: var(--red-l); color: #7f1d1d; }
.subbar .btn { padding: 4px 10px; font-size: 13px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.plan { position: relative; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; border-radius: var(--radius); border: 2px solid var(--line); white-space: normal; text-align: left; }
.plan b { font-size: 16px; }
.plan .price { font-size: 24px; font-weight: 700; color: var(--brand-d); }
.plan.on { border-color: var(--brand); background: var(--brand-xl); }
.plan .badge { position: absolute; top: -10px; right: 10px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.paybox code { font-size: 15px; background: var(--gray-l); padding: 2px 6px; border-radius: 4px; }
.paybox .ref { font-size: 17px; font-weight: 700; color: var(--brand-d); }
.paybox .big { font-size: 20px; }
.banner.danger { background: var(--red-l); color: #7f1d1d; }
code { white-space: nowrap; }

/* yönetim */
body.admin .top { background: #0f172a; border-bottom-color: #0f172a; }
body.admin .top .brand, body.admin .top .link { color: #fff; }
body.admin .top .muted { color: #cbd5e1; }
dialog.wide-dialog { width: min(820px, calc(100vw - 32px)); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.detail-grid h3, dialog h3 { margin: 14px 0 6px; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } }
.pickrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.picked { display: contents; }
.pchip { display: inline-flex; align-items: center; gap: 2px; max-width: 220px; font-size: 13px; background: var(--gray-l); border-radius: 999px; padding: 3px 4px 3px 10px; }
.pchip button { padding: 0 6px; font-size: 15px; line-height: 1; }

.banner { border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; font-size: 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banner.warn { background: var(--yellow-l); color: #713f12; }
.banner.info { background: var(--blue-l); color: #1e3a8a; }
.banner.ok { background: var(--green-l); color: #14532d; }

.login { max-width: 360px; margin: 10vh auto; }
.drop { border: 2px dashed #cbd5e1; border-radius: var(--radius); padding: 28px; text-align: center; background: #fff; }
.drop.over { border-color: var(--brand); background: var(--brand-l); }

dialog { border: 0; border-radius: 12px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(17,24,39,.45); }
dialog .dhead { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
dialog .dbody { padding: 16px 18px; max-height: 70vh; overflow: auto; }

#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 16px;
  border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; }
#toast.err { background: var(--red); }

.legend { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }

/* ilk giriş: üç seçenek */
.start-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.start-opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; white-space: normal; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--text); text-decoration: none; font-size: 15px; }
.start-opt:hover { border-color: var(--brand); background: var(--brand-xl); }
.start-opt b { display: block; margin-bottom: 2px; }
.start-opt.main { border: 2px solid var(--brand); }
.start-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }

/* ana ekran: Benim işlerim / Tümü */
.seg { display: inline-flex; background: var(--gray-l); border-radius: 10px; padding: 3px; margin-bottom: 12px; gap: 2px; max-width: 100%; }
.seg button { border: 0; background: none; border-radius: 8px; padding: 7px 14px; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.1); }

/* ödenecek tutarlar */
.moneybar { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 12px; margin: -4px 0 12px; }
.moneybar .late { color: var(--red); }
.iamt { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* önerilenler: liste sekmeleri */
.tabs2 { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 14px; }
.tabs2 a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.tabs2 a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* önerilenler: iki adım */
.steps { margin: 0 0 6px; }
.picklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.pick { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 14px; cursor: pointer; }
.pick input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--brand); }
.pick:has(input:checked) { border-color: var(--brand); background: var(--brand-xl); }
/* Sektörel hazır evrak şablonları: kategori başlığı + yan yana küçük seçilebilir kutucuklar */
.pickgroup { margin: 0 0 10px; }
.pickgroup h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pickchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pickchip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--text); background: #fff; cursor: pointer; }
.pickchip input { width: 15px; height: 15px; margin: 0; accent-color: var(--brand); }
.pickchip:has(input:checked) { border-color: var(--brand); background: var(--brand-xl); }
.stickybar { position: sticky; bottom: 0; background: #fff; padding: 12px 0 4px; margin-top: 8px; border-top: 1px solid var(--line); }
.daterow { display: grid; grid-template-columns: 1.3fr 170px 1fr; gap: 10px; align-items: end; padding: 12px 0; border-top: 1px solid var(--line); }

/* ana ekran */
.hint-line { margin: 6px 0 0; }
button.link.inline { padding: 0; color: var(--brand); text-decoration: underline; font-size: inherit; }
.fbtn { display: none; }
.more-filters { display: contents; }

/* kayıt formu: diğer seçenekler */
.more-btn { width: 100%; flex-direction: column; align-items: flex-start; gap: 2px; white-space: normal; text-align: left; margin-bottom: 14px; border-style: dashed; color: var(--brand-d); }
.more-box { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 4px; }

/* telefon alt menüsü */
.bnav { display: none; }
.menu-list { display: flex; flex-direction: column; gap: 8px; }
.menu-list .btn, .menu-list button { justify-content: center; padding: 11px; font-size: 15px; }

@media (max-width: 760px) {
  main { padding: 16px 16px 50px; }
  .top { padding: 8px 16px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .form2 { grid-template-columns: 1fr; }
  .hide-m { display: none; }
  /* üst menü yerine alttaki çubuk */
  #nav { display: none; }
  .top { padding: 8px 16px; }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: #fff; border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom); }
  .bnav[hidden] { display: none !important; }
  .bnav a, .bnav button { flex: 1; flex-direction: column; gap: 1px; border: 0; border-radius: 0; background: none; padding: 7px 2px 8px;
    font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; display: flex; align-items: center; justify-content: center; }
  .bnav .on { color: var(--brand); }
  .bi { font-size: 19px; line-height: 1.1; }
  .bi-add { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; }
  main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  #toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .subbar { padding: 5px 12px; font-size: 13px; gap: 8px; }
  .subbar .btn { padding: 2px 8px; font-size: 12px; }
  .head { margin-bottom: 12px; }
  .head h1 { font-size: 20px; }

  /* sayılar tek satırda, küçük */
  .chips { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .chip { padding: 6px 8px; border-top-width: 3px; }
  .chip b { font-size: 18px; }
  .chip span { font-size: 11px; line-height: 1.25; }

  /* arama + "Süz"; diğer süzgeçler düğmenin arkasında */
  .filters { grid-template-columns: 1fr auto; }
  .fbtn { display: inline-flex; }
  .more-filters { display: none; }
  .more-filters.open { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; grid-column: 1 / -1; }

  .daterow { grid-template-columns: 1fr; gap: 6px; }
  .irow { flex-wrap: wrap; gap: 8px 12px; }
  .imain { flex-basis: 100%; }
  .iside { flex-direction: row; align-items: center; gap: 8px; margin-right: auto; }
}

@media print {
  .chips, .filters, dialog { display: none !important; }
  .irow { break-inside: avoid; }
  body { background: #fff; font-size: 12px; }
  .noprint, .top, #toast { display: none !important; }
  main { padding: 0; max-width: none; }
  .card { border: 0; padding: 0; }
  .pill { border: 1px solid currentColor; }
  td, th { padding: 4px 6px; }
}

/* ======================================================================================
   Program görünümü (26 Kasım): belge teması — raftaki mavi klasörler, A4 kâğıdı, zarf.
   Geniş ekranda solda koyu "raf" yan menü; dar ekranda üstte lacivert şerit.
   ====================================================================================== */
body { background: var(--desk); }
h1 { font-size: 24px; letter-spacing: -.01em; }
.card { border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 30, 60, .05), 0 2px 6px rgba(15, 30, 60, .05); }

/* menü simgeleri */
.top.app .ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.top.app nav a, .top.app nav .link { display: inline-flex; align-items: center; gap: 9px; }
.top.app .logo { width: 36px; height: 36px; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.top.app .brand-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.top.app .brand-txt b { font-size: 16px; }
.top.app #brandName { font-size: 12px; font-weight: 500; opacity: .75; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top.app .nav-h { display: none; }
/* dar ekran: lacivert üst şerit */
.top.app { background: linear-gradient(90deg, var(--shelf), #1b3a6b); border: 0; color: #fff; }
.top.app .brand { color: #fff; }
.top.app nav a, .top.app nav .link { color: #d6e2f5; }
.top.app nav a:hover, .top.app nav .link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.top.app nav a.on { background: rgba(255, 255, 255, .16); color: #fff; }

/* geniş ekran: soldaki raf */
@media (min-width: 761px) {
  body:has(#top.app:not([hidden])) { padding-left: 248px; }
  .top.app { position: fixed; top: 0; bottom: 0; left: 0; width: 248px; flex-direction: column; flex-wrap: nowrap; align-items: stretch;
    justify-content: flex-start; gap: 0; padding: 18px 14px 0; overflow-y: auto;
    background: linear-gradient(180deg, var(--shelf) 0%, var(--shelf-d) 100%); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06); }
  .top.app .brand { padding: 2px 6px 18px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .top.app nav { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 2px; flex: 1; }
  .top.app .nav-h { display: block; margin: 14px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7f95b8; }
  .top.app nav a, .top.app nav .link { width: 100%; justify-content: flex-start; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
  .top.app nav a.on { background: rgba(255, 255, 255, .13); font-weight: 600; box-shadow: inset 3px 0 0 #7cb3ff; }
  .top.app #logout { margin-top: 10px; }
  /* rafın altı: dizili mavi klasör sırtları (süs) */
  .top.app::after { content: ''; display: block; flex: none; height: 92px; margin: auto -14px 0; border-top: 6px solid #3b2a1a;
    background:
      radial-gradient(circle at 50% 70%, rgba(255,255,255,.55) 0 4px, transparent 4.5px) 0 0 / 26px 100%,
      linear-gradient(90deg, transparent 5px, rgba(255,255,255,.88) 5px 18px, transparent 18px) 0 22% / 26px 18% repeat-x,
      repeating-linear-gradient(90deg, #2459a8 0 22px, #1c4a8f 22px 23px, transparent 23px 26px);
    opacity: .95; }
  main { max-width: 1120px; padding: 28px 34px 60px; }
}
@media (max-width: 1099px) and (min-width: 761px) {
  /* orta genişlik (tablet, yan panel): raf biraz daralır, içerik sıkışmaz */
  body:has(#top.app:not([hidden])) { padding-left: 200px; }
  .top.app { width: 200px; padding: 16px 10px 0; }
  .top.app::after { margin: auto -10px 0; }
  .top.app #brandName { max-width: 130px; }
  main { padding: 22px 20px 60px; }
  .chips { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}

/* özet kutuları: klasör ön yüzü (üstte sekme) */
.chips { gap: 14px; margin-top: 10px; }
/* Klasör rengi değişkende: üstüne gelince / seçiliyken genel düğme kuralı (açık gri arka plan) rengi silmesin */
.chip { --fold: linear-gradient(160deg, #2a62b4, #1d4f91);
  position: relative; border: 0; border-top: 0; border-radius: 4px 10px 10px 10px; padding: 12px 14px 12px; color: #fff; overflow: visible;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12), 0 4px 10px rgba(15, 30, 60, .12); }
.chip, .chip:hover, .chip:focus, .chip.on { background: var(--fold) !important; }
.chip::before { content: ''; position: absolute; left: 0; top: -9px; width: 46%; height: 12px; border-radius: 6px 10px 0 0; background: var(--fold); }
.chip b, .chip span { color: #fff !important; position: relative; }
.chip span { opacity: .9; }
.chip.c-overdue, .chip.c-expired, .chip.c-suspended { --fold: linear-gradient(160deg, #d33a3a, #a51f1f); }
.chip.c-week, .chip.c-grace { --fold: linear-gradient(160deg, #ea7a2c, #c2410c); }
.chip.c-month, .chip.c-trial { --fold: linear-gradient(160deg, #e0a91c, #b7860c); }
.chip.c-all, .chip.c-active { --fold: linear-gradient(160deg, #2a62b4, #1d4f91); }
.chip:hover { filter: brightness(1.1); transform: translateY(-1px); }
.chip.on { outline: 3px solid #0f172a; outline-offset: 2px; }

/* gruplar: klasör sekmesi başlık, içinde A4 kâğıtları */
.group { margin-bottom: 22px; }
.gh { display: inline-block; margin: 0; padding: 6px 16px 5px; border-radius: 9px 9px 0 0; color: #fff !important; font-size: 13px; font-weight: 700;
  background: var(--brand); position: relative; top: 1px; }
.gh .muted { color: rgba(255, 255, 255, .85); }
.gh.g-overdue { background: #b91c1c; } .gh.g-week { background: #c2410c; } .gh.g-month { background: #b7860c; } .gh.g-later { background: #1d4f91; }
.card.list { background: #dfe6ef; border: 0; border-radius: 0 10px 10px 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; box-shadow: inset 0 1px 3px rgba(15, 30, 60, .08); }
.group:has(.g-overdue) .card.list { background: #f6dede; } .group:has(.g-week) .card.list { background: #f8e3d4; }
.group:has(.g-month) .card.list { background: #f5ead0; }
.irow { position: relative; background: var(--paper); border: 1px solid #e3e1da; border-left-width: 5px; border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04), 0 2px 4px rgba(15, 30, 60, .06); }
.irow:last-child { border-bottom: 1px solid #e3e1da; }
.irow:hover { background: #fff; box-shadow: 0 3px 10px rgba(15, 30, 60, .12); }
/* kâğıdın kıvrık sağ üst köşesi */
.irow::after { content: ''; position: absolute; top: -1px; right: -1px; width: 16px; height: 16px;
  background: linear-gradient(225deg, var(--desk) 0 50%, #e6e2d8 50% 100%); border-bottom-left-radius: 3px; box-shadow: -1px 1px 1px rgba(0, 0, 0, .06); }
.group:has(.g-overdue) .irow::after { background: linear-gradient(225deg, #f6dede 0 50%, #e6e2d8 50%); }
.group:has(.g-week) .irow::after { background: linear-gradient(225deg, #f8e3d4 0 50%, #e6e2d8 50%); }
.group:has(.g-month) .irow::after { background: linear-gradient(225deg, #f5ead0 0 50%, #e6e2d8 50%); }
.group:has(.g-later) .irow::after { background: linear-gradient(225deg, #dfe6ef 0 50%, #e6e2d8 50%); }
.ititle { font-size: 15px; }

/* ilk giriş seçenekleri: belge kartları */
.start-opt { background: var(--paper); box-shadow: 0 1px 2px rgba(15, 30, 60, .05), 0 3px 8px rgba(15, 30, 60, .06); border-radius: 12px; }
.start-ic { border-radius: 10px; background: var(--brand); color: #fff; }

/* doğrulama şeridi: zarf */
.subbar .env { width: 30px; height: 22px; flex: none; }

/* giriş / kayıt sayfası: masa üstünde kâğıt */
.auth .card { background: var(--paper); box-shadow: 0 2px 4px rgba(15, 30, 60, .06), 0 10px 30px rgba(15, 30, 60, .10); }

@media print {
  body:has(#top.app:not([hidden])) { padding-left: 0; }
  .irow::after, .chip::before { display: none; }
  .card.list { background: none; padding: 0; }
}
/* telefon alt menüsü: çizgi simgeler */
.bnav svg.bi { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bnav a.on { background: none; }

/* ======================================================================================
   Giriş öncesi ana sayfa (26 Kasım): lacivert üst bant (tanıtım + giriş kutusu), program görüntüsü,
   özellikler, sektörler, fiyatlar, adımlar, alt bilgi. Uygulamanın raf / klasör / A4 temasıyla aynı.
   ====================================================================================== */
main:has(> .lp) { max-width: none; padding: 0; }
.lp { color: var(--text); }
.lp-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.lp h2 { font-size: 28px; letter-spacing: -.01em; margin: 0 0 10px; }
.lp .center { text-align: center; }
.lp-ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-ic-s { width: 16px; height: 16px; fill: none; stroke: #7cb3ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin: 0 4px 0 12px; vertical-align: -3px; }
.lp-ic-s:first-child { margin-left: 0; }

.lp-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1168px; margin: 0 auto; padding: 16px 24px; }
.lp-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 18px; }
.lp-brand .logo { width: 34px; height: 34px; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: center; }
.lp-nav { display: flex; align-items: center; gap: 6px; }
.lp-nav a:not(.btn) { color: #d6e2f5; text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 14px; }
.lp-nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .1); }
.btn.lp-btn-light { background: #fff; border-color: #fff; color: var(--brand-d); font-weight: 600; }
.btn.lp-btn-light:hover { background: #eaf1fb; }
.btn.lp-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn.lp-btn-ghost:hover { background: rgba(255, 255, 255, .1); }

.lp-hero { position: relative; background: radial-gradient(1200px 500px at 15% 0%, #24508f 0%, transparent 60%), linear-gradient(180deg, var(--shelf) 0%, var(--shelf-d) 100%);
  color: #fff; padding: 96px 0 0; overflow: hidden; }
.lp-hero-in { max-width: 1120px; margin: 0 auto; padding: 0 24px 56px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: center; }
.lp-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: #bcd3f5; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.lp-hero-text h1 { font-size: 40px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; color: #fff; }
.lp-hero-text > p { font-size: 17px; color: #cfdcf0; margin: 0 0 22px; max-width: 560px; }
.lp-ctas { gap: 10px; }
.lp-ctas .btn { padding: 11px 18px; font-size: 15px; }
.lp-trust { margin: 18px 0 0; font-size: 13px; color: #bcd3f5; }
.lp-hero-form .auth { margin: 0; max-width: none; }
.lp-hero-form .auth-brand, .lp-hero-form .intro-jump { display: none; }
.lp-hero-form .auth .card { box-shadow: 0 20px 50px rgba(0, 0, 0, .35); color: var(--text); }
.lp-hero-form .auth > p.center { color: #cfdcf0; }
.lp-hero-form .auth > p.center a { color: #fff; }
/* bandın altında rafta dizili mavi klasör sırtları */
.lp-shelf { height: 64px; border-top: 6px solid #3b2a1a;
  background:
    radial-gradient(circle at 50% 72%, rgba(255,255,255,.55) 0 4px, transparent 4.5px) 0 0 / 30px 100%,
    linear-gradient(90deg, transparent 6px, rgba(255,255,255,.88) 6px 21px, transparent 21px) 0 20% / 30px 24% repeat-x,
    repeating-linear-gradient(90deg, #2459a8 0 26px, #1c4a8f 26px 27px, transparent 27px 30px), #0c1c36; }

.lp-sec { padding: 64px 0; }
.lp-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-shot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.lp-shot-grid .muted { font-size: 16px; }
.lp-shot { background: var(--desk); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 4px rgba(15, 30, 60, .06), 0 20px 50px rgba(15, 30, 60, .16); border: 1px solid #d9e0ea; }
.lp-shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e3e8ef; border-bottom: 1px solid #d9e0ea; }
.lp-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c7cfdb; }
.lp-shot-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: #fff; border-radius: 6px; padding: 2px 10px; }
.lp-shot-body { padding: 18px 18px 6px; pointer-events: none; }
.lp-shot-body .chip { cursor: default; display: flex; flex-direction: column; align-items: flex-start; }
.lp-shot-body .group { margin-bottom: 14px; }

.lp-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.lp-feat { background: var(--paper); border: 1px solid #e3e1da; border-radius: 12px; padding: 18px; box-shadow: 0 1px 2px rgba(15, 30, 60, .04); }
.lp-feat b { display: block; margin: 10px 0 4px; }
.lp-feat p { margin: 0; font-size: 14px; color: var(--muted); }
.lp-feat-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-xl); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.lp-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.lp-tags .tag { font-size: 14px; padding: 6px 14px; background: #fff; border: 1px solid #d9e0ea; color: var(--brand-d); }

.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 16px; margin: 26px 0 14px; }
.lp-plan { position: relative; background: var(--paper); border: 1px solid #e3e1da; border-radius: 12px; padding: 22px; text-align: center; }
.lp-plan.best { border: 2px solid var(--brand); box-shadow: 0 10px 30px rgba(29, 79, 145, .15); }
.lp-plan .badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.lp-plan-m { display: block; color: var(--muted); font-size: 14px; }
.lp-plan-p { font-size: 32px; font-weight: 800; color: var(--brand-d); margin: 6px 0 4px; }
.lp-plan-p small { font-size: 14px; font-weight: 600; color: var(--muted); }

.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 26px; }
.lp-step { text-align: center; padding: 10px 16px; }
.lp-step-n { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 8px; }
.lp-step b { display: block; }
.lp-step p { margin: 4px 0 0; }
.lp .lp-sec .lp-ctas { justify-content: center; }

.lp-foot { background: var(--shelf-d); color: #cfdcf0; padding: 28px 0; }
.lp-foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.lp-foot b { color: #fff; }
.lp-foot a:not(.btn) { color: #cfdcf0; }
.lp-foot-note { flex-basis: 100%; margin: 0; color: #8fa5c8; }

@media (max-width: 960px) {
  .lp-hero-in { grid-template-columns: 1fr; gap: 28px; }
  .lp-hero-form { max-width: 440px; width: 100%; }
  .lp-shot-grid { grid-template-columns: 1fr; gap: 24px; }
  .lp-feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lp-hero { padding-top: 76px; }
  .lp-hero-text h1 { font-size: 28px; }
  .lp-hero-text > p { font-size: 15px; }
  .lp h2 { font-size: 22px; }
  .lp-sec { padding: 44px 0; }
  .lp-in, .lp-hero-in, .lp-top { padding-left: 16px; padding-right: 16px; }
  .lp-nav a:not(.btn) { display: none; }
  .lp-feats, .lp-steps { grid-template-columns: 1fr; }
  .lp-plans { grid-template-columns: 1fr; }
  .lp-trust .lp-ic-s { margin-left: 8px; }
  .lp-shot-body { padding: 12px 10px 2px; }
  .lp-shot-body .chips { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}
