/* =========================================================
   St Aloysius PU College Library – Main Stylesheet
   Theme: Dark Fintech (Inspired by Finpay Dribbble Design)
   Author: SAPUC Library Team
   ========================================================= */

/* ── CSS Variables ── */
:root {
    --bg-dark: #0a0b14;
    --bg-card: #111220;
    --bg-card-hover: #161829;
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(139, 92, 246, 0.4);

    --primary: #7c3aed;
    --primary-light: #8b5cf6;
    --primary-dark: #6d28d9;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --gradient: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    --gradient-text: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
    --gradient-hover: linear-gradient(135deg, #6d28d9 0%, #2563eb 100%);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-main: 'Inter', sans-serif;
    --font-display: 'Poppins', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-primary: 0 8px 32px rgba(124, 58, 237, 0.35);
    --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.15);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 72px;
}

/* ── Light Mode Variables ── */
[data-theme="light"] {
    --bg-dark: #f0f2f8;
    --bg-card: #ffffff;
    --bg-card-hover: #f4f6fb;
    --bg-glass: rgba(0, 0, 0, 0.03);
    --border: rgba(0, 0, 0, 0.09);
    --border-hover: rgba(124, 58, 237, 0.45);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.10);
    --shadow-primary: 0 8px 32px rgba(124, 58, 237, 0.22);
    --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.08);

    /* Gradient text — deeper, visible on light background */
    --gradient-text: linear-gradient(135deg, #6d28d9 0%, #1d4ed8 100%);
}

[data-theme="light"] body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(240, 242, 248, 0.94);
}

[data-theme="light"] .trusted {
    border-top-color: var(--border);
    border-bottom-color: var(--border);
}

[data-theme="light"] .footer {
    background: #e8ecf5;
    border-top-color: rgba(0, 0, 0, 0.1);
}

/* Footer text — make muted text readable on the light footer bg */
[data-theme="light"] .footer-brand p {
    color: #475569;
}

[data-theme="light"] .footer-col h4 {
    color: #0f172a;
}

[data-theme="light"] .footer-col ul li a {
    color: #475569;
}

[data-theme="light"] .footer-col ul li a:hover {
    color: var(--primary);
}

[data-theme="light"] .footer-contact li {
    color: #475569;
}

[data-theme="light"] .footer-contact li i {
    color: var(--primary);
}

[data-theme="light"] .footer-bottom {
    color: #64748b;
    border-top-color: rgba(0, 0, 0, 0.1);
}

/* Social icon buttons on the light footer */
[data-theme="light"] .social-links a {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
    color: #475569;
}

[data-theme="light"] .social-links a:hover {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
}

/* Logo text in footer — light mode */
[data-theme="light"] .footer .logo-sub {
    color: var(--primary);
}

[data-theme="light"] .footer .logo-main {
    color: #0f172a;
}

/* Footer logo image background stays white in both modes */
[data-theme="light"] .footer-logo-img,
[data-theme="light"] .logo-img-wrap {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15), 0 0 0 2px rgba(124,58,237,0.2);
}

[data-theme="light"] .cta-banner {
    background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(59,130,246,0.06) 100%);
    border-top-color: rgba(124,58,237,0.15);
    border-bottom-color: rgba(124,58,237,0.15);
}

/* "Learn More" outline button — visible on light CTA background */
[data-theme="light"] .btn-outline-white {
    color: #4c1d95;
    border-color: rgba(109, 40, 217, 0.6);
    background: rgba(109, 40, 217, 0.06);
}
[data-theme="light"] .btn-outline-white:hover {
    background: rgba(109, 40, 217, 0.14);
    border-color: #6d28d9;
    color: #3b0764;
}

[data-theme="light"] .orb { opacity: 0.10; }

[data-theme="light"] .mockup-sidebar { background: rgba(0,0,0,0.04); }

[data-theme="light"] .rm-search,
[data-theme="light"] .ph-search { background: rgba(0,0,0,0.04); }

[data-theme="light"] .list-lines div { background: rgba(0,0,0,0.08); }
[data-theme="light"] .list-lines div:first-child { background: rgba(0,0,0,0.18); }

[data-theme="light"] .stats { background: transparent; }

[data-theme="light"] .about::before {
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* ── Theme Toggle Button ── */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.theme-toggle:hover {
    border-color: var(--border-hover);
    color: var(--primary-light);
    background: rgba(124, 58, 237, 0.08);
}
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, textarea, button { font-family: inherit; }

/* ── Utility ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 60px;
    text-align: center;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    background: var(--gradient-hover);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}
.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-lg); }

.btn-full { width: 100%; justify-content: center; }

.btn-white {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
}
.btn-white:hover { background: #f1f5f9; transform: translateY(-2px); }

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 11, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}

/* College crest image in navbar */
.logo-img-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25), 0 0 0 2px rgba(124,58,237,0.25);
    flex-shrink: 0;
    padding: 2px;
    transition: var(--transition);
}
.logo-img-wrap:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.35), 0 0 0 2px var(--primary-light); }
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Footer logo image */
.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--text-primary); letter-spacing: 0.03em; }
.logo-sub { font-size: 0.85rem; color: var(--primary-light); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    min-height: 100vh;
    padding: calc(var(--nav-height) + 60px) 24px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-effects { position: absolute; inset: 0; pointer-events: none; }

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
}
.orb-1 { width: 500px; height: 500px; background: #7c3aed; top: -100px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: #3b82f6; top: 200px; right: -80px; }
.orb-3 { width: 300px; height: 300px; background: #10b981; bottom: 100px; left: 30%; }

.hero-container {
    max-width: 760px;
    text-align: center;
    z-index: 1;
    animation: fadeUp 0.8s ease both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.35);
    color: var(--primary-light);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 24px;
}
.hero-badge i { color: var(--warning); }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 20px 32px;
    flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Dashboard Mockup */
.hero-visual {
    width: 100%;
    max-width: 900px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.8s 0.2s ease both;
}

.dashboard-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.mockup-header {
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.mockup-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }
.mockup-title { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

.mockup-body { display: flex; min-height: 220px; }

.mockup-sidebar {
    width: 56px;
    background: rgba(0,0,0,0.2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
}
.sidebar-item {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.sidebar-item.active, .sidebar-item:hover {
    background: var(--gradient);
    color: #fff;
}

.mockup-main { flex: 1; padding: 16px; }

.mockup-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }

.m-card {
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.m-card-1 { background: rgba(124, 58, 237, 0.15); }
.m-card-2 { background: rgba(59, 130, 246, 0.15); }
.m-card-3 { background: rgba(16, 185, 129, 0.15); }
.m-card-icon { font-size: 1.1rem; }
.m-card-1 .m-card-icon { color: var(--primary-light); }
.m-card-2 .m-card-icon { color: var(--accent-light); }
.m-card-3 .m-card-icon { color: var(--success); }
.m-card-value { font-size: 1rem; font-weight: 700; }
.m-card-label { font-size: 0.68rem; color: var(--text-muted); }

.mockup-list { display: flex; flex-direction: column; gap: 8px; }
.list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.list-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    flex-shrink: 0;
}
.list-avatar.a2 { background: linear-gradient(135deg, #3b82f6, #10b981); }
.list-avatar.a3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.list-lines { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.list-lines div { height: 6px; border-radius: 3px; background: var(--border); }
.list-lines div:first-child { width: 60%; background: rgba(255,255,255,0.15); }
.list-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 100px;
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary-light);
}
.list-badge.b2 { background: rgba(16,185,129,0.2); color: var(--success); }
.list-badge.b3 { background: rgba(239,68,68,0.2); color: var(--danger); }

/* Floating cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: var(--shadow-card);
    white-space: nowrap;
}
.fc-1 { top: -20px; right: 10%; }
.fc-1 i { color: var(--success); }
.fc-2 { bottom: -20px; left: 5%; }
.fc-2 i { color: var(--warning); }

.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 44px;
    border: 2px solid var(--border-hover);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.scroll-dot {
    width: 5px;
    height: 10px;
    background: var(--primary-light);
    border-radius: 3px;
    animation: scrollBounce 2s infinite;
}

/* =========================================================
   TRUSTED
   ========================================================= */
.trusted {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.trusted-label {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 28px;
    font-weight: 500;
}
.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}
.trusted-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.trusted-item i { font-size: 1.2rem; color: var(--primary-light); }
.trusted-item:hover { color: var(--text-primary); }

/* =========================================================
   FEATURES
   ========================================================= */
.features {
    padding: 100px 0;
    text-align: center;
    position: relative;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: left;
    transition: var(--transition);
    cursor: pointer;
}
.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
}
.fi-1 { background: rgba(124,58,237,0.15); color: var(--primary-light); }
.fi-2 { background: rgba(59,130,246,0.15); color: var(--accent-light); }
.fi-3 { background: rgba(16,185,129,0.15); color: var(--success); }
.fi-4 { background: rgba(245,158,11,0.15); color: var(--warning); }
.fi-5 { background: rgba(236,72,153,0.15); color: #f472b6; }
.fi-6 { background: rgba(20,184,166,0.15); color: #2dd4bf; }
.fi-7 { background: rgba(99,102,241,0.15); color: #818cf8; }
.fi-8 { background: rgba(239,68,68,0.15); color: #f87171; }

.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.feature-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.feature-link:hover { gap: 10px; }

/* =========================================================
   ABOUT
   ========================================================= */
.about {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.about::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-card-stack { position: relative; }
.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
}
.about-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 28px;
}
.about-card-header i { font-size: 1.2rem; }
.about-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.metric { text-align: center; }
.metric-val {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.metric span { font-size: 1.5rem; font-weight: 800; color: var(--primary-light); }
.metric-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; display: block; }

.about-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-card);
    white-space: nowrap;
}
.about-badge i { color: var(--success); }
.ab-1 { bottom: -20px; right: -20px; }
.ab-2 { top: -20px; left: -20px; }

.about-list { margin: 20px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.about-list li i { color: var(--success); flex-shrink: 0; margin-top: 3px; }

/* =========================================================
   STATS
   ========================================================= */
.stats {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.stats-bg-effects { position: absolute; inset: 0; pointer-events: none; }
.orb-stats-1 { width: 400px; height: 400px; background: #7c3aed; bottom: -100px; left: -100px; }
.orb-stats-2 { width: 300px; height: 300px; background: #3b82f6; top: -50px; right: -50px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 24px;
    transition: var(--transition);
}
.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary);
}
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-primary);
}
.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.stat-label { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.stat-desc { font-size: 0.82rem; color: var(--text-muted); }

/* =========================================================
   RESOURCE MANAGEMENT
   ========================================================= */
.resource { padding: 100px 0; }
.resource-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.resource-features { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.res-feat { display: flex; gap: 16px; align-items: flex-start; }
.res-feat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-light);
    flex-shrink: 0;
}
.res-feat h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.res-feat p { font-size: 0.85rem; color: var(--text-secondary); }

.resource-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.rm-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rm-title { font-size: 0.88rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.rm-title i { color: var(--primary-light); }
.rm-actions { display: flex; gap: 8px; }
.rm-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
}
.rm-search {
    margin: 14px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.rm-list { padding: 0 20px; display: flex; flex-direction: column; gap: 10px; }
.rm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.rm-item:hover { border-color: var(--border-hover); }
.rm-item-cover {
    width: 36px;
    height: 48px;
    border-radius: 4px;
    flex-shrink: 0;
}
.ri-c1 { background: linear-gradient(135deg, #7c3aed, #3b82f6); }
.ri-c2 { background: linear-gradient(135deg, #10b981, #3b82f6); }
.ri-c3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.ri-c4 { background: linear-gradient(135deg, #ec4899, #7c3aed); }
.rm-item-info { flex: 1; }
.rm-item-title { font-size: 0.88rem; font-weight: 600; }
.rm-item-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.rm-item-status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
}
.available { background: rgba(16,185,129,0.15); color: var(--success); }
.issued { background: rgba(245,158,11,0.15); color: var(--warning); }
.reserved { background: rgba(59,130,246,0.15); color: var(--accent-light); }
.rm-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 10px;
}
.rm-view-all { color: var(--primary-light); font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 4px; }

/* =========================================================
   STUDENT APP
   ========================================================= */
.student-app { padding: 100px 0; }
.student-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.student-visual { position: relative; display: flex; justify-content: center; }

.phone-mockup {
    width: 260px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 20px 16px 32px;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    position: relative;
}
.phone-notch {
    width: 80px;
    height: 24px;
    background: var(--bg-dark);
    border-radius: 12px;
    margin: 0 auto 16px;
}
.phone-screen { display: flex; flex-direction: column; gap: 12px; }
.phone-header { display: flex; justify-content: space-between; align-items: center; }
.ph-user { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; }
.ph-user i { font-size: 1.2rem; color: var(--primary-light); }
.ph-bell { color: var(--text-muted); }
.ph-search {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.ph-section-title { font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); }
.ph-books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-book {
    border-radius: var(--radius-sm);
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.pb-1 { background: rgba(124,58,237,0.15); }
.pb-1 i { color: var(--primary-light); }
.pb-2 { background: rgba(59,130,246,0.15); }
.pb-2 i { color: var(--accent-light); }
.pb-3 { background: rgba(16,185,129,0.15); }
.pb-3 i { color: var(--success); }
.ph-due {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ph-due-icon { color: var(--warning); font-size: 1rem; }
.ph-due-title { font-size: 0.72rem; font-weight: 700; }
.ph-due-sub { font-size: 0.65rem; color: var(--text-muted); }
.ph-due-btn {
    margin-left: auto;
    background: var(--warning);
    color: var(--bg-dark);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.ph-qr {
    background: var(--gradient);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}

.phone-badge {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-card);
    white-space: nowrap;
}
.phone-badge i { color: var(--success); }
.pb-badge-1 { top: 20px; right: -20px; }
.pb-badge-2 { bottom: 40px; left: -30px; }

.app-store-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.store-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    transition: var(--transition);
}
.store-badge:hover { border-color: var(--border-hover); background: rgba(124,58,237,0.1); }
.store-badge i { font-size: 1.6rem; color: var(--text-primary); }
.store-badge small { display: block; font-size: 0.65rem; color: var(--text-muted); }
.store-badge strong { font-size: 0.88rem; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(59,130,246,0.1) 100%);
    border-top: 1px solid rgba(124,58,237,0.2);
    border-bottom: 1px solid rgba(124,58,237,0.2);
}
.cta-bg-effects { position: absolute; inset: 0; pointer-events: none; }
.orb-cta-1 { width: 400px; height: 400px; background: #7c3aed; top: -150px; left: -80px; }
.orb-cta-2 { width: 350px; height: 350px; background: #3b82f6; bottom: -100px; right: -80px; }
.cta-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.cta-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: var(--shadow-primary);
}
.cta-content h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-content p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 28px; max-width: 480px; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-stats { display: flex; flex-direction: column; gap: 20px; }
.cta-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    min-width: 200px;
}
.cta-stat > i { font-size: 1.4rem; color: var(--primary-light); }
.cta-stat strong { display: block; font-size: 1.2rem; font-weight: 800; }
.cta-stat span { font-size: 0.78rem; color: var(--text-muted); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 100px 0; text-align: center; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 48px;
    margin-top: 60px;
    text-align: left;
}
.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
}
.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.25);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-light);
    flex-shrink: 0;
}
.contact-item h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.contact-item p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
}
.contact-form-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    resize: none;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(124,58,237,0.05);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: #070810;
    border-top: 1px solid var(--border);
    padding: 72px 0 28px;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; max-width: 320px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}
.social-links a:hover { background: var(--gradient); border-color: transparent; color: #fff; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.footer-contact li i { color: var(--primary-light); margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
}
.footer-bottom-links a {
    color: var(--text-muted);
    transition: var(--transition);
}
.footer-bottom-links a:hover { color: var(--primary-light); }
.footer-bottom-links span { color: var(--border-hover); }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(124,58,237,0.5); }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.4; }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.floating-card { animation: float 4s ease-in-out infinite; }
.fc-2 { animation-delay: 1.5s; }
.phone-badge { animation: float 3.5s ease-in-out infinite; }
.pb-badge-2 { animation-delay: 1s; }
.about-badge { animation: float 4s ease-in-out infinite; }
.ab-2 { animation-delay: 2s; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   MOBILE RESPONSIVE
   ========================================================= */

/* Tablet: 1024px */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-container, .resource-container, .student-container { grid-template-columns: 1fr; gap: 48px; }
    .about-visual { order: -1; }
    .cta-container { grid-template-columns: 1fr; }
    .cta-stats { flex-direction: row; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* Mobile: 768px */
@media (max-width: 768px) {
    :root { --nav-height: 64px; }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        background: rgba(10, 11, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-link { padding: 12px 16px; width: 100%; text-align: center; border-radius: var(--radius-md); }
    .nav-actions { display: none; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero { padding: calc(var(--nav-height) + 40px) 16px 60px; }
    .hero-stats { gap: 16px; padding: 16px 20px; }
    .hero-stat-divider { display: none; }
    .hero-actions { flex-direction: column; align-items: center; }

    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .form-row { grid-template-columns: 1fr; }

    .contact-form-card { padding: 24px 20px; }

    .about-card-stack { padding-bottom: 40px; padding-top: 40px; }
    .ab-1 { right: 0; }
    .ab-2 { left: 0; }

    .cta-stats { flex-direction: column; }
    .cta-stat { min-width: unset; }

    .section-subtitle { margin-bottom: 40px; }

    .hero-visual { display: none; }

    .dashboard-mockup { display: none; }
    .floating-card { display: none; }

    .phone-mockup { width: 220px; }
    .pb-badge-1 { right: -10px; top: 10px; }
    .pb-badge-2 { left: -10px; bottom: 30px; font-size: 0.72rem; padding: 6px 10px; }
}

/* Small Mobile: 480px */
@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 1.6rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .trusted-logos { gap: 24px; }
    .trusted-item span { display: none; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .hero-stat-divider { display: none; }
    .app-store-badges { flex-direction: column; }
    .store-badge { justify-content: center; }
}

/* =========================================================
   PRIVACY POLICY PAGE
   ========================================================= */

/* Hero */
.pp-hero {
    min-height: 340px;
    padding: calc(var(--nav-height) + 64px) 24px 64px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.pp-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.pp-hero-bg .orb-1 { width: 420px; height: 420px; background: #7c3aed; top: -140px; left: -80px; opacity: 0.2; }
.pp-hero-bg .orb-2 { width: 320px; height: 320px; background: #3b82f6; bottom: -80px; right: -60px; opacity: 0.18; }
.pp-hero-content { position: relative; z-index: 1; text-align: center; width: 100%; }
.pp-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.pp-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}
.pp-meta-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.pp-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.pp-meta-chip i { color: var(--primary-light); }

/* Body layout */
.pp-body { padding: 60px 0 100px; }
.pp-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}

/* Table of contents */
.pp-toc { position: sticky; top: calc(var(--nav-height) + 20px); }
.pp-toc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}
.pp-toc-card h3 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pp-toc-card h3 i { color: var(--primary-light); }
.pp-toc-card ul { display: flex; flex-direction: column; gap: 4px; }
.pp-toc-card ul li a {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    line-height: 1.4;
}
.pp-toc-card ul li a:hover {
    color: var(--primary-light);
    background: rgba(124, 58, 237, 0.08);
}
.pp-back-btn { width: 100%; justify-content: center; font-size: 0.85rem; }

/* Sections */
.pp-sections { display: flex; flex-direction: column; gap: 8px; }

.pp-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}
.pp-section:hover { border-color: var(--border-hover); }

.pp-section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px 0;
}
.pp-section-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.35;
}
.pp-section-header h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pp-section-body {
    padding: 16px 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pp-section-body p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
}
.pp-section-body h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 8px;
}

/* Lists */
.pp-list { display: flex; flex-direction: column; gap: 10px; }
.pp-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
.pp-list li i.fa-check-circle { color: var(--success); flex-shrink: 0; margin-top: 3px; }
.pp-list li i.fa-times-circle { color: var(--danger); flex-shrink: 0; margin-top: 3px; }
.pp-list-warning li { color: var(--text-secondary); }

/* Highlight boxes */
.pp-highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}
.pp-highlight-box > i { color: var(--accent-light); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.pp-highlight-box p { font-size: 0.87rem; color: var(--text-secondary); margin: 0; }
.pp-highlight-warning {
    background: rgba(245, 158, 11, 0.07);
    border-color: rgba(245, 158, 11, 0.25);
}
.pp-highlight-warning > i { color: var(--warning); }

/* Mini feature cards */
.pp-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}
.pp-mini-card {
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    transition: var(--transition);
}
.pp-mini-card:hover { border-color: var(--border-hover); }
.pp-mini-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--primary-light);
    margin-bottom: 10px;
}
.pp-mini-card h5 { font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.pp-mini-card p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }

/* Permissions table */
.pp-permissions-table {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 8px;
}
.pp-perm-row {
    display: grid;
    grid-template-columns: 1.4fr 2.5fr 1fr;
    gap: 16px;
    padding: 12px 20px;
    font-size: 0.85rem;
    align-items: center;
    border-bottom: 1px solid var(--border);
}
.pp-perm-row:last-child { border-bottom: none; }
.pp-perm-header {
    background: rgba(124, 58, 237, 0.07);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.pp-perm-row i { margin-right: 6px; color: var(--primary-light); }
.pp-perm-req  { color: var(--danger);  font-weight: 700; font-size: 0.78rem; }
.pp-perm-opt  { color: var(--warning); font-weight: 700; font-size: 0.78rem; }
.pp-perm-yes  { color: var(--warning); font-weight: 700; font-size: 0.78rem; }

/* Contact grid */
.pp-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}
.pp-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
}
.pp-contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(124, 58, 237, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-light);
    flex-shrink: 0;
}
.pp-contact-item h5 { font-size: 0.8rem; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.pp-contact-item p, .pp-contact-item a {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Inline links */
.pp-link {
    color: var(--primary-light);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}
.pp-link:hover { color: var(--accent-light); }

/* Footer note */
.pp-footer-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-top: 8px;
}
.pp-footer-note > i { color: var(--primary-light); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.pp-footer-note p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }

/* Light mode overrides */
[data-theme="light"] .pp-section { background: #fff; }
[data-theme="light"] .pp-toc-card { background: #fff; }
[data-theme="light"] .pp-mini-card { background: #f4f6fb; }
[data-theme="light"] .pp-contact-item { background: #f4f6fb; }
[data-theme="light"] .pp-perm-header { background: rgba(124, 58, 237, 0.05); }
[data-theme="light"] .pp-perm-row { color: var(--text-secondary); }

/* Responsive */
@media (max-width: 1024px) {
    .pp-layout { grid-template-columns: 1fr; }
    .pp-toc { position: static; }
    .pp-toc-card ul { display: grid; grid-template-columns: repeat(2, 1fr); }
    .pp-back-btn { width: auto; }
    .pp-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .pp-hero { padding: calc(var(--nav-height) + 40px) 16px 48px; }
    .pp-section-header { padding: 20px 20px 0; gap: 12px; }
    .pp-section-body { padding: 12px 20px 20px; }
    .pp-section-num { font-size: 1.8rem; }
    .pp-cards-grid { grid-template-columns: 1fr; }
    .pp-contact-grid { grid-template-columns: 1fr; }
    .pp-perm-row { grid-template-columns: 1fr 1fr; }
    .pp-perm-row span:last-child { grid-column: span 2; }
    .pp-perm-header span:last-child { display: none; }
    .pp-toc-card ul { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .pp-meta-row { flex-direction: column; align-items: center; }
    .pp-perm-row { grid-template-columns: 1fr; }
    .pp-perm-row span:last-child { grid-column: auto; }
}
