/* ===================================================
   SRI LAKSHMI RESIDENCY & MAHAL - Premium Valentine's Rose Theme
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

:root {
    /* ── Brand Colors ─────────────────────── */
    --primary: #e91e63;
    --primary-hover: #c2185b;
    --primary-deep: #880e4f;
    --primary-light: #fce4ec;
    --secondary: #ff4081;
    --accent: #f50057;
    --rose-soft: #f8bbd0;

    /* ── Status ───────────────────────────── */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* ── Neutrals ─────────────────────────── */
    --dark: #1a0011;
    --dark-2: #2d0021;
    --dark-3: #4a1942;
    --gray: #7a6b76;
    --gray-light: #b09aaa;
    --border: #f0d6e6;
    --bg: #fff5f8;
    --white: #ffffff;

    /* ── Gradients ────────────────────────── */
    --gradient-primary: linear-gradient(135deg, #e91e63 0%, #ff4081 100%);
    --gradient-deep: linear-gradient(135deg, #880e4f 0%, #e91e63 60%, #ff4081 100%);
    --gradient-hero: linear-gradient(140deg, #3d0030 0%, #6a0f45 40%, #c2185b 80%, #e91e63 100%);
    --gradient-soft: linear-gradient(135deg, #fce4ec 0%, #fff5f8 100%);
    --gradient-warm: linear-gradient(135deg, #ff4081 0%, #f50057 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);

    /* ── Shadows ─────────────────────────── */
    --shadow-sm: 0 1px 3px rgba(233, 30, 99, 0.08);
    --shadow: 0 4px 12px rgba(233, 30, 99, 0.12);
    --shadow-md: 0 8px 24px rgba(233, 30, 99, 0.15);
    --shadow-lg: 0 16px 40px rgba(233, 30, 99, 0.20);
    --shadow-xl: 0 24px 60px rgba(233, 30, 99, 0.25);
    --shadow-colored: 0 20px 40px rgba(233, 30, 99, 0.30);

    /* ── Radii ───────────────────────────── */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* ── Transitions ─────────────────────── */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.22);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.18);
    }

    58% {
        transform: scale(1);
    }
}

@keyframes heartFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-18px) scale(1.15);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.93);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.18;
    }

    50% {
        transform: scale(1.12);
        opacity: 0.25;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes rosePetal {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(233, 30, 99, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(233, 30, 99, 0.6);
    }
}

/* ── Reveal Scroll Animation ──────── */
.reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4.5rem 0;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

/* ── Responsive Utilities ────────────────── */
@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .section-heading { font-size: 2rem; }
    .container { padding: 0 1.25rem; }
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

/* Standard Responsive Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1150px) {
    .mobile-only { display: block !important; }
}

.navbar-toggler.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.navbar-toggler.active span:nth-child(2) { opacity: 0; }
.navbar-toggler.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 18px rgba(233, 30, 99, 0.40);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(233, 30, 99, 0.55);
    background: var(--gradient-deep);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-white {
    background: white;
    color: var(--primary);
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark-2);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--dark);
    background: white;
    transition: var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.12);
}

.form-control::placeholder {
    color: var(--gray-light);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23e91e63' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rose-soft);
    font-size: 0.9rem;
}

.input-icon-wrap .form-control {
    padding-left: 2.75rem;
}

/* ── Validation Styles ─────────────────────── */
.validation-error {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.4rem;
    min-height: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
}

.form-control.invalid-field {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08) !important;
}

.form-control.valid-field {
    border-color: var(--success) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08) !important;
}


/* Premium File Upload UI */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-design {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    color: var(--primary);
    transition: var(--transition);
    text-align: center;
}

.file-upload-design i {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.file-upload-design .upload-text {
    font-weight: 700;
    font-size: 0.9rem;
}

.file-upload-design .upload-subtext {
    font-size: 0.75rem;
    color: var(--gray);
}

.file-upload-wrapper:hover .file-upload-design {
    border-color: var(--primary);
    background: white;
    box-shadow: var(--shadow-sm);
}

.file-upload-wrapper.has-file .file-upload-design {
    border-style: solid;
    border-color: var(--secondary);
    background: #fff5f8;
}

.file-upload-wrapper.has-file .upload-text {
    color: var(--secondary);
}

/* ============================================================
   NAVBAR  ← Full white bar, solid pink active link
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(233, 30, 99, 0.10);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 28px rgba(233, 30, 99, 0.18);
}

/* Brand / Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 1.55rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-left: 4%;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .navbar-brand { font-size: 1.25rem; gap: 0.5rem; }
    .navbar-brand span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
}

.navbar-brand .brand-icon {
    font-size: 2rem;
    color: var(--primary);
    animation: heartbeat 2.2s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
}

.navbar-brand span {
    color: var(--dark-2);
}

/* Nav Links — stretch to full navbar height */
.nav-links {
    display: flex;
    align-items: stretch;
    height: 65px;
    margin-right: 3%;
    gap: 1.2rem;
}

.nav-links li {
    height: 100%;
    display: flex;
    align-items: stretch;
}

.nav-links a:not(.btn) {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 1.5rem;
    height: 100%;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-links a:not(.btn) i {
    font-size: 1rem;
    opacity: 0.7;
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    background: var(--primary-light);
    border-bottom-color: var(--primary);
    color: var(--primary-deep);
    border-radius: var(--radius-sm);
}

.nav-links a:not(.btn).active {
    background: var(--primary);
    color: white;
    border-bottom-color: var(--primary-deep);
    border-radius: var(--radius-sm);
}

.nav-links a:not(.btn).active i {
    opacity: 1;
    color: white;
}

/* Intermediate responsiveness for navbar */
@media (max-width: 1366px) {
    .nav-links a:not(.btn) {
        padding: 0 1.2rem;
    }
    .nav-links {
        margin-right: 2%;
        gap: 0.75rem;
    }
}

/* Login/Register pill buttons inside nav */
.nav-links .nav-btn-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
}

/* Hamburger */
.navbar-toggler {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.navbar-toggler span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

/* ============================================================
   FLOATING HEARTS (decorative elements)
   ============================================================ */
.floating-hearts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.f-heart {
    position: absolute;
    color: rgba(255, 255, 255, 0.10);
    animation: heartFloat linear infinite;
    font-size: 1.5rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.20;
    animation: pulse 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 640px;
    height: 640px;
    background: var(--secondary);
    top: -220px;
    right: -120px;
}

.hero-orb-2 {
    width: 420px;
    height: 420px;
    background: var(--primary);
    bottom: -120px;
    left: -120px;
    animation-delay: -4s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: #ff80ab;
    top: 40%;
    left: 30%;
    animation-delay: -2s;
    opacity: 0.10;
}



.page-header p {
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   SECTION LABELS & HEADINGS
   ============================================================ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    background: var(--primary-light);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-heading span {
    color: var(--primary);
}

.section-sub {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 580px;
    line-height: 1.7;
}

/* ============================================================
   HALL CARDS (Halls & Rooms)
   ============================================================ */
.halls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.25rem;
    align-items: stretch; /* Ensures cards in same row have same height */
}

.hall-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column; /* Force body to fill space */
    height: 100%;
}

.hall-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.hall-card-img {
    height: 220px;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.hall-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hall-card:hover .hall-card-img img {
    transform: scale(1.1);
}

.hall-card-img .hall-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.hall-card-img .hall-price {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: white;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    letter-spacing: -0.01em;
}

.hall-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes button to bottom */
}

.hall-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hall-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--gray);
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
}

.hall-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hall-card-meta i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Ensure descriptions are clamped to 2 lines for uniformity */
.hall-card-body p {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    height: 3.2em; /* Fixed height for 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Ensure button is always at the bottom */
.hall-card-body .btn {
    margin-top: auto;
}

@media (max-width: 576px) {
    .halls-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .hall-card-img {
        height: 200px;
    }
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--rose-soft);
    box-shadow: 0 12px 40px rgba(233, 30, 99, 0.15);
    transform: translateY(-8px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

/* ============================================================
   STATS
   ============================================================ */
.stat-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(58, 0, 43, 0.55);
    z-index: 9990;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 520px;
    width: 90%;
    position: relative;
    animation: scaleUp 0.3s ease;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

@media (max-width: 768px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
    .search-grid > div[style*="display:flex"] {
        flex-direction: row;
    }
    .gallery-filter-wrap .btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.75rem;
    }
}

/* ============================================================
   BOOKING FORM
   ============================================================ */
.booking-form-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.booking-form-header {
    background: var(--gradient-primary);
    padding: 1.75rem 2rem;
    color: white;
}

.booking-form-body {
    padding: 2rem;
}

/* ============================================================
   HALL DETAIL
   ============================================================ */
.hall-detail-hero {
    position: relative;
    height: 420px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hall-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hall-detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(136, 14, 79, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
}

.hall-amenity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--primary-light);
    border-radius: var(--radius);
    border: 1px solid var(--rose-soft);
    font-size: 0.875rem;
    color: var(--dark-2);
}

.hall-amenity i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ============================================================
   OCCUPANCY TABLE
   ============================================================ */
.occupancy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.occupancy-table th {
    padding: 0.75rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #e0b0c0;
    text-align: left;
}

.occupancy-table td {
    padding: 0.875rem 1rem;
    border: 1px solid #e8cada;
    vertical-align: middle;
}

.occupancy-table tr:last-child td {
    border-bottom: none;
}

.occupancy-table tr:hover td {
    background: var(--primary-light);
}

/* ============================================================
   CHATBOT
   ============================================================ */
.chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9000;
}

.chat-toggle-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(233, 30, 99, 0.45);
    transition: var(--transition);
    animation: glow 3s ease-in-out infinite;
}

.chat-toggle-btn:hover {
    transform: scale(1.12);
}

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.chat-window {
    display: none;
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: fadeInUp 0.3s ease;
}

.chat-window.open {
    display: block;
}

.chat-header {
    background: var(--gradient-primary);
    padding: 1.1rem 1.25rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header .chat-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.chat-header .chat-sub {
    font-size: 0.72rem;
    opacity: 0.85;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
}

.chat-messages {
    height: 280px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-msg {
    max-width: 80%;
    font-size: 0.85rem;
    line-height: 1.5;
}

.chat-msg.bot {
    background: var(--primary-light);
    color: var(--dark);
    padding: 0.6rem 1rem;
    border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
    align-self: flex-start;
}

.chat-msg.user {
    background: var(--gradient-primary);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-lg) 0 var(--radius-lg) var(--radius-lg);
    align-self: flex-end;
}

.chat-input-wrap {
    display: flex;
    border-top: 1px solid var(--border);
    padding: 0.75rem;
    gap: 0.5rem;
}

.chat-input-wrap input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    outline: none;
    font-family: inherit;
}

.chat-input-wrap input:focus {
    border-color: var(--primary);
}

.chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.chat-send:hover {
    transform: scale(1.1);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--gradient-hero);
    color: rgba(255, 255, 255, 0.75);
    padding: 2.5rem 0 1.5rem;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.nav-links::beforevider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 2rem 0 1.5rem;
}

/* ============================================================
   AUTH PAGES (Login / Register)
   ============================================================ */
.auth-page {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    animation: scaleUp 0.4s ease;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo .heart-icon {
    font-size: 3rem;
    color: var(--primary);
    animation: heartbeat 2.2s ease-in-out infinite;
    display: block;
    margin-bottom: 0.5rem;
}

.auth-logo h2 {
    color: var(--primary);
    font-size: 1.6rem;
}

.auth-logo p {
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Premium Desktop Fixed Layout */
@media (min-width: 1151px) {
    .admin-layout {
        height: 100vh;
        overflow: hidden;
    }
    .admin-main {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .admin-content {
        flex: 1;
        overflow-y: auto;
        padding: 1.25rem;
        /* Hide scrollbar */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .admin-content::-webkit-scrollbar {
        display: none;
    }
}

/* Admin Sidebar */
/* Admin Sidebar - Revamped for White Mix */
.admin-sidebar {
    width: 260px;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
    border-right: 1px solid var(--border);
    transition: var(--transition);
}

.sidebar-logo {
    padding: 1.25rem 1.5rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: white;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.logo-icon {
    font-size: 1.8rem;
    color: white;
    animation: heartbeat 2.2s ease-in-out infinite;
}

.sidebar-nav {
    flex: 1;
    padding: 1.25rem 1rem;
    overflow-y: auto;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

/* Webkit scrollbar styles removed to hide scrolling option */

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sidebar-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-light);
    padding: 0.75rem 0.5rem;
    margin-bottom: 0.2rem;
    cursor: default;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    user-select: none;
}

.sidebar-label:hover {
    color: white;
}

.sidebar-label i {
    transition: transform 0.3s ease;
}

.sidebar-label.active {
    color: white;
}

.sidebar-label.active i {
    transform: rotate(180deg);
}

.sidebar-submenu {
    max-height: none;
    overflow: visible;
}

.sidebar-submenu.show {
    max-height: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-2);
    transition: var(--transition);
    margin-bottom: 0.2rem;
}

.sidebar-link i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.sidebar-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.15);
}

/* Sidebar Models - No restricted scroll */
.sidebar-models-scroll {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
    margin-bottom: 0.5rem;
}

/* Sidebar models scrollbar hidden */

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Admin Main Area */
.admin-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    z-index: 1;
    min-width: 0;
}

.admin-topbar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.admin-content {
    padding: 1.25rem;
    flex: 1;
    min-width: 0;
}

/* Mobile Admin Nav Toggle */
.admin-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--dark);
    cursor: pointer;
    margin-right: 1rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}
.admin-menu-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Admin Stat Cards */
.admin-stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.admin-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Admin Table Card */
.admin-table-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.admin-table-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gradient-soft);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table th {
    padding: 0.75rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #e0b0c0;
    text-align: left;
}

.admin-table td {
    padding: 0.875rem 1rem;
    border: 1px solid #e8cada;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--primary-light);
}

/* ── Admin Scrolling Features ──────────────── */

/* 1. Live Highlights Ticker */
.admin-ticker-wrap {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    height: 44px;
    box-shadow: var(--shadow-sm);
}

.ticker-label {
    background: var(--gradient-primary);
    color: white;
    padding: 0 1.25rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    z-index: 2;
    position: relative;
    box-shadow: 4px 0 10px rgba(0,0,0,0.05);
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    background: var(--bg);
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-left: 2rem;
    white-space: nowrap;
    animation: tickerScroll 25s linear infinite;
    width: max-content;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-track span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticker-track span i {
    color: var(--primary);
    font-size: 0.7rem;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 2. Admin Back to Top Button */
.admin-back-to-top {
    display: none !important;
}

.admin-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-5px) scale(1.1);
}

/* ============================================================
   RESPONSIVE - PREMIUM NAV & GRID SYSTEM
   ============================================================ */

/* 1. TABLET & MINI-LAPTOPS (The Breakpoint) */
@media (max-width: 1150px) {
    .navbar-toggler { display: flex; z-index: 1002; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Fully hidden off-screen */
        width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        z-index: 1001;
        transition: right 0.6s cubic-bezier(0.85, 0, 0.15, 1);
        gap: 0;
        margin: 0;
        overflow-y: auto;
    }

    .nav-links.open {
        right: 0;
    }

    /* Screen Overlay when menu is open */
    .nav-links::before {
        content: '';
        position: fixed;
        inset: 0;
        background: #fff;
        z-index: -1;
        opacity: 0;
        visibility: hidden;
        transition: 0.4s;
        pointer-events: none;
    }
    .nav-links.open::before {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
        height: auto;
        opacity: 0;
        transform: translateX(30px);
        transition: 0.4s;
    }
    .nav-links.open li {
        opacity: 1;
        transform: translateX(0);
    }
    /* Staggered animation */
    .nav-links.open li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.open li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.open li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.open li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.open li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.open li:nth-child(6) { transition-delay: 0.35s; }
    .nav-links.open li:nth-child(7) { transition-delay: 0.4s; }
    .nav-links.open li:nth-child(8) { transition-delay: 0.45s; }

    .nav-links a:not(.btn) {
        width: 100%;
        height: auto;
        padding: 1.2rem 1.5rem;
        font-size: 0.95rem;
        border-radius: var(--radius);
        margin-bottom: 0.5rem;
        border-bottom: none !important;
        justify-content: flex-start;
        letter-spacing: 0.08em;
    }

    .nav-links a:not(.btn).active {
        background: var(--primary);
        color: white !important;
        box-shadow: 0 8px 20px rgba(233, 30, 99, 0.2);
    }

    .nav-btn-wrap {
        padding: 2rem 0;
        margin-top: 1rem;
        border-top: 1px solid var(--border);
        flex-direction: column;
        gap: 1rem;
        display: flex;
    }

    .nav-btn-wrap .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    /* Grid Adjustments */
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 3rem; }
    .halls-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    
    .admin-sidebar { transform: translateX(-100%); transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); z-index: 3000; box-shadow: none; border-right: none; }
    .admin-sidebar.open { transform: translateX(0); box-shadow: 15px 0 50px rgba(0,0,0,0.15); }
    .admin-main { margin-left: 0; }
    .admin-menu-toggle { display: flex !important; align-items: center; justify-content: center; }
}

/* 2. MOBILE (Phones) */
@media (max-width: 768px) {
    .navbar { height: 70px; }
    .navbar-brand { font-size: 1.3rem; }
    .nav-links { width: 100%; } /* Full screen on mobile */
    .section { padding: 4rem 0; }
    .page-header { padding: 6rem 0 4rem; }
    .section-heading { font-size: 2.2rem; }
}

/* 3. SMALL PHONES */
@media (max-width: 480px) {
    .navbar-brand span { font-size: 1rem; } 
    .hero-content h1 { font-size: 2.8rem; }
}

@media (min-width: 320px) and (max-width: 374px){
    .hall-card{
        width: 280px;
    }
}

/* 4. TV & LARGE SCREENS Support */
@media (min-width: 2000px) {
    html { font-size: 20px; }
    .container { max-width: 1800px; }
    .navbar { height: 120px; }
    .nav-links { height: 120px; }
}

/* ============================================================
   SPECIALTY CARD (Why Sri Lakshmi Residency & Mahal section)
   ============================================================ */
.specialty-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.specialty-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--rose-soft);
}

.specialty-card .s-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Admin Hall Directory Scroll (Carousel) */
.admin-hall-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}

.admin-hall-scroll::-webkit-scrollbar {
    height: 6px;
}

.admin-hall-scroll::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 10px;
}

.admin-hall-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.dash-hall-card {
    min-width: 220px;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.dash-hall-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.dash-hall-img {
    height: 120px;
    width: 100%;
}

.dash-hall-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-hall-info {
    padding: 0.75rem 1rem;
}

.dash-hall-info .name {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-hall-info .meta {
    font-size: 0.7rem;
    color: var(--gray);
    display: flex;
    align-items: center;
}


/* ============================================================
   GLOBAL ALERT MODAL (PREMIUM FULL-PAGE)
   ============================================================ */
.alert-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 0, 10, 0.9);
    z-index: 11000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 1.5rem;
    animation: fadeIn 0.4s ease;
}

.alert-modal-overlay.active {
    display: flex;
}

.alert-modal-box {
    background: #ffffff;
    border-radius: 32px;
    padding: 3.5rem 2.5rem 3rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
    animation: modalScaleZoom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: none;
}

@keyframes modalScaleZoom {
    from { transform: scale(0.85) translateY(30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.alert-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.alert-modal-close:hover {
    background: #e2e8f0;
    color: #000;
    transform: rotate(90deg);
}

.alert-modal-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
    position: relative;
}

.alert-modal-icon.success { 
    background: #ecfdf5; 
    color: #10b981; 
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2); 
}
.alert-modal-icon.error { 
    background: #fef2f2; 
    color: #ef4444; 
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2); 
}
.alert-modal-icon.warning { 
    background: #fffbeb; 
    color: #f59e0b; 
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.2); 
}
.alert-modal-icon.info { 
    background: #eff6ff; 
    color: #3b82f6; 
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2); 
}

.alert-modal-title {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

.alert-modal-message {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-family: 'Inter', sans-serif;
}

.alert-modal-footer {
    display: flex;
    gap: 1rem;
}

/* Hide original static alerts when being converted to modal */
.alert.modalized {
    display: none !important;
}
