:root {
    --frame-line: #D1D5DC;
    --text-secondary: #8E8E93;
    --text-primary: #1C1C1E;
    --bg-white: #FFFFFF;
    --border-color: #E5E5EA;
    --midas-blue: #3A5AFE;
    --modal-icon-bg: #EEF0FF;
    --modal-icon-color: #3A5AFE;
    --modal-header-bg: #FAFAFC;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px 24px;
}

.footer-copy {
    text-align: left;
}

.footer-links {
    justify-content: flex-end;
}

.footer-links a {
    color: #1C1C1E;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-copy {
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

.site-logo {
    display: block;
    max-width: 190px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Header altın takip — ortak UI */
.gold-tracker {
    display: flex;
    align-items: stretch;
    height: 46px;
    background: #FFFFFF;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.gold-tracker-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    min-width: 0;
}

.gold-tracker-label {
    font-size: 13px;
    font-weight: 600;
    color: #1C1C1E;
    letter-spacing: -0.02em;
    white-space: nowrap;
    line-height: 1.2;
}

.gold-tracker-rates {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rate-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    line-height: 1.15;
}

.rate-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8E8E93;
}

.rate-value {
    font-size: 13px;
    font-weight: 600;
    color: #1C1C1E;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.rate-divider {
    width: 1px;
    height: 28px;
    background: #E8E8ED;
    flex-shrink: 0;
}

.gold-tracker-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    margin: 0;
    padding: 0;
    border: none;
    border-left: 1px solid #ECECF0;
    border-radius: 0;
    background: #F7F7FA;
    color: #3A5AFE;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.gold-tracker-add:hover {
    background: #EEF0FF;
    color: #2F4AE6;
}

.gold-tracker-add:focus-visible {
    outline: 2px solid #3A5AFE;
    outline-offset: -2px;
}

.header-title:has(.site-logo) {
    gap: 12px;
}

/* Masaüstü: logo | menü | altın — header-top çocukları flex’e katılır */
.header-top {
    display: contents;
}

@media (min-width: 901px) {
    .app-header {
        align-items: center;
    }

    .header-left,
    .header-nav,
    .header-right {
        align-self: center;
    }

    .header-title {
        height: auto;
    }

    .site-brand-text,
    .header-title h1 {
        font-size: 30px;
    }

    .site-logo {
        max-width: 200px;
        max-height: 52px;
    }

    .gold-tracker {
        height: 42px;
    }

    .gold-tracker-body {
        gap: 18px;
        padding: 0 20px;
    }

    .rate-divider {
        height: 24px;
    }

    .gold-tracker-add {
        width: 40px;
    }
}

.header-left {
    order: 1;
}

.header-nav {
    order: 2;
}

.header-right {
    order: 3;
}

.site-brand-text {
    display: block;
    color: #FFFFFF;
    font-size: 28px;
    font-weight: normal;
    font-synthesis: none;
    line-height: 1;
    white-space: nowrap;
}

.provider-meta-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.provider-meta-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 16px;
    background: #FAFAFC;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
}

.provider-meta-label {
    font-size: 13px;
    color: #48484A;
    font-weight: 500;
}

.provider-meta-list strong {
    font-size: 14px;
    color: #1C1C1E;
    font-weight: 600;
    text-align: right;
}

.modal-content--compact {
    max-width: 400px;
}

.home-modal-body {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #48484A;
    text-align: left;
}

@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.calendar-grid.is-loading .grid-day.skeleton-day {
    pointer-events: none;
    cursor: default;
    border-color: transparent;
    overflow: hidden;
}

.calendar-grid.is-loading .grid-day.skeleton-day:hover {
    border-color: transparent;
    background-color: var(--bg-white);
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #E5E5EA 25%, #F2F2F7 50%, #E5E5EA 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-line--short {
    width: 45%;
    margin-bottom: 12px;
}

.skeleton-line--long {
    width: 70%;
    margin-top: auto;
}

html {
    height: 100%;
}

body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* Ortak sayfa çerçevesi: dış gölge + iç beyaz alan (tüm sayfalar) */
.app-container {
    width: 100%;
    max-width: 1300px;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background-color: transparent;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

#site-header,
#site-footer {
    flex-shrink: 0;
}

.app-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.app-footer {
    position: relative;
    flex-shrink: 0;
    background-color: #FFFFFF;
    border-radius: 0 0 20px 20px;
    border: 1px solid var(--border-color);
    padding: 14px 32px;
}

/* Ortak pop-up ikon stili (tüm modallar) */
.modal-header {
    background-color: var(--modal-header-bg, #FAFAFC);
}

.modal-header .m-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background-color: var(--modal-icon-bg, #EEF0FF);
    color: var(--modal-icon-color, var(--midas-blue, #3A5AFE));
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn {
    color: #1C1C1E;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.modal-next-news-btn,
.modal-detail-btn {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.app-body:has(.calendar-shell) {
    background-color: #F3F5FA;
    padding: clamp(12px, 1.2vw, 24px) clamp(14px, 1.6vw, 28px);
}

.app-body:has(.calendar-shell) .calendar-shell {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    gap: clamp(6px, 0.6vw, 10px);
}

.app-body:has(.calendar-shell) .calendar-grid {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(var(--cal-rows, 6), minmax(0, 1fr));
    gap: clamp(8px, 0.7vw, 14px);
    align-content: stretch;
    justify-content: stretch;
}

.app-body:has(.calendar-shell) .calendar-weekdays {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: clamp(8px, 0.7vw, 14px);
}

.app-body:has(.calendar-shell) .grid-day {
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.app-body:has(.chart-card) .chart-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-body:has(.chart-card) .chart-wrap {
    flex: 1;
    min-height: 0;
    height: auto;
}
.app-header::before,
.app-header::after {
    content: '';
    position: absolute;
    top: 50%;
    bottom: auto;
    width: 1px;
    height: 40px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.app-header::before { left: 0; }
.app-header::after { right: 0; }

/* ——— Mobil / tablet ——— */
@media (max-width: 900px) {
    html {
        height: auto;
    }

    body {
        height: auto;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0 !important;
        -webkit-overflow-scrolling: touch;
    }

    .app-container {
        height: auto;
        max-height: none;
        min-height: 100dvh;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .app-body {
        overflow: visible;
        padding: 8px 12px 12px !important;
        border-radius: 0;
    }

    /* Logo + altın: kaydırınca ekranda kalır (sticky parent sınırına takılıyordu → fixed) */
    .header-top {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 100;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
        background-color: var(--header-bg, #3A5AFE);
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    }

    /* Fixed bar yüksekliği kadar boşluk — menü normal akışta kalır */
    .app-header {
        flex-wrap: wrap;
        gap: 0;
        min-height: 0;
        border-radius: 0;
        align-items: stretch;
        padding-top: calc(56px + env(safe-area-inset-top, 0px)) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
    }

    .app-header::before,
    .app-header::after {
        display: none;
    }

    .header-left {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        order: 0;
        align-self: center;
        align-items: center;
    }

    .header-right {
        flex: 0 1 auto;
        width: auto;
        max-width: min(68%, 280px);
        order: 0;
        justify-content: flex-end;
        align-self: center;
        align-items: center;
    }

    .header-title {
        height: auto !important;
        align-items: center;
    }

    .header-nav {
        order: 2;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0;
        margin: 0;
        padding: 2px 8px 6px;
        border-top: none;
    }

    .header-nav a {
        font-size: 13px;
        padding: 6px 4px;
    }

    .header-nav-divider {
        margin: 0 8px;
        height: 12px;
        align-self: center;
    }

    .site-brand-text,
    .header-title h1 {
        font-size: 22px;
        line-height: 1;
    }

    .site-logo {
        max-width: 160px;
        max-height: 44px;
        width: auto;
        height: auto;
        display: block;
    }

    /* Altın göstergesi — logonun sağında, tamamen yatay */
    .gold-tracker {
        width: auto;
        max-width: 100%;
        height: 36px;
        min-height: 36px;
        border-radius: 10px;
    }

    .gold-tracker-body {
        flex: 1;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        padding: 0 8px;
        min-width: 0;
        overflow: hidden;
    }

    .gold-tracker-label {
        font-size: 11px;
        flex-shrink: 0;
    }

    .gold-tracker-rates {
        gap: 6px;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .rate-item {
        flex-direction: row;
        align-items: baseline;
        gap: 3px;
        flex-shrink: 0;
    }

    .rate-label {
        font-size: 9px;
        letter-spacing: 0.04em;
    }

    .rate-value {
        font-size: 11px;
    }

    .rate-divider {
        height: 14px;
    }

    .gold-tracker-add {
        width: 34px;
        min-height: 36px;
    }

    .gold-tracker-add svg {
        width: 14px;
        height: 14px;
    }

    .app-footer {
        padding: 14px 16px !important;
        border-radius: 0;
    }

    /* Takvim — 3 sütunlu kart grid */
    .calendar-weekdays {
        display: none !important;
    }

    .calendar-month-title {
        display: block !important;
        position: static;
        margin: 0 0 8px;
        padding: 4px 4px 6px;
        font-size: 22px;
        font-weight: 700;
        letter-spacing: -0.35px;
        color: #1C1C1E;
        text-align: center;
        text-transform: capitalize;
        background: none;
    }

    .app-body:has(.calendar-shell) .calendar-shell {
        flex: none;
        min-height: 0;
        gap: 8px;
    }

    .app-body:has(.calendar-shell) .calendar-grid {
        flex: none;
        height: auto !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: none !important;
        grid-auto-rows: 132px;
        gap: 8px !important;
    }

    .app-body:has(.calendar-shell) .grid-day {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start;
        min-height: 132px;
        height: 132px;
        overflow: hidden;
        scroll-margin-top: calc(72px + env(safe-area-inset-top, 0px));
        scroll-margin-bottom: 48px;
    }

    .app-body:has(.calendar-shell) .grid-day.has-event {
        justify-content: space-between !important;
    }

    .app-body:has(.calendar-shell) .grid-day .day-header {
        flex-shrink: 0;
        margin-bottom: 0 !important;
    }

    .app-body:has(.calendar-shell) .grid-day .day-events {
        margin-top: auto !important;
        flex: 0 0 auto;
        width: 100%;
        align-self: stretch;
    }

    .grid-day.is-spacer {
        visibility: hidden;
        pointer-events: none;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .grid-day {
        padding: 12px 10px !important;
        border-radius: 14px !important;
        border-width: 1.5px !important;
    }

    .day-header {
        margin-bottom: 8px !important;
        gap: 4px;
        align-items: center !important;
        min-height: 28px;
    }

    .day-number {
        gap: 6px !important;
        min-width: 0;
        align-items: center;
    }

    .day-number .day-month {
        display: inline !important;
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .day-number .day-weekday {
        display: none !important;
    }

    .day-digit {
        width: 26px !important;
        height: 26px !important;
        font-size: 13px !important;
        display: inline-grid !important;
        place-items: center !important;
    }

    .trend-indicator {
        width: 28px !important;
        height: 28px !important;
        line-height: 0;
    }

    .trend-indicator > i,
    .trend-indicator > svg {
        width: 15px !important;
        height: 15px !important;
        display: block;
    }

    .event-details,
    .past-news-badge {
        padding: 6px 8px !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        border-radius: 8px !important;
        gap: 6px !important;
        overflow: hidden;
    }

    .day-events {
        gap: 4px !important;
    }

    .event-more-badge {
        min-width: 26px;
        height: 20px;
        font-size: 10px;
        border-radius: 6px;
        padding: 0 6px;
    }

    .event-details span,
    .past-news-badge span {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    .event-details > i,
    .event-details > svg,
    .past-news-badge > i,
    .past-news-badge > svg {
        display: block;
        flex-shrink: 0;
        width: 14px;
        height: 14px;
    }

    .grid-day.nav-card {
        font-size: 13px !important;
        gap: 6px !important;
        padding: 12px 8px !important;
        text-align: center;
        flex-direction: column;
        justify-content: center !important;
        align-items: center !important;
    }

    .grid-day.nav-card span {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.25;
        max-width: 100%;
    }

    .grid-day.nav-card svg {
        width: 18px;
        height: 18px;
    }

    /* Grafik */
    .app-body:has(.chart-card) .chart-card {
        flex: none;
        overflow: visible;
        padding: 14px 12px 12px !important;
        border-radius: 14px;
    }

    .app-body:has(.chart-card) .chart-wrap {
        flex: none;
        min-height: 240px;
        height: 260px !important;
    }

    .chart-header h2 {
        font-size: 18px !important;
    }

    .chart-legend {
        gap: 12px !important;
    }

    .news-chip {
        font-size: 12px;
    }

    /* Modallar — altta durur; scale animasyonu korunur, arka plan kaydırması kilitlenir */
    html.modal-open,
    body.modal-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    body.modal-open {
        touch-action: none;
    }

    .modal-overlay {
        padding: 0 !important;
        align-items: flex-end !important;
        justify-content: center !important;
        overflow: hidden;
        overscroll-behavior: contain;
        touch-action: none;
    }

    /* Haber popup: sağ/sol dış boşluk */
    #eventModal.modal-overlay,
    #haberModal.modal-overlay {
        padding: 0 14px !important;
    }

    .modal-content {
        max-width: 100% !important;
        max-height: min(94dvh, 720px);
        width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        border-radius: 20px 20px 0 0 !important;
        overflow: hidden;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    #eventModal .modal-content,
    #haberModal .modal-content {
        position: relative;
        border-radius: 20px !important;
        margin-bottom: 12px;
        padding-bottom: 0;
    }

    #eventModal .modal-scroll-hint {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 88px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        pointer-events: none;
        z-index: 3;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        background: linear-gradient(
            to top,
            rgba(255, 255, 255, 0.98) 28%,
            rgba(255, 255, 255, 0.72) 58%,
            rgba(255, 255, 255, 0) 100%
        );
        color: #636366;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: -0.01em;
    }

    #eventModal .modal-scroll-hint.is-visible {
        opacity: 1;
        visibility: visible;
    }

    #eventModal .modal-scroll-hint-label {
        line-height: 1.2;
    }

    #eventModal .modal-scroll-hint svg,
    #eventModal .modal-scroll-hint > i {
        width: 18px;
        height: 18px;
        animation: modal-scroll-hint-bounce 1.2s ease-in-out infinite;
    }

    @keyframes modal-scroll-hint-bounce {
        0%, 100% { transform: translateY(0); opacity: 0.75; }
        50% { transform: translateY(4px); opacity: 1; }
    }

    @media (prefers-reduced-motion: reduce) {
        #eventModal .modal-scroll-hint svg,
        #eventModal .modal-scroll-hint > i {
            animation: none;
        }
    }

    .modal-header {
        padding: 16px 16px 12px !important;
        flex-shrink: 0;
    }

    .modal-header .m-icon {
        width: 56px !important;
        height: 56px !important;
        margin-bottom: 8px !important;
    }

    .modal-header h2 {
        font-size: 18px !important;
    }

    .modal-body {
        padding: 16px !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        flex: 1;
        min-height: 0;
    }

    #eventModal .modal-haber-stage {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        display: flex;
        flex-direction: column;
    }

    #eventModal .modal-body--haber-content {
        flex: none;
        overflow: visible;
        min-height: 0;
        padding-bottom: 8px !important;
    }

    #eventModal .modal-body--haber-nav {
        flex: none;
        overflow: visible;
        padding-top: 0 !important;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .price-stats {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px !important;
        justify-content: space-between;
    }

    .selection-item {
        flex-wrap: wrap;
        gap: 8px 12px;
        padding: 12px !important;
    }

    .provider-meta-list li {
        flex-wrap: wrap;
        gap: 6px 12px;
    }
}

@media (max-width: 480px) {
    .header-nav-divider {
        margin: 0 8px;
    }

    .site-brand-text,
    .header-title h1 {
        font-size: 20px;
    }

    .site-logo {
        max-width: 140px;
        max-height: 40px;
    }

    .header-right {
        max-width: min(72%, 240px);
    }

    .gold-tracker {
        height: 32px;
        min-height: 32px;
        border-radius: 9px;
    }

    .gold-tracker-body {
        gap: 5px;
        padding: 0 6px;
    }

    .gold-tracker-label {
        display: none;
    }

    .gold-tracker-rates {
        gap: 5px;
    }

    .rate-label {
        font-size: 8px;
    }

    .rate-value {
        font-size: 10px;
    }

    .rate-divider {
        height: 12px;
    }

    .gold-tracker-add {
        width: 30px;
        min-height: 32px;
    }

    .gold-tracker-add svg {
        width: 13px;
        height: 13px;
    }

    .app-body:has(.calendar-shell) .calendar-grid {
        gap: 6px !important;
        grid-auto-rows: 124px;
    }

    .app-body:has(.calendar-shell) .grid-day {
        min-height: 124px;
        height: 124px;
    }

    .grid-day {
        padding: 10px 8px !important;
        border-radius: 12px !important;
    }

    .day-digit {
        width: 24px !important;
        height: 24px !important;
        font-size: 12px !important;
        display: inline-grid !important;
        place-items: center !important;
    }

    .event-details,
    .past-news-badge {
        font-size: 10px !important;
        padding: 5px 6px !important;
    }

    .grid-day.nav-card {
        font-size: 12px !important;
    }

    .app-body:has(.chart-card) .chart-wrap {
        height: 220px !important;
        min-height: 200px;
    }

    .chart-header {
        margin-bottom: 12px !important;
    }

    .modal-overlay {
        padding: 0 !important;
        align-items: flex-end !important;
    }

    #eventModal.modal-overlay,
    #haberModal.modal-overlay {
        padding: 0 12px !important;
    }

    .modal-content {
        border-radius: 18px 18px 0 0 !important;
        max-height: 92dvh;
    }

    #eventModal .modal-content,
    #haberModal .modal-content {
        border-radius: 18px !important;
        margin-bottom: 10px;
    }
}

/* Çerez onay banner */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 10050;
    max-width: 720px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner-inner {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 40px rgba(28, 28, 30, 0.14);
}

.cookie-banner-copy {
    min-width: 0;
    flex: 1;
}

.cookie-banner-copy strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cookie-banner-copy p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.cookie-banner-copy a {
    color: var(--midas-blue);
    font-weight: 600;
    text-decoration: none;
}

.cookie-banner-copy a:hover {
    text-decoration: underline;
}

.cookie-opt-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.cookie-opt-row input {
    width: 15px;
    height: 15px;
    accent-color: var(--midas-blue);
}

.cookie-banner-actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.cookie-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-btn--ghost {
    background: #F4F5F7;
    color: #1C1C1E;
}

.cookie-btn--ghost:hover {
    background: #EBEBEF;
}

.cookie-btn--primary {
    background: var(--midas-blue);
    color: #FFFFFF;
}

.cookie-btn--primary:hover {
    filter: brightness(0.96);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
}

.footer-dot {
    margin: 0 8px;
    color: #C7C7CC;
}

@media (max-width: 720px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
    }
}

/* CMS / yasal sayfalar: kaydırma — header stilleri page.css’te */
body.cms-page {
    height: auto !important;
    min-height: 100dvh;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

body.cms-page .app-container {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

body.cms-page .app-body,
body.cms-page .app-body.page-body {
    overflow: visible !important;
}

/* Footer Yasal menüsü */
.footer-legal {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.footer-legal-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1C1C1E;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.footer-legal-toggle:hover {
    text-decoration: underline;
}

.footer-legal-toggle i,
.footer-legal-toggle svg {
    transition: transform .18s ease;
}

.footer-legal.is-open .footer-legal-toggle i,
.footer-legal.is-open .footer-legal-toggle svg {
    transform: rotate(180deg);
}

.footer-legal-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    z-index: 40;
    min-width: 220px;
    padding: 8px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 28px rgba(28, 28, 30, 0.12);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-legal-menu[hidden] {
    display: none !important;
}

.footer-legal-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: #1C1C1E;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.footer-legal-menu a:hover {
    background: #F4F5F7;
    text-decoration: none;
}

@media (max-width: 900px) {
    body.cms-page .app-container {
        min-height: 100dvh;
    }

    .footer-legal-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

