/* styles.css */
/* 1730Studio Web UI Design - TikTech UI (Dark R&B Style V5) */
/* All code comments MUST be in English. */

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

:root {
    --bg-color: #000000;
    --card-bg: rgba(8, 4, 5, 0.88);
    --card-border: rgba(255, 30, 39, 0.14);
    --card-border-hover: rgba(255, 30, 39, 0.7);
    --text-color: #ffffff;
    --text-muted: #8e8e93;
    --primary-color: #ff1e27;
    --primary-glow: rgba(255, 30, 39, 0.20);
    --primary-hover: #ff363d;
    --primary-pressed: #b80e15;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --radius-lg: 18px;
    --radius-md: 12px;
    --font-en-title: 'Outfit', sans-serif;
    --font-en-body: 'Outfit', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: linear-gradient(rgba(10, 4, 5, 0.72), rgba(10, 4, 5, 0.94)),
                url('assets/hero_bg.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-color);
    font-family: var(--font-en-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

body[dir="rtl"] {
    font-family: var(--font-ar), var(--font-en-body);
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Film noise/grain layer overlay (Weeknd/Drake cinematic aesthetic) */
.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.62' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 9999;
}

/* Global full-viewport CRT scanline overlay */
.scanlines-global {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.08;
}

/* Drifting/Floating Ambient glow lights */
@keyframes float-glow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50% { transform: translate(40px, -30px) scale(1.1); opacity: 1; }
    100% { transform: translate(-20px, 10px) scale(0.9); opacity: 0.7; }
}

.ambient-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 30, 39, 0.14) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(100px);
    z-index: -10;
    pointer-events: none;
}

.glow-top-right {
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.glow-bottom-left {
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
}

/* Monospace metadata layout helpers (Drake Related aesthetic) */
.mono-type {
    font-family: var(--font-mono) !important;
    letter-spacing: 1.5px;
    font-size: 13px;
    text-transform: uppercase;
}

/* Floating Navigation Header */
header {
    background-color: rgba(3, 3, 3, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-en-title);
    font-size: 28px;
    font-weight: 900;
    color: var(--text-color);
    letter-spacing: 2px;
    position: relative;
    cursor: pointer;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-glow);
}

.logo span sup {
    font-size: 11px;
    font-weight: 600;
    vertical-align: super;
    margin-left: 2px;
    text-shadow: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 30px;
}

nav a {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    color: var(--text-muted);
}

nav a:hover, nav a.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

nav a.active {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 30, 39, 0.3);
}

/* Fullscreen Cinematic Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 0 20px;
    background: transparent;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    opacity: 0.45;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    max-width: 850px;
    z-index: 10;
    position: relative;
}

.hero-title {
    font-family: var(--font-en-title);
    font-size: 85px;
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(255, 30, 39, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

body[dir="rtl"] .hero-title {
    font-family: var(--font-en-title);
    font-size: 82px;
}

.tm-sup {
    font-size: 0.35em;
    vertical-align: super;
    position: relative;
    top: -0.5em;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-glow);
    margin-inline-start: 8px;
    font-family: var(--font-en-title);
}

.hero-title span {
    color: var(--primary-color);
    text-shadow: 0 0 40px var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.9;
    letter-spacing: 1px;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Pulsing Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.scroll-indicator .mouse-icon {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .mouse-icon::after {
    content: "";
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Showcase Section */
.showcase-section {
    background-color: transparent;
    padding: 100px 20px;
    position: relative;
}

.section-title {
    font-family: var(--font-en-title);
    font-size: 32px;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
    position: relative;
}

body[dir="rtl"] .section-title {
    font-family: var(--font-ar), var(--font-en-title);
}

.section-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 15px auto 0 auto;
    box-shadow: 0 0 8px var(--primary-color);
}

/* Cardless Minimalist Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-block {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-block:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 30, 39, 0.03);
    border-color: rgba(255, 30, 39, 0.15);
}

.feature-icon {
    font-size: 38px;
    margin-bottom: 25px;
    display: inline-block;
    padding: 20px;
    background: radial-gradient(circle, rgba(255, 30, 39, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    line-height: 1;
}

.feature-block h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.feature-block p {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.7;
}

/* Video/Reels Grid Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.video-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    aspect-ratio: 16/9;
}

.video-card iframe, .video-card video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Horizontal Day Picker (Mobile-first) */
.day-picker-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0 20px 0;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.day-picker-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.day-card {
    flex: 0 0 85px; /* Fixed card width */
    height: 95px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(12, 5, 6, 0.85);
    border: 1px solid rgba(255, 30, 39, 0.12);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.day-card:hover {
    border-color: rgba(255, 30, 39, 0.45);
    background-color: rgba(255, 30, 39, 0.06);
    box-shadow: 0 0 10px rgba(255, 30, 39, 0.15);
}

.day-card.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #aa0910 100%);
    border-color: var(--primary-color);
    box-shadow: 0 0 22px rgba(255, 30, 39, 0.6);
}

.day-card .day-name {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.day-card.active .day-name {
    color: rgba(255, 255, 255, 0.85);
}

.day-card .day-number {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

/* Bottom Sheet Modal System (Mobile-First popups) */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1999;
    display: none;
}

.bottom-sheet-overlay.active {
    display: block;
}

.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    max-height: 85vh;
    background-color: #090909;
    border-top: 1px solid var(--card-border);
    border-radius: 24px 24px 0 0;
    z-index: 2000;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 30px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    overflow-y: auto;
}

.bottom-sheet.active {
    bottom: 0;
}

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

.bottom-sheet-close {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
}

/* Checkout Modal Sub-elements */
.lock-timer-banner {
    background-color: rgba(255, 30, 39, 0.08);
    border: 1px dashed var(--primary-color);
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 20px;
}

.checkout-summary-container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

.checkout-summary-box {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.service-toggle-bar {
    display: flex;
    gap: 8px;
    background-color: rgba(10, 4, 5, 0.88);
    border: 1px solid rgba(255, 30, 39, 0.16);
    padding: 6px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.service-toggle-btn {
    flex: 1;
    padding: 14px;
    border: none;
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.service-toggle-btn.active {
    background: linear-gradient(180deg, var(--primary-color) 0%, #a2080f 100%);
    color: #ffffff;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), 0 4px 18px rgba(255, 30, 39, 0.45);
    transform: translateY(1px);
}

/* Main Layout Wrapper for other pages */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 120px 20px 50px 20px; /* Shift down to avoid header overlay */
    position: relative;
}

/* Premium Card Design */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 30, 39, 0.3), transparent);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--card-border-hover);
    box-shadow: 0 25px 60px rgba(255, 30, 39, 0.08);
}

.card-title {
    font-family: var(--font-en-title);
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

body[dir="rtl"] .card-title {
    font-family: var(--font-ar), var(--font-en-title);
}

/* Form Styling */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

input, select, textarea {
    width: 100%;
    background-color: rgba(10, 4, 5, 0.82);
    border: 1px solid rgba(255, 30, 39, 0.16);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.28);
    font-size: 13px;
    letter-spacing: 0.5px;
}

select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23ff1e27' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 48px;
    cursor: pointer;
}

body[dir="rtl"] select {
    background-position: left 18px center;
    padding-left: 48px;
    padding-right: 20px;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    background-color: rgba(20, 6, 8, 0.95);
    box-shadow: 0 0 18px rgba(255, 30, 39, 0.38);
    outline: none;
}

/* Premium Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 14px 32px;
    font-family: var(--font-en-body);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 30, 39, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 30, 39, 0.5);
}

.btn:active {
    background-color: var(--primary-pressed);
    transform: translateY(0);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.btn-success {
    background-color: var(--success-color);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
}

.btn-success:hover {
    background-color: #27ae60;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.5);
}

.btn-danger {
    background-color: var(--error-color);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    background-color: #c0392b;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* List and Containers */
.list-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    background-color: rgba(0, 0, 0, 0.4);
}

.list-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
}

.list-item:hover, .list-item.active {
    background-color: rgba(255, 30, 39, 0.06);
    color: #ffffff;
    border-left: 3px solid var(--primary-color);
}

body[dir="rtl"] .list-item:hover, body[dir="rtl"] .list-item.active {
    border-left: none;
    border-right: 3px solid var(--primary-color);
}

/* Tables Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 30, 39, 0.05);
}

body[dir="rtl"] th, body[dir="rtl"] td {
    text-align: right;
}

th {
    background-color: transparent;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 30, 39, 0.25);
    text-shadow: 0 0 8px rgba(255, 30, 39, 0.3);
}

tr:hover {
    background-color: rgba(255, 30, 39, 0.02);
    border-left: 1px solid var(--primary-color);
}

body[dir="rtl"] tr:hover {
    border-left: none;
    border-right: 1px solid var(--primary-color);
}

/* Ambient Audio Player Design */
.player-container {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.toggle-mix-group {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 30px;
}

.toggle-mix-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background-color: transparent;
    color: var(--text-muted);
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toggle-mix-btn.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.audio-slider {
    width: 100%;
    margin: 20px 0;
    accent-color: var(--primary-color);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
    outline: none;
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-buttons {
    display: flex;
    gap: 12px;
}

.round-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(255, 30, 39, 0.3);
}

.round-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* Time Slots Grid (Booking) */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.slot-btn {
    padding: 14px 12px;
    border: 1px solid rgba(255, 30, 39, 0.18);
    background-color: rgba(12, 5, 6, 0.85);
    color: var(--text-muted);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slot-btn:hover:not(.disabled) {
    border-color: var(--primary-color);
    color: #ffffff;
    background-color: rgba(255, 30, 39, 0.08);
    box-shadow: 0 0 12px rgba(255, 30, 39, 0.25);
}

.slot-btn.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a2080f 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 20px rgba(255, 30, 39, 0.6);
}

.slot-btn.disabled {
    opacity: 0.12;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.04);
    background-color: rgba(0, 0, 0, 0.6);
    border-style: dashed;
}

/* Song Pipeline Progress Bar */
.pipeline-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    margin-top: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pipeline-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ff1e27, #ff6670);
    box-shadow: 0 0 10px var(--primary-color);
    border-radius: 4px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

@keyframes scrollDot {
    0% { opacity: 1; top: 6px; }
    50% { opacity: 0.5; top: 18px; }
    100% { opacity: 0; top: 22px; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Footer Section */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    background-color: rgba(3, 3, 3, 0.4);
}

/* CRT & Scanline Effects */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.22) 50%
    );
    background-size: 100% 4px;
    z-index: 3;
    pointer-events: none;
    opacity: 0.8;
}

/* Glitch Text Effect (Chromatic Aberration) */
.glitch {
    position: relative;
    color: #ffffff;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: none;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff1e27;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff, 0 2px #ff1e27;
    clip: rect(85px, 450px, 140px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(15px, 9999px, 66px, 0); }
    10% { clip: rect(34px, 9999px, 55px, 0); }
    20% { clip: rect(98px, 9999px, 120px, 0); }
    30% { clip: rect(12px, 9999px, 34px, 0); }
    40% { clip: rect(45px, 9999px, 85px, 0); }
    50% { clip: rect(110px, 9999px, 145px, 0); }
    60% { clip: rect(80px, 9999px, 115px, 0); }
    70% { clip: rect(10px, 9999px, 40px, 0); }
    80% { clip: rect(65px, 9999px, 90px, 0); }
    90% { clip: rect(130px, 9999px, 155px, 0); }
    100% { clip: rect(20px, 9999px, 60px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 115px, 0); }
    10% { clip: rect(45px, 9999px, 75px, 0); }
    20% { clip: rect(12px, 9999px, 40px, 0); }
    30% { clip: rect(98px, 9999px, 130px, 0); }
    40% { clip: rect(110px, 9999px, 150px, 0); }
    50% { clip: rect(34px, 9999px, 80px, 0); }
    60% { clip: rect(15px, 9999px, 55px, 0); }
    70% { clip: rect(80px, 9999px, 110px, 0); }
    80% { clip: rect(130px, 9999px, 160px, 0); }
    90% { clip: rect(20px, 9999px, 65px, 0); }
    100% { clip: rect(90px, 9999px, 125px, 0); }
}

/* Language Switcher Styling */
.lang-switcher {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-inline-start: 15px;
    display: inline-block;
}

.lang-switcher:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 30, 39, 0.3);
}

/* Sleek Glassmorphic Toast Notifications */
#toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
}

body[dir="rtl"] #toast-container {
    right: auto;
    left: 30px;
}

.toast {
    background-color: rgba(14, 5, 6, 0.93);
    border: 1px solid rgba(255, 30, 39, 0.22);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 15px rgba(255, 30, 39, 0.15);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    min-width: 280px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: rgba(46, 204, 113, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(46, 204, 113, 0.15);
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error {
    border-color: rgba(231, 76, 60, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(231, 76, 60, 0.15);
}

.toast.error .toast-icon {
    color: var(--error-color);
}

.toast-icon {
    font-size: 15px;
    color: var(--primary-color);
    line-height: 1;
}

/* Theme Support (TikTech UI Design Constitution) */
body, body.theme-glass {
    --bg-color: #000000;
    --card-bg: rgba(8, 4, 5, 0.88);
    --card-border: rgba(255, 30, 39, 0.14);
    --text-color: #ffffff;
    --text-muted: #8e8e93;
}

body.theme-dark {
    --bg-color: #121212;
    --card-bg: rgba(18, 18, 18, 0.95);
    --card-border: rgba(255, 30, 39, 0.22);
    --text-color: #ffffff;
    --text-muted: #a0a0a5;
    background: #121212 no-repeat center center fixed !important;
}

body.theme-light {
    --bg-color: #F5F5F5;
    --card-bg: #ffffff;
    --card-border: rgba(255, 30, 39, 0.15);
    --text-color: #121212;
    --text-muted: #55555a;
    background: #F5F5F5 no-repeat center center fixed !important;
}

/* Ensure inverse text color for visibility (Contrast Rule) */
body.theme-light input, body.theme-light select, body.theme-light textarea {
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 30, 39, 0.2);
    color: #121212;
}
body.theme-light .card-title, body.theme-light h1, body.theme-light h2, body.theme-light h3, body.theme-light h4 {
    color: #121212 !important;
}
body.theme-light .bottom-sheet {
    background-color: #fcfcfc;
    color: #121212;
}
body.theme-light .bottom-sheet-header h3 {
    color: #121212 !important;
}
body.theme-light .slot-btn {
    background-color: #fcfcfc;
    border-color: rgba(255, 30, 39, 0.3);
    color: #121212;
}
body.theme-light .day-card {
    background-color: #fcfcfc;
    border-color: rgba(255, 30, 39, 0.2);
}
body.theme-light .day-card .day-number {
    color: #121212;
}
body.theme-light .service-toggle-bar {
    background-color: #fcfcfc;
    border-color: rgba(255, 30, 39, 0.2);
}
body.theme-light .service-toggle-btn {
    background-color: rgba(0, 0, 0, 0.02);
    color: #55555a;
}
body.theme-light .service-toggle-btn.active {
    color: #ffffff;
}
body.theme-light .admin-tab-btn {
    background-color: #fcfcfc;
    border-color: rgba(255, 30, 39, 0.2);
    color: #55555a;
}
body.theme-light .admin-tab-btn.active {
    color: #ffffff;
}
body.theme-light .analytics-card {
    background: #ffffff;
    border-color: rgba(255, 30, 39, 0.2);
}
body.theme-light th {
    border-bottom-color: rgba(255, 30, 39, 0.5);
}
body.theme-light td {
    color: #121212;
    border-bottom-color: rgba(255, 30, 39, 0.1);
}
body.theme-light tr:hover {
    background-color: rgba(255, 30, 39, 0.05);
}
body.theme-light .list-container {
    background-color: #ffffff;
    border-color: rgba(255, 30, 39, 0.2);
}
body.theme-light .list-item {
    color: #55555a;
    border-bottom-color: rgba(255, 30, 39, 0.1);
}
body.theme-light .list-item:hover, body.theme-light .list-item.active {
    background-color: rgba(255, 30, 39, 0.05);
    color: #121212;
}
body.theme-light .bottom-sheet-close {
    color: #121212;
}
body.theme-light #summary-text {
    color: #121212;
}
body.theme-light .lock-timer-banner {
    background-color: rgba(255, 30, 39, 0.04) !important;
}
body.theme-light .lock-timer-banner p {
    color: #121212 !important;
}
body.theme-light .checkout-summary-box {
    background-color: rgba(0, 0, 0, 0.02) !important;
}
body.theme-light .toast {
    background-color: rgba(255, 255, 255, 0.96);
    color: #121212;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 15px rgba(255, 30, 39, 0.1);
}

/* =========================================================================
   MOBILE RESPONSIVE SYSTEM (TikTech Mobile UX Update)
   ========================================================================= */
@media (max-width: 768px) {
    /* 1. Header & Navigation optimization */
    .nav-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 10px;
        position: relative;
    }
    .logo {
        font-size: 22px;
        margin-bottom: 2px;
    }
    nav ul {
        padding: 4px;
        gap: 2px;
        border-radius: 20px;
    }
    nav a {
        font-size: 11px;
        padding: 6px 12px;
        border-radius: 15px;
    }
    .lang-switcher {
        position: absolute;
        top: 15px;
        right: 15px;
    }
    body[dir="rtl"] .lang-switcher {
        right: auto;
        left: 15px;
    }

    /* Shift page content down further on mobile since stacked nav is taller */
    main {
        padding-top: 150px;
    }

    /* 2. Hero Section text scaling */
    .hero-title {
        font-size: 44px !important;
        letter-spacing: 1.5px;
        margin-bottom: 15px;
    }
    body[dir="rtl"] .hero-title {
        font-size: 40px !important;
    }
    .hero-subtitle {
        font-size: 13.5px;
        line-height: 1.6;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    /* 3. Layout Grid & Cards */
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    .card {
        padding: 22px 18px;
    }
    .analytics-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* 4. Day Picker & Slots Grid */
    .day-card {
        flex: 0 0 75px;
        height: 85px;
    }
    .day-card .day-name {
        font-size: 9px;
    }
    .day-card .day-number {
        font-size: 18px;
    }
    .slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)) !important;
        gap: 8px;
    }
    .slot-btn {
        padding: 10px 5px;
        font-size: 12px;
        border-radius: 6px;
    }

    /* 5. Bottom Sheet & Checkout Form */
    .bottom-sheet {
        padding: 20px;
        border-radius: 18px 18px 0 0;
    }
    #checkout-form {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    #checkout-form > div {
        grid-column: span 1 !important;
    }
    /* Summary box and action buttons grid */
    .checkout-summary-container {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-top: 5px;
    }

    /* 6. Beats Player & Controls */
    .player-container {
        padding: 15px;
    }
    .player-controls {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }
    .control-buttons {
        justify-content: center;
    }

    /* 7. Performance Optimizations (Soften blur on mobile GPUs) */
    .card, header, .bottom-sheet, .toast {
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }

    /* 8. Table cells responsiveness */
    th, td {
        padding: 10px 6px;
        font-size: 11px;
    }
    th {
        letter-spacing: 0.5px;
    }
}

