@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════
   LIGHT THEME (default)
   ═══════════════════════════════════════════ */
:root {
    --bg-dark: #f0f2f8;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.97);
    --bg-sidebar: rgba(255, 255, 255, 0.95);
    --bg-nav: rgba(248, 249, 252, 0.92);
    --bg-nav-scrolled: rgba(255, 255, 255, 0.96);
    --bg-mobile-menu: rgba(255, 255, 255, 0.99);
    --bg-footer: rgba(240, 242, 248, 0.95);
    --border-color: rgba(0, 0, 0, 0.09);
    --border-glow: rgba(124, 58, 237, 0.35);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-nav: 0 1px 0 rgba(0, 0, 0, 0.08);

    --primary: #7c3aed;
    --primary-glow: rgba(124, 58, 237, 0.18);
    --secondary: #0d9488;
    --secondary-glow: rgba(13, 148, 136, 0.18);

    --text-main: #000000;
    --text-muted: #333333;
    --text-dark: #000000;
    --text-inverse: #ffffff;
    --text-logo: #000000;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --alert-success-text: #15803d;
    --alert-danger-text: #b91c1c;

    --scrollbar-track: #e5e7eb;
    --scrollbar-thumb: rgba(0, 0, 0, 0.15);

    --sidebar-width: 260px;
    --header-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════
   DARK THEME  (html.dark-theme)
   ═══════════════════════════════════════════ */
html.dark-theme {
    --bg-dark: #090d16;
    --bg-card: rgba(18, 24, 38, 0.7);
    --bg-card-hover: rgba(26, 36, 56, 0.85);
    --bg-sidebar: rgba(10, 15, 26, 0.9);
    --bg-nav: transparent;
    --bg-nav-scrolled: rgba(9, 13, 22, 0.88);
    --bg-mobile-menu: rgba(9, 13, 22, 0.98);
    --bg-footer: rgba(9, 13, 22, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(168, 85, 247, 0.4);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.37);
    --shadow-nav: 0 1px 0 rgba(255, 255, 255, 0.06);

    --primary: #a855f7;
    --primary-glow: rgba(168, 85, 247, 0.25);
    --secondary: #14b8a6;
    --secondary-glow: rgba(20, 184, 166, 0.25);

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    --text-inverse: #ffffff;
    --text-logo: #ffffff;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --alert-success-text: #a7f3d0;
    --alert-danger-text: #fca5a5;

    --scrollbar-track: var(--bg-dark);
    --scrollbar-thumb: rgba(255, 255, 255, 0.1);
}

/* ── Smooth scrolling ── */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Offset anchor sections for fixed navbar (72px height + 8px breathing room) */
#home,
#about,
#contact {
    scroll-margin-top: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}


/* ── Entry & Floating 3D Animations ── */
@keyframes fadeIn3D {
    from {
        opacity: 0;
        transform: translateY(24px) rotateX(4deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes float3d {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(1.5deg);
    }
}

.page-fade-in {
    animation: fadeIn3D 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top;
    perspective: 1000px;
}

.floating-3d {
    animation: float3d 6s ease-in-out infinite;
}

/* ── Scroll Reveal Animations ── */
.scroll-hidden {
    opacity: 0;
    transform: translateY(32px) scale(0.96) rotateX(4deg);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.scroll-revealed {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
}

/* Beautiful mesh background gradients */
body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    left: -200px;
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -200px;
    right: -200px;
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button,
input,
textarea,
select {
    font-family: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Glass Card Styling */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(168, 85, 247, 0.1);
}

/* Layout Wrappers */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.logo-container {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: white;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(to right, var(--text-logo), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--text-main);
    background: rgba(124, 58, 237, 0.07);
}

.sidebar-link.active {
    border-left: 3px solid var(--primary);
    background: linear-gradient(90deg, var(--primary-glow) 0%, transparent 100%);
    color: var(--primary);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 40px;
    width: calc(100% - var(--sidebar-width));
    min-width: 0;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-title h1 {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.header-title p {
    font-size: 14px;
    color: var(--text-muted);
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 50px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    min-height: 44px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(168, 85, 247, 0.6);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Button Loading State & Spinner Animation */
.btn.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    cursor: not-allowed;
}

.btn.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Icon Action Buttons (Edit / Delete) ── */
.icon-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.icon-action-btn svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.icon-edit-btn {
    background: rgba(13, 148, 136, 0.12);
    color: var(--secondary);
    border-color: rgba(13, 148, 136, 0.25);
}

.icon-edit-btn:hover {
    background: rgba(13, 148, 136, 0.22);
    border-color: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.icon-edit-btn:hover svg {
    transform: rotate(-5deg) scale(1.1);
}

.icon-delete-btn {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.22);
}

.icon-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.icon-delete-btn:hover svg {
    transform: scale(1.1);
}

.icon-approve-btn {
    background: rgba(16, 185, 129, 0.11);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.25);
}

.icon-approve-btn:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: var(--success);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.22);
}

.icon-approve-btn:hover svg {
    transform: scale(1.15);
}

/* ── Review Dropdown ── */
.review-dropdown {
    position: relative;
    display: inline-block;
}

/* Status badge used as a clickable dropdown trigger */
.status-badge-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px 2px 0;
    border-radius: 6px;
    transition: opacity 0.15s ease;
}

.status-badge-trigger:hover {
    opacity: 0.82;
}

.status-badge-trigger .chevron-icon {
    transition: transform 0.22s ease;
    opacity: 0.55;
}

.review-dropdown.open .status-badge-trigger .chevron-icon {
    transform: rotate(180deg);
    opacity: 0.85;
}


.icon-review-btn {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    border-color: rgba(124, 58, 237, 0.22);
    gap: 4px;
}

.icon-review-btn:hover {
    background: rgba(124, 58, 237, 0.18);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.18);
}

.icon-review-btn .chevron-icon {
    transition: transform 0.22s ease;
    opacity: 0.7;
}

.review-dropdown.open .icon-review-btn .chevron-icon {
    transform: rotate(180deg);
}

.review-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 140px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    padding: 6px;
    z-index: 200;
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.review-dropdown.open .review-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.review-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    color: var(--text-main);
    white-space: nowrap;
}

.review-menu-item+.review-menu-item {
    margin-top: 2px;
}

.review-approve {
    color: var(--success);
}

.review-approve:hover {
    background: rgba(16, 185, 129, 0.14);
}

.review-reject {
    color: var(--danger);
}

.review-reject:hover {
    background: rgba(239, 68, 68, 0.12);
}

/* ── Status Action Buttons (Approve / Revoke solid pills) ── */
.status-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.status-action-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.status-btn-approve {
    background: #10b981;
    color: #fff;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.status-btn-approve:hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
}

.status-btn-revoke {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.32);
}

.status-btn-revoke:hover {
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.48);
}

/* ── Review menu (kept for future use) ── */

.table-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.table-search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    pointer-events: none;
    flex-shrink: 0;
}

.table-search-input {
    padding: 8px 36px 8px 36px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    font-size: 13.5px;
    color: var(--text-main);
    width: 260px;
    transition: var(--transition);
    outline: none;
}

.table-search-input::placeholder {
    color: var(--text-muted);
}

.table-search-input:focus {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 3px var(--primary-glow);
    width: 300px;
}

.table-search-clear {
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-muted);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.table-search-clear:hover {
    opacity: 1;
}

/* Badge tags — dark pill style */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    white-space: nowrap;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.28);
}

.badge-confirmed,
.badge-active,
.badge-attending,
.badge-paid {
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.28);
}

/* Approved — purple pill (matches screenshot) */
.badge-approved {
    background: rgba(139, 92, 246, 0.16);
    color: #c084fc;
    border-color: rgba(139, 92, 246, 0.32);
}

.badge-rejected,
.badge-declined {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.28);
}

.badge-info,
.badge-in_progress,
.badge-planned {
    background: rgba(20, 184, 166, 0.14);
    color: #2dd4bf;
    border-color: rgba(20, 184, 166, 0.28);
}

.badge-completed,
.badge-warning {
    background: rgba(168, 85, 247, 0.15);
    color: #a78bfa;
    border-color: rgba(168, 85, 247, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.28);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

select.form-control option {
    background: var(--bg-dark);
    color: var(--text-main);
}

/* Table Design */
.table-responsive {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.custom-table th {
    text-align: left;
    padding: 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 16px;
    font-size: 15px;
    border-bottom: 1px solid var(--border-color);
}

.custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Dashboard Widgets & Cards grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* Service Directory Grid */
.vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.widget-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.widget-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.icon-purple {
    background: rgba(168, 85, 247, 0.15);
    color: var(--primary);
}

.icon-teal {
    background: rgba(20, 184, 166, 0.15);
    color: var(--secondary);
}

.icon-orange {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.icon-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.widget-details h4 {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.widget-details p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Progress bars */
.progress-container {
    margin: 15px 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Auth Pages Specific styles */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 100px 20px 60px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 30px;
}

.auth-brand .logo-icon {
    margin: 0 auto 12px;
}

.auth-footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer-text a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    border-left: 4px solid transparent;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--alert-danger-text);
    border-left-color: var(--danger);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--alert-success-text);
    border-left-color: var(--success);
}

/* Landing Page Grid */
.landing-hero {
    text-align: center;
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.landing-hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 40%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0 20px;
}

.feature-card {
    text-align: left;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

/* SVG Chart Micro-visuals */
.chart-container {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 10px;
    padding: 20px 10px 10px;
    border-bottom: 1px solid var(--border-color);
    margin-top: 15px;
}

.chart-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, var(--primary), var(--primary-glow));
    border-radius: 6px 6px 0 0;
    transition: height 1s ease-in-out;
}

.chart-bar.secondary {
    background: linear-gradient(180deg, var(--secondary), var(--secondary-glow));
}

.chart-label {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

/* Detail page split layout */
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
}

.detail-grid>div {
    min-width: 0;
}

@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        padding: 20px 10px;
    }

    .sidebar .logo-text,
    .sidebar-link span {
        display: none;
    }

    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
        padding: 20px;
    }
}

/* ========================================
   PUBLIC NAVBAR
   ======================================== */
.public-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 0 24px;
    background: var(--bg-nav);
    transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.public-nav.scrolled {
    background: var(--bg-nav-scrolled);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-nav);
}

.public-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-grow: 1;
    justify-content: center;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
    background: var(--primary-glow);
}

.nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-menu {
    display: none;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    flex-direction: column;
    gap: 8px;
    background: var(--bg-mobile-menu);
    padding: 20px;
}

.nav-mobile-menu.open {
    display: flex;
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .public-nav.scrolled {
        background: var(--bg-mobile-menu);
    }
}

/* ========================================
   PUBLIC FOOTER
   ======================================== */
.public-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    margin-top: 80px;
}

.public-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ========================================
   PUBLIC PAGE WRAPPER
   ======================================== */
.public-page {
    padding-top: 72px;
}

/* ========================================
   ENHANCED HOME HERO
   ======================================== */
.home-hero {
    text-align: center;
    padding: 100px 20px 60px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 28px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-badge.teal {
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.3);
    color: var(--secondary);
}

.home-hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.08;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 40%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-hero .hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.home-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 60px auto;
    max-width: 700px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-item:hover {
    transform: scale(1.08);
}

.stat-item .stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-item .stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.section-label {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

.section-title {
    text-align: center;
    font-size: clamp(26px, 4vw, 42px);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 48px;
}

.page-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.features-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.feature-card-v2 {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card-v2:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.12);
}

.feature-card-v2:hover::before {
    opacity: 1;
}

.feature-card-v2 .fc-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 22px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    position: relative;
    animation: float3d 6s ease-in-out infinite;
}

.feature-card-v2.teal .fc-icon {
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.2);
}

.feature-card-v2.orange .fc-icon {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.feature-card-v2 .fc-icon svg {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card-v2:hover .fc-icon svg {
    transform: scale(1.15) rotate(5deg);
}

.feature-card-v2.teal:hover .fc-icon svg {
    transform: scale(1.15) rotate(-5deg);
}

.feature-card-v2.orange:hover .fc-icon svg {
    transform: scale(1.15) translateY(-2px);
}

.feature-card-v2 h3 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 12px;
}

.feature-card-v2 p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.step-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, background-color 0.4s ease;
}

.step-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.12);
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(124, 58, 237, 0.03) 100%);
    transition-delay: 0s !important;
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 20px;
    animation: float3d 6s ease-in-out infinite;
    animation-delay: 0.5s;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, background 0.4s ease;
}

.step-card:hover .step-number {
    animation-play-state: paused;
    transform: scale(1.15) translateY(-4px);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* Staggered delay for card scroll entrance fade-in */
.steps-grid .step-card:nth-child(1) {
    transition-delay: 0s;
}

.steps-grid .step-card:nth-child(2) {
    transition-delay: 0.15s;
}

.steps-grid .step-card:nth-child(3) {
    transition-delay: 0.3s;
}

.steps-grid .step-card:nth-child(4) {
    transition-delay: 0.45s;
}

.step-card h4 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA */
.cta-section {
    text-align: center;
    padding: 80px 24px;
    max-width: 700px;
    margin: 0 auto 60px;
}

.cta-section h2 {
    font-size: clamp(28px, 4vw, 44px);
    color: var(--text-main);
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.6;
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-hero {
    text-align: center;
    padding: 100px 24px 60px;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.about-hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 50%, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
}

.about-mission {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-mission {
        grid-template-columns: 1fr;
    }
}

.mission-text h2 {
    font-size: clamp(26px, 3vw, 38px);
    color: var(--text-main);
    margin-bottom: 18px;
}

.mission-text p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.mission-visual {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mission-stat {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mission-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.mission-stat-info h4 {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.mission-stat-info p {
    font-size: 14px;
    color: var(--text-muted);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px;
    transition: var(--transition);
}

.value-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-3px);
}

.value-card .value-emoji {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.value-card h4 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.value-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(20, 184, 166, 0.1);
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 18px;
}

.team-card h4 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.team-role {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.team-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-hero {
    text-align: center;
    padding: 100px 24px 60px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 50%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-hero p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
}

.contact-layout {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 860px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: rgba(168, 85, 247, 0.25);
    transform: translateY(-2px);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-info-icon.teal {
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.2);
}

.contact-info-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.contact-info-icon.green {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.contact-info-text h4 {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.contact-info-text p,
.contact-info-text a {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-info-text a:hover {
    color: var(--primary);
}

.contact-form-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(12px);
}

.contact-form-panel h3 {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 540px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.contact-success {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 15px;
    color: var(--alert-success-text);
    margin-bottom: 24px;
    display: none;
}

.contact-success.show {
    display: flex;
}

/* FAQ */
.faq-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--bg-card);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(168, 85, 247, 0.2);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-toggle {
    font-size: 22px;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 24px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 0 24px 22px;
}

/* ========================================
   THEME TRANSITION
   ======================================== */
/* Smooth transition for the entire page when theme changes */
body,
.public-nav,
.nav-mobile-menu,
.public-footer,
.sidebar,
.glass-card,
.feature-card-v2,
.step-card,
.value-card,
.team-card,
.contact-info-card,
.contact-form-panel,
.mission-visual,
.faq-item,
.btn-secondary,
.form-control,
.custom-table,
.widget-card {
    transition: background 0.35s ease,
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease,
        transform 0.45s cubic-bezier(0.25, 0.61, 0.355, 1),
        box-shadow 0.35s ease !important;
}

/* ========================================
   THEME TOGGLE BUTTON
   ======================================== */
/* !important needed — global `button` rule sets background:transparent; border:none */
.theme-toggle {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    width: 56px !important;
    height: 30px !important;
    background: var(--bg-card) !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    padding: 3px !important;
    flex-shrink: 0;
    overflow: hidden;
    outline: none;
    box-sizing: border-box !important;
    transition: border-color 0.35s ease, box-shadow 0.25s ease !important;
}

.theme-toggle:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
}

.theme-toggle:focus-visible {
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
}

.theme-toggle-track {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7px;
    pointer-events: none;
    z-index: 1;
}

.theme-toggle-icon {
    font-size: 12px;
    line-height: 1;
    transition: opacity 0.25s ease, transform 0.3s ease;
    display: block;
    user-select: none;
}

.theme-toggle-icon.sun {
    opacity: 1;
    transform: scale(1);
}

.theme-toggle-icon.moon {
    opacity: 0.35;
    transform: scale(0.8);
}

html.dark-theme .theme-toggle-icon.sun {
    opacity: 0.35;
    transform: scale(0.8);
}

html.dark-theme .theme-toggle-icon.moon {
    opacity: 1;
    transform: scale(1);
}

.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border-radius: 50% !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    pointer-events: none;
    display: block !important;
}

html.dark-theme .theme-toggle-thumb {
    transform: translateX(26px);
}

/* Mobile theme toggle (inside mobile menu) */
.theme-toggle-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px 4px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.theme-toggle-mobile-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.35s ease;
}

/* ========================================
   LIGHT THEME MESH GRADIENT OVERRIDES
   ======================================== */
body::before {
    opacity: 0.55;
}

body::after {
    opacity: 0.55;
}

html.dark-theme body::before,
html.dark-theme body::after {
    opacity: 1;
}

/* Light theme hero gradient text fallback */
html:not(.dark-theme) .home-hero h1,
html:not(.dark-theme) .about-hero h1,
html:not(.dark-theme) .contact-hero h1 {
    background: linear-gradient(135deg, #1a0a3d 30%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html:not(.dark-theme) .stat-item .stat-num {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


html:not(.dark-theme) .step-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Light mode form controls */
html:not(.dark-theme) .form-control {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
}

html:not(.dark-theme) .form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

html:not(.dark-theme) select.form-control option {
    background: #fff;
    color: var(--text-main);
}

/* Light mode table rows */
html:not(.dark-theme) .custom-table tbody tr:hover {
    background: rgba(124, 58, 237, 0.04);
}

/* Light mode cta section */
html:not(.dark-theme) .cta-section h2 {
    color: var(--text-dark);
}

/* ╔══════════════════════════════════════════════════════════════╗
   ║                     GALLERY PAGE                            ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ── Hero ── */
.gallery-hero {
    text-align: center;
    padding: 90px 24px 48px;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-hero-title {
    font-size: clamp(36px, 5.5vw, 64px);
    line-height: 1.08;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 40%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html:not(.dark-theme) .gallery-hero-title {
    background: linear-gradient(135deg, #1a0a3d 30%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-hero-sub {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Filter Bar ── */
.gallery-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 24px 48px;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-filter-btn {
    padding: 9px 22px !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: 1.5px solid var(--border-color) !important;
    background: var(--bg-card) !important;
    color: var(--text-muted) !important;
    transition: all 0.25s ease !important;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.gallery-filter-btn:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: var(--primary-glow) !important;
    transform: translateY(-1px);
}

.gallery-filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 14px var(--primary-glow) !important;
    transform: translateY(-1px);
}

/* ── Gallery Grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ── Gallery Card ── */
.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        opacity 0.4s ease;
    outline: none;
    /* enter animation */
    animation: cardFadeIn 0.45s ease both;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.18);
    border-color: var(--border-glow);
}

.gallery-card:focus-visible {
    box-shadow: 0 0 0 3px var(--primary-glow);
    border-color: var(--primary);
}

/* hidden / visible via filter */
.gallery-card.hidden {
    display: none;
}

/* ── Card Image ── */
.gallery-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-card);
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-card-img {
    transform: scale(1.08);
}

/* Overlay on hover */
.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
            rgba(124, 58, 237, 0.75) 0%,
            rgba(13, 148, 136, 0.55) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-overlay-icon {
    font-size: 32px;
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.gallery-card:hover .gallery-card-overlay-icon {
    transform: scale(1);
}

.gallery-card-overlay-text {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.gallery-card:hover .gallery-card-overlay-text {
    opacity: 1;
    transform: translateY(0);
}

/* ── Card Body ── */
.gallery-card-body {
    padding: 20px 22px 22px;
}

.gallery-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tag-wedding {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.25);
}

.tag-birthday {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.tag-corporate {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.tag-party {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.tag-anniversary {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.gallery-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.3;
}

.gallery-card-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.gallery-card-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Empty State ── */
.gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    gap: 16px;
    color: var(--text-muted);
    text-align: center;
}

.gallery-empty-icon {
    font-size: 56px;
    opacity: 0.5;
}

.gallery-empty h3 {
    font-size: 22px;
    color: var(--text-main);
}

.gallery-empty p {
    font-size: 15px;
}

/* ╔══════════════════════════════════════════════════════════════╗
   ║                      LIGHTBOX                               ║
   ╚══════════════════════════════════════════════════════════════╝ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 5, 12, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-overlay.open {
    opacity: 1;
}

.lightbox-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.open .lightbox-container {
    transform: scale(1);
}

/* ── Close ── */
.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 18px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: rotate(90deg) scale(1.1) !important;
}

/* ── Nav arrows ── */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px !important;
    height: 48px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 26px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
    z-index: 10;
    line-height: 1;
}

.lightbox-prev {
    left: -64px;
}

.lightbox-next {
    right: -64px;
}

.lightbox-nav:hover {
    background: var(--primary) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 0;
        bottom: auto;
        top: auto;
        top: 40%;
    }

    .lightbox-next {
        right: 0;
        top: 40%;
    }

    .lightbox-close {
        top: -44px;
        right: 0;
    }
}

/* ── Image wrap ── */
.lightbox-img-wrap {
    position: relative;
    width: 100%;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    max-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    width: 100%;
    height: 100%;
    max-height: 65vh;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

/* ── Spinner ── */
.lightbox-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Caption ── */
.lightbox-caption {
    width: 100%;
    background: rgba(10, 12, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 20px 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.lightbox-caption-inner {
    flex: 1;
    min-width: 0;
}

.lightbox-tag {
    font-size: 11px !important;
    margin-bottom: 8px;
}

.lightbox-title {
    font-size: 20px;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 700;
}

.lightbox-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.lightbox-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.lightbox-counter {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    align-self: center;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 600px) {
    .lightbox-caption {
        flex-direction: column;
        padding: 16px 20px;
    }

    .lightbox-counter {
        align-self: flex-start;
    }

    .lightbox-title {
        font-size: 17px;
    }
}

/* Light theme lightbox adjustments */
html:not(.dark-theme) .lightbox-overlay {
    background: rgba(10, 5, 30, 0.93);
}

/* ╔══════════════════════════════════════════════════════════════╗
   ║                       VENUES SECTION                        ║
   ╚══════════════════════════════════════════════════════════════╝ */

.venues-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    padding: 80px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.venues-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.venues-hero p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Filters ── */
.venues-filter-container {
    max-width: 1200px;
    margin: 40px auto 24px;
    padding: 0 24px;
    display: flex;
    justify-content: center;
}

.venues-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--bg-card);
    padding: 6px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.venues-filter-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.venues-filter-btn:hover {
    color: var(--text-main);
    background: rgba(99, 102, 241, 0.08);
}

.venues-filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* ── Venues Grid ── */
.venues-grid-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    transition: all 0.3s ease;
}

/* ── Card Styles ── */
.venue-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.venue-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 20px 30px -10px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-light);
}

.venue-card-img-wrap {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
    background: #0f172a;
}

.venue-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.venue-card:hover .venue-card-img {
    transform: scale(1.08);
}

.venue-type-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.type-hall {
    background: #6366f1;
}

.type-garden {
    background: #10b981;
}

.type-farm {
    background: #f59e0b;
}

.type-resort {
    background: #ec4899;
}

.type-other {
    background: #6b7280;
}

.venue-price-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.venue-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.venue-card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.venue-card-location {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.venue-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.venue-card-specs {
    display: flex;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    gap: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.spec-label {
    font-weight: 600;
    color: var(--text-main);
}

/* ── Listing Section ── */
.venue-listing-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 80px 24px;
}

.venue-listing-inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.venue-listing-inner h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 8px;
}

.venue-listing-inner p.intro {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}

.venue-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .venue-form-grid {
        grid-template-columns: 1fr;
    }

    .venue-listing-inner {
        padding: 24px;
    }
}

.venue-success-banner {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    color: #10b981;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 24px;
    display: none;
    align-items: center;
    gap: 10px;
}

.venue-success-banner.show {
    display: flex;
}

/* Light/Dark theme overrides for Venues */
html:not(.dark-theme) .venue-price-badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ╔══════════════════════════════════════════════════════════════╗
   ║                     RESPONSIVENESS PATCH                     ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* Sidebar Toggle Icon Styles */
.sidebar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-right: 16px;
    padding: 0;
    flex-shrink: 0;
}

.sidebar-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

.sidebar-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.sidebar-toggle.open span:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Sidebar overlay style */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Nav Dropdown (Public Navbar) */
.nav-mobile-menu {
    display: flex !important;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-mobile-menu);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    flex-direction: column;
    gap: 12px;
    z-index: 199;

    /* Animation initial state */
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Swipeable mobile filters */
@media (max-width: 768px) {

    .venues-filters,
    .gallery-filter-bar {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding: 6px 12px !important;
        border-radius: 12px !important;
        width: 100% !important;
        gap: 8px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide standard Firefox scrollbar */
    }

    .venues-filters::-webkit-scrollbar,
    .gallery-filter-bar::-webkit-scrollbar {
        display: none !important;
        /* Hide scrollbar in Webkit browsers */
    }

    .venues-filter-container {
        padding: 0 16px !important;
    }

    .gallery-filter-bar {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* Mobile / Tablet dashboard adaptations */
@media (max-width: 992px) {
    .sidebar {
        width: var(--sidebar-width) !important;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
    }

    .logo-text,
    .sidebar-link span {
        display: inline-block !important;
        /* Show them when sidebar slides out */
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 24px !important;
    }

    .sidebar-toggle {
        display: flex !important;
    }
}

@media (max-width: 768px) {

    /* Override the 70px collapsed sidebar style */
    .sidebar {
        width: var(--sidebar-width) !important;
        padding: 30px 20px !important;
    }

    .logo-text,
    .sidebar-link span {
        display: inline-block !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px !important;
    }

    .user-profile-badge {
        padding: 6px 10px !important;
    }

    .user-profile-badge>span {
        display: none !important;
        /* Hide text label for profile name & role on <=768px */
    }
}

/* Compact dashboard profile header & widgets for mobile screens */
@media (max-width: 576px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        gap: 16px !important;
    }

    .widget-card {
        padding: 16px !important;
        gap: 12px !important;
    }

    .widget-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }

    .widget-details h4 {
        font-size: 18px !important;
    }

    .widget-details p {
        font-size: 11px !important;
    }

    .home-stats {
        gap: 20px !important;
        margin: 30px auto !important;
    }

    .stat-item {
        flex: 1 1 40% !important;
        /* 2 items per row */
    }

    .stat-item .stat-num {
        font-size: 32px !important;
    }

    /* Stack public hero button layout */
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        gap: 12px !important;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Chart container adjustments */
    .chart-container {
        height: 160px !important;
    }
}

/* Table cells styling for tables inside responsive container */
@media (max-width: 768px) {

    .custom-table th,
    .custom-table td {
        padding: 10px 8px !important;
        font-size: 13px !important;
        white-space: nowrap;
    }
}

/* Public layouts stack */
@media (max-width: 992px) {
    .about-mission {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .contact-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* 2-Columns on Tablets (768px–1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .features-grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .venues-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .vendors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* 1-Column on Mobile Phones (< 768px) */
@media (max-width: 767px) {
    .features-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .steps-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .venues-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .vendors-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Force all other inline display:grid styles to stack on mobile */
    div[style*="display:grid"][style*="grid-template-columns"],
    div[style*="display: grid"][style*="grid-template-columns"],
    form[style*="display:grid"][style*="grid-template-columns"],
    form[style*="display: grid"][style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Mobile font sizes and paddings for public pages to prevent left cutoff */
    .home-hero {
        padding: 60px 16px 40px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .home-hero h1 {
        font-size: 28px !important;
        line-height: 1.15 !important;
        margin-bottom: 16px !important;
    }

    .home-hero .hero-sub {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 32px !important;
        width: 100% !important;
    }

    .about-hero {
        padding: 60px 16px 40px !important;
    }

    .about-hero h1 {
        font-size: 28px !important;
        line-height: 1.15 !important;
    }

    .about-hero p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .contact-hero {
        padding: 60px 16px 40px !important;
    }

    .contact-hero h1 {
        font-size: 28px !important;
        line-height: 1.15 !important;
    }

    .contact-hero p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .gallery-hero {
        padding: 50px 16px 30px !important;
    }

    .gallery-hero-title {
        font-size: 28px !important;
        line-height: 1.15 !important;
    }

    .gallery-hero-sub {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .venues-hero {
        padding: 50px 16px 30px !important;
    }

    .venues-hero h1 {
        font-size: 28px !important;
        line-height: 1.15 !important;
    }

    .venues-hero p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .public-page {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .contact-form-panel {
        padding: 24px !important;
    }

    .mission-visual {
        padding: 24px !important;
    }
}

/* ========================================
   AI CHATBOT ASSISTANT "SPARKY"
   ======================================== */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

/* Pulsing Toggle Button */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    position: relative;
    padding: 0;
}

.chatbot-toggle:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.55), 0 0 12px var(--primary-glow);
}

.chatbot-toggle:active {
    transform: translateY(-1px) scale(0.98);
}

.chatbot-toggle-icon {
    font-size: 26px;
    line-height: 1;
    display: inline-block;
    transition: transform 0.25s ease;
}

/* Rotate icon slightly on hover */
.chatbot-toggle:hover .chatbot-toggle-icon {
    transform: rotate(-8deg);
}

/* Unread Message Badge */
.chatbot-toggle-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Chat Window Panel */
.chatbot-window {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 380px;
    height: 520px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.26);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10001;

    /* Animation base state */
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chatbot-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header */
.chatbot-header {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.1), rgba(20, 184, 166, 0.1));
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.15);
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chatbot-header-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.chatbot-status {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.chatbot-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 6px #10b981;
    animation: status-pulse 1.8s infinite;
}

@keyframes status-pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.chatbot-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: var(--transition);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-close-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

/* Message Box Area */
.chatbot-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Individual message bubbles */
.chat-message {
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 82%;
    word-break: break-word;
}

.chat-message.bot {
    align-self: flex-start;
    background: rgba(124, 58, 237, 0.07);
    border: 1px solid rgba(124, 58, 237, 0.14);
    color: var(--text-main);
    border-top-left-radius: 4px;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
    border-bottom-left-radius: 14px;
}

/* Ensure links in bot answers stand out */
.chat-message.bot a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.chat-message.bot a:hover {
    color: var(--secondary);
}

.chat-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--secondary), #0d9488);
    color: #ffffff;
    border-top-left-radius: 14px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 14px;
    border-bottom-left-radius: 14px;
    box-shadow: 0 3px 12px rgba(13, 148, 136, 0.16);
}

/* Quick Suggestion Chips */
.chatbot-chips {
    display: flex;
    gap: 8px;
    padding: 8px 16px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Hide Scrollbar Firefox */
    border-top: 1px solid var(--border-color);
}

.chatbot-chips::-webkit-scrollbar {
    display: none;
    /* Hide Scrollbar Chrome */
}

.chatbot-chip {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-chip:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-glow);
    transform: translateY(-1px);
}

/* Input Area Form */
.chatbot-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.05);
}

html.dark-theme .chatbot-input-area {
    background: rgba(255, 255, 255, 0.015);
}

.chatbot-input {
    flex-grow: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.chatbot-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.chatbot-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-glow);
    color: var(--primary);
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.chatbot-send-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.chatbot-send-btn:active {
    transform: scale(0.95);
}

/* Typing Indicator Animation */
.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 12px;
}

.typing-indicator span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
    display: inline-block;
    animation: bounce-dots 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce-dots {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

/* ========================================
   CHATBOT MOBILE RESPONSIVENESS
   ======================================== */
@media (max-width: 480px) {
    .chatbot-container {
        bottom: 16px;
        right: 16px;
    }

    .chatbot-toggle {
        width: 54px;
        height: 54px;
    }

    .chatbot-window {
        bottom: 66px;
        width: calc(100vw - 32px);
        height: calc(100vh - 100px);
        max-height: 480px;
        border-radius: 16px;
    }

    .chatbot-messages {
        padding: 16px;
    }

    .chat-message {
        max-width: 90%;
        font-size: 13.5px;
    }
}

/* Custom Validation Styles */
.form-control.error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}
.error-message {
    color: var(--danger);
    font-size: 12.5px;
    font-weight: 500;
    margin-top: 5px;
    display: block;
    animation: validationFadeIn 0.2s ease-in-out;
}
@keyframes validationFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   DIGITAL EVENT PASS TICKET STYLES
   ======================================== */
.digital-pass-ticket {
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    border-radius: 20px;
    padding: 24px;
    color: #ffffff;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    margin-top: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

html:not(.dark-theme) .digital-pass-ticket {
    background: linear-gradient(135deg, #ffffff 0%, #f3e8ff 100%);
    color: #1a0a3d;
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.1);
}

.digital-pass-ticket:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.25);
}

/* Semi-circular punch-cuts on the ticket sides */
.digital-pass-ticket::before,
.digital-pass-ticket::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-body); /* matches page body background color */
    transform: translateY(-50%);
    z-index: 2;
    transition: background 0.35s ease;
}

.digital-pass-ticket::before {
    left: -10px;
    box-shadow: inset -3px 0 5px rgba(0, 0, 0, 0.15);
}

.digital-pass-ticket::after {
    right: -10px;
    box-shadow: inset 3px 0 5px rgba(0, 0, 0, 0.15);
}

/* Dotted tear-off line divider */
.ticket-divider {
    border-top: 2px dashed rgba(255, 255, 255, 0.15);
    margin: 16px 0;
    position: relative;
}

html:not(.dark-theme) .ticket-divider {
    border-top-color: rgba(124, 58, 237, 0.2);
}

/* Header, Brand, Logo */
.ticket-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ticket-logo-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ticket-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ticket-badge.approved {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ticket-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ticket-badge.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Ticket Info */
.ticket-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
}

.ticket-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.ticket-field {
    font-size: 13px;
}

.ticket-field-label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.ticket-field-value {
    font-weight: 600;
}

/* Ticket QR code section */
.ticket-footer-sec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ticket-qr-container {
    background: #ffffff;
    padding: 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.ticket-qr-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Print styles to isolate the pass when printing */
@media print {
    body * {
        visibility: hidden;
    }
    #print-ticket-area, #print-ticket-area * {
        visibility: visible;
    }
    #print-ticket-area {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(1.2);
        width: 100%;
        max-width: 480px;
        box-shadow: none !important;
        border: 2px solid #000000 !important;
        z-index: 99999;
    }
    .digital-pass-ticket {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
    }
    .ticket-logo-text {
        color: #000000 !important;
        -webkit-text-fill-color: initial !important;
        background: none !important;
    }
    .ticket-divider {
        border-top-color: #000000 !important;
    }
    .ticket-badge {
        border: 1px solid #000000 !important;
        color: #000000 !important;
        background: transparent !important;
    }
    .ticket-actions-row {
        display: none !important;
    }
}