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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Ticket category colors */
    --cat-pass: #6366f1;
    --cat-single-day: #06b6d4;
    --cat-addon: #8b5cf6;
    --cat-vip: #f59e0b;
    --cat-student: #22c55e;
    --cat-business: #3b82f6;
    --cat-free: #10b981;
    --cat-expo: #ec4899;
    
    /* Conference tag colors */
    --tag-b2b: #3b82f6;
    --tag-b2c: #8b5cf6;
    --tag-developer: #6366f1;
    --tag-indie: #22c55e;
    --tag-networking: #06b6d4;
    --tag-investor: #f59e0b;
    --tag-expo: #ec4899;
    --tag-awards: #eab308;
    --tag-press: #ef4444;
    --tag-esports: #f97316;
    --tag-mobile: #14b8a6;
    --tag-vr-ar: #a855f7;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Global link styles to prevent visited color issues */
a {
    color: var(--primary);
}

a:visited {
    color: var(--primary);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(180deg, var(--surface) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-bottom: 1px solid var(--surface-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.35rem;
    font-weight: bold;
    color: var(--text) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.logo:visited {
    color: var(--text) !important;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 32px;
    width: 32px;
}

.hero-logo {
    height: 64px;
    width: 64px;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Mobile hamburger menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface-light);
}

.nav-icon {
    font-size: 1rem;
}

/* Responsive nav */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        gap: 0.5rem;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
        z-index: 100;
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links a {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .nav-links a:hover {
        transform: translateX(5px);
    }
    
    .nav-links .planner-link,
    .nav-links .submit-link {
        margin-top: 0.5rem;
    }
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--surface-light);
    margin-top: 4rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--primary);
}

.btn:visited {
    color: var(--primary);
}

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

.btn.primary:hover { background: var(--primary-dark); }

.btn.secondary {
    background: var(--surface-light);
    color: var(--text);
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
    border-radius: 16px;
    margin-bottom: 3rem;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { color: var(--text-muted); font-size: 1.25rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; }

/* Conference Grid */
.conf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.conf-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--surface-light);
    transition: all 0.2s;
    position: relative;
}

.conf-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.conf-card h3 { margin-bottom: 0.5rem; }
.conf-date { color: var(--primary); font-weight: 500; }
.conf-location { color: var(--text-muted); margin: 0.5rem 0; }

.conf-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: var(--surface-light);
}

.conf-card.soon .conf-status { background: var(--warning); color: black; }
.conf-card.ongoing .conf-status { background: var(--success); }

.conf-meta { display: flex; gap: 1rem; margin-top: 1rem; }
.conf-focus, .conf-price {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: var(--primary);
    border-radius: 4px;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    color: white;
}

/* Conference tag colors */
.tag-b2b { background: var(--tag-b2b) !important; }
.tag-b2c { background: var(--tag-b2c) !important; }
.tag-developer { background: var(--tag-developer) !important; }
.tag-indie { background: var(--tag-indie) !important; }
.tag-networking { background: var(--tag-networking) !important; }
.tag-investor { background: var(--tag-investor) !important; }
.tag-expo { background: var(--tag-expo) !important; }
.tag-awards { background: var(--tag-awards) !important; color: #1e293b !important; }
.tag-press { background: var(--tag-press) !important; }
.tag-esports { background: var(--tag-esports) !important; }
.tag-mobile { background: var(--tag-mobile) !important; }
.tag-vr\/ar, .tag-vr-ar { background: var(--tag-vr-ar) !important; }

/* Conference List */
.conf-list { margin: 1rem 0; }

.conf-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--surface);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s;
}

.conf-row:hover { background: var(--surface-light); }
.conf-row.urgent { border-left: 4px solid var(--warning); }

.view-all {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    margin-top: 1rem;
}

/* Filters */
.filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--surface);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
}

/* Calendar */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.month-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1rem;
    min-height: 150px;
}

.month-card h3 { margin-bottom: 1rem; color: var(--text-muted); }
.month-card.has-events h3 { color: var(--primary); }

.month-events {
    list-style: none;
}

.month-events li { margin-bottom: 0.5rem; }
.month-events a {
    color: var(--text);
    text-decoration: none;
}
.month-events a:hover { color: var(--primary); }

.no-events { color: var(--text-muted); font-size: 0.9rem; }

/* Conference Detail */
.conf-detail { max-width: 900px; margin: 0 auto; }

.conf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.conf-header h1 { font-size: 2rem; }

.status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--surface-light);
    font-size: 0.9rem;
}

.status.soon { background: var(--warning); color: black; }
.status.ongoing { background: var(--success); }

.conf-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
}

.info-card h3 { color: var(--text-muted); margin-bottom: 0.5rem; font-size: 0.9rem; }
.info-card .big { font-size: 1.25rem; font-weight: 600; }

.conf-description, .conf-features, .booking-tip, .related {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.conf-description h2, .conf-features h2, .booking-tip h2, .related h2 {
    margin-bottom: 1rem;
}

.feature-list { list-style: none; }
.feature-list li { padding: 0.5rem 0; }

.booking-tip {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--text-muted); }

/* Guides */
.guide-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.guide-content h3 { margin: 1.5rem 0 0.5rem; color: var(--primary); }
.guide-content ul { margin-left: 1.5rem; }
.guide-content li { margin-bottom: 0.5rem; }

/* Booking Table */
.booking-intro { margin-bottom: 2rem; color: var(--text-muted); }

.booking-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.booking-table th, .booking-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--surface-light);
}

.booking-table th { background: var(--surface); color: var(--text-muted); }
.booking-table a { color: var(--primary); }

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tip {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
}

.tip h3 { margin-bottom: 0.5rem; }
.tip p { color: var(--text-muted); }

/* Sections */
section { margin-bottom: 3rem; }
section h2 { margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 768px) {
    .main-nav { flex-direction: column; gap: 1rem; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .hero h1 { font-size: 1.75rem; }
    .hero-actions { flex-direction: column; }
    .conf-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .calendar-header { flex-direction: column; gap: 1rem; }
}

/* Submit Form */
.submit-page { max-width: 700px; margin: 0 auto; }
.submit-page h1 { margin-bottom: 0.5rem; }
.subtitle { color: var(--text-muted); margin-bottom: 2rem; }

.submit-form {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--surface-light);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.alert.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid var(--success);
}

.alert.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--danger);
}

.submit-link {
    background: var(--primary) !important;
    color: white !important;
    font-weight: 500;
}

.submit-link:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
}

.planner-link {
    background: linear-gradient(135deg, #f59e0b, #22c55e) !important;
    color: white !important;
    font-weight: 500;
}

.planner-link:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Conference Images */
.conf-card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    width: calc(100% + 3rem);
}

.conf-hero-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
}

/* Conference detail page - category tags */
.conf-categories {
    margin-top: 2rem;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
}

.conf-categories h2 {
    margin-bottom: 1rem;
    color: var(--text);
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: var(--surface-light);
    color: white !important;
    border-radius: 20px;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.category-tag:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Individual tag colors */
.category-tag[href*="tag=B2B"] { background: var(--tag-b2b); }
.category-tag[href*="tag=B2C"] { background: var(--tag-b2c); }
.category-tag[href*="tag=Developer"] { background: var(--tag-developer); }
.category-tag[href*="tag=Indie"] { background: var(--tag-indie); }
.category-tag[href*="tag=Networking"] { background: var(--tag-networking); }
.category-tag[href*="tag=Investor"] { background: var(--tag-investor); }
.category-tag[href*="tag=Expo"] { background: var(--tag-expo); }
.category-tag[href*="tag=Awards"] { background: var(--tag-awards); color: #1e293b !important; }
.category-tag[href*="tag=Press"] { background: var(--tag-press); }
.category-tag[href*="tag=Esports"] { background: var(--tag-esports); }
.category-tag[href*="tag=Mobile"] { background: var(--tag-mobile); }
.category-tag[href*="tag=VR"] { background: var(--tag-vr-ar); }

/* Related conferences with image backgrounds */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.related-card {
    position: relative;
    display: block;
    border-radius: 12px;
    text-decoration: none;
    background-color: var(--surface);
    min-height: 160px;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.related-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    transform: scale(1.1);
}

.related-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
    transition: background 0.2s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.related-card:hover::before {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.related-card-content {
    position: relative;
    z-index: 1;
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.related-card h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.related-card p {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.related-location {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Ticket Options Table */
.conf-tickets {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.conf-tickets h2 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.tickets-table-wrapper {
    overflow-x: auto;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

.tickets-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.tickets-table th,
.tickets-table td {
    padding: 0.875rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--surface-light);
    vertical-align: top;
}

/* Column widths - natural flow with constraints */
.tickets-table th:nth-child(1),
.tickets-table td:nth-child(1) {
    width: 22%;
    min-width: 140px;
}

.tickets-table th:nth-child(2),
.tickets-table td:nth-child(2) {
    width: 12%;
    min-width: 90px;
}

.tickets-table th:nth-child(3),
.tickets-table td:nth-child(3) {
    width: 10%;
    min-width: 70px;
    white-space: nowrap;
}

.tickets-table th:nth-child(4),
.tickets-table td:nth-child(4) {
    width: 10%;
    min-width: 70px;
    white-space: nowrap;
}

.tickets-table th:nth-child(5),
.tickets-table td:nth-child(5) {
    width: 46%;
}

.tickets-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg);
}

.tickets-table th:first-child {
    border-radius: 8px 0 0 0;
}

.tickets-table th:last-child {
    border-radius: 0 8px 0 0;
}

.ticket-row {
    transition: background 0.2s;
}

.ticket-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Category-colored left border for ticket rows - subtle styling */
.ticket-row.cat-pass { border-left: 3px solid var(--cat-pass); }
.ticket-row.cat-single-day { border-left: 3px solid var(--cat-single-day); }
.ticket-row.cat-addon { border-left: 3px solid var(--cat-addon); }
.ticket-row.cat-vip { border-left: 3px solid var(--cat-vip); }
.ticket-row.cat-student { border-left: 3px solid var(--cat-student); }
.ticket-row.cat-business { border-left: 3px solid var(--cat-business); }
.ticket-row.cat-free { border-left: 3px solid var(--cat-free); }
.ticket-row.cat-expo { border-left: 3px solid var(--cat-expo); }

.ticket-row.reference {
    opacity: 0.75;
}

.ticket-name strong,
.ticket-name .ticket-restriction {
    display: block;
}

.ticket-name .ticket-restriction {
    margin-top: 0.25rem;
}

.ticket-name strong {
    color: var(--text);
}

.ticket-restriction {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.ticket-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ticket-category.cat-pass { background: var(--cat-pass); color: white; }
.ticket-category.cat-single-day { background: var(--cat-single-day); color: white; }
.ticket-category.cat-addon { background: var(--cat-addon); color: white; }
.ticket-category.cat-vip { background: linear-gradient(135deg, var(--cat-vip), #d97706); color: white; }
.ticket-category.cat-student { background: var(--cat-student); color: white; }
.ticket-category.cat-business { background: var(--cat-business); color: white; }
.ticket-category.cat-free { background: var(--cat-free); color: white; }
.ticket-category.cat-expo { background: var(--cat-expo); color: white; }

.ticket-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.ticket-early {
    color: var(--success);
    font-weight: 500;
}

.ticket-details .ticket-desc,
.ticket-details .ticket-note {
    display: block;
}

.ticket-details .ticket-note {
    margin-top: 0.25rem;
}

.ticket-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ticket-note {
    font-size: 0.8rem;
    color: var(--warning);
    font-style: italic;
}

.tickets-legend {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--surface-light);
}

.legend-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-item.confirmed::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 2px;
}

.legend-item.reference::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--warning);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .conf-tickets {
        padding: 1rem;
    }
    
    .tickets-table th,
    .tickets-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .tickets-legend {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Upcoming Page Redesign */
.upcoming-page {
    max-width: 1100px;
    margin: 0 auto;
}

.upcoming-header {
    text-align: center;
    margin-bottom: 3rem;
}

.upcoming-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.upcoming-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.timeframe-section {
    margin-bottom: 3rem;
}

.timeframe-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.timeframe-header.urgent-header {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.timeframe-icon {
    font-size: 2rem;
}

.timeframe-info {
    flex: 1;
}

.timeframe-info h2 {
    font-size: 1.25rem;
    margin-bottom: 0.125rem;
}

.timeframe-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.timeframe-count {
    background: var(--surface-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Upcoming Cards Grid (for 30 days) */
.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.upcoming-card {
    position: relative;
    display: block;
    border-radius: 12px;
    text-decoration: none;
    background-color: var(--surface);
    min-height: 200px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--surface-light);
}

.upcoming-card.urgent {
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.upcoming-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(6px);
    transform: scale(1.15);
    opacity: 0.6;
}

.upcoming-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.85) 0%, 
        rgba(15, 23, 42, 0.7) 50%,
        color-mix(in srgb, var(--accent-color) 20%, rgba(15, 23, 42, 0.8)) 100%);
    z-index: 1;
    transition: background 0.2s;
}

.upcoming-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.upcoming-card:hover::before {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.75) 0%, 
        rgba(15, 23, 42, 0.6) 50%,
        color-mix(in srgb, var(--accent-color) 30%, rgba(15, 23, 42, 0.7)) 100%);
}

.upcoming-card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.upcoming-card-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: auto;
}

.days-badge {
    background: var(--surface-light);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

.days-badge.urgent {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    animation: pulse 2s infinite;
}

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

.upcoming-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.upcoming-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.upcoming-card .detail-item {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.upcoming-card .detail-item.date {
    color: var(--accent-color, var(--primary));
    font-weight: 500;
}

.upcoming-card-meta {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.upcoming-card .price-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Upcoming Table (for 90 days and This Year) */
.upcoming-table {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
}

.upcoming-table-header {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 120px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--surface-light);
}

.upcoming-table-row {
    position: relative;
    display: block;
    text-decoration: none;
    overflow: hidden;
    transition: background 0.2s;
}

.upcoming-table-row:not(:last-child) {
    border-bottom: 1px solid var(--surface-light);
}

.row-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    transform: scale(1.2);
    opacity: 0;
    transition: opacity 0.3s;
}

.upcoming-table-row:hover .row-bg {
    opacity: 0.15;
}

.upcoming-table-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color, var(--primary));
    opacity: 0;
    transition: opacity 0.2s;
}

.upcoming-table-row:hover::before {
    opacity: 1;
}

.row-content {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 120px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    align-items: center;
    z-index: 1;
}

.upcoming-table-row:hover .row-content {
    background: rgba(99, 102, 241, 0.05);
}

.col-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 500;
}

.conf-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color, var(--primary));
    flex-shrink: 0;
}

.col-date {
    color: var(--accent-color, var(--primary));
    font-weight: 500;
}

.col-location {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mini-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 2px;
}

.conf-location .mini-flag {
    margin-right: 4px;
}

.info-card h3 .mini-flag {
    width: 20px;
    height: 15px;
    margin-right: 6px;
}

.related-location .mini-flag {
    margin-right: 4px;
}

.col-days {
    text-align: right;
}

.days-pill {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--surface-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.days-pill.urgent {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
}

.days-pill.soon {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

@media (max-width: 768px) {
    .upcoming-header h1 {
        font-size: 1.75rem;
    }
    
    .timeframe-header {
        flex-wrap: wrap;
    }
    
    .timeframe-count {
        margin-left: auto;
    }
    
    .upcoming-grid {
        grid-template-columns: 1fr;
    }
    
    .upcoming-table-header {
        display: none;
    }
    
    .row-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .col-name {
        font-size: 1.1rem;
    }
    
    .col-days {
        text-align: left;
    }
}
