:root {
  --bg-main: #020617;
  --bg-card: #071232;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(96, 165, 250, 0.16);
  --primary-blue: #2563eb;
  --accent-cyan: #38bdf8;
  --font: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-main) !important;
  color: var(--text-main);
}

.event-container h1{
    font-size: 50px;
    margin: 70px 0 10px 0;
    color: var(--text-main);
}

.event-title-desc{
    font-size: 20px;
    color: #94a3b8;
    margin-bottom: 50px;
}

.section-title{
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

/* Filter Section */
.exploration-filters {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin: 40px auto 30px;
    max-width: 1300px;
    width: min(1340px, 95%);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', sans-serif;
}

.filter-dropdowns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-family: inherit;
    flex: 1;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.filter-group label ion-icon {
    font-size: 1rem;
    color: #94a3b8;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background-color: rgba(6, 12, 28, 0.7);
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease;
}

.search-input-wrapper ion-icon {
    font-size: 1.2rem;
    color: #64748b;
    margin-right: 12px;
}

.search-input-wrapper input {
    background: transparent;
    border: none;
    color: #f8fafc;
    width: 100%;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}

.filter-group select {
    background-color: #0b0f19 !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 12px 16px;
    border-radius: 8px;
    outline: none;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    font-family: inherit;
    font-size: 0.95rem;
}

.filter-group select option {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

.filter-date-input {
    background-color: rgba(6, 12, 28, 0.7);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 8px;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    color-scheme: dark;
}
.filter-date-input:focus {
    border-color: var(--primary-blue);
}

/* Stats Header */
.results-header {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 30px auto 20px;
    max-width: 1300px;
    width: min(1340px, 95%);
    padding: 0 24px;
    font-family: 'Inter', sans-serif;
}

.results-header strong {
    color: #fff;
    font-weight: 500;
}

/* ── Event Card Grid ──────────────────────────────────────────────── */
.event-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1300px;
    width: min(1340px, 95%);
    margin: 0 auto 60px;
    padding: 0 24px;
}

/* ── Single Event Card ─────────────────────────────────────────────── */
.event-card {
    background: #111a36;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}

/* ── Image wrapper & overlays ──────────────────────────────────────── */
.event-card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

/* Date badge — top left */
.event-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
    padding: 6px 12px;
    text-align: center;
    line-height: 1.1;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 8px rgba(37,99,235,0.5);
    z-index: 2;
}
.event-date-badge .ev-month {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.event-date-badge .ev-day {
    display: block;
    font-size: 22px;
    font-weight: 800;
}

/* Event number badge — center bottom */
.event-number-badge {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(37, 99, 235, 0.95);
    color: #fff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    z-index: 3;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(37,99,235,0.6);
}

/* Slots badge — top right */
.ev-slots-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    font-family: 'Inter', sans-serif;
}
.ev-slots-limited { background: #f97316; color: #fff; }
.ev-slots-full    { background: #dc2626; color: #fff; }

/* Org overlay — bottom of image */
.ev-org-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(10,15,40,0.92) 0%, transparent 100%);
    padding: 28px 14px 10px;
    z-index: 2;
}
.ev-org-overlay span {
    font-size: 12px;
    font-weight: 700;
    color: #22d3ee;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

/* ── Card body ─────────────────────────────────────────────────────── */
.event-card-content {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.ev-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
}
.ev-card-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Capacity bar */
.ev-cap-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}
.ev-cap-bar {
    flex: 1;
    height: 7px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}
.ev-cap-fill {
    height: 100%;
    border-radius: 10px;
    background: #22d3ee;
    transition: width 0.4s ease;
}
.ev-cap-fill.warn   { background: #f59e0b; }
.ev-cap-fill.danger { background: #ef4444; }
.ev-cap-label {
    font-size: 12px;
    font-weight: 700;
    color: #22d3ee;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    color-scheme: dark;
}
.filter-date-input:focus {
    border-color: var(--primary-blue);
}

/* Stats Header */
.results-header {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 30px auto 20px;
    max-width: 1300px;
    width: min(1340px, 95%);
    padding: 0 24px;
    font-family: 'Inter', sans-serif;
}

.results-header strong {
    color: #fff;
    font-weight: 500;
}

/* ── Event Card Grid ──────────────────────────────────────────────── */
.event-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1300px;
    width: min(1340px, 95%);
    margin: 0 auto 60px;
    padding: 0 24px;
}

/* ── Single Event Card ─────────────────────────────────────────────── */
.event-card {
    background: #111a36;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}

/* ── Image wrapper & overlays ──────────────────────────────────────── */
.event-card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

/* Date badge — top left */
.event-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
    padding: 6px 12px;
    text-align: center;
    line-height: 1.1;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 8px rgba(37,99,235,0.5);
    z-index: 2;
}
.event-date-badge .ev-month {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.event-date-badge .ev-day {
    display: block;
    font-size: 22px;
    font-weight: 800;
}

/* Event number badge — center bottom */
.event-number-badge {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(37, 99, 235, 0.95);
    color: #fff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    z-index: 3;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(37,99,235,0.6);
}

/* Slots badge — top right */
.ev-slots-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    font-family: 'Inter', sans-serif;
}
.ev-slots-limited { background: #f97316; color: #fff; }
.ev-slots-full    { background: #dc2626; color: #fff; }

/* Org overlay — bottom of image */
.ev-org-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(10,15,40,0.92) 0%, transparent 100%);
    padding: 28px 14px 10px;
    z-index: 2;
}
.ev-org-overlay span {
    font-size: 12px;
    font-weight: 700;
    color: #22d3ee;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

/* ── Card body ─────────────────────────────────────────────────────── */
.event-card-content {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.ev-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
}
.ev-card-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Capacity bar */
.ev-cap-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}
.ev-cap-bar {
    flex: 1;
    height: 7px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}
.ev-cap-fill {
    height: 100%;
    border-radius: 10px;
    background: #22d3ee;
    transition: width 0.4s ease;
}
.ev-cap-fill.warn   { background: #f59e0b; }
.ev-cap-fill.danger { background: #ef4444; }
.ev-cap-label {
    font-size: 12px;
    font-weight: 700;
    color: #22d3ee;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.ev-spots {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Meta row (time / location) */
.ev-meta-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 2px;
}
.ev-meta-row div {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
}
.ev-meta-row ion-icon { color: #3b82f6; font-size: 15px; flex-shrink: 0; }

/* Pre-Register button */
.ev-prereg-btn {
    margin-top: auto;
    padding: 13px;
    width: 100%;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.15s;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
}
.ev-prereg-btn:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.ev-prereg-btn.ev-prereg-login {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 1.5px solid #3b82f6;
    color: #93c5fd;
}
.ev-prereg-btn.ev-prereg-full {
    background: #1e293b;
    color: #475569;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 640px) {
    .event-card-container { grid-template-columns: 1fr; padding: 0 16px; }
}

/* Already-registered button variant */
.ev-prereg-btn.ev-prereg-registered {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    cursor: default;
    border: 1px solid rgba(74,222,128,.2);
}

/* "View Full Details" link under each card */
.ev-detail-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    margin-top: 14px;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}
.ev-detail-link:hover { color: #93c5fd; }

/* ── Pagination Container ─────────────────────────────────────────── */
.pagination-container {
    margin: 50px auto 60px;
    max-width: 1300px;
    width: min(1340px, 95%);
    padding: 0 24px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(15,23,42,0.5), rgba(30,58,114,0.3));
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 14px;
    padding: 16px 20px;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.pagination-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1.5px solid rgba(255,255,255,0.08);
    background: rgba(30,41,59,0.7);
    color: #93c5fd;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pagination-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    border-color: #2563eb;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37,99,235,0.4);
}

.pagination-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: rgba(15,23,42,0.3);
}

.pagination-btn i {
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-numbers {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pagination-num {
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border: 1.5px solid rgba(255,255,255,0.08);
    background: rgba(30,41,59,0.7);
    color: #93c5fd;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pagination-num:hover {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    border-color: #2563eb;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.pagination-num.current {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,99,235,0.5);
}

.pagination-dots {
    color: #64748b;
    padding: 0 4px;
    font-weight: 600;
}

.pagination-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.pagination-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-info strong {
    color: #22d3ee;
    font-weight: 700;
}

@media (max-width: 768px) {
    .pagination-controls {
        gap: 6px;
        padding: 12px 16px;
    }
    
    .pagination-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .pagination-num {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .pagination-info {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .pagination-container {
        margin: 30px auto 50px;
    }
    
    .pagination-controls {
        gap: 4px;
        padding: 10px 12px;
    }
    
    .pagination-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .pagination-num {
        min-width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .pagination-dots {
        padding: 0 2px;
        font-size: 12px;
    }
    
    .pagination-info {
        font-size: 11px;
        gap: 8px;
    }
}



/* ── Extracted inline styles ── */
        input[type=text], input[type=search] { color: #1e293b; }

        /* ── Pre-Register Modal ──────────────────────────────── */
        .prereg-overlay {
            display: none;
            position: fixed; inset: 0;
            background: rgba(5,10,30,.85);
            backdrop-filter: blur(6px);
            z-index: 9000;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }
        .prereg-overlay.open { display: flex; }
        .prereg-modal {
            background: #111a36;
            border: 1px solid rgba(255,255,255,.1);
            border-radius: 20px;
            max-width: 560px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 24px 64px rgba(0,0,0,.7);
            animation: modalPop .25s ease;
            font-family: 'Inter', sans-serif;
        }
        @keyframes modalPop {
            from { opacity:0; transform: scale(.94) translateY(12px); }
            to   { opacity:1; transform: scale(1)   translateY(0);    }
        }
        .prereg-modal-header {
            padding: 20px 24px 16px;
            border-bottom: 1px solid rgba(255,255,255,.07);
            display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
        }
        .prereg-modal-header h2 {
            font-size: 1.15rem; font-weight: 800; color: #f1f5f9; margin: 0; line-height: 1.3;
        }
        .prereg-modal-header p {
            font-size: 12px; color: #64748b; margin: 4px 0 0;
        }
        .modal-close-btn {
            background: rgba(255,255,255,.05); border: none; color: #94a3b8;
            width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            font-size: 18px; flex-shrink: 0; transition: background .2s;
        }
        .modal-close-btn:hover { background: rgba(255,255,255,.12); color: #f1f5f9; }
        .prereg-modal-body { padding: 20px 24px 24px; }

        /* Event info strip inside modal */
        .modal-event-info {
            background: rgba(14,165,233,.08);
            border: 1px solid rgba(14,165,233,.2);
            border-radius: 12px;
            padding: 14px 16px;
            display: flex; gap: 14px; align-items: center;
            margin-bottom: 20px;
        }
        .modal-event-info .ev-date-pill {
            background: #2563eb; color: #fff; border-radius: 8px;
            padding: 6px 10px; text-align: center; line-height: 1.1; flex-shrink: 0;
        }
        .ev-date-pill .m { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; display: block; }
        .ev-date-pill .d { font-size: 20px; font-weight: 800; display: block; }
        .modal-event-info .ev-info-text strong { color: #f1f5f9; font-size: 14px; font-weight: 700; display: block; }
        .modal-event-info .ev-info-text span   { color: #94a3b8; font-size: 12px; }

        /* Steps */
        .modal-steps { display: flex; gap: 8px; margin-bottom: 20px; }
        .modal-step {
            flex: 1; padding: 10px 6px; border-radius: 10px; text-align: center;
            font-size: 11px; font-weight: 700; background: rgba(255,255,255,.03);
            border: 1px solid rgba(255,255,255,.07); color: #475569;
            display: flex; flex-direction: column; gap: 4px; align-items: center;
        }
        .modal-step.active  { background: rgba(37,99,235,.15); border-color: #2563eb; color: #93c5fd; }
        .modal-step.done    { background: rgba(22,163,74,.12);  border-color: #16a34a; color: #4ade80; }
        .modal-step ion-icon { font-size: 16px; }

        /* Pre-test inside modal */
        .modal-qa { margin-bottom: 16px; }
        .modal-qa p.q-text { font-size: 13px; color: #e2e8f0; font-weight: 600; margin: 0 0 8px; }
        .modal-opts { display: flex; flex-direction: column; gap: 6px; }
        .modal-opt {
            display: flex; align-items: center; gap: 10px;
            padding: 9px 13px; border-radius: 8px;
            border: 1px solid rgba(255,255,255,.07);
            cursor: pointer; font-size: 13px; color: #cbd5e1;
            transition: all .18s; background: rgba(255,255,255,.02);
        }
        .modal-opt:hover  { background: rgba(37,99,235,.1); border-color: #2563eb; color: #93c5fd; }
        .modal-opt.sel    { background: rgba(37,99,235,.18); border-color: #3b82f6; color: #bfdbfe; }
        .modal-opt input  { accent-color: #3b82f6; }

        /* Action btns */
        .modal-action-btn {
            width: 100%; padding: 13px; border: none; border-radius: 10px;
            font-size: 14px; font-weight: 700; cursor: pointer;
            font-family: 'Inter', sans-serif;
            display: flex; align-items: center; justify-content: center; gap: 8px;
            transition: opacity .2s, transform .15s; margin-top: 8px;
        }
        .modal-action-btn.primary {
            background: linear-gradient(135deg, #2563eb, #06b6d4); color: #fff;
        }
        .modal-action-btn.success {
            background: linear-gradient(135deg, #16a34a, #059669); color: #fff;
        }
        .modal-action-btn:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
        .modal-action-btn:disabled { opacity: .5; cursor: not-allowed; }

        .modal-msg {
            text-align: center; padding: 8px 0; font-size: 13px; font-weight: 600;
            border-radius: 8px; margin-top: 12px; display: none;
        }
        .modal-msg.success { background: rgba(22,163,74,.12); color: #4ade80; display: block; }
        .modal-msg.error   { background: rgba(239,68,68,.12);  color: #f87171;  display: block; }

        /* Already registered badge inside modal */
        .registered-badge {
            background: rgba(22,163,74,.12); border: 1px solid rgba(22,163,74,.25);
            border-radius: 12px; padding: 16px; text-align: center; color: #4ade80;
            font-weight: 700; font-size: 14px; display: flex;
            align-items: center; justify-content: center; gap: 8px;
        }
        .view-detail-link {
            display: block; text-align: center; margin-top: 12px;
            color: #93c5fd; font-size: 13px; text-decoration: none;
        }
        .view-detail-link:hover { text-decoration: underline; }

        /* Responsive Student Portal Icon Styling */
        @media (max-width: 992px) {
            .filter-group label ion-icon,
            .search-input-wrapper ion-icon {
                color: #38bdf8 !important;
            }
            .event-card ion-icon,
            .event-meta ion-icon,
            .event-time-location ion-icon {
                color: #38bdf8 !important;
            }
            .prereg-modal-header ion-icon,
            .modal-step ion-icon {
                color: #38bdf8 !important;
            }
        }
