/* ============================================================
   DECODE ME INDIA — Event Management System
   Brand: DMI Purple #6B1F8A  ·  Gold #F5A623
   Style: Glassy · Luxury · Dark/Light
   Fonts: Playfair Display + DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,700;1,800&family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Brand Color Palette ──────────────────────────────────── */
:root {
    /* DMI Core Brand */
    --dmi-purple: #6B1F8A;
    --dmi-purple-dark: #4A1660;
    --dmi-purple-deep: #2D0E3F;
    --dmi-purple-light: #9B4DBF;
    --dmi-purple-pale: rgba(107,31,138,.08);
    --dmi-purple-glass: rgba(107,31,138,.15);
    --dmi-purple-glow: 0 0 36px rgba(107,31,138,.42);
    --dmi-gold: #F5A623;
    --dmi-gold-dark: #C87D0E;
    --dmi-gold-light: #FBBF24;
    --dmi-gold-pale: rgba(245,166,35,.08);
    --dmi-gold-glass: rgba(245,166,35,.15);
    --dmi-gold-glow: 0 0 36px rgba(245,166,35,.38);
    /* Gradient shortcuts */
    --dmi-grad: linear-gradient(135deg, #6B1F8A, #9B4DBF);
    --dmi-grad-gold: linear-gradient(135deg, #F5A623, #C87D0E);
    --dmi-grad-royal: linear-gradient(135deg, #4A1660, #6B1F8A, #F5A623);
    --dmi-grad-shine: linear-gradient(135deg, #6B1F8A 0%, #9B4DBF 50%, #F5A623 100%);
    /* Semantic aliases (used throughout) */
    --primary: var(--dmi-purple);
    --primary-dark: var(--dmi-purple-dark);
    --primary-light: var(--dmi-purple-light);
    --primary-pale: var(--dmi-purple-pale);
    --primary-glass: var(--dmi-purple-glass);
    --primary-glow: var(--dmi-purple-glow);
    --accent: var(--dmi-gold);
    --accent-dark: var(--dmi-gold-dark);
    --accent-light: var(--dmi-gold-light);
    --accent-pale: var(--dmi-gold-pale);
    --accent-glass: var(--dmi-gold-glass);
    /* Utility colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    /* ── Light Theme Surfaces ── */
    --bg-main: #f7f3fc;
    --bg-surface: #ffffff;
    --bg-surface2: #f3ecfb;
    --bg-glass: rgba(255,255,255,0.78);
    --bg-hover: rgba(107,31,138,.06);
    --border: rgba(107,31,138,.16);
    --border-light: rgba(107,31,138,.08);
    --text-primary: #1a0a25;
    --text-secondary: #3d1756;
    --text-muted: #9b7ab5;
    --shadow-sm: 0 2px 12px rgba(107,31,138,.10);
    --shadow-md: 0 8px 32px rgba(107,31,138,.16);
    --shadow-lg: 0 24px 64px rgba(107,31,138,.22);
    /* Background mesh */
    --overlay-mesh: radial-gradient(ellipse 55% 45% at 5% 15%, rgba(107,31,138,.07) 0%, transparent 60%), radial-gradient(ellipse 45% 55% at 95% 85%, rgba(107,31,138,.06) 0%, transparent 60%), radial-gradient(ellipse 35% 35% at 50% 50%, rgba(245,166,35,.04) 0%, transparent 70%);
    /* Layout */
    --navbar-height: 64px;
    --sidebar-width: 270px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    /* Type */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(.4,0,.2,1);
    --ease-bounce: cubic-bezier(.34,1.56,.64,1);
    --t: .25s var(--ease);
}

/* ── Dark Theme ─────────────────────────────────────────── */
[data-theme="dark"] {
    --bg-main: #0e0416;
    --bg-surface: #160722;
    --bg-surface2: #1e0b30;
    --bg-glass: rgba(22,7,34,.84);
    --bg-hover: rgba(107,31,138,.12);
    --border: rgba(155,77,191,.22);
    --border-light: rgba(107,31,138,.12);
    --text-primary: #ecdff5;
    --text-secondary: #b07fcc;
    --text-muted: #6b3d87;
    --shadow-sm: 0 2px 12px rgba(0,0,0,.55);
    --shadow-md: 0 8px 32px rgba(0,0,0,.60);
    --shadow-lg: 0 24px 64px rgba(0,0,0,.70);
    --overlay-mesh: radial-gradient(ellipse 55% 45% at 5% 15%, rgba(107,31,138,.16) 0%, transparent 60%), radial-gradient(ellipse 45% 55% at 95% 85%, rgba(107,31,138,.13) 0%, transparent 60%), radial-gradient(ellipse 35% 35% at 50% 50%, rgba(245,166,35,.06) 0%, transparent 70%);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: .9375rem;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background var(--t), color var(--t);
}

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background: var(--overlay-mesh);
        pointer-events: none;
        z-index: 0;
    }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.02em;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.25rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--t);
}

    a:hover {
        color: var(--primary-dark);
    }

code, pre {
    font-family: var(--font-mono);
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 999px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary);
    }

/* ── Bootstrap overrides ────────────────────────────────── */
.navbar {
    display: none !important;
}

.container {
    max-width: 100% !important;
    padding: 0 !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background: transparent;
}

.table-bordered, .table-bordered td, .table-bordered th {
    border: none;
}

.border-top {
    border-color: var(--border-light) !important;
}

/* ============================================================
   NAVBAR  — Purple glass with gold accents
   ============================================================ */
.em-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: white;
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.75rem;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: background var(--t), border-color var(--t);
}

[data-theme="dark"] .em-navbar {
    background: rgba(14,4,22,0.92);
}

/* Thin royal gradient stripe at very top */
.em-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--dmi-grad-shine);
    border-radius: 0;
}

.em-navbar__left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.em-navbar__right {
    display: flex;
    align-items: center;
    gap: .7rem;
}

/* ── Brand / Logo ── */
.em-navbar__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 6px;
    flex-shrink: 0;
}

.nav-logo-pill {
    display: flex;
    align-items: center;
    padding: 3px 10px 3px 3px;
    border-radius: 12px;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(107,31,138,.12);
    box-shadow: 0 2px 12px rgba(107,31,138,.10);
    backdrop-filter: blur(8px);
    transition: all .3s var(--ease);
}

.em-navbar__brand:hover .nav-logo-pill {
    background: rgba(255,255,255,0.9);
    border-color: rgba(107,31,138,.25);
    box-shadow: 0 4px 20px rgba(107,31,138,.18);
    transform: scale(1.03);
}

[data-theme="dark"] .nav-logo-pill {
    background: rgba(22,7,34,0.7);
    border-color: rgba(155,77,191,.25);
    box-shadow: 0 2px 14px rgba(107,31,138,.25);
}

[data-theme="dark"] .em-navbar__brand:hover .nav-logo-pill {
    background: rgba(30,10,46,0.9);
    border-color: rgba(245,166,35,.35);
    box-shadow: 0 4px 20px rgba(245,166,35,.18);
}

.nav-logo-hero {
    height: 46px;
    width: auto;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
    transition: transform .3s ease;
    border-radius: 8px;
}

[data-theme="dark"] .nav-logo-hero {
    mix-blend-mode: screen;
    filter: brightness(1.1) contrast(1.05);
}

.em-navbar__brand:hover .nav-logo-hero {
    transform: scale(1.05);
}

/* ── Nav links ── */
.em-nav-link {
    font-size: .83rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: .32rem .82rem;
    border-radius: 8px;
    transition: all var(--t);
    border: 1px solid transparent;
    white-space: nowrap;
    text-decoration: none;
    margin-left:20px;
}

    .em-nav-link:hover {
        color: var(--primary);
        background: var(--bg-hover);
        border-color: var(--border);
    }

    .em-nav-link.active-link {
        color: var(--primary);
        background: var(--primary-pale);
        border-color: var(--border);
    }

/* ── 3-dot sidebar toggle ── */
.em-sidebar-toggle {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all var(--t);
    flex-shrink: 0;
    display: none;
}

    .em-sidebar-toggle:hover {
        background: var(--bg-hover);
        border-color: var(--primary);
        transform: scale(1.06);
    }

    .em-sidebar-toggle .dot {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--primary);
        transition: all var(--t);
    }

    .em-sidebar-toggle.active .dot:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        border-radius: 1px;
        width: 14px;
        height: 2px;
    }

    .em-sidebar-toggle.active .dot:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .em-sidebar-toggle.active .dot:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        border-radius: 1px;
        width: 14px;
        height: 2px;
    }

/* ── Theme toggle ── */
.em-theme-toggle {
    width: 46px;
    height: 25px;
    background: var(--border);
    border-radius: 999px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background var(--t);
    flex-shrink: 0;
}

    .em-theme-toggle::after {
        content: '☀️';
        position: absolute;
        left: 2px;
        top: 50%;
        transform: translateY(-50%);
        width: 21px;
        height: 21px;
        background: var(--bg-surface);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        transition: left var(--t);
        line-height: 1;
    }

[data-theme="dark"] .em-theme-toggle {
    background: var(--primary);
}

    [data-theme="dark"] .em-theme-toggle::after {
        left: 23px;
        content: '🌙';
    }

/* ── User pill ── */
.em-user-pill {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .28rem .78rem;
    background: var(--bg-surface2);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .81rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

    .em-user-pill .avatar {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--dmi-grad);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .64rem;
        font-weight: 900;
        color: #fff;
    }

/* ── Logout button ── */
.btn-logout {
    padding: .32rem .88rem;
    font-size: .81rem;
    font-weight: 700;
    color: var(--danger);
    background: rgba(239,68,68,.07);
    border: 1px solid rgba(239,68,68,.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--t);
    white-space: nowrap;
    font-family: var(--font-body);
}

    .btn-logout:hover {
        background: var(--danger);
        color: #fff;
        border-color: var(--danger);
        box-shadow: 0 4px 16px rgba(239,68,68,.32);
        transform: translateY(-1px);
    }

/* ── Navbar Register/Login links styled as pills ── */
.em-navbar__right .em-nav-link:last-child {
    background: var(--dmi-grad);
    color: #fff !important;
    border: none;
    padding: .38rem 1rem;
    box-shadow: 0 4px 14px rgba(107,31,138,.35);
}

    .em-navbar__right .em-nav-link:last-child:hover {
        filter: brightness(1.1);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(107,31,138,.45);
        color: #fff !important;
    }

/* ============================================================
   SIDEBAR  — Deep purple glass
   ============================================================ */
.em-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14,4,22,.65);
    backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
}

    .em-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.em-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-glass);
    backdrop-filter: blur(32px) saturate(175%);
    -webkit-backdrop-filter: blur(32px) saturate(175%);
    border-right: 1px solid var(--border);
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform .38s var(--ease);
    display: flex;
    flex-direction: column;
    box-shadow: 14px 0 60px rgba(107,31,138,.18);
    overflow: hidden;
}

    .em-sidebar.open {
        transform: translateX(0);
    }

    /* top gradient accent */
    .em-sidebar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--dmi-grad-shine);
        z-index: 2;
    }

    /* decorative glow bottom-right */
    .em-sidebar::after {
        content: '';
        position: absolute;
        bottom: -30px;
        right: -40px;
        width: 220px;
        height: 220px;
        background: radial-gradient(circle, rgba(107,31,138,.12) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

.em-sidebar__header {
    padding: 1.45rem 1.2rem .9rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: .78rem;
}

.em-sidebar__logo {
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    border-radius: 8px;
}

[data-theme="dark"] .nav-logo-img {
    mix-blend-mode: screen;
    filter: brightness(1.1);
}

.em-sidebar__title {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.02em;
}

.em-sidebar__close {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: .9rem;
    transition: all var(--t);
    flex-shrink: 0;
}

    .em-sidebar__close:hover {
        background: rgba(239,68,68,.08);
        color: var(--danger);
        border-color: var(--danger);
    }

.em-sidebar__banner {
    margin: .6rem .75rem .55rem;
    border-radius: 13px;
    overflow: hidden;
    position: relative;
    height: 88px;
    flex-shrink: 0;
}

    .em-sidebar__banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(.6) saturate(.8);
        display: block;
    }

    .em-sidebar__banner::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(107,31,138,.55) 0%, rgba(14,4,22,.65) 100%);
    }

.em-sidebar__banner-text {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 .9rem;
    font-family: var(--font-display);
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

    .em-sidebar__banner-text strong {
        font-size: 1rem;
        font-style: italic;
        display: block;
        margin-bottom: 1px;
    }

    .em-sidebar__banner-text span {
        font-size: .68rem;
        opacity: .8;
        font-family: var(--font-body);
        font-weight: 500;
    }

.em-sidebar__nav {
    flex: 1;
    padding: .5rem .75rem;
    overflow-y: auto;
}

.em-sidebar__section-label {
    font-size: .62rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--text-muted);
    padding: .6rem .5rem .3rem;
    margin-top: .3rem;
    font-family: var(--font-display);
}

.em-sidebar__item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .62rem .75rem;
    border-radius: 11px;
    color: var(--text-secondary);
    font-size: .855rem;
    font-weight: 500;
    transition: all var(--t);
    margin-bottom: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

    .em-sidebar__item:hover {
        background: var(--bg-hover);
        color: var(--primary);
        border-color: var(--border);
        transform: translateX(4px);
    }

    .em-sidebar__item.active {
        background: var(--primary-glass);
        color: var(--primary);
        border-color: var(--border);
        font-weight: 700;
    }

.em-sidebar__item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-surface2);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
    transition: all var(--t);
}

.em-sidebar__item:hover .em-sidebar__item-icon,
.em-sidebar__item.active .em-sidebar__item-icon {
    background: var(--primary-glass);
    border-color: var(--border);
}

.em-sidebar__badge {
    margin-left: auto;
    background: var(--dmi-grad);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: var(--font-mono);
}

.em-sidebar__footer {
    padding: .85rem .75rem;
    border-top: 1px solid var(--border-light);
}

.em-sidebar__user-card {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem;
    background: var(--bg-surface2);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.em-sidebar__user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--dmi-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    box-shadow: var(--primary-glow);
}

.em-sidebar__user-name {
    font-size: .82rem;
    font-weight: 800;
    color: var(--text-primary);
}

.em-sidebar__user-role {
    font-size: .68rem;
    color: var(--text-muted);
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.em-page-wrapper {
    padding-top: var(--navbar-height);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.em-main-content {
    width: 100%;
}

.em-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.75rem;
}

.em-inner-page {
    padding: 2.25rem 1.75rem 5rem;
    max-width: 1200px;
    margin-top: 20px;
}

.em-inner-page--auth {
    padding: 0;
    max-width: 100%;
    margin-top: 20px;
}

/* ============================================================
   PAGE HEADER BANNER
   ============================================================ */
.em-page-header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.65rem 1.9rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    animation: fadeSlideIn .45s var(--ease) both;
    margin-top: 40px;
}

    .em-page-header::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--dmi-grad-shine);
        border-radius: 4px 0 0 4px;
    }

    .em-page-header::after {
        content: '';
        position: absolute;
        right: -20px;
        top: -20px;
        width: 180px;
        height: 180px;
        background: radial-gradient(circle, var(--primary-glass) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

.em-page-header__title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.03em;
}

.em-page-header__subtitle {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 3px;
    font-family: var(--font-body);
}

/* ============================================================
   CARDS  — glass purple tint
   ============================================================ */
.em-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--t);
    position: relative;
    overflow: hidden;
    animation: fadeSlideIn .45s var(--ease) both;
}

    .em-card:hover {
        box-shadow: var(--shadow-md);
        border-color: rgba(107,31,138,.30);
        transform: translateY(-2px);
    }

    /* gold top accent on hover */
    .em-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--dmi-grad-shine);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .35s var(--ease);
        border-radius: 2px 2px 0 0;
    }

    .em-card:hover::after {
        transform: scaleX(1);
    }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .875rem;
    transition: all var(--t);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-body);
    cursor: pointer;
    text-decoration: none;
}

    .btn:hover {
        text-decoration: none;
    }

.btn-primary {
    background: var(--dmi-grad);
    color: #fff;
    border: none;
    box-shadow: 0 4px 18px rgba(107,31,138,.40);
}

    .btn-primary:hover {
        filter: brightness(1.1);
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(107,31,138,.55);
        color: #fff;
    }

.btn-secondary {
    background: var(--bg-surface2);
    color: var(--text-secondary);
    border-color: var(--border);
}

    .btn-secondary:hover {
        background: var(--bg-hover);
        color: var(--primary);
        border-color: var(--primary);
        transform: translateY(-1px);
    }

.btn-success {
    background: var(--success);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(16,185,129,.3);
}

    .btn-success:hover {
        box-shadow: 0 6px 22px rgba(16,185,129,.48);
        transform: translateY(-1px);
        color: #fff;
    }

.btn-warning {
    background: var(--dmi-gold);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(245,166,35,.30);
}

    .btn-warning:hover {
        filter: brightness(1.1);
        box-shadow: 0 6px 22px rgba(245,166,35,.48);
        transform: translateY(-1px);
        color: #fff;
    }

.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(239,68,68,.3);
}

    .btn-danger:hover {
        box-shadow: 0 6px 22px rgba(239,68,68,.48);
        transform: translateY(-1px);
        color: #fff;
    }

.btn-info {
    background: var(--info);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(6,182,212,.3);
}

    .btn-info:hover {
        box-shadow: 0 6px 22px rgba(6,182,212,.48);
        transform: translateY(-1px);
        color: #fff;
    }

.btn-outline-danger {
    color: var(--danger);
    border-color: rgba(239,68,68,.3);
    background: rgba(239,68,68,.05);
}

    .btn-outline-danger:hover {
        background: var(--danger);
        color: #fff;
    }

.btn-sm {
    padding: .3rem .72rem;
    font-size: .78rem;
    border-radius: 7px;
}

.w-100 {
    width: 100%;
    justify-content: center;
}

.mb-2 {
    margin-bottom: .5rem;
}

/* ============================================================
   TABLES  — purple header
   ============================================================ */
.em-table-wrapper {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeSlideIn .45s var(--ease) both;
    margin-left:10px;
    margin-right:10px;
    margin-bottom:10px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
    margin-bottom: 0;
    font-family: var(--font-body);
}

    .table thead th {
        background: var(--primary-glass);
        color: var(--primary-dark);
        font-size: .7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .09em;
        padding: .95rem 1.1rem;
        border-bottom: 1px solid var(--border);
        white-space: nowrap;
        font-family: var(--font-display);
    }

[data-theme="dark"] .table thead th {
    background: rgba(107,31,138,.15);
    color: var(--primary-light);
}

.table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background var(--t);
    animation: fadeSlideIn .4s var(--ease) both;
}

    .table tbody tr:last-child {
        border-bottom: none;
    }

    .table tbody tr:hover {
        background: var(--bg-hover);
    }

.table tbody td {
    padding: .92rem 1.1rem;
    color: var(--text-secondary);
    vertical-align: middle;
}

/* Row stagger */
.table tbody tr:nth-child(1) {
    animation-delay: .04s
}

.table tbody tr:nth-child(2) {
    animation-delay: .08s
}

.table tbody tr:nth-child(3) {
    animation-delay: .12s
}

.table tbody tr:nth-child(4) {
    animation-delay: .16s
}

.table tbody tr:nth-child(5) {
    animation-delay: .20s
}

.table tbody tr:nth-child(6) {
    animation-delay: .24s
}

.table tbody tr:nth-child(7) {
    animation-delay: .28s
}

.table tbody tr:nth-child(8) {
    animation-delay: .32s
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .24rem .72rem;
    border-radius: 999px;
    font-size: .71rem;
    font-weight: 800;
    letter-spacing: .04em;
    font-family: var(--font-mono);
}

    .status-badge::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        animation: blink 2.2s ease-in-out infinite;
    }

.status-paid {
    background: rgba(16,185,129,.1);
    color: var(--success);
}

    .status-paid::before {
        background: var(--success);
    }

.status-pending {
    background: rgba(245,166,35,.1);
    color: var(--dmi-gold-dark);
}

    .status-pending::before {
        background: var(--dmi-gold);
    }

.status-refunded {
    background: rgba(107,31,138,.1);
    color: var(--primary);
}

    .status-refunded::before {
        background: var(--primary);
    }

@keyframes blink {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

/* ============================================================
   FORMS
   ============================================================ */
.em-form-card {
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 740px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    animation: fadeSlideIn .5s var(--ease-bounce) both;
}

    .em-form-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--dmi-grad-shine);
    }

    .em-form-card::after {
        content: '';
        position: absolute;
        bottom: -60px;
        right: -60px;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, var(--primary-glass) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

.form-label {
    font-size: .76rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: .01em;
    margin-bottom: .42rem;
    font-family: var(--font-body);
    display: block;
}

.form-control, .form-select {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: .9rem;
    padding: .66rem .95rem;
    transition: all var(--t);
    font-family: var(--font-body);
    width: 100%;
}

    .form-control:focus, .form-select:focus {
        background: var(--bg-surface);
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(107,31,138,.16);
        outline: none;
        color: var(--text-primary);
    }

    .form-control::placeholder {
        color: var(--text-muted);
    }

textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

.form-check-input {
    width: 1.1em;
    height: 1.1em;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--bg-surface2);
    transition: all var(--t);
    cursor: pointer;
}

    .form-check-input:checked {
        background-color: var(--primary);
        border-color: var(--primary);
    }

.form-check-label {
    font-size: .875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.em-form-section-label {
    font-family: var(--font-display);
    font-size: .69rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary);
    margin-bottom: .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .em-form-section-label::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

/* ============================================================
   LOGIN / REGISTER
   ============================================================ */
.em-login-wrapper {
    min-height: calc(100vh - var(--navbar-height) - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.em-login-card {
    background: var(--bg-glass);
    backdrop-filter: blur(28px) saturate(175%);
    -webkit-backdrop-filter: blur(28px) saturate(175%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.8rem 3rem;
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: scaleIn .55s var(--ease-bounce);
}

    .em-login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--dmi-grad-shine);
    }

    .em-login-card::after {
        content: '';
        position: absolute;
        bottom: -70px;
        right: -70px;
        width: 220px;
        height: 220px;
        background: radial-gradient(circle, rgba(107,31,138,.1) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

.em-login-icon {
    width: 58px;
    height: 58px;
    background: var(--dmi-grad);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.3rem;
    box-shadow: var(--primary-glow);
}

.em-login-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -.03em;
    margin-bottom: .25rem;
}

.em-login-subtitle {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 1.85rem;
}

/* ============================================================
   STAT CARDS  — gold accent
   ============================================================ */
.em-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.em-stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--t);
    position: relative;
    overflow: hidden;
}

    .em-stat-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
        border-color: rgba(107,31,138,.30);
    }

    .em-stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--dmi-grad-gold);
        border-radius: 3px 3px 0 0;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .35s var(--ease);
    }

    .em-stat-card:hover::before {
        transform: scaleX(1);
    }

    .em-stat-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: var(--primary-glass);
        transform: translate(20px, 20px);
        pointer-events: none;
    }

.em-stat-label {
    font-size: .69rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-muted);
    margin-bottom: .5rem;
    font-family: var(--font-display);
}

.em-stat-value {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -.04em;
    line-height: 1;
}

.em-stat-icon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.4rem;
    opacity: .55;
}

.em-mini-stat {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .9rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--t);
}

    .em-mini-stat:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.em-mini-stat__value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -.04em;
    line-height: 1;
}

.em-mini-stat__label {
    font-size: .67rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-muted);
    margin-top: .25rem;
    font-family: var(--font-display);
}

/* ============================================================
   DETAIL TILES
   ============================================================ */
.em-detail-tile {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .88rem;
    background: var(--bg-surface2);
    border: 1px solid var(--border-light);
    border-radius: 11px;
    transition: all var(--t);
}

    .em-detail-tile:hover {
        border-color: var(--border);
        background: var(--bg-hover);
    }

.em-detail-tile__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.em-detail-tile__label {
    font-size: .66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-muted);
    font-family: var(--font-display);
    margin-bottom: .2rem;
}

.em-detail-tile__value {
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

/* ============================================================
   AVATARS
   ============================================================ */
.em-avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}

.em-avatar--teal {
    background: var(--dmi-grad);
    box-shadow: 0 3px 12px rgba(107,31,138,.35);
}

.em-avatar--purple {
    background: var(--dmi-grad);
    box-shadow: 0 3px 12px rgba(107,31,138,.35);
}

/* ============================================================
   FOOTER
   ============================================================ */
.em-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--border-light);
    font-size: .78rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

    .em-footer span {
        color: var(--primary);
        font-weight: 800;
        font-family: var(--font-display);
        font-style: italic;
    }

/* ============================================================
   DROPDOWN MENU  — purple glass
   ============================================================ */
.em-nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.em-nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: .45rem .65rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: .86rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: background .18s, color .18s;
    white-space: nowrap;
}

    .em-nav-dropdown__trigger:hover,
    .em-nav-dropdown__trigger.is-active {
        background: var(--bg-hover);
        color: var(--primary);
    }

.em-dropdown-chevron {
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
    opacity: .6;
}

.em-nav-dropdown__trigger.is-active .em-dropdown-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.em-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 280px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(107,31,138,.16), 0 4px 16px rgba(0,0,0,.06);
    padding: .6rem .5rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-8px) scale(.97);
    pointer-events: none;
    transition: opacity .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1);
    transform-origin: top left;
}

[data-theme="dark"] .em-dropdown-menu {
    background: rgba(22,7,34,.97);
    border-color: var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(107,31,138,.12);
}

.em-dropdown-menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.em-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 22px;
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--border);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
    border-radius: 2px;
}

[data-theme="dark"] .em-dropdown-menu::before {
    background: rgba(22,7,34,.97);
}

.em-dropdown-header {
    font-family: var(--font-display);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: .3rem .75rem .5rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: .35rem;
}

.em-dropdown-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .75rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background .18s, transform .18s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .em-dropdown-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        border-radius: 0 3px 3px 0;
        background: var(--primary);
        opacity: 0;
        transition: opacity .18s;
    }

    .em-dropdown-item:hover {
        transform: translateX(3px);
        background: var(--bg-hover);
    }

        .em-dropdown-item:hover::before {
            opacity: 1;
        }

.em-dropdown-item--workshop:hover {
    background: rgba(245,158,11,.08);
}

.em-dropdown-item--workshop::before {
    background: #f59e0b;
}

.em-dropdown-item--seminar:hover {
    background: var(--primary-pale);
}

.em-dropdown-item--seminar::before {
    background: var(--primary);
}

.em-dropdown-item--webinar:hover {
    background: rgba(99,102,241,.08);
}

.em-dropdown-item--webinar::before {
    background: #6366f1;
}

.em-dropdown-item--event:hover {
    background: rgba(16,185,129,.08);
}

.em-dropdown-item--event::before {
    background: #10b981;
}

.em-dropdown-item__icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform .2s;
}

.em-dropdown-item:hover .em-dropdown-item__icon {
    transform: scale(1.12);
}

.em-dropdown-item--workshop .em-dropdown-item__icon {
    background: rgba(245,158,11,.12);
}

.em-dropdown-item--seminar .em-dropdown-item__icon {
    background: var(--primary-pale);
}

.em-dropdown-item--webinar .em-dropdown-item__icon {
    background: rgba(99,102,241,.12);
}

.em-dropdown-item--event .em-dropdown-item__icon {
    background: rgba(16,185,129,.12);
}

.em-dropdown-item__title {
    font-family: var(--font-display);
    font-size: .86rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.em-dropdown-item__sub {
    font-family: var(--font-body);
    font-size: .72rem;
    color: var(--text-muted);
    margin-top: .1rem;
    line-height: 1.3;
}

.em-dropdown-item__arrow {
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0;
    color: var(--text-muted);
    transform: translateX(-4px);
    transition: opacity .18s, transform .18s;
}

.em-dropdown-item:hover .em-dropdown-item__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.em-divider {
    height: 1px;
    background: var(--border-light);
    margin: 1.5rem 0;
}

.alert {
    border-radius: var(--radius-sm);
    font-size: .875rem;
    padding: .75rem 1rem;
    border: 1px solid;
}

.alert-danger {
    background: rgba(239,68,68,.07);
    border-color: rgba(239,68,68,.2);
    color: var(--danger);
}

.alert-success {
    background: rgba(16,185,129,.07);
    border-color: rgba(16,185,129,.2);
    color: var(--success);
}

.text-danger {
    color: var(--danger) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--success) !important;
}

.em-access-denied {
    text-align: center;
    padding: 4rem 1rem;
}

.em-access-denied-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeSlideIn .5s var(--ease-bounce);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(.93)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes pulse-brand {
    0%,100% {
        box-shadow: 0 0 12px rgba(107,31,138,.42);
    }

    50% {
        box-shadow: 0 0 30px rgba(107,31,138,.78), 0 0 50px rgba(107,31,138,.25);
    }
}

.em-card:nth-child(1) {
    animation-delay: .04s
}

.em-card:nth-child(2) {
    animation-delay: .09s
}

.em-card:nth-child(3) {
    animation-delay: .14s
}

.em-card:nth-child(4) {
    animation-delay: .19s
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --navbar-height: 56px;
    }

    .em-navbar {
        padding: 0 1rem;
    }

    .em-sidebar-toggle {
        display: flex;
    }

    .em-user-pill, .em-nav-link {
        display: none;
    }

    .em-container {
        padding: 0 1.1rem;
    }

    .em-inner-page {
        padding: 1rem .85rem 3rem;
    }

    .em-page-header {
        padding: 1.1rem 1.3rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .em-page-header__title {
        font-size: 1.15rem;
    }

    .em-form-card {
        padding: 1.6rem 1.25rem;
    }

    .em-login-card {
        padding: 1.75rem 1.5rem;
        max-width: 100%;
    }

    .em-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .em-stat-value {
        font-size: 1.45rem;
    }

    .table {
        font-size: .82rem;
    }

        .table thead th, .table tbody td {
            padding: .72rem .8rem;
        }

    .btn-sm {
        padding: .25rem .55rem;
        font-size: .74rem;
    }
}

@media (max-width: 480px) {
    .em-stats-grid {
        grid-template-columns: 1fr;
    }

    .em-table-wrapper {
        overflow-x: auto;
    }

    .table {
        min-width: 540px;
    }
}

/* ============================================================
   HOME PAGE — override teal→purple/gold
   ============================================================ */
/* These rules patch the hp- classes in Index.cshtml to match brand */
:root {
    --hp-teal: var(--dmi-purple);
    --hp-teal-light: #b07fcc;
    --hp-teal-dark: var(--dmi-purple-dark);
    --hp-accent: var(--dmi-gold);
}

/* Hero badge */
.hp-hero__badge {
    background: rgba(107,31,138,.15) !important;
    border: 1px solid rgba(107,31,138,.3) !important;
    color: #b07fcc !important;
}

/* Stat numbers */
.hp-hero__stat-num {
    color: #d4a8f0 !important;
}

/* Primary buttons */
.hp-btn--primary {
    background: var(--dmi-grad) !important;
    box-shadow: 0 8px 28px rgba(107,31,138,.4) !important;
}

    .hp-btn--primary:hover {
        background: var(--dmi-grad) !important;
        filter: brightness(1.12);
        box-shadow: 0 12px 36px rgba(107,31,138,.55) !important;
        color: #fff !important;
    }

/* Section labels */
.hp-label {
    color: var(--dmi-purple) !important;
}

    .hp-label::before {
        background: var(--dmi-purple) !important;
    }

/* Thin divider line in events header */
[style*="background: var(--ev-primary"] {
    background: var(--dmi-gold) !important;
}

/* Module cards */
.hp-module-card--1 {
    background: var(--dmi-grad) !important;
}

.hp-module-card--2 {
    background: linear-gradient(135deg, #4A1660, #6B1F8A) !important;
}

.hp-module-card--3 {
    background: var(--dmi-grad-gold) !important;
}

.hp-module-card--4 {
    background: linear-gradient(135deg, #4A1660, #9B4DBF) !important;
}

/* Numbers band */
.hp-numbers-band {
    background: var(--dmi-purple-deep) !important;
}

.hp-num-item__val {
    color: #d4a8f0 !important;
}

/* Final CTA */
.hp-final-cta {
    background: var(--dmi-purple-deep) !important;
}

em[style*="color:var(--hp-teal)"] {
    color: var(--dmi-gold) !important;
}

/* Event cards seminar accent override → purple */
:root {
    --c-seminar: var(--dmi-purple);
    --c-seminar-dk: var(--dmi-purple-dark);
    --c-seminar-tint: var(--dmi-purple-pale);
    --c-seminar-border: rgba(107,31,138,.24);
    --c-seminar-grad: var(--dmi-grad);
}

/* ============================================================
   EVENT TYPES PAGE — purple/gold palette
   ============================================================ */
:root {
    --et-accent: var(--dmi-purple);
    --et-tint: var(--dmi-purple-pale);
    --et-border: rgba(107,31,138,.18);
    --et-grad: var(--dmi-grad);
}
