/* Master SEO Operations Portal V2 — 2026 Redesign */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #f0f0f5;
    --text-secondary: #8b8b9e;
    --text-muted: #5a5a6e;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-2: #8b5cf6;
    --success: #22c55e;
    --success-glow: rgba(34, 197, 94, 0.15);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.15);
    --gradient-accent: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);
    --gradient-cool: linear-gradient(135deg, #06b6d4, #6366f1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.1);
    --sidebar-width: 260px;
    --topbar-height: 0px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode */
[data-theme="light"] {
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-card-hover: rgba(0, 0, 0, 0.04);
    --bg-glass: rgba(255, 255, 255, 0.8);
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.06);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─── LOGIN OVERLAY ──────────────────────── */
.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(20px);
}

.login-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    text-align: center;
    max-width: 420px;
    width: 90%;
    animation: loginSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loginSlide {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-box h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.login-box h2 i {
    color: var(--accent);
}

.login-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.login-box input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: border-color var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.login-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.login-box input::placeholder {
    color: var(--text-muted);
}

.login-box button {
    width: 100%;
    padding: 0.875rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
}

.login-box button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.error-msg {
    color: var(--danger);
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ─── LAYOUT: SIDEBAR + MAIN ──────────────── */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ─── SIDEBAR ──────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-glass);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-brand .brand-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.sidebar-brand .brand-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-nav {
    padding: 1rem 0.75rem;
    flex: 1;
}

.nav-group-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1rem 0.75rem 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 2px;
    position: relative;
}

.nav-link i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.nav-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--accent-glow);
    color: var(--accent);
    font-weight: 600;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
}

.nav-link.restricted {
    color: var(--danger);
}

.nav-link.restricted:hover {
    background: var(--danger-glow);
}

.nav-link.restricted.active {
    background: var(--danger-glow);
    color: var(--danger);
}

.nav-link.restricted.active::before {
    background: var(--danger);
}

.nav-badge {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nav-badge.restricted {
    background: var(--danger-glow);
    color: var(--danger);
}

.nav-badge.new {
    background: var(--success-glow);
    color: var(--success);
}

/* Sidebar footer */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-glass);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-role {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-access {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-logout {
    padding: 0.375rem 0.75rem;
    background: var(--danger-glow);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.btn-logout:hover {
    background: var(--danger);
    color: white;
}

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
}

.theme-toggle-btn:hover {
    background: var(--bg-card-hover);
    color: var(--accent);
}

.theme-toggle-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mobile menu toggle */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.mobile-toggle:hover {
    background: var(--bg-card-hover);
}

/* ─── MAIN CONTENT ────────────────────────── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    width: 100%;
}

/* ─── SECTIONS ─────────────────────────────── */
.section {
    display: none;
    animation: sectionIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.active {
    display: block;
}

@keyframes sectionIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── HERO ─────────────────────────────────── */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 50%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* ─── STAT CARDS ───────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition);
}

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

.stat-card:hover::before {
    opacity: 0.03;
}

.stat-card i {
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.stat-card p {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.restricted-stat {
    background: var(--danger-glow);
    border-color: rgba(239, 68, 68, 0.15);
}

.restricted-stat::before {
    background: var(--gradient-warm);
}

.restricted-stat i,
.restricted-stat h3 {
    color: var(--danger);
}

.restricted-stat p {
    color: var(--danger);
    opacity: 0.8;
}

/* ─── QUICK ACCESS GRID ───────────────────── */
.quick-access {
    margin-top: 3rem;
}

.quick-access h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.access-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
}

.access-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.access-card.restricted {
    border-color: rgba(239, 68, 68, 0.15);
    background: var(--danger-glow);
}

.access-card.restricted:hover {
    border-color: rgba(239, 68, 68, 0.3);
}

.access-card i {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--accent);
    display: block;
}

.access-card.restricted i {
    color: var(--danger);
}

.access-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.access-card p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ─── BADGES ───────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-green {
    background: var(--success-glow);
    color: var(--success);
}

.badge-blue {
    background: var(--accent-glow);
    color: var(--accent);
}

.badge-red {
    background: var(--danger-glow);
    color: var(--danger);
}

/* ─── MODULE CARDS ─────────────────────────── */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

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

.module-header {
    background: var(--gradient-accent);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
}

.module-header i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    opacity: 0.9;
}

.module-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.module-content {
    padding: 1.25rem 1.5rem;
}

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

.sop-list li {
    margin-bottom: 0.25rem;
}

.sop-list a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0.625rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: block;
    font-size: 0.875rem;
}

.sop-list a:hover {
    background: var(--bg-card-hover);
    color: var(--accent);
}

/* ─── TIMELINE ─────────────────────────────── */
.training-timeline {
    margin-top: 3rem;
}

.training-timeline h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.timeline-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    position: relative;
    transition: all var(--transition);
}

.timeline-item:hover {
    border-color: var(--border-hover);
}

.timeline-marker {
    position: absolute;
    top: -12px;
    left: 1.5rem;
    width: 24px;
    height: 24px;
    background: var(--gradient-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
}

.timeline-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.825rem;
}

/* ─── TABS ─────────────────────────────────── */
.strategy-tabs {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.25rem;
    width: fit-content;
}

.tab-btn {
    padding: 0.625rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all var(--transition);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent-glow);
    color: var(--accent);
}

.tab-content {
    padding: 0;
}

/* ─── SCHEMA / INTENT / PROMPT CARDS ──────── */
.schema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.schema-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.schema-card:hover {
    border-color: var(--border-hover);
}

.schema-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.schema-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.schema-card li {
    padding: 0.3rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.schema-card li:before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    margin-right: 0.625rem;
    vertical-align: middle;
}

.intent-framework {
    display: grid;
    gap: 1rem;
}

.intent-layer {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--accent);
    transition: all var(--transition);
}

.intent-layer:hover {
    border-color: var(--border-hover);
    border-left-color: var(--accent);
}

.intent-layer h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.intent-layer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.prompt-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.prompt-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
}

.prompt-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.prompt-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.prompt-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ─── RESTRICTED / INTERNAL ────────────────── */
.restricted-section {
    position: relative;
}

.restricted-notice {
    background: var(--danger-glow);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: var(--text-primary);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 2rem;
}

.restricted-notice i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--danger);
}

.restricted-notice h2 {
    margin-bottom: 0.75rem;
    color: var(--danger);
    font-weight: 700;
}

.restricted-notice p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.internal-content {
    animation: sectionIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.warning-banner {
    background: var(--danger-glow);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: var(--danger);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.warning-banner i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.internal-modules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.internal-card {
    background: var(--bg-card);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.internal-card:hover {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.08);
}

.internal-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    color: var(--text-primary);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.internal-header i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: var(--danger);
}

.internal-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.security-badge {
    background: var(--danger-glow);
    color: var(--danger);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.internal-body {
    padding: 1.25rem 1.5rem;
}

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

.secure-list li {
    margin-bottom: 0.25rem;
}

.secure-list a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0.625rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: block;
    font-size: 0.875rem;
}

.secure-list a:hover {
    background: var(--danger-glow);
    color: var(--danger);
}

.security-protocols {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--danger);
}

.security-protocols h2 {
    color: var(--danger);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.security-protocols ul {
    list-style: none;
}

.security-protocols li {
    padding: 0.375rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-protocols li:before {
    content: "\f023";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--danger);
    opacity: 0.6;
}

/* ─── TOOLS SECTION ────────────────────────── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.tool-category {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.tool-category:hover {
    border-color: var(--border-hover);
}

.tool-category h3 {
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-glass);
}

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

.tool-list li {
    margin-bottom: 0.375rem;
}

.tool-list a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0.625rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.tool-list a:hover {
    background: var(--accent-glow);
    color: var(--accent);
    border-color: rgba(99, 102, 241, 0.1);
}

.tool-list i {
    margin-right: 0.625rem;
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
}

/* Resource center */
.resource-center {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.resource-center h2 {
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.quick-link {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.quick-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.quick-link i {
    font-size: 1.5rem;
}

.quick-link span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* ─── BUTTONS ──────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition);
    cursor: pointer;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    opacity: 0.9;
}

/* ─── SECTION HEADINGS ─────────────────────── */
.section > h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section > h1 i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    text-align: left;
}

/* ─── FOOTER ───────────────────────────────── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    text-align: center;
    padding: 1.5rem 2rem;
    margin-top: auto;
}

.footer-content p {
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-security {
    color: var(--accent) !important;
    font-size: 0.7rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── RESPONSIVE ───────────────────────────── */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    .main-content {
        margin-left: 0;
    }

    .container {
        padding: 1.5rem 1rem;
        padding-top: 4rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .access-grid,
    .module-grid,
    .internal-modules,
    .schema-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }
}

/* ─── SCROLLBAR ────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ─── UTILITIES ────────────────────────────── */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Backdrop for mobile sidebar */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    backdrop-filter: blur(4px);
}

.sidebar-backdrop.active {
    display: block;
}

/* ─── ANIMATION: SHAKE ─────────────────────── */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}
