/* ==========================================================================
   Sodexo LCDG — Design System
   Modern, premium, responsive. Brand palette preserved.
   ========================================================================== */

:root {
    /* Brand palette */
    --primary: #4B5F0F;
    --primary-600: #435509;
    --primary-dark: #2f3d09;
    --primary-tint: #f2f6e6;
    --navy: #2A295C;
    --blue: #283897;
    --lighter-blue: #E7E9F7;
    --terracotta: #AD5757;
    --terracotta-dark: #964747;
    --cream: #FFEBC7;
    --light-green: #E4EFC4;
    --dark-grey: #343434;
    --ink: #1e2416;
    --muted: #6b7280;
    --border: #e7e9e2;
    --white: #ffffff;
    --bg-soft: #f8faf3;

    /* Typography */
    --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Radius */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-pill: 999px;

    /* Shadows (layered, soft) */
    --shadow-xs: 0 1px 2px rgba(30,36,22,.06);
    --shadow-sm: 0 2px 8px rgba(30,36,22,.06), 0 1px 2px rgba(30,36,22,.04);
    --shadow-md: 0 8px 24px rgba(30,36,22,.08), 0 2px 6px rgba(30,36,22,.05);
    --shadow-lg: 0 20px 50px rgba(30,36,22,.14), 0 6px 14px rgba(30,36,22,.06);
    --shadow-glow: 0 14px 40px rgba(75,95,15,.28);
    --shadow-glow-terra: 0 14px 40px rgba(173,87,87,.30);

    /* Motion */
    --ease: cubic-bezier(.22,.61,.36,1);
    --ease-out: cubic-bezier(.16,1,.3,1);
    --t-fast: .18s;
    --t: .32s;
    --t-slow: .5s;

    /* Layout */
    --container: 1180px;
    --header-h: 76px;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0 0 1rem; }

::selection { background: var(--primary); color: #fff; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Eyebrow / badges ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(75,95,15,.08);
    padding: 7px 14px;
    border-radius: var(--r-pill);
    margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); }
.eyebrow.on-dark { color: #eaf1d4; background: rgba(255,255,255,.14); }
.eyebrow.on-dark::before { background: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    border: 1.5px solid var(--terracotta);
    color: var(--terracotta);
    background: transparent;
    cursor: pointer;
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t), color var(--t), border-color var(--t);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--terracotta); color: #fff; box-shadow: var(--shadow-glow-terra); }
.btn:active { transform: translateY(0); }

.btn-solid {
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
    color: #fff;
    border-color: transparent;
}
.btn-solid:hover { background: linear-gradient(135deg, var(--terracotta-dark), var(--terracotta-dark)); }

.btn-primary {
    background: linear-gradient(135deg, #5c741a, var(--primary));
    color: #fff;
    border-color: transparent;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: var(--shadow-glow); color: #fff; }

.btn-white {
    border-color: rgba(255,255,255,.55);
    color: #fff;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(4px);
}
.btn-white:hover { background: #fff; color: var(--primary); border-color: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.25); }

.btn-ghost { border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-md); }

.btn .arrow { transition: transform var(--t) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Top utility bar ---------- */
.topbar {
    background: var(--primary-dark);
    color: #fff;
    font-size: 12.5px;
    position: relative;
    z-index: 60;
}
.topbar .container { display: flex; justify-content: flex-end; gap: 22px; padding: 8px 24px; }
.topbar a { color: rgba(255,255,255,.85); transition: color var(--t-fast); }
.topbar a:hover { color: #fff; }
.topbar .language-switch { display:inline-flex; align-items:center; gap:5px; color:rgba(255,255,255,.55); }
.topbar .language-switch a[aria-current="true"] { color:#fff; font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.auth-lang-wrap { position:absolute; top:22px; right:28px; }
.auth-language-switch { display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:13px; }
.auth-language-switch a { color:var(--muted); font-weight:700; }
.auth-language-switch a[aria-current="true"] { color:var(--primary); text-decoration:underline; text-underline-offset:3px; }
.auth-card > .auth-language-switch { justify-content:flex-end; width:100%; margin-bottom:8px; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.navbar {
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(30,36,22,.07);
    transition: box-shadow var(--t), background var(--t), border-color var(--t);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.navbar.scrolled { box-shadow: var(--shadow-md); background: rgba(255,255,255,.94); }
.navbar .logo img { height: 34px; transition: transform var(--t) var(--ease); }
.navbar .logo:hover img { transform: scale(1.04); }

.navbar nav { display: flex; gap: 4px; align-items: center; flex: 1; justify-content: center; }
.navbar nav a {
    position: relative;
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    padding: 9px 14px;
    border-radius: var(--r-pill);
    transition: color var(--t-fast), background var(--t-fast);
}
.navbar nav a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--terracotta); border-radius: 2px; transform: scaleX(0); transform-origin: left;
    transition: transform var(--t) var(--ease);
}
.navbar nav a:hover { color: var(--primary); }
.navbar nav a:hover::after, .navbar nav a.active::after { transform: scaleX(1); }
.navbar nav a.active { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta-mobile { display: none; }
.navbar nav .nav-mobile-only { display: none; }
.user-menu { display: flex; align-items: center; gap: 12px; }
.user-dropdown { position: relative; }
.user-dropdown .greeting {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink);
    padding: 8px 12px 8px 8px; border-radius: var(--r-pill); background: var(--primary-tint);
    border: none; cursor: pointer; transition: background var(--t-fast);
}
.user-dropdown .greeting:hover { background: var(--light-green); }
.user-dropdown .greeting .av {
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(135deg, #5c741a, var(--primary)); color: #fff; font-size: 12px; font-weight: 800;
}
.user-dropdown .greeting .caret { font-size: 10px; color: var(--muted); transition: transform var(--t) var(--ease); margin-left: -2px; }
.user-dropdown.open .greeting .caret { transform: rotate(180deg); }

.user-dropdown-menu {
    position: absolute; top: calc(100% + 10px); right: 0; min-width: 210px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
    box-shadow: var(--shadow-lg); padding: 8px; z-index: 60;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
}
.user-dropdown.open .user-dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.user-dropdown-menu a {
    display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 10px;
    font-size: 14px; font-weight: 600; color: var(--ink); transition: background var(--t-fast);
}
.user-dropdown-menu a:hover { background: var(--bg-soft); }
.user-dropdown-menu .udm-divider { height: 1px; background: var(--border); margin: 6px 4px; }
.user-dropdown-menu .udm-logout { color: #b71c1c; }
.user-dropdown-menu .udm-logout:hover { background: #fdecea; }

/* Hamburger */
.nav-toggle {
    display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: #fff;
    border-radius: var(--r-sm); cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform var(--t) var(--ease), opacity var(--t);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.nav-backdrop {
    position: fixed; inset: 0; background: rgba(20,24,14,.5); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t); z-index: 45;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    padding: clamp(80px, 12vw, 140px) 0 clamp(80px, 11vw, 130px);
    overflow: hidden;
    background:
        radial-gradient(1100px 520px at 78% -8%, rgba(173,87,87,.55), transparent 60%),
        radial-gradient(900px 500px at 8% 12%, rgba(124,160,25,.5), transparent 55%),
        linear-gradient(135deg, var(--primary), var(--primary-dark) 72%, #232f06);
    isolation: isolate;
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: soft-light;
    background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px);
    background-size: 4px 4px;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); margin: 0 0 20px; max-width: 15ch; color: #fff; }
.hero p { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 56ch; margin: 0 0 34px; color: rgba(255,255,255,.92); }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .eyebrow { color: #eaf1d4; background: rgba(255,255,255,.14); }
.hero .eyebrow::before { background: var(--cream); }

/* Light hero (About, panel, forms) */
.hero-light {
    color: var(--ink);
    background:
        radial-gradient(700px 380px at 88% -20%, rgba(75,95,15,.10), transparent 60%),
        linear-gradient(135deg, var(--primary-tint), #eef3fb);
    padding: clamp(56px, 8vw, 96px) 0;
}
.hero-light::after { display: none; }
.hero-light h1 { color: var(--ink); }
.hero-light p { color: var(--muted); }
.hero-light .eyebrow { color: var(--primary); background: rgba(75,95,15,.08); }
.hero-light .eyebrow::before { background: var(--terracotta); }

/* Hero with real photo background */
.hero.hero-photo {
    background:
        linear-gradient(115deg, rgba(47,61,9,.9) 0%, rgba(47,61,9,.72) 40%, rgba(43,41,92,.55) 100%),
        var(--hero-img, linear-gradient(135deg, var(--primary), var(--primary-dark)));
    background-size: cover;
    background-position: center;
}
.hero.hero-photo::after { opacity: .28; }

/* Media card in hero */
.hero-media {
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, #dfe9c4, #cdd08a);
    min-height: 320px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.hero-media::before {
    content: "🍽️"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 74px; opacity: .5;
}

/* Framed real image (side media) */
.media-frame {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    background: #e9efd6;
    position: relative;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow) var(--ease); }
.media-frame:hover img { transform: scale(1.05); }
.media-frame.tall { aspect-ratio: 3 / 4; }
.media-frame.wide { aspect-ratio: 16 / 9; }

/* Full-width photo band */
.photo-band { height: clamp(140px, 22vw, 240px); overflow: hidden; position: relative; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(75,95,15,.35), transparent 40%); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 108px) 0; position: relative; }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 18px; }
.section > .container > p { color: var(--muted); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-primary { background: linear-gradient(150deg, var(--primary), var(--primary-dark)); color: #fff; }
.section-primary h2, .section-primary h3 { color: #fff; }
.section-primary p { color: rgba(255,255,255,.9); }
.section-primary .eyebrow { color: #eaf1d4; background: rgba(255,255,255,.14); }
.section-primary .eyebrow::before { background: var(--cream); }

.section-light-green { background: var(--light-green); }
.section-tint { background: var(--bg-soft); }
.section-cream { background: linear-gradient(150deg, #fff2d6, var(--cream)); }
.section-terracotta { background: linear-gradient(150deg, var(--terracotta), var(--terracotta-dark)); color: #fff; }
.section-terracotta h2 { color: #fff; }
/* `.section > .container > p` (0,2,1) bu kuralın sade halinden (0,1,1) daha
   güçlüydü ve koyu zeminli bölümlere soluk gri --muted rengini dayatıyordu
   (iletişim adresi okunmuyordu). Aynı özgüllükte eşleştirip düzeltiyoruz. */
.section-terracotta p,
.section-terracotta > .container > p { color: rgba(255,255,255,.94); }
.section-navy { background: radial-gradient(700px 400px at 80% -30%, rgba(75,95,15,.35), transparent 60%), linear-gradient(150deg, var(--navy), #1c1c40); color: #fff; }
.section-navy h2 { color: #fff; }
.section-navy p,
.section-navy > .container > p { color: rgba(255,255,255,.9); }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #dfe4d2; }
.card .card-media { height: 200px; overflow: hidden; background: linear-gradient(135deg, #e9efd6, #d7ddb4); }
.card .card-media img { height: 100%; width: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card img { height: 200px; object-fit: cover; width: 100%; }
.card .card-body { padding: 26px; }
.card .card-body h3 { margin: 0 0 10px; font-size: 1.25rem; }
.card .card-body p { font-size: .95rem; color: var(--muted); margin-bottom: 16px; }

/* Split feature card (image + text side by side) */
.split-card { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; }
.split-card .card-media { height: auto; min-height: 300px; }
.split-card .card-media img { height: 100%; }
.split-card .card-body { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 760px) { .split-card { grid-template-columns: 1fr; } .split-card .card-media { min-height: 220px; } }

/* Text link with arrow */
.link-arrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--terracotta);
    transition: gap var(--t) var(--ease), color var(--t-fast);
}
.link-arrow:hover { gap: 12px; color: var(--terracotta-dark); }
.section-primary .link-arrow, .section-navy .link-arrow { color: var(--cream); }
/* .card bodies are always white, even inside a dark section — keep the link readable there */
.section-primary .card .link-arrow, .section-navy .card .link-arrow { color: var(--terracotta); }
.section-primary .card .link-arrow:hover, .section-navy .card .link-arrow:hover { color: var(--terracotta-dark); }

/* Icon chip */
.icon-chip {
    width: 58px; height: 58px; border-radius: var(--r-md);
    display: grid; place-items: center; font-size: 26px; margin-bottom: 18px;
    background: linear-gradient(135deg, var(--primary-tint), #e3ebc9); color: var(--primary);
    box-shadow: var(--shadow-xs);
}
.icon-chip.terra { background: linear-gradient(135deg, #fbe4e4, #f3cccc); color: var(--terracotta); }
.icon-chip.navy { background: linear-gradient(135deg, var(--lighter-blue), #d3d7f0); color: var(--navy); }

/* Value / feature item */
.value-item { display: flex; gap: 18px; align-items: flex-start; }
.value-item .icon-chip { flex-shrink: 0; margin-bottom: 0; }
.value-item h3 { margin: 4px 0 8px; font-size: 1.15rem; }
.value-item p { color: var(--muted); font-size: .95rem; margin: 0; }
.section-navy .value-item p, .section-primary .value-item p { color: rgba(255,255,255,.82); }

/* Stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-strip .stat { text-align: center; }
.stat-strip .stat .n { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--primary); line-height: 1; }
.section-primary .stat-strip .stat .n, .hero .stat-strip .stat .n { color: #fff; }
.stat-strip .stat .l { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.section-primary .stat-strip .stat .l, .hero .stat-strip .stat .l { color: rgba(255,255,255,.8); }

/* ---------- Menu (weekly) — responsive ---------- */
.menu-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.menu-switch { display: inline-flex; padding: 6px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-pill); gap: 4px; }
.menu-lang-switch { margin-left: 10px; }
.menu-switch a {
    font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--muted);
    padding: 10px 20px; border-radius: var(--r-pill); transition: all var(--t) var(--ease);
}
.menu-switch a.active { background: linear-gradient(135deg, #5c741a, var(--primary)); color: #fff; box-shadow: var(--shadow-glow); }
.menu-switch a:not(.active):hover { color: var(--primary); background: #fff; }

.doc-download {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between;
    background: linear-gradient(135deg, var(--primary-tint), #eaf0da);
    border: 1px solid #dbe4c4; border-radius: var(--r-md); padding: 18px 24px; margin-bottom: 40px;
}
.doc-download .doc-info { display: flex; align-items: center; gap: 14px; }
.doc-download .doc-icon { width: 46px; height: 46px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: var(--shadow-xs); }
.doc-download .doc-info b { font-family: var(--font-display); display: block; }
.doc-download .doc-info span { font-size: .85rem; color: var(--muted); }

.menu-week { margin-bottom: 40px; }
.menu-week-label {
    display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display);
    font-weight: 800; font-size: 1.05rem; color: var(--ink); margin-bottom: 18px;
}
.menu-week-label::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--terracotta); }

.week-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.day-card {
    border-radius: var(--r-md); background: #fff; border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
    display: flex; flex-direction: column;
}
/* overflow visible so allergen tooltips can escape; round the top/bottom child corners manually */
.day-card > :first-child { border-top-left-radius: var(--r-md); border-top-right-radius: var(--r-md); }
.day-card > :last-child { border-bottom-left-radius: var(--r-md); border-bottom-right-radius: var(--r-md); }
.day-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.day-card .day-head {
    background: linear-gradient(135deg, #5c741a, var(--primary)); color: #fff;
    text-align: center; padding: 14px 10px; font-family: var(--font-display); font-weight: 700; line-height: 1.25;
}
.day-card .day-head .dow { display: block; font-size: .75rem; font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
.day-card .day-head .dnum { display: block; font-size: 1.05rem; }
.day-card .day-body {
    background: #fff; padding: 18px 14px; text-align: center; font-size: .92rem; color: var(--ink);
    flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: center;
}
.day-card .day-body .dish { padding: 4px 0; border-bottom: 1px dashed var(--border); }
.day-card .day-body .dish:last-child { border-bottom: none; }
/* Yemek kategorileri — Excel'deki renk anlamlarını yansıtır.
   Çorba eskiden gri (--muted) idi; ziyaretçi için okunması zordu ve
   "pasif/önemsiz" izlenimi veriyordu. Artık diğer yemekler gibi normal
   metin rengiyle çıkıyor. */
.day-card .day-body .dish.cat-vejeteryan { color: #2f7d32; font-weight: 600; }
.day-card .day-body .dish.cat-salata { color: var(--terracotta); }
.day-card .day-body .dish.cat-corba { color: var(--ink); }
/* Bayraklar gerçek görsel olarak gösterilir — emoji bayraklar Windows'ta
   render edilmiyor, yerine ülke kodu (CN, ES...) çıkıyor. */
img.dish-flag {
    display: inline-block; height: 11px; width: auto; margin-left: 5px;
    vertical-align: baseline; border: 1px solid rgba(0,0,0,.15); border-radius: 2px; cursor: help;
}
.dish-flag-txt {
    margin-left: 5px; font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted); cursor: help;
}

/* Menü işaret açıklamaları */
.menu-legend {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
    margin-top: 26px; padding: 16px 20px; background: #fff;
    border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-xs);
}
.menu-legend .legend-title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .9rem; }
.menu-legend .legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--muted); }
.menu-legend .legend-swatch { font-weight: 700; border-bottom: none; padding: 0; }
.menu-legend .li-ico { font-size: 1.05rem; }

/* Country/theme day ribbon */
.day-card .day-theme-badge {
    display: block; text-align: center; padding: 7px 10px;
    background: linear-gradient(135deg, var(--terracotta), #cf8a5f);
    color: #fff; font-family: var(--font-display); font-weight: 700;
    font-size: .82rem; letter-spacing: .02em;
}
.day-card.has-theme { box-shadow: 0 0 0 2px var(--terracotta), var(--shadow-sm); }
/* Allergen icons row */
.day-allergens {
    display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
    padding: 10px 12px; background: var(--bg-soft); border-top: 1px dashed var(--border);
}
.allergen-icon {
    position: relative; border: 1px solid var(--border); background: #fff;
    width: 30px; height: 30px; border-radius: 8px; font-size: 15px; line-height: 1;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    padding: 0; transition: transform var(--t) var(--ease), border-color var(--t) var(--ease);
}
.allergen-icon:hover { transform: translateY(-2px); border-color: var(--terracotta); }
.allergen-icon::after {
    content: attr(data-label); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap;
    padding: 5px 9px; border-radius: 7px; opacity: 0; pointer-events: none; transition: opacity var(--t) var(--ease);
    z-index: 5; box-shadow: var(--shadow-sm);
}
.allergen-icon::before {
    content: ""; position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: var(--ink); opacity: 0; pointer-events: none; transition: opacity var(--t) var(--ease); z-index: 5;
}
.allergen-icon:hover::after, .allergen-icon:hover::before,
.allergen-icon.show-label::after, .allergen-icon.show-label::before { opacity: 1; }
/* Allergen legend under the weeks */
.allergen-legend {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
    margin-top: 26px; padding: 16px 20px; background: #fff;
    border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-xs);
}
.allergen-legend .legend-title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .9rem; }
.allergen-legend .legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.allergen-legend .li-ico { font-size: 1.05rem; }

.swipe-hint { display: none; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.swipe-hint::after { content: "→"; animation: nudge 1.4s var(--ease) infinite; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

/* ---------- Tables (public doc list) ---------- */
table.doc-list { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
table.doc-list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--border); }
table.doc-list td { padding: 15px 0; border-bottom: 1px solid var(--border); }
.payment-history { position: relative; }
.payment-history summary { color: var(--terracotta-dark); cursor: pointer; font-weight: 700; list-style-position: inside; }
.payment-history-popover { width: 310px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(20,30,20,.10); font-size: 13px; }
.payment-history-row { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.payment-history-popover small { display: block; margin-top: 9px; color: var(--muted); line-height: 1.35; }
@media print { .payment-history-popover { display: block; box-shadow: none; } }

/* ---------- Forms ---------- */
.form-box {
    border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 48px);
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 52px);
    background: #fff; box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--font-display); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--terracotta); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
    font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(75,95,15,.12);
}
.form-actions { text-align: center; margin-top: 20px; }

/* ---------- Stat cards (Fatura Paneli) ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0; }
.stat-card { padding: 24px; border-radius: var(--r-md); color: #fff; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.12); }
.stat-card .label { font-family: var(--font-display); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; opacity: .95; }
.stat-card .value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; }
.stat-card.terracotta { background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark)); }
.stat-card.cream { background: linear-gradient(135deg, #ffe9c0, #f6d38f); color: var(--ink); }
.stat-card.primary { background: linear-gradient(135deg, #5c741a, var(--primary-dark)); }
.stat-card.light-green { background: linear-gradient(135deg, #e4efc4, #cdd897); color: var(--ink); }

.filter-box {
    border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px; background: #fff;
    display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; box-shadow: var(--shadow-sm);
}
.filter-box .form-group { margin-bottom: 0; min-width: 160px; flex: 1; }

.alert { background: var(--cream); padding: 16px 20px; border-radius: var(--r-sm); margin-top: 20px; border: 1px solid #f0d9a8; }

table.student-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
table.student-table th, table.student-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14px; }
table.student-table th { background: var(--bg-soft); font-family: var(--font-display); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.student-table tr:last-child td { border-bottom: none; }

/* ---------- Account / profile page ---------- */
.account-grid { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.profile-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; position: sticky; top: 96px; }
.profile-card .pc-top { background: linear-gradient(150deg, var(--primary), var(--primary-dark)); padding: 30px 24px 22px; text-align: center; color: #fff; }
.avatar-lg { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 2rem; background: rgba(255,255,255,.18); border: 3px solid rgba(255,255,255,.35); color: #fff; }
.profile-card .pc-top h3 { color: #fff; margin: 0 0 4px; font-size: 1.2rem; }
.profile-card .pc-top p { color: rgba(255,255,255,.85); margin: 0; font-size: .85rem; word-break: break-word; }
.profile-card .pc-body { padding: 20px 24px; }
.pc-stat { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.pc-stat:last-of-type { border-bottom: none; }
.pc-stat .k { color: var(--muted); }
.pc-stat .v { font-family: var(--font-display); font-weight: 700; }
.profile-card .pc-actions { padding: 0 24px 24px; display: grid; gap: 10px; }
.profile-card .pc-actions .btn { width: 100%; justify-content: center; }

.students-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.student-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-xs); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); position: relative; }
.student-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.student-card .sc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.student-card .sc-av { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; background: linear-gradient(135deg, var(--primary-tint), #dbe6bd); color: var(--primary); }
.student-card .sc-name { font-family: var(--font-display); font-weight: 700; }
.student-card .sc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); font-size: .78rem; font-weight: 600; color: var(--muted); }
.chip.green { background: var(--primary-tint); color: var(--primary); border-color: transparent; }
.student-card .sc-del { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: #b71c1c; cursor: pointer; display: grid; place-items: center; transition: all var(--t-fast); font-size: 14px; }
.student-card .sc-del:hover { background: #fdecea; border-color: #f6c9c4; }
.meal-reg-status { display:flex; align-items:center; gap:8px; margin-top:14px; padding:9px 11px; border-radius:10px; font-size:.78rem; font-weight:700; }
.meal-reg-status > span:first-child { width:20px; height:20px; border-radius:50%; display:grid; place-items:center; flex:0 0 20px; }
.meal-reg-status.is-active { background:#e9f5df; color:#42630c; }
.meal-reg-status.is-active > span:first-child { background:#5b7f12; color:#fff; }
.meal-reg-status.is-pending { background:#fff3df; color:#8a5510; }
.meal-reg-status.is-pending > span:first-child { background:#c47b16; color:#fff; }
.meal-renewal { margin-top:12px; border:1px solid #dce7c5; border-radius:12px; background:#f7faef; }
.meal-renewal > summary { cursor:pointer; list-style:none; padding:11px 12px; color:var(--primary); font-size:.84rem; font-weight:800; }
.meal-renewal > summary::-webkit-details-marker { display:none; }
.meal-renewal-form { padding:4px 12px 14px; }
.meal-renewal-form .form-group { margin-bottom:12px; }
.meal-renewal-form .edu-info-panel, .meal-renewal-form .edu-pricing { font-size:.78rem; }
.meal-renewal-form .agreement-bank { overflow-wrap:anywhere; }
.meal-renewal-form > .btn { width:100%; justify-content:center; margin-top:12px; }

/* Yenileme; fiyat, banka ve sözleşme içerdiği için masaüstünde dar kartta
   sıkışmamalı. Form satırın tamamını kullanır, mobilde yeniden tek sütundur. */
@media (min-width: 861px) {
    .students-grid .student-card.has-renewal { grid-column: 1 / -1; }
    .student-card.has-renewal .sc-head { padding-right:44px; }
    .student-card.has-renewal .meal-renewal-form {
        display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
        gap:16px 22px; padding:10px 20px 20px;
    }
    .student-card.has-renewal .meal-renewal-form > .form-group { margin-bottom:0; }
    .student-card.has-renewal .meal-renewal-form > .edu-info-panel,
    .student-card.has-renewal .meal-renewal-form > .edu-pricing-panel { margin:0; align-self:start; }
    .student-card.has-renewal .meal-renewal-form > .agreement-block,
    .student-card.has-renewal .meal-renewal-form > .btn { grid-column:1 / -1; }
    .student-card.has-renewal .agreement-bank { display:grid; gap:6px; }
}

.add-panel { border: 1.5px dashed var(--border); border-radius: var(--r-md); padding: 24px; background: var(--bg-soft); }
.add-panel summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; list-style: none; }
.add-panel summary::-webkit-details-marker { display: none; }
.add-panel[open] summary { margin-bottom: 18px; }

@media (max-width: 860px) {
    .account-grid { grid-template-columns: 1fr; }
    .profile-card { position: static; }
}

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(160deg, var(--primary), var(--primary-dark)); color: #fff; padding: 64px 0 26px; position: relative; }
.site-footer .footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.site-footer .footer-top img { height: 34px; filter: brightness(0) invert(1); }
.site-footer .social { display: flex; align-items: center; gap: 12px; }
.site-footer .social a {
    width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1);
    display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 8px 20px rgba(20,36,4,.14);
    transition: transform var(--t) var(--ease), background var(--t), border-color var(--t), box-shadow var(--t);
}
.site-footer .social svg { width: 22px; height: 22px; fill: currentColor; }
.site-footer .social .instagram svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.site-footer .social .instagram .social-dot { fill: currentColor; stroke: none; }
.site-footer .social a:hover { transform: translateY(-4px) scale(1.04); border-color: rgba(255,255,255,.55); box-shadow: 0 12px 24px rgba(20,36,4,.24); }
.site-footer .social .linkedin:hover { background: #0a66c2; }
.site-footer .social .instagram:hover { background: linear-gradient(135deg,#833ab4,#e1306c 55%,#f77737); }
.site-footer .social .facebook:hover { background: #1877f2; }
.site-footer .social a:focus-visible { outline: 3px solid rgba(255,255,255,.75); outline-offset: 3px; }
.footer-cols { display: flex; gap: 90px; margin-bottom: 36px; flex-wrap: wrap; }
.footer-cols h4 { margin: 0 0 16px; color: #fff; font-size: 1rem; }
.footer-cols a { display: block; font-size: 14px; margin-bottom: 10px; color: rgba(255,255,255,.82); transition: color var(--t-fast), padding-left var(--t-fast); }
.footer-cols a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(255,255,255,.75); flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Auth pages ---------- */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px;
    background:
        radial-gradient(700px 500px at 15% 20%, rgba(124,160,25,.35), transparent 60%),
        radial-gradient(700px 500px at 85% 80%, rgba(173,87,87,.28), transparent 60%),
        linear-gradient(135deg, #e9efd6, #f7f1d9);
}
.auth-card {
    background: rgba(255,255,255,.9); backdrop-filter: blur(16px);
    padding: 44px 40px; border-radius: var(--r-lg); max-width: 400px; width: 100%; text-align: center;
    box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.6);
    animation: cardIn .6s var(--ease-out) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.auth-card img { height: 40px; margin: 0 auto 22px; }
.auth-card h2 { font-size: 1.5rem; margin: 0 0 22px; }
.auth-card .form-group { text-align: left; }
.auth-card .btn-solid { width: 100%; justify-content: center; background: linear-gradient(135deg, #5c741a, var(--primary)); border-color: transparent; margin-top: 8px; }
.auth-card .btn-solid:hover { box-shadow: var(--shadow-glow); }
.auth-card .link-muted { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; display: block; transition: color var(--t-fast); }
.auth-card .link-muted:hover { color: var(--primary); }

.error-msg { background: #fdecea; color: #b71c1c; padding: 13px 16px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: 14px; border: 1px solid #f6c9c4; text-align: left; }
.archive-support-notice { display: grid; gap: 12px; }
.archive-support-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: fit-content; min-height: 42px; padding: 10px 16px; border-radius: 999px;
    background: #a72828; color: #fff; font-weight: 700; line-height: 1.2;
    box-shadow: 0 6px 16px rgba(167,40,40,.18);
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.archive-support-btn:hover { background: #8f2020; color: #fff; transform: translateY(-1px); box-shadow: 0 9px 20px rgba(167,40,40,.24); }
.archive-support-btn:focus-visible { outline: 3px solid rgba(167,40,40,.28); outline-offset: 3px; }
.success-msg { background: #e6f4ea; color: #1e4620; padding: 13px 16px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: 14px; border: 1px solid #bfe2c9; text-align: left; }

/* ---------- Split auth (register wizard) ---------- */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 0.85fr 1.15fr; }
.auth-aside {
    position: relative; color: #fff; padding: 48px 44px; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    background:
        linear-gradient(150deg, rgba(47,61,9,.92), rgba(43,41,92,.82)),
        var(--aside-img, none);
    background-size: cover; background-position: center;
}
.auth-aside.admin { background: linear-gradient(150deg, rgba(42,41,92,.94), rgba(28,28,64,.86)), var(--aside-img, none); background-size: cover; background-position: center; }
.auth-aside .brand img { height: 34px; filter: brightness(0) invert(1); }
.auth-aside h1 { color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin: 0 0 14px; }
.auth-aside p { color: rgba(255,255,255,.85); margin: 0; }
.auth-aside .benefits { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.auth-aside .benefits li { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; color: rgba(255,255,255,.92); }
.auth-aside .benefits .bi {
    width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center;
    background: rgba(255,255,255,.16); font-size: 15px;
}
.auth-aside .aside-foot { font-size: .82rem; color: rgba(255,255,255,.7); }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 44px 32px; background: #fff; }
.auth-main .inner { width: 100%; max-width: 500px; }
.auth-main .form-head { margin-bottom: 26px; }
.auth-main .form-head h2 { font-size: 1.6rem; margin: 0 0 6px; }
.auth-main .form-head p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Progress */
.wizard-progress { display: flex; align-items: center; margin-bottom: 30px; }
.wizard-progress .wp-step { display: flex; align-items: center; gap: 10px; flex: 1; }
.wizard-progress .wp-step:last-child { flex: 0; }
.wizard-progress .wp-dot {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; font-size: .9rem;
    background: var(--bg-soft); color: var(--muted); border: 2px solid var(--border); transition: all var(--t) var(--ease);
}
.wizard-progress .wp-line { flex: 1; height: 3px; background: var(--border); margin: 0 10px; border-radius: 3px; position: relative; }
.wizard-progress .wp-line::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--primary); border-radius: 3px; transition: width var(--t-slow) var(--ease); }
.wizard-progress .wp-label { font-size: .8rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.wizard-progress .wp-step.done .wp-dot, .wizard-progress .wp-step.active .wp-dot {
    background: linear-gradient(135deg, #5c741a, var(--primary)); color: #fff; border-color: transparent;
}
.wizard-progress .wp-step.active .wp-label { color: var(--primary); }
.wizard-progress .wp-step.done .wp-line::after { width: 100%; }

/* Steps */
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: stepIn .4s var(--ease-out) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.wizard-step h3 { font-size: 1.15rem; margin: 0 0 4px; }
.wizard-step .step-sub { color: var(--muted); font-size: .9rem; margin: 0 0 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row .form-group { margin-bottom: 18px; }
.field-error { color: #b71c1c; font-size: .8rem; margin-top: 5px; display: none; }
.form-group.invalid input, .form-group.invalid select { border-color: #d9534f; box-shadow: 0 0 0 4px rgba(217,83,79,.12); }
.form-group.invalid .field-error { display: block; }
.optional-tag { font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--bg-soft); padding: 2px 8px; border-radius: 999px; }

/* Education pricing table + agreement block (add-student forms) */
.edu-pricing { margin: 6px 0 4px; }
.edu-pricing-title { font-family: var(--font-display); font-weight: 700; font-size: .9rem; margin-bottom: 8px; color: var(--ink); }
.price-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.price-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: top; }
.price-table tr:last-child td { border-bottom: none; }
.price-table td.lbl { font-weight: 700; font-family: var(--font-display); white-space: nowrap; }
.price-table td.meta { color: var(--muted); font-size: 12px; }
.price-table td.amt { text-align: right; font-weight: 700; color: var(--primary); white-space: nowrap; }
.price-table tr.is-total { background: var(--primary-tint); }
.price-table tr.is-total td { color: var(--primary); }

.agreement-block { margin: 14px 0 6px; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-soft); }
.agreement-bank { background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 12px; }
.agreement-bank .ab-title { font-family: var(--font-display); font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.agreement-bank .ab-row { font-size: 13px; margin-bottom: 3px; word-break: break-word; }
.agreement-bank .ab-cur { color: var(--muted); }
.agreement-bank .ab-note { font-size: 12px; color: var(--terracotta-dark); margin-top: 8px; }
.agreement-text { font-size: 13.5px; line-height: 1.7; color: var(--ink); margin: 0 0 12px; }
.consent-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.consent-check input { width: auto; margin-top: 2px; flex-shrink: 0; }

/* Homepage registration popup */
.reg-popup-backdrop {
    position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(20,30,10,.55); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden; transition: opacity var(--t) var(--ease), visibility var(--t);
}
.reg-popup-backdrop.is-open { opacity: 1; visibility: visible; }
.reg-popup {
    position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: var(--r-lg);
    padding: 40px 36px 32px; text-align: center; box-shadow: var(--shadow-lg);
    background-image: radial-gradient(600px 300px at 100% -10%, rgba(75,95,15,.10), transparent 60%),
        radial-gradient(500px 260px at 0% 110%, rgba(173,87,87,.10), transparent 60%);
    transform: translateY(18px) scale(.97); opacity: 0; transition: transform var(--t-slow) var(--ease-out), opacity var(--t-slow) var(--ease-out);
}
.reg-popup-backdrop.is-open .reg-popup { transform: none; opacity: 1; }
.reg-popup-close {
    position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--border); background: #fff; color: var(--muted); font-size: 15px; cursor: pointer;
    display: grid; place-items: center; transition: all var(--t-fast);
}
.reg-popup-close:hover { background: var(--bg-soft); color: var(--ink); }
.reg-popup-eyebrow {
    display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 12.5px;
    font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary);
    background: var(--primary-tint); padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: 16px;
}
.reg-popup h3 { font-size: 1.4rem; margin: 0 0 12px; line-height: 1.25; }
.reg-popup p { color: var(--muted); font-size: .95rem; margin: 0 0 22px; }
.reg-popup .btn { width: 100%; justify-content: center; }
.reg-popup-dismiss {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px;
    font-size: 13px; color: var(--muted); cursor: pointer;
}
.reg-popup-dismiss input { width: auto; }
@media (max-width: 480px) { .reg-popup { padding: 34px 24px 26px; } }

.pw-hint { height: 5px; border-radius: 3px; background: var(--border); margin-top: 8px; overflow: hidden; }
.pw-hint i { display: block; height: 100%; width: 0; background: #d9534f; transition: width var(--t), background var(--t); }

.wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.wizard-nav .spacer { flex: 1; }

.mode-toggle {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer;
    color: var(--primary); font-family: var(--font-display); font-weight: 700; font-size: .85rem; padding: 0;
}
.mode-toggle:hover { text-decoration: underline; }

/* Normal mode: show all steps, hide wizard chrome */
.wizard[data-mode="normal"] .wizard-progress,
.wizard[data-mode="normal"] [data-next],
.wizard[data-mode="normal"] [data-prev] { display: none; }
.wizard[data-mode="normal"] .wizard-step { display: block; margin-bottom: 26px; animation: none; }

@media (max-width: 900px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-aside { padding: 32px 24px; gap: 22px; }
    .auth-aside .benefits { display: none; }
    .auth-main { padding: 32px 20px; }
}
@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    .wizard-progress .wp-label { display: none; }
}

/* ---------- Admin layout ---------- */
.admin-body { background: var(--bg-soft); min-height: 100vh; font-family: var(--font-body); }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 252px; background: linear-gradient(165deg, var(--navy), #1c1c40 70%); color: #fff; flex-shrink: 0;
    padding: 26px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
}
.admin-sidebar .logo-box { padding: 4px 10px 24px; }
.admin-sidebar .logo-box img { height: 28px; filter: brightness(0) invert(1); }
/* Menü öğesi arttıkça içerik 100vh'yi aşıyor ve alttaki kullanıcı kutusu
   ekrandan taşıp görünmez oluyordu. Nav kendi içinde kaysın, kutu sabit kalsın.
   (min-height:0 olmadan flex çocuğu küçülemez ve kaydırma çalışmaz.) */
.admin-sidebar nav { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.admin-sidebar nav::-webkit-scrollbar { width: 6px; }
.admin-sidebar nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
.admin-sidebar nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); }
.admin-sidebar nav a {
    display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: var(--r-pill);
    font-family: var(--font-display); font-size: 14px; font-weight: 600; color: rgba(255,255,255,.72);
    border-left: 3px solid transparent; transition: all var(--t-fast);
}
.admin-sidebar nav a .ni { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; opacity: .9; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-sidebar nav a.active {
    background: linear-gradient(135deg, rgba(173,87,87,.9), rgba(173,87,87,.65));
    color: #fff; box-shadow: 0 6px 16px rgba(173,87,87,.35);
}
.admin-sidebar .admin-user { padding: 16px 12px 4px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 14px; font-size: 13px; flex-shrink: 0; }
.admin-sidebar .admin-user .au-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.admin-sidebar .admin-user .au-av {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    background: linear-gradient(135deg, #5c741a, var(--primary)); color: #fff;
    font-family: var(--font-display); font-weight: 800; font-size: 15px;
}
.admin-sidebar .admin-user .au-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff; }
.admin-sidebar .admin-user .au-role { font-size: 11.5px; color: rgba(255,255,255,.6); }
.admin-sidebar .admin-user a { display: inline-flex; padding: 0; color: var(--cream); font-weight: 700; font-size: 13px; }
.admin-sidebar .admin-user a:hover { color: #fff; }

.admin-main { flex: 1; padding: 30px 40px 60px; min-width: 0; }
.admin-mobile-bar { display: none; }
.admin-main h1 { margin-top: 0; }
.admin-eyebrow-row { margin-bottom:6px; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.admin-language-switch { display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:13px; padding-top:7px; }
.admin-language-switch a { color:var(--muted); font-weight:700; }
.admin-language-switch a[aria-current="true"] { color:var(--primary); text-decoration:underline; text-underline-offset:3px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }

.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.admin-card { background: #fff; border-radius: var(--r-md); padding: 22px 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.admin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.admin-card .icon-chip.sm { width: 40px; height: 40px; font-size: 19px; border-radius: 12px; margin-bottom: 12px; }
.admin-card .num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.admin-card .lbl { font-size: 13px; color: var(--muted); margin-top: 6px; }

.quick-links { display: grid; gap: 12px; }

.admin-panel { background: #fff; border-radius: var(--r-md); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 24px; }
/* Wide admin tables scroll horizontally inside their panel instead of overflowing the page */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-track { background: var(--bg-soft); border-radius: 4px; }
.table-scroll::-webkit-scrollbar-thumb { background: #cdd5bb; border-radius: 4px; }
.table-scroll::-webkit-scrollbar-thumb:hover { background: #b9c3a3; }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 11px 8px; border-bottom: 2px solid var(--border); }
table.admin-table td { padding: 12px 8px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
table.admin-table tr:hover td { background: var(--bg-soft); }
.admin-table .actions a { margin-right: 10px; font-size: 13px; font-weight: 600; }
.admin-table .actions a.danger { color: #b71c1c; }
.admin-table .actions .linklike {
    background: none; border: none; padding: 0; margin-right: 10px; cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 600; color: var(--primary);
}
.admin-table .actions .linklike:hover { text-decoration: underline; }
.admin-table .actions .linklike:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }
.admin-table .actions .linklike.danger { color: #b71c1c; }
.meal-edit-cell { width: 44px; text-align: center; }
.meal-edit-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px;
    background: #fff; text-decoration: none; line-height: 1; transition: border-color .15s, background .15s, transform .15s;
}
.meal-edit-icon:hover { border-color: var(--primary); background: var(--bg-soft); transform: translateY(-1px); }
.meal-edit-icon:focus-visible { outline: 3px solid rgba(75, 95, 15, .22); outline-offset: 2px; }
.meal-price-form.is-editing { padding: 14px; border: 1px solid #d8dfc5; border-radius: var(--r-sm); background: var(--bg-soft); }

.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; align-items: end; }
.inline-form .form-group { margin-bottom: 0; }
.inline-form textarea { min-height: 70px; }

/* Role badges (admin users page) */
.role-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.role-badge.super_admin { background: #e3e2f5; color: var(--navy); }
.role-badge.site_admin { background: #dce6f7; color: #1d4e89; }
.role-badge.muhasebe { background: #d8efe6; color: #14705a; }
.role-badge.veli { background: var(--primary-tint); color: var(--primary); }
.role-badge.ogrenci { background: #fdf1d9; color: #8a6416; }
.role-badge.musteri { background: #fbe4e4; color: var(--terracotta-dark); }

.role-form { display: flex; align-items: center; gap: 6px; }
.role-form select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit; }
.role-form button { padding: 7px 14px; font-size: 13px; }

/* Keep the users table compact enough to fit without horizontal scrolling.
   The select can be narrower than its longest option — the dropdown still shows full text. */
.user-table .role-form select { max-width: 132px; padding: 7px 8px; }
.user-table .role-form button { padding: 7px 10px; }
.user-table td, .user-table th { padding-left: 6px; padding-right: 6px; }
.user-table .user-email { word-break: break-word; font-size: 13px; }
.user-table .user-date { white-space: nowrap; font-size: 13px; }
.user-table .impersonate-btn { padding: 7px 10px; font-size: 12.5px; white-space: nowrap; }
/* Name cell doubles as the "edit user" link */
.user-edit-link { font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 5px; }
.user-edit-link:hover { color: var(--primary); text-decoration: underline; }
.user-edit-link .ue-pencil { opacity: 0; font-size: 11px; transition: opacity var(--t) var(--ease); }
.user-edit-link:hover .ue-pencil { opacity: .8; }

/* Açılır-kapanır admin paneli (h3 yerine <summary> başlık) — ör. Müşteri Hesapları sayfasındaki uzun listeler */
.panel-summary { cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.panel-summary::-webkit-details-marker { display: none; }
.panel-summary::after { content: "▾ Göster"; font-family: var(--font-body, inherit); font-weight: 700; font-size: 13px; color: var(--primary); margin-left: auto; }
details[open] > .panel-summary::after { content: "▴ Gizle"; }
details.admin-panel > .panel-summary { margin-bottom: 0; }
details.admin-panel[open] > .panel-summary { margin-bottom: 18px; }

/* admin/menus.php — Excel içe aktarma önizlemesi */
.import-detail { margin-top: 14px; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; background: var(--bg-soft); }
.import-detail summary { cursor: pointer; font-weight: 700; color: var(--primary); font-family: var(--font-display); font-size: 14px; }
.import-detail[open] summary { margin-bottom: 10px; }
.import-detail table { background: #fff; }
.import-detail .dish { display: inline; }
.import-detail .dish.cat-vejeteryan { color: #2f7d32; font-weight: 600; }
.import-detail .dish.cat-salata { color: var(--terracotta); }
.import-detail .dish.cat-corba { color: var(--muted); }
.flag-learn { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.flag-learn-item { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.flag-learn-item img { width: 44px; height: auto; border: 1px solid var(--border); border-radius: 3px; flex-shrink: 0; }
.flag-learn-item .fl-sample { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.flag-learn-item input { margin-bottom: 5px; font-size: 13px; padding: 6px 8px; }

/* admin/ogrenci-birlestir.php — yinelenen öğrenci kayıtları */
.dup-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dup-head h3 { margin: 0; }
.dup-warn { background: #fff3cd; color: #8a6416; border: 1px solid #ffe08a; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.dup-ok { background: var(--primary-tint); color: var(--primary); border: 1px solid #cfe0b8; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.dup-suggest { margin-top: 4px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; color: var(--primary); }
.dup-group .dup-diff { background: #fff8e6; font-weight: 700; }
.dup-radio { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 600; }
.dup-radio input { width: auto; margin: 0; }

/* admin/kullanici-duzenle.php */
.user-edit-head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.user-edit-head .ue-avatar {
    width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; font-family: var(--font-display); font-weight: 800;
    font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, #5c741a, var(--primary));
}
.user-edit-head h3 { margin: 0 0 6px; }
.user-edit-head p { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.user-edit-head .ue-meta { color: var(--muted); font-size: 13px; }
.ue-section {
    margin: 24px 0 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); font-family: var(--font-display); font-weight: 800;
}
.ue-hint { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.ue-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; cursor: pointer; line-height: 1.5; }
.ue-check input { width: auto; margin: 3px 0 0; flex-shrink: 0; }

/* Expandable student list under a veli's row (admin/users.php) */
.student-details summary {
    cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 5px;
    font-weight: 700; color: var(--primary); font-family: var(--font-display);
}
.student-details summary::-webkit-details-marker { display: none; }
.student-details summary::after { content: "▾"; font-size: 10px; color: var(--muted); }
.student-details[open] summary::after { content: "▴"; }
.student-list { margin-top: 8px; display: grid; gap: 6px; min-width: 190px; }
.student-list-item { font-size: 13px; background: var(--bg-soft); padding: 6px 10px; border-radius: 8px; }
.student-list-item .muted { color: var(--muted); margin-left: 6px; font-size: 12px; }
.student-list-item.matched { background: #fff3cd; box-shadow: 0 0 0 1px #ffe08a inset; }

/* Admin menu — allergen checkbox grid */
.allergen-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; margin-top: 8px; }
.allergen-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; font-weight: 500; }
.allergen-check input { width: auto; margin: 0; }

/* Fiyat Bilgilendirmesi — pricing tables */
.price-card .card-body { padding-bottom: 22px; }
.price-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.price-table th {
    text-align: left; font-family: var(--font-display); font-weight: 700;
    font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted); padding: 0 8px 8px; border-bottom: 1px solid var(--border);
}
.price-table td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table .muted { color: var(--muted); font-size: 12.5px; }
.price-table .price-total-row td {
    background: var(--primary-tint); color: var(--primary);
    border-bottom: none; border-top: 2px solid var(--primary);
    font-family: var(--font-display);
}
@media (max-width: 560px) {
    .price-table { font-size: 13px; }
    .price-table th, .price-table td { padding: 7px 5px; }
}

/* Örnek ödeme dekontu (mock receipt) */
.dekont {
    background:
        radial-gradient(circle at 8px 0, transparent 8px, var(--white) 9px) top left / 20px 12px repeat-x,
        radial-gradient(circle at 8px 100%, transparent 8px, var(--white) 9px) bottom left / 20px 12px repeat-x,
        var(--white);
    border: 1px dashed var(--border);
}
.dekont-inner { padding: 22px 22px 18px; }
.dekont-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dekont-badge {
    font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .12em;
    color: var(--muted); background: var(--bg-soft); padding: 4px 10px; border-radius: 6px;
}
.dekont-check { color: #1a8a4f; font-weight: 700; font-size: 13px; }
.dekont-row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px;
}
.dekont-row span { color: var(--muted); flex-shrink: 0; }
.dekont-row b { font-family: var(--font-display); text-align: right; word-break: break-word; }
.dekont-iban { font-size: 12.5px; letter-spacing: .02em; }
.dekont-aciklama { border-bottom: none; }
.dekont-flash {
    color: var(--primary); padding: 4px 10px; border-radius: 8px;
    animation: dekontFlash 1.6s ease-in-out infinite;
}
@keyframes dekontFlash {
    0%, 100% { background: transparent; box-shadow: 0 0 0 0 rgba(198,54,42,0); opacity: .55; }
    50%      { background: var(--primary-tint); box-shadow: 0 0 0 3px rgba(198,54,42,.12); opacity: 1; }
}
.dekont-hint {
    margin-top: 14px; font-size: 12.5px; color: var(--muted);
    background: var(--bg-soft); border-radius: 8px; padding: 10px 12px;
}
@media (prefers-reduced-motion: reduce) {
    .dekont-flash { animation: none; opacity: 1; background: var(--primary-tint); }
}
.scholarship-form { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.scholarship-form label { font-size: 11.5px; color: var(--muted); font-weight: 600; margin: 0; }
.scholarship-form input[type="number"] { width: 70px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 12.5px; }
.scholarship-form button { padding: 4px 10px; font-size: 12px; }

.student-edit { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.student-edit summary { cursor: pointer; color: var(--primary); font-weight: 700; font-size: 13px; list-style: none; }
.student-edit summary::-webkit-details-marker { display: none; }
.student-edit-form { margin-top: 14px; padding: 16px; border-radius: var(--r-sm); background: var(--bg-soft); }
.student-edit-form .form-group { margin-bottom: 12px; }
.student-edit-form .form-row { grid-template-columns: 1fr; }

.admin-pagination { display: flex; gap: 8px; justify-content: center; margin: -6px 0 26px; flex-wrap: wrap; }
.admin-pagination a { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 9px; font-weight: 700; color: var(--navy); background: #fff; }
.admin-pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .week-grid { grid-template-columns: repeat(3, 1fr); }
    .admin-wrap { display: block; }
    .admin-sidebar { display: none; }
    .admin-mobile-bar { display: flex; position: sticky; top: 0; z-index: 45; height: 62px; padding: 0 18px; align-items: center; justify-content: space-between; background: var(--navy); box-shadow: 0 3px 16px rgba(0,0,0,.18); }
    .admin-mobile-logo img { height: 26px; filter: brightness(0) invert(1); }
    .admin-mobile-menu { position: relative; }
    .admin-mobile-menu summary { list-style: none; cursor: pointer; color: #fff; font-family: var(--font-display); font-weight: 700; padding: 10px 12px; border-radius: 9px; background: rgba(255,255,255,.1); }
    .admin-mobile-menu summary::-webkit-details-marker { display: none; }
    .admin-mobile-menu-panel { position: fixed; top: 62px; right: 10px; left: 10px; max-height: calc(100vh - 74px); overflow-y: auto; padding: 16px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); }
    .admin-mobile-menu-panel nav { display: grid; gap: 6px; }
    .admin-mobile-menu-panel nav a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 9px; font-weight: 700; color: var(--navy); }
    .admin-mobile-menu-panel nav a.active { background: var(--primary-tint); color: var(--primary); }
    .admin-mobile-user { padding: 0 4px 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
    .admin-mobile-logout { display: block; margin-top: 12px; padding: 12px; border-radius: 9px; color: #b71c1c; font-weight: 700; background: #fff5f3; }
    .admin-main { padding: 24px 22px 52px; }
    .admin-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .admin-panel { padding: 20px; }
    table.responsive-table, table.responsive-table tbody, table.responsive-table tr, table.responsive-table td { display: block; width: 100%; }
    table.responsive-table thead { display: none; }
    table.responsive-table tr { padding: 14px 16px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff; box-shadow: var(--shadow-xs); }
    table.responsive-table td { display: grid; grid-template-columns: minmax(106px, 38%) 1fr; gap: 12px; padding: 8px 0; border: 0; text-align: right; align-items: start; }
    table.responsive-table td::before { content: attr(data-label); text-align: left; color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
    table.responsive-table td > .role-form, table.responsive-table td > form { justify-content: flex-end; }
    .student-list { min-width: 0; text-align: left; }
}

@media (max-width: 900px) {
    /* Disable backdrop-filter so it doesn't trap position:fixed descendants (the drawer) */
    .navbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
    body.nav-open { overflow: hidden; }
    .navbar nav {
        position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 340px);
        background: #fff; flex-direction: column; justify-content: flex-start; align-items: stretch;
        padding: calc(var(--header-h) + 20px) 24px 30px; gap: 6px; z-index: 46;
        transform: translateX(100%); transition: transform var(--t) var(--ease-out); box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    body.nav-open .navbar nav { transform: none; }
    .navbar nav .nav-mobile-only { display: block; }
    .navbar nav a { font-size: 1.05rem; padding: 14px 16px; border-radius: var(--r-sm); text-align: left; }
    .navbar nav a::after { display: none; }
    .navbar nav a:hover { background: var(--primary-tint); }

    /* Account links (Kişisel Bilgiler / Fatura Paneli) stand out from the public nav */
    .navbar nav .nav-account {
        background: var(--primary-tint); color: var(--primary); font-weight: 700;
        display: flex; align-items: center; gap: 4px;
    }
    .navbar nav .nav-account:hover { background: var(--primary); color: #fff; }
    .navbar nav .nav-account-first {
        margin-top: 14px; position: relative;
    }
    .navbar nav .nav-account-first::before {
        content: "HESABIM"; position: absolute; top: -12px; left: 16px;
        font-family: var(--font-display); font-size: 10px; letter-spacing: .12em;
        font-weight: 800; color: var(--muted);
    }
    .navbar nav .nav-logout { color: #b71c1c; font-weight: 600; }
    .navbar nav .nav-logout:hover { background: #fdecea; }
    .nav-toggle { display: block; }
    .nav-actions .btn, .nav-actions .user-menu { display: none; }
    .nav-actions .nav-cta-mobile { display: inline-flex; }

    /* Invoice tables become stacked cards on tablet/phone */
    table.doc-list.doc-cards, .doc-cards thead, .doc-cards tbody, .doc-cards tr, .doc-cards td { display: block; width: 100%; }
    table.doc-list.doc-cards thead { display: none; }
    table.doc-list.doc-cards tr {
        padding: 14px 16px; margin-bottom: 12px; border: 1px solid var(--border);
        border-radius: var(--r-sm); background: #fff; box-shadow: var(--shadow-xs);
    }
    table.doc-list.doc-cards td {
        display: grid; grid-template-columns: minmax(92px, 42%) 1fr; gap: 10px;
        padding: 7px 0; border: 0; text-align: right; align-items: start; word-break: break-word;
    }
    table.doc-list.doc-cards td + td { border-top: 1px solid var(--border); }
    table.doc-list.doc-cards td::before {
        content: attr(data-label); text-align: left; color: var(--muted);
        font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em;
    }
    /* Adjustment history sub-row: full width, no label column */
    table.doc-list.doc-cards td.doc-cards-full {
        display: block; text-align: left; border-top: 1px solid var(--border); margin-top: 6px;
    }
    table.doc-list.doc-cards td.doc-cards-full::before { display: none; }

    .grid-2, .grid-3, .grid-4, .form-box { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .stat-strip { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-cols { gap: 40px; }

    /* Menu becomes a swipeable carousel */
    .week-grid {
        display: flex; grid-template-columns: none; gap: 14px;
        overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        padding: 4px 4px 16px; margin: 0 -4px;
        scrollbar-width: thin;
    }
    .week-grid::-webkit-scrollbar { height: 6px; }
    .week-grid::-webkit-scrollbar-thumb { background: #cdd5bb; border-radius: 3px; }
    .day-card { flex: 0 0 auto; width: clamp(220px, 44vw, 260px); scroll-snap-align: center; }
    .swipe-hint { display: flex; }
}

@media (max-width: 640px) {
    .topbar .container { gap: 14px; font-size: 11.5px; }
    .hero { padding: 76px 0 64px; }
    .hero .hero-actions { flex-direction: column; align-items: stretch; }
    .hero .hero-actions .btn { justify-content: center; }
    .stat-cards { grid-template-columns: 1fr; }
    .day-card { width: 80vw; }
    .filter-box { flex-direction: column; align-items: stretch; }
    .filter-box .form-group { width: 100%; }
    .admin-main { padding: 24px 18px; }
    .admin-cards { grid-template-columns: 1fr; }
    .admin-card { padding: 18px; }
    .admin-panel { padding: 16px; border-radius: 12px; }
    table.responsive-table tr { padding: 13px; }
    table.responsive-table td { grid-template-columns: 1fr; gap: 4px; text-align: left; }
    table.responsive-table td::before { font-size: 11px; }
    table.responsive-table td > .role-form, table.responsive-table td > form { justify-content: flex-start; }
    .role-form { flex-wrap: wrap; }
    .role-form select { width: 100%; }
    .student-edit-form { padding: 14px; }
    .container { padding: 0 18px; }
}

/* Hide sidebar toggle affordance kept simple on very small admin (out of scope) */

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

/* Kayıt sihirbazı — birden fazla öğrenci kartı */
.student-card-form {
    border: 1px solid var(--border); border-radius: var(--r-md);
    padding: 18px; margin-bottom: 14px; background: var(--bg-soft);
}
.student-card-form .scf-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 12px;
}
.student-card-form .scf-title {
    font-family: var(--font-display); font-weight: 800; font-size: 12px;
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.student-card-form .scf-remove {
    background: none; border: 1px solid var(--border); color: #b71c1c;
    font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
    cursor: pointer; transition: background var(--t) var(--ease);
}
.student-card-form .scf-remove:hover { background: #fdecea; }
.add-student-btn { width: 100%; border-style: dashed; }

/* admin/customer-accounts.php — "numara neden eksik" açıklama paneli */
.diag-panel { border-left: 4px solid var(--terracotta); }
.diag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 16px 0; }
.diag-item { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 16px; }
.diag-item.diag-warn { background: #fff8e6; border-color: #ffe08a; }
.diag-num { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--primary); line-height: 1.1; }
.diag-item.diag-warn .diag-num { color: #8a6416; }
.diag-lbl { font-weight: 700; font-size: 13.5px; margin: 2px 0 6px; }
.diag-desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.diag-foot { font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.6; }
.dup-same { background: #e8eefb; color: #1d4e89; border: 1px solid #c3d3ee; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.dup-co { background: #fbe9e7; color: var(--terracotta-dark); border: 1px solid #f3cfc9; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }

/* ===========================================================================
   Kullanıcı arşivi + Destek talepleri (ticket)
   =========================================================================== */

/* --- Kullanıcılar tablosu: işlem sütunu --- */
.user-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-danger-soft { border: 1.5px solid #d99; color: #b71c1c; background: #fff; }
.btn-danger-soft:hover { background: #fdecec; border-color: #b71c1c; }

/* Arşivle: tıklayınca sebep soran küçük panel açılır (yanlışlıkla tıklamayı önler) */
.archive-pop { position: relative; }
.archive-pop > summary { list-style: none; cursor: pointer; display: inline-flex; }
.archive-pop > summary::-webkit-details-marker { display: none; }
.archive-form {
    position: absolute; z-index: 20; right: 0; top: calc(100% + 6px); width: 290px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm);
    box-shadow: 0 12px 30px rgba(0,0,0,.14); padding: 14px;
}
.archive-form p { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.archive-form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.archive-form input[type="text"] { width: 100%; margin-bottom: 10px; }

/* --- Arşiv sayfası --- */
.archive-card .arc-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.archive-card .arc-head h3 { margin: 0 0 4px; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.archive-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.archive-delete-pop { position: relative; }
.archive-delete-pop > summary { list-style: none; cursor: pointer; display: inline-flex; }
.archive-delete-pop > summary::-webkit-details-marker { display: none; }
.archive-delete-form {
    position: absolute; z-index: 30; right: 0; top: calc(100% + 6px); width: min(360px, 85vw);
    background: #fff; border: 1px solid #e3a4a4; border-radius: var(--r-sm);
    box-shadow: 0 14px 34px rgba(0,0,0,.18); padding: 16px;
}
.archive-delete-form label { display: block; font-size: 12px; font-weight: 700; margin: 10px 0 4px; }
.archive-delete-form input[type="password"] { width: 100%; margin-bottom: 10px; }
.archive-delete-warning { margin: 0; padding: 10px; border-radius: 7px; background: #fdecec; color: #8e1818; font-size: 12.5px; line-height: 1.5; }
.arc-meta { margin: 0; color: var(--muted); font-size: 13px; }
.arc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 0; }
.arc-facts > div { background: var(--bg-soft); border-radius: var(--r-sm); padding: 10px 12px; }
.arc-facts .k { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.arc-facts .v { display: block; font-weight: 700; margin-top: 2px; }
.arc-reason { margin: 14px 0 0; font-size: 13.5px; background: #fff8e6; border-left: 3px solid #d9a441; padding: 10px 12px; border-radius: 6px; }

/* --- Ticket: durum rozeti --- */
.tk-status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tk-status.open     { background: #fdecec; color: #b71c1c; }
.tk-status.answered { background: #e8f2e2; color: #2f7d32; }
.tk-status.pending  { background: #fff4e0; color: #9a6100; }
.tk-status.closed   { background: #eceff1; color: #607d8b; }

/* Okunmamış işareti */
.tk-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); vertical-align: middle; }
.tk-unread td { background: #fffaf5; }

/* --- Ticket: başlık ve mesaj akışı --- */
.tk-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.tk-meta { margin: 0; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-status-form { display: flex; gap: 8px; align-items: center; }

.tk-thread { display: flex; flex-direction: column; gap: 14px; margin: 4px 0 22px; }
.tk-msg { border-radius: var(--r-sm); padding: 14px 16px; border: 1px solid var(--border); max-width: 88%; }
.tk-msg.from-user  { background: #fff; align-self: flex-start; }
.tk-msg.from-admin { background: #f4f7ec; border-color: #dbe4c8; align-self: flex-end; }
.tk-msg-head { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; margin-bottom: 6px; flex-wrap: wrap; }
.tk-msg-head strong { font-size: 13.5px; }
.tk-msg-head span { font-size: 11.5px; color: var(--muted); }
.tk-msg-body { font-size: 14.5px; line-height: 1.6; color: var(--ink); word-break: break-word; }
.tk-attach { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--primary); }

.tk-reply { border-top: 1px solid var(--border); padding-top: 18px; }

/* Site dilini izleyen, tarayıcının işletim sistemi dilinden bağımsız dosya seçici. */
.localized-file-picker { display: flex; align-items: center; gap: 10px; min-height: 44px; flex-wrap: wrap; }
.localized-file-input {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.localized-file-button {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    padding: 9px 13px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg-soft); color: var(--ink); font-size: 13px; font-weight: 700;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.localized-file-button:hover { border-color: var(--primary); background: #fff; }
.localized-file-input:focus-visible + .localized-file-button {
    outline: 3px solid rgba(75, 95, 15, .22); outline-offset: 2px;
}
.localized-file-name { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

/* --- Ticket: kullanıcı panelindeki liste --- */
.tk-list { display: flex; flex-direction: column; gap: 10px; }
.tk-list-item {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 16px;
    background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.tk-list-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.tk-list-item.unread { border-left: 3px solid var(--terracotta); }
.tk-li-main { flex: 1 1 240px; min-width: 0; }
.tk-li-main strong { display: block; font-size: 15px; margin-bottom: 3px; }
.tk-li-meta { font-size: 12.5px; color: var(--muted); }

/* Talep numarası rozeti (onay ekranı) */
.tk-no-badge {
    display: inline-block; font-family: var(--font-display); font-size: 24px; font-weight: 800;
    letter-spacing: 3px; color: #4B5F0F; background: #f2f6e6; padding: 14px 26px; border-radius: 12px;
}

@media (max-width: 720px) {
    .tk-msg { max-width: 100%; }
    .archive-form { position: static; width: 100%; box-shadow: none; margin-top: 8px; }
}

/* ===========================================================================
   Menü Sıralaması (admin/menu-siralama.php) — sürükle-bırak sidebar sırası
   =========================================================================== */
.nav-order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 480px; }
.nav-order-item {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-sm);
    padding: 10px 14px; cursor: grab; user-select: none;
}
.nav-order-item.dragging { opacity: .4; }
.nav-order-item .noi-handle { color: var(--muted); font-size: 16px; line-height: 1; }
.nav-order-item .noi-icon { font-size: 16px; }
.nav-order-item .noi-label { flex: 1; font-weight: 600; }
