/* ============================
   ScholixPro Website Styles
   ============================ */

:root {
    --primary: #2EA94B;
    --primary-dark: #1d7a34;
    --primary-light: #e8f7ec;
    --navy: #0D1B4B;
    --navy-light: #1a2b6d;
    --gold: #F5A623;
    --pink: #E91E8C;
    --teal: #17A2B8;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-600: #6C757D;
    --gray-800: #343A40;
    --gradient: linear-gradient(135deg, #0D1B4B 0%, #1a2b6d 50%, #2EA94B 100%);
    --gradient-green: linear-gradient(135deg, #2EA94B 0%, #17A2B8 100%);
    --shadow: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--gray-800);
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar-brand img { height: 42px; }
.navbar {
    padding: 0.8rem 0;
    transition: var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: var(--navy) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.navbar.light-nav { background: var(--white) !important; box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}
.navbar-nav .nav-link:hover { color: var(--primary) !important; }
.light-nav .navbar-nav .nav-link { color: var(--navy) !important; }
.light-nav .navbar-nav .nav-link:hover { color: var(--primary) !important; }
.btn-nav-cta {
    background: var(--primary);
    color: white !important;
    border-radius: 25px;
    padding: 0.45rem 1.4rem !important;
    font-weight: 600;
    transition: var(--transition);
}
.btn-nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }
.btn-nav-login {
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    border-radius: 25px;
    padding: 0.35rem 1.2rem !important;
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
}
.btn-nav-login:hover { background: var(--primary); color: white !important; transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(46,169,75,0.25) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(233,30,140,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block;
    background: rgba(46,169,75,0.2);
    border: 1px solid rgba(46,169,75,0.5);
    color: #5edd7a;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.hero h1 .highlight {
    color: var(--primary);
    position: relative;
}
.hero p.lead {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.btn-hero-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}
.btn-hero-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(46,169,75,0.4);
}
.btn-hero-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}
.btn-hero-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
    color: white;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.hero-stat { color: white; }
.hero-stat .num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}
.hero-stat .lbl {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero dashboard mockup */
.hero-visual {
    position: relative;
    z-index: 2;
}
.dashboard-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: white;
}
.dashboard-card .card-header-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #28C840; }
.metric-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.8rem; margin-bottom: 1rem; }
.metric-box {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
}
.metric-box .val { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.metric-box .key { font-size: 0.7rem; opacity: 0.7; }
.activity-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.82rem;
}
.activity-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.float-card {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}
.float-card-1 { top: 10%; right: -5%; animation-delay: 0s; }
.float-card-2 { bottom: 15%; left: -8%; animation-delay: 1s; }
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.float-card .label { font-size: 0.7rem; color: var(--gray-600); }
.float-card .value { font-size: 1.1rem; font-weight: 700; color: var(--navy); }

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}
.section-sub {
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FEATURES ===== */
#features { background: var(--gray-100); }
.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-green);
    transform: scaleX(0);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}
.feature-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.6rem;
}
.feature-card p { font-size: 0.9rem; color: var(--gray-600); margin: 0; line-height: 1.6; }

/* ===== HOW IT WORKS ===== */
.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 1.2rem;
    position: relative;
}
.step-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
}
.step-col:last-child .step-number::after { display: none; }
.step-title { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.step-desc { font-size: 0.9rem; color: var(--gray-600); }

/* ===== PRICING ===== */
#pricing { background: var(--gray-100); }
.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.pricing-card.featured {
    border-color: var(--primary);
    background: var(--navy);
    color: white;
}
.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured li { color: white !important; }
.featured-badge {
    position: absolute;
    top: 1.2rem;
    right: -2rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 3rem;
    transform: rotate(35deg);
    letter-spacing: 1px;
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.price { font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.price span { font-size: 1rem; font-weight: 500; color: var(--gray-600); }
.pricing-features { list-style: none; padding: 0; margin: 1.5rem 0; }
.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.pricing-features li i { color: var(--primary); font-size: 0.8rem; }
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.8); }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.testimonial-text { font-style: italic; color: var(--gray-600); line-height: 1.7; margin-bottom: 1.2rem; }
.testimonial-author { font-weight: 700; color: var(--navy); }
.testimonial-role { font-size: 0.85rem; color: var(--gray-600); }
.stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 1rem; }
.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===== STATS BANNER ===== */
.stats-banner {
    background: var(--navy);
    padding: 60px 0;
}
.stat-item { text-align: center; }
.stat-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
}
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin-top: 0.3rem; }

/* ===== CTA ===== */
.cta-section {
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46,169,75,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

/* ===== FOOTER ===== */
footer {
    background: #070E26;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}
footer .footer-brand img { height: 38px; filter: none; }
footer h6 { color: white; font-weight: 700; margin-bottom: 1rem; font-size: 0.9rem; letter-spacing: 0.5px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 0.5rem; }
footer ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.88rem; transition: var(--transition); }
footer ul li a:hover { color: var(--primary); }
footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}
.social-links { display: flex; gap: 0.8rem; margin-top: 1rem; }
.social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}
.social-link:hover { background: var(--primary); color: white; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: white;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    z-index: 999;
    transition: var(--transition);
    animation: pulse-wa 2s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; box-shadow: 0 6px 30px rgba(37,211,102,0.7); }
@keyframes pulse-wa {
    0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
    50% { box-shadow: 0 4px 35px rgba(37,211,102,0.8), 0 0 0 10px rgba(37,211,102,0.1); }
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}
.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46,169,75,0.35);
}
.btn-outline-custom {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}
.btn-outline-custom:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== SIGNUP PAGE ===== */
.signup-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #F0FFF4 0%, #E8F4FD 100%);
    display: flex;
    align-items: center;
    padding: 80px 0 40px;
}
.signup-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
}
.signup-sidebar {
    background: var(--navy);
    padding: 3rem 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.signup-sidebar img { height: 42px; filter: none; margin-bottom: 2rem; }
.signup-steps-list { list-style: none; padding: 0; }
.signup-steps-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0;
    opacity: 0.5;
    transition: var(--transition);
    font-size: 0.9rem;
}
.signup-steps-list li.active { opacity: 1; }
.signup-steps-list li.done { opacity: 0.8; }
.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.signup-steps-list li.active .step-dot {
    background: var(--primary);
    border-color: var(--primary);
}
.signup-steps-list li.done .step-dot {
    background: var(--primary);
    border-color: var(--primary);
}

.signup-body { padding: 2.5rem 2rem; }
.form-step { display: none; }
.form-step.active { display: block; }
.step-title { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 0.3rem; }
.step-sub { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 1.5rem; }

.form-label { font-weight: 600; font-size: 0.88rem; color: var(--gray-800); margin-bottom: 0.3rem; }
.form-control, .form-select {
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-size: 0.92rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46,169,75,0.12);
}

.progress-bar-custom {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--gradient-green);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
    animation: pop-in 0.5s ease;
}
@keyframes pop-in {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.card-input-group { position: relative; }
.card-input-group .card-icons {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.3rem;
}
.card-icons img { height: 22px; opacity: 0.6; }

/* ===== REFER PAGE ===== */
.refer-hero {
    background: var(--gradient);
    padding: 120px 0 80px;
    color: white;
    text-align: center;
}
.refer-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.refer-badge {
    display: inline-block;
    background: var(--gold);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.refer-step-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}
.refer-step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.refer-step-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}
.refer-form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

/* ===== ANIMATIONS ===== */
[data-aos] { transition-duration: 0.6s !important; }
.fade-up { opacity: 0; transform: translateY(30px); transition: var(--transition); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { gap: 1.2rem; }
    .float-card-1, .float-card-2 { display: none; }
    .signup-sidebar { display: none; }
    .signup-body { padding: 2rem 1.5rem; }
    .step-number::after { display: none; }
}

/* ===== UTILITIES ===== */
.text-primary-custom { color: var(--primary) !important; }
.text-navy { color: var(--navy) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.bg-navy { background: var(--navy) !important; }
.rounded-custom { border-radius: var(--radius) !important; }
.rounded-lg-custom { border-radius: var(--radius-lg) !important; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13,27,75,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.loading-overlay.show { opacity: 1; pointer-events: all; }
.spinner-grow-custom { color: var(--primary); }

/* Alert styles */
.alert-custom {
    border-radius: 10px;
    border: none;
    padding: 0.85rem 1.2rem;
    font-size: 0.9rem;
}

/* Carousel custom */
.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

/* ===================================================
   APP SCREEN SLIDER (Hero Section)
   =================================================== */

.app-slider-wrap {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.35));
}

/* Browser chrome */
.app-chrome {
  background: #2d2d2d;
  border-radius: 12px 12px 0 0;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chrome-dots { display: flex; gap: 5px; }
.ch-dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.chrome-url {
  flex: 1;
  background: #3d3d3d;
  border-radius: 20px;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  padding: 3px 10px;
}

/* Slider container */
.app-slider {
  background: #f5f6f8;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  position: relative;
  height: 340px;
}

/* Individual slides */
.app-slide {
  position: absolute;
  inset: 0;
  padding: 12px 14px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.app-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}
.app-slide.exit {
  opacity: 0;
  transform: translateX(-40px);
}

/* Slide header */
.slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  border-bottom: 2px solid #20c997;
  padding-bottom: 6px;
}
.slide-page-title { font-size: 0.82rem; font-weight: 700; color: #2d3748; }
.slide-breadcrumb { font-size: 0.65rem; color: #aaa; }

/* ---- SLIDE 1: Dashboard ---- */
.stat-cards-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.scard {
  background: white;
  border-radius: 8px;
  padding: 8px;
  border-top: 3px solid #20c997;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.scard-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.scard-num { font-size: 1rem; font-weight: 800; color: #2d3748; line-height: 1; }
.scard-lbl { font-size: 0.6rem; color: #666; margin-top: 2px; }
.scard-bars { display: flex; align-items: flex-end; gap: 3px; }
.scard-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-top: 1px solid #eee; padding-top: 5px; }
.scard-sub-num { font-size: 0.72rem; font-weight: 700; color: #2d3748; }
.scard-sub-lbl { font-size: 0.52rem; color: #999; text-transform: uppercase; letter-spacing: 0.3px; }
.income-box {
  background: white;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-top: 3px solid #20c997;
}
.income-title { font-size: 0.75rem; font-weight: 700; color: #2d3748; margin-bottom: 4px; }
.income-row { display: flex; gap: 16px; margin-bottom: 6px; }
.income-label { font-size: 0.6rem; color: #666; }
.income-val { font-size: 0.75rem; font-weight: 700; }
.mini-chart { margin-top: 2px; }

/* ---- SLIDE 2: Attendance ---- */
.att-cards-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 5px;
  margin-bottom: 8px;
}
.att-card {
  background: white;
  border-radius: 8px;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-top: 2px solid #20c997;
}
.att-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.att-num { font-size: 0.8rem; font-weight: 800; color: #2d3748; line-height: 1; }
.att-pct { font-size: 0.6rem; font-weight: 600; }
.att-lbl { font-size: 0.58rem; color: #666; }
.att-chart-box {
  background: white;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-top: 2px solid #20c997;
}
.bar-chart-wrap { display: flex; gap: 4px; align-items: flex-end; height: 80px; }
.bc-y-labels {
  display: flex; flex-direction: column;
  justify-content: space-between;
  font-size: 0.5rem; color: #bbb;
  height: 72px; padding-bottom: 4px;
  text-align: right; width: 20px; flex-shrink: 0;
}
.bc-groups { display: flex; gap: 6px; align-items: flex-end; flex: 1; height: 72px; }
.bc-group { display: flex; flex-direction: column; align-items: center; flex: 1; height: 100%; }
.bc-bars { display: flex; gap: 1px; align-items: flex-end; flex: 1; width: 100%; }
.bc-bar { flex: 1; border-radius: 2px 2px 0 0; min-width: 4px; }
.bc-label { font-size: 0.52rem; color: #888; margin-top: 2px; }
.bc-legend {
  display: flex; gap: 8px; margin-top: 5px; flex-wrap: wrap;
}
.bc-legend span { display: flex; align-items: center; gap: 3px; font-size: 0.55rem; color: #666; }
.bc-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex-shrink: 0; }

/* ---- SLIDE 3: Timetable ---- */
.tt-filters {
  display: flex; gap: 6px; align-items: center;
  margin-bottom: 8px; flex-wrap: wrap;
}
.tt-filter-group { display: flex; align-items: center; gap: 3px; }
.tt-filter-label { font-size: 0.6rem; font-weight: 700; color: #444; }
.tt-select {
  background: white; border: 1px solid #ddd;
  border-radius: 4px; padding: 2px 6px;
  font-size: 0.6rem; color: #444;
}
.tt-btn-apply {
  background: #20c997; color: white;
  border-radius: 4px; padding: 3px 10px;
  font-size: 0.62rem; font-weight: 700;
  cursor: pointer;
}
.tt-grid { background: white; border-radius: 8px; overflow: hidden; border: 1px solid #eee; }
.tt-head-row, .tt-row { display: grid; grid-template-columns: 64px repeat(5,1fr); }
.tt-head-row { background: #f8f9fa; }
.tt-head { font-size: 0.55rem; font-weight: 700; color: #666; padding: 5px 3px; text-align: center; border-bottom: 1px solid #eee; }
.tt-day-col { font-size: 0.58rem; font-weight: 600; color: #444; padding: 6px 5px; background: #fafafa; border-right: 1px solid #eee; border-bottom: 1px solid #f0f0f0; }
.tt-cell {
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  padding: 3px; min-height: 28px;
  position: relative; overflow: visible;
}
.tt-event {
  position: absolute; top: 3px;
  border-radius: 4px; padding: 2px 5px;
  font-size: 0.55rem; font-weight: 600;
  color: white; white-space: nowrap;
  z-index: 2;
}
.tt-blue { background: #3b7dd8; }
.tt-green { background: #20c997; }

/* ---- SLIDE 4: Term Report ---- */
.report-actions { display: flex; gap: 4px; }
.rpt-btn {
  font-size: 0.55rem; font-weight: 600;
  padding: 2px 6px; border-radius: 3px; cursor: pointer;
  border: 1px solid #ddd; color: #555;
  display: flex; align-items: center; gap: 2px;
}
.rpt-pdf { border-color: #e74c3c; color: #e74c3c; }
.rpt-excel { border-color: #2ea94b; color: #2ea94b; }
.rpt-print { border-color: #888; color: #888; }
.report-card { background: white; border-radius: 8px; padding: 8px 10px; box-shadow: 0 1px 6px rgba(0,0,0,0.08); }
.rpt-school-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 2px solid #2d3748; }
.rpt-school-name { font-size: 0.78rem; font-weight: 800; color: #2d3748; }
.rpt-school-sub { font-size: 0.58rem; color: #555; font-weight: 600; }
.rpt-school-addr { font-size: 0.55rem; color: #888; }
.rpt-avatar { width: 28px; height: 28px; background: #ddd; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.58rem; font-weight: 700; color: #555; }
.rpt-title-bar { background: #f0f0f0; text-align: center; font-size: 0.65rem; font-weight: 800; color: #2d3748; padding: 3px; border-radius: 4px; margin-bottom: 6px; letter-spacing: 1px; }
.rpt-info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin-bottom: 6px; }
.rpt-info-col { background: #fafafa; border-radius: 4px; padding: 4px 6px; }
.rpt-info-row { font-size: 0.55rem; color: #444; margin-bottom: 2px; }
.rpt-table { width: 100%; border-collapse: collapse; margin-bottom: 4px; }
.rpt-table th { background: #f0f0f0; font-size: 0.58rem; font-weight: 700; color: #2d3748; padding: 3px 5px; text-align: center; border: 1px solid #e0e0e0; }
.rpt-table td { font-size: 0.58rem; color: #444; padding: 3px 5px; text-align: center; border: 1px solid #eee; }
.rpt-table td:first-child { text-align: left; }
.rpt-grade-note { font-size: 0.52rem; color: #888; background: #f8f8f8; padding: 3px 6px; border-radius: 3px; }

/* Dots & labels */
.slider-dots {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 10px;
}
.sdot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer; transition: all 0.3s;
}
.sdot.active { background: #2EA94B; transform: scale(1.3); }

.slider-labels {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 6px;
}
.slabel {
  font-size: 0.7rem; color: rgba(255,255,255,0.4);
  cursor: pointer; transition: all 0.3s; font-weight: 500;
}
.slabel.active { color: white; font-weight: 700; }

/* ---- SLIDE 4 v2: Term Report (PDF-matched design) ---- */
.rpt-action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.report-card-v2 {
  background: white;
  border-radius: 6px;
  border: 1px solid #d0d0d0;
  overflow: hidden;
  font-size: 0.56rem;
  color: #222;
}
/* School header */
.rpt2-header {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  gap: 6px;
}
.rpt2-logo { flex-shrink: 0; }
.rpt2-school-center {
  flex: 1;
  text-align: center;
}
.rpt2-school-name { font-size: 0.82rem; font-weight: 900; color: #1a1a1a; line-height: 1.2; }
.rpt2-motto { font-size: 0.58rem; font-weight: 700; color: #333; margin-top: 2px; }
.rpt2-addr { font-size: 0.54rem; color: #666; }
.rpt2-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #d0d0d0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; font-weight: 700; color: #555;
  flex-shrink: 0;
  border: 1px solid #bbb;
}
.rpt2-divider { height: 1.5px; background: #1a1a1a; margin: 0 10px; }

/* Title bar */
.rpt2-title-bar {
  text-align: center;
  background: #f0f0f0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  color: #1a1a1a;
}

/* Info grid */
.rpt2-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid #ddd;
}
.rpt2-info-col { padding: 5px 7px; }
.rpt2-info-mid {
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}
.rpt2-irow {
  font-size: 0.54rem;
  color: #333;
  margin-bottom: 2.5px;
  line-height: 1.3;
}
.rpt2-att-head {
  font-weight: 800;
  font-size: 0.56rem;
  color: #1a1a1a;
  margin-top: 3px;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Subjects table */
.rpt2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.54rem;
}
.rpt2-table th {
  background: #f8f8f8;
  border: 1px solid #ddd;
  padding: 3px 4px;
  text-align: center;
  font-weight: 700;
  color: #222;
  font-size: 0.54rem;
  line-height: 1.3;
}
.rpt2-table td {
  border: 1px solid #e5e5e5;
  padding: 3px 4px;
  text-align: center;
  color: #333;
  font-size: 0.54rem;
}

/* Grade bar */
.rpt2-grade-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f5;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 3px 7px;
  font-size: 0.52rem;
  color: #333;
}

/* Remarks */
.rpt2-remarks {
  padding: 5px 7px;
  background: white;
}
.rpt2-remark-row {
  font-size: 0.52rem;
  color: #333;
  margin-bottom: 3px;
  line-height: 1.45;
}
