/* ===== Temel ===== */
:root {
  --brand: #1f5f8b;
  --brand-dark: #174a6d;
  --brand-soft: #e6eff6;
  --accent: #f0a23b;
  --accent-soft: #fdf1e0;
  --danger: #c4321f;
  --danger-dark: #9e2414;
  --danger-soft: #fdecea;
  --warn: #b26a00;
  --warn-soft: #fff4e0;
  --ok: #1d7a46;
  --ok-soft: #e5f4ea;
  --bg: #f7f4ef;
  --card: #ffffff;
  --text: #1c2a2c;
  --muted: #637173;
  --line: #e3ded6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28,42,44,.06), 0 6px 24px rgba(28,42,44,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 28px; padding-bottom: 56px; }
.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.medium { max-width: 760px; margin-left: auto; margin-right: auto; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mt1 { margin-top: 8px; } .mt2 { margin-top: 16px; } .mt3 { margin-top: 28px; }
.mb0 { margin-bottom: 0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

/* ===== Üst menü ===== */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-admin { background: #10282b; border-bottom: 0; }
.topbar-admin .brand, .topbar-admin .mainnav a { color: #fff; }
.topbar-admin .menu-btn span { background: #fff; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.brand small { font-weight: 500; opacity: .7; font-size: .8rem; margin-left: 4px; }
.mainnav { display: flex; align-items: center; gap: 22px; }
.mainnav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.mainnav a:hover { color: var(--brand); }
.mainnav .btn { color: #fff; }
.muted-link { opacity: .65; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }
@media (max-width: 1180px) { .mainnav { gap: 14px; } .mainnav a { font-size: .9rem; } }
@media (max-width: 1000px) {
  .menu-btn { display: block; }
  .mainnav { display: none; position: absolute; top: 62px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .topbar-admin .mainnav { background: #10282b; }
  .mainnav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .topbar-admin .mainnav a { border-color: rgba(255,255,255,.12); }
  .mainnav .btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  body.menu-open .mainnav { display: flex; }
}

/* ===== Düğmeler ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, transform .05s; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-lg { padding: 16px 26px; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-light { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn-light:hover { background: #f3f1ed; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: var(--danger-dark); }
.btn-ok { background: var(--ok); }
.btn-ok:hover { background: #155c34; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.linkbtn { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* ===== Kart / uyarı ===== */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.card-tight { padding: 16px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .95rem; }
.alert-success { background: var(--ok-soft); color: #14532d; }
.alert-error { background: var(--danger-soft); color: #7f1d1d; }
.alert-info { background: var(--brand-soft); color: var(--brand-dark); }
.alert-warn { background: var(--warn-soft); color: #7a4a00; }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: #eeebe6; color: var(--muted); }
.badge-info { background: var(--brand-soft); color: var(--brand); }

/* ===== Form ===== */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: .84rem; color: var(--muted); margin-top: 5px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,95,139,.14); }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; margin-bottom: 10px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 500; font-size: .93rem; user-select: none; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(31,95,139,.25); }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.err { color: var(--danger); font-size: .85rem; margin-top: 4px; }

/* ===== Sipariş sihirbazı ===== */
.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps div { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps div.on { background: var(--brand); }
.step-title { font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.wizard-step { display: none; }
.wizard-step.on { display: block; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.contact-box { border: 1.5px dashed var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; position: relative; }
.contact-box .remove { position: absolute; top: 10px; right: 12px; }
.plan-opts { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .plan-opts { grid-template-columns: 1fr; } }
.plan-opt { position: relative; }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt .box { border: 2px solid var(--line); border-radius: 12px; padding: 16px; cursor: pointer; background: #fff; height: 100%; }
.plan-opt input:checked + .box { border-color: var(--brand); background: var(--brand-soft); }
.plan-opt .price { font-size: 1.4rem; font-weight: 700; }
.summary { background: #faf8f5; border-radius: 12px; padding: 16px; }
.summary .line { display: flex; justify-content: space-between; padding: 4px 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 1.1rem; }

/* ===== Tablo ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
tr:hover td { background: #fbfaf8; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; font-weight: 500; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }

/* ===== Ana sayfa ===== */
.hero { padding: 48px 0 24px; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .hero { padding-top: 28px; } }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); letter-spacing: -.02em; }
.hero .lead { font-size: 1.15rem; color: #3d4c4e; max-width: 560px; }
.eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.phone { width: 290px; max-width: 100%; margin: 0 auto; background: #1b1f20; border-radius: 38px; padding: 12px; box-shadow: 0 30px 60px rgba(15,40,44,.25); }
.phone-screen { background: #fff; border-radius: 28px; overflow: hidden; font-size: 13px; }
.ph-alert { background: var(--danger); color: #fff; text-align: center; padding: 10px; font-weight: 700; font-size: 12px; letter-spacing: .03em; }
.ph-body { padding: 16px; }
.ph-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg,#c9d8d6,#a7c0bd); margin: 0 auto 8px; }
.ph-name { text-align: center; font-weight: 700; font-size: 17px; }
.ph-note { background: var(--warn-soft); color: #7a4a00; border-radius: 10px; padding: 8px 10px; margin: 10px 0; font-size: 12px; }
.ph-btn { display: block; background: var(--ok); color: #fff; border-radius: 10px; text-align: center; padding: 11px; font-weight: 700; margin-bottom: 8px; }
.ph-btn.red { background: var(--danger); }
.ph-btn.light { background: #eef3f2; color: var(--brand); }
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.step-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.section-alt .step-card { background: var(--bg); box-shadow: none; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.feat { display: flex; gap: 14px; align-items: flex-start; }
.feat-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 20px; }
.feat h3 { margin-bottom: 4px; font-size: 1.05rem; }
.feat p { color: var(--muted); font-size: .95rem; margin: 0; }
.who { display: flex; flex-wrap: wrap; gap: 10px; }
.who span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 500; }
.price-card { background: #fff; border-radius: 18px; padding: 28px; box-shadow: var(--shadow); position: relative; }
.price-card.featured { border: 2px solid var(--brand); }
.price-card .tag { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price-big { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; }
.price-card ul { padding-left: 0; list-style: none; margin: 16px 0 24px; }
.price-card li { padding: 6px 0 6px 28px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
details.faq { background: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; box-shadow: var(--shadow); }
details.faq summary { font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--brand); }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 12px 0 0; color: #3d4c4e; }
.code-search { display: flex; gap: 8px; max-width: 360px; }
.code-search input { text-transform: uppercase; letter-spacing: .1em; }
.footer { background: #fff; border-top: 1px solid var(--line); padding-top: 32px; }
.footer-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: var(--brand); }

/* ===== Acil profil sayfası ===== */
body.emergency { background: #fff; }
.em-top { background: var(--danger); color: #fff; padding: 14px 16px; text-align: center; font-weight: 700; letter-spacing: .02em; }
.em-lost { background: #7f1010; color: #fff; padding: 18px 16px; text-align: center; }
.em-lost strong { display: block; font-size: 1.35rem; letter-spacing: .04em; }
.em-wrap { max-width: 520px; margin: 0 auto; padding: 20px 16px 48px; }
.em-head { text-align: center; margin-bottom: 18px; }
.em-photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 4px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.em-name { font-size: 1.8rem; font-weight: 800; margin-bottom: 2px; }
.em-sub { color: var(--muted); }
.em-cond { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.em-cond span { background: var(--danger-soft); color: var(--danger-dark); font-weight: 700; padding: 6px 12px; border-radius: 999px; font-size: .92rem; }
.em-box { border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.em-box h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.em-tips { background: var(--warn-soft); color: #5c3a00; }
.em-tips h3 { color: var(--warn); }
.em-med { background: #f5f7f7; }
.em-med h3 { color: var(--muted); }
.em-med dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; }
.em-med dt { color: var(--muted); font-size: .9rem; }
.em-med dd { margin: 0; font-weight: 600; white-space: pre-line; }
.call { display: flex; align-items: center; gap: 12px; background: var(--ok); color: #fff; text-decoration: none; padding: 16px 18px; border-radius: 14px; margin-bottom: 10px; font-weight: 700; font-size: 1.1rem; }
.call:hover { background: #155c34; }
.call small { display: block; font-weight: 500; opacity: .9; font-size: .88rem; }
.call .ic { width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 20px; }
.call-row { display: flex; gap: 8px; margin-bottom: 14px; }
.call-row .call { flex: 1; margin: 0; }
.wa { flex: none; width: 64px; display: grid; place-items: center; background: #e7f6ec; color: var(--ok); border-radius: 14px; text-decoration: none; font-weight: 700; font-size: .8rem; text-align: center; }
.call-112 { background: var(--danger); }
.call-112:hover { background: var(--danger-dark); }
.loc-btn { width: 100%; padding: 16px; border-radius: 14px; border: 2px solid var(--brand); background: var(--brand-soft); color: var(--brand-dark); font: inherit; font-weight: 700; font-size: 1.02rem; cursor: pointer; margin: 6px 0 14px; }
.loc-btn.done { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.em-foot { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 24px; }
.em-generic { text-align: center; padding-top: 32px; }
.em-generic .big112 { font-size: 3.2rem; font-weight: 800; color: var(--danger); }

/* ===== Panel ===== */
.wearer-card { display: flex; gap: 16px; align-items: flex-start; }
.wearer-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: var(--brand-soft); display: grid; place-items: center; font-size: 28px; font-weight: 700; color: var(--brand); }
.stat { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block; }
.stat b { display: block; font-size: 1.9rem; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat.hl { border-left: 4px solid var(--danger); }
.lost-on { border: 2px solid var(--danger); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.switch { position: relative; width: 50px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cfcac2; border-radius: 999px; cursor: pointer; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::before { transform: translateX(22px); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--brand); border-color: var(--brand); }
.qr-box { background: #fff; padding: 12px; border: 1px solid var(--line); border-radius: 12px; display: inline-block; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95rem; }
.iban { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .03em; word-break: break-all; }
.legal h2 { font-size: 1.15rem; margin-top: 1.6em; }
.legal { line-height: 1.7; }
@media print { .topbar, .footer, .no-print { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }

.size-guide { background: #faf8f5; border-radius: 10px; padding: 12px 16px; margin: 4px 0 8px; font-size: .92rem; }
.size-guide summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.size-guide ol { margin: 10px 0; padding-left: 20px; }
.size-big { display: inline-block; background: var(--warn-soft); color: #5c3a00; border: 2px solid #f0c36d; border-radius: 12px; padding: 10px 16px; font-size: 1.15rem; margin-bottom: 16px; }

/* ===== Uygulama (PWA) ===== */
html.is-app .hide-in-app { display: none !important; }
html.is-app .topbar { padding-top: env(safe-area-inset-top); }
html.is-app body { padding-bottom: env(safe-area-inset-bottom); }
.app-hero { display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: center; }
@media (max-width: 760px) { .app-hero { grid-template-columns: 1fr; } .app-hero .phone { display: none; } }
.os-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.os-tabs button { flex: 1; padding: 12px; border: 2px solid var(--line); background: #fff; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; }
.os-tabs button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.inst-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.inst-steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.inst-steps li:last-child { border-bottom: 0; }
.inst-steps li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.ios-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #eef3f2; vertical-align: middle; margin: 0 2px; }
.app-banner { display: flex; align-items: center; gap: 14px; }
.app-banner img { width: 48px; height: 48px; border-radius: 12px; flex: none; }

.gift-box { background: #f3faf5; border: 1.5px dashed #9fd3b0; border-radius: 12px; padding: 12px 16px; }
.gift-box summary { cursor: pointer; font-weight: 700; color: var(--ok); }

/* ===== Köpek künyesi eklemeleri ===== */
.chip-btn { border: 1.5px dashed var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .86rem; cursor: pointer; color: var(--text); text-align: left; }
.chip-btn:hover { border-color: var(--brand); color: var(--brand); }
.chip-btn[disabled] { opacity: .45; cursor: default; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.model-opt { position: relative; margin: 0; }
.model-opt input { position: absolute; opacity: 0; }
.model-opt .box { display: flex; flex-direction: column; gap: 8px; border: 2px solid var(--line); border-radius: 14px; padding: 10px; background: #fff; cursor: pointer; text-align: center; height: 100%; }
.model-opt .box img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #f3f1ed; }
.model-opt .box .noimg { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: var(--brand-soft); font-size: 2.4rem; }
.model-opt .box b { font-size: .92rem; font-weight: 600; }
.model-opt input:checked + .box { border-color: var(--brand); background: var(--brand-soft); }
.model-opt input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(31,95,139,.25); }
.model-show { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.model-show .m { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; text-align: center; }
.model-show .m img, .model-show .m .noimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; font-size: 2.6rem; margin-bottom: 8px; }
.em-top-brand { background: var(--brand); position: relative; }
.lang-sw { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #fff; font-weight: 600; font-size: .8rem; opacity: .9; }
.loc-banner { background: var(--brand-soft); color: var(--brand-dark); padding: 12px 16px; font-size: .95rem; text-align: center; border-bottom: 1px solid #d3e2ee; }
.loc-banner.ok { background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.msg-card { border: 2px solid var(--line); border-radius: 16px; padding: 16px; margin: 4px 0 14px; background: #fff; }
.msg-card h3 { margin-bottom: 6px; }
.em-chip { text-align: center; background: #f3f6f9; border-radius: 12px; padding: 10px; margin-bottom: 14px; font-size: 1.05rem; }
.em-marks { margin-top: 8px; color: #3d4c4e; font-size: .95rem; }
.em-photo-empty { display: grid; place-items: center; background: var(--brand-soft); font-size: 3rem; }
.call-2 { background: #2c6e57; }
.nav-badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; }
.topbar-admin .nav-badge { background: var(--accent); color: #1c2a2c; }
.msg-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.msg-item:last-child { border-bottom: 0; }
.msg-item.unread { background: linear-gradient(90deg, var(--accent-soft), transparent 60%); margin: 0 -16px; padding: 14px 16px; border-radius: 10px; }
.msg-body { background: #faf8f5; border-radius: 10px; padding: 10px 12px; white-space: pre-line; margin: 6px 0; }
.vac-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.vac-row:last-child { border-bottom: 0; }
.vac-due { color: var(--danger); font-weight: 700; }
.vac-soon { color: var(--warn); font-weight: 700; }
.lesson-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.lesson-list a:hover b { color: var(--brand); }
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-wrap .shield-top { position: absolute; left: 0; right: 0; top: 0; height: 64px; z-index: 2; }
.video-wrap .shield-br { position: absolute; right: 0; bottom: 0; width: 130px; height: 52px; z-index: 2; }
.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress div { height: 100%; background: var(--ok); }
.tag-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .08em; }
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lost-card { display: flex; gap: 12px; align-items: center; }
.lost-card img, .lost-card .ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.6rem; flex: none; }
.hero-paw { font-size: 1.05em; }
.price-note { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; }
