:root {
    /* Surf-inspired color palette */
    --surf-aqua: #3AF2D7;
    --surf-teal: #00A3A3;
    --surf-coral: #FF6B6B;
    --surf-sand: #C1A36B;
    
    /* Base colors */
    --bg-black: #000000;
    --text-light: #EDEDED;
    --text-light-50: rgba(237, 237, 237, 0.5);
    --bg-dark-subtle: rgba(255, 255, 255, 0.05);
    --border-secondary: rgba(255, 255, 255, 0.1);
}

/* Base styling */
body {
    background-color: var(--bg-black);
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Typography */
.text-light-50 {
    color: var(--text-light-50) !important;
}

.text-muted {
    color: var(--text-light) !important;
}

p.text-muted,
small.text-muted,
.footer .text-muted {
    color: rgba(237, 237, 237, 0.9) !important;
}

.text-surf-aqua {
    color: var(--surf-aqua) !important;
}

.text-surf-teal {
    color: var(--surf-teal) !important;
}

.text-surf-coral {
    color: var(--surf-coral) !important;
}

.text-surf-sand {
    color: var(--surf-sand) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--surf-aqua), var(--surf-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout */
.main-content {
    margin-top: 76px; /* Account for fixed navbar */
    min-height: calc(100vh - 76px);
}

.page-header {
    background: linear-gradient(135deg, rgba(58, 242, 215, 0.1), rgba(0, 163, 163, 0.1));
    padding: 4rem 0 2rem;
    margin-top: -76px;
    padding-top: calc(4rem + 76px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(58, 242, 215, 0.05), rgba(0, 163, 163, 0.05));
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(58, 242, 215, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-video-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(58, 242, 215, 0.2);
}

.video-embed {
    position: relative;
    width: 100%;
    height: 400px; /* Fixed height for video */
    border-radius: 12px;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

.video-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--surf-aqua), var(--surf-teal));
    border: none;
    color: var(--bg-black);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 242, 215, 0.3);
    color: var(--bg-black);
}

.btn-outline-primary {
    border: 2px solid var(--surf-aqua);
    color: var(--surf-aqua);
    background: transparent;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--surf-aqua);
    color: var(--bg-black);
    transform: translateY(-2px);
}

.btn-outline-surf-aqua {
    border: 2px solid var(--surf-aqua);
    color: var(--surf-aqua);
    background: transparent;
}

.btn-outline-surf-aqua:hover {
    background: var(--surf-aqua);
    color: var(--bg-black);
    border-color: var(--surf-aqua);
}

/* Background utilities */
.bg-dark-subtle {
    background-color: var(--bg-dark-subtle) !important;
}

.bg-surf-aqua {
    background-color: var(--surf-aqua) !important;
}

.bg-surf-teal {
    background-color: var(--surf-teal) !important;
}

.bg-surf-coral {
    background-color: var(--surf-coral) !important;
}

.bg-surf-sand {
    background-color: var(--surf-sand) !important;
}

/* Cards */
.feature-card, .lesson-card, .session-card, .credit-pack-card, .video-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-secondary);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover, .lesson-card:hover, .session-card:hover, .credit-pack-card:hover, .video-card:hover {
    transform: translateY(-5px);
    border-color: var(--surf-aqua);
    box-shadow: 0 10px 30px rgba(58, 242, 215, 0.2);
}

.feature-icon, .lesson-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--surf-aqua), var(--surf-teal));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--bg-black);
}

/* Session Cards */
.session-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.session-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    justify-content: between;
    align-items: flex-start;
}

.session-details {
    padding: 0 1.5rem 1rem;
}

.session-actions {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-secondary);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Credit Pack Cards */
.credit-pack-card {
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
}

.credit-pack-card.popular {
    border-color: var(--surf-aqua);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surf-aqua);
    color: var(--bg-black);
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.pack-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--surf-aqua), var(--surf-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--bg-black);
}

.credits-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--surf-aqua);
    line-height: 1;
}

.credits-label {
    font-size: 1.2rem;
    color: var(--text-light-50);
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
}

.price-per {
    font-size: 0.875rem;
    color: var(--text-light-50);
}

.price-save {
    background: var(--surf-coral);
    color: var(--bg-black);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Video Cards */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card.featured {
    border-color: var(--surf-aqua);
}

.video-badge {
    background: var(--surf-aqua);
    color: var(--bg-black);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Forms */
.form-card, .auth-card, .admin-form-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-secondary);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.auth-card {
    max-width: 400px;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 2rem 0;
    color: var(--text-light-50);
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-secondary);
}

.auth-divider span {
    background: var(--bg-black);
    padding: 0 1rem;
    position: relative;
}

.form-control:focus {
    border-color: var(--surf-aqua);
    box-shadow: 0 0 0 0.2rem rgba(58, 242, 215, 0.25);
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-black);
    border-top: 1px solid var(--border-secondary);
    padding: 1rem;
}

/* Admin Styles */
.admin-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-secondary);
    border-radius: 1rem;
    overflow: hidden;
}

.admin-card-header {
    background: var(--bg-dark-subtle);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.stats-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    border-color: var(--surf-aqua);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-black);
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stats-label {
    color: var(--text-light-50);
    font-size: 0.875rem;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-secondary);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.action-link:hover {
    background: var(--bg-dark-subtle);
    border-color: var(--surf-aqua);
    transform: translateY(-2px);
    color: var(--text-light);
}

.action-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--surf-aqua), var(--surf-teal));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-black);
    font-size: 1.25rem;
}

/* Tables */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
    --bs-table-border-color: var(--border-secondary);
}

/* Wallet */
.wallet-card {
    background: linear-gradient(135deg, rgba(58, 242, 215, 0.1), rgba(0, 163, 163, 0.1));
    border: 1px solid var(--surf-aqua);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.wallet-icon {
    width: 80px;
    height: 80px;
    background: var(--surf-aqua);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--bg-black);
}

.balance-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--surf-aqua);
    line-height: 1;
}

.balance-label {
    font-size: 1.5rem;
    color: var(--text-light-50);
}

/* Transactions */
.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-secondary);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.transaction-details {
    flex: 1;
}

.transaction-amount .positive {
    color: var(--surf-aqua);
}

.transaction-amount .negative {
    color: var(--surf-coral);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(58, 242, 215, 0.1), rgba(0, 163, 163, 0.1));
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(58, 242, 215, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Testimonials */
.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-secondary);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--surf-aqua);
}

.stars {
    margin-bottom: 1rem;
}

/* Empty States */
.empty-state {
    padding: 4rem 2rem;
}

.empty-state i {
    margin-bottom: 1rem;
}

/* Profile */
.profile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-secondary);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--surf-aqua), var(--surf-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--bg-black);
}

/* Bookings */
.booking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-secondary);
}

.booking-item:last-child {
    border-bottom: none;
}

/* Navigation Tabs */
.nav-tabs {
    border-bottom: 1px solid var(--border-secondary);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-light-50);
    background: transparent;
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--surf-aqua);
    background: transparent;
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--surf-aqua);
    background: transparent;
    border-color: var(--surf-aqua);
}

/* Request Cards */
.request-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.request-card:hover {
    transform: translateY(-2px);
    border-color: var(--surf-aqua);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .feature-card, .lesson-card, .session-card, .credit-pack-card {
        padding: 1.5rem;
    }
    
    .mobile-sticky-cta {
        display: block !important;
    }
    
    .main-content {
        padding-bottom: 80px; /* Account for sticky CTA */
    }
    
    .balance-number {
        font-size: 3rem;
    }
    
    .credits-number {
        font-size: 2.5rem;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 2rem 0 1rem;
        padding-top: calc(2rem + 76px);
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .auth-card, .form-card {
        padding: 1.5rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Highlight utility for active elements */
.highlight {
    animation: pulse 2s;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(58, 242, 215, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(58, 242, 215, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(58, 242, 215, 0);
    }
}

/* ===============================
   MOBILE APP STYLES
   =============================== */

/* Mobile Device Specific Styles */
.mobile-device {
    padding-bottom: 80px; /* Space for mobile navigation */
}

.mobile-device .navbar {
    display: none; /* Hide top navigation on mobile when bottom nav is active */
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-secondary);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    z-index: 1000;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light-50);
    font-size: 0.75rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: var(--surf-aqua);
    background: rgba(58, 242, 215, 0.1);
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

/* App Installation Prompt */
.install-prompt {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--surf-aqua), var(--surf-teal));
    color: var(--bg-black);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(58, 242, 215, 0.3);
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
}

.install-prompt.show {
    transform: translateY(0);
    opacity: 1;
}

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

.install-content i {
    font-size: 1.5rem;
}

.install-content span {
    flex: 1;
    font-weight: 600;
}

.install-prompt .btn {
    margin-left: 0.5rem;
}

/* Update Notification */
.update-notification {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    background: var(--surf-coral);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    z-index: 2000;
    animation: slideInDown 0.3s ease;
}

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

.update-content i {
    font-size: 1.2rem;
    animation: spin 2s linear infinite;
}

.update-content span {
    flex: 1;
    font-weight: 600;
}

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

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

/* Touch-friendly enhancements */
.mobile-device .btn {
    min-height: 44px; /* iOS recommended touch target size */
    padding: 12px 20px;
}

.mobile-device .form-control,
.mobile-device .form-select {
    min-height: 44px;
    font-size: 16px; /* Prevent zoom on iOS */
}

.mobile-device .card {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(58, 242, 215, 0.1);
}

/* Pull-to-refresh indicator */
.pull-to-refresh {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
    color: var(--surf-aqua);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pull-to-refresh.active {
    opacity: 1;
}

/* Swipe gestures feedback */
.swipe-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(58, 242, 215, 0.9);
    color: var(--bg-black);
    padding: 20px;
    border-radius: 50%;
    font-size: 2rem;
    z-index: 3000;
    animation: swipeIndicator 0.5s ease;
}

@keyframes swipeIndicator {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

/* iOS specific styles */
@supports (-webkit-touch-callout: none) {
    .mobile-device {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* Android specific styles */
@media (max-width: 767px) {
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height */
    }
}

/* Offline indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--surf-coral);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
    z-index: 2001;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.offline-indicator.show {
    transform: translateY(0);
}

/* Enhanced mobile card styles */
.mobile-device .feature-card,
.mobile-device .lesson-card,
.mobile-device .session-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-device .feature-card:active,
.mobile-device .lesson-card:active,
.mobile-device .session-card:active {
    transform: scale(0.98);
    background: rgba(58, 242, 215, 0.1);
}

/* Mobile-optimized video player */
.mobile-device .video-embed video {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(58, 242, 215, 0.2);
}

/* Haptic feedback visual indicator */
.haptic-feedback {
    animation: hapticPulse 0.1s ease;
}

@keyframes hapticPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* Loading states for mobile */
.mobile-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--surf-aqua);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .stat-item {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ===============================
   WEATHER DASHBOARD STYLES
   =============================== */

.weather-dashboard {
    min-height: 100vh;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 163, 163, 0.1) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
}

.weather-hero {
    background: linear-gradient(135deg, 
        rgba(58, 242, 215, 0.1) 0%, 
        rgba(0, 163, 163, 0.05) 100%);
    border-bottom: 1px solid var(--border-secondary);
}

.weather-clock {
    text-align: right;
}

.section-title {
    color: var(--surf-aqua);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--surf-aqua);
    border-radius: 2px;
}

/* Weather Cards */
.weather-main-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(58, 242, 215, 0.1);
}

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

.temperature {
    font-size: 4rem;
    font-weight: 300;
    color: var(--surf-aqua);
    display: block;
}

.weather-desc {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--text-light-75);
}

.weather-desc i {
    margin-right: 0.5rem;
    color: var(--surf-aqua);
}

.weather-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.detail-item i {
    width: 20px;
    color: var(--surf-teal);
}

/* Surf Conditions Card */
.surf-conditions-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(58, 242, 215, 0.1);
}

.condition-rating {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-transform: uppercase;
}

.condition-rating.poor {
    color: var(--surf-coral);
    background: rgba(255, 107, 107, 0.2);
}

.condition-rating.marginal {
    color: #FFB84D;
    background: rgba(255, 184, 77, 0.2);
}

.condition-rating.good {
    color: var(--surf-teal);
    background: rgba(76, 205, 196, 0.2);
}

.condition-rating.excellent {
    color: var(--surf-aqua);
    background: rgba(58, 242, 215, 0.2);
}

.condition-rating.extreme {
    color: var(--surf-coral);
    background: rgba(255, 107, 107, 0.2);
    animation: pulse 2s infinite;
}

.condition-description {
    font-size: 1rem;
    color: var(--text-light-75);
    margin-bottom: 1rem;
}

/* Visualization Cards */
.viz-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(58, 242, 215, 0.1);
}

/* Wind Compass */
.compass-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.compass-face {
    position: relative;
    width: 200px;
    height: 200px;
    border: 3px solid var(--surf-teal);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58, 242, 215, 0.1) 0%, transparent 70%);
}

.compass-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 80px;
    transform-origin: 50% 50%;
    transform: translate(-50%, -50%);
}

.arrow-head {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 20px solid var(--surf-aqua);
    margin: 0 auto;
}

.arrow-body {
    width: 4px;
    height: 60px;
    background: var(--surf-aqua);
    margin: 0 auto;
}

.compass-directions {
    position: absolute;
    width: 100%;
    height: 100%;
}

.compass-n, .compass-e, .compass-s, .compass-w {
    position: absolute;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-light-75);
}

.compass-n {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.compass-e {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.compass-s {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.compass-w {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

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

.wind-direction {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--surf-aqua);
}

.wind-degrees {
    font-size: 1rem;
    color: var(--text-light-50);
}

.wind-speed {
    font-size: 1.2rem;
    color: var(--text-light-75);
    margin-top: 0.5rem;
}

/* Wind Gauge */
.gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.gauge-face {
    position: relative;
    width: 200px;
    height: 100px;
    border-radius: 200px 200px 0 0;
    overflow: hidden;
    border: 3px solid var(--surf-teal);
    border-bottom: none;
}

.gauge-fill {
    width: 100%;
    height: 100%;
    border-radius: 200px 200px 0 0;
}

.gauge-center {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: var(--bg-black);
    padding: 0.5rem;
    border-radius: 8px;
    border: 2px solid var(--surf-teal);
}

.gauge-speed {
    font-size: 2rem;
    font-weight: bold;
    color: var(--surf-aqua);
    line-height: 1;
}

.gauge-unit {
    font-size: 0.8rem;
    color: var(--text-light-50);
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    width: 200px;
    font-size: 0.9rem;
    color: var(--text-light-50);
}

/* Forecast Cards */
.forecast-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.forecast-day-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forecast-day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(58, 242, 215, 0.2);
}

.forecast-header {
    margin-bottom: 1rem;
}

.day-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--surf-aqua);
}

.forecast-date {
    font-size: 0.9rem;
    color: var(--text-light-50);
}

.weather-icon {
    font-size: 2rem;
    color: var(--surf-teal);
    margin-bottom: 0.5rem;
}

.forecast-temp {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
}

.forecast-wind {
    margin: 1rem 0;
}

.wind-info {
    font-size: 0.9rem;
    color: var(--text-light-75);
    margin-bottom: 0.25rem;
}

.wind-direction {
    font-size: 0.8rem;
    color: var(--text-light-50);
}

.condition-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Recommendations Grid */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.recommendation-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(58, 242, 215, 0.1);
}

.recommendation-card h4 {
    color: var(--surf-aqua);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.recommendation-list li {
    margin-bottom: 1rem;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Spots Grid */
.spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.spot-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(58, 242, 215, 0.1);
}

.spot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(58, 242, 215, 0.2);
    border-color: var(--surf-aqua);
}

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

.spot-name {
    color: var(--surf-aqua);
    margin: 0;
    font-size: 1.1rem;
}

.spot-temp {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-light);
}

.spot-conditions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.spot-wind {
    font-size: 0.9rem;
    color: var(--text-light-75);
}

.spot-description {
    font-size: 0.9rem;
    color: var(--text-light-50);
    font-style: italic;
}

/* Location Selector */
.location-selector select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-secondary);
    color: var(--text-light);
}

.location-selector select:focus {
    border-color: var(--surf-aqua);
    box-shadow: 0 0 0 0.25rem rgba(58, 242, 215, 0.25);
}

/* Auto Refresh */
.auto-refresh {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-check-input:checked {
    background-color: var(--surf-aqua);
    border-color: var(--surf-aqua);
}

.last-updated {
    text-align: right;
}

/* Loading States */
.weather-loading {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .weather-hero .col-lg-4 {
        text-align: center;
        margin-top: 1rem;
    }
    
    .temperature {
        font-size: 3rem;
    }
    
    .compass-face, .gauge-face {
        width: 150px;
        height: 150px;
    }
    
    .gauge-face {
        height: 75px;
    }
    
    .forecast-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .spots-grid {
        grid-template-columns: 1fr;
    }
    
    .viz-card {
        padding: 1rem;
    }
}

/* Weather Loading Animation */
@keyframes weatherPulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.weather-loading .spinner-border {
    animation: weatherPulse 1.5s infinite;
}

/* ===============================
   LOCAL VIDEO STYLES
   =============================== */

.local-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: var(--bg-black);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(58, 242, 215, 0.1), rgba(0, 163, 163, 0.05));
}

.video-wrapper iframe,
.video-wrapper video {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.featured .video-wrapper {
    height: 350px;
}

.video-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(58, 242, 215, 0.1);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(58, 242, 215, 0.2);
    border-color: var(--surf-aqua);
}

.video-card.featured {
    border: 2px solid var(--surf-aqua);
    box-shadow: 0 12px 40px rgba(58, 242, 215, 0.3);
}

.video-info {
    padding: 1.5rem;
}

.video-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--surf-aqua), var(--surf-teal));
    color: var(--bg-black);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Video Controls Styling */
.local-video::-webkit-media-controls-panel {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9));
}

.local-video::-webkit-media-controls-play-button {
    background-color: var(--surf-aqua);
    border-radius: 50%;
}

.local-video::-webkit-media-controls-current-time-display,
.local-video::-webkit-media-controls-time-remaining-display {
    color: var(--text-light);
}

.local-video::-webkit-media-controls-timeline {
    background-color: rgba(58, 242, 215, 0.3);
}

.local-video::-webkit-media-controls-volume-slider {
    background-color: rgba(58, 242, 215, 0.3);
}

/* Loading state for videos */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid rgba(58, 242, 215, 0.2);
    border-top: 3px solid var(--surf-aqua);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper.loading::before {
    opacity: 1;
}

/* Video poster/thumbnail styling */
.local-video[poster] {
    background-size: cover;
    background-position: center;
    background-color: var(--bg-black);
}

/* Responsive video adjustments */
@media (max-width: 768px) {
    .video-wrapper {
        height: 200px;
    }
    
    .featured .video-wrapper {
        height: 250px;
    }
    
    .video-info {
        padding: 1rem;
    }
}

/* ===============================
   NAVBAR HAMBURGER MENU FIXES
   =============================== */

.navbar-toggler {
    border: 2px solid var(--surf-aqua) !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    background: rgba(58, 242, 215, 0.1) !important;
    transition: all 0.3s ease !important;
}

.navbar-toggler:hover {
    background: rgba(58, 242, 215, 0.2) !important;
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 15px rgba(58, 242, 215, 0.4) !important;
    outline: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%233AF2D7' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 20px !important;
    height: 20px !important;
}

/* Make hamburger menu more visible on mobile */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block !important;
        position: relative;
        z-index: 1050;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* ===============================
   iOS/ANDROID MOBILE APP STYLES
   =============================== */

/* iOS Safari fixes */
@supports (-webkit-appearance: none) {
    .hero-section {
        min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }
    
    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Android Chrome PWA styles */
.mobile-device {
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
}

/* Mobile app install prompt */
.install-prompt {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid var(--surf-aqua);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
}

.install-prompt.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.install-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.install-content i {
    color: var(--surf-aqua);
    font-size: 1.2rem;
}

/* App update notification */
.update-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: var(--surf-aqua);
    color: var(--bg-black);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(58, 242, 215, 0.4);
}

.update-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Haptic feedback visual indicator */
.haptic-feedback {
    animation: hapticPulse 0.1s ease-out;
}

@keyframes hapticPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* Offline indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ff6b6b;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
    z-index: 10000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.offline-indicator.show {
    transform: translateY(0);
}

/* Enhanced touch targets for mobile */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .nav-link {
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .mobile-bottom-nav .nav-item {
        min-height: 60px;
        min-width: 60px;
    }
}

/* iOS dynamic island and notch support */
@media (max-width: 768px) and (orientation: portrait) {
    .main-content {
        margin-top: calc(76px + env(safe-area-inset-top));
    }
    
    .navbar {
        padding-top: env(safe-area-inset-top);
        height: calc(76px + env(safe-area-inset-top));
    }
}

/* Android gesture navigation support */
@media (max-width: 768px) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .mobile-sticky-cta {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* Hero photo styling */
.hero-photo {
    text-align: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(58, 242, 215, 0.2);
    border: 2px solid rgba(58, 242, 215, 0.3);
    transition: all 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(58, 242, 215, 0.3);
    border-color: var(--surf-aqua);
}

@media (max-width: 768px) {
    .hero-image {
        max-width: 280px;
        border-radius: 12px;
    }
    
    /* Fix mobile header disappearing issue */
    .navbar.fixed-top {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1050 !important;
        background-color: #000000 !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        min-height: 56px !important;
        transform: translateY(0) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .navbar-brand img {
        max-height: 35px !important;
    }
}


/* Footer link hover effects */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--surf-aqua) !important;
}

