﻿/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --primary-color: #0070f3;
    /* Richer, premium blue (similar to Vercel/Apple) */
    --primary-hover: #0060df;
    --primary-accent: #3291ff;
    --text-main: #ffffff;
    /* Pure white for better pop */
    --text-muted: #94a3b8;
    /* Cleaner slate gray */
    --glass-bg: rgba(12, 22, 45, 0.65);
    /* Slightly darker for contrast */
    --glass-border: rgba(255, 255, 255, 0.12);
    /* Crisper, whiter border */
    --input-bg: rgba(255, 255, 255, 0.05);
    /* Cleaner input bg */
    --input-border: rgba(255, 255, 255, 0.1);
    --focus-ring: rgba(0, 112, 243, 0.5);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #020617;
    /* Fallback arka plan rengi */
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

/* Arka plan resmini performansı bozmayan sabit bir katmana taşıyoruz */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('arkaplanresmi.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
    /* En alt katman */
    pointer-events: none;
    will-change: transform;
    /* Mobil optimizasyon */
}

/* iOS Safari strictly requires inputs to be 16px or it will forcibly zoom the camera in. */
@media screen and (max-width: 768px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Dark blue semi-transparent overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Deeper, richer gradient */
    background: linear-gradient(150deg,
            rgba(2, 6, 23, 0.94) 0%,
            rgba(10, 25, 60, 0.92) 50%,
            rgba(15, 23, 42, 0.94) 100%);
    z-index: 0;
    pointer-events: none;
}

/* All content above overlay */
body>* {
    position: relative;
    z-index: 1;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    width: 100%;
    padding: 1.5rem 2.5rem;
    /* Sabit padding, değişmeyecek */
    background: transparent;
    z-index: 1000;
    position: sticky;
    top: 0;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    will-change: background, border, box-shadow;
    transform: translateZ(0);
    /* Donanım hızlandırma */
    /* Anchor for mobile menu */
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    /* Ufak gölge */
}

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-separator {
    width: 1px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 1px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover {
    color: #fff;
}

.nav-link svg {
    opacity: 0.6;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover svg {
    opacity: 1;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-chevron {
    opacity: 0.4;
    transition: all 0.3s ease;
    margin-left: -2px;
}

.nav-dropdown.open .dropdown-chevron {
    opacity: 0.8;
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -8px;
    min-width: 200px;
    padding: 10px 8px 6px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    transform: translateY(4px);
    z-index: 100;
    background: transparent;
    margin-top: 4px;
}

.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.2rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    color: #fff;
}

.dropdown-item svg {
    opacity: 0.4;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.dropdown-item:hover svg {
    opacity: 1;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Special Donate Button */
/* Navigation Right Buttons */
.btn-all-donations,
.btn-my-donations {
    /* Button Reset */
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    outline: none;
}

.btn-all-donations {
    background: linear-gradient(45deg, #00c6ff, #0072ff, #00c6ff);
    background-size: 200% 200%;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    /* More elegant/premium font */
    font-weight: 800;
    /* Bolder */
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 50px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.6);
    animation: gradientFlow 3s ease infinite, smoothWiggle 4s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}

.btn-all-donations:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 114, 255, 0.85);
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes smoothWiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    5% {
        transform: rotate(3deg);
    }

    10% {
        transform: rotate(-3deg);
    }

    15% {
        transform: rotate(3deg);
    }

    20% {
        transform: rotate(-3deg);
    }

    25% {
        transform: rotate(0deg);
    }
}

.btn-my-donations {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.btn-my-donations:hover {
    color: var(--primary-color);
}

.btn-my-donations svg {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.cart-badge {
    position: absolute;
    top: -8px;
    left: 12px;
    right: auto;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: content-box;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    z-index: 3;
}

.cart-badge.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    min-height: calc(100vh - 100px);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1100px;
}

/* Photo Area */
.photo-area {
    border-radius: 16px;
    overflow: hidden;
    min-height: 350px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    position: relative;
    display: block;
    /* Ensure it is a block container */
}

.photo-area img,
.photo-area video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Eliminate inline flex gap */
}

.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 350px;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Form Panel (Right Side) */
.form-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    min-width: 110px;
    white-space: nowrap;
}

.form-group select {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--focus-ring);
}

.form-group select option {
    background: #1e293b;
    color: var(--text-main);
}

/* Field validation error */
.form-group.field-error select,
.form-group.field-error input[type="text"],
.form-group.field-error input[type="number"],
.field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3) !important;
}

.shake {
    animation: shakeField 0.5s ease;
}

@keyframes shakeField {

    0%,
    100% {
        transform: translateX(0);
    }

    15% {
        transform: translateX(-8px);
    }

    30% {
        transform: translateX(7px);
    }

    45% {
        transform: translateX(-6px);
    }

    60% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-3px);
    }

    90% {
        transform: translateX(2px);
    }
}

/* Form inputs (for categories that use text inputs) */
.form-group input[type="text"],
.form-group input[type="number"] {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    background-clip: padding-box;
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1e293b inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
    border-radius: 8px;
    background-clip: padding-box;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--focus-ring);
    outline: none !important;
}

.custom-kisi-input {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, max-height 0.3s ease, transform 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
}

.custom-kisi-input.visible {
    opacity: 1;
    max-height: 50px;
    transform: translateY(0);
    padding: 0.65rem 0.9rem;
    margin-top: 0.5rem;
}

.custom-kisi-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--focus-ring);
}

.price-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    position: relative;
    overflow: visible;
    transition: gap 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.price-row.has-price {
    gap: 1.25rem;
    /* Increased gap to ensure safe area between price and button */
}

.price-display {
    font-size: 1.3rem;
    font-weight: 800;
    color: #34d399;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 0.65rem 1.5rem;
    border-radius: 24px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.2);
    white-space: nowrap;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(-20px);
    transition: max-width 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.4s ease,
        transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        padding 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 0;
}

.price-display.visible {
    max-width: 500px;
    opacity: 1;
    transform: translateX(0);
    padding: 0.65rem 1.5rem;
}

@keyframes priceReveal {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.08);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.btn-donate {
    align-self: center;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border: none;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    font-family: inherit;
    margin-top: 0;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
}

/* ============================================
   KURBAN FİYAT LİSTESİ BUTONU
   ============================================ */
.btn-kurban-fiyat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.65rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}

.btn-kurban-fiyat svg {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.btn-kurban-fiyat:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-kurban-fiyat:hover svg {
    opacity: 1;
}

/* Icon-only mode when price is visible */
.btn-kurban-fiyat.icon-only {
    padding: 0.65rem;
    font-size: 0;
    gap: 0;
    order: 3;
}

.btn-kurban-fiyat.icon-only svg {
    opacity: 0.85;
}

/* ============================================
   KURBAN FİYAT LİSTESİ PANELİ
   ============================================ */
.kf-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.kf-overlay.active {
    opacity: 1;
    visibility: visible;
}

.kf-panel {
    position: relative;
    width: 92%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.97), rgba(10, 15, 30, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem 1.8rem;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.kf-overlay.active .kf-panel {
    transform: translateY(0) scale(1);
}

/* Scrollbar */
.kf-panel::-webkit-scrollbar {
    width: 4px;
}

.kf-panel::-webkit-scrollbar-track {
    background: transparent;
}

.kf-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.kf-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    z-index: 10;
}

.kf-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Steps */
.kf-step {
    display: none;
}

.kf-step.active {
    display: block;
    animation: kfStepIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes kfStepIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Header */
.kf-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.kf-header-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.kf-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.3rem;
    letter-spacing: -0.01em;
}

.kf-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin: 0;
}

/* Back button */
.kf-back {
    position: absolute;
    top: -4px;
    left: -4px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.25s;
    font-family: inherit;
    z-index: 10;
}

.kf-back:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Regions Grid - Side by Side */
.kf-regions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

@media (max-width: 600px) {
    .kf-regions-grid {
        grid-template-columns: 1fr;
    }
}

/* Regions */
.kf-region {
    margin-bottom: 0;
}

.kf-region-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
    padding-left: 4px;
}

.kf-region-flag {
    font-size: 1.1rem;
}

/* Contact card */
.kf-card-contact {
    border-color: rgba(245, 158, 11, 0.2);
}

.kf-card-contact:hover {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.08);
}

.kf-price-contact {
    color: #f59e0b !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

/* Animal Cards */
.kf-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kf-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-align: left;
    font-family: inherit;
}

.kf-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.kf-card.selected {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.kf-card-icon {
    font-size: 1.6rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    flex-shrink: 0;
}

.kf-card-icon svg {
    color: rgba(255, 255, 255, 0.6);
}

.kf-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.kf-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.kf-card-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.kf-card-price {
    font-size: 1rem;
    font-weight: 800;
    color: #34d399;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* Type Cards (Step 2) */
.kf-type-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kf-type-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-align: left;
    font-family: inherit;
}

.kf-type-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.kf-type-card.selected {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.kf-type-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    flex-shrink: 0;
}

.kf-type-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.kf-type-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.kf-type-desc {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    line-height: 1.3;
}

/* Responsive */
@media (max-width: 600px) {
    .kf-panel {
        width: 95%;
        padding: 1.5rem 1.2rem;
        border-radius: 20px;
    }

    .kf-card {
        padding: 12px 14px;
    }

    .kf-type-card {
        padding: 14px 14px;
    }

    .kf-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .kf-card-price {
        font-size: 0.9rem;
    }
}

/* ============================================
   CATEGORY BAR
   ============================================ */
.category-bar {
    padding: var(--category-bar-top, 6.5rem) 0 0;
    width: 100%;
}

.category-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.category-btn {
    background: transparent;
    border: 1.5px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.85rem 1.4rem;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    min-width: 95px;

    /* CRITICAL FIX FOR MOBILE: Disables the 300ms tap delay and forces immediate click registration */
    touch-action: manipulation;
    /* Reset any iOS tap highlight to prevent visual double-tap bugs */
    -webkit-tap-highlight-color: transparent;
}

.category-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    user-select: none;
}

.category-btn span {
    pointer-events: none;
    user-select: none;
}

/* Restrict hover effects ONLY to devices with a real mouse pointer.
   Adding (pointer: fine) strictly targets computers and excludes iPad/Touch bug where iOS misinterprets hover. */
@media (hover: hover) and (pointer: fine) {
    .category-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
    }

    .category-btn:hover .category-icon {
        transform: scale(1.05);
    }
}

.category-btn.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary-color);
    color: #60a5fa;
    /* More settled active state, avoids jumping too high */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
    /* Add soft glow */
}

/* ============================================
   IMPACT COUNTER
   ============================================ */
.impact-counter {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    animation: counterFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

@keyframes counterFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.counter-label {
    font-size: 0.85rem;
    padding-top: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-top: 0.2rem;
}

/* ============================================
   KURBAN VIDEO BADGE - Text+Icon Visible, Box on Hover
   ============================================ */
.kurban-video-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 15;
    padding: 8px 14px 8px 10px;
    border-radius: 14px;
    background: transparent;
    border: 1px solid transparent;
    overflow: visible;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
    animation: kvbEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover background box - appears on hover */
.kvb-hover-bg {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 60px -10px rgba(50, 145, 255, 0.15);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
    pointer-events: none;
}

.kurban-video-badge:hover .kvb-hover-bg {
    opacity: 1;
    transform: scale(1);
}

.kurban-video-badge:hover {
    transform: translateY(-2px) scale(1.03);
}

@keyframes kvbEntrance {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }

    60% {
        opacity: 1;
        transform: translateY(2px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Background Glow */
.kvb-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%,
            rgba(50, 145, 255, 0.12) 0%,
            transparent 60%);
    pointer-events: none;
    animation: kvbGlowPulse 3s ease-in-out infinite;
}

@keyframes kvbGlowPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Shimmer sweep effect */
.kvb-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.06) 40%,
            rgba(255, 255, 255, 0.12) 50%,
            rgba(255, 255, 255, 0.06) 60%,
            transparent 100%);
    animation: kvbShimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes kvbShimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Content layout */
.kvb-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Icon wrapper */
.kvb-icon-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Arka plan ve kenarlık kaldırıldı - İkon tek başına görünecek */
    background: transparent;
    border: none;
    flex-shrink: 0;
    animation: kvbIconFloat 3s ease-in-out infinite;
}

@keyframes kvbIconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

/* Camera SVG icon */
.kvb-camera-icon {
    position: relative;
    /* --- MANUEL KONTROL (İKON İÇİN) --- */
    /* İkonu sola kaydırmak için eksi (örn: -2px), sağa kaydırmak için artı (örn: 2px) değer verin: */
    left: -2px;
    /* İkonu yukarı (-2px) veya aşağı (2px) kaydırmak için: */
    top: 0px;

    width: 17px;
    height: 17px;
    color: #60a5fa;
    filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.4));
    animation: kvbCameraGlow 2.5s ease-in-out infinite;
}

@keyframes kvbCameraGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.4));
        color: #60a5fa;
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(96, 165, 250, 0.7));
        color: #93c5fd;
    }
}

/* REC dot - small, perfectly centered inside camera icon */
.kvb-rec-dot {
    position: absolute;
    /* --- MANUEL KONTROL (KIRMIZI NOKTA İÇİN) --- */
    /* Noktayı yukarı/aşağı taşımak için bu değeri değiştirin: (örn: 48%, 52% vb.) */
    top: 49%;
    /* Noktayı sola/sağa taşımak için bu değeri değiştirin! 
       Ekran görüntüsündeki gibi sola almak için 50%'den 42%'ye çekildi. 
       Daha sola almak isterseniz 35% veya 40% yapabilirsiniz. */
    left: 35%;

    transform: translate(-50%, -50%);
    /* Merkezleme için, buna dokunmayın */
    width: 4.5px;
    height: 4.5px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
    animation: kvbRecPulse 1.5s ease-in-out infinite;
}

@keyframes kvbRecPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    }

    50% {
        opacity: 0.3;
        box-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
    }
}

/* Visible text block (always shown) */
.kvb-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    position: relative;
    z-index: 2;
}

.kvb-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.kvb-subtitle {
    font-size: 0.58rem;
    font-weight: 500;
    color: rgba(147, 197, 253, 0.85);
    letter-spacing: 0.01em;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .kurban-video-badge {
        top: 10px;
        right: 10px;
        padding: 6px 10px 6px 8px;
    }

    .kvb-icon-wrap {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .kvb-camera-icon {
        width: 15px;
        height: 15px;
    }

    .kvb-rec-dot {
        width: 4px;
        height: 4px;
    }

    .kvb-title {
        font-size: 0.65rem;
    }

    .kvb-subtitle {
        font-size: 0.52rem;
    }
}

@media (max-width: 480px) {
    .kurban-video-badge {
        top: 8px;
        right: 8px;
        padding: 5px 8px 5px 6px;
    }

    .kvb-icon-wrap {
        width: 24px;
        height: 24px;
        border-radius: 7px;
    }

    .kvb-camera-icon {
        width: 13px;
        height: 13px;
    }

    .kvb-rec-dot {
        width: 3px;
        height: 3px;
    }

    .kvb-title {
        font-size: 0.6rem;
    }

    .kvb-subtitle {
        font-size: 0.48rem;
    }
}

/* ============================================
   KURBAN VIDEO INFO MODAL - Premium Design
   ============================================ */
.kvmodal-container {
    max-width: 500px;
    padding: 2rem 2rem 1.5rem;
}

.kvmodal-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kvmodal-hero-icon {
    font-size: 4rem;
    line-height: 1;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    animation: kvbIconFloat 3s ease-in-out infinite;
}

.kvmodal-hero-cam {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #60a5fa;
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.3));
}

.kvmodal-rec-live {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 0.55rem;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.kvmodal-rec-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
    animation: kvbRecPulse 1.5s ease-in-out infinite;
    display: inline-block;
}

.kvmodal-header-text {
    text-align: center;
    margin-bottom: 1.5rem;
}

.kvmodal-header-text h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.kvmodal-header-text p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.kvmodal-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

.kvmodal-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.kvmodal-feature:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(50, 145, 255, 0.2);
    transform: translateY(-2px);
}

.kvmodal-feature-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.kvmodal-feature-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kvmodal-feature-info strong {
    font-size: 0.72rem;
    color: #fff;
    font-weight: 700;
}

.kvmodal-feature-info span {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

.kvmodal-process {
    margin-bottom: 1.5rem;
}

.kvmodal-process-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.kvmodal-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.kvmodal-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    position: relative;
}

.kvmodal-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(50, 145, 255, 0.2), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(50, 145, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #60a5fa;
    flex-shrink: 0;
    z-index: 2;
}

.kvmodal-step-line {
    position: absolute;
    left: 13px;
    top: calc(50% + 14px);
    width: 2px;
    height: calc(100% - 14px);
    background: linear-gradient(180deg, rgba(50, 145, 255, 0.2), transparent);
    z-index: 1;
}

.kvmodal-step span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.kvmodal-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.kvmodal-cta svg {
    flex-shrink: 0;
}

/* ============================================
   YEMEK DISTRIBUTION BADGE - Bottom Right
   ============================================ */
.yemek-dist-badge {
    position: absolute;
    bottom: 18px;
    right: 18px;
    z-index: 15;
    padding: 8px 14px 8px 10px;
    border-radius: 14px;
    background: transparent;
    border: 1px solid transparent;
    overflow: visible;
    cursor: pointer;
    opacity: 0;
    transform: translateY(15px) scale(0.95);
    animation: ydbEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ydb-hover-bg {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 60px -10px rgba(245, 158, 11, 0.15);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
    pointer-events: none;
}

.yemek-dist-badge:hover .ydb-hover-bg {
    opacity: 1;
    transform: scale(1);
}

.yemek-dist-badge:hover {
    transform: translateY(-2px) scale(1.03);
}

@keyframes ydbEntrance {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }

    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ydb-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.ydb-icon-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    flex-shrink: 0;
    animation: kvbIconFloat 3s ease-in-out infinite;
}

.ydb-food-icon {
    position: relative;
    left: 0px;
    top: 0px;
    width: 20px;
    height: 20px;
    color: #ffffff;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
    animation: ydbFoodGlow 2.5s ease-in-out infinite;
}

@keyframes ydbFoodGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
        color: #ffffff;
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.7));
        color: #f3f4f6;
    }
}

.ydb-rec-dot {
    position: absolute;
    /* --- MANUEL KONTROL (KIRMIZI NOKTA İÇİN) --- */
    /* Noktayı yukarı/aşağı taşımak için bu değeri değiştirin: (örn: 48%, 52% vb.) */
    top: 50%;
    /* Noktayı sola/sağa taşımak için bu değeri değiştirin! 
       Sağa çekmek isterseniz 37% değerini 40%, 45% veya 50% gibi yükseltebilirsiniz. */
    left: 40%;
    transform: translate(-50%, -50%);
    width: 4.5px;
    height: 4.5px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
    animation: kvbRecPulse 1.5s ease-in-out infinite;
}

.ydb-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    position: relative;
    z-index: 2;
}

.ydb-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.ydb-subtitle {
    font-size: 0.58rem;
    font-weight: 500;
    color: rgba(251, 191, 36, 0.85);
    letter-spacing: 0.01em;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Yemek modal accent */
.ydmodal-live {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #f59e0b !important;
}

.ydmodal-dot {
    background: #ef4444 !important;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6) !important;
}

.ydmodal-cam-area {
    color: #f59e0b !important;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3)) !important;
}

.ydmodal-cta {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.ydmodal-cta:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
}

/* Yemek badge responsive */
@media (max-width: 900px) {
    .yemek-dist-badge {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px 6px 8px;
    }

    .ydb-food-icon {
        width: 17px;
        height: 17px;
    }

    .ydb-title {
        font-size: 0.65rem;
    }

    .ydb-subtitle {
        font-size: 0.52rem;
    }
}

@media (max-width: 480px) {
    .yemek-dist-badge {
        bottom: 8px;
        right: 8px;
        padding: 5px 8px 5px 6px;
    }

    .ydb-food-icon {
        width: 15px;
        height: 15px;
    }

    .ydb-title {
        font-size: 0.6rem;
    }

    .ydb-subtitle {
        font-size: 0.48rem;
    }
}

/* ============================================
   PREMIUM NEON HIGHLIGHT - Rotating Gradient Border
   ============================================ */
.neon-highlight-premium {
    position: relative;
    z-index: 10;
}

.neon-highlight-premium::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    padding: 3px;
    background: conic-gradient(from var(--neon-angle, 0deg),
            transparent 0deg,
            rgba(50, 145, 255, 0.1) 30deg,
            rgba(99, 102, 241, 0.6) 90deg,
            rgba(50, 145, 255, 0.9) 180deg,
            rgba(99, 102, 241, 0.6) 270deg,
            rgba(50, 145, 255, 0.1) 330deg,
            transparent 360deg);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: neonRotate 2s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.neon-highlight-premium::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    background: conic-gradient(from var(--neon-angle, 0deg),
            transparent 0deg,
            rgba(50, 145, 255, 0) 60deg,
            rgba(50, 145, 255, 0.15) 180deg,
            rgba(50, 145, 255, 0) 300deg,
            transparent 360deg);
    filter: blur(12px);
    animation: neonRotate 2s linear infinite;
    pointer-events: none;
    z-index: -2;
}

@property --neon-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes neonRotate {
    0% {
        --neon-angle: 0deg;
    }

    100% {
        --neon-angle: 360deg;
    }
}

/* Fallback for browsers without @property */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .neon-highlight-premium {
        border: 2px solid rgba(50, 145, 255, 0.6) !important;
        box-shadow:
            0 0 15px rgba(50, 145, 255, 0.4),
            0 0 30px rgba(50, 145, 255, 0.2),
            0 0 45px rgba(50, 145, 255, 0.1),
            inset 0 0 15px rgba(50, 145, 255, 0.08);
        animation: neonFallback 1.5s ease-in-out infinite;
    }

    @keyframes neonFallback {

        0%,
        100% {
            box-shadow: 0 0 10px rgba(50, 145, 255, 0.3), 0 0 20px rgba(50, 145, 255, 0.15);
            border-color: rgba(50, 145, 255, 0.4);
        }

        50% {
            box-shadow: 0 0 20px rgba(50, 145, 255, 0.5), 0 0 40px rgba(50, 145, 255, 0.25), 0 0 60px rgba(50, 145, 255, 0.1);
            border-color: rgba(50, 145, 255, 0.7);
        }
    }
}


/* Impact Text (Filistin) */
.impact-text {
    position: absolute;
    top: 20%;
    left: 8%;
    /* Removed background/border/shadow for "plain" look */
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 10;
}

.impact-text-line {
    display: block;
    color: #fff;
    font-size: 1.75rem;
    /* Increased size for impact */
    font-weight: 700;
    /* Bolder font */
    line-height: 1.2;
    opacity: 0;
    transform: translateY(15px);
    animation: textSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Stronger shadow for readability on photo */
}

.impact-text-line:nth-child(1) {
    animation-delay: 0.4s;
    margin-bottom: 0.5rem;
}

.impact-text-line:nth-child(2) {
    animation-delay: 0.6s;
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.95);
}

@keyframes textSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specific container for Yetim button */
.yetim-text-container {
    top: 16%;
    left: 20%;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

/* Specific container for Zekat button */
.zekat-text-container {
    top: auto;
    bottom: 8%;
    left: auto;
    right: 8%;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- Tablet (max 900px) --- */
@media (max-width: 900px) {
    .navbar {
        padding: 1rem 1.25rem;
    }

    .navbar-inner {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .navbar-left {
        gap: 1.25rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 1.5rem 1.25rem;
    }

    .photo-area {
        min-height: 260px;
        max-height: 320px;
    }

    .photo-placeholder {
        min-height: 260px;
    }

    .form-panel {
        padding: 2rem 1.5rem;
    }

    .category-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 0.5rem;
        /* Reduced right padding from 1.25rem to 0.75rem to decrease the excessive space next to 'Su Kuyusu' */
        padding: 0 0.75rem 0.5rem 1.25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-buttons::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        flex-shrink: 0;
        min-width: 80px;
    }

    .category-icon {
        width: 20px;
        height: 20px;
    }

    /* Modals */
    .modal-container {
        width: 92%;
        padding: 1.5rem;
    }

    /* Zekat Calculator */
    .zakat-inputs-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile (max 600px) --- */
@media (max-width: 600px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .navbar-right {
        gap: 0.75rem;
    }

    .btn-all-donations {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .btn-my-donations>span:not(.cart-badge) {
        display: none;
    }

    .cart-badge {
        right: auto;
        left: 12px;
        display: flex !important;
    }

    .main-content {
        padding: 0;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: calc(100vh - 150px);
    }

    .content-grid {
        gap: 0.5rem;
        padding: 0 1rem 0 1rem;
    }

    .photo-area {
        min-height: 180px;
        max-height: 180px;
        height: 180px;
        /* Force strict height */
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        /* Essential for impact-counter absolute positioning */
    }

    .photo-area img,
    .photo-area video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .photo-placeholder {
        min-height: 180px;
    }

    /* Form panel */
    .form-panel {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .panel-content {
        gap: 0.85rem;
    }

    /* Stack form groups vertically on mobile */
    .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .form-group label {
        min-width: unset;
        font-size: 0.85rem;
    }

    .form-group select,
    .form-group input[type="text"],
    .form-group input[type="number"] {
        font-size: 0.9rem;
        padding: 0.6rem 0.85rem;
    }

    /* Ensure Price and Button fit horizontally on mobile without breaking button shape */
    .price-row {
        gap: 0.6rem;
    }

    .price-row.has-price {
        gap: 0.75rem;
    }

    .price-display {
        font-size: 1.1rem;
        padding: 0;
        /* No padding when hidden so it takes 0 width */
        border: none;
    }

    .price-display.visible {
        padding: 0.55rem 0.8rem;
        border: 1px solid rgba(52, 211, 153, 0.3);
        white-space: nowrap;
        flex-shrink: 0;
        min-width: max-content;
        font-size: clamp(0.8rem, 4vw, 1.1rem);
    }

    .btn-donate {
        flex: 1 1 auto;
        padding: 0.8rem 0.8rem;
        font-size: clamp(0.8rem, 3.5vw, 0.9rem);
        white-space: nowrap;
    }

    .category-bar {
        order: -1;
        padding-top: 0.25rem;
        padding-bottom: 0.75rem;
        margin-top: 0;
        width: 100%;
        margin-left: -1rem;
        width: calc(100% + 2rem);
        position: relative;
        /* Perfect stationary mask applied to parent */
        -webkit-mask-image: linear-gradient(to right, transparent 0.5rem, black 2rem, black calc(100% - 2rem), transparent calc(100% - 0.5rem));
        mask-image: linear-gradient(to right, transparent 0.5rem, black 2rem, black calc(100% - 2rem), transparent calc(100% - 0.5rem));
    }

    /* category-buttons scrolling logic */
    .category-buttons {
        gap: 0.5rem;
        /* Perfectly balanced right padding (1rem) - not too much, not too little */
        padding: 0 1rem 0.65rem 1.5rem;
        /* Give them room to scroll completely out of the mask */
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    /* Hide Chrome/Safari scrollbar completely */
    .category-buttons::-webkit-scrollbar {
        display: none;
    }

    /* Ultra-Premium Swipe Hint Animation on Load */
    @keyframes swipeHintMobile {
        0% {
            translate: 0 0;
        }

        40% {
            translate: -68px 0;
            /* Smooth deep glide, middle ground distance */
        }

        100% {
            translate: 0 0;
            /* Perfect settle */
        }
    }

    .category-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.72rem;
        min-width: auto;
        gap: 0.3rem;
        border-radius: 12px;
        flex-shrink: 0;
        margin: 4px 0;
    }

    /* JavaScript triggered animation class */
    .category-btn.run-swipe-hint {
        /* Slow, silky smooth easing without mathematical glitches. Fill-mode 'both' prevents snapping before/after */
        animation: swipeHintMobile 3.5s cubic-bezier(0.25, 0.1, 0.25, 1) both;
    }

    /* Stagger the animation slowly so they move sequentially like a slow wave */
    .category-btn.run-swipe-hint:nth-child(1) {
        animation-delay: 0s;
    }

    .category-btn.run-swipe-hint:nth-child(2) {
        animation-delay: 0.05s;
    }

    .category-btn.run-swipe-hint:nth-child(3) {
        animation-delay: 0.1s;
    }

    .category-btn.run-swipe-hint:nth-child(4) {
        animation-delay: 0.15s;
    }

    .category-btn.run-swipe-hint:nth-child(5) {
        animation-delay: 0.2s;
    }

    .category-btn.run-swipe-hint:nth-child(6) {
        animation-delay: 0.25s;
    }

    .category-icon {
        width: 17px;
        height: 17px;
    }

    /* Impact text on photo */
    .impact-text {
        padding: 0.5rem;
        top: 15%;
        /* Shift up slightly */
        left: 5%;
    }

    .impact-text-line:nth-child(1) {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .impact-text-line:nth-child(2) {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        /* Add space before button */
    }

    /* Center and position Yetim button on mobile */
    .yetim-text-container {
        top: 10% !important;
        left: 50% !important;
        transform: translateX(-50%);
        width: 90%;
        /* flexible width */
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    /* Override inline styles for Zekat button on mobile */
    .zekat-text-container {
        top: auto !important;
        bottom: 15px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        width: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .btn-pulse {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }

    .btn-pulse svg {
        width: 12px;
        height: 12px;
    }

    /* Scale down impact counter on mobile */
    .impact-counter {
        bottom: 15px;
        left: 15px;
        padding: 0.75rem 1rem;
        border-radius: 12px;
    }

    .counter-number {
        font-size: 1.4rem;
    }

    .counter-label {
        font-size: 0.7rem;
    }

    /* Modals */
    .modal-container {
        width: 95%;
        max-height: 85vh;
        padding: 1.25rem;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .modal-body p {
        font-size: 0.85rem;
    }

    .modal-highlight {
        gap: 0.5rem;
    }

    .modal-highlight span {
        font-size: 0.78rem;
        padding: 0.3rem 0.6rem;
    }

    /* Zekat Calculator */
    .zakat-inputs-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .zakat-input-group label {
        font-size: 0.8rem;
    }

    .zakat-input-group input {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
    }

    .amount-display {
        font-size: 1.3rem;
    }

    .btn-calculate,
    .btn-donate-modal {
        font-size: 0.9rem;
        padding: 0.85rem;
    }

    /* Checkout Modal */
    .checkout-container {
        width: 100%;
        max-height: 100vh;
        border-radius: 16px 16px 0 0;
    }

    .checkout-header {
        padding: 2rem 1.5rem 1rem;
    }

    .checkout-icon {
        font-size: 2rem;
    }

    .checkout-header h2 {
        font-size: 1.3rem;
    }

    .checkout-subtitle {
        font-size: 0.82rem;
    }

    .checkout-body {
        padding: 0 1.25rem 1.5rem;
    }

    .checkout-row {
        flex-direction: column;
    }

    .summary-item {
        min-width: 100%;
    }

    .summary-item .summary-value {
        font-size: 0.85rem;
    }

    .summary-item.price-item .summary-value {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 0.9rem;
    }

    .checkout-field input,
    .checkout-field textarea {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .iban-number {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }

    .btn-copy-info {
        font-size: 0.9rem;
        padding: 0.85rem;
    }

    .guide-step {
        padding: 0.7rem;
        gap: 0.65rem;
    }

    .step-number {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 0.7rem;
    }

    .step-content strong {
        font-size: 0.82rem;
    }

    .step-content p {
        font-size: 0.72rem;
    }

    .contact-link {
        font-size: 0.95rem;
    }

    /* Custom kisi input */
    .custom-kisi-input {
        font-size: 0.85rem;
    }

    /* Detail button */
    .btn-detail {
        font-size: 0.85rem;
        padding: 0.6rem 1.25rem;
    }
}

/* --- Small phones (max 400px) --- */
@media (max-width: 400px) {
    .navbar {
        padding: 0.6rem 0.75rem;
    }

    .logo-img {
        height: 32px;
    }

    .btn-all-donations {
        font-size: 0.72rem;
        padding: 0.4rem 0.75rem;
    }

    .main-content {
        padding: 0.75rem;
    }

    .photo-area {
        min-height: 160px;
        max-height: 220px;
    }

    .form-panel {
        padding: 1.25rem 1rem;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-group select,
    .form-group input[type="text"],
    .form-group input[type="number"] {
        font-size: 0.8rem;
        padding: 0.55rem 0.75rem;
    }

    .btn-donate {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }

    .category-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.68rem;
        min-width: 60px;
    }

    .category-icon {
        width: 16px;
        height: 16px;
    }

    .checkout-container {
        border-radius: 12px 12px 0 0;
    }

    .checkout-header {
        padding: 1.5rem 1rem 0.75rem;
    }

    .checkout-body {
        padding: 0 1rem 1.25rem;
    }

    .iban-number {
        font-size: 0.82rem;
        letter-spacing: 0.5px;
        word-break: break-all;
    }
}

/* ============================================
   TRANSITION ANIMATIONS
   ============================================ */

/* Photo area transitions */
.photo-area {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.photo-area.photo-exit {
    opacity: 0;
    transform: scale(0.95);
}

.photo-area.photo-enter {
    animation: photoSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes photoSlideIn {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Panel content transitions */
.panel-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.panel-content.panel-exit {
    opacity: 0;
    transform: translateX(20px);
}

.panel-content.panel-enter {
    animation: panelSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes panelSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Staggered form group entrance */
.stagger-in {
    animation: staggerFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes staggerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category button press animation */
.category-btn {
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-btn:active {
    transform: scale(0.95);
}

/* ============================================
   INFO BUTTON & MODAL
   ============================================ */
.btn-detail {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease 0.8s forwards;
    text-decoration: none;
}

.btn-detail:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-detail::after {
    content: '→';
    font-family: inherit;
    transition: transform 0.3s ease;
}

.btn-detail:hover::after {
    transform: translateX(4px);
}

/* Base styles for the animated Yetim button */
.btn-pulse {
    background: linear-gradient(45deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    animation: heartbeat 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.05);
        /* Slight pop */
    }

    20% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.05);
        /* Second slight pop */
    }

    40%,
    100% {
        transform: scale(1);
    }
}

.btn-pulse:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.btn-pulse:active {
    transform: scale(0.95);
}

/* Heart Fly Animation Class */
.btn-pulse.flying-heart {
    animation: flyUpOut 0.8s ease-in forwards;
    pointer-events: none;
}

@keyframes flyUpOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2) translateY(-20px);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.5) translateY(-100px);
        opacity: 0;
    }
}

/* Zakat Button (Secure) */
.btn-secure {
    margin-top: 1.5rem;
    padding: 0.85rem 2rem;
    background: #10b981;
    /* Emerald Green */
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease 0.8s forwards, securePulse 2.5s infinite ease-in-out 1.3s;
    text-decoration: none;
    pointer-events: auto;
}

@keyframes securePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }
}

.btn-secure:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    background: #059669;
}

/* ============================================
   INFO / ZAKAT / YETIM MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    width: 90%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-right: 2.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-body p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.modal-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.modal-highlight span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-donate-modal {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-donate-modal:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 112, 243, 0.3);
}

/* Zakat Modal Specifics */
.zakat-container {
    max-width: 530px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    /* Compressed gap to save vertical space */
    margin-bottom: 1.5rem;
    /* Compressed safe area */
}

.calculator-grid .form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.calculator-grid .form-group label {
    margin-bottom: 0.4rem;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    white-space: nowrap;
    /* Prevent wrapping which causes overflow */
    overflow: hidden;
    text-overflow: ellipsis;
}

.calculator-grid .form-group input {
    width: 100%;
    padding: 12px 14px;
    /* Compressed padding */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    text-align: right;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calculator-grid .form-group input:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.calculator-grid .form-group input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.calculator-grid .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

.full-width {
    grid-column: span 2;
}

.btn-calculate {
    width: 100%;
    padding: 0.85rem;
    background: #fff;
    color: var(--primary-color);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-calculate:hover {
    background: #f8fafc;
    transform: scale(1.02);
}

.calculation-result {
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    /* Horizontal Layout with Absolute Top-Right Icon */
    display: grid;
    grid-template-areas:
        "title amount"
        "desc amount";
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0 1rem;
    position: relative;
    /* For absolute icon positioning */

    animation: resultSlideUpBouncy 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
}

@keyframes resultSlideUpBouncy {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.result-icon-box {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.result-icon-box svg {
    width: 18px;
    height: 18px;
}

.result-icon-box.gray {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: none;
    color: #94a3b8;
}

.calculation-result h4 {
    grid-area: title;
    font-size: 1.1rem;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.2px;
    line-height: 1.2;
    padding-right: 40px;
    /* Prevent text overlapping with absolute icon */
}

.calculation-result p {
    grid-area: desc;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin: 0;
    padding-right: 40px;
    /* Prevent text overlapping with absolute icon */
}

.calculation-result p b {
    color: #fff;
    font-weight: 600;
}

.zakat-amount {
    grid-area: amount;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    text-align: right;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.4));
    align-self: end;
    /* Push amount to the bottom right when icon is top right */

    /* Premium Continuous Animation */
    animation: zekatAmountPremiumPulse 2.5s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
    transform-origin: right bottom;
}

@keyframes zekatAmountPremiumPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.4));
    }

    100% {
        transform: scale(1.03);
        /* Refined, subtle prestige zoom */
        filter: drop-shadow(0 10px 25px rgba(16, 185, 129, 0.7));
        /* Elegant, controlled neon glow */
    }
}

/* Responsive adjustment for the horizontal result card */
@media (max-width: 480px) {
    .calculation-result {
        grid-template-areas:
            "title"
            "desc"
            "amount";
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.25rem;
    }

    .result-icon-box {
        top: 1rem;
        right: 1rem;
    }

    .zakat-amount {
        text-align: left;
        margin-top: 0.75rem;
        font-size: 1.35rem;
        align-self: start;
        transform-origin: left center;
        /* Pulse from left on mobile */
        word-break: break-word;
        /* Prevent giant numbers from overflowing */
        padding-right: 42px;
        /* Ensure huge numbers don't hit the right icon */
    }
}

.modal-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(225, 29, 72, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

/* =========================================
   DONATION CHECKOUT MODAL
   ========================================= */
#checkoutModal {
    z-index: 10000;
}

#checkoutModal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-container {
    position: relative;
    width: 95%;
    max-width: 580px;
    max-height: 90vh;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: checkoutSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.checkout-container::-webkit-scrollbar {
    width: 6px;
}

.checkout-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

@keyframes checkoutSlideUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.checkout-close {
    position: sticky;
    top: 12px;
    float: right;
    margin-right: 16px;
    margin-top: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.checkout-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: rotate(90deg);
}

/* Header */
.checkout-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
}

.checkout-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.checkout-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.3rem;
    letter-spacing: -0.3px;
}

.checkout-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* Body */
.checkout-body {
    padding: 0 2rem 2rem;
}

/* Summary */
.checkout-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInStagger 0.5s ease 0.2s both;
}

@keyframes fadeInStagger {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0.9rem;
    border-radius: 12px;
    flex: 1 1 auto;
    min-width: 45%;
}

.summary-item .summary-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item .summary-value {
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
}

.summary-item.price-item {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(16, 185, 129, 0.06));
    border-color: rgba(52, 211, 153, 0.25);
    flex-basis: 100%;
    justify-content: center;
}

.summary-item.price-item .summary-value {
    color: #34d399;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Sections */
.checkout-section {
    margin-bottom: 1.5rem;
    animation: fadeInStagger 0.5s ease 0.3s both;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.75rem;
}

/* Form */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkout-row {
    display: flex;
    gap: 0.75rem;
}

.checkout-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.checkout-field.full-width {
    width: 100%;
}

.checkout-field label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.checkout-field input,
.checkout-field textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    color: white;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
    resize: none;
}

.checkout-field input::placeholder,
.checkout-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.checkout-field input:focus,
.checkout-field textarea:focus {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.06);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* IBAN Card */
.iban-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
}

.iban-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.iban-value {
    font-size: 1rem;
    color: white;
    font-weight: 600;
}

.iban-number {
    font-size: 1.15rem;
    color: #93c5fd;
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: 1.5px;
}

/* Copy Button */
.btn-copy-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-copy-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-copy-info:active {
    transform: translateY(0);
}

.btn-copy-info.copied {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.copy-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-copy-info.copied .copy-icon::after {
    content: '✓';
}

/* Guide Steps */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.guide-step:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.step-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.step-content strong {
    display: block;
    font-size: 0.9rem;
    color: white;
    margin-bottom: 0.15rem;
}

.step-content p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    line-height: 1.4;
}

/* Contact */
.checkout-contact {
    text-align: center;
    padding: 1.25rem;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.checkout-contact p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 0.5rem;
}

.contact-link {
    color: #93c5fd;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: white;
}

/* Responsive */
@media (max-width: 480px) {
    .checkout-container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .checkout-body {
        padding: 0 1.25rem 1.5rem;
    }

    .checkout-row {
        flex-direction: column;
    }

    .summary-item {
        min-width: 100%;
    }
}

/* =========================================
   DONATE MENU MODAL (2x2x2x1)
   ========================================= */
.donate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.donate-overlay.active {
    display: flex;
    opacity: 1;
}

.donate-menu-container {
    background: rgba(18, 28, 55, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 2.5rem;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.donate-overlay.active .donate-menu-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.donate-menu-header {
    text-align: center;
    margin-bottom: 2rem;
}

.donate-menu-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.donate-menu-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* 2x2x2x1 Grid */
.donate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.donate-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

/* Restrict hover effects ONLY to devices with a real mouse pointer */
@media (hover: hover) and (pointer: fine) {
    .donate-box:hover {
        background: rgba(0, 112, 243, 0.15);
        border-color: rgba(0, 112, 243, 0.4);
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 10px 30px rgba(0, 112, 243, 0.15);
    }

    .donate-box:hover .donate-icon {
        transform: scale(1.15) rotate(5deg);
    }
}

.donate-box:active {
    transform: scale(0.98);
}

.donate-box.full {
    grid-column: 1 / -1;
    flex-direction: row;
    padding: 1rem;
}

.donate-icon {
    font-size: 2rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.donate-box span {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

/* Spotlight Effect on Home Page */
.spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.spotlight-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.form-panel,
.photo-area,
.category-bar {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-panel.spotlight-active,
.photo-area.spotlight-active,
.category-bar.spotlight-active {
    position: relative;
    z-index: 100;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
}

.form-panel.spotlight-active {
    border-color: transparent;
    transform: scale(1.02);
    overflow: visible;
    box-shadow: 0 0 40px rgba(0, 140, 255, 0.15);
    /* Soft outer aura */
}

/* Rotating neon border glow removed per user request */

/* Inner solid mask — removed to restore original glass transparency */
.form-panel.spotlight-active::after {
    display: none;
}

/* ---- Category Badge (top right of panel) ---- */
.spotlight-category-badge {
    position: absolute;
    top: -14px;
    right: 20px;
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    z-index: 110;
    box-shadow: 0 4px 20px rgba(0, 114, 255, 0.4), 0 0 10px rgba(0, 180, 255, 0.2);
    /* Changed from opacity 0 to 1, transform initial to normal scale */
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    cursor: default;
    white-space: nowrap;
}

/* Badge swap animation */
.spotlight-category-badge.badge-swap-out {
    opacity: 0;
    transform: translateY(-10px) scale(0.85);
    transition: all 0.25s ease-in;
}

.spotlight-category-badge.badge-swap-in {
    animation: badgeSwapIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes badgeSwapIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.85);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Badge hover tooltip */
.spotlight-category-badge .badge-hover-tip {
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: rgba(0, 12, 30, 0.95);
    border: 1px solid rgba(0, 140, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 5px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.spotlight-category-badge .badge-hover-tip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: rgba(0, 12, 30, 0.95);
    border-top: 1px solid rgba(0, 140, 255, 0.25);
    border-left: 1px solid rgba(0, 140, 255, 0.25);
}

.spotlight-category-badge:hover .badge-hover-tip {
    opacity: 1;
    transform: translateX(-50%) translateY(0px);
}

/* ---- Guide Tooltip (one-time hint) ---- */
.spotlight-guide-tooltip {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 20, 50, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 170, 255, 0.3);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 12px;
    z-index: 115;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 140, 255, 0.15);
    opacity: 0;
    pointer-events: auto;
    /* Makes it clickable */
    cursor: pointer;
    /* Indicates it can be clicked to dismiss */
    animation: guideTooltipAnim 4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spotlight-guide-tooltip .guide-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.spotlight-guide-tooltip .guide-icon svg {
    width: 18px;
    height: 18px;
}

.spotlight-guide-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(0, 20, 50, 0.92);
    border-right: 1px solid rgba(0, 170, 255, 0.3);
    border-bottom: 1px solid rgba(0, 170, 255, 0.3);
}

@keyframes guideTooltipAnim {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    12% {
        opacity: 1;
        transform: translateX(-50%) translateY(0px);
    }

    70% {
        opacity: 1;
        transform: translateX(-50%) translateY(0px);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px);
    }
}

@property --neon-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes neonSpin {
    0% {
        --neon-angle: 0deg;
    }

    100% {
        --neon-angle: 360deg;
    }
}

/* Ensure category bar stays on top */
.category-bar {
    position: relative;
    z-index: 1;
}

/* Fix stacking context for spotlight */
/* Fix stacking context for spotlight */
body.spotlight-mode .main-content {
    z-index: auto !important;
    transform: none !important;
    filter: none !important;
    perspective: none !important;
    contain: none !important;
    will-change: auto !important;
}

/* =========================================
   CART DRAWER
   ========================================= */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -600px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    /* Fallback for very old browsers */
    height: 100dvh;
    /* Modern fix for mobile address bars */
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.cart-drawer.active {
    right: 0;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 700;
}

.cart-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.cart-close:hover {
    opacity: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Empty Cart State */
.empty-cart-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.btn-start-donate {
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-start-donate:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Cart Item */
.cart-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 112, 243, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cart-item-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 2px;
}

.btn-qty {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

/* ============================================
   UNIVERSAL DONATION FORM MODAL
   ============================================ */
.donate-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2001;
    /* Higher than donate menu grid */
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    padding: 1.5rem;
}

.donate-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.donate-modal {
    width: 100%;
    max-width: 920px;
    max-height: 90vh;
    background: linear-gradient(145deg, rgba(10, 18, 46, 0.97), rgba(6, 12, 32, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.donate-modal-overlay.active .donate-modal {
    transform: scale(1) translateY(0);
}

.donate-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donate-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.donate-modal-inner {
    display: flex;
    max-height: 90vh;
    overflow-y: auto;
}

/* Left Panel */
.dm-left {
    width: 42%;
    flex-shrink: 0;
    background: rgba(0, 112, 243, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.dm-photo-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.dm-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dm-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 18, 46, 0.95) 10%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
}

.dm-photo-emoji {
    font-size: 2.5rem;
}

.dm-info {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
}

.dm-info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.dm-info>p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.dm-features {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.dm-feature {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    line-height: 1.4;
}

.dm-feature::first-letter {
    color: var(--primary-accent);
}

.dm-stats-row {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.dm-stat {
    display: flex;
    flex-direction: column;
}

.dm-stat-num {
    font-weight: 700;
    color: var(--primary-accent);
    font-size: 1.1rem;
}

.dm-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Right Panel */
.dm-right {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.dm-right h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.dm-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dm-field label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.dm-field select,
.dm-field input,
.dm-field textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.dm-field select:focus,
.dm-field input:focus,
.dm-field textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-accent);
    outline: none;
}

.dm-field select option {
    background: #0f172a;
    color: #fff;
}

.dm-donor-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dm-donor-info h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.dm-submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
}

.dm-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* Checkout State */
.dm-checkout {
    animation: fadeIn 0.4s ease;
}

.dm-checkout-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dm-checkout-header h4 {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
}

.dm-checkout-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.dm-bank {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.dm-bank-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.3rem;
}

.dm-bank-iban {
    font-family: monospace;
    color: var(--primary-accent);
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.dm-bank-holder {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.dm-summary {
    margin: 1.5rem 0;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 1rem;
}

.dm-summary-title {
    color: #22c55e;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dm-summary pre {
    white-space: pre-wrap;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.dm-copy-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
}

.dm-copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.dm-guide {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dm-guide-step {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.dm-guide-step span {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

@media (max-width: 768px) {
    .donate-modal-inner {
        flex-direction: column;
    }

    .dm-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dm-photo-wrap {
        height: 150px;
    }

    .dm-right {
        padding: 1.5rem;
    }
}

.qty-display {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.item-price {
    font-weight: 700;
    color: #34d399;
}

.btn-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: auto;
    padding-left: 0.5rem;
}

.btn-remove:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Cart Footer */
.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.95);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.total-amount {
    color: #34d399;
    font-size: 1.3rem;
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Badge for items count */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
    /* Match navbar bg */
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge.visible {
    transform: scale(1);
}

/* =========================================
   MOBILE OPTIMIZATION (GENERAL)
   ========================================= */

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    transition: opacity 0.3s ease;
}

.mobile-nav-toggle:active {
    opacity: 0.7;
    /* Simple tactile feedback */
    transform: scale(0.95);
}

/* Experimental Mobile Menu (Floating Glass Sidebar) */
.mobile-menu {
    position: fixed;
    /* Fixed relative to viewport */
    top: 90px;
    /* Safe area from top */
    right: 20px;
    /* Safe area from right - floating effect */
    left: auto;
    width: 250px;
    height: auto;
    max-height: calc(100vh - 120px);
    /* Prevent overflow */

    background: rgba(20, 25, 35, 0.65);
    /* Ultra-premium dark glass */
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    /* deeply rounded */

    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0.75rem;
    gap: 0.5rem;

    opacity: 0;
    visibility: hidden;
    transform: translateX(50px) scale(0.95);
    /* Slide in from right */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Spring physics */

    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 10px 20px -8px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.mobile-link {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-radius: 20px;
    /* Matching rounded theme */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    display: block;
}

.mobile-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .navbar {
        padding: 1.5rem;
    }

    .navbar-left {
        gap: 1rem;
    }

    .nav-links {
        display: none;
        /* Hide desktop links */
    }

    .mobile-nav-toggle {
        display: block;
    }

    .btn-my-donations span {
        display: none;
        /* Hide text, show only icon on tablet */
    }

    .content-grid {
        grid-template-columns: 1fr;
        /* Stack layout */
        max-width: 600px;
        margin: 0 auto;
    }

    .photo-area {
        min-height: 250px;
    }

    .donate-menu-container {
        width: 95%;
        padding: 1.5rem;
    }

    .donate-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Keep 2 cols for tablet */
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 1rem;
    }

    .logo-img {
        height: 32px;
    }

    .main-content {
        padding: 0 1rem 1rem 1rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .photo-area {
        min-height: 200px;
    }

    .form-panel {
        padding: 1.5rem;
    }

    .donate-grid {
        grid-template-columns: 1fr;
        /* 1 col for mobile */
    }

    .donate-box {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem;
        gap: 1rem;
    }

    .donate-icon {
        font-size: 1.5rem;
    }

    /* Mobile Zakat Button Refinement */
    .btn-secure {
        margin-top: 1rem;
        padding: 0.75rem 1.5rem;
        /* Noticeably smaller padding */
        font-size: 0.95rem;
        /* Smaller, cleaner font size */
        width: 100%;
        /* Full width for easy tapping */
        justify-content: center;
        /* Chain the fade-in reveal with the continuous pulse to prevent invisibility */
        animation: fadeInUp 0.5s ease 0.8s forwards, securePulse 2.5s infinite ease-in-out 1.3s;
    }

    .btn-secure svg {
        width: 18px;
        /* Slightly smaller icon */
        height: 18px;
    }

    @media (hover: hover) and (pointer: fine) {
        .donate-box:hover .donate-icon {
            transform: scale(1.1) rotate(5deg);
        }
    }
}

/* =========================================
   MOBILE MODAL & CART ADJUSTMENTS
   ========================================= */
@media (max-width: 600px) {

    /* Cart Drawer */
    .cart-drawer {
        width: 100%;
        max-width: 100%;
        right: -110%;
        /* Ensure it's fully offscreen */
        box-shadow: none;
    }

    .cart-drawer.active {
        right: 0;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    }

    /* Checkout Modal */
    .checkout-container {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .checkout-body {
        flex: 1;
        overflow-y: auto;
        padding-bottom: 2rem;
    }

    /* Donate Menu Modal */
    .donate-menu-container {
        width: 100%;
        height: 100%;
        /* Full screen */
        max-width: 100%;
        border-radius: 0;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 4rem;
    }

    .donate-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    /* Zakat Modal Mobile Redesign (Compact Floating Popup) */
    .zakat-container {
        width: 95%;
        max-width: 500px;
        max-height: 90vh;
        overflow-y: auto;
        padding: 1.25rem;
        /* Restore original border-radius and background logic */
        border-radius: 20px;
        display: block;
    }

    /* Override the previously added full-width overrides */
    .zakat-container .modal-header,
    .zakat-container .modal-body,
    .zakat-container .modal-footer {
        padding: 0;
        background: transparent;
        border: none;
    }

    .zakat-container .modal-header {
        margin-bottom: 1rem;
    }

    .zakat-container .modal-footer {
        margin-top: 1rem;
    }

    .zakat-container .modal-close {
        top: 15px;
        right: 15px;
    }

    /* Transform inputs into a highly compact 2-column grid to save vertical space */
    .calculator-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .calculator-grid .form-group label {
        font-size: 0.75rem;
        /* Smaller labels for side-by-side fit */
        margin-bottom: 0.4rem;
        letter-spacing: 0;
        white-space: nowrap;
        /* Prevent awkward wrapping */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .calculator-grid .form-group input {
        padding: 10px 12px;
        font-size: 1rem;
        /* Smaller font to fit constraints */
        border-radius: 8px;
    }

    .calculator-grid .form-group.full-width {
        grid-column: span 2;
    }

    .donate-box {
        padding: 1.25rem;
    }

    /* Close button for donate menu (add if needed, or rely on overlay click) */
}

/* =========================================
   Experimental Mobile Menu (Staggered)
   Overrides previous styles
   ========================================= */

.mobile-menu {
    position: fixed;
    top: 90px;
    right: 20px;
    width: 250px;
    height: auto;

    background: rgba(20, 25, 35, 0.75);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;

    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0.75rem;
    gap: 0.6rem;

    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 10px 20px -8px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.mobile-link {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    display: block;

    /* Animation Initial State */
    opacity: 0;
    transform: translateX(40px);
    transition:
        opacity 0.4s ease,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Staggered Delays when Active */
.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active .mobile-link:nth-child(1) {
    transition-delay: 0.05s;
}

.mobile-menu.active .mobile-link:nth-child(2) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-link:nth-child(3) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-link:nth-child(4) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-link:nth-child(5) {
    transition-delay: 0.25s;
}

.mobile-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.03) translateX(0) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition-delay: 0s;
}

/* ============================================
   3-STEP WIZARD CHECKOUT — APPLE QUALITY
   ============================================ */

/* Overlay */
.wiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.wiz-overlay::before,
.wiz-overlay::after {
    content: '';
    flex: 1 1 auto;
    min-height: env(safe-area-inset-top, 1rem);
}

.wiz-overlay::after {
    min-height: env(safe-area-inset-bottom, 1rem);
}

.wiz-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Container */
.wiz-container {
    position: relative;
    width: 92%;
    max-width: 480px;
    margin: 0 auto;
    flex-shrink: 0;
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 36px;
    padding: 2rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    transform: scale(0.96) translateY(20px);
    opacity: 0;

    /* Optimized Transitions */
    transition:
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s ease,
        max-width 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    will-change: max-width, transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
    color: #f5f5f7;
    scrollbar-width: none;
}

.wiz-container.step-3-layout {
    max-width: 800px;
}

.wiz-container::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.wiz-overlay.active .wiz-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Close */
.wiz-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.wiz-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

/* ============================================
   STEPPER (Clean & Minimal)
   ============================================ */
.wiz-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0 3rem;
}

.wiz-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.wiz-step:hover:not(.active) .wiz-step-circle {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
}

.wiz-step span {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.02em;
    transition: color 0.4s ease;
}

.wiz-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2c2c2e;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Active Step */
.wiz-step.active .wiz-step-circle {
    background: #007aff;
    /* Apple Blue */
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.wiz-step.active span {
    color: #fff;
    font-weight: 600;
}

/* Completed Step */
.wiz-step.completed .wiz-step-circle {
    background: #34c759;
    /* Apple Green */
    color: #fff;
}

.wiz-step.completed span {
    color: rgba(255, 255, 255, 0.6);
}

/* Lines */
.wiz-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 -0.5rem;
    margin-bottom: 0.85rem;
    border-radius: 2px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.wiz-line.filled {
    background: rgba(255, 255, 255, 0.06);
}

.wiz-line.filled::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #34c759;
    border-radius: 2px;
    transform-origin: left;
    animation: lineGrow 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes lineGrow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ============================================
   STEP PANELS
   ============================================ */
.wiz-body {
    position: relative;
    overflow: visible;
    /* Critical fix for shadow clipping */
    min-height: 280px;
    padding: 0;
    margin: 0;
    contain: content;
}

/* Payment Validation Error Toast */
.wiz-error-toast {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wiz-error-toast svg {
    flex-shrink: 0;
    color: #f87171;
}

.wiz-error-toast span {
    font-size: 0.78rem;
    font-weight: 500;
    color: #fca5a5;
    line-height: 1.4;
}

@keyframes toastSlideIn {
    from {
        transform: translateY(-15px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scroll Indicator (hidden on desktop by default) */
.wiz-scroll-indicator {
    display: none;
}

.wiz-panel {
    display: none;
    width: 100%;
    overflow: visible;
    padding: 4px 12px;
    box-sizing: border-box;
    will-change: opacity, transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.wiz-panel.active {
    display: block;
    animation: wizFadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wiz-panel.exit-left,
.wiz-panel.exit-right {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    animation: wizFadeOutUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wizFadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes wizFadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-15px) scale(0.98);
    }
}

/* ============================================
   STEP 1: SUMMARY CARD
   ============================================ */
.wiz-summary-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
}

.wiz-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Icon Left, Title Right */
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wiz-summary-icon {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    flex-shrink: 0;
}

.wiz-summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    margin: 0;
}

.wiz-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.wiz-summary-row {
    display: flex;
    justify-content: space-between;
    /* Label Left, Value Right */
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wiz-summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wiz-row-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.wiz-row-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
}

.wiz-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
}

.wiz-total-bar span:first-child {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.wiz-total-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #34d399;
    /* Matches home page green */
    letter-spacing: -0.02em;
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.2);
}

/* ============================================
   STEP 2: FORM CARD
   ============================================ */
.wiz-form-card {
    margin-bottom: 1.75rem;
}

.wiz-form-title {
    display: none;
    /* Kept clean, no title needed here */
}

.wiz-field {
    margin-bottom: 0.75rem;
    position: relative;
}

.wiz-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
}

.wiz-field input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid transparent;
    color: #fff;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    font-size: 1.05rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    background-clip: padding-box;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.wiz-field input:-webkit-autofill,
.wiz-field input:-webkit-autofill:hover,
.wiz-field input:-webkit-autofill:focus,
.wiz-field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #2c2c2e inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
    border-radius: 16px;
    background-clip: padding-box;
}

.wiz-field input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.wiz-field input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #0a84ff;
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.2);
    outline: none !important;
}

.phone-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-flag {
    position: absolute;
    left: 1rem;
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-flag.visible {
    opacity: 1;
    transform: scale(1);
}

.phone-input-container input {
    padding-left: 1.25rem !important;
    /* Initial padding */
    transition: padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.phone-input-container.has-flag input {
    padding-left: 3.5rem !important;
    /* Animated padding when flag appears */
}

.wiz-field input.field-error {
    border-color: #ff453a;
    /* Apple Red */
    box-shadow: 0 0 0 4px rgba(255, 69, 58, 0.2);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-4px);
    }

    40%,
    80% {
        transform: translateX(4px);
    }
}

/* ============================================
   STEP 3: MINI SUMMARY & PAYMENT
   ============================================ */
/* ============================================
   STEP 3: NEW HORIZONTAL LAYOUT
   ============================================ */
.wiz-payment-layout {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.5rem;
    align-items: stretch;
    /* Match panel heights */
}

.wiz-payment-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wiz-payment-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
    align-self: stretch;
}

.wiz-payment-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
}

.payment-side-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-form-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-badges-flex {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
}

.badge-item svg {
    color: #34d399;
}

.wiz-help-info {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.15rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
}

.help-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.help-head span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.wiz-help-info p {
    font-size: 0.74rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}


.wiz-mini-summary {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wiz-mini-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wiz-mini-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.wiz-mini-row strong {
    color: #fff;
    font-weight: 500;
}

#wizMiniDonorRow {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wiz-mini-total {
    margin-top: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.wiz-mini-total span:last-child {
    font-size: 1.35rem;
    font-weight: 700;
    color: #34d399;
}

.wiz-btn.pay {
    margin-top: 0.75rem;
    background: #34d399;
    color: #064e3b;
    font-weight: 700;
    padding: 1.15rem;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(52, 211, 153, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wiz-btn.pay:hover {
    background: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.25);
}

/* Card Field Overrides for Step 3 */
#wizStep3 .card-field input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.9rem 1rem;
    border-radius: 12px;
}

#wizStep3 .card-field input:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
}

.payment-or-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.35rem 0;
}

.payment-or-divider::before,
.payment-or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.payment-or-divider span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Specific style to make Step 3 Back button smaller & aligned */
/* Specific style to make Step 3 Back button smaller & aligned */
#wizBack3 {
    padding: 0.75rem 1.15rem;
    font-size: 0.85rem;
    border-radius: 14px;
    margin-top: 0;
    align-self: flex-start;
    background: #f5f5f7;
    color: #1c1c1e;
}

#wizBack3:hover {
    background: #fff;
    transform: translateY(-1px);
}

/* Step 3 Footer - Logo + Back row + Trust note */
.wiz-step3-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wiz-step3-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.wiz-step3-logo {
    height: 22px;
    width: auto;
    opacity: 0.35;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.wiz-step3-logo:hover {
    opacity: 0.6;
}

.wiz-step3-trust-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.01em;
    line-height: 1.4;
    margin: 0;
}

.wiz-step3-trust-note svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.2);
}

/* Per-field inline error tooltip - absolutely positioned overlay */
.field-error-tip {
    position: absolute;
    top: -2px;
    left: 0.25rem;
    right: 0.25rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 8px;
    animation: fieldTipIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.field-error-tip svg {
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    color: #fff;
}

.field-error-tip span {
    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes fieldTipIn {
    from {
        transform: translateY(-6px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Error field glow pulse */
.field-error-glow {
    animation: fieldGlow 1.5s ease-out;
}

@keyframes fieldGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 15px 3px rgba(239, 68, 68, 0.25);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.wiz-whatsapp-premium {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    background: rgba(37, 211, 102, 0.03);
    border: 1px solid rgba(37, 211, 102, 0.15);
    padding: 0.8rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.wiz-whatsapp-premium:hover {
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.1);
}

.wa-icon-box {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    flex-shrink: 0;
}

.wa-text-box {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.wa-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: #25d366;
    letter-spacing: 0.02em;
}

.wa-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.wa-arrow {
    color: rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, color 0.3s ease;
}

.wiz-whatsapp-premium:hover .wa-arrow {
    color: #25d366;
    transform: translateX(3px);
}

/* Glass shine effect on hover */
.wiz-whatsapp-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.03),
            transparent);
    transform: rotate(45deg);
    transition: 0.6s;
    pointer-events: none;
}

.wiz-whatsapp-premium:hover::after {
    left: 100%;
    top: 100%;
}

.wiz-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.wiz-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 18px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.wiz-btn:active {
    transform: scale(0.97);
}

.wiz-btn.primary {
    flex: 2;
    background: #007aff;
    color: #fff;
}

.wiz-btn.primary:hover {
    background: #006ee6;
}

.wiz-btn.secondary {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.wiz-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.wiz-btn.pay {
    width: 100%;
    padding: 1.15rem 1.5rem;
    border-radius: 20px;
    background: #34c759;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 0.5rem;
    box-shadow: 0 8px 20px rgba(52, 199, 89, 0.25);
}

.wiz-btn.pay:hover {
    background: #2ebd4e;
    box-shadow: 0 10px 25px rgba(52, 199, 89, 0.35);
}

.wiz-btn.pay.loading {
    pointer-events: none;
    color: transparent;
}

.wiz-btn.pay.loading .pay-spinner {
    display: block;
}

.wiz-btn.pay.success {
    background: #007aff;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25);
}

.pay-spinner {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinRing 0.8s linear infinite;
}

/* ============================================
   CREDIT CARD PREVIEW (Ultra Minimal)
   ============================================ */
.card-preview-wrap {
    perspective: 1200px;
    margin-bottom: 1rem;
}

.card-preview {
    width: 100%;
    max-width: 290px;
    height: 180px;
    margin: 0 auto;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-preview.flipped {
    transform: rotateY(180deg);
}

.card-preview-front,
.card-preview-back {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Premium Titanium Effect */
.card-preview-front::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.03) 25%, transparent 30%);
    pointer-events: none;
}

.card-preview-front {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-chip {
    width: 42px;
    height: 32px;
    background: linear-gradient(135deg, #e0e0e0, #9e9e9e);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    opacity: 0.9;
}

.card-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.card-brand {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
}

.card-number-display {
    font-family: 'SF Mono', 'Fira Code', 'Menlo', monospace;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: #f5f5f7;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-holder-display,
.card-expiry-display {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-label-sm {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

.card-holder-display span:last-child,
.card-expiry-display span:last-child {
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Back of Card */
.card-preview-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
}

.card-mag-stripe {
    width: 100%;
    height: 38px;
    background: #000;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-cvv-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0 1.2rem;
    gap: 0.4rem;
}

.card-cvv-display {
    background: #fff;
    color: #000;
    padding: 0.4rem 1.25rem;
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1rem;
    letter-spacing: 4px;
    width: 50px;
    text-align: right;
}

/* ============================================
   CARD FORM (Apple Pro)
   ============================================ */
.card-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.card-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.card-field label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-left: 0.25rem;
}

.card-field input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid transparent;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    background-clip: padding-box;
}

.card-field input:-webkit-autofill,
.card-field input:-webkit-autofill:hover,
.card-field input:-webkit-autofill:focus,
.card-field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #2c2c2e inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
    border-radius: 16px;
    background-clip: padding-box;
}

.card-field input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.card-field input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #0a84ff;
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.2);
    outline: none !important;
}

.card-field input.field-error {
    border-color: #ff453a;
    box-shadow: 0 0 0 4px rgba(255, 69, 58, 0.2);
}

.card-input-wrap {
    position: relative;
}

.card-input-wrap input {
    padding-right: 4rem;
}

.card-brand-inline {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-brand-inline.visible {
    opacity: 1;
}

.card-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

/* ============================================
   SECURITY BADGES
   ============================================ */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0.75rem 0;
}

.security-badges .badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.security-badges .badge svg {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .wiz-overlay {
        padding: 0;
        justify-content: flex-start;
        touch-action: none;
        overscroll-behavior: none;
    }

    .wiz-container {
        width: 94%;
        max-width: 400px;
        max-height: 92vh;
        max-height: 92dvh;
        display: flex;
        flex-direction: column;
        flex-shrink: 1;
        overflow: hidden;
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .wiz-container.step-3-layout {
        max-width: 400px;
        max-height: 92vh;
        max-height: 92dvh;
    }

    .wiz-body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        contain: none;
        scrollbar-width: none;
        -ms-overflow-style: none;
        position: relative;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 1rem, black calc(100% - 1.5rem), transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 1rem, black calc(100% - 1.5rem), transparent 100%);
    }

    .wiz-body::-webkit-scrollbar {
        display: none;
    }

    /* Custom JS-driven Animated Scrollbar */
    .wiz-custom-scroll-track {
        position: absolute;
        top: 2.5rem;
        bottom: 2.5rem;
        right: 3px;
        width: 3px;
        background: transparent;
        border-radius: 4px;
        z-index: 50;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .wiz-custom-scroll-track.visible {
        opacity: 1;
    }

    .wiz-custom-scroll-thumb {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        min-height: 20px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 4px;
        transition: top 0.1s linear;
    }

    /* Scroll indicator - animated bouncing arrow */
    .wiz-scroll-indicator {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.5rem 0 0.4rem;
        background: linear-gradient(to top, rgba(28, 28, 30, 0.95) 0%, rgba(28, 28, 30, 0.7) 50%, transparent 100%);
        z-index: 5;
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .wiz-scroll-indicator.hidden {
        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
    }

    .wiz-scroll-indicator svg {
        color: rgba(255, 255, 255, 0.5);
        animation: scrollBounce 1.8s ease-in-out infinite;
    }

    @keyframes scrollBounce {

        0%,
        100% {
            transform: translateY(0);
            opacity: 0.5;
        }

        50% {
            transform: translateY(5px);
            opacity: 1;
        }
    }

    /* Payment validation error toast */
    .wiz-error-toast {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.65rem 0.85rem;
        background: rgba(239, 68, 68, 0.15);
        border: 1px solid rgba(239, 68, 68, 0.3);
        border-radius: 12px;
        margin-bottom: 0.75rem;
        animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .wiz-error-toast svg {
        flex-shrink: 0;
        color: #f87171;
    }

    .wiz-error-toast span {
        font-size: 0.75rem;
        font-weight: 500;
        color: #fca5a5;
        line-height: 1.4;
    }

    @keyframes toastSlideIn {
        from {
            transform: translateY(-15px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .wiz-overlay.active .wiz-container {
        transform: scale(1) translateY(0);
    }

    .wiz-overlay.active .wiz-container.step-3-layout {
        transform: scale(1) translateY(0);
    }

    .wiz-close {
        top: 0.8rem !important;
        right: 0.8rem !important;
        width: 34px !important;
        height: 34px !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }

    .wiz-stepper {
        padding: 0 1.5rem 0 0.5rem !important;
        margin-bottom: 1rem !important;
    }

    .wiz-step span {
        font-size: 0.6rem;
    }

    .wiz-step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    /* Step 3 Mobile Layout Reorder */
    .wiz-payment-layout {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 0.25rem;
        padding-bottom: 0;
    }

    .wiz-payment-left,
    .wiz-payment-right,
    .card-form-vertical {
        display: contents;
    }

    .wiz-help-info {
        order: 1;
        margin: 0.5rem 0 0.75rem 0 !important;
        padding: 0.75rem;
    }

    .wiz-help-info p {
        font-size: 0.68rem;
    }

    .wiz-payment-right .payment-side-title {
        order: 2;
        margin-bottom: 0.5rem !important;
        font-size: 0.8rem !important;
        color: #0a84ff !important;
        letter-spacing: 0.08em;
        padding: 0.5rem 0.75rem;
        background: rgba(10, 132, 255, 0.08);
        border: 1px solid rgba(10, 132, 255, 0.2);
        border-radius: 12px;
        text-align: center;
    }

    .card-field,
    .card-row-2 {
        order: 3;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        padding: 0.75rem;
    }

    .wiz-payment-left .payment-side-title {
        order: 4;
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .wiz-mini-summary {
        order: 5;
        padding: 0.85rem;
    }

    .wiz-mini-row {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .wiz-mini-total span:last-child {
        font-size: 1.1rem;
    }

    .security-badges-flex {
        display: none;
    }

    .wiz-btn.pay {
        order: 6;
        padding: 0.85rem;
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .payment-or-divider {
        order: 7;
        margin: 0.25rem 0 !important;
    }

    .wiz-whatsapp-premium {
        order: 8;
        padding: 0.65rem 0.8rem;
        gap: 0.75rem;
    }

    .wa-icon-box {
        width: 32px;
        height: 32px;
    }

    .wa-tag {
        font-size: 0.75rem;
    }

    .wa-desc {
        font-size: 0.65rem;
    }

    #wizBack3 {
        padding: 0.65rem 1.1rem;
        font-size: 0.8rem;
        margin-top: 0;
        margin-bottom: 0;
        align-self: center;
        width: auto;
        min-width: auto;
    }

    .card-field label {
        font-size: 0.7rem;
        margin-bottom: 0.35rem;
    }

    #wizStep3 .card-field input {
        padding: 0.7rem 0.85rem;
        font-size: 0.9rem;
    }

    .payment-side-title {
        font-size: 0.7rem;
        text-align: center;
    }

    .wiz-step3-footer {
        display: none;
    }

    .wiz-step3-logo,
    .wiz-step3-trust-note {
        display: none;
    }
}

/* ============================================
   PREMIUM STATS COUNTER SECTION
   ============================================ */
.stats-section {
    position: relative;
    width: 100%;
    padding: 4rem 2rem;
    overflow: hidden;
    background: transparent;
    z-index: 1;
}

.stats-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

.stats-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.stats-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

@keyframes statsOrbFloat {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: var(--sp-max, 0.3);
        transform: translateY(-20px) scale(1);
    }

    80% {
        opacity: var(--sp-max, 0.3);
    }

    100% {
        transform: translateY(-120px) scale(0.2);
        opacity: 0;
    }
}

.stats-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

/* Top Side Info Box */
.stats-info-box {
    width: 100%;
    max-width: 900px;
    padding: 0 2rem;
    text-align: center;
    transform: translateY(-20px);
    opacity: 0;
    animation: slideInDown 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInDown {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stats-info-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 12px rgba(0, 112, 243, 0.2));
}

.stats-info-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.stats-info-highlight {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(0, 112, 243, 0.1);
    border: 1px solid rgba(50, 145, 255, 0.2);
    border-radius: 20px;
    color: #93c5fd;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
}

/* Right Side Counters */
.stats-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* Individual Stat Card */
.stats-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.stats-card.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Card Shine Effect */
.stats-card-shine {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.03) 0%,
            transparent 50%,
            rgba(255, 255, 255, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.stats-card:hover .stats-card-shine {
    opacity: 1;
}

/* Icon */
.stats-icon-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    background: rgba(0, 112, 243, 0.08);
    border: 1px solid rgba(0, 112, 243, 0.15);
    border-radius: 16px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease;
}

.stats-icon-wrap svg {
    width: 26px;
    height: 26px;
}

.stats-card:hover .stats-icon-wrap {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 112, 243, 0.2);
}

/* --- Premium Icon Animations --- */
/* 1. Heartbeat */
@keyframes premiumHeartbeat {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 transparent);
    }

    15% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 8px rgba(50, 145, 255, 0.6));
    }

    30% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 transparent);
    }

    45% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 8px rgba(50, 145, 255, 0.6));
    }

    60% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 transparent);
    }
}

.icon-anim-heart {
    animation: premiumHeartbeat 2.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    transform-origin: center;
}

/* 2. People Switch/Move */
@keyframes peopleMoveMain {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-1px);
    }
}

@keyframes peopleMoveSub {

    0%,
    100% {
        opacity: 0.6;
        transform: translateX(0) scale(0.9);
    }

    50% {
        opacity: 1;
        transform: translateX(2px) scale(1.05);
        filter: drop-shadow(0 0 4px rgba(50, 145, 255, 0.5));
    }
}

.icon-anim-people {
    transform-origin: center;
}

.icon-anim-people path:nth-of-type(1),
.icon-anim-people circle {
    animation: peopleMoveMain 3s infinite ease-in-out;
}

.icon-anim-people path:nth-of-type(2),
.icon-anim-people path:nth-of-type(3) {
    animation: peopleMoveSub 3s infinite ease-in-out;
    transform-origin: center;
}

/* 3. Pulse Flow */
@keyframes pulseFlow {
    0% {
        stroke-dashoffset: 60;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.icon-anim-pulse polyline {
    stroke-dasharray: 20 10;
    animation: pulseFlow 1.5s linear infinite;
    filter: drop-shadow(0 0 5px rgba(50, 145, 255, 0.6));
}

/* 4. Globe Spin & Pulse */
@keyframes globePulseSpin {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 4px rgba(50, 145, 255, 0.4));
    }

    50% {
        transform: scale(1.05) rotate(3deg);
        filter: drop-shadow(0 0 12px rgba(50, 145, 255, 0.8));
    }
}

.icon-anim-globe {
    animation: globePulseSpin 4s infinite ease-in-out;
    transform-origin: center;
}

.icon-anim-globe path {
    animation: pulseFlow 3s linear infinite;
    stroke-dasharray: 10 5;
}

/* Animated Number */
.stats-number {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', 'Inter', sans-serif;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
    font-variant-numeric: tabular-nums;
}

.stats-number::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.8;
    color: #3291ff;
    margin-left: 4px;
}

/* Label */
.stats-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Progress Bar */
.stats-bar {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.stats-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #0070f3, #3291ff, #93c5fd);
    border-radius: 3px;
    transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px rgba(0, 112, 243, 0.4);
}

.stats-card.revealed .stats-bar-fill {
    width: var(--bar-w, 0%);
}

/* Vertical Divider */
.stats-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 0.5rem;
    opacity: 0;
    transition: opacity 1s ease 0.4s;
}

.stats-divider.revealed {
    opacity: 1;
}

.stats-divider-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(0, 112, 243, 0.25), transparent);
}

.stats-divider-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0, 112, 243, 0.5);
    box-shadow: 0 0 6px rgba(0, 112, 243, 0.3);
}

/* Hover glow on card */
.stats-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 112, 243, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stats-card:hover::after {
    opacity: 1;
}

/* ---- Stats Responsive (always horizontal) ---- */
@media (max-width: 992px) {
    .stats-container {
        gap: 1.5rem;
    }

    .stats-info-box {
        padding: 0 1.5rem;
    }

    .stats-info-title {
        font-size: 1.8rem;
    }

    .stats-info-desc {
        font-size: 0.92rem;
    }

    .stats-card {
        padding: 1.5rem 1rem;
    }

    .stats-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 0.5rem 0.5rem 2.5rem;
    }

    .stats-container {
        gap: 1rem;
    }

    .stats-info-box {
        padding: 0 0.8rem;
    }

    .stats-info-title {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }

    .stats-info-desc {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }

    .stats-info-highlight {
        font-size: 0.72rem;
        padding: 0.4rem 1rem;
    }

    .stats-inner {
        gap: 0;
    }

    .stats-card {
        padding: 1rem 0.5rem;
    }

    .stats-icon-wrap {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        margin-bottom: 0.7rem;
    }

    .stats-icon-wrap svg {
        width: 20px;
        height: 20px;
    }

    .stats-number {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }

    .stats-number::after {
        font-size: 0.9rem;
    }

    .stats-label {
        font-size: 0.6rem;
        margin-bottom: 0.5rem;
        letter-spacing: 0.02em;
    }

    .stats-bar {
        width: 36px;
    }

    .stats-divider {
        padding: 0 0.2rem;
    }

    .stats-divider-line {
        height: 28px;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 0.25rem 0.25rem 2rem;
    }

    .stats-info-title {
        font-size: 1.2rem;
    }

    .stats-info-desc {
        font-size: 0.72rem;
        line-height: 1.45;
    }

    .stats-info-highlight {
        font-size: 0.65rem;
        padding: 0.35rem 0.8rem;
    }

    .stats-card {
        padding: 0.8rem 0.3rem;
    }

    .stats-icon-wrap {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        margin-bottom: 0.5rem;
    }

    .stats-icon-wrap svg {
        width: 17px;
        height: 17px;
    }

    .stats-number {
        font-size: 1.35rem;
    }

    .stats-number::after {
        font-size: 0.75rem;
        margin-left: 2px;
    }

    .stats-label {
        font-size: 0.52rem;
        margin-bottom: 0.4rem;
    }

    .stats-bar {
        width: 28px;
        height: 2px;
    }

    .stats-divider {
        padding: 0 0.1rem;
    }

    .stats-divider-line {
        height: 22px;
    }

    .stats-divider-dot {
        width: 3px;
        height: 3px;
    }
}

@media (max-width: 360px) {
    .stats-info-title {
        font-size: 1.05rem;
    }

    .stats-info-desc {
        font-size: 0.68rem;
    }

    .stats-number {
        font-size: 1.15rem;
    }

    .stats-number::after {
        font-size: 0.65rem;
    }

    .stats-label {
        font-size: 0.48rem;
    }

    .stats-icon-wrap {
        width: 30px;
        height: 30px;
        margin-bottom: 0.4rem;
    }

    .stats-icon-wrap svg {
        width: 15px;
        height: 15px;
    }
}

/* ============================================
   PREMIUM HOW IT WORKS SECTION
   ============================================ */

.hiw-section {
    position: relative;
    padding: 5rem 2rem 6rem;
}

.hiw-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Header */
.hiw-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.hiw-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3291ff;
    background: rgba(0, 112, 243, 0.08);
    border: 1px solid rgba(0, 112, 243, 0.2);
    border-radius: 50px;
    margin-bottom: 1.2rem;
    font-family: 'Inter', sans-serif;
}

.hiw-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hiw-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Flow Layout — horizontal with connectors */
.hiw-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    position: relative;
}

/* ---- Node (each step) ---- */
.hiw-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 220px;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(24px);
    animation: hiwNodeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hiw-node[data-step="2"] {
    animation-delay: 0.2s;
}

.hiw-node[data-step="3"] {
    animation-delay: 0.4s;
}

@keyframes hiwNodeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Icon Ring ---- */
.hiw-ring {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hiw-ring-glow {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 112, 243, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.hiw-node:hover .hiw-ring-glow {
    opacity: 1;
}

.hiw-ring-border {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(0, 112, 243, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hiw-node:hover .hiw-ring-border {
    border-color: rgba(50, 145, 255, 0.5);
    box-shadow: 0 0 25px rgba(0, 112, 243, 0.2),
        0 0 50px rgba(0, 112, 243, 0.08);
    transform: scale(1.06);
}

.hiw-icon {
    position: relative;
    z-index: 2;
    color: #3291ff;
    transition: all 0.4s ease;
}

.hiw-node:hover .hiw-icon {
    color: #93c5fd;
    transform: scale(1.12);
    filter: drop-shadow(0 0 8px rgba(50, 145, 255, 0.5));
}

/* Step number badge */
.hiw-num {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0070f3, #3291ff);
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 112, 243, 0.4);
    transition: transform 0.3s ease;
}

.hiw-node:hover .hiw-num {
    transform: scale(1.15);
}

/* Label & desc */
.hiw-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.4rem;
    transition: color 0.3s ease;
}

.hiw-node:hover .hiw-label {
    color: #93c5fd;
}

.hiw-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.55;
    max-width: 190px;
    transition: color 0.3s ease;
}

.hiw-node:hover .hiw-desc {
    color: rgba(255, 255, 255, 0.6);
}

/* ---- Connector between steps ---- */
.hiw-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 60px;
    max-width: 140px;
    height: 80px;
    position: relative;
    opacity: 0;
    animation: hiwConnFade 0.5s 0.35s ease forwards;
}

@keyframes hiwConnFade {
    to {
        opacity: 1;
    }
}

.hiw-connector-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(0, 112, 243, 0.08),
            rgba(0, 112, 243, 0.25) 40%,
            rgba(0, 112, 243, 0.25) 60%,
            rgba(0, 112, 243, 0.08));
    transform: translateY(-50%);
}

.hiw-connector-pulse {
    position: absolute;
    top: 50%;
    left: 0;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3291ff, transparent);
    transform: translateY(-50%);
    animation: hiwPulseMove 2.5s ease-in-out infinite;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(50, 145, 255, 0.6);
}

@keyframes hiwPulseMove {
    0% {
        left: -5%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 95%;
        opacity: 0;
    }
}

.hiw-connector-arrow {
    position: relative;
    z-index: 2;
    color: rgba(50, 145, 255, 0.35);
    flex-shrink: 0;
}

/* ---- Tooltip (for steps 2 & 3) ---- */
.hiw-tooltip {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 260px;
    padding: 1.2rem 1.4rem;
    background: rgba(15, 20, 35, 0.95);
    border: 1px solid rgba(50, 145, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 112, 243, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.hiw-tooltip.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.hiw-tooltip-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(15, 20, 35, 0.95);
    border-top: 1px solid rgba(50, 145, 255, 0.2);
    border-left: 1px solid rgba(50, 145, 255, 0.2);
}

.hiw-tooltip h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #fff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hiw-tooltip ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hiw-tooltip li {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
}

.hiw-tooltip li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0070f3, #3291ff);
    box-shadow: 0 0 6px rgba(0, 112, 243, 0.4);
}

/* ---- HIW Responsive (always horizontal) ---- */
@media (max-width: 768px) {
    .hiw-section {
        padding: 2.5rem 0.5rem 3rem;
    }

    .hiw-header {
        margin-bottom: 2rem;
    }

    .hiw-title {
        font-size: 1.4rem;
    }

    .hiw-subtitle {
        font-size: 0.82rem;
        max-width: 340px;
    }

    .hiw-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.9rem;
    }

    .hiw-node {
        flex: 1 1 0;
        min-width: 0;
    }

    .hiw-ring {
        width: 56px;
        height: 56px;
        margin-bottom: 0.8rem;
    }

    .hiw-icon svg {
        width: 20px;
        height: 20px;
    }

    .hiw-num {
        width: 18px;
        height: 18px;
        font-size: 0.55rem;
        top: -3px;
        right: -3px;
    }

    .hiw-label {
        font-size: 0.78rem;
        margin-bottom: 0.2rem;
    }

    .hiw-desc {
        font-size: 0.65rem;
        max-width: 130px;
        line-height: 1.4;
    }

    .hiw-connector {
        min-width: 30px;
        max-width: 60px;
        height: 56px;
    }

    .hiw-connector-arrow {
        display: none;
    }

    .hiw-tooltip {
        width: 220px;
        padding: 0.9rem 1rem;
        border-radius: 12px;
    }

    .hiw-tooltip h4 {
        font-size: 0.82rem;
        margin-bottom: 0.5rem;
    }

    .hiw-tooltip li {
        font-size: 0.7rem;
        padding-left: 0.9rem;
    }

    .hiw-tooltip li::before {
        width: 5px;
        height: 5px;
        top: 5px;
    }
}

@media (max-width: 480px) {
    .hiw-section {
        padding: 2rem 0.25rem 2.5rem;
    }

    .hiw-header {
        margin-bottom: 1.5rem;
    }

    .hiw-title {
        font-size: 1.2rem;
    }

    .hiw-subtitle {
        font-size: 0.72rem;
        max-width: 280px;
    }

    .hiw-ring {
        width: 46px;
        height: 46px;
        margin-bottom: 0.6rem;
    }

    .hiw-ring-glow {
        inset: -6px;
    }

    .hiw-icon svg {
        width: 17px;
        height: 17px;
    }

    .hiw-num {
        width: 16px;
        height: 16px;
        font-size: 0.5rem;
        top: -2px;
        right: -2px;
    }

    .hiw-label {
        font-size: 0.68rem;
    }

    .hiw-desc {
        font-size: 0.58rem;
        max-width: 105px;
        line-height: 1.35;
    }

    .hiw-connector {
        min-width: 20px;
        max-width: 40px;
        height: 46px;
    }

    .hiw-tooltip {
        width: 200px;
        padding: 0.75rem 0.85rem;
    }

    .hiw-tooltip h4 {
        font-size: 0.75rem;
    }

    .hiw-tooltip li {
        font-size: 0.62rem;
        padding-left: 0.8rem;
    }

    .hiw-tooltip li::before {
        width: 4px;
        height: 4px;
    }
}

@media (max-width: 360px) {
    .hiw-title {
        font-size: 1.05rem;
    }

    .hiw-subtitle {
        font-size: 0.68rem;
    }

    .hiw-badge {
        font-size: 0.58rem;
        padding: 0.25rem 0.7rem;
    }

    .hiw-ring {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }

    .hiw-icon svg {
        width: 15px;
        height: 15px;
    }

    .hiw-num {
        width: 14px;
        height: 14px;
        font-size: 0.45rem;
    }

    .hiw-label {
        font-size: 0.6rem;
    }

    .hiw-desc {
        font-size: 0.52rem;
        max-width: 90px;
    }

    .hiw-connector {
        min-width: 14px;
        max-width: 28px;
        height: 40px;
    }

    .hiw-tooltip {
        width: 180px;
        padding: 0.65rem 0.75rem;
    }

    .hiw-tooltip h4 {
        font-size: 0.68rem;
    }

    .hiw-tooltip li {
        font-size: 0.56rem;
    }
}

/* ============================================
   STATS DETAIL MODAL - Premium Glassmorphism
   ============================================ */

/* Overlay */
.sdm-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sdm-overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

/* Card Wrapper with 3D float */
.sdm-wrapper {
    position: relative;
    width: 90%;
    max-width: 400px;
    border-radius: 28px;
    opacity: 0;
    transform: scale(0.88) translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 15px 30px rgba(0, 70, 200, 0.15));
}

.sdm-overlay.active .sdm-wrapper {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Animated Neon Border */
.sdm-neon-border {
    position: absolute;
    inset: -1.5px;
    border-radius: 30px;
    padding: 1.5px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    overflow: hidden;
    z-index: -1;
}

.sdm-neon-border .sdm-neon-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            transparent 55%,
            rgba(0, 112, 243, 0.12) 68%,
            rgba(50, 145, 255, 0.35) 78%,
            rgba(147, 197, 253, 0.7) 85%,
            #93c5fd 90%,
            rgba(147, 197, 253, 0.7) 92%,
            rgba(50, 145, 255, 0.35) 95%,
            rgba(0, 112, 243, 0.12) 98%,
            transparent 100%);
    transform: translate(-50%, -50%);
    animation: sdmNeonSweep 5s linear infinite;
}

@keyframes sdmNeonSweep {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Subtle Blue Glow Behind Card */
.sdm-glow {
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(50, 145, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: sdmGlowPulse 5s ease-in-out infinite;
}

@keyframes sdmGlowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
}

/* Card Body */
.sdm-card {
    position: relative;
    width: 100%;
    background: linear-gradient(160deg,
            rgba(20, 25, 40, 0.97) 0%,
            rgba(12, 14, 24, 0.99) 50%,
            rgba(8, 10, 18, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 -1px 0 rgba(0, 0, 0, 0.3) inset;
    border-radius: 28px;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

/* Close Button */
.sdm-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.sdm-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Animated Icon Ring */
.sdm-icon-ring {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(0, 112, 243, 0.15), rgba(50, 145, 255, 0.08));
    border: 1.5px solid rgba(50, 145, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 112, 243, 0.2),
        0 0 0 6px rgba(0, 112, 243, 0.04);
    transform: scale(0);
    animation: sdmIconPop 0.5s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes sdmIconPop {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.sdm-icon-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(50, 145, 255, 0.1);
    animation: sdmRingPulse 3s ease-in-out infinite;
}

@keyframes sdmRingPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.sdm-icon-inner {
    font-size: 1.8rem;
    line-height: 1;
}

/* Title */
.sdm-title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 20%, #93c5fd 60%, #ffffff 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: sdmTitleShimmer 4s ease-in-out infinite;
    opacity: 0;
    transform: translateY(10px);
    animation: sdmFadeUp 0.5s 0.35s ease forwards, sdmTitleShimmer 4s 0.85s ease-in-out infinite;
}

@keyframes sdmTitleShimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

@keyframes sdmFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Description */
.sdm-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(10px);
    animation: sdmFadeUp 0.5s 0.45s ease forwards;
}

/* Highlights - Sleek Checklist */
.sdm-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
    opacity: 0;
    transform: translateY(10px);
    animation: sdmFadeUp 0.5s 0.55s ease forwards;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    padding: 0;
}

.sdm-highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, color 0.3s ease;
}

.sdm-highlight-item:hover {
    transform: translateX(6px);
    color: #fff;
}

.sdm-highlight-item svg {
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(50, 145, 255, 0.5));
}

/* Divider */
.sdm-divider {
    width: 60px;
    height: 2px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(90deg, transparent, rgba(50, 145, 255, 0.4), transparent);
    border-radius: 2px;
    opacity: 0;
    animation: sdmFadeUp 0.4s 0.6s ease forwards;
}

/* CTA Button */
.sdm-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #0070f3 0%, #3291ff 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 112, 243, 0.3),
        0 2px 8px rgba(0, 112, 243, 0.2);
    opacity: 0;
    transform: translateY(10px);
    animation: sdmFadeUp 0.5s 0.65s ease forwards;
}

.sdm-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.sdm-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 112, 243, 0.4),
        0 4px 12px rgba(0, 112, 243, 0.3);
}

.sdm-cta:hover::before {
    left: 100%;
}

.sdm-cta:active {
    transform: translateY(0) scale(0.98);
}

/* Mobile */
@media (max-width: 480px) {
    .sdm-wrapper {
        width: 92%;
        max-width: 360px;
    }

    .sdm-card {
        padding: 2rem 1.5rem 1.5rem;
    }

    .sdm-icon-ring {
        width: 60px;
        height: 60px;
        margin-bottom: 1.2rem;
    }

    .sdm-icon-inner {
        font-size: 1.5rem;
    }

    .sdm-title {
        font-size: 1.15rem;
    }

    .sdm-desc {
        font-size: 0.82rem;
    }

    .sdm-highlights span {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }

    .sdm-cta {
        padding: 0.85rem 1.2rem;
        font-size: 0.88rem;
    }
}

/* ============================================
   SUCCESS MODAL - Apple-like Premium Minimal
   ============================================ */
.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-overlay.active {
    display: flex;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
}

/* Floating Bokeh Particles */
.success-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.premium-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

@keyframes orbFloat {
    0% {
        transform: translateY(0) scale(0.6);
        opacity: 0;
    }

    15% {
        opacity: var(--orb-max, 0.5);
        transform: translateY(-30px) scale(1);
    }

    85% {
        opacity: var(--orb-max, 0.5);
    }

    100% {
        transform: translateY(-180px) scale(0.3);
        opacity: 0;
    }
}

/* Card Wrapper - 3D Floating */
.success-card-wrapper {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 360px;
    border-radius: 28px;
    opacity: 0;
    transform: scale(0.92) translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5)) drop-shadow(0 60px 80px rgba(0, 0, 0, 0.35));
}

.success-overlay.active .success-card-wrapper {
    opacity: 1;
    transform: scale(1) translateY(0) perspective(900px) rotateX(1deg);
}

/* Single Premium Neon Border - Slow Sweep */
.success-neon-border {
    position: absolute;
    inset: -1.5px;
    border-radius: 30px;
    padding: 1.5px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    overflow: hidden;
    z-index: -1;
}

.success-neon-border::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            transparent 60%,
            rgba(16, 185, 129, 0.15) 72%,
            rgba(16, 185, 129, 0.4) 80%,
            rgba(52, 211, 153, 0.7) 87%,
            #a7f3d0 92%,
            rgba(52, 211, 153, 0.7) 93%,
            rgba(16, 185, 129, 0.4) 95%,
            rgba(16, 185, 129, 0.15) 97%,
            transparent 100%);
    transform: translate(-50%, -50%);
    animation: neonSweep 6s linear infinite;
}

@keyframes neonSweep {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Card Body - Deep Frosted Glass with 3D Depth */
.success-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg,
            rgba(28, 28, 34, 0.97) 0%,
            rgba(16, 16, 20, 0.99) 50%,
            rgba(10, 10, 14, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 -1px 0 rgba(0, 0, 0, 0.3) inset,
        0 40px 80px -20px rgba(0, 0, 0, 0.8),
        0 15px 35px -5px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 28px;
    padding: 2.5rem 1.75rem 2rem;
    text-align: center;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

/* Subtle Emerald Glow Behind Card */
.success-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.15);
    }
}

/* Animated Solid Checkmark */
.success-check-wrap {
    width: 62px;
    height: 62px;
    margin: 0 auto 1.5rem;
    position: relative;
    background: linear-gradient(145deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35),
        0 4px 10px rgba(16, 185, 129, 0.2),
        inset 0 2px 3px rgba(255, 255, 255, 0.3);
    transform: scale(0);
    opacity: 0;
    animation: popIn 0.55s 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.08);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-check-svg {
    width: 30px;
    height: 30px;
}

.success-tick {
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: drawTick 0.45s 0.65s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes drawTick {
    to {
        stroke-dashoffset: 0;
    }
}

/* Header & Typography */
.success-header {
    margin-bottom: 1.6rem;
}

.success-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 20%, #a7f3d0 50%, #ffffff 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.25));
    opacity: 0;
    animation: fadeInUp 0.6s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        shimmerText 4s linear infinite 1.5s;
}

@keyframes shimmerText {
    to {
        background-position: 200% center;
    }
}

.success-greeting {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
    opacity: 0;
    animation: fadeInUp 0.5s 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-donor-name {
    color: #34d399;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Summary - Minimal List */
.success-summary {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 0.85rem 1.15rem;
    margin-bottom: 1.35rem;
    opacity: 0;
    animation: fadeInUp 0.5s 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
}

.success-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

.success-value {
    font-size: 0.85rem;
    color: #f5f5f7;
    font-weight: 600;
}

.success-amount {
    color: #10b981 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

.success-status-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #10b981;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.12);
    padding: 0.25rem 0.6rem;
    border-radius: 14px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.success-summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0.25rem 0;
}

/* Verse Card - Premium Balanced Layout */
.success-verse-card {
    position: relative;
    padding: 1rem 1.25rem;
    margin: 0 auto 1.6rem;
    max-width: 300px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    opacity: 0;
    animation: fadeInUp 0.5s 1.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.quote-icon {
    display: block;
    margin: 0 auto 0.5rem;
    color: rgba(16, 185, 129, 0.3);
    width: 20px;
    height: 20px;
}

.success-verse {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    font-style: italic;
    margin: 0 0 0.65rem 0;
    text-align: center;
}

.success-verse-ref {
    display: block;
    font-size: 0.62rem;
    color: rgba(16, 185, 129, 0.85);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

/* Close Button - Premium Glass Style */
.success-close-btn {
    width: 100%;
    padding: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeInUp 0.5s 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.success-close-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.04);
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .success-card-wrapper {
        width: 88%;
        max-width: 320px;
    }

    .success-card {
        padding: 2rem 1.4rem 1.4rem;
        border-radius: 24px;
    }

    .success-neon-border {
        border-radius: 26px;
    }

    .success-check-wrap {
        width: 48px;
        height: 48px;
        margin-bottom: 1.15rem;
    }

    .success-check-svg {
        width: 24px;
        height: 24px;
    }

    .success-title {
        font-size: 1.2rem;
    }

    .success-greeting {
        font-size: 0.76rem;
    }

    .success-summary {
        padding: 0.7rem 0.95rem;
        margin-bottom: 1.2rem;
    }

    .success-label {
        font-size: 0.72rem;
    }

    .success-value {
        font-size: 0.82rem;
    }

    .success-amount {
        font-size: 0.95rem !important;
    }

    .success-verse-card {
        max-width: 260px;
        padding: 0.85rem 1rem;
    }

    .success-verse {
        font-size: 0.7rem;
    }

    .success-close-btn {
        padding: 0.85rem;
        font-size: 0.88rem;
    }
}

/* ============================================
   TRUST SECTION - "Neden Biz?"
   ============================================ */
.trust-section {
    position: relative;
    padding: 5rem 0 4rem;
    background: transparent;
}

.trust-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.trust-header {
    text-align: center;
    margin-bottom: 3rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.trust-badge svg {
    opacity: 0.5;
}

.trust-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0.6rem 0 0.8rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.trust-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Trust Cards */
.trust-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.trust-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.trust-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.trust-card-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.trust-card:hover .trust-card-glow {
    opacity: 1;
}

.trust-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    transition: transform 0.3s, border-color 0.3s;
}

.trust-card:hover .trust-card-icon {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.trust-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.6rem;
    letter-spacing: -0.01em;
}

.trust-card-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.55;
    margin: 0 0 1.2rem;
}

.trust-card-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-stat-num {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* CTA */
.trust-cta {
    text-align: center;
}

.trust-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.95rem 2.4rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
    letter-spacing: 0.01em;
}

.trust-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.trust-cta-note {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 0.8rem;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .trust-section {
        padding: 1.5rem 0 3rem;
    }

    .trust-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .trust-title {
        font-size: 1.6rem;
    }

    .trust-card {
        padding: 1.5rem 1.2rem;
    }
}

/* ============================================
   PREMIUM FOOTER — KURUMSAL
   ============================================ */
.site-footer {
    position: relative;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0;
    overflow: hidden;
}

.footer-glow {
    display: none;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
    gap: 3rem;
    padding: 3.5rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Brand Column */
.footer-brand {
    padding-right: 1.5rem;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 1.2rem;
    opacity: 0.95;
}

.footer-brand-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    transition: all 0.25s;
    text-decoration: none;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Links Columns */
.footer-links-group {
    display: flex;
    flex-direction: column;
}

.footer-links-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-link {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    padding: 0.32rem 0;
    transition: color 0.2s;
    font-weight: 400;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* Contact Items */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.38rem 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-contact-item svg {
    color: rgba(59, 130, 246, 0.5);
    flex-shrink: 0;
}

/* Bottom Bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    gap: 1rem;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0 -2rem;
}

.footer-bottom-left span {
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.28);
    font-weight: 400;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-link {
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.28);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 400;
}

.footer-bottom-link:hover {
    color: rgba(255, 255, 255, 0.65);
}

.footer-dot {
    color: rgba(255, 255, 255, 0.12);
    font-size: 0.65rem;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2.5rem 0 2rem;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   PREMIUM GALLERY SECTION
   ============================================ */
.gallery-section {
    position: relative;
    padding: 5rem 0 6rem;
    overflow: hidden;
}

.gallery-container {
    max-width: 1550px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.gallery-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.gallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: rgba(50, 145, 255, 0.1);
    border: 1px solid rgba(50, 145, 255, 0.2);
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.gallery-badge svg {
    opacity: 0.8;
}

.gallery-title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Carousel Wrapper — uses mask-image for seamless edge fading.
   No overlay divs, no pseudo-elements. The content itself fades 
   to transparent, so there are zero visible edges or artifacts. */
.gallery-carousel-wrap {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            rgba(0, 0, 0, 0.4) 3%,
            rgba(0, 0, 0, 0.8) 6%,
            black 10%,
            black 90%,
            rgba(0, 0, 0, 0.8) 94%,
            rgba(0, 0, 0, 0.4) 97%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0%,
            rgba(0, 0, 0, 0.4) 3%,
            rgba(0, 0, 0, 0.8) 6%,
            black 10%,
            black 90%,
            rgba(0, 0, 0, 0.8) 94%,
            rgba(0, 0, 0, 0.4) 97%,
            transparent 100%);
}

/* Carousel Track */
.gallery-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: grab;
    padding: 1rem 0.5rem;
    -webkit-user-select: none;
    user-select: none;
}

.gallery-carousel-track:active {
    cursor: grabbing;
}

.gallery-carousel-track.dragging {
    transition: none;
}

/* Country Card - NEW structure: header + photo */
.gallery-country-card {
    flex-shrink: 0;
    width: 280px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.gallery-country-card:hover {
    transform: translateY(-6px);
}

/* Card Header - flag + name ABOVE photo */
.gallery-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.3rem;
}

.gallery-card-flag {
    font-size: 1.5rem;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-country-card:hover .gallery-card-flag {
    transform: scale(1.1);
}

.gallery-card-name {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
    margin: 0;
}

/* Card Photo Area */
.gallery-card-photo {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-country-card:hover .gallery-card-photo {
    border-color: rgba(50, 145, 255, 0.25);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(50, 145, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Card Background Image */
.gallery-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}

.gallery-country-card:hover .gallery-card-img {
    transform: scale(1.06);
    filter: brightness(1.1);
}

/* Gradient Placeholders for countries without images */
.gallery-card-gradient-suriye {
    background: linear-gradient(135deg, #1a1c2c 0%, #4a3728 40%, #8b6f47 70%, #d4a574 100%) !important;
}

.gallery-card-gradient-afganistan {
    background: linear-gradient(135deg, #2d1b4e 0%, #4a3258 40%, #6b4c71 70%, #8b6e8a 100%) !important;
}

.gallery-card-gradient-yemen {
    background: linear-gradient(135deg, #1c2a3a 0%, #3a4a5a 40%, #5a6a7a 70%, #7a8a9a 100%) !important;
}

.gallery-card-gradient-arakan {
    background: linear-gradient(135deg, #2c1a0d 0%, #5c3a1a 40%, #8f5c2d 70%, #c07e40 100%) !important;
}

/* Card Overlay (bottom gradient for stat readability) */
.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.25) 35%,
            rgba(0, 0, 0, 0.05) 60%,
            transparent 100%);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.gallery-country-card:hover .gallery-card-overlay {
    background: linear-gradient(0deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 15, 50, 0.35) 35%,
            rgba(0, 30, 80, 0.1) 60%,
            transparent 100%);
}

/* Card Shine Effect */
.gallery-card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.03) 45%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.03) 55%,
            transparent 70%);
    z-index: 2;
    transform: translateX(-100%) translateY(-100%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.gallery-country-card:hover .gallery-card-shine {
    transform: translateX(20%) translateY(20%);
}

/* Impact Stat inside photo */
.gallery-card-stat {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem 1.1rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.gallery-stat-number {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.gallery-stat-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.03em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Navigation Arrows - Premium Glassmorphism */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
}

.gallery-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) scale(1.08);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(50, 145, 255, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 4px 15px rgba(255, 255, 255, 0.15);
}

.gallery-nav:hover::before {
    opacity: 1;
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.96);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-nav svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.gallery-nav-left:hover svg {
    transform: translateX(-2px);
}

.gallery-nav-right:hover svg {
    transform: translateX(2px);
}

.gallery-nav-left {
    left: 1.5rem;
}

.gallery-nav-right {
    right: 1.5rem;
}

.gallery-nav.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   GALLERY LIGHTBOX MODAL
   ============================================ */
.glb-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(2, 6, 23, 0.65);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
}

.glb-overlay.active {
    opacity: 1;
    visibility: visible;
}

.glb-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glb-overlay.active .glb-container {
    transform: translateY(0) scale(1);
}

.glb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glb-header-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.glb-header-flag {
    font-size: 1.8rem;
}

.glb-header-title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.glb-header-count {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.glb-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.glb-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Photo Grid */
.glb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.glb-photo-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.glb-photo-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(50, 145, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(50, 145, 255, 0.1);
}

.glb-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.glb-photo-card:hover img {
    transform: scale(1.06);
}

.glb-photo-card .glb-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 0.8rem;
}

.glb-photo-card:hover .glb-photo-overlay {
    opacity: 1;
}

.glb-photo-overlay span {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

/* Staggered animation for grid items */
.glb-photo-card {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: glbPhotoIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes glbPhotoIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Full Image Viewer */
.glb-fullview {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.glb-fullview.active {
    opacity: 1;
    visibility: visible;
}

.glb-fullview img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glb-fullview.active img {
    transform: scale(1);
}

/* Gallery Section responsive */
@media (max-width: 768px) {
    .gallery-section {
        padding: 3.5rem 0 1.5rem;
    }

    .gallery-container {
        padding: 0 1.2rem;
    }

    .gallery-title {
        font-size: 1.6rem;
    }

    .gallery-subtitle {
        font-size: 0.9rem;
    }

    .gallery-header {
        margin-bottom: 2rem;
    }

    .gallery-country-card {
        width: 220px;
    }

    .gallery-card-photo {
        height: 250px;
    }

    .gallery-card-name {
        font-size: 0.92rem;
    }

    .gallery-card-flag {
        font-size: 1.3rem;
    }

    .gallery-stat-number {
        font-size: 1.3rem;
    }

    .gallery-stat-text {
        font-size: 0.68rem;
    }

    .gallery-nav {
        width: 38px;
        height: 38px;
    }

    .gallery-nav svg {
        width: 16px;
        height: 16px;
    }

    .gallery-carousel-fade {
        width: 50px;
    }

    /* Lightbox mobile */
    .glb-container {
        padding: 1rem 1rem 3rem;
    }

    .glb-header-title {
        font-size: 1.1rem;
    }

    .glb-header-flag {
        font-size: 1.4rem;
    }

    .glb-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .glb-close {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .gallery-country-card {
        width: 190px;
    }

    .gallery-card-photo {
        height: 220px;
    }

    .gallery-card-name {
        font-size: 0.85rem;
    }

    .gallery-title {
        font-size: 1.35rem;
    }

    .gallery-carousel-track {
        gap: 1rem;
    }

    .glb-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
}

/* ========================================= */
/* Yemek Fiyat Listesi – Card Transitions    */
/* ========================================= */
.yf-type-card {
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

.yf-type-card[style*="opacity: 0.5"] {
    filter: grayscale(0.5);
    transform: scale(0.97);
}

/* Helper text under Kisi Sayisi input */
.yf-helper-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    margin: 5px 0 0;
    text-align: right;
    /* Default for mobile */
    letter-spacing: 0.02em;
    transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
    .yf-step2-content {
        max-width: 440px;
        margin: 0 auto;
    }

    .yf-helper-text {
        text-align: left;
        padding-left: 2px;
    }
}

.yf-helper-text.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Cards wrapper */
.yf-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Floating hand pointer – slides over the two cards */
.yf-floating-hand {
    display: none;
    position: absolute;
    right: 2.2rem;
    font-size: 1.6rem;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    animation: yfHandFloat 2.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.yf-floating-hand.active {
    display: block;
}

@keyframes yfHandFloat {

    0%,
    100% {
        top: 15%;
        opacity: 0.9;
    }

    45%,
    55% {
        top: 60%;
        opacity: 1;
    }
}