/* ========================================
   FULLY RESPONSIVE CSS - OPTIMIZED FOR ALL DEVICES
   ======================================== */

/* RESET & BASE STYLES */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Unified Palette */
    --primary-color: #00FF00;
    --secondary-color: #0000FF;
    --accent-gold: #d4af37;
    --accent-gold-dark: #b8942f;
    --accent-gold-light: #f7dc6f;
    --text-black: #1a1a1a;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --text-muted: #6b6b6b;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    
    /* Shadows & Effects */
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 30px 60px rgba(0,0,0,0.2);
    
    /* Spacing & Sizing - RESPONSIVE */
    --border-radius: clamp(12px, 2vw, 24px);
    --border-radius-sm: clamp(6px, 1.5vw, 12px);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Responsive Menu Heights */
    --menu-card-height: clamp(380px, 45vw, 540px);
    --menu-image-height: clamp(180px, 25vw, 280px);
    --menu-body-padding: clamp(1rem, 3vw, 2rem);
}

html { 
    scroll-behavior: smooth; 
    font-size: 16px; /* Base font size */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--primary-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ULTRA RESPONSIVE NAVBAR & LOGO
   ======================================== */
.navbar {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: var(--shadow-md) !important;
    padding: clamp(0.5rem, 2vw, 1rem) 0 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030 !important;
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
}

.navbar-logo {
    height: clamp(55px, 12vw, 110px) !important;
    width: clamp(55px, 12vw, 110px) !important;
    min-height: 55px !important;
    min-width: 55px !important;
    max-height: 120px !important;
    max-width: 120px !important;
    object-fit: contain !important;
    border-radius: var(--border-radius-sm) !important;
    box-shadow: var(--shadow-md) !important;
    transition: var(--transition) !important;
    border: 3px solid rgba(255,255,255,0.4) !important;
    background: rgba(255,255,255,0.95) !important;
    padding: clamp(4px, 1vw, 8px) !important;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.08) rotate(2deg) !important;
    box-shadow: var(--shadow-xl), 0 0 30px rgba(212, 175, 55, 0.3) !important;
    border-color: rgba(212, 175, 55, 0.7) !important;
}

/* Brand Text - PERFECT RESPONSIVE */
.brand-text-1 {
    color: #212529 !important;
    font-size: clamp(0.8rem, 3vw, 1.3rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-bottom: 0.1rem !important;
    letter-spacing: -0.02em !important;
}

.brand-text-2 {
    color: #0d6efd !important;
    font-size: clamp(0.8rem, 3vw, 1.3rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-bottom: 0.1rem !important;
    letter-spacing: -0.02em !important;
}

.brand-text-3 {
    color: #198754 !important;
    font-size: clamp(0.8rem, 3vw, 1.3rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    letter-spacing: -0.02em !important;
}

.navbar-brand {
    padding: clamp(0.5rem, 2.5vw, 1.5rem) !important;
    display: flex !important;
    align-items: center !important;
    gap: clamp(0.75rem, 4vw, 2rem) !important;
    border-radius: var(--border-radius) !important;
    transition: var(--transition) !important;
    background: rgba(255,255,255,0.4) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    min-height: clamp(70px, 12vw, 110px) !important;
}

.navbar-brand:hover {
    background: rgba(255,255,255,0.6) !important;
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-3px) !important;
}

/* RESPONSIVE BODY PADDING */
body {
    padding-top: clamp(80px, 14vw, 120px) !important;
}

/* ========================================
   MOBILE COLLAPSE MENU
   ======================================== */
.navbar-collapse {
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: blur(25px) !important;
    border-radius: var(--border-radius) !important;
    padding: clamp(1rem, 4vw, 2rem) !important;
    box-shadow: var(--shadow-xl) !important;
    margin-top: clamp(0.5rem, 2vw, 1rem) !important;
    max-height: 70vh;
    overflow-y: auto;
}

.nav-link-custom {
    display: block !important;
    padding: clamp(0.875rem, 3vw, 1.25rem) clamp(1rem, 3vw, 2rem) !important;
    margin: clamp(0.25rem, 1vw, 0.75rem) 0 !important;
    border-radius: var(--border-radius-sm) !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    font-size: clamp(1rem, 3vw, 1.1rem) !important;
    transition: var(--transition) !important;
}

.nav-link-custom:hover, .nav-link-custom.active {
    background: var(--gold-gradient) !important;
    color: var(--text-black) !important;
    transform: translateX(8px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* ========================================
   BUTTONS - FULL RESPONSIVE
   ======================================== */
.btn-primary-custom, .btn-gold, .manage-btn, .view-btn, .counter-btn {
    background: var(--gold-gradient);
    border: none;
    padding: clamp(0.875rem, 3vw, 1.25rem) clamp(1.5rem, 4vw, 2.5rem);
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    color: var(--text-black);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.btn-primary-custom:hover, .btn-gold:hover, .manage-btn:hover, .view-btn:hover, .counter-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--accent-gold-dark), var(--accent-gold));
}

/* ========================================
   HERO SECTION - PERFECT RESPONSIVE
   ======================================== */
.hero, .hero-split {
    min-height: clamp(80vh, 100vw, 100vh);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 8vw, 4rem) 0;
}

.hero-bg-left, .hero-bg-right {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-bg-left {
    left: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)), 
                url('../images/hero-left.jpg') center/cover no-repeat;
}

.hero-bg-right {
    right: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), 
                url('../images/hero-right.jpg') center/cover no-repeat;
}

.hero-overlay {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    padding: clamp(1.5rem, 6vw, 4rem) clamp(1rem, 5vw, 3rem);
    width: clamp(320px, 90vw, 1000px);
    max-width: 95vw;
    margin: 0 auto;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 10vw, 7rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: clamp(1rem, 4vw, 2rem);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}

/* ========================================
   MENU CARDS - ULTRA RESPONSIVE GRID
   ======================================== */
.menu-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(300px, 90vw, 380px), 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: stretch;
    padding: 0 clamp(1rem, 5vw, 2rem);
    max-width: 1400px;
    margin: 0 auto;
}

.menu-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: var(--menu-card-height);
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.menu-image-wrapper {
    height: var(--menu-image-height);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-bg), #e9ecef);
    flex-shrink: 0;
}

.menu-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-image { 
    transform: scale(1.1); 
}

.menu-card-body {
    flex: 1;
    padding: var(--menu-body-padding);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.menu-title {
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
    color: var(--text-black);
}

.menu-description {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    line-height: 1.6;
    color: var(--text-light);
    flex-grow: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-price {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--accent-gold);
    margin: 0.5rem 0;
}

.menu-badge {
    display: inline-flex;
    align-items: center;
    padding: clamp(0.4rem, 1.5vw, 0.75rem) clamp(0.75rem, 2vw, 1.25rem);
    border-radius: 50px;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   FEATURE & GALLERY - RESPONSIVE
   ======================================== */
.feature-card, .gallery-card-landing, .cert-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover, .gallery-card-landing:hover, .cert-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: clamp(70px, 15vw, 120px);
    height: clamp(70px, 15vw, 120px);
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(1.5rem, 4vw, 3rem);
    font-size: clamp(1.8rem, 6vw, 3rem);
    color: var(--white);
    flex-shrink: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 45vw, 350px), 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    padding: 0 clamp(1rem, 5vw, 2rem);
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   SECTIONS & TYPOGRAPHY
   ======================================== */
.section {
    padding: clamp(60px, 15vw, 140px) clamp(1rem, 5vw, 2rem);
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 4rem);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

/* ========================================
   FLOATING ELEMENTS
   ======================================== */
.whatsapp-float {
    position: fixed;
    width: clamp(50px, 12vw, 70px);
    height: clamp(50px, 12vw, 70px);
    bottom: clamp(15px, 4vw, 25px);
    right: clamp(15px, 4vw, 25px);
    background: #25d366;
    color: #FFF;
    border-radius: 50%;
    font-size: clamp(22px, 5vw, 35px);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: bounce 2s infinite;
    border: 3px solid rgba(255,255,255,0.3);
}

.counter-section {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(25px);
    border-radius: var(--border-radius);
    padding: clamp(1.5rem, 6vw, 4rem) clamp(1rem, 5vw, 3rem);
    margin: clamp(1.5rem, 4vw, 3rem) 0;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.counter-display {
    font-size: clamp(2.5rem, 12vw, 7rem);
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-align: center;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-6px); }
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar { 
    width: clamp(6px, 1vw, 10px); 
    height: clamp(6px, 1vw, 10px);
}
::-webkit-scrollbar-track { 
    background: rgba(0,0,0,0.1); 
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: clamp(3px, 0.5vw, 6px);
}
::-webkit-scrollbar-thumb:hover { 
    background: var(--accent-gold-dark); 
}

/* ========================================
   ULTRA RESPONSIVE BREAKPOINTS
   ======================================== */

/* Extra Small Mobile (iPhone SE, etc.) */
@media (max-width: 375px) {
    :root {
        --menu-card-height: 360px;
        --menu-image-height: 160px;
        --menu-body-padding: 1rem;
    }
    html { font-size: 15px; }
    .hero-overlay { padding: 1.5rem 1rem; }
    .section { padding: 50px 1rem; }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --menu-card-height: 400px;
        --menu-image-height: 180px;
    }
    .navbar-brand { gap: 0.75rem !important; }
}

/* Mobile Landscape */
@media (max-height: 500px) and (orientation: landscape) {
    body { padding-top: clamp(70px, 20vh, 90px) !important; }
    .navbar-logo { 
        height: clamp(50px, 15vw, 70px) !important;
        width: clamp(50px, 15vw, 70px) !important;
    }
    .brand-text-1, .brand-text-2, .brand-text-3 {
        font-size: 0.75rem !important;
        line-height: 1 !important;
    }
}

/* Tablet Portrait */
@media (min-width: 576px) and (max-width: 768px) {
    :root {
        --menu-card-height: 440px;
        --menu-image-height: 200px;
    }
    .menu-preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 992px) {
    :root {
        --menu-card-height: 480px;
        --menu-image-height: 240px;
    }
    .menu-preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    }
}

/* Laptop */
@media (min-width: 993px) and (max-width: 1200px) {
    .menu-preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    }
}

/* Desktop */
@media (min-width: 1201px) and (max-width: 1600px) {
    .menu-preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    }
}

/* 4K & Large Desktop */
@media (min-width: 1601px) {
    .menu-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .navbar-logo { 
        height: 120px !important; 
        width: 120px !important; 
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body { background-color: #1a1a1a; }
    .navbar { background: rgba(30,30,30,0.95) !important; }
    .menu-card, .feature-card { background: #2a2a2a; }
}

/* Form Styles */
.form-control, .form-select {
    border-radius: var(--border-radius-sm);
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.25rem);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-control.is-valid, .form-select.is-valid {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Container Fluid Fix */
.container, .container-fluid {
    padding-left: clamp(1rem, 5vw, 2rem);
    padding-right: clamp(1rem, 5vw, 2rem);
    max-width: 100%;
}

/* ========================================
   FINAL ULTRA-OPTIMIZATION 2024
   ======================================== */

/* iOS Safari Safe Areas */
body {
    padding-top: max(env(safe-area-inset-top), clamp(80px, 14vw, 120px)) !important;
    padding-bottom: env(safe-area-inset-bottom);
}

/* Android Chrome Gesture Navigation */
@supports not (padding: env(safe-area-inset-bottom)) {
    @media (max-width: 768px) {
        body { padding-bottom: 20px; }
    }
}

/* PWA / Standalone Mode */
@media (display-mode: standalone) {
    .navbar { 
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* High DPI Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion - Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Force GPU Acceleration */
.menu-card, .navbar-brand, .btn-primary-custom {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Print Styles */
@media print {
    .navbar, .whatsapp-float { display: none !important; }
    body { padding-top: 0 !important; }
}

/* Experimental Features - Future-Proof */
@supports (aspect-ratio: 1) {
    .feature-icon {
        aspect-ratio: 1;
    }
}

/* ========================================
   ULTRA RESPONSIVE PACKAGE TABS 2024
   ======================================== */

/* Container - Perfect Mobile Centering */
.tab-scroll-container {
    padding: clamp(0.5rem, 3vw, 1.5rem) !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS Smooth */
}

.tab-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Main Tabs Container */
#paketTabs {
    display: flex !important;
    gap: clamp(0.5rem, 2vw, 1.5rem) !important;
    padding: clamp(0.25rem, 1vw, 0.75rem) !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    scroll-padding-left: 1rem;
    scroll-padding-right: 1rem;
}

/* Individual Tab Items */
.nav-item {
    flex: 0 0 auto !important;
    min-width: clamp(110px, 24vw, 170px) !important;
    max-width: clamp(140px, 28vw, 200px) !important;
    scroll-snap-align: start;
}

/* Tab Buttons - PERFECT TOUCH TARGETS */
.package-tab-btn {
    width: 100% !important;
    min-height: clamp(70px, 16vw, 90px) !important;
    padding: clamp(0.75rem, 3vw, 1.25rem) clamp(0.5rem, 2vw, 1rem) !important;
    border-radius: var(--border-radius-sm) !important;
    border: none !important;
    font-size: clamp(0.8rem, 2.5vw, 1rem) !important;
    font-weight: 600 !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    touch-action: manipulation; /* iOS/Android Touch */
}

/* Active Tab */
.package-tab-btn.active {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* Hover Effects (Desktop Only) */
@media (hover: hover) {
    .package-tab-btn:hover {
        transform: translateY(-3px) scale(1.02) !important;
        box-shadow: var(--shadow-xl) !important;
    }
}

/* Tab Content Structure */
.package-tab-btn > .d-flex {
    width: 100% !important;
    height: 100% !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(0.25rem, 1vw, 0.5rem) !important;
}

/* Icons - Perfect Scaling */
.package-tab-btn i {
    font-size: clamp(1.2rem, 5vw, 1.6rem) !important;
    width: clamp(28px, 8vw, 36px) !important;
    height: clamp(28px, 8vw, 36px) !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: clamp(0.25rem, 1vw, 0.5rem) !important;
}

/* Tab Titles */
.package-tab-btn span {
    font-size: clamp(0.75rem, 2.8vw, 0.95rem) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    max-width: 95% !important;
    text-align: center !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
}

/* Menu Count */
.package-tab-btn small {
    font-size: clamp(0.65rem, 2.2vw, 0.8rem) !important;
    font-weight: 600 !important;
    opacity: 0.85 !important;
    margin-top: auto !important;
    line-height: 1 !important;
}

/* ========================================
   COLOR SCHEMES - RESPONSIVE GRADIENTS
   ======================================== */
.bg-primary {
    background: linear-gradient(135deg, #00d4ff, #0099cc) !important;
    color: #fff !important;
}

.bg-success-subtle {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: #fff !important;
}

.bg-warning-subtle {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    color: #fff !important;
}

.bg-info-subtle {
    background: linear-gradient(135deg, #17a2b8, #0dcaf0) !important;
    color: #fff !important;
}

/* Hover Color Variants */
.hover-success:hover { background: linear-gradient(135deg, #20c997, #28a745) !important; }
.hover-warning:hover { background: linear-gradient(135deg, #fd7e14, #ffc107) !important; }
.hover-info:hover { background: linear-gradient(135deg, #0dcaf0, #17a2b8) !important; }

/* Active State Glow */
.package-tab-btn.active {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2), 0 0 20px rgba(255,255,255,0.3) inset !important;
}

/* ========================================
   MOBILE-SPECIFIC OPTIMIZATIONS
   ======================================== */

/* iPhone Notch / Dynamic Island */
@supports (padding: env(safe-area-inset-top)) {
    .tab-scroll-container {
        padding-top: max(env(safe-area-inset-top), 0.5rem);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Android Gesture Navigation */
@media (max-width: 480px) {
    .tab-scroll-container {
        padding-bottom: 1rem;
    }
}

/* Small Screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .nav-item {
        min-width: clamp(100px, 28vw, 150px) !important;
    }
    .package-tab-btn {
        min-height: 65px !important;
        padding: 0.75rem 0.5rem !important;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-item {
        min-width: clamp(90px, 20vw, 130px) !important;
    }
    .package-tab-btn span {
        font-size: 0.7rem !important;
        -webkit-line-clamp: 1 !important;
    }
    .package-tab-btn small {
        font-size: 0.6rem !important;
        display: none; /* Hide count in landscape */
    }
}

/* Tablet Portrait */
@media (min-width: 576px) and (max-width: 768px) {
    #paketTabs {
        justify-content: center !important;
    }
    .nav-item {
        min-width: clamp(130px, 20vw, 180px) !important;
    }
}

/* ========================================
   TOUCH & GESTURE OPTIMIZATIONS
   ======================================== */
.package-tab-btn {
    /* Prevent Zoom on iOS */
    touch-action: manipulation;
    /* Haptic Feedback */
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

/* Smooth Scroll Snapping */
#paketTabs {
    scroll-snap-type: x proximity;
}

.nav-item {
    scroll-snap-align: center;
}

/* ========================================
   BROWSER-SPECIFIC FIXES
   ======================================== */

/* iOS Safari */
@supports (-webkit-touch-callout: none) {
    .package-tab-btn {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Android Chrome */
@supports not (scroll-snap-type: x mandatory) {
    .tab-scroll-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* Firefox Mobile */
@supports (scrollbar-width: none) {
    .tab-scroll-container {
        scrollbar-width: none;
    }
}

/* Edge Legacy */
@supports (-ms-overflow-style: none) {
    .tab-scroll-container {
        -ms-overflow-style: none;
    }
}

/* ========================================
   DARK MODE & ACCESSIBILITY
   ======================================== */
@media (prefers-color-scheme: dark) {
    .package-tab-btn {
        filter: brightness(1.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .package-tab-btn {
        transition: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .package-tab-btn {
        border: 2px solid rgba(255,255,255,0.3) !important;
    }
    .package-tab-btn.active {
        border-color: rgba(255,255,255,0.8) !important;
    }
}

/* Focus Visible for Keyboard */
.package-tab-btn:focus-visible {
    outline: 3px solid rgba(255,255,255,0.8) !important;
    outline-offset: 2px !important;
}

/* Custom responsive tabs untuk mobile */
.tab-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scroll iOS */
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.tab-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.tab-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.tab-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.tab-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Hover effects yang mobile-friendly */
.package-tab-btn {
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.package-tab-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.package-tab-btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Text wrapping yang lebih baik untuk mobile */
.text-wrap-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive font sizes */
@media (max-width: 480px) {
    .fs-xs-6 { font-size: 0.7rem !important; }
}

@media (max-width: 360px) {
    :root {
        --tab-min-width: 105px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .package-tab-btn {
        -webkit-touch-callout: none;
    }
    
    .tab-scroll-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* Android Chrome specific */
@supports not (-webkit-touch-callout: none) {
    .package-tab-btn {
        will-change: transform;
    }
}
/* ========================================
   FINAL ULTRA MOBILE PERFECT 2024
   ======================================== */

/* Prevent Text Zoom on iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select, input[type="text"], input[type="number"] {
        font-size: 16px; /* Minimum iOS zoom prevention */
    }
}

/* Perfect Tab Indicators */
.package-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: rgba(255,255,255,0.8);
    transition: width 0.3s ease;
}

.package-tab-btn.active::after {
    width: 70% !important;
}

/* Micro-interactions */
.package-tab-btn:active {
    scale: 0.98;
}

/* Landscape Tab Fix */
@media (max-height: 500px) and (min-width: 768px) {
    #paketTabs {
        gap: 0.75rem !important;
    }
    .nav-item {
        min-width: clamp(120px, 18vw, 160px) !important;
    }
}

/* iPad Pro Specific */
@media (min-width: 1024px) and (max-width: 1366px) and (max-height: 1024px) {
    .nav-item {
        min-width: 150px !important;
    }
}

/* ========================================
   ULTRA RESPONSIVE PACKAGE TABS v2.0 - MOBILE PERFECT 2024
   ======================================== */

/* 1. SCROLL CONTAINER - Perfect horizontal scroll */
.tab-scroll-container {
    padding: clamp(0.75rem, 4vw, 1.5rem) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important; /* iOS smooth scroll */
    overscroll-behavior-x: contain;
    scroll-padding-left: clamp(1rem, 5vw, 2rem);
    scroll-padding-right: clamp(1rem, 5vw, 2rem);
    -webkit-scrollbar-width: none;
}

.tab-scroll-container::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari hide scrollbar */
}

/* 2. MAIN TABS LIST */
#paketTabs, .mobile-tabs-scroll {
    display: flex !important;
    gap: clamp(0.5rem, 2.5vw, 1.25rem) !important;
    padding: clamp(0.25rem, 1.5vw, 0.75rem) clamp(1rem, 4vw, 2rem) !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. TAB ITEMS - RESPONSIVE WIDTH */
.nav-item, .mobile-tab-item {
    flex: 0 0 auto !important;
    min-width: clamp(95px, 23vw, 135px) !important;
    max-width: clamp(125px, 27vw, 165px) !important;
    scroll-snap-align: start !important;
}

/* 4. TAB BUTTONS - PERFECT TOUCH TARGETS */
.package-tab-btn, .mobile-tab-item {
    width: 100% !important;
    min-height: clamp(65px, 15vw, 85px) !important;
    padding: clamp(0.5rem, 2.5vw, 1rem) clamp(0.4rem, 1.8vw, 0.8rem) !important;
    border-radius: var(--border-radius-sm, 12px) !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    
    /* Touch optimizations */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Active Tab */
.package-tab-btn.active, .mobile-tab-item.active {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 0 20px rgba(255,255,255,0.3) !important;
}

/* 5. TAB CONTENT STRUCTURE */
.tab-content-wrapper {
    width: 100% !important;
    height: 100% !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(0.2rem, 1vw, 0.4rem) !important;
}

/* 6. ICONS - Perfect scaling */
.tab-icon {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem) !important;
    width: clamp(24px, 7vw, 32px) !important;
    height: clamp(24px, 7vw, 32px) !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: clamp(0.15rem, 0.8vw, 0.3rem) !important;
}

/* 7. TITLES - TEXT NEVER GETS CUT OFF */
.tab-title {
    font-size: clamp(0.7rem, 2.6vw, 0.9rem) !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    max-width: 92% !important;
    text-align: center !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
    hyphens: auto !important;
    padding: 0 0.1rem !important;
    margin: 0 !important;
}

/* 8. MENU COUNT */
.tab-count {
    font-size: clamp(0.6rem, 2vw, 0.75rem) !important;
    font-weight: 600 !important;
    opacity: 0.9 !important;
    margin-top: auto !important;
    line-height: 1 !important;
    min-height: 1em;
    white-space: nowrap !important;
}

/* 9. COLORS & HOVER EFFECTS */
.bg-primary { 
    background: linear-gradient(135deg, #00d4ff, #0099cc) !important; 
    color: #fff !important; 
}
.bg-success-subtle { 
    background: linear-gradient(135deg, #28a745, #20c997) !important; 
    color: #fff !important; 
}
.bg-warning-subtle { 
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important; 
    color: #fff !important; 
}
.bg-info-subtle { 
    background: linear-gradient(135deg, #17a2b8, #0dcaf0) !important; 
    color: #fff !important; 
}

/* Hover untuk desktop only */
@media (hover: hover) and (min-width: 769px) {
    .package-tab-btn:hover:not(.active), .mobile-tab-item:hover:not(.active) {
        transform: translateY(-3px) scale(1.03) !important;
        box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
    }
}

/* ========================================
   MOBILE BREAKPOINTS - PERFECT SIZING
   ======================================== */

/* iPhone SE & Extra Small (≤360px) */
@media (max-width: 360px) {
    .nav-item, .mobile-tab-item {
        min-width: 92px !important;
        max-width: 118px !important;
    }
    .tab-title {
        font-size: 0.68rem !important;
        -webkit-line-clamp: 1 !important;
        max-width: 90% !important;
    }
    .tab-count {
        font-size: 0.58rem !important;
    }
}

/* Small Mobile (361px - 480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .nav-item, .mobile-tab-item {
        min-width: clamp(100px, 24vw, 130px) !important;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-item, .mobile-tab-item {
        min-width: clamp(85px, 22vw, 120px) !important;
    }
    .tab-title {
        font-size: 0.68rem !important;
        -webkit-line-clamp: 1 !important;
        line-height: 1.1 !important;
    }
    .tab-count {
        font-size: 0.6rem !important;
    }
}

/* Tablet Portrait */
@media (min-width: 576px) and (max-width: 768px) {
    .mobile-tabs-scroll {
        justify-content: center !important;
    }
    .nav-item, .mobile-tab-item {
        min-width: clamp(135px, 22vw, 170px) !important;
    }
}

/* Tablet Landscape & Desktop */
@media (min-width: 769px) {
    .nav-item, .mobile-tab-item {
        min-width: clamp(150px, 18vw, 180px) !important;
    }
    .mobile-tabs-scroll {
        justify-content: center !important;
    }
}

@media (min-width: 992px) {
    .nav-item, .mobile-tab-item {
        min-width: 160px !important;
    }
}

/* ========================================
   TOUCH INTERACTIONS & ANIMATIONS
   ======================================== */
.package-tab-btn:active, .mobile-tab-item:active {
    transform: scale(0.97) !important;
    transition: transform 0.08s ease !important;
}

/* Scroll snapping */
#paketTabs, .mobile-tabs-scroll {
    scroll-snap-type: x proximity;
}
.nav-item, .mobile-tab-item {
    scroll-snap-align: center;
}

/* ========================================
   iOS SAFARI & ANDROID OPTIMIZATIONS
   ======================================== */
@supports (-webkit-touch-callout: none) {
    .tab-scroll-container {
        padding-bottom: max(env(safe-area-inset-bottom), 0.75rem);
    }
    .package-tab-btn, .mobile-tab-item {
        -webkit-touch-callout: none;
    }
}

/* ========================================
   ACCESSIBILITY & PERFORMANCE
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .package-tab-btn, .mobile-tab-item {
        transition: none !important;
    }
}

.package-tab-btn:focus-visible, .mobile-tab-item:focus-visible {
    outline: 2px solid rgba(255,255,255,0.9) !important;
    outline-offset: 1px !important;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .package-tab-btn, .mobile-tab-item {
        border: 2px solid rgba(255,255,255,0.3) !important;
    }
}