/* =============================================================================
   TempMail - public arayüz stilleri (açık/koyu tema, responsive)
   Bölümler: 1 Tokenlar · 2 Temel · 3 Bileşenler · 4 Başlık/Alt bilgi · 5 E-posta kartı
             6 Gelen kutusu · 7 Diyaloglar · 8 Sayfalar · 9 Reklam · 10 Responsive
   ============================================================================= */

/* ---------- 1. Tokenlar ---------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f4f7fc;
  --bg-glow: rgba(37, 99, 235, .10);
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --surface-3: #e7edf7;
  --hover: #f3f6fc;
  --border: #e1e8f2;
  --border-strong: #cfd9e8;
  --text: #1c2433;
  --muted: #5b6679;
  --primary: #2563eb;
  --primary-hover: #1d4fd1;
  --primary-soft: #e8f0fe;
  --primary-ink: #1e40af;
  --on-primary: #ffffff;
  --success: #12a150;
  --success-soft: #e4f6ec;
  --danger: #d93025;
  --danger-soft: #fdecea;
  --warning: #b7791f;
  --warning-soft: #fff6e0;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px rgba(31, 52, 99, .08);
  --shadow-lg: 0 20px 60px rgba(16, 24, 40, .22);
  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e131a; --bg-glow: rgba(88, 140, 255, .12);
    --surface: #151b24; --surface-2: #1a2230; --surface-3: #232d3d; --hover: #1a2230;
    --border: #263142; --border-strong: #34425a;
    --text: #e8edf5; --muted: #98a5ba;
    --primary: #3b78f0; --primary-hover: #5a8ff4; --primary-soft: rgba(91, 143, 244, .16); --primary-ink: #a9c4ff;
    --success: #34c27a; --success-soft: rgba(52, 194, 122, .14);
    --danger: #ff6b5e; --danger-soft: rgba(255, 107, 94, .14);
    --warning: #f0b445; --warning-soft: rgba(240, 180, 69, .14);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e131a; --bg-glow: rgba(88, 140, 255, .12);
  --surface: #151b24; --surface-2: #1a2230; --surface-3: #232d3d; --hover: #1a2230;
  --border: #263142; --border-strong: #34425a;
  --text: #e8edf5; --muted: #98a5ba;
  --primary: #3b78f0; --primary-hover: #5a8ff4; --primary-soft: rgba(91, 143, 244, .16); --primary-ink: #a9c4ff;
  --success: #34c27a; --success-soft: rgba(52, 194, 122, .14);
  --danger: #ff6b5e; --danger-soft: rgba(255, 107, 94, .14);
  --warning: #f0b445; --warning-soft: rgba(240, 180, 69, .14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .6);
}

/* ---------- 2. Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text);
  background: radial-gradient(1100px 520px at 50% -220px, var(--bg-glow), transparent 70%), var(--bg);
  background-repeat: no-repeat; background-color: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; border-radius: 8px; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.container--narrow { max-width: 760px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; text-decoration: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- 3. Bileşenler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px;
  font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap; text-decoration: none !important;
  transition: background-color .18s var(--ease), border-color .18s, box-shadow .18s, transform .12s, color .18s;
  user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .5; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 1rem; border-radius: 14px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .875rem; border-radius: 10px; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 1px 2px rgba(37, 99, 235, .35), 0 6px 16px rgba(37, 99, 235, .22); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-soft { background: var(--primary-soft); color: var(--primary-ink); }
.btn-soft:hover:not(:disabled) { background: color-mix(in srgb, var(--primary-soft) 70%, var(--primary) 18%); }
.btn-soft--danger { background: var(--danger-soft); color: var(--danger); }
.btn-soft--danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger-soft) 70%, var(--danger) 18%); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--hover); border-color: var(--border-strong); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(.94); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; flex: none;
  border: 0; border-radius: 12px; background: transparent; color: var(--muted);
  transition: background-color .18s, color .18s, transform .12s; list-style: none;
}
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.icon-btn:active:not(:disabled) { transform: scale(.94); }
.icon-btn:disabled { opacity: .4; }
.icon-btn--danger:hover:not(:disabled) { background: var(--danger-soft); color: var(--danger); }
.icon-btn--label { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; font-weight: 600; font-size: .85rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: .75rem; font-weight: 700; }
.chip { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: .9rem; transition: all .18s; }
.chip:hover { border-color: var(--primary); }
.chip[aria-checked="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; gap: 2px; }
.seg__btn { border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; font-size: .85rem; font-weight: 600; color: var(--muted); transition: all .18s; }
.seg__btn:hover { color: var(--text); }
.seg__btn.is-active { background: var(--surface); color: var(--primary-ink); box-shadow: var(--shadow-sm); }

.field { margin-bottom: 16px; }
.field label, .label-text { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="search"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); transition: border-color .18s, box-shadow .18s; appearance: none;
}
textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 14px) 20px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
.input-group { display: flex; align-items: stretch; }
.input-group input { border-top-right-radius: 0; border-bottom-right-radius: 0; flex: 1; min-width: 0; }
.input-group__at { display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 12px 12px 0; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.hint { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.form-error { color: var(--danger); background: var(--danger-soft); padding: 10px 14px; border-radius: 10px; font-size: .9rem; margin: 0; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md); margin-bottom: 20px; }
.alert .icon { margin-top: 3px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert--ok { background: var(--success-soft); color: var(--success); }
.alert--ok > div { color: var(--text); }
.alert--err { background: var(--danger-soft); color: var(--danger); }
.alert--err ul { color: var(--text); }

.skeleton { display: inline-block; border-radius: 10px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.skeleton--address { width: min(320px, 70vw); height: 1em; vertical-align: middle; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 4. Başlık / alt bilgi ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.header__inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 2px; margin-left: 20px; flex: 1; }
.nav__link { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; transition: all .18s; }
.nav__link:hover { color: var(--text); background: var(--surface-3); text-decoration: none; }
.nav__link.is-active { color: var(--primary-ink); background: var(--primary-soft); }
.header__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-toggle { display: none; }
.theme-icon { display: inline-grid; }
.theme-icon--dark { display: none; }
:root[data-theme="dark"] .theme-icon--light { display: none; }
:root[data-theme="dark"] .theme-icon--dark { display: inline-grid; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon--light { display: none; }
  :root:not([data-theme="light"]) .theme-icon--dark { display: inline-grid; }
}
.lang-menu { position: relative; }
.lang-menu__list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); z-index: 60; animation: pop .16s var(--ease); }
.lang-menu__list a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--text); font-weight: 500; }
.lang-menu__list a:hover { background: var(--hover); text-decoration: none; }
.lang-menu__list a[aria-current] { color: var(--primary-ink); background: var(--primary-soft); font-weight: 700; }

.site-footer { margin-top: 72px; border-top: 1px solid var(--border); background: var(--surface); }
.footer__inner { display: flex; gap: 32px; justify-content: space-between; flex-wrap: wrap; padding-top: 36px; padding-bottom: 20px; }
.footer__brand p { color: var(--muted); max-width: 360px; margin: 10px 0 0; font-size: .92rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: flex-start; }
.footer__nav a { color: var(--muted); font-weight: 500; font-size: .92rem; }
.footer__nav a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.footer__note { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 5. Hero + e-posta kartı ---------- */
.hero { padding: 52px 0 28px; text-align: center; }
.hero .container { display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; font-size: .85rem; margin: 0 0 18px; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; max-width: 760px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 680px; }
.hero .lead { margin: 0 auto; }

.app { display: grid; gap: 20px; padding-bottom: 8px; }
.mailcard { padding: 26px 28px 24px; position: relative; overflow: hidden; }
.mailcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #5b9bff, #2563eb 55%, #7fb2ff); }
.mailcard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; min-height: 36px; }
.label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.address-row { display: flex; gap: 12px; align-items: stretch; }
.address {
  flex: 1; min-width: 0; display: flex; align-items: center; text-align: left;
  padding: 0 22px; min-height: 68px; border-radius: var(--radius-md); border: 1.5px dashed color-mix(in srgb, var(--primary) 40%, var(--border));
  background: var(--primary-soft); color: var(--text); transition: all .18s;
}
.address:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary-soft) 80%, var(--primary) 8%); }
.address__text { font-size: clamp(1.15rem, 3.4vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; word-break: break-all; line-height: 1.25; font-feature-settings: "tnum"; }
.address.flash { animation: flash .7s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 40%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
#btn-copy { min-width: 150px; height: auto; }
.swap { display: inline-grid; }
.swap--b { display: none; }
#btn-copy.is-done { background: var(--success); box-shadow: none; }
#btn-copy.is-done .swap--a { display: none; }
#btn-copy.is-done .swap--b { display: inline-grid; animation: pop .25s var(--ease); }

.timer { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.timer__info { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; white-space: nowrap; }
.timer__value { color: var(--text); font-variant-numeric: tabular-nums; font-size: 1.05rem; min-width: 5.5ch; }
.timer.is-low .timer__value { color: var(--warning); }
.timer.is-critical .timer__value { color: var(--danger); animation: blink 1s infinite; }
.progress { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, #5b9bff, #2563eb); transition: width 1s linear, background-color .3s; transform-origin: left; }
.timer.is-low .progress > span { background: var(--warning); }
.timer.is-critical .progress > span { background: var(--danger); }
@keyframes blink { 50% { opacity: .55; } }

.expired-banner { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-md); background: var(--danger-soft); color: var(--danger); animation: pop .25s var(--ease); }
.expired-banner > div { flex: 1; display: flex; flex-direction: column; color: var(--text); font-size: .92rem; }
.expired-banner strong { color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.mailcard.is-expired .address { opacity: .55; text-decoration: line-through; }

.switcher { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(340px, 86vw); max-height: 360px; overflow: auto; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); animation: pop .16s var(--ease); }
.menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; color: var(--text); }
.menu__item:hover { background: var(--hover); }
.menu__item.is-active { background: var(--primary-soft); color: var(--primary-ink); }
.menu__addr { flex: 1; min-width: 0; font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu__meta { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.menu__sep { height: 1px; background: var(--border); margin: 6px 4px; }
.menu__add { color: var(--primary-ink); font-weight: 600; }

/* ---------- 6. Gelen kutusu ---------- */
.inbox { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; min-height: 560px; overflow: hidden; }
.inbox__list { display: flex; flex-direction: column; border-right: 1px solid var(--border); min-width: 0; min-height: 0; }
.inbox__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 10px 20px; }
.inbox__title { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 1.05rem; white-space: nowrap; min-width: 0; }
.inbox__tools { display: flex; align-items: center; gap: 2px; flex: none; }
.live { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: .75rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
@media (min-width: 821px) { .live__text { display: none; } }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 50%, transparent); animation: ping 2s infinite; }
.live.is-paused .live__dot { background: var(--muted); animation: none; }
.live.is-error .live__dot { background: var(--danger); animation: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
#btn-refresh.is-spinning .icon { animation: spin .8s linear infinite; }
.inbox__filters { display: flex; gap: 8px; padding: 0 14px 12px 20px; align-items: center; }
.search { position: relative; flex: 1; min-width: 0; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { height: 38px; padding-left: 36px; border-radius: 10px; background: var(--surface-2); border-color: transparent; font-size: .9rem; }
.search input:focus { background: var(--surface); }

.msg-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 0; border-top: 1px solid var(--border); }
.msg { border-bottom: 1px solid var(--border); }
.msg.is-new { animation: slideIn .35s var(--ease); }
.msg__btn { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 16px 14px 20px; border: 0; background: var(--surface-2); text-align: left; position: relative; transition: background-color .15s; }
.msg.is-unread .msg__btn { background: var(--surface); }
.msg__btn:hover { background: var(--hover); }
.msg.is-active .msg__btn { background: var(--primary-soft); }
.msg.is-unread .msg__btn::before { content: ""; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--primary); }
.msg__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.msg__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.msg__from { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.msg.is-unread .msg__from, .msg.is-unread .msg__subject { font-weight: 700; }
.msg__time { flex: none; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.msg.is-unread .msg__time { color: var(--primary-ink); font-weight: 600; }
.msg__subject { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg__preview { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg__clip { color: var(--muted); flex: none; align-self: center; }
.avatar { --h: 215; flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 700; font-size: 1rem; color: hsl(var(--h) 55% 28%); background: hsl(var(--h) 80% 90%); text-transform: uppercase; }
:root[data-theme="dark"] .avatar { color: hsl(var(--h) 85% 85%); background: hsl(var(--h) 40% 28%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar { color: hsl(var(--h) 85% 85%); background: hsl(var(--h) 40% 28%); } }
.msg.is-new .msg__btn { animation: newflash 2.2s var(--ease); }
@keyframes newflash { 0% { background: var(--primary-soft); } 100% { background: var(--surface); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 28px; color: var(--muted); border-top: 1px solid var(--border); }
.empty h3 { color: var(--text); font-size: 1.05rem; margin: 18px 0 6px; }
.empty p { max-width: 300px; margin: 0; font-size: .92rem; }
.radar { position: relative; width: 84px; height: 84px; display: grid; place-items: center; color: var(--primary); }
.radar .icon { width: 30px; height: 30px; position: relative; z-index: 1; }
.radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; animation: radar 3s infinite var(--ease); }
.radar span:nth-child(2) { animation-delay: 1s; }
.radar span:nth-child(3) { animation-delay: 2s; }
.radar::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: var(--primary-soft); }
@keyframes radar { 0% { transform: scale(.5); opacity: .6; } 100% { transform: scale(1.25); opacity: 0; } }

.inbox__view { min-width: 0; display: flex; flex-direction: column; background: var(--surface); }
.view-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); }
.view-empty .icon { width: 56px; height: 56px; stroke-width: 1.4; opacity: .5; }
.view-empty p { margin: 0; }
.view { display: flex; flex-direction: column; flex: 1; min-height: 0; animation: fadeIn .25s var(--ease); }
.view__head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 6px 22px; }
.view__subject { flex: 1; min-width: 0; margin: 0; font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }
.view__actions { display: flex; gap: 2px; flex: none; }
.view__back { display: none; margin-left: -8px; }
.view__meta { display: flex; align-items: center; gap: 12px; padding: 10px 22px 14px; }
.view__people { flex: 1; min-width: 0; font-size: .9rem; }
.view__from { overflow-wrap: anywhere; }
.view__from span { color: var(--muted); }
.view__to { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.view__date { flex: none; color: var(--muted); font-size: .8rem; text-align: right; }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 12px; }
.att { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-2); color: var(--text); font-size: .85rem; font-weight: 600; transition: all .18s; }
.att:hover { border-color: var(--primary); background: var(--primary-soft); text-decoration: none; }
.att__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.att__size { color: var(--muted); font-weight: 500; font-size: .78rem; }
.notice { display: flex; align-items: center; gap: 10px; margin: 0 22px 12px; padding: 10px 14px; border-radius: 12px; background: var(--warning-soft); color: var(--warning); font-size: .88rem; }
.notice span { flex: 1; color: var(--text); }
.view__tabs { padding: 0 22px 10px; }
.view__body { flex: 1; min-height: 240px; padding: 0 22px 22px; display: flex; flex-direction: column; }
.view__body iframe { width: 100%; flex: 1; min-height: 340px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; color-scheme: light; }
.view__text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.65; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); flex: 1; overflow: auto; }
.view__text a { word-break: break-all; }
.spinner { display: inline-grid; animation: spin 1s linear infinite; }
.spinner .icon { width: 40px; height: 40px; color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 7. Diyaloglar / toast ---------- */
.modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; }
.modal--sm { width: min(420px, calc(100vw - 32px)); }
.modal[open] { animation: modalIn .22s var(--ease); display: block; }
.modal::backdrop { background: rgba(10, 16, 28, .5); backdrop-filter: blur(3px); animation: fadeIn .2s; }
.modal__form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px 24px; }
.modal__head h2 { margin: 0; font-size: 1.15rem; display: inline-flex; align-items: center; gap: 10px; }
.modal__body { padding: 12px 24px 8px; overflow: auto; }
.modal__body--center { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 20px; }
.qr-box { padding: 14px; background: #fff; border-radius: 16px; border: 1px solid var(--border); line-height: 0; }
.qr-box canvas { width: 220px; height: 220px; image-rendering: pixelated; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

.toast-region { position: fixed; z-index: 90; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: min(460px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: #1c2433; color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .92rem; pointer-events: auto; animation: toastIn .3s var(--ease); max-width: 100%; }
:root[data-theme="dark"] .toast { background: #e8edf5; color: #0e131a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: #e8edf5; color: #0e131a; } }
.toast--error { background: var(--danger); color: #fff; }
.toast.is-leaving { animation: toastOut .25s var(--ease) forwards; }
.toast .icon { flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- 8. Sayfalar ---------- */
.section { padding: 64px 0 8px; }
.section--alt { padding: 64px 0; margin-top: 56px; background: var(--surface); border-block: 1px solid var(--border); }
.section__title { text-align: center; font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 32px; }
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.feature { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.feature__icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.steps { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 18px; max-width: 820px; counter-reset: s; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 800; }
.step h2, .step h3 { font-size: 1.1rem; margin: 6px 0 4px; }
.step p { color: var(--muted); margin: 0; }
.steps--large { margin: 36px 0 44px; }
.accordion { display: grid; gap: 10px; margin-bottom: 28px; }
.acc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); transition: box-shadow .2s; }
.acc[open] { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.acc summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { color: var(--muted); transition: transform .2s var(--ease); }
.acc[open] summary .icon { transform: rotate(180deg); }
.acc p { padding: 0 20px 18px; margin: 0; color: var(--muted); }
.prose-page { padding-top: 48px; }
.prose-page h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; }
.prose-page h2 { font-size: 1.3rem; margin-top: 2em; }
.prose-page p, .prose-page li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.checklist { list-style: none; padding: 0; display: grid; gap: 12px; margin: 16px 0 32px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--success); margin-top: 4px; }
.form-card { padding: 26px; margin-bottom: 28px; }
.landing { padding-top: 96px; padding-bottom: 40px; }
.landing .spinner { margin-bottom: 18px; }
.error-code { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; background: var(--primary-soft); color: var(--primary); margin-bottom: 20px; }
.error-code .icon { width: 40px; height: 40px; }

/* ---------- 9. Reklam alanları ---------- */
.ad-slot { max-width: 1120px; margin: 18px auto; padding: 0 20px; text-align: center; overflow: hidden; }
.ad-label { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-body { display: flex; justify-content: center; min-height: 0; overflow: hidden; }
.ad-body > * { max-width: 100%; }
.ad-dev-mobile { display: none; }

/* ---------- 10. Responsive ---------- */
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .inbox { grid-template-columns: minmax(280px, 340px) 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-grid; }
  .nav { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; margin: 0; padding: 10px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: flex; animation: pop .18s var(--ease); }
  .nav__link { padding: 12px 14px; }
  .header__inner { gap: 8px; }
  .ad-dev-desktop { display: none; }
  .ad-dev-mobile { display: block; }

  /* Gelen kutusu: liste -> mesaj tek sütun */
  .inbox { grid-template-columns: 1fr; min-height: 0; }
  .inbox__list { border-right: 0; min-height: 420px; }
  .inbox__view { display: none; }
  .inbox.is-reading .inbox__list { display: none; }
  .inbox.is-reading .inbox__view { display: flex; }
  .view__back { display: inline-grid; }
  .view__body { min-height: 0; }
  .view__body iframe { min-height: 240px; }
  .view__text { min-height: 140px; flex: none; }
  .view__subject { font-size: 1.1rem; }
  .view__meta { flex-wrap: wrap; }
  .view__date { width: 100%; text-align: left; padding-left: 52px; margin-top: -6px; }
}
@media (max-width: 640px) {
  .hero { padding: 36px 0 20px; }
  .mailcard { padding: 20px 16px 18px; }
  .address-row { flex-direction: column; }
  .address { min-height: 60px; padding: 0 16px; }
  #btn-copy { width: 100%; height: 50px; }
  .timer { flex-direction: column; align-items: stretch; gap: 10px; }
  .actions > .btn { flex: 1 1 calc(50% - 10px); padding: 0 10px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .section, .section--alt { padding-top: 44px; }
  .live__text { display: none; }
  .msg__btn { padding-left: 18px; }
  .form-card { padding: 18px; }
  .footer__inner { flex-direction: column; gap: 18px; }
  .modal__body, .modal__head, .modal__foot { padding-left: 18px; padding-right: 18px; }
}
@media (hover: none) { .feature:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .site-footer, .mailcard, .inbox__list, .ad-slot, .toast-region { display: none !important; } }
