* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: #0f172a; color: #e2e8f0; }

/* ---------- Alerts (shared) ---------- */
.alert { padding: 10px; border-radius: 6px; margin-bottom: 15px; font-size: 14px; }
.alert-error { background: #7f1d1d; color: #fecaca; }
.alert-success { background: #14532d; color: #86efac; }

/* ---------- Player page ---------- */
.player-page { user-select: none; }
.video-wrapper {
    position: relative; max-width: 900px; margin: 20px auto; padding: 0 20px;
    text-align: center;
}
.video-wrapper video {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    background: #000;
    object-fit: contain;
}
.watermark-overlay {
    position: absolute; top: 20px; right: 30px;
    color: rgba(255,255,255,0.35); font-size: 13px;
    pointer-events: none; text-shadow: 0 0 3px rgba(0,0,0,0.8);
}

/* ============================================================
   LIGHT PAGE BASE (homepage + dashboard)
   ============================================================ */
.landing-light { background: #ffffff; color: #1e293b; }

.site-header {
    background: #ffffff; border-bottom: 1px solid #e2e8f0;
    padding: 18px 20px;
}
.header-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; }
.site-header .logo { max-height: 55px; }
.brand-text { font-size: 22px; font-weight: bold; color: #1e293b; }

/* ============================================================
   COLORFUL HERO + PASSCODE ROW (homepage)
   ============================================================ */
.hero-colorful {
    background: linear-gradient(135deg, #f97316, #dc2626);
    background-size: cover;
    background-position: center;
    padding: 70px 20px;
    text-align: center;
    color: #ffffff;
}
.hero-colorful-inner { max-width: 700px; margin: 0 auto; }
.hero-logo { max-height: 60px; margin-bottom: 18px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.hero-colorful h1 {
    font-size: 38px; margin-bottom: 14px; font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.hero-colorful p { font-size: 16px; opacity: 0.95; line-height: 1.6; text-shadow: 0 1px 4px rgba(0,0,0,0.2); }

.passcode-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: -40px auto 40px;
    padding: 0 20px;
    align-items: start;
    position: relative;
    z-index: 2;
}
@media (max-width: 800px) {
    .passcode-row { grid-template-columns: 1fr; margin-top: 20px; }
}

.side-ad-card {
    background: linear-gradient(160deg, #fef3c7, #fde68a);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    margin-top: 40px;
}
.side-ad-alt { background: linear-gradient(160deg, #dbeafe, #bfdbfe); }
.side-ad-icon { font-size: 32px; margin-bottom: 10px; }
.side-ad-card h3 { color: #1e293b; font-size: 16px; margin-bottom: 8px; }
.side-ad-card p { color: #475569; font-size: 13px; line-height: 1.5; margin-bottom: 15px; }
.side-ad-btn {
    display: inline-block; background: #1e293b; color: #fff; padding: 8px 16px;
    border-radius: 20px; text-decoration: none; font-size: 13px; font-weight: 600;
}
.side-ad-btn:hover { background: #0f172a; }

.login-box-colorful {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(249,115,22,0.25);
    border: 3px solid transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #f97316, #dc2626);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}
.login-box-colorful h2 { color: #0f172a; margin-bottom: 8px; font-size: 22px; }
.login-box-colorful .subtitle { color: #64748b; font-size: 14px; margin-bottom: 20px; }
.login-box-colorful input {
    width: 100%; padding: 14px; margin-bottom: 14px; border-radius: 10px;
    border: 2px solid #e2e8f0; background: #f8fafc; color: #0f172a; font-size: 16px;
    text-align: center; letter-spacing: 1px;
}
.login-box-colorful input:focus { outline: none; border-color: #f97316; }
.login-box-colorful button {
    width: 100%; padding: 14px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
}
.login-box-colorful button:hover { opacity: 0.9; }

/* Plain (non-colorful) login box — still used if you fall back to it */
.login-box-light {
    max-width: 400px; margin: 20px auto 50px; background: #f1f5f9;
    padding: 30px; border-radius: 12px; text-align: center;
    border: 1px solid #e2e8f0;
}
.login-box-light h2 { color: #0f172a; margin-bottom: 8px; }
.login-box-light .subtitle { color: #64748b; font-size: 14px; margin-bottom: 20px; }
.login-box-light input {
    width: 100%; padding: 12px; margin-bottom: 12px; border-radius: 6px;
    border: 1px solid #cbd5e1; background: #ffffff; color: #0f172a; font-size: 16px;
    text-align: center; letter-spacing: 1px;
}
.login-box-light button {
    width: 100%; padding: 12px; border: none; border-radius: 6px;
    background: #6366f1; color: #fff; font-size: 16px; cursor: pointer;
}
.login-box-light button:hover { background: #4f46e5; }

/* ============================================================
   SERVICES SECTION (homepage)
   ============================================================ */
.services-section { max-width: 1000px; margin: 0 auto; padding: 20px 20px 40px; text-align: center; }
.services-section h2 { font-size: 24px; color: #0f172a; margin-bottom: 25px; }
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}
.service-card {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 25px 20px; text-align: center;
}
.service-icon { font-size: 34px; margin-bottom: 10px; }
.service-card h3 { font-size: 17px; color: #1e293b; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: #64748b; line-height: 1.5; }

.ad-banner-light { display: block; text-align: center; margin: 0 auto 30px; max-width: 900px; padding: 0 20px; }
.ad-banner-light img { max-width: 100%; border-radius: 10px; }

/* ============================================================
   LIGHT CLIENT DASHBOARD
   ============================================================ */
.dash-header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.user-info-light { font-size: 14px; color: #475569; }
.user-info-light a { color: #6366f1; }

.about-banner { max-width: 100%; }
.about-banner img { width: 100%; max-height: 320px; object-fit: cover; display: block; }

.course-title-section { max-width: 900px; margin: 30px auto 10px; padding: 0 20px; text-align: center; }
.course-title-section h1 { color: #0f172a; font-size: 26px; margin-bottom: 8px; }
.course-title-section p { color: #64748b; }

.video-list-light { max-width: 700px; margin: 20px auto 50px; padding: 0 20px; }
.empty-msg { text-align: center; color: #64748b; }
.video-item-light {
    display: flex; align-items: center; gap: 15px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    padding: 15px 20px; margin-bottom: 10px;
    border-radius: 10px; text-decoration: none; color: #1e293b;
}
.video-item-light:hover { background: #eef2ff; border-color: #c7d2fe; }
.video-number-light {
    background: #6366f1; color: #fff; width: 28px; height: 28px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0;
}
.video-title-light { flex-grow: 1; font-weight: 500; }
.video-duration-light { color: #94a3b8; font-size: 13px; }

/* ============================================================
   MULTI-COLUMN FOOTER (homepage + dashboard)
   ============================================================ */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 40px 20px 25px; margin-top: 20px; }
.footer-inner { max-width: 1000px; margin: 0 auto; }
.footer-columns {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px; text-align: left; margin-bottom: 25px;
}
.footer-col h4 { color: #ffffff; font-size: 13px; letter-spacing: 1px; margin-bottom: 12px; border-bottom: 1px solid #334155; padding-bottom: 8px; }
.footer-about { font-size: 13px; color: #94a3b8; line-height: 1.6; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { font-size: 13px; color: #cbd5e1; margin-bottom: 8px; }
.footer-contact { font-size: 13px; color: #cbd5e1; margin-bottom: 8px; line-height: 1.5; }
.footer-social { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; flex-wrap: wrap; }
.footer-social a { color: #93c5fd; text-decoration: none; font-size: 14px; }
.footer-social a:hover { text-decoration: underline; }
.footer-copy { font-size: 12px; color: #64748b; text-align: center; }