/* ==========================================================================
   DilArk — Kültürel Veri Derleme Platformu
   Görsel dil: lacivert + kırmızı, cam efektli üst menü, dalgalı bölüm geçişleri
   ========================================================================== */

:root {
    /* Kurumsal palet */
    --navy-900: #081c33;
    --navy-800: #0a2347;
    --navy: #0d2d62;
    --navy-600: #1c4386;
    --blue-400: #5b86c9;

    --accent-700: #6b1125;
    --accent: #b81f36;
    --accent-400: #cd2147;
    --accent-300: #e2586f;
    --accent-200: #f3b3bf;

    --white: #ffffff;
    --gray-50: #f7fafc;
    --gray-100: #edf2f7;
    --gray-200: #dfe5ec;
    --gray-300: #c6d0da;
    --gray-400: #9aa8b8;
    --gray-500: #6b7c91;
    --gray-600: #3c4a5c;
    --gray-700: #2c3e50;
    --gray-800: #1e2a38;

    --success: #2f855a;
    --warning: #b7791f;
    --error: #c53030;
    --info: #2b6cb0;

    /* Gradyanlar */
    --grad-navy: linear-gradient(135deg, #081c33 0%, #0d2d62 50%, #1c4386 100%);
    --grad-accent: linear-gradient(135deg, #6b1125 0%, #b81f36 45%, #e2586f 100%);
    --grad-mixed: linear-gradient(135deg, #081c33 0%, #0d2d62 42%, #1c4386 66%, #7d1a2c 100%);
    --grad-line: linear-gradient(90deg, #0d2d62 0%, #1c4386 22%, #5b86c9 45%, #b81f36 70%, #e2586f 100%);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --max: 1200px;

    --font: "Inter", "Segoe UI", "Candara", "Calibri", sans-serif;
    --serif: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;

    --shadow-sm: 0 1px 2px rgba(10, 35, 71, 0.06);
    --shadow-md: 0 6px 18px -8px rgba(10, 35, 71, 0.16), 0 2px 6px -2px rgba(10, 35, 71, 0.06);
    --shadow-lg: 0 20px 40px -22px rgba(10, 35, 71, 0.28), 0 6px 16px -8px rgba(10, 35, 71, 0.10);
    --shadow-glow: 0 0 0 4px rgba(184, 31, 54, 0.14);

    --t-fast: 160ms ease;
    --t: 300ms ease;
}

* { box-sizing: border-box; }

/* display tanımlayan sınıflar, hidden özniteliğini ezmesin */
[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
}

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 78px;
}

a { color: var(--navy); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--navy-600); }
img { max-width: 100%; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 700;
    letter-spacing: -0.022em;
    color: var(--gray-800);
}
h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12; margin: 0 0 14px; font-weight: 800; }
h2 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 8px; font-weight: 700; }
h4 { font-size: 16px; margin: 0 0 6px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.wide { --max: 1320px; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    padding: 6px 15px;
    font-family: var(--serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--navy-600);
    background: rgba(13, 45, 98, 0.06);
    border: 1px solid rgba(13, 45, 98, 0.16);
    border-radius: 999px;
}
.kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(184, 31, 54, 0.18);
    animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(184, 31, 54, 0.18); }
    50%      { box-shadow: 0 0 0 8px rgba(184, 31, 54, 0.04); }
}

.lead { font-size: 17px; line-height: 1.75; color: var(--gray-600); max-width: 68ch; }
.muted { color: var(--gray-500); }
.small { font-size: 13px; }
.hint { font-size: 12px; color: var(--gray-500); }
.err { color: var(--error); font-size: 12.5px; }

.grad-text {
    background: linear-gradient(135deg, #0d2d62 0%, #b81f36 60%, #e2586f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 220% 220%;
    animation: grad-shift 9s ease-in-out infinite;
}
@keyframes grad-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ==========================================================================
   ÜST MENÜ — cam efektli, sabit
   ========================================================================== */
.top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 78px;
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid rgba(10, 35, 71, 0.06);
    box-shadow: 0 8px 24px -14px rgba(10, 35, 71, 0.10);
    transition: background var(--t), min-height var(--t), box-shadow var(--t);
}
.top::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(13, 45, 98, 0.18) 16%, rgba(201, 162, 74, 0.55) 42%, rgba(184, 31, 54, 0.55) 62%, rgba(13, 45, 98, 0.16) 84%, transparent 100%);
    pointer-events: none;
}
.top.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    min-height: 66px;
    box-shadow: 0 12px 32px -18px rgba(10, 35, 71, 0.22);
}
.top-inner {
    --max: 1400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 78px;
    transition: min-height var(--t);
}
.top.is-scrolled .top-inner { min-height: 66px; }

.brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.brand-mark {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: block;
    border-radius: 14px;
    box-shadow:
        0 0 0 1px rgba(201, 162, 74, 0.18),
        0 8px 18px -8px rgba(16, 32, 58, 0.55);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.brand:hover .brand-mark {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(201, 162, 74, 0.4),
        0 14px 26px -10px rgba(16, 32, 58, 0.5);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-800);
    letter-spacing: -0.01em;
}
.brand-text small {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.nav {
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
    gap: 3px;
    padding: 5px;
    background: rgba(247, 250, 252, 0.7);
    border: 1px solid rgba(10, 35, 71, 0.06);
    border-radius: 999px;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
    position: relative;
    flex: 0 0 auto;
    padding: 8px 13px;
    border-radius: 999px;
    font-family: var(--serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
    transition: color var(--t-fast), background var(--t-fast), box-shadow var(--t);
}
.nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(13, 45, 98, 0.07) 0%, rgba(184, 31, 54, 0.12) 100%);
    opacity: 0;
    transition: opacity var(--t);
    z-index: -1;
}
.nav a:hover { color: var(--navy); }
.nav a:hover::before { opacity: 1; }
.nav a.is-on {
    color: #fff;
    background: linear-gradient(135deg, #0d2d62 0%, #1c4386 100%);
    box-shadow: 0 5px 14px -4px rgba(13, 45, 98, 0.42),
                inset 0 1px 0 rgba(255, 255, 255, 0.14),
                inset 0 -2px 0 rgba(226, 88, 111, 0.9);
}

.top-user { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.who { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; max-width: 170px; }
.who strong {
    max-width: 170px;
    font-family: var(--serif);
    font-size: 13px;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.who small { font-size: 10.5px; color: var(--gray-500); white-space: nowrap; }
.inline { display: inline; margin: 0; }

.nav-badge {
    display: inline-block;
    margin-left: 6px;
    min-width: 19px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--grad-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px -1px rgba(107, 17, 37, 0.5);
}
.nav a.is-on .nav-badge { background: #fff; color: var(--navy); }

.menu-toggle {
    display: none;
    width: 44px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(10, 35, 71, 0.12);
    border-radius: 12px;
    background: #fff;
    color: var(--navy);
    font-size: 18px;
    cursor: pointer;
}

/* ==========================================================================
   DÜĞMELER
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: none;
    border-radius: 12px;
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid {
    background: linear-gradient(135deg, #0d2d62 0%, #1c4386 100%);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(13, 45, 98, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-solid:hover {
    background: linear-gradient(135deg, #1c4386 0%, #0d2d62 100%);
    color: #fff;
    box-shadow: 0 14px 26px -10px rgba(13, 45, 98, 0.55), var(--shadow-glow);
}

.btn-pine {
    background: var(--grad-accent);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(107, 17, 37, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-pine:hover {
    color: #fff;
    box-shadow: 0 14px 26px -10px rgba(107, 17, 37, 0.55), 0 0 0 4px rgba(13, 45, 98, 0.10);
}

.btn-line, .btn-ghost.dark {
    background: #fff;
    color: var(--navy);
    border: 1.5px solid rgba(13, 45, 98, 0.18);
    box-shadow: 0 3px 10px -6px rgba(13, 45, 98, 0.18);
}
.btn-line:hover, .btn-ghost.dark:hover {
    background: linear-gradient(135deg, #ffffff 0%, #fdf4f6 100%);
    border-color: rgba(184, 31, 54, 0.55);
    color: var(--accent-700);
    box-shadow: 0 12px 22px -12px rgba(13, 45, 98, 0.2), var(--shadow-glow);
}

.btn-ghost {
    background: rgba(247, 250, 252, 0.8);
    color: var(--gray-700);
    border: 1px solid rgba(10, 35, 71, 0.1);
}
.btn-ghost:hover { color: var(--navy); border-color: rgba(184, 31, 54, 0.5); background: #fff; }

.btn-warn {
    background: linear-gradient(135deg, #9c4221 0%, #c05621 100%);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(156, 66, 33, 0.45);
}
.btn-warn:hover { color: #fff; box-shadow: 0 14px 26px -10px rgba(156, 66, 33, 0.5); }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 14px; }

/* ==========================================================================
   BİLDİRİM
   ========================================================================== */
.main { padding: 30px 0 70px; position: relative; z-index: 0; }
.main:not(.main-flush)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 340px;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 100% at 20% 0%, rgba(13, 45, 98, 0.07) 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(ellipse 60% 100% at 85% 0%, rgba(184, 31, 54, 0.09) 0%, rgba(255, 255, 255, 0) 70%);
}
.main-flush { padding-top: 0; padding-bottom: 0; }

.flash {
    width: min(var(--max), calc(100% - 40px));
    margin: 18px auto 0;
    padding: 13px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    box-shadow: var(--shadow-md);
    animation: fade-up 0.5s ease-out;
}
.flash-ok { background: #eaf6ef; border-color: #b6dcc5; color: #22543d; }
.flash-err { background: #fdeceb; border-color: #f2bdb7; color: #822727; }

/* ==========================================================================
   HERO — koyu lacivert, ızgara, ışık lekeleri, dalga geçişi
   ========================================================================== */
.hero-section {
    position: relative;
    margin-top: -78px;
    padding: 150px 0 130px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(247, 250, 252, 0.9) 0%, rgba(247, 250, 252, 0.5) 5%, rgba(214, 226, 242, 0.22) 12%, rgba(255, 255, 255, 0) 26%),
        linear-gradient(135deg, #081c33 0%, #0a2347 35%, #0d2d62 70%, #1c4386 100%);
}
.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 320px;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.18) 35%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 2;
}
.hero-section > .wrap { position: relative; z-index: 4; }
.hero-section h1 { color: #fff; }
.hero-section .kicker {
    color: var(--accent-300);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(226, 88, 111, 0.32);
}
.hero-section .lead { color: rgba(233, 240, 248, 0.86); }
.hero-section .grad-text,
.band-dark .grad-text,
.band-gradient .grad-text {
    background: linear-gradient(135deg, #ff6b7f 0%, #ffc2cc 42%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle at 18% 78%, rgba(91, 134, 201, 0.28) 0%, transparent 50%),
        radial-gradient(circle at 82% 18%, rgba(107, 17, 37, 0.16) 0%, transparent 50%),
        radial-gradient(circle at 45% 45%, rgba(28, 67, 134, 0.22) 0%, transparent 55%);
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}
.hero-glow-1 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(91, 134, 201, 0.55) 0%, transparent 70%);
    top: -130px; left: -120px;
    animation: glow-float-1 22s ease-in-out infinite;
}
.hero-glow-2 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(107, 17, 37, 0.34) 0%, transparent 70%);
    bottom: -170px; right: -150px;
    animation: glow-float-2 28s ease-in-out infinite;
}
@keyframes glow-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(60px, 40px) scale(1.08); }
}
@keyframes glow-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-50px, -40px) scale(1.06); }
}

/* Fare takipli yumuşak spot ışığı */
.spotlight-host { --mx: 50%; --my: 50%; position: relative; }
.spot-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    background: radial-gradient(600px circle at var(--mx) var(--my), rgba(91, 134, 201, 0.24), rgba(184, 31, 54, 0.06) 32%, transparent 66%);
    transition: background 120ms linear;
}
.panel.spotlight-host .spot-layer,
.card.spotlight-host .spot-layer {
    mix-blend-mode: normal;
    background: radial-gradient(320px circle at var(--mx) var(--my), rgba(184, 31, 54, 0.12), rgba(13, 45, 98, 0.05) 40%, transparent 70%);
    border-radius: inherit;
}
@media (hover: none), (pointer: coarse) {
    .spot-layer { display: none; }
}

#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
}
@media (hover: none), (pointer: coarse) {
    #cursor-trail { display: none; }
}

/* Hero içi bileşenler */
.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}
.hero-card {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 50px -28px rgba(4, 12, 24, 0.7);
    color: #eaf1f8;
}
.hero-card h3 { color: #fff; }
.hero-card .small, .hero-card .muted { color: rgba(226, 236, 246, 0.72); }
.hero-card .stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.hero-card .stat {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
}
.hero-card .stat b {
    background: linear-gradient(135deg, #ff6b7f 0%, #ffd9df 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-card .stat span { color: rgba(226, 236, 246, 0.7); }
.hero-card .progress { background: rgba(255, 255, 255, 0.16); }
.hero-card .progress > i { background: linear-gradient(90deg, #cd2147 0%, #f08099 100%); }

.hero-scroll-cue {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 34px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(226, 236, 246, 0.6);
}
.hero-scroll-line {
    position: relative;
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}
.hero-scroll-line::after {
    content: "";
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, transparent 0%, var(--accent-300) 100%);
    animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue {
    0% { top: -50%; }
    100% { top: 100%; }
}

/* ==========================================================================
   DALGALI BÖLÜM GEÇİŞLERİ
   ========================================================================== */
.wave {
    position: relative;
    display: block;
    width: 100%;
    line-height: 0;
    font-size: 0;
    pointer-events: none;
    overflow: hidden;
}
.wave svg { display: block; width: 100%; height: 104px; }
.wave + section, section + .wave { margin-top: -1px; }
.wave-inside {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 100px;
    z-index: 3;
    pointer-events: none;
}
.wave-inside svg { display: block; width: 100%; height: 100%; }

/* Bölüm zeminleri */
.band { position: relative; padding: 74px 0; overflow: hidden; }
.band-light { background: var(--white); }
.band-soft { background: var(--gray-50); }
.band-dark { background: var(--gray-800); color: #dde5ee; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lead, .band-dark p { color: rgba(226, 232, 240, 0.78); }
.band-dark .kicker {
    color: var(--accent-300);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(226, 88, 111, 0.28);
}
.band-dark .card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #dde5ee;
}
.band-dark .card h3 { color: #fff; }
.band-gradient {
    background: var(--grad-mixed);
    color: #fff;
}
.band-gradient h1, .band-gradient h2, .band-gradient h3 { color: #fff; }
.band-gradient p, .band-gradient .lead { color: rgba(255, 255, 255, 0.88); }

/* ==========================================================================
   PANEL / KART / İSTATİSTİK
   ========================================================================== */
.panel {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-mixed);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(184, 31, 54, 0.35);
    box-shadow: var(--shadow-lg);
}
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 8px; }
.card ul { margin: 8px 0 0; padding-left: 18px; }
.card li { margin-bottom: 4px; }

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d2d62 0%, #1c4386 60%, #b81f36 100%);
    color: #fff;
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 8px 18px -8px rgba(13, 45, 98, 0.5);
}
.band-dark .card-icon { box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6); }

.stat {
    position: relative;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat b {
    display: block;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0d2d62 0%, #1c4386 55%, #b81f36 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat span { display: block; margin-top: 3px; font-size: 12px; color: var(--gray-500); }

.progress {
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--gray-100);
    overflow: hidden;
}
.progress > i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0d2d62 0%, #1c4386 60%, #5b86c9 100%);
    transition: width 900ms cubic-bezier(0.4, 0, 0.2, 1);
}
.progress.warn > i { background: var(--grad-accent); }
.progress.bad > i { background: linear-gradient(90deg, #9c4221 0%, #c05621 100%); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.section { margin: 44px 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 18px;
}
.text-center { text-align: center; }
.text-center .lead { margin-left: auto; margin-right: auto; }
.text-center .kicker { justify-content: center; }

.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.step::before {
    counter-increment: step;
    content: counter(step);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13, 45, 98, 0.10) 0%, rgba(184, 31, 54, 0.18) 100%);
    color: var(--navy);
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 800;
}
.step strong { font-family: var(--serif); color: var(--gray-800); }
.step p { margin: 2px 0 0; }

.scenario {
    position: relative;
    padding: 2px 0 2px 18px;
    margin: 0 0 18px;
}
.scenario::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 3px;
    background: var(--grad-mixed);
}

/* ==========================================================================
   TABLO
   ========================================================================== */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
th {
    font-family: var(--serif);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--gray-500);
    background: var(--gray-50);
    position: sticky;
    top: 0;
    z-index: 1;
}
tbody tr { transition: background var(--t-fast); }
tbody tr:hover td { background: rgba(13, 45, 98, 0.035); }

/* ==========================================================================
   ETİKETLER
   ========================================================================== */
.pill {
    display: inline-block;
    padding: 3px 11px;
    margin: 0 3px 3px 0;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--gray-600);
    white-space: nowrap;
}
.pill-draft { background: var(--gray-100); border-color: var(--gray-200); color: var(--gray-600); }
.pill-peer { background: #eaf1fb; border-color: #c3d7f2; color: var(--info); }
.pill-ok { background: #e8f5ee; border-color: #b6dcc5; color: var(--success); }
.pill-back { background: #fdeceb; border-color: #f2bdb7; color: var(--error); }
.pill-admin { background: #fdeff2; border-color: #f3c9d1; color: var(--accent-700); }
.pill-val { background: #eaf1fb; border-color: #c3d7f2; color: var(--info); }

/* ==========================================================================
   FORM
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 24px; align-items: start; }
.fields { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--serif); font-size: 13px; font-weight: 700; color: var(--gray-700); }
.req::after { content: " *"; color: var(--error); }
.opt {
    margin-left: 4px;
    font-family: var(--font);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--gray-500);
}

/* İsteğe bağlı alanlar için katlanır bölüm */
.more {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 10px 14px;
    background: var(--gray-50);
}
.more > summary {
    cursor: pointer;
    font-family: var(--serif);
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-700);
    list-style: none;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "＋ "; color: var(--accent); font-weight: 700; }
.more[open] > summary::before { content: "－ "; }
.more > summary:hover { color: var(--navy); }

.field input, .field select, .field textarea, .filters input, .filters select {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    color: var(--gray-800);
    font-family: inherit;
    font-size: 14.5px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.field textarea.tall { min-height: 230px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gray-300); }
.field input:focus, .field select:focus, .field textarea:focus,
.filters input:focus, .filters select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

/* Listelerde "Diğer" seçilince açılan elle giriş kutusu */
.other-box {
    display: grid;
    gap: 5px;
    margin-top: 8px;
    padding: 11px 13px;
    border: 1px dashed rgba(184, 31, 54, 0.34);
    border-radius: 12px;
    background: linear-gradient(135deg, #fdf8f9 0%, #fdeff2 100%);
    animation: fade-up 0.35s ease-out;
}
.other-box .hint { color: #7a1526; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1.5px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-fast);
}
.check:hover { border-color: var(--accent); }
.check:has(input:checked) {
    background: linear-gradient(135deg, rgba(13, 45, 98, 0.08) 0%, rgba(184, 31, 54, 0.16) 100%);
    border-color: rgba(184, 31, 54, 0.6);
    color: var(--navy);
}

.checklist { display: grid; gap: 4px; }
.checklist label {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 13.5px;
    transition: background var(--t-fast);
}
.checklist label:hover { background: var(--gray-50); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.side-sticky { position: sticky; top: 96px; display: grid; gap: 14px; }

.risk {
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    font-size: 13px;
    font-weight: 600;
}
.risk-dusuk { background: #e8f5ee; border-color: #b6dcc5; color: #22543d; }
.risk-orta { background: #fdf4e2; border-color: #ecd49b; color: #744210; }
.risk-yuksek { background: #fdeee2; border-color: #f0c39a; color: #7b341e; }
.risk-kritik { background: #fdeceb; border-color: #f2bdb7; color: #822727; }

.similar-item { padding: 10px 0; border-bottom: 1px solid var(--gray-200); font-size: 13px; }
.similar-item:last-child { border-bottom: 0; }

.combo { position: relative; }
.combo-list {
    display: none;
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: 260px;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
}
.combo.is-open .combo-list { display: block; }
.combo-list button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font: inherit;
    font-size: 13.5px;
    color: var(--gray-700);
    cursor: pointer;
}
.combo-list button:hover, .combo-list button.is-on {
    background: linear-gradient(135deg, rgba(13, 45, 98, 0.07) 0%, rgba(184, 31, 54, 0.14) 100%);
    color: var(--navy);
}

/* ==========================================================================
   İSTATİSTİK GÖRSELLERİ
   ========================================================================== */
.bar-list { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 70px; gap: 10px; align-items: center; font-size: 13px; }
.bar {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: var(--gray-100);
    overflow: hidden;
}
.bar > i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0d2d62 0%, #1c4386 65%, #5b86c9 100%);
    transition: width 900ms cubic-bezier(0.4, 0, 0.2, 1);
}
.bar > em {
    position: absolute;
    top: -3px;
    width: 2px;
    height: 16px;
    background: var(--accent-700);
    border-radius: 2px;
}
.bar.bad > i { background: linear-gradient(90deg, #9c4221 0%, #c05621 100%); }

.chart-box { height: 230px; position: relative; }
canvas { display: block; width: 100%; height: 100%; }

.heat { width: 100%; font-size: 12px; }
.heat td { text-align: center; padding: 4px; }
.heat th { position: static; }
.heat .cell { display: block; padding: 7px 0; border-radius: 8px; font-weight: 700; }

/* ==========================================================================
   LİSTE / FİLTRE / KUYRUK
   ========================================================================== */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    margin-bottom: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}
.filters input, .filters select { width: auto; min-width: 150px; flex: 0 1 auto; }
.filters input[type="search"] { flex: 1 1 240px; }

.pager { display: flex; gap: 10px; align-items: center; margin-top: 18px; font-size: 13px; color: var(--gray-500); }

.warn-banner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 13px 16px;
    margin-bottom: 18px;
    border: 1px solid #ecd49b;
    border-left: 4px solid var(--warning);
    border-radius: 12px;
    background: linear-gradient(135deg, #fdf7e8 0%, #fdf1dc 100%);
    color: #744210;
    font-size: 13.5px;
    font-weight: 600;
}
.warn-banner::before { content: "!"; font-weight: 800; color: #744210; }
.warn-inline {
    margin: 0 0 10px;
    padding: 7px 10px;
    border-left: 3px solid var(--warning);
    border-radius: 0 8px 8px 0;
    background: #fdf7e8;
    color: #744210;
    font-size: 12px;
    font-weight: 600;
}

.queue-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.queue-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--gray-600);
    font-family: var(--serif);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all var(--t);
}
.queue-tab:hover { border-color: rgba(184, 31, 54, 0.5); color: var(--navy); transform: translateY(-2px); }
.queue-tab.is-on {
    background: linear-gradient(135deg, #0d2d62 0%, #1c4386 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(13, 45, 98, 0.45);
}
.queue-tab.is-on .nav-badge { background: #fff; color: var(--navy); }

.queue-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
.queue-card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.queue-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-mixed);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
}
.queue-card:hover {
    transform: translateY(-5px);
    border-color: rgba(184, 31, 54, 0.35);
    box-shadow: var(--shadow-lg);
}
.queue-card:hover::before { transform: scaleX(1); }
.queue-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.queue-card-top strong { font-family: var(--serif); color: var(--navy); }
.queue-excerpt {
    white-space: pre-wrap;
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--gray-50);
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--gray-700);
}

.record-text {
    white-space: pre-wrap;
    padding: 20px 22px;
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--navy);
    border-radius: 14px;
    background: var(--gray-50);
    font-size: 16px;
    line-height: 1.85;
    color: var(--gray-800);
}

.meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; font-size: 14px; }
.meta-grid dt { font-family: var(--serif); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gray-500); }
.meta-grid dd { margin: 0 0 10px; color: var(--gray-700); }

/* ==========================================================================
   GİRİŞ EKRANI
   ========================================================================== */
.login-shell {
    position: relative;
    overflow: hidden;
    margin-top: -78px;
    padding: 130px 0 130px;
    background:
        linear-gradient(180deg, rgba(247, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0) 22%),
        linear-gradient(135deg, #081c33 0%, #0a2347 40%, #0d2d62 100%);
}
.login-box {
    position: relative;
    z-index: 4;
    width: min(520px, calc(100% - 40px));
    margin: 0 auto;
}
.login-shell .login-box h1 { color: #fff; }
.login-shell .login-box > .muted { color: rgba(226, 236, 246, 0.78); }
.login-shell .kicker {
    color: var(--accent-300);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(226, 88, 111, 0.3);
}
.cred-table td { font-size: 12.5px; }

/* ==========================================================================
   ALT BİLGİ
   ========================================================================== */
.foot {
    position: relative;
    padding: 46px 0 34px;
    background: var(--grad-navy);
    color: rgba(226, 236, 246, 0.72);
    font-size: 13px;
}
.foot::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-line);
    opacity: 0.7;
}
.foot-inner p { margin: 6px 0; }
.foot-mark {
    display: block;
    margin-bottom: 14px;
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(201, 162, 74, 0.28), 0 10px 24px -14px rgba(4, 12, 24, 0.9);
}
.foot-inner strong { color: #fff; }

/* ==========================================================================
   GİRİŞ ANİMASYONLARI
   ========================================================================== */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fade-up 0.8s ease-out both; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: 90ms; }
.reveal-2 { transition-delay: 180ms; }
.reveal-3 { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   DUYARLI DÜZEN
   ========================================================================== */
@media (max-width: 1360px) {
    .top-user .who { display: none; }
}

@media (max-width: 1180px) {
    .brand-text small { display: none; }
    .brand-mark { width: 42px; height: 42px; border-radius: 12.5px; }
    .nav a { padding: 8px 11px; font-size: 12.5px; }
}

@media (max-width: 1100px) {
    .form-grid { grid-template-columns: 1fr; }
    .side-sticky { position: static; }
    .bar-row { grid-template-columns: 120px 1fr 60px; }
}

@media (max-width: 900px) {
    body { padding-top: 70px; }
    .top { min-height: 70px; }
    .top-inner { min-height: 70px; flex-wrap: wrap; gap: 10px; }
    .menu-toggle { display: inline-flex; }
    .nav {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        border-radius: var(--radius);
        padding: 8px;
        margin-bottom: 10px;
        background: #fff;
        box-shadow: var(--shadow-md);
    }
    .top.is-open .nav { display: flex; }
    .nav a { border-radius: 10px; }
    .nav a.is-on::after { display: none; }
    .hero-section, .login-shell { margin-top: -70px; padding-top: 120px; }
    .hero, .form-grid, .grid-2, .grid-3, .grid-4, .row-2, .row-3, .meta-grid, .queue-grid, .hero-card .stat-row {
        grid-template-columns: 1fr;
    }
    .band { padding: 56px 0; }
    .wave svg { height: 64px; }
    .wave-inside { height: 60px; }
    .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
    .wrap { width: calc(100% - 28px); }
    .top-user .who { display: none; }
    .filters input, .filters select { width: 100%; min-width: 0; }
    .btn { padding: 10px 18px; font-size: 13.5px; }
    .record-text { padding: 15px 16px; font-size: 15px; }
}
