@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital,wght@0,400;1,400&family=Manrope:wght@200..800&display=swap');

:root {
    /* — Elegant Red-White Palette — */
    --red-900: #7F1D1D;
    --red-800: #991B1B;
    --red-700: #B91C1C;
    --red-600: #DC2626;
    --red-500: #EF4444;
    --red-400: #F87171;
    --red-300: #FCA5A5;
    --red-200: #FECACA;
    --red-100: #FEE2E2;
    --red-50:  #FEF2F2;

    --primary-maroon: #B91C1C;
    --primary-red: #DC2626;

    --white: #FFFFFF;
    --cream: #FFFBFB;
    --bg-light: #FFF7F7;
    --bg-white: #FFFFFF;

    --text-dark: #1F1215;
    --text-body: #4A3035;
    --text-muted: #8B6B70;
    --text-light: #BFA3A8;

    --border-light: #F5E0E3;
    --border-subtle: #FBE8EA;

    --gold: #D4A853;
    --gold-light: #F0D68A;

    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    --shadow-sm: 0 1px 3px rgba(127, 29, 29, 0.06);
    --shadow-md: 0 4px 16px rgba(127, 29, 29, 0.08);
    --shadow-lg: 0 12px 40px rgba(127, 29, 29, 0.1);
    --shadow-xl: 0 24px 60px rgba(127, 29, 29, 0.14);
    --shadow-red: 0 8px 32px rgba(185, 28, 28, 0.2);
    --shadow-red-lg: 0 16px 48px rgba(185, 28, 28, 0.25);

    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-2xl: 2.5rem;
    --radius-full: 9999px;
}

/* ═══════════════════ BASE ═══════════════════ */
body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', serif;
    letter-spacing: 0.01em;
}

::selection {
    background: rgba(185, 28, 28, 0.12);
    color: var(--red-900);
}

/* ═══════════════════ BUTTONS ═══════════════════ */
.btn-maroon {
    background: linear-gradient(135deg, var(--red-700) 0%, var(--red-800) 100%);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.9375rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    box-shadow: var(--shadow-red);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.btn-maroon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.btn-maroon:hover {
    background: linear-gradient(135deg, var(--red-600) 0%, var(--red-700) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red-lg);
}

.btn-maroon:active {
    transform: scale(0.97);
}

.btn-outline-maroon {
    border: 2px solid var(--border-light);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    color: var(--text-dark);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.9375rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.btn-outline-maroon:hover {
    border-color: var(--red-300);
    color: var(--red-700);
    background: rgba(254, 226, 226, 0.4);
    box-shadow: var(--shadow-sm);
}

/* ═══════════════════ CARDS ═══════════════════ */
.card-premium {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .card-premium {
        padding: 2.5rem;
    }
}

.card-premium:hover {
    transform: translateY(-4px);
    border-color: var(--red-200);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 640px) {
    .card-premium:hover {
        transform: none;
    }
}

/* Glass card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md);
}

/* ═══════════════════ BADGE ═══════════════════ */
.badge-status {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════ STEP FORM ═══════════════════ */
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    border: 2px solid var(--border-light);
    background: var(--bg-light);
    color: var(--text-light);
    transition: var(--transition-smooth);
    margin: 0 auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-item.active .step-circle {
    border-color: var(--red-700);
    background: var(--red-50);
    color: var(--red-700);
    box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.08);
}

/* ═══════════════════ ANIMATIONS ═══════════════════ */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.animate-fadeIn {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.animate-fade-scale {
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.3); }
    50% { box-shadow: 0 0 0 12px rgba(185, 28, 28, 0); }
}

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

/* ═══════════════════ SECTIONS ═══════════════════ */
.section-padding { padding: 4rem 0; }

.section-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .section-padding { padding: 6rem 0; }
    .section-title { font-size: 2.5rem; }
    .section-subtitle { font-size: 1.125rem; }
}

/* ═══════════════════ TABLE RESPONSIVE ═══════════════════ */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .responsive-table thead {
        display: none;
    }

    .responsive-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
        background: white;
        border-radius: var(--radius-md);
        border: 1px solid var(--border-subtle);
        box-shadow: var(--shadow-sm);
    }

    .responsive-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--bg-light);
    }

    .responsive-table tbody td:last-child {
        border-bottom: none;
    }

    .responsive-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--text-light);
        margin-right: 1rem;
        flex-shrink: 0;
    }
}

/* ═══════════════════ ADMIN ═══════════════════ */
.admin-sidebar {
    transition: transform 0.3s ease, width 0.3s ease;
}

.safe-area-bottom {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

/* ═══════════════════ SCROLLBAR ═══════════════════ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--red-200);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-300);
}

/* ═══════════════════ FORMS ═══════════════════ */
input:focus, select:focus, textarea:focus {
    transition: all 0.3s ease;
}

/* ═══════════════════ PULSE DOT ═══════════════════ */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse-dot {
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ═══════════════════ HOME PAGE — HERO ═══════════════════ */
.hero-section {
    position: relative;
    background: linear-gradient(175deg, #FFFFFF 0%, #FFF5F5 25%, #FEE2E2 50%, #FECACA 75%, #FCA5A5 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185,28,28,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185,28,28,0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* Decorative geometric shapes */
.hero-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.hero-deco-1 {
    top: 10%;
    right: 8%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(185,28,28,0.08);
    border-radius: 20px;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}

.hero-deco-2 {
    bottom: 15%;
    left: 5%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(185,28,28,0.06);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite 2s;
}

.hero-deco-3 {
    top: 30%;
    left: 12%;
    width: 8px;
    height: 8px;
    background: rgba(185,28,28,0.12);
    border-radius: 50%;
    animation: float 5s ease-in-out infinite 1s;
}

/* Stat cards */
.stat-card {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.75rem;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card-light {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(254,202,202,0.5);
    box-shadow: var(--shadow-sm);
}

.stat-card-light:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--red-200);
}

.stat-card-dark {
    background: linear-gradient(135deg, var(--red-700) 0%, var(--red-800) 50%, var(--red-900) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-red);
    color: white;
}

.stat-card-dark:hover {
    box-shadow: var(--shadow-red-lg);
}

.stat-card-dark::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
}

/* Category cards */
.category-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(254,202,202,0.3);
    transition: var(--transition-smooth);
    cursor: default;
}

.category-card:hover {
    background: white;
    border-color: var(--red-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-card .cat-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.category-card:hover .cat-icon {
    transform: scale(1.15);
}

.category-card .cat-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

@media (max-width: 640px) {
    .category-card .cat-name {
        font-size: 0.8125rem;
    }
}

/* Timeline cards */
.timeline-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.timeline-card-default {
    background: white;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.timeline-card-default:hover {
    border-color: var(--red-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.timeline-card-active {
    background: linear-gradient(145deg, var(--red-50) 0%, rgba(254,226,226,0.6) 100%);
    border: 1.5px solid var(--red-200);
    box-shadow: 0 2px 12px rgba(185,28,28,0.08);
}

.timeline-card-active:hover {
    border-color: var(--red-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.timeline-num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.timeline-num-default {
    background: var(--text-dark);
    color: white;
}

.timeline-card-default:hover .timeline-num-default {
    background: var(--red-700);
}

.timeline-num-active {
    background: var(--red-700);
    color: white;
    box-shadow: 0 2px 8px rgba(185,28,28,0.25);
}

/* CTA section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-inner {
    position: relative;
    border-radius: var(--radius-2xl);
    background: linear-gradient(145deg, #1a0505 0%, #4c0519 30%, #991B1B 60%, #B91C1C 100%);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 40px 100px -20px rgba(153, 27, 27, 0.4), 0 20px 50px -10px rgba(0, 0, 0, 0.2);
}

.cta-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(212, 168, 83, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66-3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm6-46c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-54-7c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM92 71c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM24 66c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM54 75c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM76 10c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM43 7c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM2 47c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm54 39c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM22 29c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm51 7c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm18 47c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM71 90c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM37 15c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm-8 48c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm47-10c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM33 3c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM10 43c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm40 48c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm31-45c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm-13 17c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm-6-33c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm10 5c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm15 34c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM5 52c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm31 3c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm48 17c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm-32-46c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm-10 27c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm39 8c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm-50 45c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM100 10c0-5.523-4.477-10-10-10v2c4.418 0 8 3.582 8 8h2zm-90 0c0-4.418 3.582-8 8-8V0C12.477 0 8 4.477 8 10h2zm0 80c0 4.418-3.582 8-8 8v2c5.523 0 10-4.477 10-10h-2zm80 0c0 5.523-4.477 10-10 10v-2c4.418 0 8-3.582 8-8h2zM18 11c0 3.866-3.134 7-7 7v2c4.97 0 9-4.03 9-9h-2zm-7-7c-3.866 0-7 3.134-7 7h-2c0-4.97 4.03-9 9-9v2zm0 14c-3.866 0-7-3.134-7-7h-2c0 4.97 4.03 9 9 9v2zM11 4c3.866 0 7 3.134 7 7h2c0-4.97-4.03-9-9-9v2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Section dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--red-200) 30%, var(--red-300) 50%, var(--red-200) 70%, transparent 100%);
}

/* Floating label for live badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.5625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red-700);
    margin-top: 0.5rem;
}

.live-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--red-600);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

/* Footer styles */
.footer-elegant {
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
    border-top: 1px solid var(--border-subtle);
}

/* ═══════════════════ UTILITY ═══════════════════ */
.text-gradient-red {
    background: linear-gradient(135deg, var(--red-800) 0%, var(--red-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
