:root {
    --gradient-start: #3bbfa0;
    --gradient-end: #1a8f7e;
    --accent: #2baa96;
    --light-bg: #f8fafc;
    --ink: #1a1a2e;
    --muted: #64748b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    line-height: 1.7;
}

.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ink) !important;
}
.nav-link {
    color: var(--muted);
    font-weight: 500;
}
.nav-link:hover {
    color: var(--accent);
}

.guide-hero {
    padding: 130px 0 50px;
    background: linear-gradient(180deg, #ffffff 0%, var(--light-bg) 100%);
}
.guide-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 1.2rem;
}
.guide-hero .lead {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 760px;
}

.breadcrumb-nav {
    font-size: 0.85rem;
    color: var(--muted);
    padding-top: 100px;
    margin-bottom: 0.5rem;
}
.breadcrumb-nav a {
    color: var(--muted);
    text-decoration: none;
}
.breadcrumb-nav a:hover {
    color: var(--accent);
}

.guide-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 0 60px;
    font-size: 1.08rem;
}
.guide-body h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--ink);
    margin: 2.5rem 0 1rem;
}
.guide-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin: 1.8rem 0 0.8rem;
}
.guide-body p {
    margin-bottom: 1.1rem;
}
.guide-body ul,
.guide-body ol {
    margin-bottom: 1.2rem;
}
.guide-body li {
    margin-bottom: 0.5rem;
}

.error-box {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 1.5rem 0;
    font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.92rem;
    color: #991b1b;
    overflow-x: auto;
}

pre.code-block {
    background: var(--ink);
    color: #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 1.3rem 0;
    overflow-x: auto;
    font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.55;
}
pre.code-block .cmt {
    color: #94a3b8;
}

.callout {
    background: linear-gradient(135deg, rgba(59, 191, 160, 0.08), rgba(26, 143, 126, 0.08));
    border: 1px solid rgba(59, 191, 160, 0.25);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 2rem 0;
}
.callout h3 {
    margin-top: 0;
}

.steps {
    list-style: none;
    counter-reset: step;
    padding-left: 0;
}
.steps li {
    position: relative;
    padding-left: 52px;
    margin-bottom: 1.4rem;
    min-height: 36px;
}
.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.cta-band {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 20px;
    padding: 44px 40px;
    text-align: center;
    color: white;
    margin: 3rem 0;
}
.cta-band h2 {
    color: white;
    margin-top: 0;
}
.cta-band p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1.6rem;
}
.btn-appstore {
    background: white;
    color: var(--ink);
    padding: 14px 34px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}
.btn-appstore:hover {
    transform: translateY(-2px);
    color: var(--ink);
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
}
.faq-item h3 {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
}
.faq-item p {
    margin: 0;
    color: #475569;
}

.related-links {
    background: var(--light-bg);
    border-radius: 14px;
    padding: 28px 32px;
    margin: 2.5rem 0;
}
.related-links h3 {
    margin-top: 0;
}
.related-links ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.related-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.related-links a:hover {
    text-decoration: underline;
}

footer {
    padding: 50px 0 30px;
    background: var(--ink);
    color: white;
}
footer a {
    color: #94a3b8;
    text-decoration: none;
}
footer a:hover {
    color: white;
}
footer .text-muted {
    color: #b4c0d3 !important;
}
.footer-bottom {
    border-top: 1px solid #2d2d44;
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.lang-switch a {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
}
.lang-switch a.active {
    background: var(--light-bg);
    color: var(--ink);
}

@media (max-width: 768px) {
    .guide-hero h1 {
        font-size: 2rem;
    }
    .guide-body {
        font-size: 1rem;
    }
}
