/* ========================================================================
   EvensPro Admin · Design System
   Brand: #F59E0B (orange) + #0B1437 (navy)
   ======================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #F7F8FC;
    color: #1F2937;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ─── Layout shell ────────────────────────────────────────────── */
.ep-app {
    display: grid;
    grid-template-columns: 248px 1fr;
    min-height: 100vh;
    background: #0B1437;
}
.ep-app.sidebar-collapsed { grid-template-columns: 72px 1fr; }

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════ */
.ep-side {
    background: linear-gradient(180deg, #0B1437 0%, #060D27 100%);
    padding: 18px 0 24px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(245, 158, 11, 0.08);
}
.ep-side::-webkit-scrollbar { width: 6px; }
.ep-side::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }

.ep-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 18px 18px;
}
.ep-brand img { display: block; max-width: 100%; height: auto; }

/* ─── Active event chip ─── */
.ep-event {
    margin: 4px 14px 0;
    background: linear-gradient(135deg, rgba(245,158,11,0.18) 0%, rgba(245,158,11,0.06) 100%);
    border: 1px solid rgba(245,158,11,0.35);
    border-radius: 10px;
    padding: 12px 13px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.ep-event:hover {
    background: linear-gradient(135deg, rgba(245,158,11,0.25) 0%, rgba(245,158,11,0.08) 100%);
    border-color: rgba(245,158,11,0.55);
}
.ep-event-empty { opacity: 0.85; }

.ep-event-tag {
    font-size: 9px;
    color: #F59E0B;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ep-event-dot {
    width: 6px; height: 6px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
    margin-right: 5px;
    display: inline-block;
    vertical-align: 1px;
}
.ep-event-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-top: 4px;
    line-height: 1.3;
}
.ep-event-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ep-event-meta i { font-size: 12px; }
.ep-chev { transition: transform 0.25s; color: #F59E0B; font-size: 14px; }
.ep-chev.open { transform: rotate(180deg); }

/* ─── Event dropdown menu ─── */
.ep-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #111C32;
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 10px;
    z-index: 30;
    max-height: 360px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.ep-menu.open { display: block; }
.ep-menu-search {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    background: #111C32;
    z-index: 1;
}
.ep-menu-search input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 12px;
    outline: none;
    color: #fff;
}
.ep-menu-search input::placeholder { color: rgba(255,255,255,0.4); }
.ep-menu-search input:focus {
    border-color: #F59E0B;
    background: rgba(245,158,11,0.05);
}
.ep-opt {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.12s;
}
.ep-opt:last-child { border-bottom: none; }
.ep-opt:hover { background: rgba(245,158,11,0.08); }
.ep-opt.selected {
    background: rgba(245,158,11,0.15);
    border-left: 2px solid #F59E0B;
    padding-left: 10px;
}
.ep-opt-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ep-opt-name { font-size: 13px; color: #fff; font-weight: 500; }
.ep-opt-meta { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.ep-badge {
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.ep-create {
    padding: 11px 12px;
    color: #F59E0B;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.ep-create:hover { background: rgba(245,158,11,0.08); }

/* ─── Nav ─── */
.ep-nav-label {
    padding: 16px 20px 7px;
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
}
.ep-nav { font-size: 13px; }
.ep-nav-item {
    padding: 9px 20px;
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    transition: all 0.15s;
    color: rgba(255,255,255,0.65);
    position: relative;
    text-decoration: none;
}
.ep-nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.03);
}
.ep-nav-item.active {
    color: #F59E0B;
    background: linear-gradient(90deg, rgba(245,158,11,0.18) 0%, transparent 100%);
}
.ep-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: #F59E0B;
    border-radius: 0 3px 3px 0;
}
.ep-nav-item i { font-size: 17px; width: 17px; }
.ep-nav-item .ep-chev-mini {
    margin-left: auto;
    font-size: 13px;
    opacity: 0.4;
    transition: transform 0.2s;
}
.ep-nav-item.expanded .ep-chev-mini { transform: rotate(90deg); opacity: 0.8; }

.ep-nav-sub { font-size: 12px; display: none; padding: 4px 0; }
.ep-nav-item.expanded + .ep-nav-sub { display: block; }
.ep-nav-sub-item {
    padding: 6px 20px 6px 48px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: color 0.12s;
    display: block;
    text-decoration: none;
}
.ep-nav-sub-item:hover { color: #F59E0B; }

.ep-dev .pulse {
    width: 6px; height: 6px;
    background: #F59E0B;
    border-radius: 50%;
    margin-left: auto;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245,158,11,0.5); }
    70% { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
    100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

/* ═══════════════════════════════════════════════════════════════
   TOPBAR
   ═══════════════════════════════════════════════════════════════ */
.ep-main { background: #F7F8FC; min-height: 100vh; }

.ep-top {
    background: #fff;
    border-bottom: 1px solid #E8EAF0;
    padding: 14px 26px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 20;
}
.ep-search {
    flex: 1;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F4F6FA;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 9px 14px;
    transition: all 0.15s;
}
.ep-search:focus-within {
    background: #fff;
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}
.ep-search i { font-size: 16px; color: #9CA3AF; }
.ep-search input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 13px;
    color: #0B1437;
}
.ep-search input::placeholder { color: #9CA3AF; }
.ep-kbd {
    font-size: 10px;
    color: #9CA3AF;
    background: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #E8EAF0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ep-publish {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ep-publish:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16,185,129,0.4); }
.ep-publish:active { transform: translateY(0); }

.ep-iconbtn {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.12s;
    position: relative;
    background: transparent;
    border: none;
}
.ep-iconbtn:hover { background: #F4F6FA; color: #0B1437; }
.ep-iconbtn i { font-size: 19px; }

.ep-dot {
    position: absolute;
    top: 7px; right: 8px;
    min-width: 16px; height: 16px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    border-radius: 8px;
    border: 2px solid #fff;
    color: #fff;
    font-size: 9px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.ep-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 5px;
    background: #F4F6FA;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.12s;
    position: relative;
    outline: none;
}
.ep-user:hover { background: #E8EAF0; }
.ep-avatar {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
}
.ep-username { font-size: 13px; color: #0B1437; font-weight: 500; }
.ep-user i { font-size: 13px; color: #9CA3AF; }

.ep-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #E8EAF0;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(11,20,55,0.12);
    padding: 6px;
    display: none;
    z-index: 30;
}
.ep-user.open .ep-user-dropdown { display: block; }
.ep-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    color: #1F2937;
    cursor: pointer;
    text-align: left;
}
.ep-user-dropdown-item:hover { background: #F4F6FA; }
.ep-user-dropdown-item i { font-size: 16px; color: #6B7280; }
.ep-user-dropdown-sep { height: 1px; background: #F3F4F6; margin: 6px 0; }
.ep-user-dropdown-danger { color: #DC2626; }
.ep-user-dropdown-danger i { color: #DC2626; }
.ep-user-dropdown-danger:hover { background: #FEF2F2; }

/* ═══════════════════════════════════════════════════════════════
   CONTENT WRAPPER
   ═══════════════════════════════════════════════════════════════ */
.ep-content { padding: 24px 26px; }

.ep-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 22px;
}
.ep-page-head h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    color: #0B1437;
    letter-spacing: -0.3px;
}
.ep-page-head .sub {
    font-size: 13px;
    color: #6B7280;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ep-status-dot {
    width: 7px; height: 7px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
    display: inline-block;
}

.ep-banner {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ep-banner i { font-size: 18px; }
.ep-banner-info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.ep-banner-success { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }

/* ─── Buttons ─── */
.ep-btn {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}
.ep-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(245,158,11,0.4); }
.ep-btn-outline {
    background: #fff;
    color: #0B1437;
    border: 1px solid #E8EAF0;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.12s;
}
.ep-btn-outline:hover { border-color: #F59E0B; color: #F59E0B; }
.ep-btn-outline i { font-size: 14px; }

.ep-range {
    display: inline-flex;
    background: #fff;
    border: 1px solid #E8EAF0;
    border-radius: 10px;
    padding: 4px;
    font-size: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.ep-range button {
    background: transparent;
    border: none;
    padding: 6px 14px;
    border-radius: 7px;
    font-size: 12px;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.12s;
}
.ep-range button.active {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
.ep-range button:hover:not(.active) { color: #0B1437; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD: hero + KPIs + charts + table
   ═══════════════════════════════════════════════════════════════ */
.ep-hero {
    background: linear-gradient(135deg, #0B1437 0%, #1E2A52 100%);
    border-radius: 16px;
    padding: 24px 26px;
    color: #fff;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}
.ep-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(245,158,11,0.25) 0%, transparent 70%);
    pointer-events: none;
}
.ep-hero::after {
    content: '';
    position: absolute;
    bottom: -50px; left: 30%;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.ep-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    align-items: center;
}
.ep-hero-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
}
.ep-hero-val {
    font-size: 38px;
    font-weight: 500;
    color: #fff;
    margin-top: 6px;
    letter-spacing: -1px;
    line-height: 1;
}
.ep-hero-val span {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    margin-left: 4px;
}
.ep-hero-delta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    padding: 4px 10px;
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 6px;
    font-size: 12px;
    color: #34D399;
    font-weight: 500;
}
.ep-hero-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 14px;
}
.ep-hero-actions { display: flex; gap: 8px; margin-top: 18px; }
.ep-hero-btn {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245,158,11,0.4);
    transition: all 0.15s;
}
.ep-hero-btn:hover { transform: translateY(-1px); }
.ep-hero-btn-ghost {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 9px 16px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}
.ep-hero-btn-ghost:hover { background: rgba(255,255,255,0.12); }
.ep-hero-chart { position: relative; height: 120px; }

/* ─── KPI cards ─── */
.ep-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
.ep-kpi {
    background: #fff;
    border-radius: 14px;
    padding: 18px 18px 16px;
    border: 1px solid #EEF0F4;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}
.ep-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(11,20,55,0.08);
    border-color: rgba(245,158,11,0.3);
}
.ep-kpi-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}
.ep-kpi-ic {
    width: 40px; height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ep-kpi-ic i { font-size: 19px; }
.ep-kpi-ic.bg-amber  { background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: #D97706; }
.ep-kpi-ic.bg-blue   { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); color: #1D4ED8; }
.ep-kpi-ic.bg-green  { background: linear-gradient(135deg, #D1FAE5, #A7F3D0); color: #047857; }
.ep-kpi-ic.bg-pink   { background: linear-gradient(135deg, #FCE7F3, #FBCFE8); color: #BE185D; }

.ep-kpi-trend {
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.ep-kpi-trend.up { background: #ECFDF5; color: #047857; }
.ep-kpi-trend.down { background: #FEF2F2; color: #B91C1C; }
.ep-kpi-trend.flat { background: #F4F6FA; color: #6B7280; }

.ep-kpi-label { font-size: 12px; color: #6B7280; font-weight: 500; }
.ep-kpi-val {
    font-size: 26px;
    font-weight: 500;
    color: #0B1437;
    line-height: 1;
    margin-top: 4px;
    letter-spacing: -0.5px;
}
.ep-kpi-val span { font-size: 13px; color: #6B7280; margin-left: 4px; }
.ep-kpi-spark { margin-top: 12px; height: 26px; }

/* ─── Setup progress ribbon ─── */
.ep-setup {
    background: #fff;
    border-radius: 14px;
    padding: 16px 20px;
    border: 1px solid #EEF0F4;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.ep-setup-circle { width: 60px; height: 60px; flex-shrink: 0; position: relative; }
.ep-setup-circle svg { transform: rotate(-90deg); }
.ep-setup-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #0B1437;
}
.ep-setup-body { flex: 1; }
.ep-setup-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.ep-setup-title { font-size: 14px; font-weight: 500; color: #0B1437; }
.ep-setup-sub { font-size: 12px; color: #6B7280; }
.ep-setup-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.ep-step {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ep-step.done { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.ep-step.warn { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }
.ep-step.todo { background: #F4F6FA; color: #6B7280; border: 1px solid #E5E7EB; }

/* ─── Cards (generic) ─── */
.ep-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #EEF0F4;
}
.ep-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}
.ep-card-title { font-size: 15px; font-weight: 500; color: #0B1437; }
.ep-card-sub { font-size: 12px; color: #6B7280; margin-top: 3px; }

.ep-charts {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

/* ─── Tables ─── */
.ep-table-wrap {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #EEF0F4;
    overflow: hidden;
}
.ep-table-head {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #EEF0F4;
}
.ep-table-title { font-size: 15px; font-weight: 500; color: #0B1437; }
.ep-table-actions { display: flex; gap: 8px; }
.ep-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ep-table thead tr {
    background: #FAFBFD;
    color: #6B7280;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.6px;
}
.ep-table th { text-align: left; padding: 11px 14px; font-weight: 500; }
.ep-table th:first-child { padding-left: 20px; }
.ep-table th:last-child { padding-right: 20px; }
.ep-table tbody tr {
    border-top: 1px solid #F3F4F6;
    transition: background 0.1s;
}
.ep-table tbody tr:hover { background: #FFFBEB; }
.ep-table td { padding: 13px 14px; color: #0B1437; }
.ep-table td:first-child { padding-left: 20px; }
.ep-table td:last-child { padding-right: 20px; }
.ep-num { font-variant-numeric: tabular-nums; text-align: right; }

.ep-tag { padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 500; display: inline-block; }
.ep-tag-green { background: #ECFDF5; color: #047857; }
.ep-tag-amber { background: #FFFBEB; color: #B45309; }
.ep-tag-gray  { background: #F4F6FA; color: #6B7280; }
.ep-tag-blue  { background: #EFF6FF; color: #1E40AF; }
.ep-tag-red   { background: #FEF2F2; color: #B91C1C; }

.ep-mini-bar {
    display: inline-block;
    width: 70px; height: 6px;
    background: #F4F6FA;
    border-radius: 999px;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 8px;
}
.ep-mini-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #F59E0B, #D97706);
    border-radius: 999px;
}

/* ═══════════════════════════════════════════════════════════════
   MY EVENTS — card grid
   ═══════════════════════════════════════════════════════════════ */
.ep-events-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.ep-events-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.ep-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.ep-event-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #EEF0F4;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.ep-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(11,20,55,0.1);
    border-color: rgba(245,158,11,0.4);
}
.ep-event-banner {
    height: 110px;
    background: linear-gradient(135deg, #0B1437 0%, #1E2A52 100%);
    position: relative;
    background-size: cover;
    background-position: center;
}
.ep-event-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(11,20,55,0.6) 100%);
}
.ep-event-status {
    position: absolute;
    top: 10px; left: 10px;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ep-event-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ep-event-card-name { font-size: 14px; font-weight: 500; color: #0B1437; line-height: 1.35; }
.ep-event-card-date { font-size: 12px; color: #6B7280; display: flex; align-items: center; gap: 6px; }
.ep-event-card-bar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #6B7280;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #F3F4F6;
}
.ep-event-card-cta {
    margin-top: 10px;
    width: 100%;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    border: none;
    padding: 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════════ */
.ep-login-body {
    min-height: 100vh;
    background: #0B1437;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(245,158,11,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(245,158,11,0.08) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.ep-login-wrap {
    width: 100%;
    max-width: 880px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0,0,0,0.4);
}
@media (max-width: 720px) {
    .ep-login-wrap { grid-template-columns: 1fr; }
    .ep-login-art { display: none; }
}
.ep-login-art {
    background: linear-gradient(135deg, #0B1437 0%, #1E2A52 100%);
    padding: 40px 36px;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ep-login-art::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(245,158,11,0.3) 0%, transparent 70%);
}
.ep-login-art img { width: 170px; height: auto; position: relative; z-index: 1; }
.ep-login-art h2 {
    position: relative; z-index: 1;
    font-size: 26px;
    font-weight: 500;
    margin: 32px 0 8px;
    letter-spacing: -0.4px;
}
.ep-login-art p {
    position: relative; z-index: 1;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin: 0 0 28px;
}
.ep-login-features {
    position: relative; z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ep-login-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}
.ep-login-features li i {
    color: #F59E0B;
    font-size: 16px;
    background: rgba(245,158,11,0.15);
    border-radius: 50%;
    width: 26px; height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ep-login-art-foot {
    position: relative; z-index: 1;
    margin-top: auto;
    padding-top: 24px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}
.ep-login-art-foot span { color: #F59E0B; font-weight: 500; }

.ep-login-form {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ep-login-form h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 500;
    color: #0B1437;
    letter-spacing: -0.3px;
}
.ep-login-form .sub {
    color: #6B7280;
    font-size: 13px;
    margin-bottom: 26px;
}
.ep-form-group { margin-bottom: 16px; }
.ep-form-group label {
    display: block;
    font-size: 12px;
    color: #0B1437;
    font-weight: 500;
    margin-bottom: 6px;
}
.ep-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E8EAF0;
    background: #F9FAFB;
    border-radius: 9px;
    font-size: 13px;
    color: #0B1437;
    outline: none;
    transition: all 0.15s;
}
.ep-input:focus {
    border-color: #F59E0B;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}
.ep-form-row { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 22px; }
.ep-checkbox { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6B7280; }
.ep-checkbox input { accent-color: #F59E0B; }
.ep-form-row a { font-size: 12px; color: #F59E0B; font-weight: 500; }
.ep-form-row a:hover { color: #B45309; }

.ep-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 16px rgba(245,158,11,0.35);
    transition: all 0.15s;
}
.ep-login-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(245,158,11,0.45); }

.ep-login-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ep-validation-msg {
    color: #DC2626;
    font-size: 11px;
    margin-top: 4px;
    display: block;
}

/* ─── Toast ─── */
.ep-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, #0B1437, #1E2A52);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    border: 1px solid rgba(245,158,11,0.3);
}
.ep-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ep-toast i { color: #F59E0B; font-size: 16px; }

.ep-foot {
    text-align: center;
    font-size: 11px;
    color: #9CA3AF;
    padding: 24px 0 4px;
}
.ep-foot span { color: #F59E0B; font-weight: 500; }

/* ─── Responsive ─── */
@media (max-width: 1080px) {
    .ep-kpis { grid-template-columns: repeat(2, 1fr); }
    .ep-charts { grid-template-columns: 1fr; }
    .ep-hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .ep-app { grid-template-columns: 1fr; }
    .ep-side { display: none; }
    .ep-app.sidebar-open .ep-side {
        display: block;
        position: fixed;
        z-index: 100;
        width: 248px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SHARED · modals, forms, tables (Slice A+B+C foundation)
   ═══════════════════════════════════════════════════════════════ */

/* spinner */
.ep-spin { animation: ep-spin 0.9s linear infinite; display: inline-block; }
@keyframes ep-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* invalid input */
.ep-invalid {
    border-color: #DC2626 !important;
    background: #FEF2F2 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.08) !important;
}

/* form error banner */
.ep-form-error {
    display: none;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 14px;
    align-items: center;
    gap: 8px;
}

/* danger button */
.ep-btn-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
    transition: transform 0.15s;
}
.ep-btn-danger:hover { transform: translateY(-1px); }

/* secondary button */
.ep-btn-secondary {
    background: #0B1437;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}
.ep-btn-secondary:hover { background: #1E2A52; }

/* ─── Modal ──────────────────────────────────────────────── */
.ep-modal {
    position: fixed; inset: 0;
    background: rgba(11,20,55,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s;
}
.ep-modal.open { display: flex; opacity: 1; }
.ep-modal-card {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 24px 64px rgba(11,20,55,0.35);
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(10px);
    transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.ep-modal.open .ep-modal-card { transform: translateY(0); }
.ep-modal-card.lg { max-width: 720px; }
.ep-modal-card.xl { max-width: 920px; }
.ep-modal-card.xxl { max-width: 1200px; width: 96vw; }

.ep-modal-head {
    padding: 20px 22px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-bottom: 1px solid #F3F4F6;
}
.ep-modal-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ep-modal-icon i { font-size: 20px; }
.ep-modal-icon.warn { background: #FEF3C7; color: #B45309; }
.ep-modal-icon.danger { background: #FEE2E2; color: #B91C1C; }
.ep-modal-icon.info { background: #DBEAFE; color: #1D4ED8; }
.ep-modal-icon.brand { background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: #D97706; }
.ep-modal-title { font-size: 16px; font-weight: 500; color: #0B1437; }
.ep-modal-sub { font-size: 12px; color: #6B7280; margin-top: 3px; line-height: 1.5; }
.ep-modal-x {
    margin-left: auto;
    width: 32px; height: 32px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ep-modal-x:hover { background: #F4F6FA; color: #0B1437; }

.ep-modal-body {
    padding: 18px 22px;
    overflow-y: auto;
    flex: 1;
}
.ep-modal-foot {
    padding: 14px 22px;
    border-top: 1px solid #F3F4F6;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: #FAFBFD;
}

/* ─── Form layout ───────────────────────────────────────── */
.ep-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 640px) {
    .ep-row-2 { grid-template-columns: 1fr; }
}
.ep-form-group { margin-bottom: 14px; }
.ep-form-group label {
    display: block;
    font-size: 12px;
    color: #0B1437;
    font-weight: 500;
    margin-bottom: 6px;
}
.ep-form-group label .req { color: #DC2626; }
.ep-form-group .hint { font-size: 11px; color: #6B7280; margin-top: 4px; }
.ep-select, .ep-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E8EAF0;
    background: #F9FAFB;
    border-radius: 9px;
    font-size: 13px;
    color: #0B1437;
    outline: none;
    font-family: inherit;
    transition: all 0.15s;
}
.ep-textarea { min-height: 90px; resize: vertical; }
.ep-select:focus, .ep-textarea:focus {
    border-color: #F59E0B;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}

/* checkbox row */
.ep-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #0B1437;
    padding: 8px 0;
    cursor: pointer;
}
.ep-check-row input { accent-color: #F59E0B; }

/* ─── Language tabs (used on every multi-lingual form) ─── */
.ep-lang-tabs {
    display: flex;
    gap: 4px;
    background: #F4F6FA;
    padding: 4px;
    border-radius: 9px;
    margin-bottom: 14px;
}
.ep-lang-tab {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: #6B7280;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ep-lang-tab.active {
    background: #fff;
    color: #0B1437;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.ep-lang-tab .ep-lang-default-tag { font-size: 8px; }
.ep-lang-panel { display: none; }
.ep-lang-panel.active { display: block; }
.ep-lang-incomplete::after {
    content: '';
    width: 6px; height: 6px;
    background: #F59E0B;
    border-radius: 50%;
    margin-left: 4px;
    display: inline-block;
}

/* ─── Datalist style filter chip ─── */
.ep-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    align-items: center;
}

/* ─── Empty state ─── */
.ep-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6B7280;
}
.ep-empty i { font-size: 48px; color: #D1D5DB; margin-bottom: 14px; display: block; }
.ep-empty h3 { font-size: 16px; color: #0B1437; font-weight: 500; margin: 0 0 4px; }
.ep-empty p { font-size: 13px; color: #6B7280; margin: 0 0 18px; }

/* ─── Pagination ─── */
.ep-pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    align-items: center;
}
.ep-pager button, .ep-pager a {
    background: #fff;
    border: 1px solid #E8EAF0;
    color: #0B1437;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.12s;
}
.ep-pager .active, .ep-pager button.active, .ep-pager a.active {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    border-color: transparent;
}
.ep-pager button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Toolbar ─── */
.ep-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.ep-toolbar-left { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ep-toolbar-right { display: flex; gap: 8px; align-items: center; }

/* row actions */
.ep-row-actions { display: inline-flex; gap: 4px; }
.ep-row-action {
    width: 30px; height: 30px;
    border-radius: 7px;
    background: transparent;
    border: 1px solid transparent;
    color: #6B7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s;
}
.ep-row-action:hover { background: #FEF3C7; color: #B45309; }
.ep-row-action.danger:hover { background: #FEE2E2; color: #B91C1C; }

/* switch (used in toggle lists) */
.ep-switch-sm {
    width: 36px; height: 20px;
    background: #E5E7EB;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}
.ep-switch-sm.on { background: linear-gradient(135deg, #F59E0B, #D97706); }
.ep-switch-sm::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.ep-switch-sm.on::after { transform: translateX(16px); }

/* ─── Event Setup sub-nav ─── */
.ep-setup-shell {
    background: #fff;
    border: 1px solid #EEF0F4;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 18px;
    overflow-x: auto;
}
.ep-setup-tabs {
    display: flex;
    gap: 2px;
    min-width: fit-content;
}
.ep-setup-tab {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
    white-space: nowrap;
    text-decoration: none;
}
.ep-setup-tab:hover { color: #0B1437; background: #F4F6FA; }
.ep-setup-tab.active {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
.ep-setup-tab.active i { color: #fff; }
.ep-setup-tab i { font-size: 16px; }

/* gallery grid */
.ep-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.ep-gallery-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #F4F6FA;
    position: relative;
    cursor: grab;
    border: 1px solid #EEF0F4;
}
.ep-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-gallery-item .ep-gallery-actions {
    position: absolute;
    top: 6px; right: 6px;
    opacity: 0;
    transition: opacity 0.15s;
}
.ep-gallery-item:hover .ep-gallery-actions { opacity: 1; }
.ep-gallery-item .ep-gallery-cap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(180deg, transparent, rgba(11,20,55,0.7));
    color: #fff;
    font-size: 11px;
    padding: 14px 8px 6px;
}

.ep-gallery-video::after {
    content: '▶';
    font-family: inherit;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 38px;
    pointer-events: none;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.ep-speaker-photo {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(11,20,55,0.1);
}

.ep-speaker-photo-placeholder {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
}

/* ─── Stat pills (Slice C) ─── */
.ep-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 720px) {
    .ep-stats-row { grid-template-columns: repeat(2, 1fr); }
}
.ep-stat-pill {
    background: #fff;
    border: 1px solid #EEF0F4;
    border-radius: 10px;
    padding: 10px 14px;
}
.ep-stat-pill .lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6B7280;
    margin-bottom: 4px;
}
.ep-stat-pill .val {
    font-size: 22px;
    font-weight: 500;
    color: #0B1437;
    line-height: 1.1;
}

/* additional tag colour for Slice C */
.ep-tag-purple {
    background: #EDE9FE;
    color: #5B21B6;
}

/* ─────────────────────────────────────────────────────────────────────────
   POPUP/MODAL RESPONSIVENESS — keep all modals usable on phones and tablets
   ───────────────────────────────────────────────────────────────────────── */
.ep-modal {
    padding: 16px;
    box-sizing: border-box;
}
.ep-modal-card {
    width: min(540px, 100%);
    max-height: calc(100vh - 32px);
}
.ep-modal-card.lg { width: min(720px, 100%); }
.ep-modal-card.xl { width: min(920px, 100%); }

@media (max-width: 768px) {
    .ep-modal { padding: 12px; }
    .ep-modal-card,
    .ep-modal-card.lg,
    .ep-modal-card.xl,
    .ep-modal-card.xxl {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 14px;
    }
    .ep-modal-head { padding: 14px 16px; }
    .ep-modal-body { padding: 14px 16px; }
    .ep-modal-foot {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .ep-modal-foot .ep-btn { flex: 1 1 auto; min-width: 0; justify-content: center; }
    .ep-modal-title { font-size: 15px; }
    .ep-modal-sub { font-size: 11.5px; }
    /* Form rows — stack to single column inside any modal on phones */
    .ep-modal .ep-row-2,
    .ep-modal div[style*="grid-template-columns:1fr 1fr"],
    .ep-modal div[style*="grid-template-columns: 1fr 1fr"],
    .ep-modal div[style*="grid-template-columns:repeat(2,1fr)"],
    .ep-modal div[style*="grid-template-columns: repeat(2,1fr)"],
    .ep-modal div[style*="grid-template-columns:repeat(3,1fr)"],
    .ep-modal div[style*="grid-template-columns: repeat(3,1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .ep-modal { padding: 0; align-items: flex-end; }
    .ep-modal-card {
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
    }
    .ep-modal-head { gap: 10px; }
    .ep-modal-icon { width: 36px; height: 36px; }
    .ep-modal-x { width: 28px; height: 28px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   MINIMAL ZEN THEME — overrides at end-of-cascade
   ──────────────────────────────────────────────────────────────────────
   Re-skins the admin to a Notion/Linear feel:
     • Off-white sidebar (#FAFAF8) instead of navy
     • Hairline 0.5px borders (#EEE / #E5E7EB) instead of heavy 1px
     • Flat white surfaces, no gradients, no shadows
     • Brand amber kept as single accent (active state, charts, primary CTAs)
     • Brand navy kept only as primary text colour
   No markup or JS changes — purely CSS.
   ══════════════════════════════════════════════════════════════════════ */

/* App shell: light page background */
.ep-app  { background: #FAFAF8 !important; }
.ep-main { background: #FAFAF8 !important; }

/* ─── Sidebar ──────────────────────────────────────────────────────── */
.ep-side {
    background: #FAFAF8 !important;
    border-right: 0.5px solid #EEE !important;
}
.ep-side::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08) !important; }

.ep-brand img { filter: none; }

/* Event chip in sidebar: soft amber accent, not gradient */
.ep-event {
    background: rgba(245, 158, 11, 0.06) !important;
    border: 0.5px solid rgba(245, 158, 11, 0.25) !important;
    border-left: 2px solid #F59E0B !important;
    border-radius: 6px !important;
}
.ep-event-name { color: #0B1437 !important; font-weight: 500 !important; }
.ep-event-sub, .ep-event-type, .ep-event-date { color: #6B7280 !important; }

/* Nav labels */
.ep-nav-label {
    color: #9CA3AF !important;
    font-size: 10px !important;
    letter-spacing: 1.2px !important;
    padding: 14px 20px 6px !important;
}

/* Nav items: grey text on light bg */
.ep-nav-item {
    color: #555 !important;
    padding: 7px 18px !important;
    transition: background .12s, color .12s !important;
}
.ep-nav-item:hover { background: rgba(0,0,0,0.04) !important; color: #0B1437 !important; }
.ep-nav-item.active {
    color: #0B1437 !important;
    background: rgba(0,0,0,0.05) !important;
    font-weight: 500 !important;
}
.ep-nav-item.active::before { background: #F59E0B !important; }
.ep-nav-item i { color: #9CA3AF !important; }
.ep-nav-item.active i { color: #F59E0B !important; }
.ep-nav-item:hover i { color: #6B7280 !important; }

.ep-nav-sub-item { color: #6B7280 !important; padding: 5px 20px 5px 46px !important; }
.ep-nav-sub-item:hover { color: #F59E0B !important; background: rgba(245,158,11,0.04) !important; }
.ep-nav-sub-item.active { color: #F59E0B !important; font-weight: 500 !important; }

/* ─── Topbar ───────────────────────────────────────────────────────── */
.ep-top {
    background: #fff !important;
    border-bottom: 0.5px solid #EEE !important;
    box-shadow: none !important;
}
.ep-search {
    background: #FAFAF8 !important;
    border: 0.5px solid #EEE !important;
    border-radius: 8px !important;
}
.ep-search:focus-within { border-color: #F59E0B !important; background: #fff !important; }
.ep-search input::placeholder { color: #9CA3AF !important; }
.ep-kbd { background: #F4F4F2 !important; border: 0.5px solid #E5E7EB !important; color: #6B7280 !important; }

.ep-iconbtn { color: #6B7280 !important; }
.ep-iconbtn:hover { background: rgba(0,0,0,0.05) !important; color: #0B1437 !important; }
.ep-user { background: transparent !important; border: 0 !important; }
.ep-username { color: #0B1437 !important; }
.ep-user-dropdown {
    background: #fff !important;
    border: 0.5px solid #EEE !important;
    box-shadow: 0 8px 24px rgba(11,20,55,0.08) !important;
    border-radius: 10px !important;
}
.ep-user-dropdown-item { color: #374151 !important; }
.ep-user-dropdown-item:hover { background: #FAFAF8 !important; color: #0B1437 !important; }
.ep-user-dropdown-sep { background: #EEE !important; }

/* Publish button in topbar — flat, no gradient */
.ep-publish {
    background: #10B981 !important;
    box-shadow: none !important;
    border-radius: 6px !important;
}
.ep-publish:hover { background: #0E9F6E !important; transform: none !important; box-shadow: none !important; }

/* ─── Content ──────────────────────────────────────────────────────── */
.ep-content { padding: 26px 30px !important; }

/* Page head: tighter, more editorial */
.ep-page-head h1 { color: #0B1437 !important; font-weight: 500 !important; font-size: 22px !important; }
.ep-page-head .sub { color: #6B7280 !important; font-size: 12px !important; }
.ep-status-dot { background: #22C55E !important; }

/* Cards — hairline, no shadow */
.ep-card {
    background: #fff !important;
    border: 0.5px solid #EEE !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
.ep-card-title { color: #0B1437 !important; font-weight: 500 !important; }
.ep-card-sub { color: #6B7280 !important; }

/* Range buttons (7D/30D/All) */
.ep-range {
    background: #F4F4F2 !important;
    border: 0 !important;
    padding: 3px !important;
    border-radius: 8px !important;
}
.ep-range button { color: #6B7280 !important; font-weight: 500 !important; }
.ep-range button.active {
    background: #fff !important;
    color: #0B1437 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}

/* Buttons */
.ep-btn {
    background: #F59E0B !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}
.ep-btn:hover { background: #E08A00 !important; transform: none !important; }
.ep-btn.ghost {
    background: #fff !important;
    border: 0.5px solid #E5E7EB !important;
    color: #374151 !important;
}
.ep-btn.ghost:hover { background: #FAFAF8 !important; }
.ep-btn-outline {
    background: #fff !important;
    border: 0.5px solid #E5E7EB !important;
    color: #374151 !important;
    border-radius: 6px !important;
}
.ep-btn-outline:hover { border-color: #F59E0B !important; color: #F59E0B !important; background: #fff !important; }

/* Forms */
.ep-input, .ep-select, .ep-textarea {
    background: #fff !important;
    border: 0.5px solid #E5E7EB !important;
    border-radius: 6px !important;
}
.ep-input:focus, .ep-select:focus, .ep-textarea:focus {
    border-color: #F59E0B !important;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.1) !important;
    background: #fff !important;
}

/* Tables */
.ep-table thead th {
    background: #FAFAF8 !important;
    color: #9CA3AF !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    border-bottom: 0.5px solid #EEE !important;
}
.ep-table td { border-bottom: 0.5px solid #EEE !important; color: #374151 !important; }
.ep-table tr:hover td { background: #FAFAF8 !important; }
.ep-table-wrap { border-radius: 10px !important; border: 0.5px solid #EEE !important; }

/* KPI cards (dashboard) */
.ep-kpi {
    background: #fff !important;
    border: 0.5px solid #EEE !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
.ep-kpi:hover { transform: none !important; box-shadow: none !important; border-color: #E5E7EB !important; }
.ep-kpi-label { color: #9CA3AF !important; }
.ep-kpi-val { color: #0B1437 !important; }
.ep-kpi-ic { box-shadow: none !important; }

/* Hero card (revenue) — flat white, not gradient navy */
.ep-hero {
    background: #fff !important;
    border: 0.5px solid #EEE !important;
    border-radius: 10px !important;
    color: #0B1437 !important;
    box-shadow: none !important;
}
.ep-hero-label { color: #9CA3AF !important; text-transform: uppercase !important; letter-spacing: 1px !important; }
.ep-hero-val { color: #0B1437 !important; }
.ep-hero-val span { color: #9CA3AF !important; }
.ep-hero-sub { color: #6B7280 !important; }
.ep-hero-delta {
    background: #DCFCE7 !important;
    color: #15803D !important;
    border-radius: 4px !important;
}
.ep-hero-btn { background: #0B1437 !important; color: #fff !important; border-radius: 6px !important; }
.ep-hero-btn:hover { background: #1E2A52 !important; }
.ep-hero-btn-ghost { color: #6B7280 !important; }
.ep-hero-btn-ghost:hover { color: #0B1437 !important; }

/* Banners */
.ep-banner-info {
    background: #FEF3C7 !important;
    color: #92400E !important;
    border: 0.5px solid #FDE68A !important;
    border-radius: 8px !important;
}
.ep-banner-success {
    background: #DCFCE7 !important;
    color: #15803D !important;
    border: 0.5px solid #BBF7D0 !important;
    border-radius: 8px !important;
}

/* Setup checklist tiles */
.ep-setup-tab {
    background: transparent !important;
    color: #6B7280 !important;
    border: 0 !important;
}
.ep-setup-tab.active {
    background: #FFFBEB !important;
    color: #B45309 !important;
    border-radius: 8px !important;
}

/* Event cards (MyEvents) */
.ep-event-card {
    background: #fff !important;
    border: 0.5px solid #EEE !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
.ep-event-card:hover { transform: none !important; box-shadow: 0 4px 12px rgba(11,20,55,0.04) !important; border-color: #E5E7EB !important; }
.ep-event-card-cover { background: linear-gradient(135deg, #FEF3C7 0%, #FED7AA 100%) !important; }
.ep-event-card-name { color: #0B1437 !important; }

/* Modal head — light, not amber gradient */
.ep-modal-icon.brand { background: #FEF3C7 !important; color: #B45309 !important; }
.ep-modal-card {
    border-radius: 12px !important;
    box-shadow: 0 24px 48px rgba(11,20,55,0.12) !important;
}
.ep-modal-head { border-bottom: 0.5px solid #EEE !important; }
.ep-modal-foot { background: #FAFAF8 !important; border-top: 0.5px solid #EEE !important; }

/* Pager */
.ep-pager button {
    background: #fff !important;
    border: 0.5px solid #E5E7EB !important;
    color: #374151 !important;
}
.ep-pager button.active {
    background: #F59E0B !important;
    border-color: #F59E0B !important;
    color: #fff !important;
}
