/* MeraMentor V0.01 - Main Stylesheet */
:root {
    --green-primary: #1a5c3a;
    --green-dark: #0f3d26;
    --green-light: #2d8a5e;
    --green-mint: #4ade80;
    --accent: #1a5c3a;
    --bg: #ffffff;
    --bg-alt: #f8faf9;
    --bg-footer: #faf8f5;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass: rgba(255,255,255,0.85);
    --navbar-height: 72px;
}

[data-theme="dark"] {
    --bg: #0f1419;
    --bg-alt: #1a2332;
    --bg-footer: #141b24;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #2d3748;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --glass: rgba(26,35,50,0.9);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
    border: 2px solid transparent; cursor: pointer; transition: all var(--transition);
    font-family: inherit;
}
.btn--primary { background: var(--green-primary); color: #fff; border-color: var(--green-primary); }
.btn--primary:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,92,58,0.3); }
.btn--outline { background: transparent; border-color: var(--green-primary); color: var(--green-primary); }
.btn--outline:hover { background: var(--green-primary); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border: none; }
.btn--ghost:hover { color: var(--green-primary); }
.btn--dark { background: var(--green-dark); color: #fff; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--sm { padding: 8px 18px; font-size: 0.875rem; }
.btn--block { width: 100%; }

.badge { display: inline-block; padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; }
.badge--green { background: rgba(26,92,58,0.1); color: var(--green-primary); }

.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow);
}

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--navbar-height);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}
[data-theme="dark"] .navbar { background: rgba(15,20,25,0.95); }
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.navbar__logo { display: flex; align-items: center; }
.navbar__logo img { height: 36px; width: auto; }
.navbar__nav { display: none; gap: 28px; }
.navbar__nav a { font-weight: 500; font-size: 0.95rem; color: var(--text-muted); }
.navbar__nav a:hover, .navbar__nav a.active { color: var(--green-primary); }
.navbar__actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
    background: var(--bg-alt); border: none; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text);
}
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon, :root:not([data-theme]) .icon-moon { display: none; }
.navbar__burger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.navbar__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
@media (min-width: 992px) {
    .navbar__nav { display: flex; }
    .navbar__burger { display: none; }
}
.navbar__nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--navbar-height); left: 0; right: 0;
    background: var(--bg); padding: 24px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.main-content { padding-top: var(--navbar-height); }

/* Hero */
.hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, rgba(232,244,253,0.5) 0%, rgba(232,253,240,0.3) 50%, transparent 100%);
    overflow: hidden;
}
[data-theme="dark"] .hero { background: linear-gradient(135deg, rgba(26,92,58,0.08) 0%, transparent 100%); }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 992px) { .hero__grid { grid-template-columns: 1fr 1fr; gap: 60px; } }
.hero__title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; margin: 16px 0; letter-spacing: -0.02em; }
.hero__subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 480px; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__proof { display: flex; align-items: center; gap: 16px; }
.avatar-stack { display: flex; }
.avatar-stack img {
    width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--bg);
    margin-left: -10px; object-fit: cover;
}
.avatar-stack img:first-child { margin-left: 0; }
.hero__rating .stars { color: #fbbf24; font-size: 0.9rem; letter-spacing: 1px; }
.hero__rating span { font-size: 0.875rem; color: var(--text-muted); }
.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero__image-wrap {
    position: relative; width: 100%; max-width: 400px; aspect-ratio: 1;
    margin: 0 auto; display: flex; align-items: center; justify-content: center;
}
.hero__circle {
    position: absolute; inset: 0; border-radius: 50%;
    background: linear-gradient(135deg, #4ade80, #1a5c3a);
    opacity: 0.18;
}
.hero__image {
    position: relative; z-index: 2;
    width: 88%; height: 88%; max-width: 88%; max-height: 88%;
    border-radius: 50%; object-fit: cover; object-position: center top;
    border: 4px solid rgba(255,255,255,0.9);
    box-shadow: 0 12px 40px rgba(26,92,58,0.15);
}
.float-card {
    position: absolute; z-index: 3; padding: 12px 16px; border-radius: var(--radius-sm);
    display: flex; align-items: center; gap: 10px; font-size: 0.8rem;
    animation: float 4s ease-in-out infinite;
}
.float-card--progress { top: 15%; left: -5%; animation-delay: 0s; }
.float-card--video { top: 45%; right: -8%; animation-delay: 1s; padding: 14px; }
.float-card--mentor { bottom: 30%; left: -10%; animation-delay: 0.5s; }
.float-card--success { bottom: 10%; right: 0; animation-delay: 1.5s; color: var(--green-primary); font-weight: 600; }
.play-icon { width: 40px; height: 40px; background: var(--green-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; }
.progress-ring { width: 44px; height: 44px; position: relative; }
.progress-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.progress-bg { fill: none; stroke: #e5e7eb; stroke-width: 3; }
.progress-fill { fill: none; stroke: var(--green-primary); stroke-width: 3; stroke-linecap: round; }
.progress-ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; }
.tag { display: block; font-size: 0.7rem; color: var(--green-primary); font-weight: 600; }
.success-icon { color: #fff; background: var(--green-primary); width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Partners (now Marquee) */
.partners { padding: 24px 0; border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); overflow: hidden; background: var(--bg-alt); }
.marquee { display: flex; overflow: hidden; user-select: none; gap: 2rem; }
.marquee__content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    gap: 2rem;
    animation: marquee-scroll 25s linear infinite;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-items: center;
}
.marquee__content span {
    white-space: nowrap;
}
.marquee__bullet {
    color: var(--green-light);
    font-size: 1.5rem;
    line-height: 1;
}
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* Sections */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section__header { margin-bottom: 48px; }
.section__header h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: 8px; }
.section__header p { color: var(--text-muted); max-width: 560px; }
.section__header.text-center p { margin: 0 auto; }

/* Categories */
.categories-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (min-width: 768px) { .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.category-card {
    background: var(--card-bg, #f0f0f0); border-radius: var(--radius);
    padding: 24px 20px; transition: all var(--transition); position: relative; overflow: hidden;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card__icon { margin-bottom: 16px; }
.category-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 24px; }
.category-card__link { font-size: 0.875rem; font-weight: 600; color: var(--green-primary); }

/* Course Cards & Carousel */
.carousel { position: relative; }
.carousel__track {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding-bottom: 8px;
    scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.course-card {
    flex: 0 0 280px; scroll-snap-align: start;
    background: var(--bg); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); transition: all var(--transition);
}
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.course-card__image { height: 160px; overflow: hidden; background: var(--bg-alt); }
.course-card__image img { width: 100%; height: 100%; object-fit: cover; }
.course-card__body { padding: 20px; }
.course-card__body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.course-card__instructor { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.course-card__meta { display: flex; justify-content: space-between; margin-bottom: 12px; }
.rating { color: #fbbf24; font-weight: 600; font-size: 0.9rem; }
.price { font-weight: 700; color: var(--green-primary); }
.course-card__footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); }
.link-arrow { color: var(--green-primary); font-weight: 600; font-size: 0.875rem; }
.link-arrow:hover { text-decoration: underline; }
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.carousel__btn {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--bg); cursor: pointer; font-size: 1.25rem;
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.carousel__btn:hover { background: var(--green-primary); color: #fff; border-color: var(--green-primary); }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--border);
    border: none; cursor: pointer; transition: var(--transition);
}
.carousel__dot.active { background: var(--green-primary); width: 24px; border-radius: 4px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.stat-card {
    background: var(--stat-color); border-radius: var(--radius); padding: 28px 24px; text-align: center;
    transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card__icon { font-size: 2rem; margin-bottom: 12px; }
.stat-card h3 { font-size: 1.75rem; font-weight: 800; margin-bottom: 4px; }
.stat-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Features */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 576px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .features-grid { grid-template-columns: repeat(5, 1fr); } }
.feature-card { padding: 28px 24px; border-radius: var(--radius); text-align: center; }
.feature-card__icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); }

/* Leaderboard */
.leaderboard-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .leaderboard-grid { grid-template-columns: repeat(2, 1fr); } }
.leaderboard-card {
    display: flex; align-items: center; gap: 16px; padding: 20px;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    transition: all var(--transition);
}
.leaderboard-card:hover { box-shadow: var(--shadow); }
.leaderboard-card--top { border-color: var(--green-primary); background: rgba(26,92,58,0.04); }
.leaderboard-card__rank { font-weight: 800; font-size: 1.1rem; color: var(--green-primary); min-width: 36px; }
.leaderboard-card img { border-radius: 50%; object-fit: cover; }
.leaderboard-card__info { flex: 1; }
.leaderboard-card__info strong { display: block; }
.leaderboard-card__info span { font-size: 0.85rem; color: var(--text-muted); }
.leaderboard-card__score { font-weight: 700; color: var(--green-primary); }

/* Experts */
.experts-track .expert-card { flex: 0 0 200px; text-align: center; scroll-snap-align: start; }
.expert-card img {
    width: 180px; height: 220px; object-fit: cover; border-radius: var(--radius-lg);
    margin: 0 auto 16px;
}
.expert-card h4 { font-weight: 700; margin-bottom: 4px; }
.expert-card span { font-size: 0.875rem; color: var(--text-muted); }
.carousel--experts { display: flex; align-items: center; gap: 16px; }
.carousel--experts .carousel__track { flex: 1; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 992px) { .faq__grid { grid-template-columns: 1fr 1.2fr; } }
.faq__illustration img { max-width: 100%; width: 100%; height: auto; margin: 0 auto; display: block; border-radius: var(--radius); }
.faq__content h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 28px; }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; background: none; border: none; font-family: inherit;
    font-size: 1rem; font-weight: 600; text-align: left; cursor: pointer; color: var(--text);
}
.accordion__icon { font-size: 1.25rem; color: var(--green-primary); transition: transform var(--transition); }
.accordion__item.active .accordion__icon { transform: rotate(45deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.accordion__item.active .accordion__panel { max-height: 200px; }
.accordion__panel p { padding-bottom: 20px; color: var(--text-muted); font-size: 0.95rem; }

/* Blog Cards */
.blog-track .blog-card { flex: 0 0 280px; scroll-snap-align: start; }
.blog-card { background: var(--bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.blog-card__image { display: block; height: 180px; overflow: hidden; background: var(--bg-alt); }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-card__image img { transform: scale(1.05); }
.blog-card__body { padding: 20px; }
.blog-card__body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-card__body h3 a:hover { color: var(--green-primary); }
.blog-card__meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card { padding: 28px; border-radius: var(--radius); }
.testimonial-card .stars { color: #fbbf24; margin-bottom: 16px; }
.testimonial-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; font-style: italic; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__author img { border-radius: 50%; object-fit: cover; }
.testimonial-card__author span { display: block; font-size: 0.8rem; color: var(--text-muted); }

/* Newsletter */
.newsletter { padding: 0 20px 80px; }
.newsletter__box {
    background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
    border-radius: var(--radius-lg); padding: 48px 32px; text-align: center; color: #fff;
}
.newsletter__box h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 8px; }
.newsletter__box p { opacity: 0.9; margin-bottom: 28px; }
.newsletter__form {
    display: flex; flex-direction: column; gap: 12px; max-width: 480px; margin: 0 auto;
}
@media (min-width: 576px) {
    .newsletter__form { flex-direction: row; background: #fff; border-radius: 50px; padding: 6px; }
    .newsletter__form input { flex: 1; border: none; background: transparent; padding: 12px 20px; }
    .newsletter__form .btn { border-radius: 50px; white-space: nowrap; }
}
.newsletter__form input {
    padding: 14px 20px; border-radius: 50px; border: none; font-size: 1rem; font-family: inherit;
}
@media (max-width: 575px) {
    .newsletter__form input { width: 100%; }
    .newsletter__form .btn { width: 100%; }
}

/* Footer */
.footer { background: var(--bg-footer); padding: 60px 0 0; border-top: 1px solid var(--border); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.footer__about { font-size: 0.9rem; color: var(--text-muted); margin: 16px 0; max-width: 280px; }
.footer__social { display: flex; gap: 12px; margin-bottom: 20px; }
.footer__social a {
    width: 40px; height: 40px; border-radius: 50%; background: var(--bg);
    display: flex; align-items: center; justify-content: center; color: var(--text-muted);
    transition: all var(--transition);
}
.footer__social a:hover { background: var(--green-primary); color: #fff; }
.footer__payments span { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 8px; }
.payment-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-badge { font-size: 0.75rem; padding: 4px 10px; background: var(--bg); border-radius: 6px; font-weight: 600; }
.footer__col h4 { font-weight: 700; margin-bottom: 16px; font-size: 1rem; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul a { font-size: 0.9rem; color: var(--text-muted); }
.footer__col ul a:hover { color: var(--green-primary); }
.footer__contact li { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; }
.footer__bottom { border-top: 1px solid var(--border); padding: 24px 0; text-align: center; }
.footer__bottom p { font-size: 0.875rem; color: var(--text-muted); }

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - var(--navbar-height));
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px; background: var(--bg-alt);
}
.auth-card {
    width: 100%; max-width: 440px; background: var(--bg); border-radius: var(--radius-lg);
    padding: 40px 32px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.auth-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; text-align: center; }
.auth-card .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 28px; font-size: 0.9rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 1rem; background: var(--bg); color: var(--text);
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--green-primary); }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; }
.form-check input { margin-top: 4px; }
.form-error { color: #dc2626; font-size: 0.85rem; margin-top: 4px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--text-muted); }
.auth-footer a { color: var(--green-primary); font-weight: 600; }

/* Page layouts */
.page-hero { padding: 60px 0 40px; background: var(--bg-alt); text-align: center; }
.page-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.page-content { padding: 60px 0; }

/* Blog single */
.blog-post { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.blog-post__header { margin-bottom: 32px; }
.blog-post__meta { color: var(--text-muted); font-size: 0.9rem; margin: 12px 0; }
.blog-post__content { font-size: 1.05rem; line-height: 1.8; word-wrap: break-word; overflow-wrap: break-word; }
.blog-post__content h2, .blog-post__content h3 { font-size: 1.5rem; margin: 32px 0 16px; line-height: 1.3; }
.blog-post__content h3 { font-size: 1.25rem; }
.blog-post__content p { margin-bottom: 16px; }
.blog-post__content ul, .blog-post__content ol { margin: 16px 0 16px 24px; padding-left: 8px; }
.blog-post__content ul { list-style: disc; }
.blog-post__content ol { list-style: decimal; }
.blog-post__content li { margin-bottom: 8px; line-height: 1.7; }
.blog-post__content li p { margin-bottom: 8px; }
.blog-post__content blockquote { border-left: 4px solid var(--green-primary); padding: 12px 20px; margin: 20px 0; background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.blog-post__content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 16px 0; }
.blog-post__content pre, .blog-post__content code { background: var(--bg-alt); border-radius: 6px; font-size: 0.9em; }
.blog-post__content pre { padding: 16px; overflow-x: auto; margin: 16px 0; }
.blog-post__content code { padding: 2px 6px; }
.blog-post__content a { color: var(--green-primary); text-decoration: underline; }
.blog-author-box {
    display: flex; gap: 16px; padding: 24px; background: var(--bg-alt);
    border-radius: var(--radius); margin: 40px 0;
}
.share-buttons { display: flex; gap: 8px; margin: 24px 0; }

/* Modal & Toast */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all var(--transition); }
.modal.open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal__content { position: relative; background: var(--bg); border-radius: var(--radius-lg); padding: 32px; max-width: 400px; width: 90%; z-index: 1; }
.modal__close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
.toast-container { position: fixed; top: 90px; right: 20px; z-index: 1500; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 14px 20px; border-radius: var(--radius-sm); font-weight: 500; animation: slideIn 0.3s ease; box-shadow: var(--shadow-lg); }
.toast--success { background: #dcfce7; color: #166534; }
.toast--error { background: #fee2e2; color: #991b1b; }
.toast--info { background: #dbeafe; color: #1e40af; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Animations */
.animate-fade-up { animation: fadeUp 0.8s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* Maintenance */
.maintenance-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 40px; background: linear-gradient(135deg, var(--green-primary), var(--green-dark)); color: #fff;
}
.maintenance-page h1 { font-size: 2.5rem; margin-bottom: 16px; }
.countdown { display: flex; gap: 20px; justify-content: center; margin: 32px 0; }
.countdown__item { background: rgba(255,255,255,0.15); padding: 20px; border-radius: var(--radius); min-width: 80px; }
.countdown__item span { display: block; font-size: 2rem; font-weight: 800; }

/* Dashboard placeholder */
.dashboard-placeholder { text-align: center; padding: 80px 20px; }
.dashboard-placeholder h1 { font-size: 2rem; margin-bottom: 12px; }

/* 404 */
.error-page { text-align: center; padding: 100px 20px; }
.error-page h1 { font-size: 6rem; font-weight: 800; color: var(--green-primary); }

/* Roadmap */
.roadmap-timeline { max-width: 700px; margin: 0 auto; }
.roadmap-item { display: flex; gap: 20px; margin-bottom: 32px; }
.roadmap-item__dot { width: 16px; height: 16px; background: var(--green-primary); border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.roadmap-item__content { flex: 1; padding: 20px; background: var(--bg-alt); border-radius: var(--radius); }

/* Blog grid page */
.blogs-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .blogs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .blogs-grid { grid-template-columns: repeat(3, 1fr); } }

/* Coming Soon & Announcing Soon Placeholders */
.coming-soon-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    background: var(--bg-alt);
    text-align: center;
    max-width: 500px;
    margin: 30px auto;
    box-shadow: var(--shadow);
}
.coming-soon-placeholder--glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
}
[data-theme="dark"] .coming-soon-placeholder--glass {
    border: 1px solid rgba(255,255,255,0.05);
}
.coming-soon-placeholder__icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: pulse 2s infinite ease-in-out;
}
.coming-soon-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--green-primary);
    letter-spacing: -0.01em;
}
.coming-soon-placeholder p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Dashboard */
.dashboard { padding: 32px 0 64px; }
.dashboard__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.dashboard__header h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 6px; }
.dashboard__header p { color: var(--text-muted); }
.dashboard__header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dashboard__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
@media (min-width: 768px) { .dashboard__stats { grid-template-columns: repeat(4, 1fr); } }
.dashboard-stat-card {
    display: flex; align-items: center; gap: 14px; padding: 20px;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.dashboard-stat-card__icon { font-size: 1.75rem; }
.dashboard-stat-card strong { display: block; font-size: 1.35rem; color: var(--green-primary); }
.dashboard-stat-card span { font-size: 0.8rem; color: var(--text-muted); }
.dashboard__grid { display: grid; gap: 24px; margin-bottom: 24px; }
@media (min-width: 768px) { .dashboard__grid { grid-template-columns: 1fr 1fr; } }
.dashboard-panel {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow-sm);
}
.dashboard-panel--full { margin-bottom: 24px; }
.dashboard-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dashboard-panel__head h2 { font-size: 1.15rem; }
.dashboard-profile { display: flex; gap: 16px; align-items: center; }
.dashboard-profile img { border-radius: 50%; object-fit: cover; }
.dashboard-profile strong { display: block; }
.dashboard-profile span { display: block; font-size: 0.85rem; color: var(--text-muted); }
.dashboard-notes-list { list-style: none; }
.dashboard-notes-list li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.dashboard-notes-list li:last-child { border-bottom: none; }
.dashboard-notes-list__cat { font-size: 0.75rem; background: rgba(26,92,58,0.08); color: var(--green-primary); padding: 2px 8px; border-radius: 99px; }
.dashboard-notes-list strong { flex: 1; min-width: 120px; }
.dashboard-empty { text-align: center; padding: 24px; color: var(--text-muted); }
.dashboard-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dashboard-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dashboard-table th, .dashboard-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); }
.dashboard-table th { font-weight: 600; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; }

/* Notes page */
.notes-page { padding: 0 0 64px; }
.notes-filter { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; align-items: center; }
.notes-filter__search { flex: 1; min-width: 200px; }
.notes-filter input, .notes-filter select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 0.95rem; }
.notes-filter select { width: auto; min-width: 160px; }
.notes-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 576px) { .notes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .notes-grid { grid-template-columns: repeat(3, 1fr); } }
.notes-card {
    display: flex; flex-direction: column; gap: 12px; padding: 24px;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: box-shadow 0.2s;
}
.notes-card:hover { box-shadow: var(--shadow); }
.notes-card__icon {
    width: 48px; height: 48px; background: rgba(26,92,58,0.1); color: var(--green-primary);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.75rem;
}
.notes-card__category { font-size: 0.75rem; color: var(--green-primary); font-weight: 600; }
.notes-card h3 { font-size: 1.1rem; line-height: 1.3; }
.notes-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.notes-card__meta { display: flex; gap: 12px; font-size: 0.75rem; color: var(--text-muted); }
.notes-card__download { align-self: flex-start; }
.notes-empty { text-align: center; padding: 60px 20px; }
.notes-empty__icon { font-size: 3rem; margin-bottom: 12px; }

/* Leaderboard table */
.leaderboard-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 24px; }
.leaderboard-table { width: 100%; border-collapse: collapse; background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.leaderboard-table th, .leaderboard-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.leaderboard-table th { background: var(--bg-alt); font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.leaderboard-table__top { background: rgba(26,92,58,0.04); }
.leaderboard-table__rank { font-weight: 800; color: var(--green-primary); }
.leaderboard-table__user { display: flex; align-items: center; gap: 10px; }
.leaderboard-table__user img { border-radius: 50%; object-fit: cover; }
.leaderboard-table__score { color: var(--green-primary); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px 0; }
.pagination__info { font-size: 0.9rem; color: var(--text-muted); }

/* Quill editor fixes (author panel) */
.ql-editor { min-height: 280px; font-size: 1rem; line-height: 1.7; }
.ql-editor ul, .ql-editor ol { padding-left: 1.5em; }
.ql-editor li { margin-bottom: 0.5em; }
.ql-container { font-family: Inter, sans-serif; border-radius: 0 0 8px 8px; }
.ql-toolbar { border-radius: 8px 8px 0 0; }

@media (max-width: 767px) {
    .hero__visual { margin-top: 32px; }
    .float-card { display: none; }
    .dashboard-table { font-size: 0.8rem; }
    .dashboard-table th, .dashboard-table td { padding: 8px; }
}
