/* ============================================================
   CorridasBR — Design System v2 (Moderno & Vibrante)
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Variables
   ------------------------------------------------------------ */
:root {
    --primary:        #F05A00;
    --primary-dark:   #D04E00;
    --primary-light:  #FFF4EE;
    --primary-100:    #FFE4D0;
    --indigo:         #1E1E1E;
    --indigo-dark:    #111111;

    --grad-hero:      linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 55%, #F05A00 100%);
    --grad-card:      linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75) 100%);
    --grad-btn:       linear-gradient(135deg, #F05A00, #D04E00);

    --success:        #10B981;
    --success-light:  #ECFDF5;
    --warning:        #F59E0B;
    --warning-light:  #FFFBEB;
    --danger:         #EF4444;
    --danger-light:   #FEF2F2;
    --orange:         #F05A00;
    --orange-light:   #FFF4EE;
    --purple:         #8B5CF6;
    --purple-light:   #F5F3FF;
    --teal:           #14B8A6;
    --teal-light:     #F0FDFA;

    --bg:             #FAFAF9;
    --surface:        #FFFFFF;
    --surface-2:      #FFF8F5;
    --border:         #F0E8E2;
    --border-hover:   #F0C0A0;

    --text:           #111827;
    --text-muted:     #6B7280;
    --text-light:     #9CA3AF;
    --text-white:     #FFFFFF;

    --radius-sm:      8px;
    --radius:         16px;
    --radius-lg:      20px;
    --radius-xl:      28px;
    --radius-full:    9999px;

    --shadow-sm:      0 1px 3px rgba(240,90,0,.08), 0 1px 2px rgba(240,90,0,.05);
    --shadow:         0 4px 12px rgba(240,90,0,.10), 0 2px 4px rgba(240,90,0,.06);
    --shadow-md:      0 8px 24px rgba(240,90,0,.14), 0 4px 8px rgba(240,90,0,.08);
    --shadow-lg:      0 20px 40px rgba(240,90,0,.16), 0 8px 16px rgba(240,90,0,.08);
    --shadow-xl:      0 32px 64px rgba(240,90,0,.20);
    --shadow-card:    0 2px 8px rgba(17,24,39,.06), 0 8px 24px rgba(240,90,0,.08);
    --shadow-card-hover: 0 8px 32px rgba(240,90,0,.18), 0 2px 8px rgba(17,24,39,.08);

    --transition:     all .2s cubic-bezier(.4,0,.2,1);
    --transition-slow:all .35s cubic-bezier(.4,0,.2,1);
    --transition-spring: all .4s cubic-bezier(.34,1.56,.64,1);

    --header-h:       68px;
    --container:      1200px;
    --nav-h:          60px;
}

/* ------------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-h);
}

main { flex: 1; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
h1,h2,h3,h4,h5,h6 { line-height: 1.2; font-weight: 700; color: var(--text); }

/* ------------------------------------------------------------
   3. Layout
   ------------------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}
@media (min-width: 640px)  { .container { padding: 0 28px; } }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

.page-wrapper { padding: 48px 0 72px; }
@media (min-width: 768px) { .page-wrapper { padding: 64px 0 96px; } }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2,1fr); } .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 768px)  { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3,1fr); } .grid-4 { grid-template-columns: repeat(4,1fr); } }

/* ------------------------------------------------------------
   4. Header & Navigation
   ------------------------------------------------------------ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(99,102,241,.1);
    transition: var(--transition);
}
.site-header.scrolled {
    background: rgba(255,255,255,.97);
    box-shadow: 0 4px 24px rgba(99,102,241,.1);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -.3px;
}
.logo:hover { opacity: .85; }

.site-logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--grad-btn);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(240,90,0,.4);
}
.logo-icon svg { width: 18px; height: 18px; }

.nav-links {
    display: none;
    align-items: center;
    gap: 2px;
    flex: 1;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}
.nav-links a:hover  { color: var(--indigo); background: var(--primary-light); }
.nav-links a.active { color: var(--indigo); background: var(--primary-light); font-weight: 600; }

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

.user-menu { position: relative; }
.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    background: var(--surface);
    transition: var(--transition);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}
.user-btn:hover { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.user-btn[aria-expanded="true"] { border-color: var(--indigo); }

.user-avatar {
    width: 30px;
    height: 30px;
    background: var(--grad-btn);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}
.user-name { display: none; }
@media (min-width: 640px) { .user-name { display: block; } }
.user-btn .chevron { width: 14px; height: 14px; transition: transform .2s; }
.user-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 215px;
    padding: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(.97);
    transform-origin: top right;
    transition: var(--transition);
    z-index: 100;
}
.user-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.user-dropdown a:hover { background: var(--primary-light); color: var(--indigo); }
.user-dropdown a.text-danger { color: var(--danger); }
.user-dropdown a.text-danger:hover { background: var(--danger-light); color: var(--danger); }
.user-dropdown a svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.mobile-menu-btn {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: var(--radius-sm);
}
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.mobile-menu-btn:hover { background: var(--primary-light); }

.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(17,24,39,.5); z-index: 1100; backdrop-filter: blur(3px); }
.mobile-overlay.open { display: block; }

.mobile-nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 90vw);
    height: 100dvh;
    background: var(--surface);
    z-index: 1200;
    transition: right .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}
.mobile-nav.open { right: 0; }

.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); }
.mobile-close-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); color: var(--text-muted); transition: var(--transition); }
.mobile-close-btn:hover { background: var(--surface-2); }

.mobile-nav-links { padding: 12px 12px 24px; flex: 1; }
.mobile-nav-links li.divider { height: 1px; background: var(--border); margin: 8px 0; }
.mobile-nav-links a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); color: var(--text); font-size: 15px; font-weight: 500; transition: var(--transition); }
.mobile-nav-links a:hover { background: var(--primary-light); color: var(--indigo); }
.mobile-nav-links a.highlight { background: var(--grad-btn); color: white; }
.mobile-nav-links a.highlight:hover { opacity: .9; }
.mobile-nav-links a.text-danger { color: var(--danger); }
.mobile-nav-links a.text-danger:hover { background: var(--danger-light); }
.mobile-nav-links a svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid transparent;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-sm  { padding: 7px 14px; font-size: 13px; }
.btn-lg  { padding: 12px 26px; font-size: 15px; }
.btn-xl  { padding: 15px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-full { width: 100%; }

.btn-primary {
    background: var(--grad-btn);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(99,102,241,.35);
}
.btn-primary:hover {
    opacity: .9;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,.45);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-hover); }

.btn-white {
    background: white;
    color: var(--indigo);
    border-color: transparent;
    box-shadow: var(--shadow);
}
.btn-white:hover { background: var(--primary-light); color: var(--indigo); transform: translateY(-1px); }

.btn-danger { background: var(--danger); color: white; border-color: transparent; }
.btn-danger:hover { background: #DC2626; }
.btn-success { background: var(--success); color: white; border-color: transparent; }

.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------ */
.hero {
    background: var(--grad-hero);
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% -10%, rgba(255,255,255,.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at -10% 80%, rgba(99,102,241,.3) 0%, transparent 60%);
    pointer-events: none;
}

/* Decorative floating circles */
.hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 80px solid rgba(255,255,255,.06);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 48px;
    align-items: center;
}
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1fr auto; } }

.hero-content { max-width: 620px; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    margin-bottom: 20px;
}
.hero-eyebrow svg { width: 14px; height: 14px; }

.hero-title {
    font-size: clamp(32px, 5.5vw, 56px);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
}
.hero-title em {
    font-style: normal;
    background: linear-gradient(90deg, #93C5FD, #C4B5FD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255,255,255,.75);
    margin-bottom: 36px;
    line-height: 1.65;
}

.hero-search-wrap {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-lg);
    padding: 8px 8px 8px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 520px;
}
.hero-search-wrap svg { width: 18px; height: 18px; color: rgba(255,255,255,.6); flex-shrink: 0; }
.hero-search-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 15px;
    color: white;
    font-family: inherit;
}
.hero-search-wrap input::placeholder { color: rgba(255,255,255,.5); }
.hero-search-wrap .btn {
    background: white;
    color: var(--indigo);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: none;
    flex-shrink: 0;
}
.hero-search-wrap .btn:hover { background: var(--primary-light); transform: none; box-shadow: none; }

.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.hero-stat strong { display: block; font-size: 30px; font-weight: 800; color: white; letter-spacing: -1px; }
.hero-stat span   { font-size: 12px; color: rgba(255,255,255,.6); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }

/* Hero side visual */
.hero-visual {
    display: none;
    flex-direction: column;
    gap: 12px;
    width: 280px;
}
@media (min-width: 900px) { .hero-visual { display: flex; } }

.hero-card-mini {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius);
    padding: 14px;
    color: white;
    animation: float 4s ease-in-out infinite;
}
.hero-card-mini:nth-child(2) { animation-delay: -2s; margin-left: 24px; }
.hero-card-mini:nth-child(3) { animation-delay: -1s; margin-left: 8px; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.hero-card-mini-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.hero-card-mini-meta  { font-size: 11px; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 5px; }
.hero-card-mini-price { font-size: 16px; font-weight: 800; margin-top: 8px; color: #93C5FD; }

/* ------------------------------------------------------------
   7. Event Cards
   ------------------------------------------------------------ */
.event-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255,255,255,.8);
}
.event-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.event-card-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--primary-light);
}
.event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.event-card:hover .event-card-img img { transform: scale(1.07); }

/* Gradient overlay */
.event-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-card);
    opacity: .5;
    transition: opacity .3s;
}
.event-card:hover .event-card-img::after { opacity: .65; }

.event-card-img .badge-tipo {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
}

.card-date-bubble {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 1;
    background: rgba(17,24,39,.65);
    backdrop-filter: blur(8px);
    color: white;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.15);
}
.card-date-bubble svg { width: 11px; height: 11px; }

.event-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -.2px;
}
.event-card-title:hover { color: var(--indigo); }

.event-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 13px;
}
.event-card-location svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--orange); }

.event-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.urgency-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--orange-light);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
}
.urgency-chip svg { width: 11px; height: 11px; }

.event-card-footer {
    padding: 14px 20px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.event-card-price span { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; }
.event-card-price strong { display: block; font-size: 20px; font-weight: 800; color: var(--indigo); letter-spacing: -.5px; }

.event-card-cta {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--grad-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(99,102,241,.35);
    transition: var(--transition-spring);
    flex-shrink: 0;
}
.event-card:hover .event-card-cta {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 18px rgba(99,102,241,.5);
}
.event-card-cta svg { width: 16px; height: 16px; }

/* Featured event card */
.event-card-featured {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,.8);
    transition: var(--transition-slow);
}
@media (min-width: 768px) { .event-card-featured { grid-template-columns: 1.3fr 1fr; } }
.event-card-featured:hover { box-shadow: var(--shadow-xl); transform: translateY(-3px); }

.event-card-featured-img {
    position: relative;
    min-height: 240px;
    overflow: hidden;
}
@media (min-width: 768px) { .event-card-featured-img { min-height: 320px; } }
.event-card-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.event-card-featured:hover .event-card-featured-img img { transform: scale(1.05); }
.event-card-featured-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(99,102,241,.5), rgba(37,99,235,.3)); }

.event-card-featured-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.3);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-card-featured-body {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-card-featured-title {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: 12px;
    color: var(--text);
}

.event-card-featured-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.event-card-featured-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}
.event-card-featured-meta li svg { width: 16px; height: 16px; color: var(--indigo); flex-shrink: 0; }

.event-card-featured-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.event-card-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.event-card-featured-price span { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-light); }
.event-card-featured-price strong { display: block; font-size: 26px; font-weight: 800; color: var(--indigo); letter-spacing: -1px; }

/* ------------------------------------------------------------
   8. Badges
   ------------------------------------------------------------ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: .2px;
}
.badge svg { width: 10px; height: 10px; }

.badge-blue    { background: #EFF6FF; color: #2563EB; }
.badge-green   { background: #ECFDF5; color: #059669; }
.badge-purple  { background: #F5F3FF; color: #7C3AED; }
.badge-orange  { background: #FFF7ED; color: #EA580C; }
.badge-teal    { background: #F0FDFA; color: #0D9488; }
.badge-indigo  { background: #EEF2FF; color: #4F46E5; }

.badge-success  { background: #ECFDF5; color: #065F46; }
.badge-warning  { background: #FFFBEB; color: #92400E; }
.badge-danger   { background: #FEF2F2; color: #991B1B; }
.badge-secondary{ background: var(--surface-2); color: var(--text-muted); }

/* ------------------------------------------------------------
   9. Forms
   ------------------------------------------------------------ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-label .required { color: var(--danger); }

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    transition: var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.form-control::placeholder { color: var(--text-light); }
.form-control:disabled { background: var(--surface-2); cursor: not-allowed; opacity: .7; }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.12); }

.form-hint  { font-size: 12px; color: var(--text-muted); }
.form-error { font-size: 12px; color: var(--danger); display: flex; align-items: center; gap: 4px; }

.form-row   { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 768px) { .form-row-3 { grid-template-columns: repeat(3,1fr); } }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}
textarea.form-control { resize: vertical; min-height: 100px; }

.form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-check input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--indigo); cursor: pointer; }
.form-check-label { font-size: 14px; color: var(--text); cursor: pointer; line-height: 1.5; }

.search-box { position: relative; display: flex; align-items: center; }
.search-box .search-icon { position: absolute; left: 14px; color: var(--text-light); width: 16px; height: 16px; pointer-events: none; }
.search-box .form-control { padding-left: 42px; }

/* ------------------------------------------------------------
   10. Alerts
   ------------------------------------------------------------ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    border-left: 4px solid;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #ECFDF5; border-color: var(--success); color: #065F46; }
.alert-error   { background: #FEF2F2; border-color: var(--danger);  color: #991B1B; }
.alert-warning { background: #FFFBEB; border-color: var(--warning); color: #92400E; }
.alert-info    { background: #EEF2FF; border-color: var(--indigo);  color: var(--indigo-dark); }

/* ------------------------------------------------------------
   11. Tables
   ------------------------------------------------------------ */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { background: var(--surface-2); padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
tbody tr.rank-1 td:first-child { color: #D97706; font-weight: 800; }
tbody tr.rank-2 td:first-child { color: var(--text-muted); font-weight: 700; }
tbody tr.rank-3 td:first-child { color: #92400E; font-weight: 700; }

/* ------------------------------------------------------------
   12. Filter bar
   ------------------------------------------------------------ */
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 24px 0 8px; }

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}
.filter-chip:hover { border-color: var(--indigo); color: var(--indigo); background: var(--primary-light); }
.filter-chip.active { background: var(--grad-btn); color: white; border-color: transparent; box-shadow: 0 4px 12px rgba(99,102,241,.3); }
.filter-chip svg { width: 13px; height: 13px; }

.filter-count { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 20px; gap: 12px; flex-wrap: wrap; }
.filter-count p { font-size: 14px; color: var(--text-muted); }
.filter-count strong { color: var(--text); }

/* ------------------------------------------------------------
   13. Section headers
   ------------------------------------------------------------ */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title {
    font-size: clamp(22px,3vw,28px);
    font-weight: 800;
    letter-spacing: -.5px;
    position: relative;
}
.section-title-accent {
    display: inline;
    background: var(--grad-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; font-weight: 400; }

/* ------------------------------------------------------------
   14. Quick Action Cards
   ------------------------------------------------------------ */
.quick-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 28px 0 40px; }
@media (max-width: 480px) {
    .quick-actions { grid-template-columns: repeat(3,1fr); gap: 8px; margin: 16px 0 24px; }
    .quick-action-card { padding: 10px 8px; border-radius: 12px; gap: 6px; }
    .quick-action-icon { width: 30px; height: 30px; }
    .quick-action-icon svg { width: 28px; height: 28px; }
    .quick-action-card span { font-size: 9px; letter-spacing: .5px; }
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
}
.quick-action-card:hover { border-color: #E6A817; box-shadow: 0 8px 24px rgba(230,168,23,.15); transform: translateY(-3px); }
.quick-action-card.quick-action-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.quick-action-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.quick-action-icon svg { width: 52px; height: 52px; }
.quick-action-card span { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--primary); text-align: center; line-height: 1.3; }
.quick-action-card:hover span { color: var(--indigo); }

/* ------------------------------------------------------------
   15. Event Detail
   ------------------------------------------------------------ */
.event-hero { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; padding-top: 8px; }
@media (min-width: 860px) { .event-hero { grid-template-columns: 360px 1fr; gap: 32px; } }

.event-detail-banner {
    display: block;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
}
@media (min-width: 860px) { .event-detail-banner { max-height: 320px; } }

.event-detail-header { padding: 0; }
.event-meta-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.event-detail-title { font-size: clamp(26px,4vw,38px); font-weight: 800; letter-spacing: -.8px; margin-bottom: 20px; }

.event-info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media (min-width: 640px) { .event-info-grid { grid-template-columns: repeat(4,1fr); } }

.event-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.event-info-item svg { width: 18px; height: 18px; color: var(--indigo); margin-bottom: 4px; }
.event-info-item span { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); font-weight: 600; }
.event-info-item strong { font-size: 14px; font-weight: 600; color: var(--text); }

.event-detail-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .event-detail-layout { grid-template-columns: 1fr 340px; } }

.event-sidebar { display: flex; flex-direction: column; gap: 20px; }

.cat-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
}
.cat-card:hover  { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 234,88,12),.08); }
.cat-card:has(input:checked), .cat-card.selected { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 234,88,12),.15); }
.cat-card .cat-name { font-weight: 800; font-size: 16px; color: var(--text); }
.cat-card .cat-distance { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.cat-card .cat-price { font-size: 20px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.cat-card .cat-vagas { font-size: 11px; color: var(--text-muted); text-align: right; }
.cat-dist-pill {
    display: inline-flex; align-items: center;
    padding: 2px 10px; border-radius: 20px;
    background: var(--primary); color: #fff;
    font-size: 12px; font-weight: 700; white-space: nowrap;
}
.cat-tag {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 20px;
    background: #f3f4f6; color: #374151;
    font-size: 11px; font-weight: 600;
}
.cat-tag.cat-tag-blue { background: #dbeafe; color: #1d4ed8; }
.cat-tag.cat-tag-pink { background: #fce7f3; color: #be185d; }
.cat-card-right {
    text-align: right; display: flex; flex-direction: column;
    align-items: flex-end; gap: 4px; flex-shrink: 0;
}

.vagas-bar { height: 4px; background: var(--border); border-radius: var(--radius-full); overflow: hidden; margin-top: 4px; }
.vagas-bar-fill { height: 100%; background: var(--success); border-radius: var(--radius-full); transition: width .6s ease; }
.vagas-bar-fill.warning { background: var(--warning); }
.vagas-bar-fill.danger  { background: var(--danger); }

.sticky-card { position: sticky; top: calc(var(--header-h) + 20px); }

/* ------------------------------------------------------------
   16. Auth Pages
   ------------------------------------------------------------ */
.auth-page {
    min-height: calc(100dvh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: var(--shadow-lg);
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 28px; }
.auth-title { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 6px; letter-spacing: -.5px; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--text-light); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }

/* ------------------------------------------------------------
   17. Stat cards
   ------------------------------------------------------------ */
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); }
.stat-card-header { display: flex; align-items: center; justify-content: space-between; }
.stat-card-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.stat-card-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.stat-card-icon svg { width: 18px; height: 18px; }
.stat-card-value { font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: -1px; }
.stat-card-change { font-size: 13px; color: var(--text-muted); }

.stat-icon-blue   { background: #EEF2FF; color: var(--indigo); }
.stat-icon-green  { background: #ECFDF5; color: var(--success); }
.stat-icon-orange { background: #FFF7ED; color: var(--orange); }
.stat-icon-red    { background: #FEF2F2; color: var(--danger); }

/* ------------------------------------------------------------
   18. Admin layout
   ------------------------------------------------------------ */
/* align-content:start impede o grid de "esticar" as linhas pra preencher a min-height
   no mobile — sem isso, em páginas de conteúdo curto o menu (.admin-tabs-mobile) inflava
   de ~60px pra ~200px, com as abas caindo no meio e criando um vão acima delas. */
.admin-layout { display: grid; grid-template-columns: 1fr; min-height: calc(100dvh - var(--header-h)); align-content: start; }
@media (min-width: 1024px) { .admin-layout { grid-template-columns: 240px 1fr; align-content: stretch; } }

.admin-sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 24px 12px; display: none; flex-direction: column; gap: 2px; }
@media (min-width: 1024px) { .admin-sidebar { display: flex; } }

.admin-sidebar-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-light); padding: 16px 12px 6px; }
.admin-sidebar-label:first-child { padding-top: 0; }

.admin-sidebar-group:first-child .admin-sidebar-label { padding-top: 0; }
.admin-sidebar-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.admin-sidebar-chevron { width: 14px !important; height: 14px !important; transition: transform .18s ease; flex-shrink: 0; }
.admin-sidebar-group.collapsed .admin-sidebar-chevron { transform: rotate(-90deg); }
.admin-sidebar-group.collapsed .admin-sidebar-items { display: none; }

.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--text-muted); transition: var(--transition); }
.admin-nav-item:hover { background: var(--primary-light); color: var(--indigo); }
.admin-nav-item.active { background: var(--primary-light); color: var(--indigo); font-weight: 600; }
.admin-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }

.admin-content { padding: 32px 20px; overflow-x: hidden; background: var(--bg); }
@media (min-width: 768px) { .admin-content { padding: 40px 32px; } }

.admin-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.admin-page-title { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.admin-page-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ------------------------------------------------------------
   19. Cards (generic)
   ------------------------------------------------------------ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------
   20. Profile / Minha conta
   ------------------------------------------------------------ */
.profile-header { background: var(--grad-hero); color: white; padding: 48px 0 64px; position: relative; overflow: hidden; }
.profile-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 80% 20%, rgba(255,255,255,.08), transparent); }
.profile-avatar-big { width: 72px; height: 72px; background: rgba(255,255,255,.2); border: 3px solid rgba(255,255,255,.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: white; margin-bottom: 14px; }
.profile-name { font-size: 24px; font-weight: 800; color: white; letter-spacing: -.5px; }
.profile-email { font-size: 14px; color: rgba(255,255,255,.7); }

.profile-tabs-bar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: var(--header-h); z-index: 50; }
.profile-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 20px; -webkit-overflow-scrolling: touch; }
.profile-tab { display: flex; align-items: center; gap: 7px; padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; white-space: nowrap; transition: var(--transition); }
.profile-tab:hover  { color: var(--indigo); }
.profile-tab.active { color: var(--indigo); border-bottom-color: var(--indigo); }
.profile-tab svg    { width: 15px; height: 15px; }

/* ------------------------------------------------------------
   21. Inscricao page
   ------------------------------------------------------------ */
.inscricao-layout { display: grid; gap: 32px; grid-template-columns: 1fr; padding: 40px 0 60px; }
@media (min-width: 900px) { .inscricao-layout { grid-template-columns: 1fr 340px; } }

/* ------------------------------------------------------------
   22. Resultados
   ------------------------------------------------------------ */
.results-search-bar { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 24px; }
@media (min-width: 640px) { .results-search-bar { grid-template-columns: 1fr auto auto; } }

/* ------------------------------------------------------------
   23. Empty state
   ------------------------------------------------------------ */
.empty-state { text-align: center; padding: 64px 24px; color: var(--text-muted); }
.empty-state-icon { width: 64px; height: 64px; background: var(--surface-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--text-light); }
.empty-state-icon svg { width: 28px; height: 28px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; max-width: 340px; margin: 0 auto 24px; }

/* ------------------------------------------------------------
   24. Footer
   ------------------------------------------------------------ */
.site-footer { background: #0F172A; color: rgba(255,255,255,.6); margin-top: auto; }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 64px 0 48px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer-brand .logo { color: white; }
.footer-brand .logo:hover { color: #93C5FD; }
.footer-brand p { margin-top: 14px; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.45); max-width: 240px; }

.footer-col h4 { color: white; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.5); font-size: 13px; display: flex; align-items: center; gap: 7px; transition: var(--transition); }
.footer-col a:hover { color: white; }
.footer-col a svg { width: 13px; height: 13px; flex-shrink: 0; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 24px 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: rgba(255,255,255,.3); }

/* ------------------------------------------------------------
   25. Utilities
   ------------------------------------------------------------ */
.text-sm    { font-size: 13px; }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-primary { color: var(--primary); }
.text-indigo  { color: var(--indigo); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-center  { text-align: center; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }

.flex         { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.p-4  { padding: 16px; }
.p-6  { padding: 24px; }

.rounded    { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: var(--radius-lg); }
.bg-surface { background: var(--surface); }
.border     { border: 1px solid var(--border); }
.hidden     { display: none !important; }
.divider    { height: 1px; background: var(--border); }

.pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .45s cubic-bezier(.4,0,.2,1) both; }

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--surface-2) 25%, #e0e7ff 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--radius-sm);
}

/* Toasts */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #1E293B; color: white; border-radius: var(--radius); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-xl); max-width: 340px; pointer-events: all; animation: slideInRight .3s ease; }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Seletor de evento — visível só em mobile, onde a sidebar fica escondida */
.mobile-event-switcher { display: block; width: 100%; max-width: 100%; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); overflow: hidden; }
@media (min-width: 1024px) { .mobile-event-switcher { display: none; } }
.mobile-event-switcher-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    cursor: pointer;
    overflow: hidden;
}
.mobile-event-switcher-text { flex: 1; min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.mobile-event-switcher-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); }
.mobile-event-switcher-value { display: block; max-width: 100%; font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-event-switcher-box select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: none; cursor: pointer; }

/* Admin tab bar mobile */
.admin-tabs-mobile { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
@media (min-width: 1024px) { .admin-tabs-mobile { display: none; } }
.admin-tab-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    /* borda inferior reservada em todas as abas pro sublinhado da ativa não mudar a altura */
    border-bottom: 2.5px solid transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.admin-tab-item:hover { background: var(--surface-2); color: var(--text); }
.admin-tab-item:focus,
.admin-tab-item:focus-visible,
.admin-tab-item:active { outline: none; box-shadow: none; -webkit-tap-highlight-color: transparent; }
/* Aba ativa: texto laranja + sublinhado, SEM bloco preenchido — assim nunca fica
   "cortada" quando cai na borda da faixa rolável (bloco sólido fatiava feio). */
.admin-tab-item.active { background: none; color: var(--primary); border-bottom-color: var(--primary); }
.admin-tab-item svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Mobile bottom nav — oculto por padrão, visível só em mobile */
.bottom-nav { display: none; }

@media (max-width: 767px) {
    body { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); }
    .bottom-nav {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: var(--nav-h);
        background: var(--surface);
        border-top: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-around;
        z-index: 900;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 16px; font-size: 10px; font-weight: 600; color: var(--text-muted); transition: var(--transition); }
    .bottom-nav-item.active { color: var(--indigo); }
    .bottom-nav-item svg { width: 22px; height: 22px; }
}

/* Reg tipo btn */
.reg-tipo-btn { user-select: none; }
.reg-tipo-active { border-color: var(--indigo) !important; background: var(--primary-light); color: var(--indigo); }

/* ============================================================
   Mobile Improvements — All Pages
   ============================================================ */

/* --- Auth pages --- */
@media (max-width: 480px) {
    .auth-page { padding: 24px 16px; align-items: flex-start; }
    .auth-card { padding: 28px 20px; border-radius: var(--radius-lg); }
    .auth-title { font-size: 22px; }
    .auth-subtitle { margin-bottom: 24px; }
}

/* --- Header mobile: esconde botões Entrar/Cadastrar (estão no menu drawer) --- */
@media (max-width: 767px) {
    .nav-actions a.btn { display: none; }
}

/* --- Hero mobile --- */
@media (max-width: 640px) {
    .hero { padding: 44px 0 52px; }
    .hero-stats { gap: 16px; }
    .hero-stat strong { font-size: 24px; }
}
@media (max-width: 480px) {
    .hero-search-wrap {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        border-radius: var(--radius);
        align-items: stretch;
    }
    .hero-search-wrap svg { display: none; }
    .hero-search-wrap input { padding: 10px 0; font-size: 14px; }
    .hero-search-wrap .btn { width: 100%; border-radius: var(--radius-sm); justify-content: center; }
}

/* --- Filter bar: horizontal scroll on mobile --- */
@media (max-width: 640px) {
    .filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
        scrollbar-width: none;
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .filter-bar::-webkit-scrollbar { display: none; }
    .filter-chip { flex-shrink: 0; }
}

/* --- Section header mobile --- */
@media (max-width: 480px) {
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
}

/* --- Event cards mobile --- */
@media (max-width: 480px) {
    .event-card-featured-body { padding: 20px 16px; }
    .event-card-featured-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .event-card-featured-footer .btn { width: 100%; justify-content: center; }
    .event-detail-banner { border-radius: var(--radius); }
    .event-detail-header { padding: 24px 0 16px; }
    .event-detail-title { font-size: 22px; margin-bottom: 14px; }
}

/* --- Tables mobile: min-width ensures scroll works --- */
@media (max-width: 900px) {
    .table-wrapper table { min-width: 580px; }
    table thead th { padding: 10px 12px; }
    table tbody td { padding: 11px 12px; }
}

/* --- Admin layout mobile improvements --- */
@media (max-width: 640px) {
    .admin-content { padding: 20px 16px; }
    .admin-page-header { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 24px; }
    .admin-page-header > a.btn,
    .admin-page-header > button.btn { width: 100%; justify-content: center; }
    .admin-page-title { font-size: 20px; }
    .admin-page-subtitle { font-size: 13px; }
}
@media (max-width: 380px) {
    .admin-content { padding: 14px 12px; }
}

/* --- Admin tabs mobile: fica na posição normal da página (não gruda ao rolar) --- */
.admin-tabs-mobile {
    position: relative;
    scrollbar-width: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.admin-tabs-mobile::-webkit-scrollbar { display: none; }

/* --- Filter forms inside cards: stack on mobile --- */
@media (max-width: 640px) {
    .admin-filter-form {
        flex-direction: column !important;
    }
    .admin-filter-form .search-box,
    .admin-filter-form select.form-control,
    .admin-filter-form .form-group { width: 100% !important; min-width: unset !important; flex: none !important; }
    .admin-filter-form button[type="submit"],
    .admin-filter-form a.btn { width: 100%; justify-content: center; }
}

/* --- Toast: above bottom nav on mobile --- */
@media (max-width: 767px) {
    #toast-container {
        bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom, 0px));
        right: 12px;
        left: 12px;
        align-items: stretch;
    }
    .toast { max-width: 100%; }
}

/* --- Inscricao layout mobile --- */
@media (max-width: 480px) {
    .inscricao-layout { padding: 20px 0 48px; gap: 20px; }
}

/* --- Results search bar mobile --- */
@media (max-width: 640px) {
    .results-search-bar { grid-template-columns: 1fr; }
}

/* --- Profile mobile --- */
@media (max-width: 480px) {
    .profile-header { padding: 28px 0 44px; }
    .profile-name { font-size: 20px; }
    .profile-avatar-big { width: 60px; height: 60px; font-size: 22px; }
    .profile-tabs { padding: 0 12px; }
    .profile-tab { padding: 12px 10px; font-size: 13px; gap: 5px; }
    .profile-tab svg { display: none; }
}


/* --- Stat pills (usuarios page) mobile --- */
@media (max-width: 480px) {
    .stat-pill { flex: 1 1 calc(50% - 6px); min-width: 140px; }
}

/* --- Footer mobile --- */
@media (max-width: 640px) {
    .footer-grid {
        padding: 24px 0 16px;
        gap: 16px;
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-brand {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    .footer-brand p { display: none; }
    .footer-col:last-child { grid-column: 1 / -1; }
    .footer-col h4 { font-size: 10px; margin-bottom: 8px; }
    .footer-col ul { gap: 6px; }
    .footer-col a { font-size: 12px; }
    .footer-bottom { font-size: 11px; padding: 12px 0; }
}

/* --- Form rows: stack on very small screens --- */
@media (max-width: 380px) {
    .form-row-2 { grid-template-columns: 1fr !important; }
}

/* --- Cat rows (evento-form) mobile --- */
@media (max-width: 767px) {
    .cat-row > div { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
    .cat-row > div { grid-template-columns: 1fr !important; }
}

/* --- Card on mobile: reduce padding --- */
@media (max-width: 480px) {
    .card[style*="padding:28px"] { padding: 20px !important; }
}

/* --- Bottom nav refinement --- */
@media (max-width: 767px) {
    .bottom-nav { box-shadow: 0 -2px 12px rgba(0,0,0,.08); }
    .bottom-nav-item { font-size: 9px; padding: 6px 12px; gap: 3px; }
    .bottom-nav-item svg { width: 20px; height: 20px; }
}

/* --- Reg tipo btns on mobile --- */
@media (max-width: 480px) {
    #regTipoSelector { gap: 6px; }
    .reg-tipo-btn { padding: 8px 12px; font-size: 13px; flex: 1; justify-content: center; display: flex; }
}

/* --- Modals: full-screen on very small screens --- */
@media (max-width: 480px) {
    [id^="modal"] > div {
        padding: 24px 20px !important;
        border-radius: var(--radius) !important;
    }
}

/* --- Admin content card padding on mobile --- */
@media (max-width: 480px) {
    .admin-content .card[style*="padding:24px"],
    .admin-content .card[style*="padding:20px"] { padding: 16px !important; }
}

/* --- Resultado form grid: one column on mobile --- */
@media (max-width: 640px) {
    .res-form-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 380px) {
    .res-form-grid { grid-template-columns: 1fr !important; }
}
