/* ============================================
   positionOS Test — Design System
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    background: #fff;
    font-size: 0.95rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Nav
   ============================================ */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.logo-position {
    color: #111;
}

.logo-os {
    color: #ef4444;
}

.logo-product {
    font-weight: 400;
    color: #111;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    transition: color 0.15s;
}

.nav-link:hover {
    color: #111;
}

.nav-cta {
    background: #111;
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.15s;
    border: none;
    cursor: pointer;
}

.nav-cta:hover {
    background: #333;
}

/* ============================================
   Hero
   ============================================ */
.hero-wrap {
    background: url('/static/hero-bg.png') center 30% / cover no-repeat;
    position: relative;
}

.hero-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero {
    text-align: center;
    padding: 100px 24px 72px;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.65;
    max-width: 780px;
    margin: 0 auto 36px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-trust {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 28px;
    letter-spacing: 0.2px;
}

/* Hero-specifikus gomb felülírások */
.hero-wrap .hero-btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}

.hero-wrap .hero-btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.hero-btn-primary:hover {
    background: #dc2626;
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    background: #fff;
    color: #111;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.hero-btn-secondary:hover {
    border-color: #ccc;
    background: #fafafa;
}

/* ============================================
   Sections
   ============================================ */
.section-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    text-align: center;
    margin-bottom: 40px;
}

/* How it works */
.how-it-works {
    padding: 60px 0 80px;
    background: #f5f5f7;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fee2e2;
    color: #ef4444;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

/* Features */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fee2e2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #111;
    color: #888;
    padding: 48px 32px 32px;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
}

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

.footer-brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.footer-brand-name .logo-position { color: #fff; }
.footer-brand-name .logo-os { color: #ef4444; }
.footer-brand-name .logo-product { font-weight: 400; color: #fff; }

.footer-brand p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #666;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.footer-col a {
    display: block;
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 0;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 900px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #555;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

/* ============================================
   Form Card (shared)
   ============================================ */
.form-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.form-card-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.15s;
}

.form-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.form-group {
    flex: 1;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #1a1a1a;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.15s;
    background: #fff;
}

.form-textarea:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea::placeholder {
    color: #999;
}

.form-field {
    margin-bottom: 16px;
}

.form-hint {
    display: block;
    font-size: 0.78rem;
    color: #999;
    margin-top: 4px;
}

/* ============================================
   Spinner
   ============================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top-color: #ef4444;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Auth pages
   ============================================ */
.auth-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 64px - 80px);
    padding: 40px 24px;
    background: #fafafa;
}
.auth-container {
    width: 100%;
    max-width: 420px;
}
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.8px;
}
.auth-logo .logo-os { color: #ef4444; }
.auth-slogan {
    font-size: 0.95rem;
    color: #888;
    margin-top: 6px;
    letter-spacing: -0.2px;
}
.auth-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.auth-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 24px;
}
.auth-card .form-group { margin-bottom: 16px; }
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"].pw-input,
.auth-card input[type="text"]:not(.pw-input) {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #111;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus,
.auth-card input[type="text"].pw-input:focus,
.auth-card input[type="text"]:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}
.pw-wrap {
    position: relative;
}
.pw-wrap input {
    padding-right: 44px;
}
.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #888;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
}
.pw-toggle:hover {
    color: #333;
}
.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #111;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 8px;
    font-family: inherit;
}
.submit-btn:hover { background: #333; }
.auth-card .submit-btn { margin-top: 8px; }
.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: #888;
}
.auth-link a {
    color: #ef4444;
    font-weight: 600;
}
.auth-link a:hover { text-decoration: underline; }
.auth-footer-note {
    text-align: center;
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 16px;
    line-height: 1.5;
}

/* Google OAuth */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #aaa;
    font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}
.auth-divider span {
    padding: 0 12px;
}
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    font-family: inherit;
}
.google-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Password rules */
.pw-rules {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pw-rules li {
    font-size: 0.8rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}
.pw-rules .pw-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ddd;
    flex-shrink: 0;
    transition: background 0.15s;
}
.pw-rules li.pass { color: #16a34a; }
.pw-rules li.pass .pw-dot { background: #22c55e; }
.pw-rules li.fail { color: #ef4444; }
.pw-rules li.fail .pw-dot { background: #ef4444; }

.form-group { margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    font-weight: 500;
}

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

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #bbf7d0;
}

/* ============================================
   Dashboard Layout
   ============================================ */
.dash-body {
    background: #f5f5f7;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.card-desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 0;
}

.status-ok { color: #059669; }
.status-warn { color: #d97706; }

.empty-state {
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
    padding: 12px 0;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.15s;
}

.btn-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.btn-danger:hover { background: #fee2e2; }

/* Dashboard Layout — Nav + Sidebar + Main */
.dash-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
}

.dash-nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #374151;
    line-height: 1;
}

/* Nav right: credits + avatar */
.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-credits {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: #fef2f2;
    color: #ef4444;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 20px;
    transition: background 0.15s;
}

.nav-credits:hover {
    background: #fee2e2;
}

.cr-star {
    color: #f59e0b;
}

/* Avatar */
.nav-profile-wrap {
    position: relative;
}

.nav-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: box-shadow 0.15s;
    font-size: 0.8rem;
    font-weight: 700;
    color: #9ca3af;
}

.nav-avatar:hover {
    box-shadow: 0 0 0 2px #ef4444;
}

.nav-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Profile dropdown */
.nav-profile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 6px 0;
    z-index: 200;
}

.nav-profile-menu.open {
    display: block;
}

.nav-profile-name {
    padding: 10px 16px 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #111;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
}

.nav-profile-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    transition: background 0.12s;
}

.nav-profile-item:hover {
    background: #f3f4f6;
}

.nav-profile-logout {
    color: #dc2626;
}

.nav-profile-logout:hover {
    background: #fef2f2;
}

/* Layout container */
.dash-layout {
    display: flex;
    padding-top: 64px;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: #fff;
    border-right: 1px solid #eee;
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #666;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-item:hover {
    color: #111;
    background: #f9f9f9;
}

.sidebar-item.active {
    color: #ef4444;
    background: #fef2f2;
    border-left-color: #ef4444;
    font-weight: 600;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Sidebar icon colors */
.si-red svg { stroke: #ef4444; }
.si-green svg { stroke: #10b981; }
.si-indigo svg { stroke: #6366f1; }
.si-yellow svg { stroke: #eab308; }
.si-gray svg { stroke: #6b7280; }
.si-blue svg { stroke: #3b82f6; }

.sidebar-item.active .sidebar-icon svg {
    stroke: #ef4444;
}

.sidebar-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 20px;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 149;
}

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

/* Main content area */
.dash-main {
    margin-left: 220px;
    flex: 1;
    padding: 32px 40px 60px;
    min-height: calc(100vh - 64px);
}

.dash-content {
    max-width: 800px;
    margin: 0 auto;
}

.dash-header {
    margin-bottom: 32px;
}

.dash-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.dash-subtitle {
    font-size: 0.9rem;
    color: #888;
    font-weight: 400;
    margin-bottom: 4px;
}

/* ============================================
   Credits Page
   ============================================ */
.credits-balance-card {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1.5px solid #fca5a5;
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
}

.credits-balance-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #991b1b;
    margin-bottom: 4px;
}

.credits-balance-num {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ef4444;
    line-height: 1;
}

.credits-balance-unit {
    font-size: 1rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 12px;
}

.credits-balance-info {
    font-size: 0.8rem;
    color: #991b1b;
    opacity: 0.7;
}

.credits-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.credit-pack {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.credit-pack:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.credit-pack-popular {
    border-color: #ef4444;
    border-width: 2px;
}

.credit-pack-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credit-pack-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.credit-pack-credits {
    font-size: 2rem;
    font-weight: 900;
    color: #111;
    line-height: 1.2;
}

.credit-pack-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ef4444;
    margin: 8px 0 4px;
}

.credit-pack-per {
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 16px;
}

.credit-pack-btn {
    display: inline-block;
    width: 100%;
    padding: 10px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.credit-pack-btn:hover {
    background: #333;
}

.credit-pack-popular .credit-pack-btn {
    background: #ef4444;
}

.credit-pack-popular .credit-pack-btn:hover {
    background: #dc2626;
}

/* Credit transactions */
.credit-tx-list {
    display: flex;
    flex-direction: column;
}

.credit-tx-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.credit-tx-item:last-child {
    border-bottom: none;
}

.credit-tx-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.credit-tx-desc {
    font-size: 0.85rem;
    color: #333;
}

.credit-tx-date {
    font-size: 0.75rem;
    color: #aaa;
}

.credit-tx-amount {
    font-size: 1rem;
    font-weight: 700;
    min-width: 50px;
    text-align: right;
}

.credit-tx-plus {
    color: #059669;
}

.credit-tx-minus {
    color: #ef4444;
}

/* Credits mini display (dashboard) */
.credits-mini {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 8px;
}

.credits-mini-num {
    font-weight: 800;
    color: #ef4444;
    font-size: 1.1rem;
}

/* ============================================
   Gate Page (Site Password)
   ============================================ */
.gate-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    padding: 24px;
}

.gate-card {
    max-width: 380px;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.gate-logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
}

.gate-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 24px;
}

.gate-submit {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    cursor: pointer;
}

/* ============================================
   Cross-section (homepage ecosystem)
   ============================================ */
.cross-section {
    padding: 40px 32px;
    background: #f5f5f7;
}

.cross-inner {
    max-width: 900px;
    margin: 0 auto;
}

.cross-trio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.cross-card {
    flex: 0 1 260px;
    padding: 32px 28px;
    border-radius: 14px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cross-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.cross-card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.cross-card-cv .cross-card-badge {
    background: #dbeafe;
    color: #1e40af;
}

.cross-card-interview .cross-card-badge {
    background: #ffedd5;
    color: #9a3412;
}

.cross-card-test .cross-card-badge {
    background: #fee2e2;
    color: #991b1b;
}

.cross-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
}

.cross-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

.cross-card-action {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
}

.cross-card-current {
    border-color: #ef4444;
    border-width: 2px;
    cursor: default;
}

.cross-card-current-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ef4444;
}

.cross-connector {
    flex-shrink: 0;
    padding: 0 8px;
}

/* ============================================
   History List (compact rows)
   ============================================ */
.history-list {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s;
}

.history-row:last-child { border-bottom: none; }
.history-row:hover { background: #fafafa; }

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

.history-row-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-row-meta {
    font-size: 0.73rem;
    color: #999;
    display: block;
}

.history-row-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Score ring */
.history-score-ring {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.history-score-svg {
    width: 36px;
    height: 36px;
}

.history-score-arc {
    transition: stroke-dasharray 0.5s ease;
}

.ring-pass .history-score-arc { stroke: #059669; }
.ring-partial .history-score-arc { stroke: #d97706; }
.ring-fail .history-score-arc { stroke: #dc2626; }

.history-score-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.68rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
}

/* Text buttons */
.history-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #666;
    border: 1px solid #e5e7eb;
    transition: all 0.15s;
}

.history-text-btn:hover {
    background: #f5f5f7;
    color: #111;
    border-color: #ccc;
}

.history-text-btn-primary {
    background: #111;
    color: #fff;
    border-color: #111;
}

.history-text-btn-primary:hover {
    background: #333;
    border-color: #333;
}

.history-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #666;
    border: 1px solid #e5e7eb;
    transition: all 0.15s;
}

.history-icon-btn:hover {
    background: #f5f5f7;
    color: #111;
    border-color: #ccc;
}

.history-status-dot-wrap {
    width: 30px;
    display: flex;
    justify-content: center;
}

.history-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d97706;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============================================
   Score card (result page)
   ============================================ */
.score-card {
    text-align: center;
    padding: 40px 32px;
}

.score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.score-pass {
    background: #ecfdf5;
    border: 3px solid #bbf7d0;
}

.score-pass .score-number {
    color: #059669;
}

.score-partial {
    background: #fffbeb;
    border: 3px solid #fde68a;
}

.score-partial .score-number {
    color: #d97706;
}

.score-fail {
    background: #fef2f2;
    border: 3px solid #fca5a5;
}

.score-fail .score-number {
    color: #dc2626;
}

.score-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.score-label {
    font-size: 0.82rem;
    color: #999;
    font-weight: 500;
}

.score-summary {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

/* Result page */
.result-header {
    margin-bottom: 24px;
}

.result-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 4px;
}

.result-meta {
    font-size: 0.85rem;
    color: #64748b;
}

.result-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Gap tags */
.gap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gap-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
}

.gap-tag-yellow {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Tips */
.tips-list {
    list-style: none;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #1a1a1a;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
}

.tip-item:last-child {
    border-bottom: none;
}

.tip-item svg {
    flex-shrink: 0;
    margin-top: 3px;
}

/* ============================================
   Test selection page
   ============================================ */

/* Groups */
.test-group {
    margin-bottom: 36px;
}

.test-group-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.test-group-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.test-group-info {
    flex: 1;
}

.test-group-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111;
    line-height: 1.3;
}

.test-group-question {
    font-weight: 500;
    color: #ef4444;
    font-style: italic;
}

.test-group-desc {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.5;
    margin-top: 2px;
}

/* Test cards — uniform list items */
.test-card-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.test-card {
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s;
}

.test-card:last-child {
    border-bottom: none;
}

.test-card:hover {
    background: #fafafa;
}

.test-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.test-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.test-card-icon svg {
    width: 22px;
    height: 22px;
}

.test-card-header {
    flex: 1;
    min-width: 0;
}

.test-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.test-card-official {
    font-size: 0.72rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.3px;
}

.test-card-purpose {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.test-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.test-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #aaa;
}

.test-card-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #ef4444;
    color: #fff;
    transition: background 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.test-card-btn:hover {
    background: #dc2626;
}

.test-card-btn-disabled {
    background: #e5e7eb;
    color: #999;
}

.test-card-btn-disabled:hover {
    background: #d1d5db;
}

.test-licensed-star {
    color: #d97706;
    font-size: 1.1em;
}

.test-licensed-note {
    font-size: 0.78rem;
    color: #999;
    margin-top: 20px;
    text-align: center;
    font-style: italic;
}

/* ============================================
   Test Session (question flow)
   ============================================ */
.test-progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.test-progress-fill {
    height: 100%;
    background: #ef4444;
    border-radius: 2px;
    transition: width 0.3s;
}

.test-progress-text {
    font-size: 0.78rem;
    color: #999;
    text-align: center;
    margin-bottom: 24px;
}

.test-question-card {
    display: none;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.test-question-card.active {
    display: block;
}

.test-question-num {
    font-size: 0.78rem;
    font-weight: 600;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.test-question-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin-bottom: 24px;
}

.test-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.test-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.test-option:hover {
    border-color: #ef4444;
    background: #fef2f2;
}

.test-option input[type="radio"] {
    accent-color: #ef4444;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.test-option:has(input:checked) {
    border-color: #ef4444;
    background: #fef2f2;
}

.test-option-label {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.test-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.test-question-card.shake {
    animation: shake 0.3s ease-in-out;
}

/* Profile page */
.profile-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    margin: 20px 0 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.profile-section-title:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet: icon-only sidebar */
@media (max-width: 800px) {
    .sidebar {
        width: 56px;
    }

    .sidebar-item {
        padding: 12px 0;
        justify-content: center;
        gap: 0;
        border-left: none;
    }

    .sidebar-label {
        display: none;
    }

    .sidebar-icon {
        width: 24px;
        height: 24px;
    }

    .sidebar-icon svg {
        width: 24px;
        height: 24px;
    }

    .sidebar-divider {
        margin: 8px 8px;
    }

    .dash-main {
        margin-left: 56px;
        padding: 20px 16px 40px;
    }
}

/* Mobile: hidden sidebar + hamburger */
@media (max-width: 480px) {
    .hamburger-btn {
        display: flex;
        align-items: center;
    }

    .sidebar {
        width: 220px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 150;
        top: 56px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-item {
        padding: 10px 20px;
        justify-content: flex-start;
        gap: 10px;
        border-left: 3px solid transparent;
    }

    .sidebar-item.active {
        border-left-color: #ef4444;
    }

    .sidebar-label {
        display: inline;
    }

    .sidebar-icon {
        width: 20px;
        height: 20px;
    }

    .sidebar-icon svg {
        width: 20px;
        height: 20px;
    }

    .dash-main {
        margin-left: 0;
        padding: 16px 12px 40px;
    }

    .dash-layout {
        padding-top: 56px;
    }

    .nav.dash-nav {
        height: 56px;
        padding: 0 12px;
    }

    .nav-logo {
        font-size: 1.05rem;
    }

    .nav-links {
        gap: 8px;
    }

    .dash-header {
        margin-bottom: 20px;
    }

    .dash-header h1 {
        font-size: 1.3rem;
    }

    .dash-subtitle {
        font-size: 0.82rem;
    }

    .form-card {
        padding: 20px 16px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0 16px;
    }

    .hero {
        padding: 60px 20px 48px;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .section-inner {
        padding: 0 16px;
    }

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

    .form-card {
        padding: 24px 20px;
    }

    .form-row {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .cross-trio {
        flex-direction: column;
        gap: 0;
    }

    .cross-card {
        flex: none;
        width: 100%;
    }

    .cross-connector {
        padding: 8px 0;
        transform: rotate(90deg);
    }

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

    .test-card {
        padding: 16px;
    }

    .test-group-header {
        flex-direction: column;
        gap: 10px;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .hero-btn-primary,
    .result-actions .hero-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 48px 16px 40px;
    }

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

/* ============================================
   Nav Dropdown (Blog)
   ============================================ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown-toggle::after {
    content: '';
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.5;
    transition: transform 0.15s;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 6px 0;
    z-index: 300;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    transition: background 0.12s;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: #f3f4f6;
    color: #111;
}

.nav-dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

.nav-dropdown-all {
    color: #ef4444 !important;
    font-weight: 600 !important;
}

/* ============================================
   Blog Tags
   ============================================ */
.blog-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
    align-self: flex-start;
}

.tag-blue { background: #eff6ff; color: #1e40af; }
.tag-amber { background: #fffbeb; color: #92400e; }
.tag-green { background: #ecfdf5; color: #065f46; }
.tag-red { background: #fef2f2; color: #991b1b; }

/* ============================================
   Blog Section (Homepage)
   ============================================ */
.section-alt {
    background: #fff;
}

.section-block {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-block h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.8px;
    text-align: center;
    margin-bottom: 12px;
}

.section-sub {
    text-align: center;
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 48px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 28px;
    transition: box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-color: #ddd;
}

.blog-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.blog-meta {
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 16px;
}

/* ============================================
   Blog Article Page
   ============================================ */
.blog-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.blog-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #ef4444;
    margin-bottom: 24px;
}

.blog-back:hover {
    text-decoration: underline;
}

.blog-article-header {
    margin-bottom: 36px;
}

.blog-article-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.blog-article-meta {
    font-size: 0.85rem;
    color: #999;
}

.blog-article-body {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #333;
}

.blog-article-body h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
    margin: 40px 0 16px;
}

.blog-article-body h2:first-child {
    margin-top: 0;
}

.blog-article-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin: 28px 0 10px;
}

.blog-article-body p {
    margin-bottom: 18px;
}

.blog-article-body ul,
.blog-article-body ol {
    margin: 0 0 18px 20px;
}

.blog-article-body li {
    margin-bottom: 8px;
}

.blog-article-body strong {
    color: #111;
}

.blog-article-body em {
    color: #555;
}

.blog-article-hero {
    margin-bottom: 40px;
    border-radius: 14px;
    overflow: hidden;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.blog-tip-box {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin: 24px 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #7f1d1d;
}

.blog-tip-box strong {
    color: #991b1b;
}

.blog-warn-box {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin: 24px 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #78350f;
}

.blog-warn-box strong {
    color: #92400e;
}

.blog-inline-img {
    margin: 28px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    border: 1px solid #eee;
}

.blog-cta-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 40px 32px;
    text-align: center;
    margin-top: 48px;
}

.blog-cta-box h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
}

.blog-cta-box p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 24px;
}

/* ============================================
   Cross-promo (blog article)
   ============================================ */
.cross-promo {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #fef2f2 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-top: 24px;
}

.cross-promo-icon {
    flex-shrink: 0;
}

.cross-promo-body {
    flex: 1;
    min-width: 0;
}

.cross-promo-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 2px;
}

.cross-promo-body p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.cross-promo-link {
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
    white-space: nowrap;
    transition: color 0.15s;
}

.cross-promo-link:hover {
    color: #1d4ed8;
}

/* Blog responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-article {
        padding: 32px 16px 60px;
    }

    .blog-article-header h1 {
        font-size: 1.6rem;
    }

    .blog-article-hero {
        padding: 28px 16px;
    }

    .blog-inline-img {
        padding: 20px 12px;
    }

    .section-block {
        padding: 48px 16px;
    }

    .cross-promo {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* Sidebar cross-links */
.sidebar-crosslinks {
    padding: 16px 16px 20px;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
}

.sidebar-crosslinks-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #bbb;
    margin-bottom: 10px;
    padding-left: 4px;
}

.sidebar-crosslink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    border-radius: 8px;
    transition: background 0.12s;
    text-decoration: none;
    margin-bottom: 2px;
}

.sidebar-crosslink:hover {
    background: #f5f5f7;
}

.sidebar-crosslink-logo {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.cl-p { color: #111; }
.cl-os { font-weight: 800; }
.cl-blue { color: #2563eb; }
.cl-orange { color: #f97316; }
.cl-red { color: #ef4444; }

.sidebar-crosslink-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-crosslink-info strong {
    font-size: 0.78rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.sidebar-crosslink-info span {
    font-size: 0.68rem;
    color: #999;
    line-height: 1.2;
}

