/* CSS Variables for Theme Support */
:root {
    --bg-primary: #0a0a0a;
    --bg-card: rgba(20, 20, 25, 0.6);
    --bg-card-dark: rgba(20, 20, 25, 0.7);
    --bg-tertiary: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-color: #d2691e;
    --accent-gradient: linear-gradient(135deg, #d2691e 0%, #cd7f32 100%);
}

/* Smooth scrolling for better mobile experience */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 13px; /* Base font size for rem calculations */
    background-color: #0a0a0a;
}

/* Better tap highlighting on mobile */
* {
    -webkit-tap-highlight-color: rgba(210, 105, 30, 0.1);
}

[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-dark: rgba(255, 255, 255, 0.95);
    --bg-tertiary: rgba(0, 0, 0, 0.05);
    --text-primary: #1a1a1a;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: rgba(0, 0, 0, 0.1);
}

[x-cloak] { 
    display: none !important; 
}

/* Dark theme base - Eye-catching rust orange and black design */
body {
    background-color: #0a0a0a;
    background-image: linear-gradient(135deg, #0a0a0a 0%, #1a0d05 50%, #0a0a0a 100%);
    background-attachment: fixed;
    position: relative;
    color: var(--text-primary);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 14px; /* Base body font size */
}

/* Animated rust orange glow spots */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(210, 105, 30, 0.22) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(205, 127, 50, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(183, 65, 14, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(139, 69, 19, 0.12) 0%, transparent 35%);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Light mode background */
[data-theme="light"] body {
    background: linear-gradient(135deg, #ffffff 0%, #fdf5e6 50%, #ffffff 100%);
    background-attachment: fixed;
}

[data-theme="light"] body::after {
    background: 
        radial-gradient(circle at 20% 30%, rgba(210, 105, 30, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(205, 127, 50, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(183, 65, 14, 0.08) 0%, transparent 50%);
}

/* Subtle grid pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(210, 105, 30, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(210, 105, 30, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] body::before {
    background-image: 
        linear-gradient(rgba(210, 105, 30, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(210, 105, 30, 0.05) 1px, transparent 1px);
}

main {
    position: relative;
    z-index: 1;
}

/* Glassmorphism navigation - EXACT from scraped data */
.nav-glass {
    background: rgba(20, 20, 25, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 20px;
    position: relative;
    z-index: 1000;
}

/* Center the navigation bar on the page with proper margins */
nav.nav-glass {
    margin-left: 16px !important;
    margin-right: 16px !important;
}

@media (min-width: 768px) {
    nav.nav-glass {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Center all navigation items */
    nav.nav-glass .container > div.flex {
        justify-content: center !important;
        gap: 2rem;
    }
}

/* Ensure all nav links are clickable */
.nav-glass a {
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    cursor: pointer;
}

/* Light mode navigation */
[data-theme="light"] .nav-glass {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* Orange accent gradient - EXACT from scraped data */
.gradient-bg {
    background: linear-gradient(135deg, #d2691e 0%, #cd7f32 100%);
}

/* Cart count badge in nav */
.cart-link-wrap { position: relative; display: inline-flex; align-items: center; }
.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: #d2691e;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.3);
}
.cart-count-badge.hidden { display: none !important; }
.cart-count-badge-inline { position: static; top: auto; right: auto; margin-left: 6px; }

.gradient-text {
    background: linear-gradient(135deg, #d2691e 0%, #cd7f32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-text {
    color: #d2691e;
}

/* Glass effect cards - EXACT from scraped data */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.glass-effect-dark {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

/* Light mode card styling - improved appearance */
[data-theme="light"] .glass-effect-dark {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Alert/notice box - theme-aware, amber/orange to match site accent */
.alert-notice {
    background: rgba(255, 237, 213, 0.95);
    border-left: 4px solid #ea580c;
    color: #9a3412;
}
[data-theme="dark"] .alert-notice {
    background: rgba(67, 20, 7, 0.6);
    border-left-color: #fb923c;
    color: #fed7aa;
}

/* Card hover – same lift + orange glow as buttons */
.card-hover {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.card-hover:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 20px 60px rgba(210, 105, 30, 0.4),
                0 10px 30px rgba(205, 127, 50, 0.3);
    border-color: rgba(210, 105, 30, 0.6);
    z-index: 10;
}

[data-theme="light"] .card-hover:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 20px 60px rgba(210, 105, 30, 0.35),
                0 10px 30px rgba(205, 127, 50, 0.25),
                0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(210, 105, 30, 0.6);
    background: rgba(255, 255, 255, 1);
    z-index: 10;
}

/* Orange button – same lift + orange glow as View All Products */
.btn-primary {
    background: linear-gradient(135deg, #d2691e 0%, #cd7f32 100%);
    color: white;
    border-radius: 12px;
    /* Explicit transition so global * doesn't override; needed for hover animation */
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease !important;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 36px rgba(210, 105, 30, 0.5),
                0 6px 20px rgba(205, 127, 50, 0.35) !important;
}

/* Ensure hover wins over any continuous animation; keep button visible (animate-on-load starts at opacity: 0) */
.btn-primary.anim-float:hover,
a.btn-primary.anim-float:hover {
    animation: none;
    opacity: 1;
}

/* Text colors - EXACT from scraped data */
.text-muted {
    color: #9ca3af;
}

/* Light mode text colors - better contrast */
[data-theme="light"] .text-muted {
    color: #6b7280;
}

/* Link hover - EXACT from scraped data */
.link-hover:hover {
    color: #d2691e;
}

/* Tailwind text color classes */
.text-gray-300 {
    color: #d1d5db !important;
}

.text-gray-400 {
    color: #9ca3af !important;
}

.text-gray-500 {
    color: #6b7280 !important;
}

.text-gray-600 {
    color: #4b5563 !important;
}

.text-gray-800 {
    color: #1f2937 !important;
}

.text-gray-900 {
    color: #111827 !important;
}

.text-white {
    color: #ffffff !important;
}

/* Hover colors */
.hover\:text-orange-400:hover,
[class*="hover:text-orange-400"]:hover {
    color: #fb923c !important;
}

/* Sub-header styling - EXACT from scraped data */
.sub-header {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hide scrollbar but allow scrolling - EXACT from scraped data */
.overflow-x-auto::-webkit-scrollbar {
    height: 4px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: rgba(210, 105, 30, 0.3);
    border-radius: 2px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(210, 105, 30, 0.5);
}

/* Theme toggle button - EXACT from scraped data */
.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.theme-toggle:hover {
    background: var(--bg-card-dark);
    border-color: #d2691e;
    transform: scale(1.1);
}

/* Theme-aware overrides for common Tailwind classes - EXACT from scraped data */
[data-theme="light"] .text-white {
    color: var(--text-primary) !important;
}

[data-theme="light"] .bg-white {
    background-color: var(--bg-card) !important;
}

[data-theme="light"] .bg-gray-50,
[data-theme="light"] .bg-gray-100 {
    background-color: var(--bg-tertiary) !important;
}

[data-theme="light"] .text-gray-800,
[data-theme="light"] .text-gray-900 {
    color: var(--text-primary) !important;
}

[data-theme="light"] .text-gray-600,
[data-theme="light"] .text-gray-500 {
    color: var(--text-muted) !important;
}

[data-theme="light"] .border-gray-200,
[data-theme="light"] .border-gray-300 {
    border-color: var(--border-color) !important;
}

[data-theme="light"] .border-gray-700,
[data-theme="light"] .border-gray-800 {
    border-color: var(--border-color) !important;
}

/* Smooth transitions for theme changes - EXACT from scraped data */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Ensure all links are clickable */
a[href] {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 10;
}

/* Exclude images and videos from color transitions - EXACT from scraped data */
img, video, svg, canvas {
    transition: none !important;
}

/* Global theme-aware overrides for common patterns - EXACT from scraped data */
[data-theme="light"] .bg-white,
[data-theme="light"] .bg-gray-50,
[data-theme="light"] .bg-gray-100 {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .bg-white {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .bg-gray-50,
[data-theme="dark"] .bg-gray-100 {
    background-color: var(--bg-card-dark) !important;
    color: var(--text-primary) !important;
}

/* Input and form elements - EXACT from scraped data */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted) !important;
}

/* Logo styling to match Tailwind classes */
.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #d2691e 0%, #cd7f32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation links */
.nav-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fb923c;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 24px;
}

.mobile-link {
    display: block;
    padding: 12px 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--accent-color);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 768px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 48px;
    text-align: center;
    background: linear-gradient(135deg, #d2691e 0%, #cd7f32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.product-card {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 24px 48px rgba(210, 105, 30, 0.3);
    border-color: rgba(210, 105, 30, 0.5);
    z-index: 10;
}

.product-image-placeholder {
    width: 100%;
    height: 140px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #d2691e;
}

.product-info {
    padding: 20px;
}

p, li, span, div {
    font-size: inherit;
}

.product-name {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-current {
    font-size: 20px;
    font-weight: bold;
    color: #d2691e;
}

.price-old {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 16px;
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

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

.feature-card {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 24px 48px rgba(210, 105, 30, 0.3);
    border-color: rgba(210, 105, 30, 0.5);
    z-index: 10;
}

/* Package card styles */
.package-card {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    position: relative;
}

.package-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 20px 60px rgba(210, 105, 30, 0.4),
                0 10px 30px rgba(205, 127, 50, 0.3);
    border-color: rgba(210, 105, 30, 0.6) !important;
    z-index: 10;
}

/* Selected/current tier card */
.package-card.tier-current,
.tier-current {
    transform: translateY(-10px) scale(1.04) !important;
    box-shadow: 0 18px 56px rgba(249, 115, 22, 0.45),
                0 9px 28px rgba(249, 115, 22, 0.3),
                0 0 0 2px rgba(249, 115, 22, 0.4) !important;
    border-color: #f97316 !important;
    background: var(--bg-card) !important;
    z-index: 5;
}

.package-card.tier-current:hover,
.tier-current:hover {
    transform: translateY(-14px) scale(1.06) !important;
    box-shadow: 0 24px 72px rgba(249, 115, 22, 0.5),
                0 12px 36px rgba(249, 115, 22, 0.35),
                0 0 0 2px rgba(249, 115, 22, 0.5) !important;
    z-index: 15;
}

/* Tier card styles */
.tier-card {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    position: relative;
}

.tier-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 20px 60px rgba(210, 105, 30, 0.4),
                0 10px 30px rgba(205, 127, 50, 0.3);
    border-color: rgba(210, 105, 30, 0.6) !important;
    z-index: 10;
}

/* Make VPS card text larger with proper structure */
.package-card .text-sm {
    font-size: 16px !important;
    display: block;
    line-height: 1.3;
}

.package-card .text-xs {
    font-size: 13px !important;
    display: block;
    line-height: 1.4;
}

.package-card .font-bold {
    font-size: 15px !important;
    display: block;
    line-height: 1.3;
}

.package-card .mb-1 {
    margin-bottom: 8px !important;
}

.package-card .mb-2 {
    margin-bottom: 10px !important;
}

.tier-card .text-xs {
    font-size: 13px !important;
    display: block;
    line-height: 1.3;
}

.tier-card .accent-text {
    font-size: 14px !important;
    display: block;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    color: #9ca3af;
    line-height: 1.6;
    font-size: 14px;
}

/* Footer */
footer {
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

/* Center footer content */
footer.nav-glass {
    margin-left: auto !important;
    margin-right: auto !important;
}

footer.nav-glass .container {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

footer.nav-glass .footer-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

footer.nav-glass .footer-grid > div {
    text-align: center;
}

footer.nav-glass .footer-links {
    text-align: center;
}

footer.nav-glass .footer-bottom {
    text-align: center;
}

.footer-brand {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #d2691e 0%, #cd7f32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-heading {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 16px;
    color: #d2691e;
}

.footer-description {
    color: #9ca3af;
    line-height: 1.6;
    font-size: 14px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-link:hover {
    color: #d2691e;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* Support for Tailwind grid classes */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    [class*="md:grid-cols-2"],
    [class*="md\\:grid-cols-2"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    
    [class*="md:grid-cols-4"],
    [class*="md\\:grid-cols-4"] {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    [class*="lg:grid-cols-4"],
    [class*="lg\\:grid-cols-4"] {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

.gap-6 {
    gap: 24px;
}

.gap-8 {
    gap: 32px;
}

/* Additional utility classes */
.rounded-2xl {
    border-radius: 16px;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Light mode shadows - softer and more visible */
[data-theme="light"] .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.overflow-hidden {
    overflow: hidden;
}

.w-full {
    width: 100%;
}

.h-48 {
    height: 140px;
}

.object-cover {
    object-fit: cover;
}

/* Larger image size for hero/featured items */
.h-96 {
    height: 280px;
}

.p-5 {
    padding: 20px;
}

.p-8 {
    padding: 32px;
}

.text-2xl {
    font-size: 22px;
}

.text-3xl {
    font-size: 28px;
}

.text-4xl {
    font-size: 34px;
}

.text-5xl {
    font-size: 42px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-12 {
    margin-bottom: 48px;
}

.py-20 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.font-extrabold {
    font-weight: 800;
}

.font-bold {
    font-weight: 700;
}

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

.text-xs {
    font-size: 13px;
}

.text-sm {
    font-size: 15px;
}

.text-base {
    font-size: 16px;
}

.text-lg {
    font-size: 18px;
}

.text-xl {
    font-size: 20px;
}

.mb-2 {
    margin-bottom: 8px;
}

.line-through {
    text-decoration: line-through;
}

/* Light mode line-through - darker color for better visibility */
[data-theme="light"] .line-through {
    color: #9ca3af;
    opacity: 0.7;
}

.items-center {
    align-items: center;
}

.space-x-2 > * + * {
    margin-left: 8px;
}

/* Responsive Design - Mobile Optimizations */
@media (max-width: 768px) {
    /* Typography adjustments for mobile */
    html {
        font-size: 13px;
    }
    
    body {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    /* Grid layouts - single column on mobile */
    .products-grid,
    .grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    /* Navigation adjustments */
    .nav-glass {
        margin-left: 8px;
        margin-right: 8px;
        padding: 10px 12px;
    }
    
    /* Logo adjustments on mobile */
    nav a.flex.items-center img {
        height: 48px !important;
    }
    
    nav a.flex.items-center span {
        font-size: 18px;
    }
    
    /* Mobile menu improvements */
    #mobile-menu {
        padding: 16px;
        border-radius: 12px;
        margin-top: 8px;
    }
    
    #mobile-menu a {
        padding: 12px 8px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    /* Touch-friendly buttons */
    .btn-primary,
    button.btn-primary,
    a.btn-primary {
        padding: 14px 20px !important;
        font-size: 15px !important;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Card spacing */
    .glass-effect,
    .glass-effect-dark {
        padding: 16px;
        margin: 12px 0;
    }
    
    /* Package/tier cards on mobile */
    .package-card,
    .tier-card {
        padding: 10px !important;
        margin-bottom: 10px;
    }
    
    /* Make cards more compact */
    .package-card > div,
    .tier-card > div {
        margin-bottom: 4px;
    }
    
    .package-card > div:last-child,
    .tier-card > div:last-child {
        margin-bottom: 0;
    }
    
    /* Category headers on mobile */
    .category-header h3 {
        font-size: 20px !important;
    }
    
    /* Container padding */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Hero section adjustments */
    main.container {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    /* Max width containers on mobile */
    .max-w-7xl {
        max-width: 100%;
    }
    
    /* Reduce excessive padding on mobile */
    .py-12 {
        padding-top: 24px;
        padding-bottom: 24px;
    }
    
    .py-20 {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .px-4 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .px-6 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* Logo sizing on mobile */
    nav a.flex.items-center img {
        height: 48px !important;
        padding: 4px;
    }
    
    nav a.flex.items-center span {
        font-size: 20px;
    }
    
    /* Better spacing for product cards */
    .product-card,
    .card-hover {
        margin-bottom: 16px;
    }
    
    /* Slightly reduce hover effects on mobile for better touch experience */
    .card-hover:hover,
    .package-card:hover,
    .tier-card:hover,
    .product-card:hover {
        transform: translateY(-6px) scale(1.02);
    }
    
    .package-card.tier-current:hover,
    .tier-current:hover {
        transform: translateY(-8px) scale(1.03);
    }
    
    /* Reduce card text sizes slightly on mobile for better fit */
    .package-card .text-sm {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }
    
    .package-card .text-xs {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }
    
    .package-card .font-bold {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }
    
    /* Reduce spacing between lines in cards */
    .package-card .mb-1 {
        margin-bottom: 4px !important;
    }
    
    .package-card .mb-2 {
        margin-bottom: 6px !important;
    }
    
    /* Tier cards */
    .tier-card .text-xs {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    
    .tier-card .accent-text {
        font-size: 12px !important;
        line-height: 1.2 !important;
    }
    
    /* Adjust pricing card text on mobile */
    .price-current {
        font-size: 17px;
        line-height: 1.2;
    }
    
    .product-name {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 6px !important;
    }
    
    .price-old {
        font-size: 14px;
    }
    
    /* Feature cards on mobile */
    .feature-title {
        font-size: 16px !important;
        line-height: 1.3;
    }
    
    .feature-description {
        font-size: 13px !important;
        line-height: 1.4;
    }
    
    .feature-icon {
        font-size: 40px !important;
        margin-bottom: 10px !important;
    }
    
    /* Mobile-friendly footer */
    .footer-links li {
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    .footer-brand {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .footer-heading {
        font-size: 16px;
        margin-bottom: 12px;
        margin-top: 20px;
    }
    
    .footer-link {
        font-size: 14px;
    }
    
    .footer-bottom {
        font-size: 13px;
    }
    
    /* Ensure text is readable */
    p, li {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Mobile: keep larger text sizes */
    .text-xs {
        font-size: 13px;
    }
    
    .text-sm {
        font-size: 14px;
    }
    
    .text-base {
        font-size: 15px;
    }
    
    /* Touch target sizing for mobile */
    a, button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Mobile form inputs */
    input, textarea, select {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 12px;
    }
    
    /* VPS page mobile fixes */
    #package-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* Ensure buttons are easily tappable */
    .btn-primary {
        min-height: 48px;
        padding: 14px 20px !important;
    }
    
    /* Make dropdowns easier to use */
    select {
        min-height: 48px;
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d2691e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 40px;
    }
    
    /* Improve spacing in config summary */
    #config-summary,
    #config-price {
        font-size: 14px !important;
    }
    
    /* Better layout for two-column sections on mobile */
    .grid.md\:grid-cols-2,
    [class*="md:grid-cols-2"] {
        gap: 12px !important;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Utility Classes */
/* Note: .hidden is defined above in responsive section */

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 32px;
}

.mt-10 {
    margin-top: 40px;
}

.mx-4 {
    margin-left: 16px;
    margin-right: 16px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-7xl {
    max-width: 1280px;
}

.px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

.px-6 {
    padding-left: 24px;
    padding-right: 24px;
}

.py-4 {
    padding-top: 16px;
    padding-bottom: 16px;
}

.py-12 {
    padding-top: 48px;
    padding-bottom: 48px;
}

.space-x-3 > * + * {
    margin-left: 12px;
}

.space-x-6 > * + * {
    margin-left: 24px;
}

.space-y-2 > * + * {
    margin-top: 8px;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

/* Logo - keep icon and text on same line */
nav a.flex.items-center {
    display: flex !important;
    align-items: center !important;
    white-space: nowrap;
    flex-shrink: 0;
}

nav a.flex.items-center span {
    white-space: nowrap;
    flex-shrink: 0;
}

nav a.flex.items-center div {
    flex-shrink: 0;
}

/* Logo image styling - bigger with padding */
nav a.flex.items-center img {
    height: 64px !important;
    width: auto !important;
    padding: 8px;
    object-fit: contain;
    margin-right: 4px;
}

.h-20 {
    height: 80px;
}

.font-semibold {
    font-weight: 600;
}

.inline-block {
    display: inline-block;
}

/* Tailwind responsive utilities */
.hidden {
    display: none !important;
}

@media (min-width: 768px) {
    /* Show elements with md:flex on desktop */
    [class*="md:flex"] {
        display: flex !important;
    }
    
    /* Hide elements with md:hidden on desktop */
    [class*="md:hidden"] {
        display: none !important;
    }
    
    .md\:mx-auto,
    [class*="md:mx-auto"] {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Fix for hidden md:flex pattern - show on desktop */
    .hidden[class*="md:flex"],
    [class*="hidden"][class*="md:flex"] {
        display: flex !important;
    }
}

/* Ensure navigation links are always visible on desktop */
@media (min-width: 768px) {
    /* Force navigation menu to show on desktop - multiple selectors to catch all variations */
    nav div.hidden[class*="md:flex"],
    nav div[class*="hidden"][class*="md:flex"],
    nav .hidden.md\:flex,
    nav div.container > div > div.hidden[class*="md:flex"] {
        display: flex !important;
        visibility: visible !important;
    }
    
    /* Navigation links styling */
    nav a.text-gray-300,
    nav a[class*="text-gray-300"] {
        color: #d1d5db !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        position: relative;
        z-index: 1001;
    }
    
    /* Ensure all navigation items are visible */
    nav a[href] {
        display: inline-block !important;
        visibility: visible !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        position: relative;
        z-index: 1001;
    }
    
    /* Sign Up button */
    nav a.btn-primary {
        display: inline-block !important;
        visibility: visible !important;
    }
}

/* Force navigation visibility - override any hidden classes on desktop */
@media (min-width: 768px) {
    /* Target navigation menu with hidden md:flex */
    nav div[class*="hidden"][class*="md:flex"] {
        display: flex !important;
    }
    
    /* Override inline styles if present */
    nav div[class*="hidden"][class*="md:flex"][style*="display: none"] {
        display: flex !important;
    }
}

/* Looping logo videos - no controls, behave like images */
.logo-video {
    display: block;
    background: #0a0a0a;
}
.logo-video::-webkit-media-controls {
    display: none !important;
}
.logo-video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Homepage full-page background video (index.html only) - extends to very top to avoid black bar */
.homepage-bg-video-wrap {
    position: fixed;
    top: calc(-1 * env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100% + env(safe-area-inset-top, 0px));
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0d05 0%, #0a0a0a 50%, #1a0d05 100%);
}
.homepage-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    object-position: center;
}
.homepage-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.5);
    pointer-events: none;
}

/* After video plays once, hide it and show the static gradient background */
.homepage-bg-video-wrap.homepage-bg-video-ended {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}
