/* Brutal Assault Festival Hub - Brutal Metal Aesthetic */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blood-red: #8B0000;
    --dark-red: #450000;
    --death-black: #0a0a0a;
    --gray-metal: #2a2a2a;
    --steel-gray: #3a3a3a;
    --bone-white: #f0f0f0;
    --rust-orange: #cc5500;
    --toxic-green: #39ff14;
    --shadow: rgba(0, 0, 0, 0.8);
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--death-black);
    color: var(--bone-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(69, 0, 0, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #1a0000 100%);
    z-index: -2;
}

.blood-drip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(139, 0, 0, 0.03) 100px,
            rgba(139, 0, 0, 0.03) 102px
        );
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Metal Mania', cursive;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Header */
.main-header {
    background: linear-gradient(180deg, var(--gray-metal) 0%, var(--death-black) 100%);
    border-bottom: 3px solid var(--blood-red);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 30px var(--shadow);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

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

.logo i {
    font-size: 2.5rem;
    color: var(--blood-red);
    animation: skull-pulse 2s infinite;
}

@keyframes skull-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(90deg, var(--blood-red), var(--rust-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background: var(--rust-orange);
    transition: all 0.3s;
    border-radius: 3px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-link {
    color: var(--bone-white);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    background: var(--steel-gray);
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background: var(--blood-red);
    border-color: var(--rust-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.5);
}

.nav-link.active {
    background: var(--blood-red);
    border-color: var(--bone-white);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    background: var(--steel-gray);
    border-radius: 25px;
    border: 2px solid var(--blood-red);
    cursor: pointer;
    transition: all 0.3s;
}

.user-info:hover {
    background: var(--gray-metal);
    border-color: var(--rust-orange);
    transform: translateY(-2px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--rust-orange);
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s;
}

.user-avatar:hover {
    border-color: var(--blood-red);
    transform: scale(1.05);
}

#userName {
    cursor: pointer;
    transition: color 0.3s;
}

#userName:hover {
    color: var(--rust-orange);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blood-red), var(--dark-red));
    color: var(--bone-white);
    border: 2px solid var(--rust-orange);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.6);
    border-color: var(--toxic-green);
}

.btn-secondary {
    background: var(--steel-gray);
    color: var(--bone-white);
    border: 2px solid var(--blood-red);
}

.btn-secondary:hover {
    background: var(--gray-metal);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-logout, .btn-icon {
    background: transparent;
    border: none;
    color: var(--bone-white);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: all 0.3s;
}

.btn-logout:hover, .btn-icon:hover {
    color: var(--blood-red);
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

.section {
    display: none;
    padding: 3rem 0;
    animation: fadeIn 0.5s;
}

.section.active {
    display: block;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--blood-red);
    text-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero-content h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: var(--blood-red);
    text-shadow: 
        0 0 10px rgba(139, 0, 0, 0.8),
        0 0 20px rgba(139, 0, 0, 0.6),
        0 0 30px rgba(139, 0, 0, 0.4);
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch-anim 3s infinite;
}

@keyframes glitch-anim {
    0%, 95%, 100% { transform: translate(0); }
    96% { transform: translate(-2px, 2px); }
    97% { transform: translate(2px, -2px); }
    98% { transform: translate(-2px, -2px); }
    99% { transform: translate(2px, 2px); }
}

/* Countdown */
.countdown-container {
    background: var(--gray-metal);
    border: 3px solid var(--blood-red);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 10px 40px var(--shadow);
}

.countdown-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--rust-orange);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.countdown-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--blood-red);
    font-family: 'Metal Mania', cursive;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.8);
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--bone-white);
    margin-top: 0.5rem;
}

/* Festival Dates */
.festival-dates {
    font-size: 1.2rem;
    margin: 2rem 0;
    color: var(--bone-white);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--gray-metal), var(--steel-gray));
    border: 2px solid var(--blood-red);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.5);
    border-color: var(--rust-orange);
}

.stat-card i {
    font-size: 3rem;
    color: var(--blood-red);
    margin-bottom: 1rem;
}

.stat-card h4 {
    font-size: 2.5rem;
    color: var(--rust-orange);
    margin: 0.5rem 0;
}

.stat-card p {
    color: var(--bone-white);
    text-transform: uppercase;
    font-size: 0.9rem;
    line-height: 1.4;
}

.stat-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--rust-orange);
    font-weight: 700;
    margin-top: 0.5rem;
    text-transform: none;
}

.stat-price {
    font-size: 0.85rem !important;
    color: var(--rust-orange) !important;
    font-weight: 700;
    margin-top: 0.5rem !important;
    text-transform: none !important;
}

/* Stat card link wrapper */
.stat-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.stat-card-link:hover {
    transform: translateY(-5px);
}

.stat-card-link:hover .stat-card {
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
    border-color: var(--rust-orange);
}

/* Stat card warning states for beds */
.stat-card.warning {
    border-color: var(--rust-orange);
    animation: pulse-warning 2s infinite;
}

.stat-card.warning h4 {
    color: var(--rust-orange);
}

.stat-card.full {
    border-color: var(--blood-red);
    animation: pulse-full 1.5s infinite;
}

.stat-card.full h4 {
    color: var(--blood-red);
}

@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(204, 85, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(204, 85, 0, 0);
    }
}

@keyframes pulse-full {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(139, 0, 0, 0);
    }
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 350px;
    background: var(--gray-metal);
    border: 3px solid var(--blood-red);
    border-radius: 10px;
    box-shadow: 0 10px 40px var(--shadow);
    z-index: 999;
}

.chat-header {
    background: linear-gradient(135deg, var(--blood-red), var(--dark-red));
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 7px 7px 0 0;
    cursor: pointer;
}

.chat-header i {
    font-size: 1.2rem;
}

.chat-header span {
    flex: 1;
    font-weight: 700;
    text-transform: uppercase;
}

.chat-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--steel-gray);
}

.chat-body.collapsed {
    display: none;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.chat-message {
    background: var(--gray-metal);
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 3px solid var(--blood-red);
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--rust-orange);
    flex-shrink: 0;
}

.chat-content {
    flex: 1;
    min-width: 0;
}

.chat-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.3rem;
    gap: 0.5rem;
}

.chat-message .chat-user {
    font-weight: 700;
    color: var(--rust-orange);
    font-size: 0.9rem;
}

.chat-message .chat-time {
    font-size: 0.7rem;
    color: #999;
    white-space: nowrap;
}

.btn-chat-delete {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    transition: all 0.2s;
    opacity: 0.7;
    margin-left: auto;
}

.btn-chat-delete:hover {
    color: var(--blood-red);
    opacity: 1;
    transform: scale(1.1);
}

.btn-chat-delete i {
    pointer-events: none;
}

.chat-text {
    color: var(--bone-white);
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #999;
}

.chat-empty i {
    font-size: 2rem;
    color: var(--blood-red);
    margin-bottom: 0.5rem;
    display: block;
}

.chat-empty p {
    font-style: italic;
}

.chat-footer {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-metal);
    border-radius: 0 0 7px 7px;
}

.chat-footer input {
    flex: 1;
    padding: 0.8rem;
    background: var(--steel-gray);
    border: 1px solid var(--blood-red);
    border-radius: 5px;
    color: var(--bone-white);
    font-size: 0.9rem;
}

.chat-footer input:focus {
    outline: none;
    border-color: var(--rust-orange);
}

/* Sync Notification */
.sync-notification {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: linear-gradient(135deg, var(--blood-red), var(--dark-red));
    color: var(--bone-white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--rust-orange);
    box-shadow: 0 5px 20px var(--shadow);
    z-index: 9999;
    display: none;
    animation: slideIn 0.3s;
}

.sync-notification.show {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

@keyframes slideIn {
    from { transform: translateX(400px); }
    to { transform: translateX(0); }
}

/* Lineup Section */
.lineup-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn, .category-btn {
    padding: 0.8rem 1.5rem;
    background: var(--steel-gray);
    border: 2px solid var(--blood-red);
    color: var(--bone-white);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-weight: 600;
}

.filter-btn:hover, .category-btn:hover {
    background: var(--blood-red);
    transform: translateY(-2px);
}

.filter-btn.active, .category-btn.active {
    background: var(--blood-red);
    border-color: var(--rust-orange);
}

.last-sync {
    text-align: center;
    margin: 1rem 0;
    color: #999;
    font-size: 0.9rem;
}

.lineup-content {
    margin-top: 2rem;
}

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

.genre-section,
.day-section,
.stage-section {
    margin-bottom: 3rem;
}

.genre-section .section-title,
.day-section .section-title,
.stage-section .section-title {
    font-size: 1.8rem;
    text-align: left;
    border-bottom: 3px solid var(--rust-orange);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.genre-section .section-title i {
    color: var(--rust-orange);
    margin-right: 0.5rem;
}

.band-card {
    background: linear-gradient(135deg, var(--gray-metal), var(--steel-gray));
    border: 2px solid var(--blood-red);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.band-card.clickable {
    cursor: pointer;
}

.band-card.clickable:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.7);
    border-color: var(--rust-orange);
}

.band-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.5);
    border-color: var(--rust-orange);
}

.band-link-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--blood-red);
    color: var(--bone-white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0.8;
    transition: all 0.3s;
}

.band-card.clickable:hover .band-link-indicator {
    opacity: 1;
    background: var(--rust-orange);
    transform: scale(1.1);
}

.band-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--death-black);
}

.band-info {
    padding: 1.5rem;
}

.band-name {
    font-size: 1.5rem;
    color: var(--rust-orange);
    margin-bottom: 0.8rem;
}

.band-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--bone-white);
    font-size: 0.9rem;
}

.band-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.band-detail i {
    color: var(--rust-orange);
    width: 20px;
}

/* Info Section */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.info-card {
    background: var(--gray-metal);
    border: 3px solid var(--blood-red);
    border-radius: 10px;
    padding: 2rem;
}

.info-card h3 {
    color: var(--rust-orange);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.map-container {
    margin: 1.5rem 0;
    border: 2px solid var(--blood-red);
    border-radius: 8px;
    overflow: hidden;
}

.house-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.house-features span {
    background: var(--steel-gray);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--blood-red);
    font-size: 0.9rem;
}

.info-price {
    background: var(--steel-gray);
    border: 2px solid var(--rust-orange);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    text-align: center;
    font-size: 1.1rem;
    color: var(--bone-white);
}

.info-price i {
    color: var(--rust-orange);
    margin-right: 0.5rem;
}

.info-price strong {
    color: #4CAF50;
    font-size: 1.3rem;
}

/* Timeline */
/* Flight Info */
.info-flight {
    margin: 3rem 0;
    background: var(--gray-metal);
    border: 3px solid var(--rust-orange);
    border-radius: 10px;
    padding: 2rem;
}

.info-flight h3 {
    color: var(--rust-orange);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.flight-card {
    background: linear-gradient(135deg, var(--steel-gray), var(--death-black));
    border-radius: 8px;
    padding: 2rem;
}

.flight-loading,
.flight-manual {
    text-align: center;
    padding: 2rem 2rem 1rem 2rem;
    color: var(--bone-white);
    font-size: 1.1rem;
    margin: 0;
}

.flight-dates {
    text-align: center;
    color: var(--rust-orange);
    font-size: 1rem;
    margin: 0 0 2rem 0;
    padding: 0;
    font-weight: 600;
}

.flight-details {
    margin-bottom: 2rem;
}

.flight-route {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--gray-metal);
    border-radius: 8px;
    border: 2px solid var(--blood-red);
}

.flight-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.flight-time .time {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rust-orange);
}

.flight-time .airport {
    font-size: 1rem;
    color: var(--bone-white);
    font-weight: 600;
}

.flight-duration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    padding: 0 2rem;
}

.flight-duration i {
    font-size: 1.5rem;
    color: var(--rust-orange);
}

.flight-duration span {
    color: var(--bone-white);
    font-size: 0.9rem;
}

.flight-duration .direct {
    color: #4CAF50;
    font-weight: 600;
}

.flight-duration .stops {
    color: #FFA500;
}

.flight-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--steel-gray);
    border-radius: 8px;
}

.flight-airline {
    color: var(--bone-white);
    font-size: 1.1rem;
}

.flight-airline i {
    color: var(--rust-orange);
    margin-right: 0.5rem;
}

.flight-price {
    text-align: right;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4CAF50;
}

.flight-btn {
    width: 100%;
    margin-top: 1rem;
    text-align: center;
    display: block;
}

/* Config Edit Button */
.config-edit-btn {
    background: none;
    border: 1px solid var(--steel-gray);
    color: var(--rust-orange);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
    transition: all 0.2s;
}

.config-edit-btn:hover {
    background: var(--rust-orange);
    color: var(--death-black);
    border-color: var(--rust-orange);
}

/* Route Section */
.info-route {
    margin: 3rem 0;
    background: var(--gray-metal);
    border: 3px solid var(--steel-gray);
    border-radius: 10px;
    padding: 2rem;
}

.info-route h3 {
    color: var(--bone-white);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.route-card {
    background: linear-gradient(135deg, var(--steel-gray), var(--death-black));
    border-radius: 8px;
    padding: 2rem;
}

.route-card-title {
    color: var(--rust-orange);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.route-card-title i {
    margin: 0 0.3rem;
}

.route-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.route-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 100px;
}

.route-stat i {
    font-size: 1.8rem;
    color: var(--rust-orange);
    margin-bottom: 0.3rem;
}

.route-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bone-white);
}

.route-label {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
}

.route-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.route-btn {
    width: 100%;
    text-align: center;
    display: block;
}

.route-ride-group {
    background: var(--gray-metal);
    border-radius: 6px;
    padding: 0.8rem 1rem;
}

.route-ride-label {
    color: var(--rust-orange);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.route-ride-btns {
    display: flex;
    gap: 0.5rem;
}

.route-btn-sm {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.85rem;
    cursor: pointer;
}

.route-btn-taxi {
    background: #1a8f3f !important;
    border-color: #1a8f3f !important;
    color: #fff !important;
}

.route-btn-taxi:hover {
    background: #22b851 !important;
    border-color: #22b851 !important;
}

@media (max-width: 768px) {
    .route-stats {
        flex-direction: column;
        align-items: center;
    }
    .route-stat {
        flex-direction: row;
        gap: 0.8rem;
    }
}

.info-timeline {
    margin: 3rem 0;
    background: var(--gray-metal);
    border: 3px solid var(--blood-red);
    border-radius: 10px;
    padding: 2rem;
}

.info-timeline h3 {
    color: var(--rust-orange);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.timeline-date {
    background: var(--blood-red);
    color: var(--bone-white);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    min-width: 100px;
    text-align: center;
    font-family: 'Metal Mania', cursive;
}

.timeline-content {
    flex: 1;
    background: var(--steel-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--rust-orange);
}

.timeline-content h4 {
    color: var(--rust-orange);
    margin-bottom: 0.5rem;
}

.timeline-ride-btns {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.timeline-ride-btns .route-btn-sm {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.8rem;
}

/* Crew Section */
.crew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.crew-card {
    background: linear-gradient(135deg, var(--gray-metal), var(--steel-gray));
    border: 2px solid var(--blood-red);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.crew-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.5);
    border-color: var(--rust-orange);
}

/* Edit icon on current user's crew card */
.crew-edit-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    color: var(--steel-gray);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.crew-card.is-current-user:hover .crew-edit-icon {
    opacity: 0.6;
}

.crew-edit-icon:hover {
    opacity: 1 !important;
    color: var(--rust-orange);
    transform: scale(1.1);
}

.crew-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--blood-red);
    margin: 0 auto 1rem;
    object-fit: cover;
}

.crew-name {
    font-size: 1.5rem;
    color: var(--rust-orange);
    margin-bottom: 0.5rem;
}

.crew-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.crew-status.going {
    background: #006400;
    color: var(--bone-white);
}

.crew-status.maybe {
    background: #FFA500;
    color: var(--death-black);
}

.crew-icons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 1.5rem;
}

/* Ticket icon wrapper styles */
.ticket-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s;
    cursor: help;
}

.ticket-icon:hover {
    transform: scale(1.15);
}

/* Has ticket - green background with bright icon */
.ticket-icon.has-ticket {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4CAF50;
}

.ticket-icon.has-ticket i {
    color: #4CAF50;
    font-size: 1.2rem;
}

/* No ticket - red/gray background with dimmed icon */
.ticket-icon.no-ticket {
    background: rgba(139, 0, 0, 0.15);
    border: 2px solid rgba(139, 0, 0, 0.4);
}

.ticket-icon.no-ticket i {
    color: rgba(169, 169, 169, 0.5);
    font-size: 1.2rem;
}

/* Specific icon colors when has ticket */
.ticket-icon.has-ticket .fa-ticket-alt {
    color: #4CAF50;
}

.ticket-icon.has-ticket .fa-plane {
    color: #2196F3;
}

.ticket-icon.has-ticket .fa-home {
    color: #FF9800;
}

.ticket-icon.has-ticket .fa-hotel {
    color: #9C27B0;
}

.ticket-icon.has-ticket .fa-bed {
    color: #FF5722;
}

/* Transport method display */
.crew-username {
    color: #999;
    font-size: 0.9rem;
}

.crew-transport {
    margin-top: 0.75rem;
    color: var(--bone-white);
    font-size: 0.9rem;
}

.crew-transport i {
    color: var(--rust-orange);
    margin-right: 0.5rem;
}

/* Crew price display */
.crew-price {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--rust-orange);
}

.crew-price-total {
    font-size: 1rem;
    color: var(--bone-white);
    margin-bottom: 0.5rem;
}

.crew-price-total i {
    color: var(--rust-orange);
    margin-right: 0.5rem;
}

.crew-price-total strong {
    color: var(--rust-orange);
    font-size: 1.1rem;
}

.crew-price-breakdown {
    font-size: 0.8rem;
    color: var(--gray-light);
    line-height: 1.4;
}

/* Message Board */
.board-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.post-index {
    flex-shrink: 0;
    width: 250px;
    background: var(--gray-metal);
    border: 2px solid var(--blood-red);
    border-radius: 10px;
    padding: 1.5rem;
    align-self: flex-start;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.index-title {
    font-size: 1.2rem;
    color: var(--rust-orange);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--blood-red);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.index-title i {
    font-size: 1rem;
}

.index-title .mobile-only {
    display: none;
}

.index-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.index-item {
    display: block;
    padding: 0.75rem;
    background: var(--steel-gray);
    border-left: 3px solid var(--rust-orange);
    border-radius: 5px;
    color: var(--bone-white);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 0.9rem;
}

.index-item:hover {
    background: var(--blood-red);
    transform: translateX(5px);
}

.index-item.active {
    background: var(--blood-red);
    border-left-width: 5px;
}

.index-item-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.index-item-meta {
    font-size: 0.75rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.index-item-meta i {
    font-size: 0.7rem;
}

.message-board {
    flex: 1;
    min-width: 0;
}

.message-post {
    background: var(--gray-metal);
    border: 2px solid var(--blood-red);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--steel-gray);
}

.message-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.message-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--blood-red);
}

.message-author-info h4 {
    color: var(--rust-orange);
}

.message-author-info small {
    color: #999;
}

.message-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-delete-post,
.btn-delete-comment {
    background: transparent;
    border: 1px solid var(--blood-red);
    color: var(--blood-red);
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-delete-post:hover,
.btn-delete-comment:hover {
    background: var(--blood-red);
    color: var(--bone-white);
    transform: translateY(-2px);
}

.btn-delete-post i,
.btn-delete-comment i {
    font-size: 0.9rem;
}

.message-type {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.message-type.announcement {
    background: var(--blood-red);
}

.message-type.discussion {
    background: var(--steel-gray);
}

.message-type.question {
    background: var(--rust-orange);
}

.message-title {
    font-size: 1.8rem;
    color: var(--bone-white);
    margin-bottom: 1rem;
}

.message-body {
    color: var(--bone-white);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Comments Section */
.comments-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--steel-gray);
}

.show-comments-btn {
    background: var(--steel-gray);
    color: var(--bone-white);
    border: 1px solid var(--blood-red);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.show-comments-btn:hover {
    background: var(--blood-red);
    transform: translateY(-2px);
}

.show-comments-btn i {
    margin-right: 0.5rem;
}

.comments-container {
    margin-top: 1rem;
}

.comments-list {
    margin-bottom: 1rem;
}

.comment {
    background: var(--steel-gray);
    border-left: 3px solid var(--rust-orange);
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 5px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.comment-author img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--rust-orange);
}

.comment-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.comment-author .btn-delete-comment {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    margin-left: auto;
}

.comment-info strong {
    color: var(--rust-orange);
    font-size: 0.95rem;
}

.comment-info small {
    color: #999;
    font-size: 0.8rem;
}

.comment-text {
    color: var(--bone-white);
    line-height: 1.6;
    padding-left: 43px;
}

.add-comment {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.comment-input {
    flex: 1;
    background: var(--steel-gray);
    border: 1px solid var(--blood-red);
    color: var(--bone-white);
    padding: 0.8rem;
    border-radius: 5px;
    resize: vertical;
    font-family: inherit;
}

.comment-input:focus {
    outline: none;
    border-color: var(--rust-orange);
    box-shadow: 0 0 10px rgba(204, 85, 0, 0.3);
}

.btn-comment {
    background: var(--blood-red);
    color: var(--bone-white);
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    white-space: nowrap;
}

.btn-comment:hover {
    background: var(--rust-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

.btn-comment i {
    margin-right: 0.5rem;
}

.no-comments, .comment-login-prompt {
    color: #999;
    text-align: center;
    padding: 1rem;
    font-style: italic;
}

.loading-comments {
    color: var(--rust-orange);
    text-align: center;
    padding: 1rem;
}

/* Supply List */
.supply-categories {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.supply-list {
    margin-top: 2rem;
}

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

.supply-item {
    background: var(--gray-metal);
    border: 2px solid var(--blood-red);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s;
}

.supply-item:hover {
    transform: translateX(5px);
    border-color: var(--rust-orange);
}

.supply-item.claimed {
    border-color: #006400;
    opacity: 0.7;
}

.supply-info h4 {
    color: var(--bone-white);
    margin-bottom: 0.5rem;
}

.supply-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #999;
}

.supply-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.supply-status.needed {
    background: var(--blood-red);
}

.supply-status.claimed {
    background: #FFA500;
    color: var(--death-black);
}

.supply-status.purchased {
    background: #006400;
}

.supply-notes {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 0.5rem;
    font-style: italic;
}

.supply-notes i {
    color: var(--rust-orange);
    margin-right: 0.5rem;
}

.supply-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.btn-claim, .btn-unclaim, .btn-purchased {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-claim {
    background: var(--rust-orange);
    color: var(--bone-white);
}

.btn-claim:hover {
    background: #ff6600;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 85, 0, 0.4);
}

.btn-unclaim {
    background: var(--steel-gray);
    color: var(--bone-white);
}

.btn-unclaim:hover {
    background: var(--blood-red);
    transform: translateY(-2px);
}

.btn-purchased {
    background: #006400;
    color: var(--bone-white);
}

.btn-purchased:hover {
    background: #008000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 100, 0, 0.4);
}

.btn-claim i, .btn-unclaim i, .btn-purchased i {
    margin-right: 0.5rem;
}

.purchased-by {
    color: #00ff00;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-unpurchase {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    white-space: nowrap;
    background: #FFA500;
    color: var(--death-black);
}

.btn-unpurchase:hover {
    background: #FF8C00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
}

.btn-unpurchase i {
    margin-right: 0.5rem;
}

.btn-delete {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    white-space: nowrap;
    background: var(--blood-red);
    color: var(--bone-white);
}

.btn-delete:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(170, 0, 0, 0.5);
}

.btn-delete i {
    margin-right: 0.5rem;
}

.purchase-details {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 100, 0, 0.2);
    border-left: 3px solid #006400;
    border-radius: 5px;
}

.purchase-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #00ff00;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.purchase-details h4 i {
    color: #00ff00;
}

.purchase-detail-item {
    font-size: 0.85rem;
    color: #ccc;
    margin: 0.3rem 0;
    display: flex;
    gap: 0.5rem;
}

.purchase-detail-item i {
    color: var(--rust-orange);
    width: 1rem;
}

.purchase-detail-item strong {
    color: var(--bone-white);
    font-weight: 600;
}

.purchased-by i {
    margin-right: 0.3rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--gray-metal);
    border: 3px solid var(--blood-red);
    border-radius: 10px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s;
}

.modal-content-wide {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Custom scrollbar for profile settings modal */
.modal-content-wide::-webkit-scrollbar {
    width: 12px;
}

.modal-content-wide::-webkit-scrollbar-track {
    background: var(--death-black);
    border-radius: 10px;
    border: 1px solid var(--steel-gray);
}

.modal-content-wide::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--blood-red), var(--rust-orange));
    border-radius: 10px;
    border: 2px solid var(--death-black);
    transition: all 0.3s;
}

.modal-content-wide::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--rust-orange), #ffaa00);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.modal-content-wide::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #ff4500, var(--rust-orange));
}

/* Firefox scrollbar styling */
.modal-content-wide {
    scrollbar-width: thin;
    scrollbar-color: var(--rust-orange) var(--death-black);
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--bone-white);
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    color: var(--blood-red);
    transform: scale(1.2);
}

.modal-content h2 {
    color: var(--rust-orange);
    margin-bottom: 2rem;
    text-align: center;
}

.settings-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--steel-gray);
}

.settings-section:last-of-type {
    margin-bottom: 0;
}

.settings-section h3 {
    color: var(--rust-orange);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section h3 i {
    font-size: 1.2rem;
}

/* Forms */
.auth-form, form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--bone-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    background: var(--steel-gray);
    border: 2px solid var(--blood-red);
    border-radius: 5px;
    color: var(--bone-white);
    font-size: 1rem;
    font-family: inherit;
}

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

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    background: var(--steel-gray);
    border: 2px solid var(--blood-red);
    border-radius: 5px;
    transition: all 0.3s;
    flex: 1;
    min-width: 200px;
}

.checkbox-group label:hover {
    border-color: var(--rust-orange);
    background: var(--gray-metal);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--rust-orange);
}

.checkbox-group span {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.checkbox-group i {
    color: var(--rust-orange);
}

/* Buy Ticket Button */
.btn-buy-ticket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #d4580a, var(--rust-orange));
    color: var(--bone-white);
    text-decoration: none;
    border: 2px solid var(--rust-orange);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-buy-ticket::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-buy-ticket:hover::before {
    left: 100%;
}

.btn-buy-ticket:hover {
    background: linear-gradient(135deg, var(--rust-orange), #ffaa00);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.6);
    border-color: #ffaa00;
}

.btn-buy-ticket:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 3px 10px rgba(255, 140, 0, 0.4);
}

.btn-buy-ticket i {
    font-size: 1.1rem;
    color: var(--bone-white);
    animation: cartBounce 2s ease-in-out infinite;
}

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

.form-switch {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.form-switch a {
    color: var(--rust-orange);
    text-decoration: none;
    font-weight: 600;
}

.form-switch a:hover {
    color: var(--blood-red);
}

/* Profile Edit Styles */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.avatar-section-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.avatar-section-label .btn-icon {
    background: transparent;
    border: none;
    color: var(--rust-orange);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: transform 0.3s;
}

.avatar-section-label .btn-icon:hover {
    transform: scale(1.1);
}

.current-avatar-preview {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.current-avatar-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--blood-red);
    background: var(--steel-gray);
    object-fit: cover;
}

.avatar-selection-container {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--blood-red);
}

.custom-url-section {
    margin-bottom: 1.5rem;
}

.custom-url-section label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--bone-white);
    font-size: 0.9rem;
    font-weight: 600;
}

.custom-url-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.custom-url-input-group input {
    flex: 1;
    padding: 0.75rem;
    background: var(--steel-gray);
    border: 2px solid var(--blood-red);
    border-radius: 5px;
    color: var(--bone-white);
    font-size: 0.9rem;
}

.custom-url-input-group input:focus {
    outline: none;
    border-color: var(--rust-orange);
}

.custom-url-input-group .btn-sm {
    white-space: nowrap;
}

.custom-url-error {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(139, 0, 0, 0.3);
    border: 1px solid var(--blood-red);
    border-radius: 5px;
    color: var(--blood-red);
    font-size: 0.85rem;
}

.avatar-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0 1rem;
}

.avatar-divider::before,
.avatar-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--steel-gray);
}

.avatar-divider span {
    padding: 0 1rem;
    color: var(--gray-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.avatar-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: var(--gray-metal);
    border: 2px solid var(--steel-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.avatar-option:hover {
    border-color: var(--rust-orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.avatar-option.selected {
    border-color: var(--rust-orange);
    background: linear-gradient(135deg, var(--blood-red), var(--rust-orange));
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

.avatar-img {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.avatar-option span {
    font-size: 0.75rem;
    color: var(--bone-white);
    text-transform: uppercase;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-actions button {
    flex: 1;
    min-width: 150px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.5rem;
    color: var(--blood-red);
}

/* Footer */
.main-footer {
    background: var(--gray-metal);
    border-top: 3px solid var(--blood-red);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.main-footer p {
    margin: 0.5rem 0;
}

.powered-by {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.75rem !important;
}

.powered-by a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 1px dotted transparent;
}

.powered-by a:hover {
    color: var(--rust-orange);
    border-bottom-color: var(--rust-orange);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .chat-widget {
        width: 300px;
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h2 {
        font-size: 3rem;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Compact header for mobile */
    .main-header {
        padding: 0.5rem 0;
    }

    .header-content {
        gap: 0.5rem;
        min-height: auto;
        flex-direction: row;
    }

    .container {
        padding: 0 1rem;
    }

    /* Burger menu positioned in top left */
    .burger-menu {
        display: flex;
        order: -1;
        margin-right: 0.75rem;
        margin-left: 0;
        padding: 5px;
    }

    .burger-menu span {
        width: 25px;
        height: 2.5px;
    }

    .logo {
        flex-shrink: 0;
        gap: 0.5rem;
        flex: 1;
    }

    .logo i {
        font-size: 1.3rem;
    }

    .logo h1 {
        font-size: 0.95rem;
    }

    /* Hide desktop user menu */
    .header-content > .user-menu {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--death-black) 0%, var(--steel-gray) 100%);
        border-right: 3px solid var(--rust-orange);
        flex-direction: column;
        gap: 0;
        padding: 80px 0 20px;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .main-nav.active {
        left: 0;
    }

    .nav-link {
        width: 100%;
        font-size: 1rem;
        padding: 1rem 1.5rem;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--blood-red);
        justify-content: flex-start;
    }

    .nav-link i {
        width: 25px;
    }

    /* Divider before user menu in mobile nav */
    .nav-divider {
        height: 2px;
        background: var(--rust-orange);
        margin: 1rem 0;
    }

    /* User menu inside mobile nav */
    .main-nav .user-menu {
        display: flex;
        flex-direction: column;
        padding: 0 1.5rem 1rem;
        gap: 1rem;
    }

    .main-nav .user-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
    }

    .main-nav .user-avatar {
        width: 60px;
        height: 60px;
    }

    .main-nav #userName {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--rust-orange);
    }

    .main-nav .btn-logout,
    .main-nav .btn-primary {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
        justify-content: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .band-grid,
    .crew-grid,
    .supply-grid {
        grid-template-columns: 1fr;
    }
    
    /* Chat widget as floating icon when collapsed on mobile */
    .chat-widget {
        width: 60px;
        height: 60px;
        bottom: 1rem;
        right: 1rem;
        left: auto;
        margin: 0;
        border-radius: 50%;
        overflow: hidden;
        transition: all 0.3s ease;
        z-index: 1001;
    }

    /* Expanded state - full chat */
    .chat-widget.expanded {
        width: calc(100% - 2rem);
        max-width: 320px;
        height: auto;
        border-radius: 10px;
        overflow: visible;
    }

    /* Chat header as icon button when collapsed */
    .chat-widget .chat-header {
        width: 60px;
        height: 60px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s;
        cursor: pointer;
    }

    .chat-widget.expanded .chat-header {
        width: 100%;
        height: auto;
        padding: 1rem;
        border-radius: 7px 7px 0 0;
        cursor: default;
        pointer-events: auto;
    }

    /* Hide text when collapsed, show only icon */
    .chat-widget .chat-header span {
        display: none;
    }

    .chat-widget.expanded .chat-header span {
        display: block;
    }

    /* Make icon larger when collapsed */
    .chat-widget .chat-header i {
        font-size: 1.5rem;
    }

    .chat-widget.expanded .chat-header i {
        font-size: 1.2rem;
    }

    /* Hide toggle icon when collapsed */
    .chat-widget .chat-header #toggleChat {
        display: none;
    }

    .chat-widget.expanded .chat-header #toggleChat {
        display: block;
    }

    /* Hide body and footer when collapsed */
    .chat-widget .chat-body,
    .chat-widget .chat-footer {
        display: none;
    }

    .chat-widget.expanded .chat-body {
        display: block;
        max-height: 250px;
    }

    .chat-widget.expanded .chat-footer {
        display: flex;
        pointer-events: auto;
    }

    /* Smaller chat input on mobile */
    .chat-footer {
        padding: 0.75rem;
        pointer-events: auto;
    }

    .chat-footer input {
        font-size: 16px !important;
        -webkit-appearance: none;
        appearance: none;
        touch-action: manipulation;
        user-select: text;
        -webkit-user-select: text;
        pointer-events: auto;
    }

    .chat-footer textarea {
        font-size: 0.9rem;
        min-height: 40px;
    }

    .chat-footer button {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    /* Compact chat messages on mobile */
    .chat-message {
        padding: 0.6rem;
        gap: 0.6rem;
    }

    .chat-avatar {
        width: 28px;
        height: 28px;
    }

    .chat-message .chat-user {
        font-size: 0.85rem;
    }

    .chat-text {
        font-size: 0.9rem;
    }

    /* Post Index - Mobile Optimizations */
    .board-layout {
        flex-direction: column;
        gap: 1rem;
    }

    .post-index {
        width: 100%;
        position: static;
        max-height: none;
        padding: 1rem;
    }

    .index-title {
        cursor: pointer;
        font-size: 1rem;
    }

    .index-title .mobile-only {
        display: block;
        margin-left: auto;
        background: transparent;
        border: none;
        color: var(--rust-orange);
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0;
    }

    .index-title span {
        flex: 1;
    }

    .index-list {
        display: none;
        margin-top: 0.75rem;
    }

    .index-item {
        font-size: 0.85rem;
        padding: 0.6rem;
    }

    .index-item-title {
        font-size: 0.9rem;
    }

    /* Profile Edit Mobile */
    .avatar-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 0.75rem;
    }

    .avatar-img {
        font-size: 2rem;
    }

    .avatar-option span {
        font-size: 0.7rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    .custom-url-input-group {
        flex-direction: column;
    }

    .custom-url-input-group .btn-sm {
        width: 100%;
    }

    .modal-content-wide {
        max-width: 95%;
        padding: 1.5rem;
    }

    .settings-section {
        padding: 1rem;
    }

    .settings-section h3 {
        font-size: 1.1rem;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-date {
        min-width: auto;
        width: 100%;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-ride-btns {
        flex-wrap: wrap;
    }

    /* Info section mobile */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .info-card {
        padding: 1.25rem;
    }

    .info-card h3 {
        font-size: 1.4rem;
    }

    .map-container iframe {
        height: 220px;
    }

    .house-features span {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    /* Route section mobile */
    .info-route {
        margin: 2rem 0;
        padding: 1.25rem;
    }

    .info-route h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .route-card {
        padding: 1.25rem;
    }

    .route-card-title {
        font-size: 1rem;
    }

    .route-value {
        font-size: 1.2rem;
    }

    .route-ride-btns {
        flex-wrap: wrap;
    }

    .route-btn-sm {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem !important;
    }

    /* Flight section mobile */
    .info-flight {
        margin: 2rem 0;
        padding: 1.25rem;
    }

    .info-flight h3 {
        font-size: 1.4rem;
    }

    .flight-card {
        padding: 1.25rem;
    }

    .flight-route {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .flight-time {
        flex-direction: row;
        gap: 0.75rem;
    }

    .flight-time .time {
        font-size: 1.5rem;
    }

    .flight-duration {
        padding: 0;
        flex-direction: row;
        gap: 0.5rem;
    }

    .flight-info-row {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

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

    .price-amount {
        font-size: 1.4rem;
    }

    .flight-dates {
        font-size: 0.85rem;
    }

    /* Timeline section mobile */
    .info-timeline {
        margin: 2rem 0;
        padding: 1.25rem;
    }

    .info-timeline h3 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .timeline {
        gap: 1.5rem;
    }

    .countdown {
        gap: 1rem;
    }

    .countdown-value {
        font-size: 2rem;
    }

    /* Signup Modal Mobile */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .auth-form, form {
        gap: 1rem;
    }

    .form-group {
        gap: 0.4rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    .checkbox-group label {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .checkbox-group span {
        font-size: 0.85rem;
    }

    .btn-block {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        font-size: 1rem;
    }

    /* Info section - extra small */
    .info-card {
        padding: 1rem;
    }

    .info-card h3 {
        font-size: 1.2rem;
    }

    .map-container iframe {
        height: 180px;
    }

    .info-route,
    .info-flight,
    .info-timeline {
        padding: 1rem;
    }

    .info-route h3,
    .info-flight h3,
    .info-timeline h3 {
        font-size: 1.2rem;
    }

    .route-card,
    .flight-card {
        padding: 1rem;
    }

    .route-stats {
        margin-bottom: 1.5rem;
    }

    .route-stat i {
        font-size: 1.4rem;
    }

    .route-ride-group {
        padding: 0.6rem 0.8rem;
    }

    .route-ride-label {
        font-size: 0.8rem;
    }

    .info-price {
        font-size: 0.95rem;
        padding: 0.75rem;
        margin: 1rem 0;
    }

    .info-price strong {
        font-size: 1.1rem;
    }

    .house-features {
        gap: 0.5rem;
    }

    .house-features span {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    /* Buy Ticket Button Mobile */
    .checkbox-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-buy-ticket {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* Signup Modal - Small Mobile */
    .modal-content {
        width: 98%;
        padding: 1rem;
        max-height: 95vh;
    }

    .modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .auth-form, form {
        gap: 0.75rem;
    }

    .form-group {
        gap: 0.3rem;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .checkbox-group label {
        padding: 0.5rem;
    }

    .checkbox-group span {
        font-size: 0.8rem;
    }

    .checkbox-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .btn-block {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .modal-close {
        font-size: 1.5rem;
        top: 0.75rem;
        right: 0.75rem;
    }
}

/* =========================
   NOTIFICATION & CONFIRMATION MODALS
   ========================= */

.notification-modal,
.confirmation-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.2s;
}

.notification-modal.show,
.confirmation-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.notification-content,
.confirmation-content {
    background: linear-gradient(135deg, var(--gray-metal) 0%, var(--death-black) 100%);
    border: 2px solid var(--blood-red);
    border-radius: 10px;
    padding: 2rem;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
    animation: slideIn 0.3s;
    box-shadow: 0 10px 50px rgba(170, 0, 0, 0.5);
}

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

.notification-icon,
.confirmation-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.notification-icon i {
    color: var(--rust-orange);
}

.confirmation-icon i {
    color: var(--rust-orange);
}

.notification-icon.success i {
    color: #00ff00;
}

.notification-icon.error i {
    color: var(--blood-red);
}

.notification-icon.warning i {
    color: #FFA500;
}

.notification-message,
.confirmation-message {
    color: var(--bone-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.notification-btn {
    background: var(--rust-orange);
    color: var(--bone-white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.notification-btn:hover {
    background: #ff6600;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 85, 0, 0.4);
}

.notification-btn i {
    margin-right: 0.5rem;
}

.confirmation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirmation-btn {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 100px;
}

.confirm-yes {
    background: #006400;
    color: var(--bone-white);
}

.confirm-yes:hover {
    background: #008000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 100, 0, 0.4);
}

.confirm-no {
    background: var(--blood-red);
    color: var(--bone-white);
}

.confirm-no:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(170, 0, 0, 0.5);
}

.confirmation-btn i {
    margin-right: 0.5rem;
}
