/* ═══════════════════════════════════════════════════════════════
   Ayyappa Premium UI
   Soft shadows · rounded corners · gradient headers · floating nav
   Glass cards · rich typography · smooth animations · mobile-first
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* App tokens — use portal hex (not shadcn HSL --primary) */
    --app-primary: var(--portal-primary);
    --app-primary-light: var(--portal-primary-light);
    --app-primary-dark: var(--portal-primary-dark);
    --secondary: var(--gold);

    /* Status */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Background */
    --bg: var(--neutral-50);
    --surface: #FFFFFF;

    /* Text */
    --text-primary: var(--neutral-900);
    --text-secondary: var(--neutral-500);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(41, 37, 36, 0.05);
    --shadow-md: 0 4px 16px rgba(41, 37, 36, 0.07);
    --shadow-lg: 0 12px 32px rgba(41, 37, 36, 0.09);

    --gradient-primary: linear-gradient(180deg, #F4D35E 0%, var(--gold) 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-info: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --gradient-warning: linear-gradient(180deg, var(--brand-200) 0%, var(--brand-400) 50%, var(--brand-500) 100%);

    --font-app: 'Inter', 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    --spacing: 12px;
}

/* Construction site variant (optional: add .theme-construction to shell) */
.theme-construction {
    --primary: #F97316;
    --primary-light: #FB923C;
    --primary-dark: #EA580C;
    --gradient-primary: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
}

/* ── App shell ── */
.theme-ayyappa.mobile-shell,
.mobile-shell.theme-ayyappa {
    --temple-page-bg: var(--bg);
    --temple-red: var(--app-primary);
    --temple-red-dark: var(--primary-dark);
    --temple-maroon: var(--app-primary);
    --temple-surface: var(--surface);
    --temple-text: var(--text-primary);
    --temple-muted: var(--text-secondary);
    font-family: var(--font-app);
    color: var(--text-primary);
}

.theme-ayyappa .temple-main {
    background: transparent;
}

/* ── Body gradient (via shell) ── */
.theme-ayyappa.page {
    background: var(--temple-gradient-page, linear-gradient(180deg, #FFFBF7 0%, #F8F4EF 50%, #FDF8F3 100%));
    min-height: 100vh;
}

/* App top nav visuals — NavMenu.razor.css (scoped) */

.theme-ayyappa .app-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.theme-ayyappa .app-header-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--temple-border-light, #E7E5E4);
    border-radius: var(--radius-sm);
    background: var(--temple-surface, #fff);
    color: var(--temple-text-soft, var(--text-secondary));
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-ayyappa .app-header-action:hover {
    background: var(--temple-parchment, #FDF8F3);
    color: var(--temple-text, var(--text-primary));
}

.theme-ayyappa .app-header-bell {
    position: relative;
    text-decoration: none !important;
    color: var(--temple-text-soft, var(--text-secondary)) !important;
}

.theme-ayyappa .app-header-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 10px;
    background: #EF4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

@media (max-width: 991.98px) {
    .theme-ayyappa .temple-topnav-bar {
        min-height: auto;
        height: auto;
        align-items: center;
        flex-wrap: nowrap;
    }

    .theme-ayyappa .temple-topnav-brand {
        flex: 1;
        min-width: 0;
    }

    .theme-ayyappa .temple-topnav-logo {
        width: 48px;
        height: 48px;
    }

    .theme-ayyappa .temple-topnav-name {
        font-family: var(--font-app);
        font-size: 17px;
        font-weight: 700;
        color: var(--nav-brown, #6B3E0B) !important;
        max-width: 100%;
    }

    .theme-ayyappa .temple-topnav-welcome {
        display: block;
        font-size: 13px;
        font-weight: 500;
        color: var(--nav-text, #374151) !important;
        margin-top: 4px;
    }

    .theme-ayyappa .temple-topnav-tagline {
        display: none !important;
    }

    .theme-ayyappa .temple-topnav-toggler {
        display: none;
    }
}

@media (min-width: 992px) {
    .theme-ayyappa .temple-topnav-welcome {
        display: none;
    }
}

/* ── Drawer overlay & panel ── */
body.drawer-open {
    overflow: hidden;
}

.drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1090;
    cursor: pointer;
    animation: ayyappa-fade-in 0.3s ease;
}

.theme-ayyappa .temple-nav-shell .temple-nav-checkbox:checked ~ .drawer-backdrop {
    display: block;
}

@keyframes ayyappa-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ayyappa-slide-in {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@media (max-width: 991.98px) {
    .theme-ayyappa .temple-nav-shell .temple-topnav-panel.drawer {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100dvh;
        max-height: 100dvh;
        width: min(300px, 92vw);
        z-index: 1100;
        flex-direction: column;
        background: #F5F7FB;
        border-radius: 0 24px 24px 0;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.18);
        padding: 0;
        margin: 0;
        border: none;
        overflow: hidden;
        transform: translateX(-110%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .theme-ayyappa .temple-nav-shell .temple-nav-checkbox:checked ~ .temple-topnav-panel.drawer {
        transform: translateX(0);
    }

    .theme-ayyappa .temple-nav-shell .temple-nav-checkbox:checked ~ .drawer-backdrop {
        display: block;
    }

    /* Header — D2KSS navy gradient */
    .theme-ayyappa .drawer-header {
        background: linear-gradient(120deg, #061a31 0%, #0a2540 40%, #123a5c 100%);
        min-height: 120px;
        padding: 0;
        color: #fff;
        border-radius: 0 0 24px 24px;
        position: relative;
        flex-shrink: 0;
        box-shadow: 0 8px 24px rgba(6, 26, 49, 0.35);
    }

    .theme-ayyappa .drawer-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px 4px;
        gap: 8px;
    }

    .theme-ayyappa .drawer-title {
        font-size: 17px;
        font-weight: 700;
        flex: 1;
        text-align: center;
    }

    .theme-ayyappa .drawer-back,
    .theme-ayyappa .drawer-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
        font-size: 1.05rem;
        cursor: pointer;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .theme-ayyappa .drawer-back:active,
    .theme-ayyappa .drawer-close:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.3);
    }

    .theme-ayyappa .drawer-user-block {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 16px 14px;
        text-align: left;
    }

    .theme-ayyappa .drawer-avatar {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.35rem;
        flex-shrink: 0;
    }

    .theme-ayyappa .drawer-user-text {
        min-width: 0;
        flex: 1;
    }

    .theme-ayyappa .drawer-user-name {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .theme-ayyappa .drawer-user-role {
        font-size: 12px;
        opacity: 0.9;
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Scrollable menu body */
    .theme-ayyappa .drawer-body {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 8px 12px 12px;
        -webkit-overflow-scrolling: touch;
        background: #F5F7FB;
    }

    .theme-ayyappa .drawer-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        flex: 1 1 auto;
        min-height: min-content;
    }

    /* Section headers */
    .theme-ayyappa .drawer-section-header {
        padding: 12px 4px 6px;
    }

    .theme-ayyappa .drawer-section-header.drawer-section-admin {
        padding-top: 16px;
    }

    .theme-ayyappa .drawer-section-title {
        font-size: 16px;
        font-weight: 700;
        color: #374151;
        line-height: 1.3;
    }

    .theme-ayyappa .drawer-section-subtitle {
        font-size: 12px;
        color: #9CA3AF;
        margin-top: 2px;
        line-height: 1.35;
    }

    /* Menu cards — touchable button rows (no ::deep — invalid in global CSS) */
    .theme-ayyappa .drawer-menu a.drawer-menu-btn,
    .theme-ayyappa .drawer-menu a.menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        margin-bottom: 8px;
        min-height: 52px;
        border-radius: 14px;
        background: #fff;
        color: var(--nav-dropdown-text, var(--d2kss-slate, #2c3e50)) !important;
        text-decoration: none !important;
        font-size: 15px;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(6, 26, 49, 0.06);
        border: 1px solid rgba(6, 26, 49, 0.08);
        transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        position: relative;
        width: 100%;
        box-sizing: border-box;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .theme-ayyappa .drawer-menu a.drawer-menu-btn:hover,
    .theme-ayyappa .drawer-menu a.drawer-menu-btn:visited,
    .theme-ayyappa .drawer-menu a.drawer-menu-btn:focus,
    .theme-ayyappa .drawer-menu a.menu-item:hover,
    .theme-ayyappa .drawer-menu a.menu-item:visited,
    .theme-ayyappa .drawer-menu a.menu-item:focus {
        color: var(--nav-dropdown-text, var(--d2kss-slate, #2c3e50)) !important;
        text-decoration: none !important;
    }

    .theme-ayyappa .drawer-menu a.drawer-menu-btn:active,
    .theme-ayyappa .drawer-menu a.menu-item:active {
        background: #F3F4F6;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .theme-ayyappa .drawer-menu a.drawer-menu-btn .menu-icon,
    .theme-ayyappa .drawer-menu a.menu-item .menu-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: rgba(0, 136, 168, 0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 1.1rem;
        color: var(--d2kss-teal, #0088a8);
    }

    .theme-ayyappa .drawer-menu a.drawer-menu-btn .menu-label,
    .theme-ayyappa .drawer-menu a.menu-item .menu-label {
        flex: 1;
        text-align: left;
        min-width: 0;
        text-decoration: none !important;
        color: inherit !important;
    }

    .theme-ayyappa .drawer-menu a.drawer-menu-btn .menu-chevron,
    .theme-ayyappa .drawer-menu a.menu-item .menu-chevron {
        color: #9CA3AF;
        font-size: 0.9rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    .theme-ayyappa .drawer-menu a.drawer-menu-btn .menu-active-dot,
    .theme-ayyappa .drawer-menu a.menu-item .menu-active-dot {
        display: none;
    }

    .theme-ayyappa .drawer-menu a.drawer-menu-btn.active,
    .theme-ayyappa .drawer-menu a.menu-item.active {
        background: rgba(0, 136, 168, 0.1);
        color: var(--d2kss-teal, #0088a8) !important;
        border-left: 4px solid var(--d2kss-teal, #0088a8);
        box-shadow: none;
        padding-left: 12px;
    }

    .theme-ayyappa .drawer-menu a.drawer-menu-btn.active .menu-icon,
    .theme-ayyappa .drawer-menu a.menu-item.active .menu-icon {
        background: rgba(0, 136, 168, 0.14);
        color: var(--d2kss-teal, #0088a8);
    }

    .theme-ayyappa .drawer-menu a.drawer-menu-btn.active .menu-chevron,
    .theme-ayyappa .drawer-menu a.menu-item.active .menu-chevron {
        color: var(--d2kss-teal, #0088a8);
    }

    .theme-ayyappa .drawer-menu a.menu-item-admin {
        border-left: 3px solid rgba(0, 136, 168, 0.28);
    }

    .theme-ayyappa .drawer-menu a.menu-item-admin .menu-icon {
        background: rgba(138, 134, 57, 0.08);
        color: var(--app-primary);
    }

    .theme-ayyappa .drawer-menu a.menu-item-admin.active {
        border-left: 4px solid var(--app-primary);
        padding-left: 12px;
    }

    .theme-ayyappa .drawer-menu a.drawer-menu-btn .menu-badge,
    .theme-ayyappa .drawer-menu a.menu-item .menu-badge {
        background: var(--app-primary);
        color: #fff;
        border-radius: 20px;
        min-width: 22px;
        height: 22px;
        padding: 0 7px;
        font-size: 11px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .theme-ayyappa .drawer-menu a.menu-item-logout {
        border-color: rgba(239, 68, 68, 0.25);
        background: #FFF5F5;
    }

    .theme-ayyappa .drawer-menu a.menu-item-logout .menu-icon {
        background: rgba(239, 68, 68, 0.12);
        color: #EF4444;
    }

    .theme-ayyappa .drawer-menu a.menu-item-logout .menu-label {
        color: #EF4444;
    }

    .theme-ayyappa .drawer-menu a.menu-item-login {
        border-color: rgba(13, 148, 136, 0.28);
        background: rgba(13, 148, 136, 0.08);
    }

    .theme-ayyappa .drawer-menu a.menu-item-login .menu-icon {
        background: rgba(13, 148, 136, 0.15);
        color: #0d9488;
    }

    .theme-ayyappa .drawer-menu a.menu-item-login .menu-label {
        color: #0d9488;
        font-weight: 600;
    }

    .theme-ayyappa .drawer-menu a.menu-item-register {
        border-color: rgba(10, 37, 64, 0.16);
        background: rgba(10, 37, 64, 0.04);
    }

    .theme-ayyappa .drawer-menu a.menu-item-register .menu-icon {
        background: rgba(10, 37, 64, 0.1);
        color: #0a2540;
    }

    .theme-ayyappa .drawer-menu a.menu-item-register .menu-label {
        color: #0a2540;
        font-weight: 600;
    }

    .theme-ayyappa .drawer-menu a.menu-item-logout .menu-label {
        color: #EF4444 !important;
        font-weight: 700;
    }

    .theme-ayyappa .drawer-menu a.menu-item-logout:active {
        background: #FEE2E2;
    }

    /* Version footer */
    .theme-ayyappa .drawer-footer {
        flex-shrink: 0;
        padding: 8px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .theme-ayyappa .drawer-version {
        text-align: center;
        font-size: 11px;
        color: #9CA3AF;
        margin: 0;
        padding: 0;
    }

    .theme-ayyappa .drawer-header.temple-nav-drawer-only,
    .theme-ayyappa .drawer-body.temple-nav-drawer-only,
    .theme-ayyappa .drawer-footer.temple-nav-drawer-only {
        display: flex !important;
        flex-direction: column;
    }

    .theme-ayyappa .temple-nav-desktop-only {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .theme-ayyappa .drawer-backdrop,
    .theme-ayyappa .temple-topnav-panel.drawer {
        display: none !important;
    }

    .theme-ayyappa .drawer-header,
    .theme-ayyappa .drawer-body,
    .theme-ayyappa .drawer-footer,
    .theme-ayyappa .temple-nav-drawer-only {
        display: none !important;
    }

    .theme-ayyappa .drawer-scroll {
        display: contents;
        overflow: visible;
        padding: 0;
    }
}

/* ── Content spacing ── */
.theme-ayyappa .content {
    padding: 12px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
    .theme-ayyappa .content {
        padding: 20px 24px 2rem;
    }
}

/* ── Cards ── */
.theme-ayyappa .card,
.theme-ayyappa .temple-card,
.theme-ayyappa .temple-toolbar {
    background: var(--surface);
    border: none !important;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.theme-ayyappa .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.theme-ayyappa .card-header {
    background: transparent !important;
    border: none !important;
    padding: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
}

.theme-ayyappa .glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.theme-ayyappa .search-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.theme-ayyappa .search-box input {
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
    font-size: 15px;
    font-family: var(--font-app);
}

/* ── KPI cards ── */
.theme-ayyappa .kpi-card,
.theme-ayyappa .temple-stat-card {
    border: none !important;
    border-radius: var(--radius-lg) !important;
    padding: 20px !important;
    min-height: 110px;
    color: #fff;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.3s ease;
}

.theme-ayyappa .kpi-card .kpi-icon,
.theme-ayyappa .temple-stat-card .kpi-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.theme-ayyappa .kpi-card .stat-label,
.theme-ayyappa .temple-stat-card .stat-label {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.92;
    text-transform: none;
}

.theme-ayyappa .kpi-card .stat-value,
.theme-ayyappa .temple-stat-card .stat-value {
    font-family: var(--font-app);
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.theme-ayyappa .kpi-card .stat-trend,
.theme-ayyappa .temple-stat-card .stat-trend {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 8px;
}

.theme-ayyappa .stat-revenue,
.theme-ayyappa .kpi-revenue {
    background: var(--gradient-success) !important;
}

.theme-ayyappa .stat-puja,
.theme-ayyappa .kpi-puja,
.theme-ayyappa .kpi-bookings {
    background: var(--gradient-info) !important;
}

.theme-ayyappa .stat-donation,
.theme-ayyappa .kpi-donation {
    background: var(--gradient-warning) !important;
    color: #fff !important;
}

.theme-ayyappa .stat-count,
.theme-ayyappa .kpi-count {
    background: var(--surface) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
}

.theme-ayyappa .stat-count .stat-value,
.theme-ayyappa .kpi-count .stat-value {
    color: var(--app-primary);
}

/* ── Buttons ── */
.theme-ayyappa .btn-primary,
.theme-ayyappa .temple-btn-primary,
.theme-ayyappa .temple-btn-select {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 16px !important;
    min-height: 52px;
    font-weight: 600;
    font-family: var(--font-app);
    box-shadow: 0 4px 14px rgba(138, 134, 57, 0.2);
    transition: all 0.3s ease;
}

.theme-ayyappa .btn-primary:active,
.theme-ayyappa .temple-btn-select:active {
    transform: scale(0.97);
}

.theme-ayyappa .btn-primary:hover,
.theme-ayyappa .temple-btn-select:hover {
    transform: translateY(-2px);
    color: #fff !important;
}

.theme-ayyappa .btn-outline-primary {
    border: 1.5px solid rgba(138, 134, 57, 0.25) !important;
    background: rgba(138, 134, 57, 0.06) !important;
    color: var(--app-primary) !important;
    border-radius: 16px !important;
    font-weight: 600;
}

.theme-ayyappa .btn-success {
    background: var(--gradient-success) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-sm);
}

/* ── Inputs ── */
.theme-ayyappa .form-control {
    border: 1.5px solid var(--temple-border-input, #D6D3D1) !important;
    border-radius: var(--temple-radius, var(--radius-md));
    background-color: var(--temple-surface, #fff) !important;
    min-height: 52px;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.theme-ayyappa .form-select {
    border: 1.5px solid var(--temple-border-input, #D6D3D1) !important;
    border-radius: var(--temple-radius, var(--radius-md));
    background-color: var(--temple-surface, #fff) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748B' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.875rem center !important;
    background-size: 14px 10px !important;
    min-height: 52px;
    padding-right: 2.5rem !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.theme-ayyappa .form-control:focus,
.theme-ayyappa .form-select:focus {
    border-color: var(--temple-red, var(--app-primary)) !important;
    box-shadow: var(--temple-focus-ring, 0 0 0 3px rgba(138, 134, 57, 0.14)) !important;
    outline: none;
}

.theme-ayyappa .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--temple-text-soft, var(--text-secondary));
}

/* ── Puja / offering cards ── */
.theme-ayyappa .temple-offering-card {
    border: none !important;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: left;
    align-items: flex-start;
}

.theme-ayyappa .temple-offering-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.theme-ayyappa .temple-offering-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.theme-ayyappa .temple-offering-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--app-primary);
}

.theme-ayyappa .temple-page-banner {
    background: var(--temple-gradient-header, linear-gradient(135deg, #FFF8F0 0%, #FEF3E2 55%, #FFFBEB 100%));
    border: 1px solid var(--temple-border-light, #E7E5E4);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* ── Typography ── */
.theme-ayyappa .heading-lg,
.theme-ayyappa .content > h3,
.theme-ayyappa .temple-page-header .page-title {
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-app);
    color: var(--text-primary);
    border: none !important;
}

.theme-ayyappa .heading-md { font-size: 18px; font-weight: 600; }
.theme-ayyappa .text-muted { font-size: 12px; color: var(--text-secondary); }

.theme-ayyappa .temple-page-header {
    border: none;
    margin-bottom: var(--spacing);
}

.theme-ayyappa .temple-page-header::after { display: none; }

@media (max-width: 991.98px) {
    .theme-ayyappa .temple-footer { display: none; }
}

/* ── Floating bottom navigation ── */
.bottom-nav {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 64px;
    background: var(--temple-surface, #fff);
    border-radius: 20px;
    display: none;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--temple-border-light, #E2E8F0);
    z-index: 999;
    padding: 0 8px;
}

@media (max-width: 991.98px) {
    .bottom-nav.bottom-nav-visible {
        display: flex;
    }
}

.bottom-nav {
    overflow: visible;
}

.bottom-nav a.bottom-nav-btn,
.bottom-nav label.bottom-nav-btn,
.bottom-nav a.nav-item,
.bottom-nav label.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--temple-muted, #64748B) !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    padding: 8px 10px;
    min-height: 54px;
    border-radius: 18px;
    cursor: pointer;
    flex: 1;
    max-width: 84px;
    border: none;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    overflow: visible;
}

.bottom-nav a.bottom-nav-btn:hover,
.bottom-nav a.bottom-nav-btn:visited,
.bottom-nav a.bottom-nav-btn:focus,
.bottom-nav a.nav-item:hover,
.bottom-nav a.nav-item:visited,
.bottom-nav a.nav-item:focus {
    color: var(--temple-muted, #64748B) !important;
    text-decoration: none !important;
}

.bottom-nav a.bottom-nav-btn.active,
.bottom-nav a.nav-item.active {
    background: rgba(138, 134, 57, 0.1);
    color: var(--temple-red-dark, var(--primary-dark)) !important;
    box-shadow: none;
    border: 1px solid rgba(138, 134, 57, 0.15);
}

.bottom-nav a.bottom-nav-btn.active:hover,
.bottom-nav a.bottom-nav-btn.active:visited,
.bottom-nav a.nav-item.active:hover,
.bottom-nav a.nav-item.active:visited {
    color: var(--temple-red-dark, var(--primary-dark)) !important;
    text-decoration: none !important;
}

.bottom-nav .nav-icon {
    font-size: 22px;
    line-height: 1;
    color: inherit;
}

.bottom-nav a.bottom-nav-btn.active .nav-icon,
.bottom-nav a.nav-item.active .nav-icon {
    transform: scale(1.08);
}

.bottom-nav .nav-label {
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none !important;
    color: inherit !important;
}

.bottom-nav label.bottom-nav-btn.nav-menu-trigger,
.bottom-nav label.nav-item.nav-menu-trigger {
    color: #374151 !important;
}

/* Global smooth transitions */
.theme-ayyappa * {
    transition-property: background, border-color, transform, box-shadow, color;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

.theme-ayyappa *:focus { transition-duration: 0.15s; }
