/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #4f46e5;
    --secondary-color: #7c3aed;
    --bg-body: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --error-color: #dc3545;
    --input-border: #cbd5e1;
    --input-focus: #818cf8;
    --accent-color: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

/* =========================================
   2. UTILITIES & LAYOUT
   ========================================= */
.container { width: 100%; max-width: 500px; margin: auto; }
.dashboard-container { max-width: 900px; align-self: flex-start; padding-top: 40px; }
.text-center { text-align: center; }
.text-start { text-align: left; direction: ltr; }
.mb-5 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }
.pt-4 { padding-top: 1.5rem; }
.fw-bold { font-weight: bold; }
.text-primary { color: var(--primary-color); }
.text-dark { color: var(--text-dark); }
.text-muted { color: var(--text-muted); }
.w-100 { width: 100%; }
.d-none { display: none; }
.pe-none { pointer-events: none; }
.d-flex-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* =========================================
   3. ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(5px); } 
    75% { transform: translateX(-5px); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes shakeAnimation {
    0% { transform: scale(1); }
    10%, 20% { transform: scale(0.95) rotate(-2deg); }
    30%, 50%, 70%, 90% { transform: scale(1.05) rotate(2deg); }
    100% { transform: scale(1) rotate(0); }
}
.animate-up { animation: fadeInUp 0.8s ease-out forwards; }
.shake-field { animation: fieldShake 0.3s ease-in-out 2; }
.shake-animation { animation: shakeAnimation 0.6s ease-in-out; }

/* =========================================
   4. LANDING PAGE ELEMENTS (Page 1)
   ========================================= */
.instructor-image-container {
    width: 100%; margin-bottom: -20px; border-radius: 20px;
    overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); position: relative; z-index: 1;
}
.instructor-image-container img { width: 100%; height: auto; display: block; object-fit: contain; }
.glass-card {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); padding: 40px 30px; position: relative; z-index: 2;
}
.glass-card h3 { text-align: center; font-weight: 800; margin-bottom: 25px; font-size: 1.5rem; line-height: 1.5; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.form-control {
    width: 100%; padding: 12px 15px; font-size: 1rem; font-family: inherit;
    border: 2px solid var(--input-border); border-radius: 12px; transition: all 0.3s ease;
}
.form-control:focus { outline: none; border-color: var(--input-focus); box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2); }
.form-control.is-invalid { border-color: var(--error-color) !important; box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1) !important; }
.error-feedback { color: var(--error-color); font-size: 0.8rem; margin-top: 5px; display: none; font-weight: 600; }
.btn-main {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white; border: none; border-radius: 12px; padding: 15px; font-size: 1.1rem;
    font-family: inherit; font-weight: bold; width: 100%; cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4); display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 30px;
}
.btn-main:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.5); }
.btn-main:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.spinner {
    display: none; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%; border-top-color: white; animation: spin 1s ease-in-out infinite;
}

/* =========================================
   5. WELCOME PAGE ELEMENTS (Page 2)
   ========================================= */
.video-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.plyr {
    direction: ltr;
}
.plyr__tooltip {
    display: none !important;
}
.action-buttons {
    display: flex;
    gap: 20px; justify-content: center; flex-direction: column; align-items: center;
}
@media (min-width: 768px) { .action-buttons { flex-direction: row; } }
.btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px;
    border-radius: 12px; text-decoration: none; font-weight: bold; font-size: 1.1rem;
    color: white; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); transition: transform 0.3s ease; max-width: 400px;
}
.btn:hover { transform: translateY(-2px); }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); }
.btn-telegram { background: #0088cc; }
.card { background: white; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); overflow: hidden; }
.card-header { background: #1e293b; color: white; padding: 15px; text-align: center; }
.card-header h3 { font-size: 1.2rem; margin: 0; }
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: center; min-width: 500px; }
.table th, .table td { padding: 15px; border-bottom: 1px solid #eee; }
.table th { background: #f8fafc; font-weight: bold; }
.table tr:last-child td { border-bottom: none; }

/* =========================================
   6. DOLLAR PAGE ELEMENTS (Page 3 / VSL)
   ========================================= */
body.page-dollar {
    background-color: #233a52; /* Match image exact background */
    color: #ffffff;
    display: block; /* Override flex */
    padding: 40px 15px;
}
.page-dollar .dollar-container {
    max-width: 750px;
    margin: 0 auto;
}
.page-dollar .header-title {
    font-size: 1.6rem;
    margin-bottom: 5px;
    font-weight: bold;
}
.page-dollar .header-title span {
    color: #ffc107; /* Gold/yellow accent from image */
}
.page-dollar .header-time {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #ffffff;
}
.vsl-card {
    background: #f1f3f5;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}
.vsl-card-header {
    background: #004b6b; /* Dark teal/blue */
    color: #ffffff;
    padding: 8px;
}
.vsl-card-header .dashed-border {
    border: 2px dashed rgba(255,255,255,0.4);
    padding: 15px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
}
.vsl-card-body {
    padding: 20px 30px 40px 30px;
    color: #333333;
    text-align: center;
}
.vsl-card-body h4 {
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
}
.page-dollar .video-box {
    margin-bottom: 25px;
    border-radius: 0;
    border: 3px solid #000;
}
.page-dollar .delayed-action-wrapper {
    display: none; 
}
.btn-red {
    background: #cc0000;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: bold;
    padding: 12px 50px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 6px 0 #990000, 0 10px 15px rgba(0,0,0,0.2);
    transition: transform 0.1s, box-shadow 0.1s;
    border: 2px solid #fff;
}
.btn-red:hover {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #990000, 0 5px 10px rgba(0,0,0,0.2);
    color: #ffffff;
}
.dollar-footer {
    font-size: 1.2rem;
}
.footer-btn-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 25px;
}
.btn-footer {
    background: #ffffff;
    color: #004b6b;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-footer:hover {
    background: #e2e8f0;
    color: #003a55;
}
.footer-arrow {
    position: absolute;
    top: -25px;
    width: 60px;
    height: 60px;
    pointer-events: none;
}
.arrow-left {
    left: -70px;
    transform: scaleX(-1) rotate(-10deg);
}
.arrow-right {
    right: -70px;
    transform: rotate(-10deg);
}

@media (max-width: 600px) {
    .footer-arrow { display: none; } /* Hide arrows on mobile to prevent clipping */
    .page-dollar .header-title { font-size: 1.4rem; }
    .btn-red { font-size: 1.3rem; padding: 12px 30px; }
    .vsl-card-header .dashed-border { font-size: 1.1rem; padding: 10px; }
}

/* =========================================
   7. LIVE WORKSHOP PAGE ELEMENTS (Page 4 / image_22c7ff)
   ========================================= */

/* Override body properties specifically for this page */
body.page-live {
    background: radial-gradient(circle at 20% 50%, #292a35 0%, #151821 50%, #0d1017 100%);
    background-color: #0d1017;
    color: #ffffff;
    display: block; 
    padding: 0; /* Reset padding to allow full-width top bar and footer */
}

/* Orange Play Button Override for Plyr */
.page-live {
    --plyr-color-main: #f05a28; 
}

/* Top Bar */
.live-top-bar {
    background-color: #1a1c23;
    color: #a0a5b0;
    text-align: center;
    padding: 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid #2a2d35;
    width: 100%;
}

/* Container limits width and centers content */
.live-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 180px); /* Pushes footer down */
}

/* Typography */
.live-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #ffffff;
}

.live-title .underline-text {
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}

.live-subtitle {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffeb3b; /* Distinct Yellow */
    margin-bottom: 30px;
}

/* Video Box shadow exactly like the image */
.live-video-box {
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    border: 5px solid #2a2a2a;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    position: relative;
    margin-bottom: 40px;
}

/* Red CTA Button */
.page-live .delayed-action-wrapper {
    display: none; 
}

.btn-live-red {
    background-color: #c62828;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: bold;
    padding: 18px 40px;
    border-radius: 4px; /* Slightly square edges based on image */
    display: inline-block;
    transition: background-color 0.2s;
    width: 100%; /* Spans full width of container */
    max-width: 700px;
}

.btn-live-red:hover {
    background-color: #b71c1c;
    color: #ffffff;
}

/* Footer strictly matching the image */
.live-footer {
    background-color: #000000;
    color: #555555;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.85rem;
    line-height: 2;
    border-top: 1px solid #111;
}

.live-footer p {
    margin: 0;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .live-title { font-size: 1.5rem; }
    .live-subtitle { font-size: 1.3rem; }
    .btn-live-red { font-size: 1.2rem; padding: 15px 20px; }
}