/* ==========================================================================
   Arapça Konuşuyoruz — Tasarım sistemi (çekirdek)
   _Layout.cshtml'de tüm eski CSS'lerden SONRA yüklenir. Yeni bileşenler "ak-"
   önekiyle yazılır; eski sınıflar (btn-primary, form-control, footer vb.) yalnız
   görsel olarak yeni dile çekilir, JS'in kullandığı id/sınıflar değişmez.
   ========================================================================== */

:root {
    /* Marka — mor (logo konuşma balonu) */
    --ak-plum-25: #fdf8fb;
    --ak-plum-50: #f9eff5;
    --ak-plum-100: #f1dce9;
    --ak-plum-200: #e3bcd3;
    --ak-plum-300: #cc8fb4;
    --ak-plum-400: #b0628f;
    --ak-plum-500: #9a4479;
    --ak-plum-600: #8a356a;
    --ak-plum-700: #722b58;
    --ak-plum-800: #561f42;
    --ak-plum-900: #4d1b40;
    --ak-plum-950: #3d1533;

    /* Marka — sarı vurgu */
    --ak-sun: #eed715;
    --ak-sun-600: #d4bd00;
    --ak-sun-100: #fbf4c2;
    --ak-sun-50: #fdfae3;

    /* Logodaki yardımcı tonlar */
    --ak-olive: #3d4d2a;
    --ak-sand: #c9a27e;
    --ak-sand-100: #f3e8dc;
    --ak-sand-50: #f9f3ec;
    --ak-terracotta: #b8613e;
    --ak-navy: #2b2f6b;

    /* Nötrler (hafif sıcak) */
    --ak-bg: #faf6f1;
    --ak-surface: #ffffff;
    --ak-surface-2: #f4ede5;
    --ak-line: #ebe2d9;
    --ak-line-strong: #dccfc2;
    --ak-ink: #1c1420;
    --ak-ink-2: #43394a;
    --ak-muted: #756a7b;
    --ak-subtle: #a0959f;

    /* Durum */
    --ak-success: #15803d;
    --ak-success-bg: #ecfdf3;
    --ak-danger: #c0263b;
    --ak-danger-bg: #fdeef0;
    --ak-warning: #b45309;
    --ak-warning-bg: #fff7e6;
    --ak-info: #1d4ed8;
    --ak-info-bg: #eef4ff;

    /* Tipografi */
    --ak-font: 'DM Sans', 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ak-font-ar: 'Cairo', 'DM Sans', system-ui, sans-serif;
    --ak-font-kufi: 'Reem Kufi', 'Cairo', serif;
    --ak-font-naskh: 'Amiri', 'Cairo', serif;

    --ak-text-xs: 0.75rem;
    --ak-text-sm: 0.875rem;
    --ak-text-base: 1rem;
    --ak-text-md: 1.0625rem;
    --ak-text-lg: 1.1875rem;
    --ak-text-xl: 1.375rem;
    --ak-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
    --ak-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem);
    --ak-h1: clamp(2.375rem, 1.6rem + 3.2vw, 4.25rem);

    /* Ölçü */
    --ak-radius-sm: 8px;
    --ak-radius: 12px;
    --ak-radius-lg: 20px;
    --ak-radius-xl: 28px;
    --ak-radius-pill: 999px;

    --ak-shadow-xs: 0 1px 2px rgba(31, 10, 24, 0.06);
    --ak-shadow-sm: 0 1px 3px rgba(31, 10, 24, 0.06), 0 1px 2px rgba(31, 10, 24, 0.04);
    --ak-shadow: 0 8px 24px -8px rgba(31, 10, 24, 0.14), 0 2px 6px rgba(31, 10, 24, 0.05);
    --ak-shadow-lg: 0 24px 56px -18px rgba(47, 16, 37, 0.28), 0 6px 16px rgba(31, 10, 24, 0.06);
    --ak-ring: 0 0 0 4px rgba(138, 53, 106, 0.16);

    --ak-container: 1240px;
    --ak-gutter: 24px;
    --ak-section-y: clamp(64px, 5vw + 32px, 112px);
    --ak-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    /* Eski değişkenleri yeni dile eşle (tüm eski sayfalar bundan faydalanır) */
    --primary-color: var(--ak-plum-600);
    --primary-dark: var(--ak-plum-700);
    --primary-light: var(--ak-plum-400);
    --secondary-color: var(--ak-sun);
    --bg-primary: #ffffff;
    --bg-secondary: var(--ak-bg);
    --bg-tertiary: var(--ak-surface-2);
    --text-primary: var(--ak-ink);
    --text-secondary: var(--ak-ink-2);
    --text-muted: var(--ak-muted);
    --border-light: var(--ak-line);
    --border-medium: var(--ak-line-strong);
    --font-family: var(--ak-font);
    --navbar-height: 76px;
    --bs-body-font-family: var(--ak-font);
    --bs-body-color: var(--ak-ink);
    --bs-link-color: var(--ak-plum-600);
    --bs-link-color-rgb: 138, 53, 106;
    --bs-link-hover-color: var(--ak-plum-700);
    --bs-border-color: var(--ak-line);
    --bs-border-radius: var(--ak-radius-sm);
}

@media (max-width: 991.98px) {
    :root { --navbar-height: 68px; }
}

@media (max-width: 575.98px) {
    :root { --ak-gutter: 18px; }
}

html[dir="rtl"] {
    --ak-font: 'Cairo', 'DM Sans', system-ui, sans-serif;
    --font-family: var(--ak-font);
}

/* --------------------------------------------------------------------------
   Temel
   -------------------------------------------------------------------------- */
body {
    font-family: var(--ak-font);
    font-size: var(--ak-text-base);
    line-height: 1.6;
    color: var(--ak-ink);
    background-color: var(--ak-bg);
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ak-font);
    color: var(--ak-ink);
    letter-spacing: -0.015em;
}

p { color: var(--ak-ink-2); }

a { color: var(--ak-plum-600); text-underline-offset: 3px; }
a:hover { color: var(--ak-plum-700); }

::selection { background: var(--ak-sun-100); color: var(--ak-ink); }

:focus-visible {
    outline: 2px solid var(--ak-plum-500);
    outline-offset: 2px;
}

img { max-width: 100%; }

/* no-animations.css tüm geçişleri kapatıyor; yeni bileşenlerde kısa, sakin
   geçişlere izin verilir (hareket azaltma tercihine uyulur). */
@media (prefers-reduced-motion: no-preference) {
    .ak-btn, .ak-header .nav-link, .ak-header .dropdown-item, .ak-icon-btn,
    .ak-card, .ak-link, .ak-footer a, .btn, .form-control, .form-select,
    .ak-service, .ak-logo-tile, .ak-header, .ak-chip {
        transition: background-color .18s var(--ak-ease), color .18s var(--ak-ease),
            border-color .18s var(--ak-ease), box-shadow .22s var(--ak-ease),
            transform .22s var(--ak-ease), translate .22s var(--ak-ease), opacity .18s var(--ak-ease) !important;
    }
}

/* --------------------------------------------------------------------------
   Yerleşim
   -------------------------------------------------------------------------- */
.ak-container {
    width: 100%;
    max-width: calc(var(--ak-container) + var(--ak-gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--ak-gutter);
}

.ak-container--narrow { max-width: calc(880px + var(--ak-gutter) * 2); }

.ak-section { padding-block: var(--ak-section-y); position: relative; }
.ak-section--tight { padding-block: calc(var(--ak-section-y) * 0.6); }
.ak-section--surface { background: var(--ak-surface); }
.ak-section--tint { background: var(--ak-plum-25); }
.ak-section--line { border-top: 1px solid var(--ak-line); }

.ak-section--dark {
    background: var(--ak-plum-900);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.ak-section--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--ak-pattern-light);
    background-size: 88px 88px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
}
.ak-section--dark h1, .ak-section--dark h2, .ak-section--dark h3 { color: #fff; }
.ak-section--dark p { color: rgba(255, 255, 255, 0.74); }

:root {
    /* Geometrik sekiz köşeli yıldız ağı — modern, ince çizgili İslami desen */
    --ak-pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='9'/%3E%3Cpath d='M0 0l24 24M88 0L64 24M0 88l24-24M88 88L64 64'/%3E%3C/g%3E%3C/svg%3E");
    --ak-mashrabiya: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.14' stroke-width='1'%3E%3Cpath d='M24 6l5.3 12.7L42 24l-12.7 5.3L24 42l-5.3-12.7L6 24l12.7-5.3z'/%3E%3Cpath d='M0 0l6 6M48 0l-6 6M0 48l6-6M48 48l-6-6M24 0v6M24 42v6M0 24h6M42 24h6'/%3E%3Ccircle cx='24' cy='24' r='4'/%3E%3C/g%3E%3C/svg%3E");
    --ak-pattern-plum: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%238a356a' stroke-opacity='.10' stroke-width='1'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='9'/%3E%3Cpath d='M0 0l24 24M88 0L64 24M0 88l24-24M88 88L64 64'/%3E%3C/g%3E%3C/svg%3E");
}

.ak-grid { display: grid; gap: 24px; }
.ak-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ak-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ak-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991.98px) {
    .ak-grid--3, .ak-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .ak-grid--2, .ak-grid--3, .ak-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Tipografi yardımcıları
   -------------------------------------------------------------------------- */
.ak-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--ak-text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ak-plum-600);
    margin-bottom: 16px;
}
.ak-eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.ak-section--dark .ak-eyebrow { color: var(--ak-sun); }

.ak-display {
    font-size: var(--ak-h1);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin: 0 0 24px;
}
.ak-title {
    font-size: var(--ak-h2);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}
.ak-lead {
    font-size: var(--ak-text-lg);
    line-height: 1.6;
    color: var(--ak-muted);
    margin: 0;
    max-width: 60ch;
}
.ak-section-head { max-width: 720px; margin-bottom: 48px; }
.ak-section-head--center { margin-inline: auto; text-align: center; }
.ak-section-head--center .ak-lead { margin-inline: auto; }
.ak-section-head--split {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.ak-section-head--split > div { max-width: 640px; }

/* Sarı fosforlu kalem vurgusu */
.ak-mark {
    background: linear-gradient(transparent 62%, var(--ak-sun) 62%, var(--ak-sun) 92%, transparent 92%);
    padding-inline: 0.06em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.ak-section--dark .ak-mark { background: none; color: var(--ak-sun); }

.ak-kufi {
    font-family: var(--ak-font-kufi);
    font-weight: 600;
    letter-spacing: 0;
    /* direction:rtl verilmez: mantıksal konumlar (inset-inline-*) sayfanın yönüne göre çözülsün */
    unicode-bidi: isolate;
}

/* Çift dilli etiket: Türkçe + Arapça (Reem Kufi). plaintext, sondaki ؟/! işaretini doğru tarafa koyar. */
.ak-eyebrow .ak-ar {
    font-family: var(--ak-font-kufi);
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ak-sand);
    margin-inline-start: 4px;
    padding-inline-start: 10px;
    border-inline-start: 1px solid currentColor;
    line-height: 1;
    unicode-bidi: plaintext;
}

/* --------------------------------------------------------------------------
   Butonlar (yeni + eski sınıfların yeni dile çekilmesi)
   -------------------------------------------------------------------------- */
.ak-btn {
    --_bg: var(--ak-plum-600);
    --_fg: #fff;
    --_bd: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: var(--ak-radius-pill);
    border: 1.5px solid var(--_bd);
    background: var(--_bg);
    color: var(--_fg);
    font-family: var(--ak-font);
    font-size: 0.9875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.005em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.ak-btn:hover { --_bg: var(--ak-plum-700); color: var(--_fg); translate: 0 -1px; box-shadow: 0 10px 24px -10px rgba(138, 53, 106, .55); }
.ak-btn:active { translate: 0 0; }
.ak-btn:focus-visible { outline: none; box-shadow: var(--ak-ring); }
.ak-btn i { font-size: 0.875em; }

.ak-btn--ghost { --_bg: transparent; --_fg: var(--ak-ink); --_bd: var(--ak-line-strong); }
.ak-btn--ghost:hover { --_bg: var(--ak-surface); --_fg: var(--ak-plum-700); --_bd: var(--ak-plum-300); box-shadow: var(--ak-shadow-sm); }
.ak-btn--soft { --_bg: var(--ak-plum-50); --_fg: var(--ak-plum-700); }
.ak-btn--soft:hover { --_bg: var(--ak-plum-100); --_fg: var(--ak-plum-800); box-shadow: none; }
.ak-btn--sun { --_bg: var(--ak-sun); --_fg: var(--ak-plum-950); }
.ak-btn--sun:hover { --_bg: #f5e23a; --_fg: var(--ak-plum-950); box-shadow: 0 10px 24px -10px rgba(238, 215, 21, .6); }
.ak-btn--light { --_bg: #fff; --_fg: var(--ak-plum-800); }
.ak-btn--light:hover { --_bg: var(--ak-plum-50); --_fg: var(--ak-plum-800); }
.ak-btn--outline-light { --_bg: transparent; --_fg: #fff; --_bd: rgba(255, 255, 255, .35); }
.ak-btn--outline-light:hover { --_bg: rgba(255, 255, 255, .08); --_fg: #fff; --_bd: rgba(255, 255, 255, .6); box-shadow: none; }
.ak-btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; }
.ak-btn--lg { min-height: 56px; padding: 14px 30px; font-size: 1.0625rem; }
.ak-btn--block { width: 100%; }

.ak-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--ak-plum-600);
    text-decoration: none;
}
.ak-link i { font-size: .8em; }
.ak-link:hover { color: var(--ak-plum-800); gap: 12px; }

/* Eski buton sınıfları: aynı işlev, yeni görünüm */
.btn { border-radius: var(--ak-radius-sm); font-weight: 600; font-family: var(--ak-font); }
.btn-primary,
.btn-primary:disabled {
    --bs-btn-bg: var(--ak-plum-600);
    --bs-btn-border-color: var(--ak-plum-600);
    --bs-btn-hover-bg: var(--ak-plum-700);
    --bs-btn-hover-border-color: var(--ak-plum-700);
    --bs-btn-active-bg: var(--ak-plum-800);
    --bs-btn-active-border-color: var(--ak-plum-800);
    --bs-btn-disabled-bg: var(--ak-plum-400);
    --bs-btn-disabled-border-color: var(--ak-plum-400);
    --bs-btn-focus-shadow-rgb: 138, 53, 106;
}
.btn-outline-primary {
    --bs-btn-color: var(--ak-plum-600);
    --bs-btn-border-color: var(--ak-plum-200);
    --bs-btn-hover-bg: var(--ak-plum-50);
    --bs-btn-hover-color: var(--ak-plum-700);
    --bs-btn-hover-border-color: var(--ak-plum-300);
    --bs-btn-active-bg: var(--ak-plum-100);
    --bs-btn-active-color: var(--ak-plum-800);
    --bs-btn-active-border-color: var(--ak-plum-300);
}

.btn-corporate-primary,
.btn-corporate-secondary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px !important;
    border-radius: var(--ak-radius-pill) !important;
    font-weight: 600 !important;
    font-size: 0.9875rem !important;
    text-decoration: none !important;
    box-shadow: none !important;
}
.btn-corporate-primary {
    background: var(--ak-plum-600) !important;
    color: #fff !important;
    border: 1.5px solid var(--ak-plum-600) !important;
}
.btn-corporate-primary:hover { background: var(--ak-plum-700) !important; border-color: var(--ak-plum-700) !important; }
.btn-corporate-secondary {
    background: transparent !important;
    color: var(--ak-ink) !important;
    border: 1.5px solid var(--ak-line-strong) !important;
}
.btn-corporate-secondary:hover { border-color: var(--ak-plum-300) !important; color: var(--ak-plum-700) !important; background: #fff !important; }

/* --------------------------------------------------------------------------
   Kart, rozet, çip
   -------------------------------------------------------------------------- */
.ak-card {
    background: var(--ak-surface);
    border: 1px solid var(--ak-line);
    border-radius: var(--ak-radius-lg);
    padding: 28px;
}
.ak-card--hover:hover { border-color: var(--ak-plum-200); box-shadow: var(--ak-shadow); translate: 0 -2px; }

.ak-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--ak-radius-pill);
    background: var(--ak-surface);
    border: 1px solid var(--ak-line);
    font-size: var(--ak-text-sm);
    font-weight: 600;
    color: var(--ak-ink-2);
}
.ak-chip i { color: var(--ak-plum-500); }
.ak-chip--sun { background: var(--ak-sun-50); border-color: var(--ak-sun-100); color: var(--ak-plum-900); }
.ak-chip--sun i { color: var(--ak-sun-600); }

.ak-icon-tile {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    background: var(--ak-plum-50);
    color: var(--ak-plum-600);
    font-size: 1.125rem;
    flex: none;
}

/* --------------------------------------------------------------------------
   Formlar (global, yalnız görsel)
   -------------------------------------------------------------------------- */
.form-label { font-weight: 600; font-size: var(--ak-text-sm); color: var(--ak-ink-2); margin-bottom: 6px; }
.form-control,
.form-select {
    border-color: var(--ak-line-strong);
    border-radius: var(--ak-radius-sm);
    color: var(--ak-ink);
    background-color: #fff;
    min-height: 46px;
}
textarea.form-control { min-height: 96px; }
.form-control::placeholder { color: var(--ak-subtle); }
.form-control:focus,
.form-select:focus {
    border-color: var(--ak-plum-400);
    box-shadow: var(--ak-ring);
}
.form-check-input:checked { background-color: var(--ak-plum-600); border-color: var(--ak-plum-600); }
.form-check-input:focus { border-color: var(--ak-plum-400); box-shadow: var(--ak-ring); }

/* --------------------------------------------------------------------------
   Üst kampanya şeridi (TopBanner bileşeni) — sade, ince
   -------------------------------------------------------------------------- */
.site-top-banner {
    background: var(--ak-plum-950) !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, .06) !important;
    box-shadow: none !important;
}
.site-top-banner * { font-family: var(--ak-font) !important; }

/* --------------------------------------------------------------------------
   Sayfa yükleyici: ilk açılışta gösterilmez, yalnız işlem sırasında
   (app.js showPageLoader) beliren sade bir katman
   -------------------------------------------------------------------------- */
#pageLoader.page-loader {
    background: rgba(251, 249, 248, 0.86) !important;
    backdrop-filter: blur(6px);
}
#pageLoader .loader-logo {
    width: 56px !important;
    height: 56px !important;
    margin: 0 auto 18px !important;
    background-image: url('/images/logo.PNG') !important;
    background-size: contain !important;
    animation: ak-pulse 1.4s ease-in-out infinite !important;
}
#pageLoader .loader-text { font-size: .9375rem !important; color: var(--ak-muted) !important; font-weight: 500 !important; }
#pageLoader .loader-progress { width: 140px !important; height: 3px !important; background: var(--ak-plum-100) !important; }
#pageLoader .loader-progress-bar {
    width: 40% !important;
    background: var(--ak-plum-600) !important;
    animation: ak-indeterminate 1.1s ease-in-out infinite !important;
}
@keyframes ak-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.92); opacity: .7; } }
@keyframes ak-indeterminate { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ==========================================================================
   HEADER
   ========================================================================== */
/* Yüzen panel: başlık alanı saydam, içerideki yuvarlak cam panel sayfanın üzerinde süzülür.
   Cam efekti ::before'da; backdrop-filter kapsayıcıda olsaydı mobil çekmece (position:fixed)
   panelin içine hapsolurdu. */
.ak-header {
    position: fixed;
    top: var(--top-banner-height, 0px);
    inset-inline: 0;
    z-index: 10002; /* kampanya şeridinin (10001) üstünde: mobil çekmece şeridi örtmeli */
    height: var(--navbar-height);
    background: transparent;
    pointer-events: none;
}

.ak-header__inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
    padding-inline: calc(var(--ak-gutter) + 14px);
    pointer-events: auto;
}
.ak-header__inner::before {
    content: "";
    position: absolute;
    inset: 9px var(--ak-gutter);
    z-index: -1;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(170%) blur(18px);
    backdrop-filter: saturate(170%) blur(18px);
    border: 1px solid rgba(235, 228, 232, 0.95);
    box-shadow: 0 10px 34px -16px rgba(31, 10, 24, .22), 0 1px 2px rgba(31, 10, 24, .04);
}
.ak-header.is-scrolled .ak-header__inner::before {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px -18px rgba(31, 10, 24, .32), 0 1px 2px rgba(31, 10, 24, .05);
}
@media (max-width: 991.98px) {
    .ak-header__inner { padding-inline: calc(var(--ak-gutter) + 4px); }
    .ak-header__inner::before { inset: 8px calc(var(--ak-gutter) - 8px); border-radius: 16px; }
}

/* Ana sayfa: koyu hero yüzen panelin altından başlar */
.ak-home main[role="main"] { margin-top: calc(-1 * var(--navbar-height)); }

.ak-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ak-ink);
    flex: none;
}
.ak-brand:hover { color: var(--ak-ink); }
.ak-brand__mark { height: 44px; width: auto; display: block; }
.ak-brand__word {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.ak-brand__word strong { font-weight: 800; color: var(--ak-plum-700); }
.ak-brand__word small {
    font-family: var(--ak-font-kufi);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ak-muted);
    letter-spacing: 0;
    margin-top: 3px;
}

/* Masaüstü menü */
.ak-header .navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    gap: 20px;
    min-width: 0;
}
.ak-header .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ak-header .ak-menu > .nav-item > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: var(--ak-radius-pill);
    color: var(--ak-ink-2);
    font-size: 0.9625rem;
    font-weight: 500;
    background: transparent;
    white-space: nowrap;
}
.ak-header .ak-menu > .nav-item > .nav-link:hover { color: var(--ak-plum-700); background: var(--ak-plum-50); }
.ak-header .ak-menu > .nav-item > .nav-link.active { color: var(--ak-plum-700); background: var(--ak-plum-50); font-weight: 600; }

.ak-header .ak-actions { gap: 6px; flex-wrap: nowrap; }
.ak-header .ak-actions > .nav-item { position: relative; }

.ak-icon-btn,
.ak-header .ak-actions > .nav-item > .nav-link.ak-icon-btn {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border-radius: 50%;
    display: inline-grid !important;
    place-items: center;
    color: var(--ak-ink-2);
    background: transparent;
    border: 1px solid transparent;
    font-size: 1.0625rem;
    position: relative;
}
.ak-icon-btn:hover,
.ak-header .ak-actions > .nav-item > .nav-link.ak-icon-btn:hover { background: var(--ak-plum-50); color: var(--ak-plum-700); }
.ak-header .ak-icon-btn.dropdown-toggle::after { display: none !important; }

.ak-header .ak-actions .badge {
    position: absolute !important;
    top: 3px !important;
    inset-inline-end: 1px !important;
    inset-inline-start: auto !important;
    min-width: 18px;
    height: 18px;
    padding: 0 5px !important;
    border-radius: 999px;
    border: 2px solid #fff !important;
    box-shadow: none !important;
    background: var(--ak-danger) !important;
    font-size: 0.65rem !important;
    line-height: 14px;
    transform: none !important;
}

.ak-lang-toggle,
.ak-header .ak-actions > .nav-item > .nav-link.ak-lang-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px !important;
    border-radius: var(--ak-radius-pill);
    color: var(--ak-ink-2);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--ak-line);
    background: #fff;
}
.ak-lang-toggle:hover { border-color: var(--ak-plum-200) !important; color: var(--ak-plum-700) !important; }
.ak-header .ak-lang-toggle.dropdown-toggle::after {
    border: 0 !important;
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
    vertical-align: 0;
    opacity: .6;
}

.ak-user-toggle,
.ak-header .ak-actions > .nav-item > .nav-link.ak-user-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 14px 0 5px !important;
    border-radius: var(--ak-radius-pill);
    border: 1px solid var(--ak-line);
    background: #fff;
    color: var(--ak-ink);
    font-weight: 600;
    font-size: 0.9rem;
    max-width: 220px;
}
.ak-user-toggle:hover { border-color: var(--ak-plum-200) !important; }
.ak-user-toggle__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ak-plum-600);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .8rem;
    flex: none;
}
.ak-user-toggle #userName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-header .ak-user-toggle.dropdown-toggle::after {
    border: 0 !important;
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
    opacity: .5;
}

.ak-header .ak-auth-btn { margin: 0 !important; }

/* Açılır menüler */
.ak-header .dropdown-menu {
    border: 1px solid var(--ak-line);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--ak-shadow-lg);
    min-width: 232px;
    margin-top: 10px !important;
    font-size: 0.9375rem;
}
.ak-header .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ak-ink-2);
    font-weight: 500;
}
.ak-header .dropdown-item i { width: 18px; text-align: center; color: var(--ak-muted); margin: 0 !important; }
.ak-header .dropdown-item:hover,
.ak-header .dropdown-item:focus { background: var(--ak-plum-50); color: var(--ak-plum-700); }
.ak-header .dropdown-item:hover i { color: var(--ak-plum-600); }
.ak-header .dropdown-divider { border-color: var(--ak-line); margin: 6px 4px; }
.ak-header .dropdown-header { padding: 8px 12px; color: var(--ak-ink); }

/* İlk boyamada giriş yapmış kullanıcıya "Giriş Yap" butonunu göstermemek için */
html.ak-authed #navLoginItem,
html.ak-authed #registerBtn { display: none !important; }

/* Mobil menü iskeleti */
.ak-header .modern-hamburger { display: none; }
.ak-header .mobile-menu-close { display: none; }
.ak-drawer-head, .ak-drawer-foot { display: none; }

@media (min-width: 992px) and (max-width: 1199.98px) {
    .ak-header__inner { gap: 16px; }
    .ak-brand__word { display: none; }
    .ak-header .ak-menu > .nav-item > .nav-link { padding: 9px 10px; font-size: .9rem; }
    .ak-header .ak-lang-toggle .current-lang-label { display: none; }
}

@media (max-width: 991.98px) {
    .ak-header__inner { gap: 12px; justify-content: space-between; }
    .ak-brand__mark { height: 38px; }
    .ak-brand__word { font-size: 1rem; }

    .ak-header .modern-hamburger {
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px !important;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        border-radius: 12px !important;
        border: 1px solid var(--ak-line) !important;
        background: #fff !important;
        margin-inline-start: auto;
    }
    .ak-header .modern-hamburger .hamburger-line {
        width: 18px !important;
        height: 2px !important;
        margin: 0 !important;
        background: var(--ak-ink) !important;
    }

    .ak-header .navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        bottom: 0;
        right: -110%;
        left: auto;
        width: min(88vw, 380px) !important;
        max-width: 380px !important;
        height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        box-shadow: -24px 0 60px -20px rgba(31, 10, 24, .35) !important;
        z-index: 10001 !important;
        overflow-y: auto !important;
    }
    [dir="rtl"] .ak-header .navbar-collapse { right: auto; left: -110%; }
    .ak-header .navbar-collapse:not(.show) { visibility: hidden; }

    .ak-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid var(--ak-line);
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 2;
    }
    .ak-drawer-head img { height: 36px; }
    .ak-header .mobile-menu-close {
        display: inline-grid !important;
        place-items: center;
        position: static !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 12px !important;
        background: var(--ak-surface-2) !important;
        color: var(--ak-ink) !important;
        font-size: 1rem !important;
        transform: none !important;
    }

    .ak-header .navbar-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 2px !important;
        width: 100%;
        padding: 12px 12px 0 !important;
    }
    .ak-header .ak-menu > .nav-item > .nav-link {
        display: flex;
        width: 100%;
        padding: 14px 14px !important;
        border-radius: 12px;
        font-size: 1.0625rem !important;
        font-weight: 600 !important;
        color: var(--ak-ink) !important;
        transform: none !important;
        min-height: 0;
    }
    .ak-header .ak-menu > .nav-item > .nav-link::after {
        content: "\f105";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        margin-inline-start: auto;
        font-size: .8rem;
        color: var(--ak-subtle);
    }
    [dir="rtl"] .ak-header .ak-menu > .nav-item > .nav-link::after { content: "\f104"; }

    .ak-header .ak-actions {
        border-top: 1px solid var(--ak-line);
        margin-top: 12px;
        padding: 16px 12px 24px !important;
        gap: 8px !important;
    }
    .ak-header .ak-actions > .nav-item { width: 100%; }
    .ak-header .ak-actions > .nav-item > .nav-link.ak-icon-btn,
    .ak-header .ak-actions > .nav-item > .nav-link.ak-lang-toggle,
    .ak-header .ak-actions > .nav-item > .nav-link.ak-user-toggle {
        width: 100% !important;
        height: 50px !important;
        border-radius: 12px !important;
        display: flex !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        padding: 0 14px !important;
        border: 1px solid var(--ak-line) !important;
        background: #fff !important;
        max-width: none;
        color: var(--ak-ink) !important;
        font-weight: 600 !important;
    }
    .ak-header .ak-icon-btn .ak-icon-btn__label { display: inline !important; font-size: .95rem; }
    .ak-header .ak-actions .badge {
        position: static !important;
        margin-inline-start: auto;
        border: 0 !important;
    }
    .ak-header .ak-actions .dropdown-menu { margin-top: 4px !important; }
    .ak-header .ak-auth-btn { width: 100%; min-height: 50px; border-radius: 12px; }

    #cartNav { order: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
    #userDropdown { margin: 0 !important; padding: 0 !important; border: 0 !important; }
    #cartNav .nav-link { justify-content: flex-start !important; }

    .mobile-menu-overlay { z-index: 10000 !important; background: rgba(31, 10, 24, .45) !important; }
}

.ak-icon-btn__label { display: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ak-footer {
    position: relative;
    background: var(--ak-plum-950);
    color: rgba(255, 255, 255, .72);
    padding: 80px 0 0;
    overflow: hidden;
    isolation: isolate;
    margin-top: 0;
}
.ak-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--ak-pattern-light);
    background-size: 88px 88px;
    opacity: .7;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 65%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 65%);
}
.ak-footer__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding-bottom: 56px;
    margin-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.ak-footer__cta h2 {
    color: #fff;
    font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0;
    max-width: 640px;
}
.ak-footer__cta h2 span { color: var(--ak-sun); }
.ak-footer__cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.ak-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr) 1.3fr;
    gap: 40px;
}
.ak-footer__brand img { height: 52px; margin-bottom: 18px; }
.ak-footer__brand p { color: rgba(255, 255, 255, .62); font-size: var(--ak-text-sm); line-height: 1.7; max-width: 300px; margin-bottom: 22px; }
.ak-footer__brand .ak-kufi { display: inline-block; color: var(--ak-sand); font-size: 1.375rem; margin: 0 0 14px; }
.ak-footer__brand img { display: block; }

.ak-footer h6,
.ak-footer summary {
    color: #fff;
    font-size: var(--ak-text-sm);
    font-weight: 700;
    letter-spacing: .02em;
    margin: 0 0 18px;
    list-style: none;
    cursor: default;
}
.ak-footer summary::-webkit-details-marker { display: none; }
.ak-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ak-footer a:not(.ak-btn) { color: rgba(255, 255, 255, .7); text-decoration: none; font-size: var(--ak-text-sm); }
.ak-footer a:not(.ak-btn):hover { color: #fff; }

.ak-footer__contact { display: grid; gap: 12px; }
.ak-footer__contact a,
.ak-footer__contact span.ak-footer__contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .78);
    font-size: var(--ak-text-sm);
}
.ak-footer__contact i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, .06);
    color: var(--ak-sun);
    font-size: .8rem;
    flex: none;
}

.ak-social { display: flex; gap: 8px; flex-wrap: wrap; }
.ak-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    font-size: .875rem;
}
.ak-social a:hover { background: var(--ak-sun); color: var(--ak-plum-950); border-color: var(--ak-sun); }

.ak-footer__bottom {
    margin-top: 64px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: var(--ak-text-xs);
    color: rgba(255, 255, 255, .5);
}
.ak-footer__bottom p { margin: 0; color: inherit; }
.ak-footer__word {
    position: absolute;
    inset-inline-end: -20px;
    bottom: -34px;
    font-family: var(--ak-font-kufi);
    font-size: clamp(7rem, 16vw, 15rem);
    line-height: 1;
    color: rgba(255, 255, 255, .035);
    pointer-events: none;
    z-index: -1;
    user-select: none;
}

@media (max-width: 1199.98px) {
    .ak-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
    .ak-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .ak-footer { padding-top: 56px; }
    .ak-footer__grid { grid-template-columns: 1fr; gap: 8px; }
    .ak-footer__brand { margin-bottom: 16px; }
    .ak-footer details { border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .ak-footer summary {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        margin: 0;
        font-size: var(--ak-text-base);
    }
    .ak-footer summary::after { content: "+"; font-weight: 400; font-size: 1.25rem; opacity: .6; }
    .ak-footer details[open] summary::after { content: "–"; }
    .ak-footer details ul { padding-bottom: 18px; }
    .ak-footer__contact-col { padding-top: 24px; }
    .ak-footer__bottom { margin-top: 40px; }
}

/* Eski footer/ana içerik ile çakışmaları sıfırla */
main[role="main"] { min-height: 40vh; }

/* Dil menüsü */
.ak-lang-menu { min-width: 200px !important; }
.ak-lang-code {
    width: 30px;
    height: 22px;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .04em;
    background: var(--ak-surface-2);
    color: var(--ak-ink-2);
}
.ak-header .dropdown-item.active,
.ak-header .dropdown-item:active { background: var(--ak-plum-50); color: var(--ak-plum-700); font-weight: 600; }
.ak-header .dropdown-item.active .ak-lang-code { background: var(--ak-plum-600); color: #fff; }

/* --------------------------------------------------------------------------
   Editoryal serif vurgu ("bugün", "konuşarak" gibi tek kelimeler)
   -------------------------------------------------------------------------- */
.ak-serif {
    font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}
html[dir="rtl"] .ak-serif { font-family: var(--ak-font-kufi); font-style: normal; font-weight: 700; }

/* --------------------------------------------------------------------------
   Kaydırınca belirme (ak-motion.js .is-in ekler). JS yoksa içerik görünür kalır.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .ak-js [data-reveal] {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity .7s var(--ak-ease), transform .8s var(--ak-ease), translate .3s var(--ak-ease), box-shadow .3s var(--ak-ease), border-color .2s !important;
        transition-delay: var(--reveal-delay, 0ms) !important;
    }
    .ak-js [data-reveal="fade"] { transform: none; }
    .ak-js [data-reveal="scale"] { transform: scale(.96); }
    .ak-js [data-reveal].is-in { opacity: 1; transform: none; }

    /* Sayfalar arası yumuşak geçiş (destekleyen tarayıcılarda) */
    @view-transition { navigation: auto; }
    ::view-transition-old(root),
    ::view-transition-new(root) { animation-duration: .28s; }
    .ak-header { view-transition-name: ak-header; }
}

/* Çapa bağlantıları yüzen başlığın altında kalmasın */
section[id], [id].ak-anchor { scroll-margin-top: calc(var(--navbar-height) + var(--top-banner-height, 0px)); }

/* İlk ekran giriş animasyonu: JS beklemez, ilk boyamada başlar (LCP'yi geciktirmez) */
@media (prefers-reduced-motion: no-preference) {
    .ak-enter {
        animation: ak-enter .9s var(--ak-ease) both !important;
        animation-delay: var(--enter-delay, 0ms) !important;
    }
}
@keyframes ak-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Kampanya şeridi telefonda tek sıra: metin solda (en çok 2 satır), sayaç sağda */
@media (max-width: 991.98px) {
    .site-top-banner { padding: 8px 14px !important; min-height: 0 !important; }
    .site-top-banner__inner,
    .site-top-banner__inner--countdown {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        text-align: start !important;
    }
    .site-top-banner__promo { flex: 1 1 auto; min-width: 0; }
    .site-top-banner__headline,
    .site-top-banner__text {
        font-size: .75rem !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0 !important;
    }
    .site-top-banner__subtitle,
    .site-top-banner__timer-label { display: none !important; }
    .site-top-banner__timer { gap: 2px !important; flex: none !important; width: auto !important; max-width: none !important; align-items: center !important; justify-content: flex-end !important; }
    .site-top-banner__timer-unit { gap: 0 !important; }
    .site-top-banner__digits { gap: 1px !important; }
    .site-top-banner__digit {
        min-width: 14px !important;
        width: 14px !important;
        height: 20px !important;
        font-size: .7rem !important;
        line-height: 20px !important;
        padding: 0 !important;
        border-radius: 4px !important;
    }
    .site-top-banner__sep { font-size: .7rem !important; line-height: 20px !important; margin: 0 1px !important; }
}
@media (max-width: 991.98px) {
    .site-top-banner__headline, .site-top-banner__text { -webkit-line-clamp: 3; }
}
@media (max-width: 419.98px) {
    .site-top-banner__timer > .site-top-banner__timer-unit:last-child,
    .site-top-banner__timer > .site-top-banner__sep:nth-last-child(2) { display: none !important; }
}
@media (max-width: 991.98px) {
    .ak-header .modern-hamburger { z-index: auto !important; }
    .ak-header .modern-hamburger.active { visibility: hidden; }
}
/* Mobil çekmecede açılır menüler akış içinde açılır (Popper'ın satır içi konumunu ezer) */
@media (max-width: 991.98px) {
    .ak-header .navbar-collapse .dropdown-menu {
        position: static !important;
        inset: auto !important;
        transform: none !important;
        float: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 6px 0 0 !important;
        box-shadow: none !important;
        border: 1px solid var(--ak-line) !important;
        border-radius: 14px !important;
        background: var(--ak-bg) !important;
    }
    .ak-header .navbar-collapse .nav-item.dropdown:not(.show) > .dropdown-menu:not(.show) { display: none !important; }
    .ak-header .navbar-collapse .dropdown-item { padding: 12px 12px !important; min-height: 44px; }
}

/* Yatay taşmayı engelle ama sticky öğeleri bozma: hidden → clip (hidden, body'yi kaydırma kabı yapıp
   position:sticky'yi kaydırıyordu). clip'i tanımayan eski tarayıcılar hidden'da kalır. */
html, body { overflow-x: clip !important; }

/* Arapça arayüzde marka zaten Arapça; alt satırdaki Arapça slogan tekrar olmasın */
html[dir="rtl"] .ak-brand__word small { display: none; }

/* Koyu hero ile başlayan sayfalarda (ana sayfa, iç sayfa bandı) flash mesajları menünün altında bildirim balonu olur */
.ak-home .site-flash-messages,
body:has(.ak-page-hero) .site-flash-messages {
    position: fixed;
    top: calc(var(--top-banner-height, 0px) + var(--navbar-height) + 8px);
    inset-inline: 0;
    z-index: 10001;
    width: min(640px, calc(100% - 32px));
    margin-inline: auto;
    padding: 0;
}
.site-flash-messages .alert { border-radius: 14px; box-shadow: var(--ak-shadow-lg); }

/* ---------------------------------------------------------------------------
   Kullanıcı menüsü (avatar başlık + gruplu öğeler + ikon kutucukları)
   --------------------------------------------------------------------------- */
.ak-header .ak-user-menu { min-width: 284px !important; padding: 8px !important; }
.ak-user-menu__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 6px;
    padding: 12px;
    border-radius: 12px;
    background: var(--ak-plum-950);
    background-image: var(--ak-mashrabiya);
    background-size: 36px 36px;
    color: #fff;
}
.ak-user-menu__avatar {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50% 50% 12px 12px / 42% 42% 12px 12px;
    display: grid;
    place-items: center;
    background: var(--ak-sun);
    color: var(--ak-plum-950);
    font-weight: 800;
    font-size: .9375rem;
}
.ak-user-menu__who { display: grid; min-width: 0; line-height: 1.25; }
.ak-user-menu__who strong { font-size: .9375rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-user-menu__who small { font-size: .75rem; color: rgba(255, 255, 255, .6); }
.ak-user-menu__head:has(#akUserMenuName:empty) { display: none; }

.ak-header .ak-user-menu .dropdown-item,
.ak-header .ak-lang-menu .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 44px;
    padding: 6px 10px !important;
    border-radius: 10px;
    white-space: normal;
}
.ak-mi {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    background: var(--ak-surface-2);
    color: var(--ak-plum-600);
    font-size: .8125rem;
}
.ak-mi i { color: inherit !important; width: auto !important; margin: 0 !important; }
.ak-header .ak-user-menu .dropdown-item:hover .ak-mi { background: var(--ak-plum-600); color: #fff; }
.ak-user-menu__sep { padding: 0 4px; }
.ak-user-menu__sep .dropdown-divider { margin: 6px 0 !important; }
/* Panel bağlantılarının hiçbiri görünmüyorsa (ör. ziyaretçi) ilk ayırıcıyı gizle */
.ak-user-menu__head + li[style*="display: none"] + li[style*="display: none"] + li[style*="display: none"] + .ak-user-menu__sep { display: none; }
.ak-header .ak-user-menu .ak-user-menu__logout { color: var(--ak-danger) !important; }
.ak-header .ak-user-menu .ak-user-menu__logout .ak-mi { background: var(--ak-danger-bg); color: var(--ak-danger); }
.ak-header .ak-user-menu .ak-user-menu__logout:hover { background: var(--ak-danger-bg) !important; }
.ak-header .ak-user-menu .ak-user-menu__logout:hover .ak-mi { background: var(--ak-danger); color: #fff; }
.ak-user-toggle__avatar { font-weight: 800; letter-spacing: .02em; }

/* ---------------------------------------------------------------------------
   Bildirim menüsü
   --------------------------------------------------------------------------- */
.ak-header .ak-notif {
    width: 360px;
    max-width: calc(100vw - 24px);
    max-height: min(520px, 75vh);
    overflow-y: auto;
    padding: 8px !important;
    scrollbar-width: thin;
}
.ak-notif__head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 6px;
    padding: 12px 14px !important;
    border-radius: 12px;
    background: linear-gradient(120deg, var(--ak-plum-800) 0%, var(--ak-plum-600) 100%);
    background-image: var(--ak-mashrabiya), linear-gradient(120deg, var(--ak-plum-800) 0%, var(--ak-plum-600) 100%);
    background-size: 36px 36px, auto;
    color: #fff !important;
}
.ak-notif__title { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 700; color: #fff; }
.ak-notif__title i {
    width: 30px;
    height: 32px;
    border-radius: 50% 50% 9px 9px / 42% 42% 9px 9px;
    display: inline-grid;
    place-items: center;
    background: var(--ak-sun);
    color: var(--ak-plum-800);
    font-size: .8125rem;
}
.ak-header .ak-notif__markall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
}
.ak-header .ak-notif__markall:hover { background: rgba(255, 255, 255, .24); }
.ak-notif__loader { display: flex; justify-content: center; padding: 22px 0; }
.ak-notif__loader .spinner-border { color: var(--ak-plum-600); }
.ak-notif__empty { display: grid; justify-items: center; gap: 10px; padding: 26px 16px 22px; text-align: center; }
.ak-notif__empty-icon {
    width: 58px;
    height: 62px;
    border-radius: 50% 50% 16px 16px / 42% 42% 16px 16px;
    display: grid;
    place-items: center;
    background: var(--ak-plum-50);
    color: var(--ak-plum-500);
    font-size: 1.375rem;
}
.ak-notif__empty p { color: var(--ak-muted); font-weight: 600; font-size: .9375rem; }
.ak-notif__foot { padding: 6px 2px 2px; }

/* JS'in oluşturduğu bildirim satırları */
.ak-header .ak-notif .notification-item { list-style: none; position: relative; }
.ak-header .ak-notif .notification-card {
    display: block !important;
    padding: 12px !important;
    margin-bottom: 4px;
    border-radius: 12px;
    white-space: normal;
    border: 1px solid transparent;
}
.ak-header .ak-notif .notification-item.unread .notification-card { background: var(--ak-plum-25); border-color: var(--ak-plum-100); }
.ak-header .ak-notif .notification-card:hover { background: var(--ak-surface-2) !important; }
.ak-header .ak-notif .notification-icon {
    flex: none;
    width: 36px;
    height: 36px;
    margin-inline-end: 12px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--ak-surface-2);
    color: var(--ak-muted);
    font-size: .8125rem;
}
.ak-header .ak-notif .notification-icon.unread { background: var(--ak-plum-600); color: var(--ak-sun); }
.ak-header .ak-notif .notification-content { min-width: 0; flex: 1; }
.ak-header .ak-notif .notification-title { margin: 0; font-size: .875rem; font-weight: 700; color: var(--ak-ink); line-height: 1.35; }
.ak-header .ak-notif .notification-text {
    margin: 2px 0 6px;
    font-size: .8125rem;
    color: var(--ak-ink-2);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ak-header .ak-notif .notification-meta { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--ak-muted); }
.ak-header .ak-notif .notification-meta i { width: auto !important; font-size: .7rem; color: var(--ak-subtle); }
.ak-header .ak-notif .notification-meta i + span { margin-inline-end: 6px; }
.ak-header .ak-notif .new-badge { background: var(--ak-sun) !important; color: var(--ak-plum-900) !important; font-size: .625rem; font-weight: 700; border-radius: 999px; padding: 3px 8px; }
