/* ============================================================
   Shahi Expense — User Guide design system
   Shared styles across all user guide pages
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #00897B;
    --primary-dark: #00695C;
    --primary-light: #26A69A;
    --primary-bg: #E0F2F1;
    --accent: #FF5252;
    --dark: #0F172A;
    --dark-soft: #1E293B;
    --text: #334155;
    --text-light: #64748B;
    --text-lighter: #94A3B8;
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --gray-50: #F1F5F9;
    --gray-100: #E2E8F0;
    --gray-200: #CBD5E1;
    --green: #43A047;
    --green-light: #E8F5E9;
    --blue: #1976D2;
    --blue-light: #E3F2FD;
    --orange: #F57C00;
    --orange-light: #FFF3E0;
    --purple: #7B1FA2;
    --purple-light: #F3E5F5;
    --amber: #FFB74D;
    --amber-light: #FFF8E1;
    --red: #E53935;
    --red-light: #FFEBEE;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px -4px rgba(0,0,0,0.1), 0 8px 16px -6px rgba(0,0,0,0.06);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* ===== TOP UTILITY BAR (Follow us) ===== */
.top-bar {
    background: var(--dark);
    color: #cbd5e1;
    font-size: 12.5px;
    padding: 8px 24px;
    position: relative; z-index: 1100;
}
.top-bar-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.top-bar .left {
    display: flex; align-items: center; gap: 8px;
    font-weight: 500; color: #cbd5e1;
}
.top-bar .left strong { color: #fff; font-weight: 700; }
.top-bar .right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.top-bar .right a {
    display: inline-flex; align-items: center; gap: 6px;
    color: #cbd5e1; transition: color 0.2s;
}
.top-bar .right a:hover.yt { color: #FF4040; }
.top-bar .right a:hover.wa { color: #25D366; }
.top-bar .right a:hover.li { color: #4d9be9; }
.top-bar .right a svg { width: 16px; height: 16px; }
.top-bar .sep { color: #475569; }
@media (max-width: 720px) {
    .top-bar { padding: 8px 16px; font-size: 12px; }
    .top-bar .left { display: none; }
    .top-bar-inner { justify-content: center; }
}

/* ===== NAV ===== */
nav.guide-nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0 24px;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; height: 68px;
    gap: 16px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px; color: var(--dark);
    flex-shrink: 0;
}
.nav-logo img { width: 36px; height: 36px; border-radius: 9px; }
.nav-logo span { font-weight: 800; font-size: 17px; letter-spacing: -0.3px; }
.nav-logo small { display: block; font-weight: 500; font-size: 11px; color: var(--text-light); letter-spacing: 0.3px; text-transform: uppercase; }

.nav-links {
    display: flex; align-items: center; gap: 26px; list-style: none;
}
.nav-links a {
    color: var(--text); font-size: 14px;
    font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta {
    background: var(--primary) !important; color: var(--white) !important;
    padding: 9px 18px !important; border-radius: 50px;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(0,137,123,0.3);
}
.nav-cta:hover { background: var(--primary-dark) !important; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 24px 0 0;
    font-size: 13px; color: var(--text-lighter);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* ===== HERO ===== */
.guide-hero {
    padding: 56px 0 40px;
    background:
        radial-gradient(800px 400px at 80% -20%, rgba(38,166,154,0.18), transparent 60%),
        linear-gradient(170deg, var(--primary-bg) 0%, var(--white) 70%);
}
.guide-hero .kicker {
    display: inline-block; padding: 6px 14px;
    background: var(--white); color: var(--primary-dark);
    font-size: 12px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; border-radius: 999px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.guide-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800; line-height: 1.1; letter-spacing: -1.2px;
    color: var(--dark); margin-bottom: 16px; max-width: 800px;
}
.guide-hero h1 .grad {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.guide-hero p {
    font-size: 18px; color: var(--text-light);
    max-width: 720px; line-height: 1.6;
}
.hero-meta {
    display: flex; gap: 16px; flex-wrap: wrap;
    margin-top: 24px; font-size: 13px; color: var(--text-light);
}
.hero-meta .chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--white); padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--gray-100);
}

/* ===== CONTENT WRAPPER ===== */
.guide-content { padding: 56px 0 80px; }
.guide-content h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800; letter-spacing: -0.5px;
    color: var(--dark); margin: 48px 0 16px;
}
.guide-content h2:first-child { margin-top: 0; }
.guide-content h3 {
    font-size: 20px; font-weight: 700;
    color: var(--dark); margin: 28px 0 10px;
}
.guide-content p { margin-bottom: 14px; font-size: 16px; }
.guide-content ul, .guide-content ol {
    margin: 12px 0 18px 22px;
}
.guide-content li { margin-bottom: 8px; }
.guide-content strong { color: var(--dark); font-weight: 600; }
.guide-content code {
    background: var(--gray-50); color: var(--primary-dark);
    padding: 2px 8px; border-radius: 6px; font-size: 14px;
    font-family: 'SF Mono', Monaco, monospace;
}

/* ===== HUB CARD GRID ===== */
.hub-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 22px; margin-top: 16px;
}
.hub-card {
    background: var(--white); border-radius: var(--radius);
    padding: 28px; border: 1px solid var(--gray-100);
    transition: all 0.25s ease;
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
}
.hub-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s ease;
}
.hub-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.hub-card:hover::before { transform: scaleX(1); }
.hub-ic {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; font-size: 24px;
}
.ic-primary { background: var(--primary-bg); color: var(--primary-dark); }
.ic-green   { background: var(--green-light); color: var(--green); }
.ic-blue    { background: var(--blue-light); color: var(--blue); }
.ic-orange  { background: var(--orange-light); color: var(--orange); }
.ic-purple  { background: var(--purple-light); color: var(--purple); }
.ic-amber   { background: var(--amber-light); color: #B26A00; }
.ic-red     { background: var(--red-light); color: var(--red); }

.hub-card h3 {
    font-size: 18px; font-weight: 700;
    color: var(--dark); margin-bottom: 8px;
}
.hub-card p {
    color: var(--text-light); font-size: 14px;
    line-height: 1.6; margin-bottom: 16px; flex: 1;
}
.hub-card .arrow {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary); font-weight: 600; font-size: 14px;
}
.hub-card:hover .arrow { gap: 10px; }
.hub-card .arrow svg { transition: transform 0.2s; }
.hub-card:hover .arrow svg { transform: translateX(2px); }

/* ===== STEP CARDS ===== */
.step-list {
    counter-reset: step; margin: 28px 0;
}
.step {
    display: grid; grid-template-columns: 56px 1fr;
    gap: 20px; padding: 24px;
    background: var(--white); border: 1px solid var(--gray-100);
    border-radius: var(--radius); margin-bottom: 14px;
    transition: all 0.25s ease;
    counter-increment: step;
}
.step:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.step .num {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--primary-bg); color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px;
}
.step .num::before { content: counter(step); }
.step h4 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-light); margin: 0; }
.step ul { margin: 8px 0 0 18px; }
.step ul li { font-size: 14px; color: var(--text-light); margin-bottom: 4px; }

/* ===== CALLOUTS ===== */
.callout {
    border-left: 4px solid var(--primary);
    background: var(--primary-bg);
    padding: 16px 20px; border-radius: 8px;
    margin: 20px 0; font-size: 15px;
}
.callout strong { color: var(--primary-dark); }
.callout.warning { border-left-color: var(--orange); background: var(--orange-light); }
.callout.warning strong { color: #B26A00; }
.callout.success { border-left-color: var(--green); background: var(--green-light); }
.callout.success strong { color: #2E7D32; }
.callout.info { border-left-color: var(--blue); background: var(--blue-light); }
.callout.info strong { color: #0D47A1; }

/* ===== FEATURE TABLE ===== */
.feat-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 16px; margin: 24px 0;
}
.feat-grid .feat {
    padding: 18px 20px; background: var(--off-white);
    border: 1px solid var(--gray-100); border-radius: 12px;
}
.feat .feat-ic {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--primary-bg); color: var(--primary-dark);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 10px; font-size: 18px;
}
.feat h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.feat p { font-size: 13px; color: var(--text-light); margin: 0; }

/* ===== TOC SIDEBAR ===== */
.guide-layout {
    display: grid; grid-template-columns: 240px 1fr;
    gap: 48px;
}
.guide-toc {
    position: sticky; top: 92px; align-self: start;
    padding: 8px 0;
}
.guide-toc h4 {
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--text-lighter); margin-bottom: 14px;
}
.guide-toc ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.guide-toc a {
    display: block; padding: 8px 12px; border-radius: 8px;
    font-size: 14px; color: var(--text-light);
    border-left: 2px solid transparent; transition: all 0.2s;
}
.guide-toc a:hover { background: var(--gray-50); color: var(--primary); }
.guide-toc a.active { color: var(--primary); border-left-color: var(--primary); background: var(--primary-bg); font-weight: 600; }

/* ===== PAGINATION ===== */
.guide-pager {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin-top: 56px;
}
.guide-pager a {
    padding: 18px 22px; border: 1px solid var(--gray-100);
    border-radius: 12px; transition: all 0.2s;
    background: var(--white);
}
.guide-pager a:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-pager .label { font-size: 12px; color: var(--text-lighter); margin-bottom: 4px; }
.guide-pager .title { font-size: 15px; font-weight: 700; color: var(--dark); }
.guide-pager .next { text-align: right; }
.guide-pager .prev:empty, .guide-pager .next:empty { background: transparent; border: none; pointer-events: none; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.faq-item {
    background: var(--white); border: 1px solid var(--gray-100);
    border-radius: 12px; overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--primary-light); }
.faq-item summary {
    list-style: none; cursor: pointer;
    padding: 18px 22px; font-size: 16px; font-weight: 600;
    color: var(--dark); position: relative;
    padding-right: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 22px; top: 50%;
    transform: translateY(-50%); font-size: 22px; font-weight: 400;
    color: var(--primary);
    transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body {
    padding: 0 22px 18px; font-size: 15px;
    color: var(--text-light); line-height: 1.7;
}

/* ===== SCREENSHOT ===== */
.screenshot {
    margin: 24px 0; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-md);
    background: var(--off-white); padding: 24px;
    text-align: center;
}
.screenshot img { max-width: 320px; margin: 0 auto; border-radius: 12px; }
.screenshot .cap {
    margin-top: 14px; font-size: 13px; color: var(--text-light);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark); color: #cbd5e1;
    padding: 56px 24px 24px;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px; }
.footer-brand p { max-width: 360px; line-height: 1.7; color: #94a3b8; font-size: 14px; }
footer h4 {
    font-size: 13px; font-weight: 700; color: var(--white);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer ul a { color: #cbd5e1; font-size: 14px; transition: color 0.2s; }
footer ul a:hover { color: var(--primary-light); }
.footer-social {
    max-width: 1200px; margin: 32px auto 0;
    padding-top: 24px; border-top: 1px solid #1e293b;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.footer-social .label {
    font-size: 11px; color: #64748b; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.4px;
}
.footer-social .icons {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    justify-content: center;
}
.footer-social a {
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #1E293B; color: #cbd5e1;
    transition: all 0.2s ease;
    border: 1px solid #334155;
}
.footer-social a:hover { transform: translateY(-2px); }
.footer-social a.yt:hover     { background: #FF0000; color: #fff; border-color: #FF0000; box-shadow: 0 8px 18px rgba(255,0,0,0.35); }
.footer-social a.wa:hover     { background: #25D366; color: #fff; border-color: #25D366; box-shadow: 0 8px 18px rgba(37,211,102,0.35); }
.footer-social a.li:hover     { background: #0A66C2; color: #fff; border-color: #0A66C2; box-shadow: 0 8px 18px rgba(10,102,194,0.35); }
.footer-social a svg { width: 20px; height: 20px; }
.footer-social .names {
    display: flex; gap: 18px; font-size: 12px; color: #64748b;
    flex-wrap: wrap; justify-content: center;
}
.footer-social .names a { all: unset; cursor: pointer; transition: color 0.2s; }
.footer-social .names a:hover { color: var(--primary-light); }

.footer-bottom {
    max-width: 1200px; margin: 18px auto 0;
    padding-top: 18px;
    font-size: 13px; color: #64748b; text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    .hub-grid { grid-template-columns: repeat(2, 1fr); }
    .guide-layout { grid-template-columns: 1fr; gap: 24px; }
    .guide-toc { position: static; }
    .feat-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .hub-grid { grid-template-columns: 1fr; }
    .guide-pager { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .step { grid-template-columns: 1fr; }
}
