:root {
    --bg-color: #f8fafc;
    --bg-surface: #ffffff;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-hover-border: #818cf8;
    --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --card-hover-shadow: 0 12px 30px -4px rgba(99, 102, 241, 0.12), 0 4px 10px -2px rgba(99, 102, 241, 0.06);
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.12);
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --accent-glow: rgba(2, 132, 199, 0.12);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-subtle: #94a3b8;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Grids & Orbs */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    top: -100px;
    left: -100px;
    width: 550px;
    height: 550px;
    background: rgba(99, 102, 241, 0.08);
}

.orb-2 {
    top: 35%;
    right: -150px;
    width: 650px;
    height: 650px;
    background: rgba(14, 165, 233, 0.08);
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo-icon {
    font-size: 1.35rem;
}

.logo-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.logo:hover .logo-img {
    transform: scale(1.06);
}

.highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* User pill in nav */
.user-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f1f5f9;
    border: 1px solid var(--card-border);
    padding: 0.35rem 0.85rem;
    border-radius: 25px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.user-pill:hover {
    background: #e2e8f0;
}

.avatar-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff !important;
    border: 1px solid #4338ca;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: var(--text-main);
    transform: translateY(-1px);
}

.btn-glass {
    background: rgba(241, 245, 249, 0.9);
    color: var(--text-main);
    border: 1px solid #cbd5e1;
}

.btn-glass:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.btn-large {
    padding: 0.85rem 1.8rem;
    font-size: 1.02rem;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 3.5rem auto 3rem;
    padding: 0 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 1rem 0 1.2rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #4f46e5 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 2.2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2.8rem;
}

.metrics-strip {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.6rem;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.metric-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-divider {
    width: 1px;
    height: 32px;
    background: var(--card-border);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.book-cover-glow {
    position: relative;
    display: inline-block;
}

.book-cover-glow::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    filter: blur(25px);
    z-index: -1;
}

.book-cover-img {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    display: block;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4338ca;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4f46e5;
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.6);
}

/* Sections */
.section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Popular Rankings & Amazon Badges */
.popular-ranking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-top: 1.5rem;
}

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

.ranking-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ranking-card:hover {
    transform: translateY(-4px);
    border-color: #f59e0b;
    box-shadow: 0 15px 35px -10px rgba(245, 158, 11, 0.15);
}

.ranking-card-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    border: 1px solid #e2e8f0;
}

.ranking-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.ranking-card-img-wrap:hover img {
    transform: scale(1.03);
}

.ranking-badge {
    align-self: flex-start;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* About text & Cards Grid */
.about-text {
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-text p {
    margin-bottom: 1.2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Table of Contents */
.toc-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.toc-item {
    display: flex;
    gap: 1.2rem;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    box-shadow: var(--card-shadow);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.toc-item:hover {
    border-color: #818cf8;
    transform: translateY(-2px);
}

.toc-num {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.toc-item h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.toc-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Quote / Foreword */
.quote-card {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--primary);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    box-shadow: var(--card-shadow);
}

.quote-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.quote-attr {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* Author Section */
.author-layout {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}

.author-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #eef2ff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.author-bio h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.author-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.author-bio p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-size: 0.96rem;
    line-height: 1.6;
}

/* Glass Section & Split Layout */
.glass-section {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    box-shadow: var(--card-shadow);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.split-content h2 {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    margin: 0.5rem 0 1rem;
    color: var(--text-main);
}

.split-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.02rem;
}

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
}

.check-list span {
    color: var(--primary);
    font-weight: bold;
}

/* Code Terminal (Dark IDE aesthetic for code contrast) */
.code-terminal {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.2);
}

.terminal-header {
    background: #1e293b;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #334155;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
    font-family: monospace;
}

.code-block {
    padding: 1.4rem;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #e2e8f0;
    overflow-x: auto;
}

.code-comment { color: #64748b; }
.code-cmd { color: #38bdf8; }
.code-info { color: #818cf8; }
.code-success { color: #34d399; }

/* Testimonials / Reader Reviews */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: #818cf8;
    box-shadow: var(--card-hover-shadow);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.8rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-meta h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.15rem;
}

.testimonial-meta p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.testimonial-img-wrap {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    cursor: zoom-in;
    position: relative;
}

.testimonial-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.testimonial-img-wrap:hover img {
    transform: scale(1.03);
}

.testimonial-quote {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.55;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.8rem;
    border-top: 1px solid var(--card-border);
    margin-top: auto;
    font-size: 0.8rem;
}

.linkedin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #0a66c2;
    font-weight: 600;
    font-size: 0.8rem;
}

.linkedin-icon {
    width: 15px;
    height: 15px;
    fill: #0a66c2;
}

.verified-tag {
    color: #16a34a;
    font-size: 0.76rem;
    font-weight: 600;
    background: #dcfce7;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

/* CTA Card */
.cta-section {
    margin: 5rem auto;
}

.cta-card {
    background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.08);
}

.cta-card h2 {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 2.2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    background: #ffffff;
    padding: 4rem 2rem 2.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-main);
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    margin-bottom: 0.7rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Member Hub & Dashboard */
.member-header {
    background: #ffffff;
    border-bottom: 1px solid var(--card-border);
    padding: 2.5rem 0 2rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.member-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.member-nav-pills {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pill-link {
    padding: 0.45rem 1.1rem;
    border-radius: 25px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    background: #f1f5f9;
    border: 1px solid var(--card-border);
    transition: all 0.2s;
}

.pill-link:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

.pill-link.active {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: var(--card-shadow);
}

.stat-icon {
    font-size: 2rem;
}

.stat-info h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Assets / Blueprints Grid */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
}

.asset-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s;
}

.asset-card:hover {
    transform: translateY(-3px);
    border-color: #818cf8;
    box-shadow: var(--card-hover-shadow);
}

.asset-preview {
    height: 180px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--card-border);
    overflow: hidden;
}

.asset-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s;
}

.asset-preview:hover img {
    transform: scale(1.03);
}

.asset-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.asset-tag {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ask the Author & Messaging */
.message-item {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
}

.message-item:hover {
    border-color: #818cf8;
    box-shadow: var(--card-hover-shadow);
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.status-replied {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.author-reply-box {
    margin-top: 1rem;
    padding: 1.2rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid var(--primary);
    border-radius: 10px;
}

.author-reply-box p {
    color: var(--text-main);
    line-height: 1.55;
}

/* MockSphere Interview Hub */
.category-filter {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.category-chip {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.category-chip:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

.category-chip.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.question-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.25s;
}

.question-card:hover {
    border-color: #818cf8;
    box-shadow: var(--card-hover-shadow);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.difficulty-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.badge-advanced {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.badge-system-design {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.badge-intermediate {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.solution-toggle {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.solution-box {
    margin-top: 1.2rem;
    padding: 1.4rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.solution-box ul {
    padding-left: 1.2rem;
    color: var(--text-main);
}

.solution-box li {
    margin-bottom: 0.6rem;
    font-size: 0.93rem;
    line-height: 1.6;
}

/* Curriculum & Companion App */
.curriculum-part {
    margin-bottom: 3.5rem;
}

.curriculum-part-head {
    margin-bottom: 1.5rem;
}

.part-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    font-weight: 700;
}

.curriculum-part-head h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0.2rem 0;
}

.part-range {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.chapter-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
}

.chapter-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.25s;
}

.chapter-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
}

.chapter-card-media {
    height: 160px;
    background: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--card-border);
}

.chapter-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.chapter-card:hover .chapter-card-media img {
    transform: scale(1.03);
}

.chapter-card-placeholder {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-subtle);
}

.chapter-card-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.chapter-card-num {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.chapter-card-body h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.35;
}

.chapter-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid var(--card-border);
    font-size: 0.8rem;
}

.figure-count-badge {
    background: #eef2ff;
    color: #4338ca;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
}

.chapter-mindmap-box {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.8rem;
    margin: 2rem 0;
    box-shadow: var(--card-shadow);
}

.mindmap-img-wrapper {
    max-height: 650px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--card-border);
    cursor: zoom-in;
    position: relative;
}

.mindmap-img-wrapper img {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: contain;
    display: block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.zoom-hint-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    pointer-events: none;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Auth Cards & Forms */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.5rem;
}

.auth-split-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
    max-width: 1050px;
    width: 100%;
    align-items: center;
}

@media (max-width: 900px) {
    .auth-split-layout {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
    .auth-side-panel {
        display: none;
    }
}

.auth-side-panel {
    padding: 1rem 0;
}

.auth-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.8rem;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.auth-card h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-align: center;
    color: var(--text-main);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.92rem;
    text-align: center;
    margin-bottom: 1.8rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    background: #ffffff;
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    padding-right: 2.8rem;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s;
}

.password-toggle-btn:hover {
    color: var(--text-main);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alerts */
.messages-container {
    max-width: 1200px;
    margin: 1rem auto 0;
    padding: 0 2rem;
}

.alert {
    padding: 1rem 1.4rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-info {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0369a1;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* Consultations, Pricing & Orders */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: #818cf8;
    box-shadow: var(--card-hover-shadow);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.12);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-tag {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.2rem 0;
}

.price-tag span {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    font-family: var(--font-body);
}

.features-list {
    list-style: none;
    margin: 1.5rem 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
}

.features-list li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
}

.consultation-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.2rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s;
}

.consultation-card:hover {
    transform: translateY(-4px);
    border-color: #818cf8;
    box-shadow: var(--card-hover-shadow);
}

.consultation-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.8rem 0;
}

.order-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--card-shadow);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid,
    .split-layout,
    .toc-list,
    .author-layout {
        grid-template-columns: 1fr;
    }
    
    .author-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        display: none;
    }
}
