/* ===== CSS VARIABLES ===== */
:root {
    --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
    --bg-primary: #0c0a1a;
    --bg-secondary: #151228;
    --bg-tertiary: #1e1a38;
    --bg-card: rgba(140,120,200,0.06);
    --bg-card-hover: rgba(140,120,200,0.12);
    --bg-glass: rgba(12,10,26,0.85);
    --bg-input: rgba(140,120,200,0.08);
    --text-primary: #f0eef5;
    --text-secondary: #b8b0d0;
    --text-muted: #7a6fa0;
    --accent: #00dcf0;
    --accent-glow: rgba(0,220,240,0.15);
    --accent-border: rgba(0,220,240,0.3);
    --accent-gradient: linear-gradient(135deg, #00dcf0, #0af, #00dcf0);
    --gold: #d4953a;
    --gold-glow: rgba(212,149,58,0.15);
    --border: rgba(140,120,200,0.12);
    --border-accent: rgba(0,220,240,0.3);
    --shadow: 0 8px 32px rgba(0,0,0,0.6);
    --shadow-accent: 0 4px 20px rgba(0,220,240,0.15);
    --success: #4caf50;
    --danger: #ef5350;
    --warning: #ffb74d;
    --info: #42a5f5;
    --badge-bg: rgba(0,220,240,0.12);
    --badge-text: #00dcf0;
    --table-stripe: rgba(140,120,200,0.04);
    --scrollbar-track: #151228;
    --scrollbar-thumb: #352e55;
}

[data-theme="light"] {
    --bg-primary: #FFF8E1;
    --bg-secondary: #FFF3CD;
    --bg-tertiary: #FFECB3;
    --bg-card: #f5edd4;
    --bg-card-hover: #f0e6c8;
    --bg-glass: rgba(245,237,212,0.9);
    --bg-input: #efe5c6;
    --text-primary: #1a1a2e;
    --text-secondary: #444460;
    --text-muted: #888899;
    --accent: #8b6914;
    --accent-glow: rgba(139,105,20,0.1);
    --accent-border: rgba(139,105,20,0.3);
    --accent-gradient: linear-gradient(135deg, #c8943e, #8b6914, #c8943e);
    --gold: #8b6914;
    --gold-glow: rgba(139,105,20,0.1);
    --border: rgba(0,0,0,0.08);
    --border-accent: rgba(139,105,20,0.3);
    --shadow: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-accent: 0 4px 20px rgba(139,105,20,0.1);
    --success: #2e7d32;
    --danger: #c62828;
    --warning: #e65100;
    --info: #1565c0;
    --badge-bg: rgba(139,105,20,0.1);
    --badge-text: #8b6914;
    --table-stripe: rgba(0,0,0,0.02);
    --scrollbar-track: #FFF3CD;
    --scrollbar-thumb: #ddd0a0;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    transition: background var(--transition);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo {
    height: 32px;
    width: auto;
}

.nav-brand {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user-name {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-logout {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all var(--transition);
}

.nav-logout:hover {
    border-color: var(--danger);
    color: var(--danger);
    opacity: 1;
}

/* ===== LOGO SWITCHING ===== */
[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: inline-block;
}

[data-theme="light"] .logo-dark {
    display: none;
}

[data-theme="light"] .logo-light {
    display: inline-block;
}

/* ===== THEME TOGGLE ===== */
.theme-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--accent-border);
    background: transparent;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all var(--transition);
}

.theme-btn:hover {
    background: var(--accent-glow);
    box-shadow: var(--shadow-accent);
}

/* Floating theme toggle for pages without navbar */
.theme-btn-float {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--accent-border);
    background: var(--bg-secondary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all var(--transition);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.theme-btn-float:hover {
    background: var(--accent-glow);
    transform: scale(1.1);
}

/* ===== MOBILE HAMBURGER ===== */
.mobile-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 6px;
    border: none;
    background: none;
}

.mobile-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

/* ===== MOBILE DRAWER ===== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    padding: 20px;
    transition: right var(--transition);
    overflow-y: auto;
}

.drawer-overlay.open .drawer-panel {
    right: 0;
}

.drawer-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-input);
    color: var(--text-primary);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.drawer-header h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.drawer-header p {
    font-size: 12px;
    color: var(--text-muted);
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-links a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}

.drawer-links a:hover,
.drawer-links a.active {
    background: var(--accent-glow);
    color: var(--accent);
    opacity: 1;
}

.drawer-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ===== FLASH MESSAGES ===== */
.flash-messages {
    position: fixed;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    width: 90%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flash {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    animation: slideDown 0.3s ease;
}

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

.flash-success {
    background: rgba(76,175,80,0.15);
    border-color: rgba(76,175,80,0.3);
    color: var(--success);
}

.flash-error {
    background: rgba(239,83,80,0.15);
    border-color: rgba(239,83,80,0.3);
    color: var(--danger);
}

.flash-warning {
    background: rgba(255,183,77,0.15);
    border-color: rgba(255,183,77,0.3);
    color: var(--warning);
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding-top: 66px;
    padding-bottom: 0;
}

.main-content.no-navbar {
    padding-top: 10px;
}

/* ===== TEMPLE HEADER ===== */
.temple-header {
    text-align: center;
    padding: 12px 16px 16px;
}

.temple-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 12px;
    animation: logo-glow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--accent));
}

@keyframes logo-glow {
    0%, 100% {
        filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 12px transparent);
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 14px var(--accent)) drop-shadow(0 0 28px var(--accent-glow));
        transform: scale(1.04);
    }
}


.temple-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.temple-header h1.welcome-heading {
    font-size: 21px;
    color: var(--accent);
    font-weight: 700;
}

.temple-header h1 span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    margin-top: 4px;
}

.temple-header h1.welcome-heading span {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    margin-top: 0;
}


.founder {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    font-style: normal;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
}

.container-wide {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.container-full {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== LANDING SUBTITLE ===== */
.landing-subtitle {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 6px;
}

.landing-desc {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.landing-card-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

/* ===== LANDING CARDS ===== */
.landing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.landing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.landing-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-border);
    box-shadow: var(--shadow-accent);
    transform: translateY(-2px);
    opacity: 1;
}

.landing-card .card-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.landing-card h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.landing-card p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===== FORM STYLES ===== */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 22px;
    margin-top: 16px;
    box-shadow: var(--shadow);
}

.form-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.form-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent-border);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b8299' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.form-chip {
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}

.form-chip:hover {
    border-color: var(--accent-border);
}

.form-chip.selected {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    background-size: 200% 100%;
    color: #0d1b2a;
    box-shadow: var(--shadow-accent);
    animation: shimmer 3s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0,220,240,0.3);
    opacity: 1;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-border);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent-glow);
    opacity: 1;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
}

.btn-ghost:hover {
    color: var(--accent);
    background: var(--accent-glow);
    opacity: 1;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-danger {
    background: rgba(239,83,80,0.15);
    border: 1px solid rgba(239,83,80,0.3);
    color: var(--danger);
}

.btn-danger:hover {
    background: rgba(239,83,80,0.25);
    opacity: 1;
}

.btn-success {
    background: rgba(76,175,80,0.15);
    border: 1px solid rgba(76,175,80,0.3);
    color: var(--success);
}

.btn-success:hover {
    background: rgba(76,175,80,0.25);
    opacity: 1;
}

/* ===== LOGIN CARD ===== */
.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 380px;
    margin: 24px auto;
}

.login-card h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.login-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.google-btn:hover {
    border-color: var(--accent-border);
    background: var(--bg-card-hover);
    opacity: 1;
}

.google-btn svg {
    width: 18px;
    height: 18px;
}

/* ===== COUPON ===== */
.coupon-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px 20px;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.coupon-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.coupon-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--badge-bg);
    color: var(--badge-text);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.qr-placeholder,
.qr-image {
    width: 180px;
    height: 180px;
    margin: 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
}

.qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.coupon-name {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin: 12px 0 4px;
}

.coupon-detail {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin: 4px 0;
}

.coupon-date {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

.coupon-family {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px;
    background: var(--bg-input);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== DASHBOARD ===== */
.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.dash-header h1 {
    font-size: 20px;
    font-weight: 700;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--badge-bg);
    color: var(--badge-text);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-accent);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.stat-trend {
    font-size: 11px;
    margin-top: 4px;
    font-weight: 500;
}

.stat-trend.up {
    color: var(--success);
}

.stat-trend.down {
    color: var(--danger);
}

/* ===== TABLES ===== */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.table-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.table-search {
    padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    outline: none;
    min-width: 180px;
    transition: border-color var(--transition);
}

.table-search:focus {
    border-color: var(--accent-border);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

tbody tr:nth-child(even) {
    background: var(--table-stripe);
}

tbody tr:hover {
    background: var(--bg-card-hover);
}

tbody td {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.active,
.status-badge.success {
    background: rgba(76,175,80,0.12);
    color: var(--success);
}

.status-badge.pending,
.status-badge.warning {
    background: rgba(255,183,77,0.12);
    color: var(--warning);
}

.status-badge.inactive,
.status-badge.danger {
    background: rgba(239,83,80,0.12);
    color: var(--danger);
}

.status-badge.info {
    background: rgba(66,165,245,0.12);
    color: var(--info);
}

.action-btn {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: 'Poppins', sans-serif;
}

.action-btn:hover {
    border-color: var(--accent-border);
    color: var(--accent);
    background: var(--accent-glow);
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
    overflow-x: auto;
}

.tab {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

/* ===== SCANNER ===== */
#qr-reader {
    border-radius: 16px;
    overflow: hidden;
    margin: 16px auto;
    max-width: 320px;
    border: 2px solid var(--border);
}

#qr-reader video {
    border-radius: 14px;
}

.scanner-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin: 12px 0;
}

.scan-result {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    margin-top: 16px;
    animation: slideDown 0.3s ease;
}

.scan-result h3 {
    font-size: 16px;
    margin: 8px 0;
}

.scan-result-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 12px;
    color: var(--success);
}

.scan-result-detail {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--border);
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
    padding-left: 12px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-primary);
}

.timeline-item h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.timeline-item p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
}

/* ===== TAGS ===== */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--badge-bg);
    color: var(--badge-text);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin: 2px;
}

/* ===== ASSIGN DROPDOWN ===== */
.assign-dropdown {
    position: relative;
    display: inline-block;
}

.assign-dropdown select {
    padding: 6px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition);
}

.assign-dropdown select:focus {
    border-color: var(--accent-border);
}

/* ===== CHART PLACEHOLDER ===== */
.chart-placeholder {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    min-height: 180px;
    margin-bottom: 20px;
}

.chart-bar {
    width: 24px;
    background: var(--accent-gradient);
    border-radius: 6px 6px 0 0;
    transition: height var(--transition);
    min-height: 20px;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 12px 16px 6px;
    margin-top: 10px;
    margin-bottom: 0;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: footer-glow 4s ease-in-out infinite;
}

@keyframes footer-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.footer-line1 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--accent), #e0a84c, #ff7eb3, var(--accent));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: footer-shimmer 6s ease infinite;
}

@keyframes footer-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer-line2 {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.footer-line2 span {
    color: var(--accent);
    font-weight: 500;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===== ADMIN FORM GRID ===== */
.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ===== ADMIN SIDEBAR LAYOUT ===== */
.admin-layout {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 50px);
}

.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 50px;
    height: calc(100vh - 50px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 0 16px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
    text-align: center;
}

.sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid var(--accent-border);
}

.sidebar-user {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.sidebar-nav {
    flex: 1;
    padding: 8px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--accent-glow);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}

.sidebar-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 8px;
}

.admin-main {
    flex: 1;
    min-width: 0;
    padding: 0 20px;
}

/* ===== NAV AVATAR ===== */
.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-border);
}

/* ===== DRAWER AVATAR & DIVIDER ===== */
.drawer-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--accent-border);
}

.drawer-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 16px;
}

.admin-edit-form {
    padding: 12px 0;
}

.interest-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-input);
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 13px;
}

@media (min-width: 769px) {
    .admin-form-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .mobile-hamburger {
        display: flex;
    }

    .mobile-only {
        display: flex;
    }

    .desktop-only {
        display: none !important;
    }

    .nav-user-name,
    .nav-logout {
        display: none;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-main {
        padding: 0 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-search {
        width: 100%;
    }

    .dash-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .container-wide,
    .container-full {
        padding: 0 12px;
    }
}

@media (max-width: 600px) {
    .landing-cards {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 20px;
    }

    .temple-logo {
        width: 70px;
        height: 70px;
    }

    .temple-header h1 {
        font-size: 18px;
    }

    .form-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .coupon-card {
        padding: 20px 16px;
    }

    .tabs {
        gap: 0;
    }

    .tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .table-header {
        flex-direction: column;
        gap: 8px;
    }

    .table-header h3 {
        font-size: 14px;
    }

    .dash-header h2 {
        font-size: 18px;
    }
}
