/* ============================================
   SISTEMA DE INGRESSOS - ESTILO PÚBLICO MODERNO
   ============================================ */

:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Safe area para dispositivos com notch */
    --safe-area-top: env(safe-area-inset-top, 0);
    --safe-area-bottom: env(safe-area-inset-bottom, 0);
    --safe-area-left: env(safe-area-inset-left, 0);
    --safe-area-right: env(safe-area-inset-right, 0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
    padding-bottom: var(--safe-area-bottom);
}

/* Regras globais para responsividade do banner slider */
.banner-slider-section {
    max-width: 100%;
    box-sizing: border-box;
}

.banner-image {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .container, .container-fluid, main, section {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }
    
    .banner-slider-section,
    .banner-slider-container,
    .banner-slider,
    .banner-slide,
    .banner-link,
    .banner-image {
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }
}

/* ============================================
   TOP BANNER
   ============================================ */

.top-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.75rem 0;
    padding-top: calc(0.75rem + var(--safe-area-top));
    text-align: center;
    font-size: 0.9rem;
}

.top-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.top-banner-content i {
    font-size: 1rem;
}

/* ============================================
   NAVBAR SIMPLES
   ============================================ */

.navbar-simple {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding-top: var(--safe-area-top);
}

.navbar-simple-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.navbar-simple-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-simple-brand i {
    font-size: 1.5rem;
}

.navbar-simple-brand:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.navbar-simple-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    align-items: center;
}

.navbar-simple-menu li {
    margin: 0;
    padding: 0;
}

.navbar-simple-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    position: relative;
}

.navbar-simple-menu a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.navbar-simple-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.navbar-simple-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.nav-user-menu {
    position: relative;
}

.nav-user-simple {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.nav-user-simple:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-user-simple i:last-child {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.nav-user-simple[aria-expanded="true"] i:last-child {
    transform: rotate(180deg);
}

.dropdown-simple {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.dropdown-simple.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-simple a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-simple a:hover {
    background: var(--light-color);
    color: var(--primary-color);
    text-decoration: none;
}

.dropdown-simple a i {
    width: 18px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.dropdown-divider-simple {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.logout-link {
    color: var(--danger-color) !important;
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: var(--danger-color) !important;
}

.logout-link i {
    color: var(--danger-color) !important;
}

.nav-login {
    color: var(--text-color) !important;
}

.nav-register {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 20px;
}

.nav-register:hover {
    background: var(--primary-dark);
    color: white !important;
}

.navbar-simple-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
}

.navbar-simple-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: 0.3s;
}

/* Área mínima de toque (44x44px) para acessibilidade em mobile */
.navbar-simple-toggle {
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.navbar-simple-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.navbar-simple-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-simple-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.menu-overlay.active {
    display: block;
}

/* Responsive Menu */
@media (max-width: 768px) {
    .navbar-simple-container {
        padding: 0.75rem 1rem;
    }
    
    .navbar-simple-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 4rem 0 1rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .navbar-simple-menu.active {
        left: 0;
        -webkit-overflow-scrolling: touch;
    }
    
    .navbar-simple-menu li {
        width: 100%;
    }
    
    .navbar-simple-menu a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar-simple-menu a.active::after {
        display: none;
    }
    
    .navbar-simple-menu a.active {
        background: rgba(102, 126, 234, 0.1);
        border-left: 4px solid var(--primary-color);
        color: var(--primary-color);
    }
    
    .nav-user-menu {
        width: 100%;
    }
    
    .nav-user-simple {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown-simple {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
        padding: 0;
        width: 100%;
        background: var(--light-color);
    }
    
    .dropdown-simple.show {
        display: block;
    }
    
    .dropdown-simple a {
        padding: 0.875rem 1.5rem 0.875rem 3rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar-simple-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .navbar-simple-menu {
        width: 85%;
    }
}

@media (max-width: 360px) {
    .navbar-simple-brand span {
        font-size: 0.95rem;
    }
    
    .top-banner-content span {
        font-size: 0.75rem;
    }
}

/* ============================================
   NAVBAR - DESIGN MODERNO (Mantido para compatibilidade)
   ============================================ */

.navbar-public {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    overflow: visible;
}

.navbar-public.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-wrapper {
    width: 100%;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

/* Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

.navbar-brand i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text {
    white-space: nowrap;
}

/* Search Bar */
.navbar-search {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.search-form {
    width: 100%;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--light-color);
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-icon {
    color: #9ca3af;
    font-size: 1rem;
    margin-right: 0.75rem;
    pointer-events: none;
}

.search-wrapper:focus-within .search-icon {
    color: var(--primary-color);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-color);
    padding: 0.25rem 0;
    min-width: 0;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #9ca3af;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: 0.5rem;
}

.search-clear:hover {
    background: var(--danger-color);
    color: white;
}

/* Menu Items */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 10003;
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
}

.nav-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link i {
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    font-weight: 600;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary-color);
    border-radius: 0 2px 2px 0;
}

.nav-link-btn {
    border: 2px solid var(--border-color);
    background: transparent;
}

.nav-link-btn:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.nav-link-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white !important;
    border: none;
}

.nav-link-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
}

/* User Dropdown */
.nav-dropdown {
    position: relative;
    z-index: 10002;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.nav-user-btn:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    color: var(--primary-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: #9ca3af;
}

.nav-user-btn[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 320px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10002;
    overflow: visible;
    pointer-events: auto !important;
    touch-action: manipulation;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-header {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-details strong {
    display: block;
    color: var(--dark-color);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-email {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    pointer-events: auto !important;
    position: relative;
    z-index: 10003;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--primary-color);
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateX(4px);
}

.dropdown-item.active {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.dropdown-item-danger {
    color: var(--danger-color);
    font-weight: 600;
    margin-top: 0.25rem;
}

.dropdown-item-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    transform: translateX(4px);
}

.dropdown-item-danger i {
    color: var(--danger-color);
    font-size: 1.1rem;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
    border: none;
}

/* Mobile Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-line {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle:hover .toggle-line {
    background: var(--primary-color);
}

.navbar-toggle[aria-expanded="true"] .toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggle[aria-expanded="true"] .toggle-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggle[aria-expanded="true"] .toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #4c63d2 0%, #6b46c1 50%, #9333ea 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-placeholder {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-placeholder i {
    font-size: 5rem;
    opacity: 0.8;
}

.hero-placeholder-text {
    font-size: 1.5rem;
    font-weight: 600;
}

.hero-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(102, 126, 234, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.hero-overlay-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.hero-overlay-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-hero-primary {
    background: white;
    color: var(--primary-color);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================================
   QUICK NAVIGATION
   ============================================ */

.quick-nav-section {
    padding: 3rem 0;
    background: white;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.quick-nav-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.quick-nav-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    text-decoration: none;
    color: inherit;
}

.quick-nav-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.quick-nav-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.quick-nav-content p {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 5rem 0;
    width: 100%;
    max-width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    overflow-x: hidden;
}

/* ============================================
   EVENT CARDS
   ============================================ */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.event-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.event-card-body {
    padding: 1.5rem;
}

.event-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.event-card-info i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    width: 20px;
}

.event-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
}

.event-card-footer {
    padding: 1rem 1.5rem;
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-card-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--success-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.event-card-badge.warning {
    background: var(--warning-color);
}

.event-card-badge.danger {
    background: var(--danger-color);
}

/* ============================================
   EVENT DETAILS
   ============================================ */

.event-detail-header {
    background: white;
    padding: 2rem 0;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow-x: hidden;
}

.event-detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    overflow-x: hidden;
}

.event-detail-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    min-width: 0;
}

.event-detail-main > div {
    min-width: 0;
}

.event-detail-main .price-box {
    order: 0;
}

.price-box-sticky {
    position: sticky;
    top: 100px;
}

@media (max-width: 768px) {
    .price-box-sticky {
        position: static;
    }
}

.event-detail-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    object-fit: cover;
}

.event-detail-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.event-detail-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.event-detail-header-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.event-detail-title {
    font-size: 2.5rem;
    margin: 0;
    color: var(--dark-color);
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.event-detail-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.event-detail-breadcrumb {
    margin-bottom: 1rem;
}

.event-detail-description {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.info-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    flex-shrink: 0;
}

.info-item-content h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.info-item-content p {
    color: #6b7280;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.price-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.price-box h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.price-box h4,
.price-box .price-value,
.price-box .price-detail,
.price-box > div {
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price-detail {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.btn-buy {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
    text-decoration: none;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
    padding-bottom: calc(1.5rem + var(--safe-area-bottom));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section .footer-social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-section .footer-social-icons a {
    color: #9ca3af;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.footer-section .footer-social-icons a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

.footer-bottom p {
    margin: 0;
    width: 100%;
}

.footer-bottom p + p {
    margin-top: 0.5rem;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Animações suaves para elementos interativos */
.event-card,
.quick-nav-card,
.btn,
input,
select,
textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects melhorados */
.event-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.quick-nav-card:hover {
    transform: translateY(-5px) scale(1.01);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

/* ============================================
   TICKET TYPE CARDS
   ============================================ */

.ticket-type-card {
    position: relative;
    transition: all 0.3s ease;
}

.ticket-type-card:hover {
    transform: translateY(-4px);
}

.ticket-type-card input[type="number"] {
    -moz-appearance: textfield;
}

.ticket-type-card input[type="number"]::-webkit-outer-spin-button,
.ticket-type-card input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ============================================
   FORMS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* ============================================
   LOADING STATES & SKELETON SCREENS
   ============================================ */

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    padding-top: var(--safe-area-top);
    padding-right: calc(20px + var(--safe-area-right));
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid;
    min-width: 300px;
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.info {
    border-left-color: var(--primary-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error .toast-icon {
    color: var(--danger-color);
}

.toast.info .toast-icon {
    color: var(--primary-color);
}

.toast.warning .toast-icon {
    color: var(--warning-color);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.toast-message {
    font-size: 0.9rem;
    color: #6b7280;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.toast-close:hover {
    color: var(--dark-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOutRight 0.3s ease forwards;
}

/* ============================================
   BUTTON LOADING STATES
   ============================================ */

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   FOCUS STATES (Acessibilidade)
   ============================================ */

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 0;
}

/* Skip to main content link (Acessibilidade) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10001;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only (Acessibilidade) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .container-custom {
        padding: 0 1rem;
    }
    
    .hero-content-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .event-detail-main {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .navbar-search {
        max-width: 500px;
        min-width: 250px;
        margin: 0 1rem;
    }
}

@media (max-width: 1024px) {
    .navbar-container {
        grid-template-columns: auto 1fr auto;
        gap: 1.5rem;
        padding: 1rem 1.5rem;
    }
    
    .navbar-search {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .top-banner {
        font-size: 0.8rem;
        padding: 0.5rem 0;
        padding-top: calc(0.5rem + var(--safe-area-top));
    }
    
    .top-banner-content span {
        display: inline;
    }
    
    .toast-container {
        top: auto;
        bottom: calc(20px + var(--safe-area-bottom));
        left: 1rem;
        right: 1rem;
        max-width: none;
        padding: 0;
    }

    .navbar-container {
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
        padding: 1rem;
    }

    .navbar-search {
        display: none;
    }

    .navbar-actions {
        position: relative;
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        max-width: 320px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        gap: 0.5rem;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 9999;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-toggle {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.875rem 1rem;
        border-radius: 8px;
    }

    .nav-link.active::before {
        left: 0;
        top: 0;
        transform: none;
        width: 100%;
        height: 3px;
        border-radius: 0;
    }

    /* Dropdown no mobile */
    .nav-dropdown {
        width: 100%;
    }

    .nav-user-btn {
        width: 100%;
        justify-content: space-between;
        border-radius: 8px;
        padding: 0.875rem 1rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
        border-radius: 0;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
        width: 100%;
        max-width: 100%;
        min-width: auto;
        display: none;
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-item {
        padding: 0.875rem 1rem;
        border-radius: 0;
        pointer-events: auto;
        cursor: pointer;
        z-index: 10;
        position: relative;
    }

    .dropdown-header {
        margin-bottom: 0.75rem;
    }
    
    /* Página de Detalhes do Evento - Mobile */
        .event-detail-section {
        overflow-x: hidden;
    }
    
    .event-detail-section .container-custom {
        overflow-x: hidden;
    }
    
    .event-detail-header {
        padding: 1rem 0;
    }
    
    .event-detail-content {
        padding: 0 1rem;
    }
    
    .event-detail-content nav {
        font-size: 0.8rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }
    
    .event-detail-content nav a,
    .event-detail-content nav span {
        white-space: nowrap;
    }
    
    .event-detail-content nav span {
        margin: 0 0.25rem;
    }
    
    .event-detail-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1rem;
    }
    
    /* Sidebar (price-box) aparece primeiro no mobile para CTA visível */
    .event-detail-main > div:last-child {
        order: -1;
    }
    
    .event-detail-main > div:first-child {
        order: 1;
    }
    
    .event-detail-info {
        padding: 1.5rem;
    }
    
    .event-detail-info h1 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }
    
    .event-detail-header-row,
    .event-detail-info > div:first-child {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    
    .event-detail-title {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }
    
    .event-detail-actions,
    .event-detail-info > div:first-child > div:last-child {
        width: 100%;
        justify-content: flex-start;
    }
    
    .price-box {
        position: static !important;
        margin-top: 0;
        padding: 1.5rem;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    .btn-buy {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .info-item i {
        font-size: 1.25rem;
    }
    
    /* Botões de ação (favorito, compartilhar) */
    .event-detail-actions button,
    .event-detail-actions .dropdown button,
    .event-detail-info > div:first-child > div:last-child button,
    .event-detail-info > div:first-child > div:last-child .dropdown {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem !important;
        min-height: 44px;
    }
    
    /* Menu de compartilhar - posicionado para não sair da tela */
    #shareMenu {
        left: 0 !important;
        right: auto !important;
        min-width: 180px !important;
        max-width: min(280px, calc(100vw - 2rem)) !important;
    }
    
    /* Avaliações */
    .event-detail-info > div:last-child {
        margin-top: 1.5rem;
    }
    
    .star-rating {
        gap: 0.25rem;
    }
    
    .star-rating label {
        font-size: 1.5rem;
    }
    
    /* Página de Compra - Mobile */
    .section {
        padding: 1.5rem 0;
    }
    
    .section > .container-custom > div[style*="max-width"] {
        padding: 0 1rem;
    }
    
    .event-detail-info h1 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Grid de botões de ingresso/inscrição */
    div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Botões de adicionar */
    button[onclick*="adicionar"] {
        padding: 1.25rem !important;
        font-size: 1rem !important;
    }
    
    button[onclick*="adicionar"] i {
        font-size: 1.5rem !important;
    }
    
    /* Lista de ingressos/inscrições */
    #ingressos_container > div,
    #inscricoes_container > div {
        padding: 1rem !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    #ingressos_container button,
    #inscricoes_container button {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    /* Resumo do total */
    .alert.alert-info[style*="gradient"] {
        padding: 1.5rem !important;
    }
    
    .alert.alert-info[style*="gradient"] div:first-child {
        font-size: 1rem !important;
    }
    
    .alert.alert-info[style*="gradient"] div:nth-child(2) {
        font-size: 2rem !important;
    }
    
    /* Botões de ação na compra */
    div[style*="display: flex"][style*="gap: 1rem"] {
        flex-direction: column;
    }
    
    div[style*="display: flex"][style*="gap: 1rem"] button,
    div[style*="display: flex"][style*="gap: 1rem"] a {
        width: 100% !important;
        min-width: auto !important;
    }
    
    /* Página de Lista de Eventos - Mobile */
    .events-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .event-card {
        margin-bottom: 0;
    }
    
    .event-card-image {
        height: 200px;
    }
    
    .event-card-body {
        padding: 1.25rem;
    }
    
    .event-card-title {
        font-size: 1.1rem;
    }
    
    .event-card-info {
        font-size: 0.9rem;
    }
    
    .event-card-price {
        font-size: 1.25rem;
    }
    
    /* Breadcrumb */
    nav[style*="margin-bottom"] {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }
    
    /* Títulos de seção */
    h1[style*="font-size: 2.5rem"] {
        font-size: 1.75rem !important;
    }
    
    h3[style*="font-size: 1.5rem"],
    h3[style*="font-size: 1.3rem"] {
        font-size: 1.25rem !important;
    }
    
    /* Formulários */
    textarea,
    input[type="text"],
    input[type="email"],
    input[type="number"],
    select {
        font-size: 16px !important; /* Evita zoom no iOS */
    }
    
    .hero-content-split {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .quick-nav-grid {
        grid-template-columns: 1fr;
    }

    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .event-detail-main {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn-hero {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .toast-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Container customizado */
    .container-custom {
        padding: 0 1rem;
    }
    
    /* Página de Detalhes - Telas muito pequenas */
    .event-detail-header {
        padding: 0.75rem 0;
    }
    
    .event-detail-content {
        padding: 0 0.75rem;
    }
    
    .event-detail-info {
        padding: 1rem;
    }
    
    .event-detail-title,
    .event-detail-info h1 {
        font-size: 1.25rem !important;
    }
    
    .event-detail-image {
        margin-bottom: 1rem;
        max-height: 250px;
        object-fit: cover;
    }
    
    .price-box {
        padding: 1.25rem;
    }
    
    .price-value {
        font-size: 1.75rem;
    }
    
    .price-box h4 {
        font-size: 1.1rem;
    }
    
    .btn-buy {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .info-item {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .info-item i {
        font-size: 1.1rem;
        width: 24px;
    }
    
    /* Botões de ação */
    .event-detail-info > div:first-child > div:last-child {
        flex-wrap: wrap;
    }
    
    .event-detail-info > div:first-child > div:last-child button {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.6rem !important;
    }
    
    /* Avaliações */
    .star-rating label {
        font-size: 1.25rem;
    }
    
    textarea {
        font-size: 16px !important;
        padding: 0.625rem !important;
    }
    
    /* Página de Compra - Telas muito pequenas */
    .event-detail-info h1 {
        font-size: 1.25rem !important;
        text-align: left !important;
    }
    
    div[style*="background: white"][style*="border: 2px"] {
        padding: 1rem !important;
    }
    
    button[onclick*="adicionar"] {
        padding: 1rem !important;
        font-size: 0.95rem !important;
    }
    
    button[onclick*="adicionar"] i {
        font-size: 1.25rem !important;
    }
    
    button[onclick*="adicionar"] div div:first-child {
        font-size: 0.8rem !important;
    }
    
    button[onclick*="adicionar"] div div:nth-child(2) {
        font-size: 1.25rem !important;
    }
    
    .alert.alert-info[style*="gradient"] {
        padding: 1.25rem !important;
    }
    
    .alert.alert-info[style*="gradient"] div:nth-child(2) {
        font-size: 1.75rem !important;
    }
    
    /* Cards de eventos */
    .event-card-body {
        padding: 1rem;
    }
    
    .event-card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .event-card-info {
        font-size: 0.85rem;
        gap: 0.375rem;
    }
    
    .event-card-price {
        font-size: 1.1rem;
        margin-top: 0.75rem;
    }
    
    .event-card-footer {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Breadcrumb */
    nav[style*="margin-bottom"] {
        font-size: 0.75rem;
    }
    
    nav[style*="margin-bottom"] a,
    nav[style*="margin-bottom"] span {
        padding: 0.25rem 0;
    }
}

/* High contrast mode (Acessibilidade) */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --text-color: #000;
    }
    
    .event-card {
        border: 2px solid var(--border-color);
    }
}

/* Reduced motion (Acessibilidade) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ============================================
   FAVORITOS
   ============================================ */

.btn.favoritado {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

.btn.favoritado i {
    color: white !important;
}

/* ============================================
   AVALIAÇÕES COM ESTRELAS
   ============================================ */

.star-rating {
    display: flex;
    gap: 0.5rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #fbbf24;
    transform: scale(1.1);
}

.star-rating input[type="radio"]:checked ~ label,
.star-rating input[type="radio"]:checked + label {
    color: #fbbf24;
}

.star-rating input[type="radio"]:checked ~ label {
    color: #fbbf24;
}

/* ============================================
   DROPDOWN MENU
   ============================================ */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    min-width: 200px;
    padding: 0.5rem;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu button {
    width: 100%;
    padding: 0.75rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 4px;
    transition: background 0.2s ease;
    color: var(--text-color);
}

.dropdown-menu button:hover {
    background: var(--light-color);
}

/* Print styles */
@media print {
    .navbar-public,
    .footer,
    .top-banner,
    .btn,
    .navbar-toggle {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* ============================================
   AJUSTES RESPONSIVOS ADICIONAIS
   ============================================ */

/* Garantir que imagens sejam responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Áreas de toque maiores em botões principais (mobile) */
@media (max-width: 768px) {
    .btn-buy,
    .btn-hero,
    .btn-search {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }
}

/* Ajustes para elementos com display flex inline */
@media (max-width: 768px) {
    /* Informações do evento na página de compra */
    div[style*="display: flex"][style*="flex-wrap: wrap"][style*="gap: 1.5rem"] {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    /* Avaliação média na página de detalhes */
    div[style*="display: flex"][style*="align-items: center"][style*="gap: 1rem"][style*="padding: 1rem"] {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem !important;
    }
    
    div[style*="font-size: 2rem"][style*="font-weight: 700"] {
        font-size: 1.75rem !important;
    }
    
    /* Lista de avaliações */
    div[style*="padding: 1.5rem"][style*="border-bottom"] {
        padding: 1rem !important;
    }
    
    div[style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Formulário de avaliação */
    div[style*="margin-bottom: 2rem"][style*="padding: 1.5rem"] {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Select de tipo na compra */
    select[name="tipo"] {
        font-size: 16px !important;
        padding: 0.875rem !important;
    }
    
    /* Cards de informações do evento na compra */
    div[style*="background: white"][style*="border: 2px"][style*="padding: 2rem"] {
        padding: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    /* Ajustes finais para telas muito pequenas */
    div[style*="font-size: 3rem"] {
        font-size: 2rem !important;
    }
    
    div[style*="font-size: 2rem"] {
        font-size: 1.5rem !important;
    }
    
    div[style*="font-size: 1.5rem"] {
        font-size: 1.25rem !important;
    }
    
    div[style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
    }
    
    /* Padding reduzido */
    div[style*="padding: 2rem"] {
        padding: 1rem !important;
    }
    
    div[style*="padding: 1.5rem"] {
        padding: 1rem !important;
    }
    
    /* Margens reduzidas */
    div[style*="margin-bottom: 2rem"] {
        margin-bottom: 1.5rem !important;
    }
    
    div[style*="margin-bottom: 1.5rem"] {
        margin-bottom: 1rem !important;
    }
    
    /* Gap reduzido */
    div[style*="gap: 1.5rem"] {
        gap: 1rem !important;
    }
    
    div[style*="gap: 1rem"] {
        gap: 0.75rem !important;
    }
    
    /* Font sizes reduzidos */
    span[style*="font-size: 0.9rem"] {
        font-size: 0.85rem !important;
    }
    
    /* Botões menores */
    button[style*="padding: 1.5rem"] {
        padding: 1rem !important;
    }
    
    button[style*="padding: 1.25rem"] {
        padding: 0.875rem !important;
    }
}
