@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   SERVER RENTAL WEBSITE - Design System
   Theme: Dark Modern / Blue-Gold-Silver-Purple
   ============================================ */

/* ---- SVG Icon Base ---- */
.svg-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    display: inline-block;
    flex-shrink: 0;
}

.logo-icon .svg-icon {
    width: 20px;
    height: 20px;
    stroke: var(--gold-primary);
}

.feature-icon .svg-icon {
    width: 48px;
    height: 48px;
}

.badge-icon .svg-icon {
    width: 20px;
    height: 20px;
}

.footer-social a .svg-icon {
    width: 18px;
    height: 18px;
}

.svg-star {
    color: #facc15;
}

.hero-server-card h3 .svg-icon {
    width: 24px;
    height: 24px;
    vertical-align: -0.2em;
}

/* ---- CSS Variables ---- */
:root {
    /* Background */
    --bg-primary: #06080f;
    --bg-secondary: #0c1020;
    --bg-card: rgba(15, 20, 40, 0.7);
    --bg-glass: rgba(15, 20, 45, 0.6);

    /* Brand Colors */
    --blue-primary: #2563eb;
    --blue-light: #3b82f6;
    --blue-glow: #60a5fa;
    --gold-primary: #d4a843;
    --gold-light: #f0d078;
    --silver-primary: #c0c0c0;
    --silver-light: #e8e8e8;
    --purple-primary: #7c3aed;
    --purple-light: #a78bfa;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #d4a843, #f0d078);
    --gradient-blue: linear-gradient(135deg, #2563eb, #60a5fa);
    --gradient-purple: linear-gradient(135deg, #7c3aed, #a78bfa);
    --gradient-hero: linear-gradient(135deg, #2563eb, #7c3aed, #d4a843);
    --gradient-card-border: linear-gradient(135deg, rgba(37, 99, 235, 0.5), rgba(124, 58, 237, 0.5), rgba(212, 168, 67, 0.3));

    /* Shadows */
    --shadow-blue: 0 0 30px rgba(37, 99, 235, 0.3);
    --shadow-gold: 0 0 30px rgba(212, 168, 67, 0.3);
    --shadow-purple: 0 0 30px rgba(124, 58, 237, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Spacing */
    --nav-height: 72px;
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Kanit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

/* Explicit styling for select options to prevent OS default white background */
select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* ---- Utility Classes ---- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
}

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

.text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-blue {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-blue);
    color: #fff;
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.5);
}

.btn-gold {
    background: var(--gradient-gold);
    color: #0a0e1a;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(212, 168, 67, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--blue-light);
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 42px;
    font-size: 1.05rem;
}

/* ---- Navigation ---- */
/* ---- Live Status Bar ---- */
.live-status-bar {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(6, 8, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.live-status-bar.hidden {
    opacity: 0;
    visibility: hidden;
}

.status-marquee {
    overflow: hidden;
    padding: 7px 0;
}

.status-marquee-track {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: statusScroll 25s linear infinite;
    width: max-content;
}

@keyframes statusScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.live-status-bar .status-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.live-status-bar .status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(34,197,94,0.5);
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
    50% { opacity: 0.5; box-shadow: 0 0 2px rgba(34,197,94,0.2); }
}

.status-marquee-track .status-item::after {
    content: '·';
    margin-left: 40px;
    color: rgba(255,255,255,0.15);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    background: rgba(6, 8, 15, 0.55);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(6, 8, 15, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    z-index: 1001;
}

.nav-logo .logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-hero);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
}

.nav-logo .logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.footer-brand .logo-img {
    height: 120px;
    width: auto;
    display: block;
}

.footer-brand .nav-logo {
    z-index: auto;
    position: relative;
}

.nav-logo span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.nav-actions .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* User Dropdown Menu */
.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.user-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.user-dropdown-toggle .user-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%) translateY(10px);
    margin-top: 10px;
    background: rgba(20, 24, 34, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    width: 240px;
    padding: 8px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav-user-menu:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}

.dropdown-header {
    padding: 12px 16px;
}

.dropdown-header-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-balance-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    color: var(--gold-primary);
    font-weight: 700;
    margin-top: 4px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-item svg {
    color: var(--text-muted);
    transition: color 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item:hover svg {
    color: var(--gold-primary);
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dropdown-item.text-danger:hover svg {
    color: #ef4444;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-normal);
    border-radius: 2px;
}

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

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

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

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: auto;
    max-height: 0;
    overflow: hidden;
    background: rgba(10, 13, 22, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 24px 24px;
    z-index: 1001;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.mobile-menu.active {
    max-height: none;
    padding: 24px 20px;
}

.mobile-menu a {
    font-size: 1.1rem;
    padding: 14px 40px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: var(--transition-fast);
    width: 100%;
    text-align: center;
}

.mobile-menu a:hover,
.mobile-menu a.active-link {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* ---- Hero Section ---- */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--nav-height) + 120px);
    background: url('../images/hero-home.webp') center center / cover no-repeat;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-bg .orb-1 {
    width: 500px;
    height: 500px;
    background: var(--blue-primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-bg .orb-2 {
    width: 400px;
    height: 400px;
    background: var(--purple-primary);
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.hero-bg .orb-3 {
    width: 300px;
    height: 300px;
    background: var(--gold-primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
    opacity: 0.2;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding-right: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    color: var(--blue-light);
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--blue-light);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title .highlight {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

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

.hero-stat .number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hero Visual Premium Redesign */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
    perspective: 1000px;
}

/* Glowing Orb Background */
.hero-visual::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.25) 0%, rgba(37, 99, 235, 0.1) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    z-index: 0;
    animation: pulseOrb 6s ease-in-out infinite alternate;
}

@keyframes pulseOrb {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.hero-server-card {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(150deg, rgba(30, 36, 51, 0.8) 0%, rgba(15, 18, 25, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 36px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    z-index: 2;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transform: translateY(0) rotateX(4deg) rotateY(-4deg);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}

.hero-server-card:hover {
    transform: translateY(-10px) rotateX(0) rotateY(0);
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(212, 168, 67, 0.2) inset, 0 0 40px rgba(212, 168, 67, 0.15);
    border-color: rgba(212, 168, 67, 0.3);
}

.hero-server-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.6), transparent 30%, transparent 70%, rgba(37, 99, 235, 0.6));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.hero-server-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.9), transparent 20%, transparent 80%, rgba(37, 99, 235, 0.9));
}

.server-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.server-card-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.server-card-header h3 svg {
    color: var(--gold-primary);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.server-status .dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulseStatus 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

@keyframes pulseStatus {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.server-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.spec-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.spec-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
    border-color: rgba(212, 168, 67, 0.2);
}

.spec-item .spec-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.spec-item .spec-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.server-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.server-price .currency {
    font-size: 1rem;
    color: var(--gold-primary);
    font-weight: 600;
}

.server-price .period {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

/* Floating elements around server card */
.floating-badge {
    position: absolute;
    background: rgba(20, 24, 34, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: floatBadge 6s ease-in-out infinite;
    z-index: 3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 168, 67, 0.2) inset;
}

.floating-badge .badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.floating-badge .badge-icon.blue {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.05));
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.floating-badge .badge-icon.gold {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.2), rgba(212, 168, 67, 0.05));
    color: var(--gold-light);
    border: 1px solid rgba(212, 168, 67, 0.2);
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.15);
}

.floating-badge .badge-icon.purple {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.05));
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.floating-badge.badge-1 {
    top: -40px;
    right: -80px;
    animation-delay: 0s;
}

.floating-badge.badge-2 {
    bottom: -40px;
    left: -70px;
    animation-delay: -3s;
}

@keyframes floatBadge {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* ---- Glass Card Component ---- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(16px);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--gradient-card-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.glass-card:hover::before {
    opacity: 1;
}

/* ---- Feature Section ---- */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    text-align: center;
    padding: 40px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.feature-card:nth-child(2) .feature-icon {
    background: rgba(212, 168, 67, 0.1);
    border-color: rgba(212, 168, 67, 0.2);
}

.feature-card:nth-child(3) .feature-icon {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* ---- Pricing Cards ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.pricing-card {
    padding: 36px;
    text-align: center;
    position: relative;
}

.server-machine-img {
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease, margin-bottom 0.4s ease;
    margin-bottom: 0;
}

.server-machine-card:hover .server-machine-img {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0) scale(1);
    margin-bottom: 16px;
}

.server-machine-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

.pricing-card.featured {
    border-color: rgba(212, 168, 67, 0.3);
    background: linear-gradient(135deg, rgba(15, 20, 40, 0.9), rgba(212, 168, 67, 0.05));
}

.pricing-card.featured::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.5), rgba(37, 99, 235, 0.5));
}

.pricing-label {
    display: inline-block;
    padding: 4px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.pricing-label.basic { background: rgba(37, 99, 235, 0.15); color: var(--blue-light); }
.pricing-label.pro { background: rgba(212, 168, 67, 0.15); color: var(--gold-light); }
.pricing-label.enterprise { background: rgba(124, 58, 237, 0.15); color: var(--purple-light); }

.pricing-price {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 12px 0;
}

.pricing-price .currency {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
    vertical-align: super;
}

.pricing-price .period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    text-align: left;
    margin: 24px 0;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '\2713';
    color: var(--blue-light);
    font-weight: 700;
    font-size: 0.85rem;
}

.pricing-card.featured .pricing-features li::before {
    color: var(--gold-light);
}

/* ---- Testimonials ---- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.testimonial-card {
    padding: 32px;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: var(--gold-primary);
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-author-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.testimonial-author-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- CTA Section ---- */
.cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.15), transparent 70%);
    pointer-events: none;
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 12px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--blue-primary);
    transform: translateY(-2px);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-column a {
    display: block;
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-primary);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ---- Auth Pages ---- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(20px);
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--gradient-card-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.auth-tabs {
    display: flex;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.auth-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--blue-primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* ---- Dashboard ---- */
.rental-cards-wrapper {
    display: none;
}

.dashboard {
    padding-top: calc(var(--nav-height) + 40px);
    min-height: 100vh;
}

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

.dashboard-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 24px;
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
}

.dash-actions {
    display: flex;
    gap: 10px;
}

.dash-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dash-control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---- Table ---- */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.data-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.data-table td {
    padding: 16px 18px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.78rem;
    font-weight: 600;
}

.status-active {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
}

.status-expired {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

/* ---- Page Header ---- */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(37, 99, 235, 0.12), transparent 60%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

/* ---- Policy Pages ---- */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

.policy-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--gold-light);
}

.policy-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--silver-light);
}

.policy-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.9;
}

.policy-content ul {
    margin: 12px 0 20px 24px;
    list-style: disc;
}

.policy-content ul li {
    color: var(--text-secondary);
    padding: 4px 0;
    line-height: 1.7;
}

.policy-content .last-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Payment ---- */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.payment-method-card {
    padding: 28px;
    cursor: pointer;
}

.payment-method-card.active {
    border-color: var(--blue-primary);
    background: rgba(37, 99, 235, 0.05);
}

.payment-method-card .method-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
    background: rgba(37, 99, 235, 0.1);
}

.payment-method-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.payment-method-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 48px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.contact-info-card .info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(37, 99, 235, 0.1);
}

.contact-info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ---- Review Grid ---- */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.review-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.review-rating {
    display: flex;
    gap: 3px;
    color: var(--gold-primary);
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.review-author-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.review-author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Services Detail ---- */
.services-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.category-btn:hover,
.category-btn.active {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--blue-primary);
    color: var(--blue-light);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content { padding-right: 0; }
    .hero-description { margin: 0 auto 40px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 40px; }

    .features-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .mobile-menu-overlay {
        display: none;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .features-grid,
    .pricing-grid,
    .testimonials-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .payment-methods {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .payment-method-card {
        padding: 18px;
    }
    .payment-method-card h3 {
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .payment-method-card p {
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .dashboard {
        padding-top: calc(var(--nav-height) + 56px);
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .dash-greeting {
        font-size: 1.4rem !important;
    }

    .dash-actions {
        width: 100%;
    }

    .dash-actions .btn {
        flex: 1;
        text-align: center;
        font-size: 0.8rem;
        padding: 10px 8px;
    }

    .dash-bottom-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dash-control-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
    }

    .dash-control-grid .btn {
        font-size: 0.75rem !important;
        padding: 10px 4px !important;
    }

    /* Hero server card: no tilt + space from bottom */
    .hero-server-card {
        transform: none !important;
        margin-bottom: 24px;
    }

    .hero-server-card:hover {
        transform: translateY(-5px) !important;
    }

    /* Switch table to cards on mobile */
    .rental-table-wrapper {
        display: none !important;
    }

    .rental-cards-wrapper {
        display: block !important;
    }

    /* Table compact (for other tables) */
    .data-table th,
    .data-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Stack all inline 2-column grids on mobile */
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Payment method cards 2 cols compact */
    .payment-methods {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    .payment-method-card {
        padding: 14px !important;
    }
    .payment-method-card .method-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }
    .payment-method-card .method-icon svg {
        width: 18px;
        height: 18px;
    }
    .payment-method-card h3 {
        font-size: 0.78rem;
        white-space: nowrap;
        margin-bottom: 2px;
    }
    .payment-method-card p {
        font-size: 0.65rem;
        line-height: 1.3;
    }

    /* Reviews stats grid */
    [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Hero orbs smaller */
    .hero-bg .orb-1 { width: 250px; height: 250px; }
    .hero-bg .orb-2 { width: 200px; height: 200px; }
    .hero-bg .orb-3 { width: 150px; height: 150px; }

    .data-table {
        display: block;
        overflow-x: auto;
    }

    .hero-stats {
        gap: 24px;
    }

    .floating-badge {
        display: none;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }

    /* Dashboard mobile compact */
    .dashboard {
        padding-top: calc(var(--nav-height) + 56px);
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
        margin-bottom: 20px;
    }

    .stat-card {
        padding: 16px 12px;
    }

    .stat-card .stat-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 10px;
    }

    .stat-card .stat-number {
        font-size: 1.2rem;
    }

    .stat-card .stat-label {
        font-size: 0.7rem;
    }

    .dash-greeting {
        font-size: 1.2rem !important;
    }

    .glass-card {
        padding: 16px;
    }

    .dash-control-grid {
        grid-template-columns: 1fr;
    }

    .dash-control-grid .btn {
        font-size: 0.85rem !important;
        padding: 12px !important;
    }

    /* Server modal mobile */
    .server-modal {
        padding: 20px !important;
    }

    .server-modal-header h2 {
        font-size: 1.1rem;
    }

    /* Footer 1 column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Dashboard modal grids stack */
    .server-modal [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .server-modal [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .server-modal [style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Payment form stack */
    .form-group + .form-group {
        margin-top: 0;
    }

    /* Cookie consent stack */
    .cookie-consent .container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-text {
        min-width: unset !important;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }

    /* Dashboard stats 2 columns */
    .dashboard-stats {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Dashboard quick links / notifications stack */
    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ---- Ultra-small phones (320px) ---- */
@media (max-width: 374px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr !important;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 12px;
    }

    .dashboard-header > div:last-child {
        width: 100%;
    }

    .dashboard-header .btn {
        width: 100%;
        text-align: center;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .glass-card {
        padding: 20px;
    }

    .mobile-menu a {
        font-size: 0.95rem;
        padding: 12px 20px;
    }

    .user-dropdown-menu {
        width: 200px;
    }

    /* TikTok iframe fit ultra-small */
    .tiktok-embed-wrapper iframe {
        height: 400px !important;
        max-width: 100% !important;
    }

    /* Reduce flex gaps */
    #moonlight .glass-card,
    #tiktok-showcase .glass-card {
        gap: 20px !important;
        padding: 20px !important;
    }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---- Promo Cards ---- */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.promo-card {
    padding: 32px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.promo-image-wrapper {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-card:hover .promo-image-wrapper img {
    transform: scale(1.05);
}

.promo-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(212, 168, 67, 0.2);
    color: var(--gold-light);
    margin-bottom: 16px;
}

.promo-price {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.promo-price span {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.7;
}

.promo-desc {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.promo-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.promo-per {
    font-size: 0.8rem;
    color: var(--gold-primary);
    font-weight: 500;
}

/* ---- Steps ---- */
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.step-card {
    padding: 32px;
    text-align: center;
    flex: 1;
    max-width: 300px;
    position: relative;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-hero);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-icon .svg-icon {
    width: 40px;
    height: 40px;
    color: var(--gold-primary);
}

.step-card h3 {
    margin: 12px 0 8px;
    font-size: 1.1rem;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    opacity: 0.4;
}

/* ---- Brands Marquee ---- */
.brands-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    margin-top: 32px;
}

.brands-track {
    display: flex;
    gap: 48px;
    align-items: center;
    width: max-content;
    animation: marqueeScroll 20s linear infinite;
}

.brands-marquee:hover .brands-track {
    animation-play-state: paused;
}

.brand-logo {
    height: 56px;
    width: 56px;
    object-fit: contain;
    border-radius: 50%;
    background: transparent;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.brand-logo:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* ---- FAQ ---- */
.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    gap: 12px;
}

.faq-arrow {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Responsive: New Sections ---- */
@media (max-width: 768px) {
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .steps-grid {
        flex-direction: column;
    }
    .step-arrow {
        transform: rotate(90deg);
    }
}

/* ---- Selection ---- */
::selection {
    background: rgba(37, 99, 235, 0.3);
    color: #fff;
}

/* ---- Server Modal ---- */
.server-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 12px;
}

.server-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.server-modal {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    max-width: 95vw;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
}

.server-modal-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.server-modal-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.server-modal-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.server-modal-overlay.active .server-modal {
    transform: translateY(0) scale(1);
}

.server-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.server-modal-close:hover {
    background: rgba(239, 68, 68, 0.4);
}

.server-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.server-modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    white-space: nowrap;
}

.server-modal-slider {
    position: relative;
    margin-bottom: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.slider-track {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    pointer-events: none;
}

.slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.slider-img.active {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    pointer-events: auto;
    touch-action: manipulation;
}

.slider-btn:hover {
    background: rgba(212, 168, 67, 0.5);
}

.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.2s;
}

.slider-dot.active {
    background: var(--gold-primary);
}

.server-modal-specs {
    margin-bottom: 0;
}

.server-modal-specs h3,
.server-modal-pricing h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--gold-primary);
}

.server-modal-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.server-modal-spec-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.server-modal-spec-item .spec-icon {
    color: var(--gold-primary);
    display: flex;
    flex-shrink: 0;
}

.server-modal-spec-item .spec-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 36px;
    flex-shrink: 0;
}

.server-modal-spec-item .spec-value {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.server-modal-price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.server-modal-price-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.server-modal-price-item:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 168, 67, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.price-select-btn {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gold-primary);
    border: 1px solid rgba(212, 168, 67, 0.4);
    border-radius: var(--radius-xl);
    padding: 3px 10px;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.server-modal-price-item:hover .price-select-btn {
    opacity: 1;
}

/* ---- Payment Methods Note ---- */
.payment-methods-note {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.payment-methods-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.payment-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.payment-marquee-track {
    display: flex;
    gap: 20px;
    align-items: center;
    width: max-content;
    animation: marqueeScroll 15s linear infinite;
}

.payment-marquee:hover .payment-marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.payment-logo {
    height: 28px;
    width: auto;
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
    object-fit: contain;
}

.payment-logo:hover {
    opacity: 1;
}

.server-modal-remarks {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.server-modal-remarks h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.server-modal-remarks ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.server-modal-remarks li {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.85;
    padding-left: 14px;
    position: relative;
    line-height: 1.6;
}

.server-modal-remarks li::before {
    content: '*';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
}

/* Bottom Grid: remarks + extra */
.server-modal-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.server-modal-remarks {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.server-modal-extra {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-extra-section h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.installed-apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.installed-apps-grid img {
    width: 100%;
    height: 48px;
    object-fit: contain;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.2s;
}

.installed-apps-grid img:hover {
    transform: scale(1.1);
    border-color: var(--gold-primary);
}

.modal-contact-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.modal-contact-btn.line-btn {
    background: rgba(6, 199, 85, 0.12);
    color: #06c755;
    border: 1px solid rgba(6, 199, 85, 0.25);
}

.modal-contact-btn.line-btn:hover {
    background: rgba(6, 199, 85, 0.25);
}

.modal-contact-btn.phone-btn {
    background: rgba(212, 168, 67, 0.1);
    color: var(--gold-primary);
    border: 1px solid rgba(212, 168, 67, 0.25);
}

.modal-contact-btn.phone-btn:hover {
    background: rgba(212, 168, 67, 0.2);
}

.modal-review-snippet {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    padding: 10px;
}

.modal-review-stars {
    color: #f5c518;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.modal-review-stars span {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.modal-review-snippet p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 4px 0;
    line-height: 1.4;
}

.modal-review-author {
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.7;
}

@media (max-width: 600px) {
    .server-modal-bottom-grid {
        grid-template-columns: 1fr;
    }
}

.server-modal-price-item.highlight-price {
    border-color: rgba(212, 168, 67, 0.4);
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.1), rgba(212, 168, 67, 0.02));
}

.server-modal-price-item.special {
    border-color: rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.02));
}

.server-modal-price-item .price-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    white-space: nowrap;
}

.server-modal-price-item.special .price-tag {
    color: var(--blue-primary);
}

.server-modal-price-item .price-amount {
    font-size: 1.1rem;
    font-weight: 800;
    white-space: nowrap;
}

.server-modal-price-item .price-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
}

.server-modal-footer {
    margin-top: 28px;
}

/* ---- Payment Modal ---- */
.payment-modal-summary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.payment-summary-row:last-child {
    border-bottom: none;
}

.payment-summary-row.total {
    border-top: 2px solid rgba(212, 168, 67, 0.3);
    border-bottom: none;
    padding-top: 14px;
    margin-top: 4px;
}

.payment-summary-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.payment-summary-value {
    font-weight: 600;
}

.payment-summary-row.total .payment-summary-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold-primary);
}

.payment-modal-gateway {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    min-height: 80px;
}

@media (max-width: 900px) {
    .server-modal-horizontal {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .server-modal {
        max-height: 95vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .server-modal-price-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .server-modal-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .server-modal-overlay:has(.server-modal-horizontal) {
        padding: 0;
        align-items: stretch;
    }
    .server-modal.server-modal-horizontal {
        padding: 16px;
        padding-top: 20px;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        max-width: 100vw;
        border-radius: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    .server-modal:not(.server-modal-horizontal) {
        max-width: 92vw;
        max-height: 90vh;
        border-radius: var(--radius-lg);
        padding: 20px;
    }
    .server-modal-horizontal > .server-modal-close {
        position: sticky;
        top: 0;
        margin-left: auto;
        margin-bottom: -32px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        font-size: 1.2rem;
        z-index: 10;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        flex-shrink: 0;
    }
    .server-modal-header {
        margin-bottom: 8px;
    }
    .server-modal-header h2 {
        font-size: 1.1rem;
    }
    .server-modal-slider {
        border-radius: 12px;
    }
    .slider-track {
        aspect-ratio: 16 / 10;
    }
    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        z-index: 5;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(212, 168, 67, 0.3);
    }
    .server-modal-specs h3,
    .server-modal-pricing h3 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    .server-modal-spec-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .server-modal-spec-item {
        padding: 8px 10px;
        gap: 6px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .server-modal-spec-item .spec-icon svg {
        width: 20px;
        height: 20px;
    }
    .server-modal-spec-item .spec-label {
        font-size: 0.6rem;
        min-width: unset;
    }
    .server-modal-spec-item .spec-value {
        font-size: 0.7rem;
    }
    .server-modal-price-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .server-modal-price-item {
        padding: 10px 8px;
    }
    .server-modal-price-item .price-tag {
        font-size: 0.6rem;
    }
    .server-modal-price-item .price-amount {
        font-size: 0.85rem;
    }
    .server-modal-price-item .price-desc {
        font-size: 0.6rem;
    }
    .price-select-btn {
        font-size: 0.6rem;
        opacity: 1;
    }
    .payment-methods-note {
        padding: 10px;
    }
    .payment-methods-title {
        font-size: 0.75rem;
    }
    .payment-logo {
        height: 22px;
    }
    .server-modal-remarks h4,
    .modal-extra-section h4 {
        font-size: 0.75rem;
    }
    .server-modal-remarks li {
        font-size: 0.68rem;
        padding-left: 14px;
    }
    .installed-apps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .installed-apps-grid img {
        height: 34px;
        padding: 4px;
    }
}

@media (max-width: 400px) {
    .server-modal {
        padding: 12px;
        padding-top: 16px;
    }
    .server-modal-horizontal {
        gap: 10px;
    }
    .server-modal-price-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    .server-modal-price-item .price-amount {
        font-size: 0.8rem;
    }
    .server-modal-left,
    .server-modal-right {
        gap: 12px;
    }
    .server-modal-spec-grid {
        gap: 4px;
    }
}

/* ============================================
   Premium Features
   ============================================ */

/* ---- Page Transition ---- */
body {
    animation: pageFadeIn 0.5s ease;
}

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

/* ---- Back to Top Button ---- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(6, 8, 15, 0.8);
    backdrop-filter: blur(12px);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(37,99,235,0.2);
    border-color: rgba(37,99,235,0.4);
    color: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37,99,235,0.15);
}

/* ---- Typing Effect ---- */
.hero-typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--gold-primary);
    margin-left: 4px;
    vertical-align: -0.1em;
    animation: cursorBlink 0.8s step-end infinite;
}

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

/* ---- Counter Animation ---- */
.hero-stat .number {
    font-variant-numeric: tabular-nums;
}

/* ---- Pricing Tooltip ---- */
.pricing-card {
    position: relative;
}

.pricing-tooltip {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%) scale(0.9);
    background: rgba(6, 8, 15, 0.95);
    border: 1px solid rgba(212,168,67,0.3);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.78rem;
    color: var(--gold-light);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
}

.pricing-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(6, 8, 15, 0.95);
    border-right: 1px solid rgba(212,168,67,0.3);
    border-bottom: 1px solid rgba(212,168,67,0.3);
}

.pricing-card:hover .pricing-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-100%) scale(1);
}

/* ---- Cookie Consent ---- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: rgba(6, 8, 15, 0.95);
    border-top: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent.visible {
    transform: translateY(0);
}

.cookie-consent .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
}

.cookie-consent-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.cookie-consent-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--blue-light);
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-buttons .btn {
    font-size: 0.8rem;
    padding: 8px 20px;
}

/* ---- Status bar responsive ---- */
@media (max-width: 768px) {
    .live-status-bar {
        font-size: 0.68rem;
        padding: 5px 0;
    }
    .live-status-bar .container {
        gap: 12px;
    }
    .live-status-bar .status-item:nth-child(3) {
        display: none;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .live-status-bar .status-item:nth-child(2) {
        display: none;
    }
    .cookie-consent .container {
        flex-direction: column;
        text-align: center;
    }
}

/* ---- Hero Slider ---- */
.hero-slider {
    position: relative;
    width: 100%;
    margin-top: var(--nav-height);
    overflow: hidden;
}

.hero-slide {
    aspect-ratio: 21 / 7;
    min-width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    background: var(--bg-card);
}

.hero-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-slide img {
    width: 50%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-slide-overlay {
    position: relative;
    width: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.hero-slide-content {
    max-width: 500px;
    width: 100%;
}

.promo-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.promo-feature-list li .svg-icon {
    width: 20px;
    height: 20px;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.hero-slide-badge {
    display: inline-block;
    background: var(--gradient-gold);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero-slide-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-slide-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(6,8,15,0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.hero-slider:hover .hero-slider-btn {
    opacity: 1;
}

.hero-slider-btn:hover {
    background: rgba(37,99,235,0.4);
    border-color: rgba(37,99,235,0.5);
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-prev { left: 20px; }
.hero-slider-next { right: 20px; }

.hero-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-slider-dot.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    transform: scale(1.2);
}

.hero-slider-dot:hover {
    border-color: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
    .hero-slider {
        margin-top: calc(var(--nav-height) + 36px);
    }
    .hero-slide {
        flex-direction: column;
        aspect-ratio: auto;
        position: relative;
    }
    .hero-slide img {
        display: none;
    }
    .hero-slide-overlay {
        width: 100%;
        padding: 32px 20px;
        display: flex;
        justify-content: center;
    }
    .hero-slide-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-slide-content .btn {
        width: 100%;
        margin-top: 8px;
    }
    .hero-slide-content h2 {
        font-size: 1.4rem;
    }
    .hero-slide-content p {
        font-size: 0.85rem;
    }
    .promo-feature-list {
        text-align: left;
        display: inline-flex;
        flex-direction: column;
    }
    .hero-slider-btn {
        width: 36px;
        height: 36px;
        opacity: 1;
    }
    .hero-slider-prev { left: 10px; }
    .hero-slider-next { right: 10px; }
}

@media (max-width: 480px) {
    .hero-slider {
        margin-top: calc(var(--nav-height) + 32px);
    }
    .hero-slide-overlay {
        padding: 24px 16px;
    }
    .hero-slide-content h2 {
        font-size: 1.2rem;
    }
    .hero-slide-content p {
        font-size: 0.8rem;
    }
}

/* ---- Moonlight Section ---- */
@media (max-width: 991px) {
    #moonlight .glass-card {
        flex-direction: column !important;
        padding: 32px !important;
        gap: 24px !important;
        text-align: center;
    }

    #moonlight .glass-card > div {
        min-width: unset !important;
    }

    #moonlight h2 {
        font-size: 2rem !important;
    }

    #moonlight ul {
        display: inline-block;
        text-align: left;
    }

    #moonlight .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #moonlight .glass-card {
        padding: 20px !important;
        gap: 20px !important;
    }

    #moonlight h2 {
        font-size: 1.5rem !important;
    }

    #moonlight p {
        font-size: 0.95rem !important;
    }

    #moonlight img {
        max-width: 100% !important;
    }
}

/* ---- TikTok Showcase ---- */
.tiktok-embed-wrapper {
    transition: transform 0.4s ease;
}

#tiktok-showcase .glass-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#tiktok-showcase .glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.4);
}

@media (max-width: 991px) {
    #tiktok-showcase .glass-card {
        padding: 32px;
        flex-direction: column-reverse;
        text-align: center;
        gap: 24px;
    }

    .tiktok-column-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .tiktok-column-content .section-title {
        font-size: clamp(1.3rem, 4vw, 2.5rem) !important;
        white-space: nowrap;
    }

    .tiktok-column-video {
        min-width: unset !important;
        width: 100%;
    }

    .tiktok-embed-wrapper {
        max-width: 100% !important;
    }

    .tiktok-embed-wrapper iframe {
        width: 100% !important;
        max-width: 325px;
        height: 500px;
    }
}

@media (max-width: 480px) {
    #tiktok-showcase .glass-card {
        padding: 20px;
        gap: 20px;
    }

    .tiktok-column-content .section-title {
        font-size: clamp(1.15rem, 5.5vw, 1.6rem) !important;
        white-space: nowrap;
    }

    .tiktok-column-content p {
        font-size: 0.95rem !important;
    }

    .tiktok-embed-wrapper iframe {
        height: 450px;
    }
}
