/* QJ Motor VIP Club - Cyber-Automotive Design System */

:root {
    --bg-darker: #08080a;
    --bg-dark: #0f0f12;
    --bg-card: rgba(22, 22, 26, 0.7);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    
    --primary: #ff1e27;
    --primary-glow: rgba(255, 30, 39, 0.3);
    --primary-glow-heavy: rgba(255, 30, 39, 0.6);
    
    --text-primary: #ffffff;
    --text-secondary: #9a9a9c;
    --text-muted: #626264;
    
    --green-accent: #10b981;
    --green-glow: rgba(16, 185, 129, 0.2);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --radius-pill: 9999px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #050507;
    color: var(--text-primary);
    font-family: var(--font-body);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 20px 0;
}

/* Scrollbar customizations */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* 📱 Smartphone Device Frame on Desktop */
.device-wrapper {
    position: relative;
    width: 412px;
    height: 846px;
    background: #000000;
    border: 12px solid #1c1c1e;
    border-radius: 46px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 30, 39, 0.1);
    overflow: hidden;
}

/* Notch & side buttons on desktop */
.device-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 156px;
    height: 28px;
    background: #1c1c1e;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 1000;
}

.device-volume {
    position: absolute;
    left: -16px;
    width: 4px;
    background: #3a3a3c;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.volume-up { top: 180px; height: 50px; }
.volume-down { top: 240px; height: 50px; }

.device-power {
    position: absolute;
    right: -16px;
    top: 200px;
    width: 4px;
    height: 75px;
    background: #3a3a3c;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Main Container inside device */
.app-container {
    width: 100%;
    height: 100%;
    background-color: var(--bg-darker);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Mock OS Status Bar */
.status-bar {
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 24px 8px 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 999;
    background: var(--bg-darker);
    user-select: none;
}

.status-indicators {
    display: flex;
    gap: 6px;
    align-items: center;
}

.status-icon {
    opacity: 0.85;
}

/* Content Area styling */
.screen-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 90px 0; /* space for tab bar */
    position: relative;
}

/* App Screen views */
.app-screen {
    display: none;
    animation: fade-in 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    padding: 16px 20px;
}

.app-screen.active {
    display: block;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Headers */
.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.screen-header h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Logo Wrapper */
.logo-wrapper {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.logo-accent {
    color: var(--primary);
    margin-right: 4px;
    text-shadow: 0 0 10px var(--primary-glow);
}

.logo-text {
    color: var(--text-primary);
}

.logo-badge {
    font-size: 10px;
    background: var(--primary);
    color: #fff;
    padding: 2px 5px;
    border-radius: var(--radius-sm);
    margin-left: 6px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Buttons and icons styling */
.icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-btn:active {
    transform: scale(0.95);
}

.notification-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary);
}

/* 💳 Elite Membership Card */
.membership-card-container {
    perspective: 1000px;
    margin-bottom: 20px;
}

.membership-card {
    position: relative;
    width: 100%;
    height: 215px;
    border-radius: var(--radius-lg);
    background: url('assets/card_bg.png') center/cover no-repeat, var(--bg-dark);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 15px rgba(255,30,39,0.15);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 30, 39, 0.2);
    cursor: pointer;
}

.membership-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.card-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--primary-glow-heavy) 0%, rgba(255,30,39,0) 70%);
    top: -40px;
    right: -40px;
    pointer-events: none;
    opacity: 0.8;
}

.card-inner {
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-header .brand {
    display: flex;
    flex-direction: column;
}

.card-header .brand-qj {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.card-header .brand-sub {
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    font-weight: 500;
}

.card-header .member-tier {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.1);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.member-info {
    display: flex;
    flex-direction: column;
}

.member-label {
    font-size: 8px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.member-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.member-id {
    font-family: monospace;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.card-qr-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.card-qr-trigger:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.qr-box {
    width: 48px;
    height: 48px;
    background: #fff;
    padding: 3px;
    border-radius: 4px;
}

.mock-qr-code {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, #000, #000 3px, #fff 3px, #fff 6px);
}

.qr-tap-hint {
    font-size: 7px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

.member-since {
    display: flex;
    flex-direction: column;
}

.member-since .label {
    font-size: 7px;
    color: var(--text-muted);
}

.member-since .value {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.card-logo-emblem {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 18px;
    color: rgba(255,255,255,0.08);
}

/* ⚠️ Smart Alert Notification */
.smart-alert-container {
    margin-bottom: 20px;
}

.smart-alert {
    display: flex;
    align-items: center;
    background: rgba(255, 30, 39, 0.08);
    border: 1px dashed var(--primary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    gap: 12px;
    box-shadow: 0 4px 15px rgba(255,30,39,0.05);
}

.alert-icon {
    font-size: 18px;
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.alert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.alert-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.alert-desc {
    font-size: 10.5px;
    color: var(--text-secondary);
    line-height: 1.35;
    margin-top: 2px;
}

.alert-cta {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255,30,39,0.3);
    transition: var(--transition-smooth);
}

.alert-cta:active {
    transform: scale(0.95);
}

/* 🎛️ Quick Actions Grid */
.quick-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.action-tile {
    position: relative;
    width: 100%;
    height: 105px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-card-border);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 20px;
    transition: var(--transition-smooth);
    background-color: var(--bg-dark);
}

.action-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 8, 10, 0.9) 0%, rgba(8, 8, 10, 0.75) 45%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

#tile-booking { background: url('assets/menu_booking.png') center/cover no-repeat; }
#tile-dealer { background: url('assets/menu_dealer.png') center/cover no-repeat; }
#tile-catalog { background: url('assets/menu_catalog.png') center/cover no-repeat; }
#tile-parts { background: url('assets/menu_parts.png') center/cover no-repeat; }

.action-tile:hover {
    border-color: rgba(255, 30, 39, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 30, 39, 0.1);
    transform: translateY(-2px);
}

.action-tile:active {
    transform: scale(0.98);
}

.action-tile-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(8, 8, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.tile-icon.icon-red {
    color: var(--primary);
    border-color: rgba(255, 30, 39, 0.3);
}

.action-tile:hover .tile-icon.icon-red {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.action-tile:hover .tile-icon.icon-grey {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.tile-info-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.tile-label {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.tile-subtitle {
    font-size: 10.5px;
    color: var(--text-secondary);
}

.action-tile:hover .tile-subtitle {
    color: #fff;
}

/* 🎟️ Horizontal Scroll Carousel Section */
.carousel-section {
    margin-bottom: 16px;
}

.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-title-bar h2 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.view-all-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.horizontal-scroll-container {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.event-card-slide {
    flex: 0 0 250px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    scroll-snap-align: start;
    transition: var(--transition-smooth);
}

.event-card-slide:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.event-image-placeholder {
    height: 120px;
    background: #1a1a24;
    position: relative;
}

.event-fest {
    background: linear-gradient(185deg, rgba(255,30,39,0.3) 0%, rgba(0,0,0,0.8) 100%), url('assets/srt800.png') center/cover no-repeat;
}

.event-sunmori {
    background: linear-gradient(185deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.8) 100%), url('assets/srv200.png') center/cover no-repeat;
}

.event-date-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.1;
}

.event-date-tag .day {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
}

.event-date-tag .month {
    font-size: 8px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.event-details {
    padding: 12px 14px;
}

.event-details h3 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.event-info-row {
    font-size: 9.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.event-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 8px;
}

.event-capacity {
    font-size: 9px;
    color: var(--text-muted);
}

.small-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.small-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.small-btn.registered {
    background: var(--green-accent);
    border-color: var(--green-accent);
    color: #fff;
}

/* 🏍️ GARAGE SCREEN: Vehicle Carousel */
.vehicle-carousel-wrapper {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    height: 190px;
}

.vehicle-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.vehicle-slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    padding-bottom: 12px;
    opacity: 0.3;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.vehicle-slide.active {
    opacity: 1;
    transform: scale(1);
}

.motor-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 100px;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.motor-glow.red { background: rgba(255, 30, 39, 0.25); }
.motor-glow.grey { background: rgba(255, 255, 255, 0.1); }

.vehicle-visual {
    z-index: 2;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.motor-image {
    max-height: 100%;
    max-width: 250px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6));
    animation: float 4s ease-in-out infinite;
}

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

.vehicle-short-specs {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
}

.motor-type {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

.motor-plate {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.carousel-indicators {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.carousel-indicators .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-indicators .dot.active {
    background: var(--primary);
    width: 14px;
    border-radius: 3px;
}

/* Garage generic card panels */
.garage-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.warranty-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.warranty-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-ring {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.pulse-ring.green {
    background: var(--green-accent);
}

.pulse-ring.green::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid var(--green-accent);
    animation: ripple 1.6s infinite ease-out;
}

@keyframes ripple {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.status-text {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.text-green {
    color: var(--green-accent);
}

.card-label {
    font-size: 8px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.warranty-deadline {
    font-family: var(--font-heading);
    font-size: 12.5px;
    font-weight: 600;
    text-align: right;
    color: var(--text-secondary);
}

/* Service Monitor */
.service-monitor h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}

.odometer-highlight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.odometer-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.odometer-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.service-timeline {
    position: relative;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 18px;
}

.service-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #27272a;
}

.timeline-step {
    position: relative;
}

.timeline-bullet {
    position: absolute;
    left: -20px;
    top: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #27272a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.timeline-step.done .timeline-bullet {
    background: var(--green-accent);
    color: #fff;
}

.timeline-step.pending .timeline-bullet {
    background: var(--bg-dark);
    border: 2px solid var(--text-muted);
}

.timeline-step.pending.warning .timeline-bullet {
    border-color: var(--primary);
    box-shadow: 0 0 6px var(--primary-glow);
}

.timeline-info {
    display: flex;
    flex-direction: column;
}

.step-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.step-label.highlight-red {
    color: var(--primary);
}

.step-kms {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin: 2px 0;
}

.step-subinfo {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    gap: 6px;
}

.booking-cta-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition-smooth);
}

.booking-cta-btn:active {
    transform: scale(0.98);
}

/* 🤝 COMMUNITY SCREEN: Segments & Tabs */
.community-tabs {
    display: flex;
    background: var(--bg-dark);
    border: 1px solid var(--bg-card-border);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.comm-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.comm-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.community-segment {
    display: none;
}

.community-segment.active {
    display: block;
}

.event-list, .club-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.community-event-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: var(--transition-smooth);
}

.comm-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.event-badge {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.badge-gathering { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge-touring { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-anniversary { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.comm-event-header h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

.comm-event-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.comm-detail-row {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comm-event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.comm-event-footer .capacity {
    font-size: 11px;
    color: var(--text-muted);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: var(--radius-md);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.secondary-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.secondary-btn.registered {
    background: var(--green-accent);
    border-color: var(--green-accent);
}

/* Official Clubs List */
.official-club-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.club-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
}

.club-info {
    flex: 1;
}

.club-info h3 {
    font-size: 13.5px;
    font-weight: 600;
}

.club-info span {
    font-size: 10px;
    color: var(--text-secondary);
}

.join-club-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.join-club-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* 🎟️ PRIVILEGE SCREEN */
.privilege-qr-showcase {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.security-qr-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.timer-ring-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 14px;
}

.timer-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.timer-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 4px;
}

.timer-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 4px;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

.qr-code-body {
    position: absolute;
    inset: 12px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.qr-svg-graphic {
    width: 100%;
    height: 100%;
    color: #0c0c0e;
}

.refresh-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

.refresh-countdown {
    font-size: 9.5px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Perks List */
.perks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.perk-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    gap: 14px;
}

.perk-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.perk-icon.bg-red { background: rgba(255,30,39,0.1); color: var(--primary); }
.perk-icon.bg-grey { background: rgba(255,255,255,0.05); color: var(--text-secondary); }

.perk-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.perk-info h3 {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
}

.perk-info p {
    font-size: 10.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.claim-perk-btn {
    align-self: flex-start;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    transition: var(--transition-smooth);
}

.claim-perk-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* 👤 PROFILE SCREEN */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-avatar-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
}

.avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
}

.avatar-ring.red {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    background: #27272a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-details h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.user-tier-pill {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 8.5px;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.joined-date {
    font-size: 10px;
    color: var(--text-muted);
}

.profile-quick-stats {
    display: grid;
    grid-template-cols: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-lbl {
    font-size: 9.5px;
    color: var(--text-secondary);
}

/* Settings lists */
.settings-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.settings-item {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.settings-item:hover {
    border-color: rgba(255,255,255,0.15);
}

.arrow-right {
    color: var(--text-muted);
}

.settings-item-switch {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 500;
}

/* Toggles */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #27272a;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.logout-btn {
    width: 100%;
    background: none;
    border: 1px solid rgba(255, 30, 39, 0.2);
    color: var(--primary);
    padding: 12px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 10px;
}

.logout-btn:hover {
    background: rgba(255, 30, 39, 0.05);
}

/* 🕹️ Floating Bottom Tab Bar Navigation */
.bottom-tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(8, 8, 10, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--bg-card-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px 15px 10px; /* space for home bar indicator */
    z-index: 998;
    user-select: none;
}

.tab-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex: 1;
    height: 48px;
    justify-content: center;
    transition: var(--transition-smooth);
}

.tab-item.active {
    color: var(--primary);
}

.tab-icon {
    width: 22px;
    height: 22px;
    transition: var(--transition-smooth);
}

.tab-item.active .tab-icon {
    transform: translateY(-2px);
    filter: drop-shadow(0 2px 6px var(--primary-glow));
}

.tab-label {
    font-size: 9px;
    font-weight: 500;
}

/* Floating privilege tab button style */
.floating-tab-outer {
    position: relative;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    z-index: 1001;
}

.floating-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.floating-circle-inner {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, #cc000a 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(255, 30, 39, 0.4), inset 0 2px 4px rgba(255,255,255,0.2);
    border: 3px solid var(--bg-darker);
    transition: var(--transition-smooth);
}

.floating-item:hover .floating-circle-inner {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 30, 39, 0.5);
}

.floating-item:active .floating-circle-inner {
    transform: scale(0.95);
}

.floating-label {
    position: absolute;
    bottom: -15px;
    white-space: nowrap;
}

/* 🖼️ Modals and Overlays */
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    background: var(--bg-dark);
    border-top: 1px solid var(--bg-card-border);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    padding: 24px 20px 40px 20px;
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.modal-body-content {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* QR Modal Specifics */
.modal-qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.modal-barcode {
    width: 100%;
    height: 130px;
    background: #fff;
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.barcode-lines {
    width: 100%;
    height: 80px;
    /* Create a repeating vertical bar styling matching barcode */
    background: repeating-linear-gradient(90deg, 
        #000 0px, #000 2px, 
        #fff 2px, #fff 5px, 
        #000 5px, #000 9px, 
        #fff 9px, #fff 11px, 
        #000 11px, #000 13px,
        #fff 13px, #fff 17px
    );
}

.barcode-number {
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    letter-spacing: 0.15em;
}

.modal-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 11px;
}

/* Forms in Modal */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-group select, .form-group input {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    color: #fff;
    padding: 12px;
    font-size: 13px;
    font-family: var(--font-body);
}

.form-group select:focus, .form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 6px var(--primary-glow);
}

.submit-form-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    margin-top: 10px;
    transition: var(--transition-smooth);
}

.submit-form-btn:active {
    transform: scale(0.98);
}

/* Claim Success Modals */
.text-center { text-align: center; }

.claim-success-icon {
    width: 60px;
    height: 60px;
    background: var(--green-accent);
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px auto;
    box-shadow: 0 0 15px var(--green-glow);
}

.claim-instruction {
    font-size: 12px;
    margin: 8px 0 16px 0;
}

.claim-countdown-timer {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.close-success-btn {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    color: #fff;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-success-btn:hover {
    background: rgba(255,255,255,0.04);
}

/* 💻 RESPONSIVE STYLING FOR ACTUAL MOBILE SCREENS */
@media (max-width: 500px) {
    body {
        padding: 0;
        background-color: var(--bg-darker);
    }
    
    .device-wrapper {
        width: 100vw;
        height: 100vh;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    
    .device-notch, .device-volume, .device-power {
        display: none;
    }
    
    .status-bar {
        padding-top: 14px;
        height: 50px;
    }
}
