/* ============================================
   حملة شباب منزل حيان للتبرع بالدم
   Mobile-First Premium Design System
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
    /* Primary Colors - Deep Blood Red Palette */
    --primary-900: #4A0E1B;
    --primary-800: #6B1529;
    --primary-700: #8B1A2B;
    --primary-600: #A62035;
    --primary-500: #C22840;
    --primary-400: #D44D63;
    --primary-300: #E67A8E;
    --primary-200: #F0A8B8;
    --primary-100: #F9D5DD;
    --primary-50: #FDF0F3;
    
    /* Neutral Colors */
    --neutral-900: #1A1A2E;
    --neutral-800: #2D2D44;
    --neutral-700: #3D3D56;
    --neutral-600: #555570;
    --neutral-500: #6E6E85;
    --neutral-400: #9090A7;
    --neutral-300: #B5B5C8;
    --neutral-200: #D5D5E2;
    --neutral-100: #EDEDF3;
    --neutral-50: #F8F8FB;
    
    /* Accent */
    --accent-gold: #C4A265;
    --accent-gold-light: #E0CDA0;
    --accent-warm: #F5E6D3;
    
    /* Functional */
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 30%, var(--primary-400) 60%, #E8A0A0 85%, #F5E6D3 100%);
    --gradient-hero-mobile: linear-gradient(160deg, var(--primary-800) 0%, var(--primary-700) 25%, var(--primary-500) 50%, #D88A8A 75%, #F5E6D3 100%);
    --gradient-button: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    --shadow-glow: 0 0 30px rgba(139, 26, 43, 0.3);
    
    /* Typography */
    --font-primary: 'Cairo', 'Tajawal', sans-serif;
    --font-display: 'Cairo', sans-serif;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--neutral-50);
    color: var(--neutral-800);
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll lock for modals/sidebar - works on iOS too */
html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    position: relative !important;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Side Navigation --- */
.side-nav {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, var(--primary-900) 0%, var(--primary-800) 100%);
    z-index: 1000;
    transition: left var(--transition-base);
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 30px rgba(0,0,0,0.3);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.side-nav.open {
    left: 0;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-nav-header {
    padding: var(--space-lg) var(--space-lg) var(--space-md);
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.close-nav-btn {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    color: rgba(255,255,255,0.7);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.close-nav-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.side-nav-logo img {
    width: 80px;
    height: auto;
    margin-bottom: var(--space-sm);
    object-fit: contain;
}

.side-nav-header h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.side-nav-header p {
    color: var(--primary-200);
    font-size: 0.85rem;
    font-weight: 400;
}

.nav-links {
    list-style: none;
    padding: var(--space-md) 0;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-left-color: var(--accent-gold);
}

.nav-link.active {
    color: var(--accent-gold-light);
}

.nav-link svg {
    flex-shrink: 0;
}

.side-nav-footer {
    padding: var(--space-lg);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.side-nav-footer p {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
}

/* Blood Drop Animation in Nav */
.blood-drop-animation {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-sm);
}

.drop {
    width: 8px;
    height: 8px;
    background: var(--primary-400);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    animation: dropFall 2s ease-in-out infinite;
}

.drop.delay-1 { animation-delay: 0.4s; }
.drop.delay-2 { animation-delay: 0.8s; }

@keyframes dropFall {
    0%, 100% { transform: rotate(-45deg) translateY(0); opacity: 1; }
    50% { transform: rotate(-45deg) translateY(6px); opacity: 0.5; }
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero-mobile);
    z-index: 0;
}

/* Animated blood cells background */
.blood-cells {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.08;
}

.cell {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    animation: floatCell linear infinite;
}

.cell-1 { width: 30px; height: 30px; top: 15%; right: 10%; animation-duration: 15s; }
.cell-2 { width: 20px; height: 20px; top: 35%; right: 70%; animation-duration: 20s; animation-delay: -5s; }
.cell-3 { width: 40px; height: 40px; top: 60%; right: 30%; animation-duration: 18s; animation-delay: -3s; }
.cell-4 { width: 15px; height: 15px; top: 75%; right: 80%; animation-duration: 22s; animation-delay: -8s; }
.cell-5 { width: 25px; height: 25px; top: 20%; right: 50%; animation-duration: 17s; animation-delay: -10s; }
.cell-6 { width: 35px; height: 35px; top: 50%; right: 90%; animation-duration: 19s; animation-delay: -2s; }

@keyframes floatCell {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(-30px, -50px) scale(1.1); opacity: 0.5; }
    50% { transform: translate(20px, -100px) scale(0.9); opacity: 0.3; }
    75% { transform: translate(-15px, -60px) scale(1.05); opacity: 0.4; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
}

/* --- Top Bar --- */
.top-bar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    padding-top: max(var(--space-md), env(safe-area-inset-top, 12px));
    overflow: visible;
}

.menu-btn {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 10;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.menu-btn:active {
    background: rgba(255,255,255,0.1);
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.menu-btn span:nth-child(2) {
    width: 18px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    overflow: visible;
}

.logo-img {
    width: 130px;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
    overflow: visible;
    transition: transform var(--transition-bounce);
    filter: brightness(1.05);
    transform: translateZ(0); /* Force GPU acceleration for smooth rendering */
    backface-visibility: hidden;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    letter-spacing: 1px;
}

.logo-main {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 700;
}

.phone-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
}

.phone-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    animation: phonePulse 2s ease-in-out infinite;
}

@keyframes phonePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0; }
}

.phone-btn:active {
    transform: scale(0.95);
    background: rgba(255,255,255,0.1);
}

/* --- Hero Content --- */
.hero-content {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    padding-bottom: 100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255,255,255,0.2);
    animation: fadeInDown 0.8s ease-out;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: var(--radius-full);
    animation: pulseDot 1.5s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-badge span:last-child {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: var(--space-md);
}

.title-line {
    display: block;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.6rem, 7vw, 2.8rem);
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
    animation: fadeInUp 0.8s ease-out both;
}

.title-line:nth-child(2) {
    animation-delay: 0.15s;
}

.title-accent {
    color: var(--accent-warm);
    font-size: clamp(1.5rem, 6.5vw, 2.5rem);
}

.hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: clamp(0.9rem, 3.5vw, 1.15rem);
    font-weight: 400;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* --- CTA Buttons --- */
.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: var(--space-sm);
    width: auto;
    max-width: none;
    animation: fadeInUp 0.8s ease-out 0.45s both;
    align-items: center;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    text-align: center;
    white-space: nowrap;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:active::after {
    opacity: 1;
}

.btn-primary {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-primary:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.8rem;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    z-index: 5;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.scroll-indicator span {
    display: block;
    color: var(--primary-800);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    opacity: 0.7;
}

.scroll-arrow {
    display: inline-flex;
    animation: bounceDown 1.5s ease-in-out infinite;
    color: var(--primary-700);
    opacity: 0.5;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* --- Sections Base --- */
.section {
    padding: var(--space-3xl) var(--space-lg);
    position: relative;
}

.section-container {
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--primary-50);
    color: var(--primary-600);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
    color: var(--primary-800);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    color: var(--neutral-500);
    font-size: 0.95rem;
    font-weight: 400;
}

/* --- Donor Form Section --- */
.donor-section {
    background: var(--neutral-50);
}

.donor-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-700);
}

.form-label svg {
    color: var(--primary-500);
    flex-shrink: 0;
}

.optional-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--neutral-400);
}

.form-input {
    width: 100%;
    padding: 14px var(--space-md);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--neutral-800);
    background: #fff;
    transition: all var(--transition-base);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-input::placeholder {
    color: var(--neutral-400);
    font-weight: 400;
}

.form-input:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(194, 40, 64, 0.1);
}

.form-input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-input.success {
    border-color: var(--success);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236E6E85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 40px;
    cursor: pointer;
}

.form-error {
    font-size: 0.8rem;
    color: var(--error);
    font-weight: 500;
    display: none;
    animation: shakeError 0.4s ease;
}

.form-group.has-error .form-error {
    display: block;
}

.form-group.has-error .form-input {
    border-color: var(--error);
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient-button);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: var(--space-sm);
    box-shadow: 0 4px 16px rgba(139, 26, 43, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 26, 43, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit .btn-loading,
.btn-submit .btn-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loading { display: flex; }
.btn-submit.loading { pointer-events: none; opacity: 0.85; }

.btn-submit.success .btn-text { display: none; }
.btn-submit.success .btn-success { display: flex; }
.btn-submit.success { 
    background: var(--success);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Campaign Section --- */
.campaign-section {
    background-color: var(--primary-50);
}

.campaign-info-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--primary-100);
    box-shadow: 0 10px 30px rgba(139, 26, 64, 0.05);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.campaign-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(139, 26, 64, 0.08);
}

.campaign-status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--primary-600);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 10px rgba(166, 32, 53, 0.2);
}

.campaign-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    font-weight: 800;
    color: var(--primary-800);
    margin-bottom: var(--space-lg);
}

.campaign-details-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.campaign-detail-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-align: right;
}

.campaign-detail-item svg {
    flex-shrink: 0;
    color: var(--primary-600);
    background: var(--primary-50);
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: var(--radius-md);
}

.campaign-detail-item div {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.campaign-detail-item strong {
    font-size: 0.85rem;
    color: var(--neutral-500);
    font-weight: 600;
}

.campaign-detail-item span {
    font-size: 0.95rem;
    color: var(--neutral-800);
    font-weight: 700;
}

.campaign-register-box {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.campaign-register-box:hover {
    box-shadow: var(--shadow-lg);
}

.campaign-register-box h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-800);
    margin-bottom: var(--space-xs);
}

.campaign-box-desc {
    color: var(--neutral-500);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .campaign-details-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }
    
    .campaign-detail-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .campaign-detail-item svg {
        width: 50px;
        height: 50px;
        padding: 12px;
        border-radius: var(--radius-lg);
        margin-bottom: var(--space-xs);
    }
    
    .campaign-detail-item div {
        align-items: center;
    }
}

/* --- About Section --- */
.about-section {
    background: #fff;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.about-card {
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--neutral-100);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.about-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-100);
    transform: translateY(-4px);
}

.about-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--primary-50);
    color: var(--primary-600);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.about-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-800);
    margin-bottom: var(--space-sm);
}

.about-card p {
    color: var(--neutral-600);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* --- Stats Section --- */
.stats-section {
    background: var(--gradient-hero-mobile);
    padding: var(--space-2xl) var(--space-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.stat-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.stat-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-icon {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    color: rgba(255,255,255,0.15);
}

/* --- Contact Section --- */
.contact-section {
    background: var(--neutral-50);
}

.contact-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    background: transparent;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: all var(--transition-base);
    cursor: pointer;
    min-width: 90px;
    flex: 0 0 auto;
}

.contact-card h3 {
    font-size: 0.75rem;
}


.contact-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
}

.contact-card:active {
    transform: translateY(0);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.phone-icon {
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: #fff;
}

.whatsapp-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
}

.facebook-icon {
    background: linear-gradient(135deg, #1877F2, #0C5AC7);
    color: #fff;
}

.instapay-icon {
    background: linear-gradient(135deg, #e03b7a, #4d1566);
    color: #fff;
}

.instagram-icon {
    background: radial-gradient(circle at 33% 100%, #fed373 4%, #f15245 30%, #d92e7f 62%, #9b36b7 85%, #515ecf 99%);
    box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.6), 0 3px 6px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.instagram-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18), transparent 55%);
    pointer-events: none;
}

.instagram-icon svg {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)) drop-shadow(0 0.5px 0.5px rgba(0, 0, 0, 0.2));
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 2px;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--neutral-500);
    direction: ltr;
    text-align: right;
}

/* --- Footer --- */
.footer {
    background: var(--primary-900);
    padding: var(--space-xl) var(--space-lg);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-logo img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    opacity: 0.8;
}

.footer-logo span {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-text {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    margin-bottom: var(--space-xs);
}

.footer-heart {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

/* --- Modal --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    overscroll-behavior: contain;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    max-width: 360px;
    width: 100%;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-bounce);
    box-shadow: var(--shadow-xl);
    overscroll-behavior: contain;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.about-modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    text-align: right;
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    border: 1px solid var(--primary-100);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.about-modal-content .close-modal-btn {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    color: var(--neutral-500);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    z-index: 10;
}

.about-modal-content .close-modal-btn:hover {
    color: var(--neutral-800);
    background: var(--neutral-100);
}

.about-modal-content .close-modal-btn:active {
    transform: scale(0.9);
}

@media (max-width: 480px) {
    .about-modal-content {
        padding: var(--space-lg) var(--space-md);
    }
}

.modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    animation: modalIconPop 0.5s ease-out 0.3s both;
}

@keyframes modalIconPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.modal-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--neutral-900);
    margin-bottom: var(--space-sm);
}

.modal-content p {
    color: var(--neutral-500);
    font-size: 0.95rem;
    margin-bottom: var(--space-xl);
}

.modal-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: var(--radius-md);
    background: var(--gradient-button) !important;
    color: #fff !important;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.modal-btn:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-400) 100%) !important;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(194, 40, 64, 0.3);
}

.modal-btn:active {
    transform: translateY(0);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive: Small Phones --- */
@media (max-width: 360px) {
    .hero-content {
        padding: var(--space-lg) var(--space-md);
    }
    
    .title-line {
        font-size: 1.4rem;
    }
    
    .title-accent {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 12px var(--space-lg);
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* --- Responsive: Standard Mobile (375-428px) --- */
@media (min-width: 375px) {
    .cta-buttons {
        flex-direction: row;
        max-width: 400px;
    }
    
    .cta-buttons .btn {
        flex: 1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stat-card {
        padding: var(--space-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* --- Responsive: Large Phones --- */
@media (min-width: 480px) {
    .top-bar {
        padding: var(--space-lg) var(--space-xl);
    }
    
    .logo-img {
        width: 130px;
        height: auto;
    }
    
    .logo-main {
        font-size: 0.9rem;
    }
    
    .section {
        padding: var(--space-3xl) var(--space-xl);
    }
}

/* --- Responsive: Tablets --- */
@media (min-width: 768px) {
    .hero-bg {
        background: var(--gradient-hero);
    }
    
    .top-bar {
        padding: var(--space-xl) var(--space-2xl);
    }
    
    .logo-img {
        width: 140px;
        height: auto;
    }
    
    .logo-main {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: var(--space-2xl);
    }
    
    .cta-buttons {
        max-width: 480px;
    }
    
    .btn {
        padding: 16px var(--space-xl);
        font-size: 1.05rem;
    }
    
    .section {
        padding: 80px var(--space-2xl);
    }
    
    .section-container {
        max-width: 700px;
    }
    
    .about-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }
    


    .stat-number {
        font-size: 2.8rem;
    }
}

/* --- Responsive: Desktop --- */
@media (min-width: 1024px) {
    .section-container {
        max-width: 900px;
    }
    
    .hero-content {
        padding-bottom: 120px;
    }
    
    .title-line {
        font-size: 2.8rem;
    }
    
    .title-accent {
        font-size: 2.4rem;
    }
}

/* --- Safe Area (Notch phones) --- */
@supports (padding: max(0px)) {
    .top-bar {
        padding-top: max(var(--space-md), env(safe-area-inset-top));
        padding-right: max(var(--space-lg), env(safe-area-inset-right));
        padding-left: max(var(--space-lg), env(safe-area-inset-left));
    }
    
    .footer {
        padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Print --- */
@media print {
    .hero-section {
        min-height: auto;
        background: #fff !important;
    }
    
    .side-nav, .nav-overlay, .scroll-indicator, .phone-btn, .menu-btn {
        display: none !important;
    }
}

/* --- Claymorphic / Skeuomorphic Modal --- */
.new-donor-modal-content {
    background: #fff;
    border-radius: 40px;
    padding: var(--space-xl) var(--space-lg);
    max-width: 440px;
    width: 92%;
    max-height: 95vh;
    max-height: 95dvh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Close button style for skeuomorphic modal */
.close-new-donor-modal-btn {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    color: var(--neutral-400);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    z-index: 10;
}

.close-new-donor-modal-btn:hover {
    color: var(--neutral-700);
    background: var(--neutral-100);
}

/* Skeuo Pill Header */
.skeuo-header {
    background: linear-gradient(to bottom, #bd4e62 0%, #881e30 100%);
    border-radius: var(--radius-full);
    padding: 8px 32px;
    display: inline-block;
    box-shadow: 0 5px 12px rgba(136, 30, 48, 0.3), inset 0 1.5px 3px rgba(255,255,255,0.25);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-sm);
    border: 1px solid rgba(255,255,255,0.1);
}

.skeuo-header h2 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 1px 1.5px 0px rgba(0,0,0,0.2);
}

/* Subtext */
.skeuo-subtext {
    color: #8b253b;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.5;
    max-width: 90%;
    margin-bottom: var(--space-md);
    text-align: center;
}

/* Raspberry Card Container */
.skeuo-form-card {
    background: linear-gradient(to bottom, #9d2e46 0%, #8b253b 100%);
    border-radius: 30px;
    padding: var(--space-lg) var(--space-md);
    width: 100%;
    box-shadow: 0 10px 25px rgba(139, 26, 43, 0.22), inset 0 1.5px 3px rgba(255, 255, 255, 0.15);
    margin-bottom: var(--space-md);
    border: 1px solid rgba(255,255,255,0.08);
}

.skeuo-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
}

.skeuo-form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 6px;
    position: relative;
}

/* Centered Labels */
.skeuo-label {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    font-family: var(--font-primary);
}

/* Sunken Capsule Input */
.skeuo-input {
    width: 100%;
    height: 52px;
    border-radius: var(--radius-full);
    background: linear-gradient(180deg, #5b1020 0%, #761a2c 100%);
    border: none;
    outline: none;
    text-align: center; /* Centered input content just like screenshot placeholders! */
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0 24px;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.55), 0 2px 4px rgba(255, 255, 255, 0.08);
    transition: all var(--transition-base);
}

.skeuo-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

.skeuo-input:focus {
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.55), 0 0 12px rgba(255, 255, 255, 0.25);
}

/* Skeuo error validation */
.skeuo-error {
    font-size: 0.75rem;
    color: #ff9fb0;
    font-weight: 600;
    margin-top: 4px;
    display: none;
    animation: shakeError 0.4s ease;
}

.skeuo-form-group.has-error .skeuo-error {
    display: block;
}

.skeuo-form-group.has-error .skeuo-input {
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.55), 0 0 8px rgba(239, 68, 68, 0.4);
}

/* Elevated Skeuo Submit Button */
.skeuo-submit-btn {
    background: linear-gradient(to bottom, #d65c71 0%, #b3394e 100%);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    padding: 10px 32px;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3), inset 0 1.5px 3px rgba(255, 255, 255, 0.2);
    transition: all var(--transition-fast);
    margin-top: var(--space-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.skeuo-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.skeuo-submit-btn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.skeuo-submit-btn .btn-loading {
    display: none;
}

.skeuo-submit-btn.loading .btn-text {
    display: none;
}

.skeuo-submit-btn.loading .btn-loading {
    display: block;
}

.skeuo-submit-btn.loading {
    pointer-events: none;
    opacity: 0.85;
}

/* Handwritten Footer Cursive Cursive-like brand */
.skeuo-footer-brand {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #8b253b;
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* ===== Premium 3D Skeuomorphic Hero Buttons ===== */
.skeuo-hero-btn {
    background: linear-gradient(to bottom, #bd4e62 0%, #881e30 100%);
    color: #fff !important;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    padding: 14px 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    box-shadow: 0 8px 0px #4a030d, 0 10px 20px rgba(0, 0, 0, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transition: all 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 2px 0px rgba(0,0,0,0.25);
    gap: 8px;
    -webkit-user-select: none;
    user-select: none;
}

.skeuo-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 0px #4a030d, 0 12px 24px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.skeuo-hero-btn:active {
    transform: translateY(6px);
    box-shadow: 0 2px 0px #4a030d, 0 4px 8px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.skeuo-hero-btn-secondary {
    background: linear-gradient(to bottom, #fdf0f3 0%, #f9d5dd 100%);
    color: #8b1a2b !important;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    padding: 14px 36px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    box-shadow: 0 8px 0px rgba(139, 26, 43, 0.25), 0 10px 20px rgba(0, 0, 0, 0.15), inset 0 2px 4px #fff;
    transition: all 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.6);
    gap: 8px;
    -webkit-user-select: none;
    user-select: none;
}

.skeuo-hero-btn-secondary svg {
    color: #8b1a2b !important;
}

.skeuo-hero-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 0px rgba(139, 26, 43, 0.25), 0 12px 24px rgba(0, 0, 0, 0.2), inset 0 2px 4px #fff;
}

.skeuo-hero-btn-secondary:active {
    transform: translateY(6px);
    box-shadow: 0 2px 0px rgba(139, 26, 43, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* --- Gallery / Carousel Section --- */
.gallery-section {
    background-color: #fff;
    border-top: 1px solid var(--neutral-100);
    border-bottom: 1px solid var(--neutral-100);
}

/* Hide header and campaign selector dropdown */
#gallery .section-header,
#gallery .gallery-campaign-selector {
    display: none !important;
}

.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-xl);
    width: 100%;
    transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-track {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 16px;
    width: 100%;
    align-items: flex-start;
}

.carousel-slide {
    flex: 0 0 100%; /* Default 1 card on mobile */
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: transparent;
    transition: box-shadow var(--transition-base);
}

.carousel-slide:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-slide:hover img {
    opacity: 0.95;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--neutral-800);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--primary-600);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(166, 32, 53, 0.3);
    border-color: transparent;
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    right: -10px; /* Arabic layout reversed navigation */
}

.next-btn {
    left: -10px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-lg);
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neutral-300);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.carousel-indicator.current-slide {
    background: var(--primary-600);
    width: 24px;
    border-radius: var(--radius-full);
}

.carousel-empty {
    width: 100%;
    padding: 60px 20px;
    text-align: center;
    font-weight: 700;
    color: var(--neutral-500);
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--neutral-200);
}

/* Multi-card layouts on larger viewports */
@media (min-width: 768px) {
    .carousel-slide {
        flex: 0 0 calc((100% - 16px) / 2); /* 2 cards */
    }
    .prev-btn { right: -15px; }
    .next-btn { left: -15px; }
}

@media (min-width: 992px) {
    .carousel-slide {
        flex: 0 0 calc((100% - 32px) / 3); /* 3 cards */
    }
    .prev-btn { right: -20px; }
    .next-btn { left: -20px; }
}

/* Mobile full width edge-to-edge styling */
@media (max-width: 767px) {
    .gallery-section {
        padding: 0 !important;
        margin-top: 24px !important; /* فاصل علوي بين الأرقام والصور */
        margin-bottom: 24px !important; /* فاصل سفلي بين الصور والقسم التالي */
        border-top: none;
        border-bottom: none;
    }
    .gallery-section .section-container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    .carousel-container {
        padding: 0 !important;
    }
    .carousel-track-container {
        border-radius: 0 !important;
    }
    .carousel-track {
        gap: 0 !important; /* No gaps between images for true full screen swipe */
    }
    .carousel-slide {
        flex: 0 0 100% !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
    }
    .carousel-btn {
        display: none !important; /* Hide next/prev buttons on mobile */
    }
    .carousel-nav {
        margin-top: 12px;
        margin-bottom: 12px;
    }
}

/* ==========================================================================
   Scanner circular button and popover dropdown styling
   ========================================================================== */
.skeuo-scanner-trigger-btn {
    background: linear-gradient(to bottom, #d65c71 0%, #b3394e 100%);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3), inset 0 1.5px 3px rgba(255, 255, 255, 0.35);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: var(--space-sm);
}

.skeuo-scanner-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(179, 57, 78, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.skeuo-scanner-trigger-btn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.scanner-popover {
    display: none;
    position: absolute;
    bottom: 70px;
    left: 0;
    background: rgba(30, 10, 20, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    z-index: 10100;
    width: 190px;
    overflow: hidden;
    animation: popFadeIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom left;
}

@keyframes popFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.scanner-popover-item {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.scanner-popover-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.scanner-popover-item:active {
    background: rgba(255, 255, 255, 0.2);
}

/* Custom premium styles for the 1:1 rebuilt scanner options modal */
.scanner-btn-capture {
    background: #2563eb;
    color: #fff;
    width: 100%;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.scanner-btn-capture:hover {
    background: #1d4ed8;
}
.scanner-btn-capture:active {
    transform: scale(0.98);
}

.scanner-btn-upload {
    background: #1d2635;
    color: #fff;
    width: 100%;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.scanner-btn-upload:hover {
    background: #242f41;
    border-color: rgba(255, 255, 255, 0.2);
}
.scanner-btn-upload:active {
    transform: scale(0.98);
}
