*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-primary:   #0D0D15;
    --bg-secondary: #1A1A2E;
    --bg-card:      rgba(26,26,46,0.8);
    --gold-primary: #D4A853;
    --gold-light:   #F0C674;
    --gold-dark:    #B8942D;
    --gold-glow:    rgba(212,168,83,0.2);
    --text-primary: #EAEAEA;
    --text-secondary:#A0A0B0;
    --text-muted:   #6B7280;
    --border-glass: 1px solid rgba(212,168,83,0.2);
    --font:         'Inter', 'Segoe UI', sans-serif;
    --success: #10B981;
    --warning: #F59E0B;
    --info: #3B82F6;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ─── Content ─────────────────────────────────────── */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 2rem 4rem;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}
.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(212,168,83,0.1);
    border: 1px solid rgba(212,168,83,0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--gold-light);
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}
.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Table of Contents ───────────────────────────── */
.toc {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}
.toc-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gold-light);
}
.toc-list {
    list-style: none;
}
.toc-list li {
    margin: 0.75rem 0;
}
.toc-list a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.toc-list a:hover {
    color: var(--gold-primary);
}
.toc-list a::before {
    content: '→';
    color: var(--gold-primary);
}

/* ─── Sections ────────────────────────────────────── */
.section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.section-title .icon {
    font-size: 2rem;
}
.section-content {
    color: var(--text-primary);
    line-height: 1.8;
}
.section-content p {
    margin-bottom: 1rem;
}
.section-content ul, .section-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}
.section-content li {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}
.section-content strong {
    color: var(--gold-light);
    font-weight: 600;
}

/* ─── Cards ───────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.card {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1.5rem;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(212,168,83,0.15);
}
.card:last-child {
    margin-bottom: 0;
}
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Info Boxes ──────────────────────────────────── */
.info-box {
    background: var(--bg-card);
    border-left: 4px solid var(--gold-primary);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}
.info-box.success { border-left-color: var(--success); }
.info-box.warning { border-left-color: var(--warning); }
.info-box.info { border-left-color: var(--info); }
.info-box-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.info-box-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Code Blocks ─────────────────────────────────── */
.code-block {
    background: rgba(0,0,0,0.3);
    border: var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}
.code-block code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ─── Steps ───────────────────────────────────────── */
.steps {
    margin: 2rem 0;
}
.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}
.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #0D0D15;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── CTA ─────────────────────────────────────────── */
.cta-box {
    background: linear-gradient(135deg, rgba(212,168,83,0.1), rgba(212,168,83,0.05));
    border: var(--border-glass);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin: 4rem 0;
}
.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.cta-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}
.cta-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #0D0D15;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1.05rem;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212,168,83,0.4);
}

/* ─── Footer ──────────────────────────────────────── */
footer {
    border-top: var(--border-glass);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-top: 4rem;
}
footer a { color: var(--gold-primary); text-decoration: none; }

/* ─── Ảnh minh hoạ & bảng giá ─────────────────────── */
.demo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1.25rem 0; }
.demo-duo.one { grid-template-columns: 1fr; }
.demo-duo.three { grid-template-columns: repeat(3, 1fr); }
.demo-duo figure { margin: 0; background: var(--bg-card); border: var(--border-glass); border-radius: 12px; overflow: hidden; }
.demo-duo img { display: block; width: 100%; height: auto; }
.demo-duo figcaption { padding: 0.5rem 0.75rem; font-size: 0.8rem; color: var(--text-secondary); }
.demo-duo figcaption strong { color: var(--gold-light); }
.price-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.price-table th, .price-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid rgba(212,168,83,0.15); text-align: left; }
.price-table th { color: var(--gold-light); font-weight: 600; }
.price-table td:last-child { color: var(--text-secondary); }
@media (max-width: 600px) { .demo-duo, .demo-duo.three { grid-template-columns: 1fr; } }

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .content { padding: 90px 1.25rem 2.5rem; }
    .page-header { margin-bottom: 2.5rem; }
    .page-title { letter-spacing: -0.5px; }
    .page-subtitle { font-size: 0.95rem; }
    .toc { padding: 1.25rem; margin-bottom: 2rem; }
    .section { margin-bottom: 2.5rem; }
    .section-title { font-size: 1.35rem; gap: 0.5rem; }
    .section-title .icon { font-size: 1.5rem; }
    .card { padding: 1.25rem; margin-bottom: 1rem; }
    .card-grid { grid-template-columns: 1fr; gap: 1rem; }
    .step { flex-direction: column; gap: 0.75rem; }
    .code-block { padding: 1rem; font-size: 0.82rem; }
    .info-box { padding: 1rem; }
    .cta-box { padding: 2rem 1.25rem; margin: 2.5rem 0; }
    .cta-title { font-size: 1.35rem; }
    .cta-desc { font-size: 0.9rem; }
    footer { padding: 1.5rem 1rem; margin-top: 2rem; }
}

@media (max-width: 480px) {
    .content { padding: 80px 1rem 2rem; }
    .page-header { margin-bottom: 2rem; }
    .section-title { font-size: 1.2rem; flex-wrap: wrap; }
    .card { padding: 1rem; }
    .card-desc { font-size: 0.85rem; }
    .code-block code { font-size: 0.78rem; }
    .step-number { width: 32px; height: 32px; font-size: 0.95rem; }
}
