/* ============================================================
   NatsuCore - Premium Dark Theme
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* =================== CSS VARIABLES =================== */
:root {
    --primary: #00E091;
    --primary-hover: #00c47d;
    --primary-glow: rgba(0, 224, 145, 0.25);
    --secondary: #4F9CF9;
    --accent: #FF6B9D;
    --bg-dark: #050a15;
    --bg-surface: #0c1322;
    --bg-card: #111b2e;
    --bg-hover: #192338;
    --bg-input: #0a1020;
    --text-primary: #f0f4f8;
    --text-secondary: #8899a6;
    --text-muted: #556677;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(0,224,145,0.3);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================== RESET =================== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* =================== SCROLLBAR =================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* =================== PAGE LOADER =================== */
.page-loader {
    position: fixed; inset:0; z-index: 99999;
    background: var(--bg-dark);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
.page-loader.loaded { opacity:0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-text { font-family: 'Outfit'; font-size: 2rem; font-weight: 800; margin-bottom: 1.5rem; }
.loader-text span { color: var(--primary); }
.loader-bar { width: 200px; height: 3px; background: var(--bg-card); border-radius: 3px; overflow: hidden; }
.loader-progress {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    animation: loaderAnim 1.2s ease forwards;
}
@keyframes loaderAnim { to { width: 100%; } }

/* =================== CURSOR GLOW =================== */
.cursor-glow {
    position: fixed; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,224,145,0.06), transparent 70%);
    pointer-events: none; z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.3s ease, top 0.3s ease;
    will-change: left, top;
}
@media (max-width: 768px) { .cursor-glow { display: none; } }

/* =================== LAYOUT =================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 800px; }

/* =================== TAGS =================== */
.section-tag {
    display: inline-block;
    font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 1rem;
}
.section-tag.center { display: block; text-align: center; }

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-cta { text-align: center; margin-top: 3rem; }

/* =================== NAVBAR =================== */
.navbar {
    position: fixed; top:0; width: 100%;
    background: rgba(5,10,21,0.7);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
    background: rgba(5,10,21,0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.navbar .container {
    display: flex; justify-content: space-between; align-items: center;
    height: 72px;
}
.logo {
    font-family: 'Outfit'; font-size: 1.4rem; font-weight: 800;
    display: flex; align-items: center; gap: 0.5rem;
}
.logo span { color: var(--primary); }
.logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; color: var(--bg-dark);
}
.nav-menu { display: flex; gap: 1.5rem; align-items: center; }
.nav-link {
    color: var(--text-secondary); font-weight: 500; font-size: 0.95rem;
    position: relative; padding: 0.3rem 0;
    transition: color var(--transition);
}
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }

.btn-nav-login {
    background: var(--primary); color: var(--bg-dark) !important;
    padding: 0.5rem 1.4rem; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 0.9rem;
    transition: all var(--transition);
}
.btn-nav-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.btn-logout { opacity: 0.6; }
.btn-logout:hover { opacity: 1; color: var(--accent) !important; }

.hamburger {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    background: none; border: none; padding: 0.5rem;
}
.hamburger span {
    width: 24px; height: 2px; background: var(--text-primary);
    transition: all var(--transition); border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* =================== BUTTONS =================== */
.btn {
    padding: 0.85rem 1.8rem; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 0.95rem;
    cursor: pointer; border: none;
    transition: all var(--transition);
    display: inline-flex; align-items: center; gap: 0.5rem;
    text-decoration: none; position: relative; overflow: hidden;
}
.btn-primary { background: var(--primary); color: var(--bg-dark); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-glass {
    background: rgba(255,255,255,0.05); color: var(--text-primary);
    border: 1px solid var(--border); backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255,255,255,0.1); border-color: var(--primary); transform: translateY(-2px); }
.btn-glow { box-shadow: var(--shadow-glow); }
.btn-glow:hover { box-shadow: 0 0 60px var(--primary-glow); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-arrow {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(0,224,145,0.1); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; transition: all var(--transition);
}
.btn-arrow:hover { background: var(--primary); color: var(--bg-dark); }

.back-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--text-secondary); font-weight: 500;
    margin-bottom: 2rem; transition: color var(--transition);
}
.back-link:hover { color: var(--primary); }

/* =================== HERO =================== */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    padding: 120px 0 80px;
}
.hero-particles {
    position: absolute; inset:0;
    z-index: 0; pointer-events: none;
}
.hero .container { position: relative; z-index:1; text-align: center; }
.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0,224,145,0.08);
    border: 1px solid rgba(0,224,145,0.2);
    border-radius: 50px;
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}
.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}
.hero-subtitle {
    font-size: 1.1rem; color: var(--text-secondary);
    max-width: 650px; margin: 0 auto 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.15s backwards;
}
.hero-buttons {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}
.hero-scroll-hint {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: var(--text-muted); font-size: 0.8rem;
    animation: bounce 2s infinite 2s;
}
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* =================== STATS =================== */
.stats-section { padding: 5rem 0; background: var(--bg-surface); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-item { text-align: center; padding: 2rem 1rem; }
.stat-icon {
    width: 50px; height: 50px; margin: 0 auto 1rem;
    background: rgba(0,224,145,0.1); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.2rem;
}
.stat-number {
    font-family: 'Outfit'; font-size: 2.8rem; font-weight: 900;
    color: var(--primary); margin-bottom: 0.25rem;
}
.stat-label { color: var(--text-secondary); font-size: 0.9rem; }

/* =================== ABOUT PREVIEW =================== */
.about-preview { padding: 7rem 0; }
.about-preview-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
    align-items: center;
}
.img-frame { position: relative; display: inline-block; }
.img-frame img {
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition);
}
.img-frame:hover img { transform: scale(1.02); }
.img-decoration {
    position: absolute; top: -15px; right: -15px;
    width: 100px; height: 100px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    opacity: 0.3; z-index: -1;
}
.about-preview-text h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.about-preview-text p { color: var(--text-secondary); margin-bottom: 1.2rem; line-height: 1.8; }

/* =================== EBOOK CARDS =================== */
.ebook-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.ebook-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
}
.ebook-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}
.ebook-card-img {
    position: relative; overflow: hidden;
    height: 280px;
}
.ebook-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.ebook-card:hover .ebook-card-img img { transform: scale(1.08); }
.ebook-card-overlay {
    position: absolute; inset:0;
    background: rgba(5,10,21,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity var(--transition);
}
.ebook-card:hover .ebook-card-overlay { opacity:1; }
.ebook-card-body { padding: 1.5rem; }
.ebook-card-body h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.ebook-card-body p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.ebook-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 1rem; border-top: 1px solid var(--border);
}
.ebook-price { font-family: 'Outfit'; font-size: 1.5rem; font-weight: 800; color: var(--primary); }

/* =================== VALUES =================== */
.values-section { padding: 7rem 0; background: var(--bg-surface); }
.values-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.value-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative; overflow: hidden;
}
.value-card::before {
    content: ''; position: absolute; top:0; left:0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--transition);
}
.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}
.value-card:hover::before { transform: scaleX(1); }
.value-icon {
    width: 50px; height: 50px;
    background: rgba(0,224,145,0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.3rem;
    margin-bottom: 1.2rem;
}
.value-card h3 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.value-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* =================== BLOG CARDS =================== */
.blog-section, .latest-blog { padding: 5rem 0; }
.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 2rem;
}
.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
}
.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
}
.blog-card-img { position: relative; height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-category {
    position: absolute; top: 1rem; left: 1rem;
    background: var(--primary); color: var(--bg-dark);
    padding: 0.3rem 0.8rem; border-radius: 6px;
    font-size: 0.75rem; font-weight: 700;
}
.blog-card-body { padding: 1.5rem; }
.blog-meta {
    display: flex; gap: 1.2rem;
    color: var(--text-muted); font-size: 0.8rem;
    margin-bottom: 0.8rem;
}
.blog-meta i { margin-right: 0.3rem; }
.blog-card-body h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.blog-card-body h3 a { transition: color var(--transition); }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-body p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.blog-read-more {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--primary); font-weight: 600; font-size: 0.9rem;
    transition: gap var(--transition);
}
.blog-read-more:hover { gap: 0.8rem; }

/* =================== CTA =================== */
.cta-section { padding: 5rem 0; }
.cta-box {
    background: linear-gradient(135deg, rgba(0,224,145,0.05), rgba(79,156,249,0.05));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(0,224,145,0.08), transparent 50%);
    pointer-events: none;
}
.cta-content { position: relative; z-index:1; }
.cta-content h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-content p { color: var(--text-secondary); max-width: 600px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =================== PAGE HERO =================== */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,224,145,0.06), transparent 60%);
}
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 0.8rem; }
.page-hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* =================== EBOOK DETAIL =================== */
.ebook-detail { padding: 120px 0 60px; }
.ebook-detail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: start;
}
.ebook-cover-wrap {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.ebook-cover-wrap img { width: 100%; display: block; }
.ebook-cover-shine {
    position: absolute; inset:0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 50%);
    pointer-events: none;
}
.ebook-detail-info h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.ebook-desc { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.ebook-preview-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.ebook-preview-box h4 { color: var(--primary); margin-bottom: 0.7rem; }
.ebook-preview-box p { color: var(--text-secondary); font-size: 0.9rem; }
.ebook-features {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem;
    margin-bottom: 2rem;
}
.feature-item {
    display: flex; align-items: center; gap: 0.6rem;
    color: var(--text-secondary); font-size: 0.9rem;
}
.feature-item i { color: var(--primary); }
.ebook-buy-box {
    display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
    padding: 1.5rem 0; border-top: 1px solid var(--border);
}
.price-label { color: var(--text-muted); font-size: 0.85rem; display: block; }
.price-amount { font-family: 'Outfit'; font-size: 2.5rem; font-weight: 900; color: var(--primary); }

/* =================== BLOG POST =================== */
.blog-post-page { padding: 120px 0 60px; }
.post-cover-wrap {
    border-radius: var(--radius-lg); overflow: hidden;
    margin-bottom: 2rem; max-height: 450px;
}
.post-cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.post-header { margin-bottom: 2.5rem; }
.post-meta {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    color: var(--text-muted); font-size: 0.85rem;
    margin-bottom: 1rem;
}
.post-meta i { margin-right: 0.3rem; }
.post-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.post-content {
    font-size: 1.05rem; line-height: 1.9;
    color: var(--text-secondary);
}
.post-content h2 { color: var(--text-primary); font-size: 1.8rem; margin: 2.5rem 0 1rem; }
.post-content h3 { color: var(--text-primary); font-size: 1.4rem; margin: 2rem 0 0.8rem; }
.post-content p { margin-bottom: 1.2rem; }
.post-content strong { color: var(--text-primary); }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 1rem 1.5rem; margin: 1.5rem 0;
    background: var(--bg-card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.post-content li { margin-bottom: 0.4rem; }

.post-share {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: 2rem 0; margin-top: 3rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary); font-weight: 600;
}
.share-buttons { display: flex; gap: 0.6rem; }
.share-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-secondary);
    cursor: pointer; transition: all var(--transition);
    font-size: 0.9rem;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* =================== AUTH =================== */
.auth-section { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 60px; }
.auth-box {
    max-width: 440px; margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-logo {
    width: 56px; height: 56px; margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--bg-dark);
}
.auth-header h1 { font-size: 2rem; margin-bottom: 0.3rem; }
.auth-header p { color: var(--text-muted); font-size: 0.9rem; }
.auth-form .form-group label i { margin-right: 0.3rem; }
.password-wrap { position: relative; }
.password-toggle {
    position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    padding: 0.3rem; font-size: 1rem;
}
.auth-divider {
    text-align: center; margin: 1.5rem 0;
    position: relative;
}
.auth-divider::before {
    content: ''; position: absolute; top: 50%; left:0; right:0;
    height: 1px; background: var(--border);
}
.auth-divider span {
    position: relative; background: var(--bg-card);
    padding: 0 1rem; color: var(--text-muted); font-size: 0.85rem;
}
.auth-toggle { text-align: center; }
.auth-toggle a { color: var(--text-secondary); transition: color var(--transition); }
.auth-toggle a:hover { color: var(--primary); }
.auth-toggle strong { color: var(--primary); }

/* =================== FORMS =================== */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block; margin-bottom: 0.4rem;
    font-weight: 600; font-size: 0.9rem;
    color: var(--text-secondary);
}
.form-control {
    width: 100%; padding: 0.85rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem; font-family: inherit;
    transition: all var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,224,145,0.1);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-control small, .form-group small { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.3rem; display: block; }

/* =================== ALERTS =================== */
.alert {
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.2rem;
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.9rem; font-weight: 500;
    animation: slideDown 0.3s ease;
}
.alert-success { background: rgba(0,224,145,0.08); border: 1px solid rgba(0,224,145,0.3); color: var(--primary); }
.alert-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; }

/* =================== ABOUT FULL =================== */
.about-full { padding: 4rem 0; }
.about-intro-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center;
}
.about-intro-text .lead { font-size: 1.2rem; color: var(--text-primary); font-weight: 600; margin-bottom: 1.2rem; }
.about-intro-text p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.8; }

/* =================== TIMELINE =================== */
.timeline-section { padding: 5rem 0; background: var(--bg-surface); }
.timeline { max-width: 700px; margin: 0 auto; position: relative; }
.timeline-line {
    position: absolute; left: 24px; top: 0; bottom: 0;
    width: 2px; background: var(--border);
}
.timeline-item {
    display: flex; gap: 2rem; margin-bottom: 2.5rem;
    position: relative; padding-left: 60px;
}
.timeline-dot {
    position: absolute; left: 16px; top: 0.5rem;
    width: 18px; height: 18px;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    border-radius: 50%; z-index:1;
}
.timeline-year {
    font-family: 'Outfit'; font-size: 1.3rem; font-weight: 800;
    color: var(--primary); min-width: 60px;
}
.timeline-content {
    background: var(--bg-card);
    padding: 1.5rem; border-radius: var(--radius);
    border: 1px solid var(--border);
    flex:1;
    transition: all var(--transition);
}
.timeline-content:hover { border-color: var(--border-hover); transform: translateX(5px); }
.timeline-content h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.timeline-content p { color: var(--text-secondary); font-size: 0.9rem; }

/* =================== LIBRARY =================== */
.library-section { padding: 3rem 0; }
.library-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.library-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
}
.library-card:hover { border-color: var(--border-hover); transform: translateY(-5px); }
.library-card-img { height: 200px; overflow: hidden; }
.library-card-img img { width: 100%; height: 100%; object-fit: cover; }
.library-card-body { padding: 1.5rem; }
.library-card-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.library-date { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; }

/* =================== EMPTY STATE =================== */
.empty-state {
    text-align: center; padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-state i { font-size: 4rem; margin-bottom: 1.5rem; opacity: 0.3; }
.empty-state h3 { color: var(--text-primary); margin-bottom: 0.5rem; }
.empty-state p { margin-bottom: 1.5rem; }

/* =================== EBOOK READER =================== */
.ebook-reader-page { padding: 100px 0 60px; }
.reader-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.reader-controls { display: flex; align-items: center; gap: 0.5rem; }
.btn-tool {
    width: 36px; height: 36px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); border-radius: var(--radius-sm);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.btn-tool:hover { border-color: var(--primary); color: var(--primary); }
.reader-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    min-height: 60vh;
}
.reader-box.reader-light {
    background: #f5f5f0; color: #1a1a1a;
    border-color: #ddd;
}
.reader-box.reader-light .reader-watermark { color: rgba(0,0,0,0.03); }
.reader-watermark {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 2.5rem; font-weight: 800;
    color: rgba(255,255,255,0.02);
    white-space: nowrap; pointer-events: none;
    z-index:0;
}
.reader-title { font-size: 2rem; margin-bottom: 2rem; position: relative; z-index:1; }
.reader-body { position: relative; z-index:1; line-height: 1.9; color: var(--text-secondary); }
.reader-box.reader-light .reader-body { color: #333; }
.reader-body h2 { color: var(--text-primary); margin: 2rem 0 1rem; }
.reader-box.reader-light .reader-body h2 { color: #1a1a1a; }
.reader-body p { margin-bottom: 1rem; }
.reader-footer-note {
    text-align: center; margin-top: 2rem;
    color: var(--text-muted); font-size: 0.8rem;
}
.reading-progress {
    position: fixed; top: 72px; left:0;
    height: 3px; width: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 1001;
    transition: width 0.1s;
}

/* =================== ADMIN LAYOUT =================== */
.admin-layout { display: flex; min-height: 100vh; padding-top: 72px; }
.admin-sidebar {
    width: 250px; background: var(--bg-card);
    border-right: 1px solid var(--border);
    position: sticky; top: 72px; height: calc(100vh - 72px);
    overflow-y: auto; flex-shrink: 0;
}
.sidebar-brand {
    padding: 1.5rem; border-bottom: 1px solid var(--border);
}
.sidebar-brand .logo { font-size: 1.2rem; }
.sidebar-brand small { color: var(--text-muted); font-size: 0.75rem; display: block; margin-top: 0.3rem; }
.sidebar-nav { padding: 1rem 0; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.8rem 1.5rem;
    color: var(--text-secondary); font-weight: 500; font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--bg-hover); color: var(--primary);
    border-left-color: var(--primary);
}
.sidebar-nav a i { width: 18px; text-align: center; }
.sidebar-divider { height: 1px; background: var(--border); margin: 0.5rem 0; }
.sidebar-logout:hover { color: var(--accent) !important; }

.admin-main { flex:1; padding: 2rem; min-width: 0; }
.admin-topbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.admin-topbar h1 { font-size: 1.8rem; display: flex; align-items: center; gap: 0.7rem; }
.admin-topbar h1 i { color: var(--primary); font-size: 1.4rem; }
.admin-user { color: var(--text-muted); font-size: 0.9rem; }

/* Admin Stats */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 2rem; }
.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex; align-items: center; gap: 1rem;
    transition: all var(--transition);
}
.admin-stat-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.stat-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.stat-green .stat-card-icon { background: rgba(0,224,145,0.1); color: var(--primary); }
.stat-blue .stat-card-icon { background: rgba(79,156,249,0.1); color: var(--secondary); }
.stat-purple .stat-card-icon { background: rgba(168,85,247,0.1); color: #a855f7; }
.stat-orange .stat-card-icon { background: rgba(251,146,60,0.1); color: #fb923c; }
.stat-card-value { font-family: 'Outfit'; font-size: 1.5rem; font-weight: 800; display: block; }
.stat-card-label { color: var(--text-muted); font-size: 0.8rem; }

/* Admin Card */
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.admin-card-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.admin-card-header h2 { font-size: 1.1rem; }
.admin-empty { padding: 3rem; text-align: center; color: var(--text-muted); }

/* Admin Table */
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
    padding: 0.8rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.admin-table thead { background: var(--bg-hover); }
.admin-table th { font-weight: 600; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table tbody tr { transition: background var(--transition); }
.admin-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.table-thumb { width: 50px; height: 65px; object-fit: cover; border-radius: 6px; }
.text-green { color: var(--primary) !important; font-weight: 700; }
.text-muted { color: var(--text-muted); }

.user-cell strong { display: block; }
.user-cell small { color: var(--text-muted); }

.actions-cell { white-space: nowrap; }
.btn-action {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px; border: 1px solid var(--border);
    background: none; color: var(--text-secondary);
    cursor: pointer; transition: all var(--transition);
    margin-right: 0.3rem;
}
.btn-edit:hover { color: var(--secondary); border-color: var(--secondary); }
.btn-view:hover { color: var(--primary); border-color: var(--primary); }
.btn-delete:hover { color: #ef4444; border-color: #ef4444; }

.code-tag {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem; padding: 0.15rem 0.5rem;
    background: var(--bg-dark); border-radius: 4px;
    color: var(--text-muted);
}

/* Badges */
.badge {
    padding: 0.2rem 0.7rem; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700;
}
.badge-completed { background: rgba(0,224,145,0.15); color: var(--primary); }
.badge-pending { background: rgba(251,191,36,0.15); color: #fbbf24; }
.badge-failed { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-admin { background: rgba(168,85,247,0.15); color: #a855f7; }

/* Admin Form */
.admin-form { padding: 1.5rem; }
.form-row { display: flex; gap: 1.5rem; }
.form-col-8 { flex: 2; }
.form-col-4 { flex: 1; }
.form-actions { display: flex; gap: 1rem; padding-top: 1rem; }
.editor-toolbar { display: flex; gap: 0.3rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.btn-editor {
    padding: 0.4rem 0.6rem; background: var(--bg-dark);
    border: 1px solid var(--border); border-radius: 4px;
    color: var(--text-secondary); cursor: pointer; font-size: 0.85rem;
    transition: all var(--transition);
}
.btn-editor:hover { background: var(--bg-hover); color: var(--primary); border-color: var(--primary); }
.editor-area { font-family: 'Courier New', monospace; font-size: 0.9rem; line-height: 1.6; }
.checkbox-wrap {
    display: flex; align-items: center; gap: 0.6rem;
    cursor: pointer; font-weight: 500;
}
.checkbox-wrap input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--primary);
}

/* =================== FOOTER =================== */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem; margin-top: 4rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.8rem; }
.footer-brand .logo { font-size: 1.2rem; }
.footer-col h4 { margin-bottom: 1rem; color: var(--primary); font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-col > p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.social-links { display: flex; gap: 0.6rem; margin-top: 1rem; }
.social-links a {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text-muted);
    transition: all var(--transition); font-size: 0.9rem;
}
.social-links a:hover { background: var(--primary); color: var(--bg-dark); border-color: var(--primary); transform: translateY(-2px); }

.newsletter-input-wrap {
    display: flex; background: var(--bg-input);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    overflow: hidden;
}
.newsletter-input-wrap input {
    flex:1; padding: 0.7rem 1rem;
    background: transparent; border: none; color: var(--text-primary);
    font-size: 0.9rem; outline: none;
}
.newsletter-input-wrap button {
    padding: 0.7rem 1rem;
    background: var(--primary); color: var(--bg-dark);
    border: none; cursor: pointer;
    transition: background var(--transition);
}
.newsletter-input-wrap button:hover { background: var(--primary-hover); }

.footer-bottom {
    text-align: center; padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.85rem;
}

/* =================== TOAST =================== */
.toast-notification {
    position: fixed; top: 90px; right: 20px;
    background: var(--primary); color: var(--bg-dark);
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 0.6rem;
    font-weight: 600; font-size: 0.9rem;
    z-index: 9999;
    animation: toastIn 0.3s ease;
}
.toast-notification.toast-error { background: #ef4444; color: #fff; }
@keyframes toastIn { from { transform: translateX(100%); opacity:0; } to { transform: translateX(0); opacity:1; } }
@keyframes toastOut { from { transform: translateX(0); opacity:1; } to { transform: translateX(100%); opacity:0; } }

/* =================== ANIMATIONS =================== */
@keyframes fadeInUp { from { opacity:0; transform: translateY(25px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity:0; transform: translateY(-25px); } to { opacity:1; transform: translateY(0); } }
@keyframes slideDown { from { opacity:0; transform: translateY(-15px); } to { opacity:1; transform: translateY(0); } }

.reveal-up, .reveal-left, .reveal-right {
    opacity: 0; transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up.revealed, .reveal-left.revealed, .reveal-right.revealed {
    opacity: 1; transform: translate(0);
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .ebook-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-preview-grid, .about-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 72px; left: -100%;
        width: 100%; height: calc(100vh - 72px);
        background: rgba(5,10,21,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column; padding: 2rem;
        transition: left var(--transition);
        gap: 0.5rem;
    }
    .nav-menu.active { left:0; }
    .nav-link { padding: 0.8rem 0; font-size: 1.1rem; }
    .hamburger { display: flex; }

    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .ebook-grid, .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .ebook-features { grid-template-columns: 1fr; }

    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: relative; top: auto; }
    .sidebar-nav { display: flex; flex-wrap: wrap; padding: 0.5rem; }
    .sidebar-nav a { padding: 0.6rem 1rem; border-left: none; border-radius: 6px; font-size: 0.8rem; }
    .admin-main { padding: 1rem; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .admin-topbar h1 { font-size: 1.3rem; }
    .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .container { padding: 0 1rem; }
    .auth-box { padding: 1.5rem; margin: 0 0.5rem; }
    .reader-box { padding: 1.5rem; }
    .cta-box { padding: 2.5rem 1.5rem; }
}

/* =================== PRINT =================== */
@media print {
    .navbar, .footer, .back-to-top, .cursor-glow, .page-loader, .hero-particles { display: none !important; }
}
