:root {
    --jvp-orange: #e87722;
    --jvp-orange-dark: #c96318;
    --jvp-orange-light: #fff3e0;
    --jvp-dark: #111111;
    --jvp-blue: #2170cb;
    --jvp-dark-blue: #1557a0;
    --jvp-light-blue: #e3f2fd;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
}

/* ── Logo ── */
.jvp-logo { max-width: 150px; height: auto; }
.jvp-logo-small { max-width: 70px; height: auto; }

/* ── Top navbar (public pages) ── */
.jvp-topbar {
    background: #fff;
    border-bottom: 2px solid #eee;
    padding: 8px 0;
}
.jvp-topbar .brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.5px;
}
.jvp-topbar .brand-tagline {
    font-size: 0.75rem;
    color: #888;
}
.jvp-topbar .nav-link {
    color: #333;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.jvp-topbar .nav-link:hover,
.jvp-topbar .nav-link.active {
    color: var(--jvp-orange);
}
.jvp-back-link {
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.jvp-back-link:hover { color: var(--jvp-orange); }

/* ── Hero / landing ── */
.jvp-hero {
    background: #0d0d0d url('/static/images/space-bg.jpg') center/cover no-repeat;
    min-height: 420px;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
}
.jvp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}
.jvp-hero .hero-content { position: relative; z-index: 1; }
.jvp-hero h1 { font-size: 2.5rem; font-weight: 700; }
.jvp-hero .lead { color: rgba(255,255,255,0.85); }

/* ── Buttons ── */
.btn-jvp-orange {
    background-color: var(--jvp-orange);
    border-color: var(--jvp-orange);
    color: #fff;
    font-weight: 600;
}
.btn-jvp-orange:hover {
    background-color: var(--jvp-orange-dark);
    border-color: var(--jvp-orange-dark);
    color: #fff;
}
.btn-outline-jvp-orange {
    border: 2px solid var(--jvp-orange);
    color: var(--jvp-orange);
    background: transparent;
    font-weight: 600;
}
.btn-outline-jvp-orange:hover {
    background-color: var(--jvp-orange);
    color: #fff;
}
.btn-primary {
    background-color: var(--jvp-blue);
    border-color: var(--jvp-blue);
}
.btn-primary:hover {
    background-color: var(--jvp-dark-blue);
    border-color: var(--jvp-dark-blue);
}
.bg-primary { background-color: var(--jvp-blue) !important; }
.text-primary { color: var(--jvp-blue) !important; }
.text-jvp-orange { color: var(--jvp-orange) !important; }

/* ── Admin navbar ── */
.navbar-dark { background-color: var(--jvp-blue) !important; }

/* ── Event category pills ── */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 2rem;
}
.category-btn {
    padding: 6px 18px;
    border-radius: 20px;
    border: 2px solid #ccc;
    background: #fff;
    color: #555;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.category-btn:hover,
.category-btn.active {
    border-color: var(--jvp-orange);
    color: var(--jvp-orange);
    background: var(--jvp-orange-light);
}

/* ── Event cards (public) ── */
.event-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}
.event-card .event-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.event-card .event-img-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 3rem;
}
.event-card .card-body { padding: 1.2rem; }
.event-card .event-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--jvp-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.event-card h5 { font-weight: 700; font-size: 1.05rem; }
.event-card .event-meta {
    font-size: 0.82rem;
    color: #777;
}
.event-price-badge {
    background: var(--jvp-orange-light);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
}
.event-price-badge .member { color: #2e7d32; font-weight: 700; }
.event-price-badge .non-member { color: #c62828; font-weight: 700; }

/* ── Section headings ── */
.section-title {
    font-weight: 700;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--jvp-orange);
    border-radius: 2px;
}

/* ── Home page feature cards ── */
.feature-card {
    border: none;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* ── Step indicator (membership form) ── */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px; left: 0; right: 0;
    height: 2px;
    background-color: #dee2e6;
    z-index: 0;
}
.step { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.step-number {
    width: 40px; height: 40px;
    border-radius: 50%;
    background-color: #dee2e6;
    color: #6c757d;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s;
}
.step.active .step-number,
.step.completed .step-number {
    background-color: var(--jvp-blue);
    color: white;
}
.step.completed .step-number::before { content: '\2713'; font-size: 18px; }
.step-label { font-size: 12px; color: #6c757d; text-align: center; }
.step.active .step-label { color: var(--jvp-blue); font-weight: 600; }

/* ── Progress bar ── */
.progress { background-color: #dee2e6; }
.progress-bar { background-color: var(--jvp-blue); transition: width 0.5s ease; }

/* ── Cards ── */
.card { border: none; border-radius: 10px; }
.card-header { border-radius: 10px 10px 0 0 !important; }

/* ── Forms ── */
.form-label { font-weight: 500; margin-bottom: 0.5rem; }
.form-control:focus, .form-select:focus {
    border-color: var(--jvp-blue);
    box-shadow: 0 0 0 0.2rem rgba(33,112,203,0.25);
}

/* ── Payment mode ── */
.payment-mode-option .btn-outline-primary { border: 2px solid #dee2e6; color: #495057; transition: all 0.3s; }
.payment-mode-option .btn-check:checked + .btn-outline-primary {
    background-color: var(--jvp-light-blue);
    border-color: var(--jvp-blue);
    color: var(--jvp-blue);
}

/* ── Success animation ── */
.success-icon i { animation: scaleIn 0.5s ease-out; }
@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* ── Tables ── */
.table th { background-color: var(--jvp-light-blue); color: var(--jvp-dark-blue); font-weight: 600; }

/* ── Nav tabs ── */
.nav-tabs .nav-link { color: #6c757d; }
.nav-tabs .nav-link.active { color: var(--jvp-blue); font-weight: 600; }

/* ── Footer ── */
.jvp-footer {
    background: #111;
    color: #aaa;
    padding: 30px 0;
    font-size: 0.85rem;
    margin-top: 60px;
}
.jvp-footer a { color: var(--jvp-orange); text-decoration: none; }
.jvp-footer a:hover { text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 768px) {
    .container { padding-left: 15px; padding-right: 15px; }
    .step-label { font-size: 9px; }
    .step-number { width: 32px; height: 32px; font-size: 12px; }
    .step-indicator::before { top: 16px; }
    .jvp-logo { max-width: 80px; }
    .jvp-logo-small { max-width: 50px; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    .card-body { padding: 1rem; }
    .btn-lg { font-size: 1rem; padding: 0.5rem 1rem; }
    .payment-mode-option { margin-bottom: 0.5rem; }
    .table-responsive { border: 0; }
    .table { font-size: 0.875rem; }
    .table td, .table th { padding: 0.5rem; }
    .alert-info { font-size: 0.875rem; }
    .badge { font-size: 0.75rem; }
    .jvp-hero h1 { font-size: 1.7rem; }
    .event-card .event-img,
    .event-card .event-img-placeholder { height: 170px; }
}

@media (max-width: 576px) {
    .step-label { font-size: 8px; max-width: 60px; }
    .step-number { width: 28px; height: 28px; font-size: 11px; }
    .step-indicator::before { top: 14px; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    .lead { font-size: 1rem; }
    .nav-tabs { flex-wrap: nowrap; overflow-x: auto; }
    .nav-tabs .nav-link { white-space: nowrap; }
    .category-filters { gap: 6px; }
    .category-btn { font-size: 0.8rem; padding: 5px 12px; }
}

@media (max-width: 992px) {
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-responsive table { min-width: 800px; }
}
