/* Gourdes Token — stil komen paj legal yo (konfidansyalite, tèm, FAQ) */
:root {
    --primary: #0067d5;
    --purple: #6f42c1;
    --purple-light: rgba(111, 66, 193, 0.1);
    --gradient: linear-gradient(135deg, #6f42c1 0%, #0067d5 100%);
    --success: #28a745;
    --success-light: rgba(40, 167, 69, 0.1);
    --warning: #ffc107;
    --warning-light: rgba(255, 193, 7, 0.15);
    --danger: #dc3545;
    --danger-light: rgba(220, 53, 69, 0.1);
    --info: #17a2b8;
    --info-light: rgba(23, 162, 184, 0.1);
    --card-bg: #ffffff;
    --body-bg: #f5f7fa;
    --text-dark: #2c3e50;
    --text-muted: #5f6b76;
    --border: #e9ecef;
    --soft: #f8f9fa;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}
body.dark {
    --card-bg: #16162a;
    --body-bg: #0b0b14;
    --text-dark: #f2f2f7;
    --text-muted: #a7a7bf;
    --border: #2a2a44;
    --soft: #1d1d34;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--body-bg);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

a { text-decoration: none; color: var(--purple); }
body.dark a { color: #a98cf0; }

/* Header */
.appHeader {
    background: var(--gradient);
    color: #fff;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.appHeader .left { flex: 0 0 auto; width: 40px; }
.appHeader .pageTitle { flex: 1; text-align: center; font-weight: 600; font-size: 1.05rem; }
.appHeader .right { flex: 0 0 auto; width: 40px; }
.appHeader a { color: #fff; display: inline-flex; }

#appCapsule { padding-top: 72px; padding-bottom: 40px; }
.content-wrapper { max-width: 800px; margin: 0 auto; padding: 0 16px; }

/* Hero */
.hero-section {
    background: var(--gradient);
    border-radius: 20px;
    padding: 32px 24px;
    margin-bottom: 24px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(111, 66, 193, 0.25);
}
.hero-section::before {
    content: ''; position: absolute; top: -50%; right: -30%;
    width: 250px; height: 250px; background: rgba(255,255,255,0.1); border-radius: 50%;
}
.hero-icon {
    width: 70px; height: 70px; background: rgba(255,255,255,0.2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 32px; position: relative; z-index: 1;
}
.hero-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; position: relative; z-index: 1; }
.hero-subtitle { font-size: 0.9rem; opacity: 0.9; margin: 0; position: relative; z-index: 1; }
.update-date {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.15); padding: 8px 16px; border-radius: 20px;
    font-size: 0.8rem; margin-top: 16px; position: relative; z-index: 1;
}

/* Cards */
.intro-card, .toc-card, .key-points, .section-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.intro-card { border-left: 4px solid var(--purple); }
.intro-card p { margin: 0 0 10px; font-size: 0.95rem; color: var(--text-muted); }
.intro-card p:last-child { margin-bottom: 0; }

.block-title {
    font-size: 1rem; font-weight: 700; margin: 0 0 16px;
    display: flex; align-items: center; gap: 10px;
}
.block-title ion-icon { color: var(--purple); font-size: 22px; }

/* Key points */
.key-points-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.key-point-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px; background: var(--soft); border-radius: 12px;
}
.key-point-icon {
    width: 38px; height: 38px; background: var(--purple); color: #fff; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 19px;
}
.key-point-text { font-size: 0.86rem; font-weight: 500; }

/* TOC */
.toc-list {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
    list-style: none; margin: 0; padding: 0;
}
.toc-list li a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; background: var(--soft); border-radius: 10px;
    color: var(--text-muted); font-size: 0.85rem;
}
.toc-list li a.toc-highlight { background: var(--danger-light); color: var(--danger); font-weight: 600; }
.toc-num {
    width: 24px; height: 24px; background: var(--purple); color: #fff; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.toc-highlight .toc-num { background: var(--danger); }

/* Sections */
.section-header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--border);
}
.section-number {
    width: 40px; height: 40px; background: var(--gradient); color: #fff; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.05rem; flex-shrink: 0;
}
.section-card.danger-card .section-number { background: var(--danger); }
.section-card.danger-card { border: 2px solid var(--danger); }
.section-title { font-size: 1.1rem; font-weight: 700; margin: 0; }
.section-content { color: var(--text-muted); font-size: 0.92rem; }
.section-content p { margin: 0 0 12px; }
.section-content p:last-child { margin-bottom: 0; }
.section-content strong { color: var(--text-dark); }
.section-content ul, .section-content ol { margin: 0; padding-left: 0; list-style: none; }
.section-content ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.section-content ul li::before {
    content: ''; position: absolute; left: 4px; top: 9px;
    width: 8px; height: 8px; background: var(--purple); border-radius: 50%;
}
.section-content ul li:last-child, .section-content ol li:last-child { margin-bottom: 0; }

/* Steps (efasman) */
.steps { counter-reset: step; }
.steps li {
    counter-increment: step; position: relative;
    padding-left: 40px; margin-bottom: 14px; min-height: 28px;
}
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--danger); color: #fff; font-weight: 700; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
}

.subsection { background: var(--soft); border-radius: 12px; padding: 16px; margin-top: 16px; }
.subsection-title {
    font-size: 0.9rem; font-weight: 700; color: var(--text-dark);
    margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.subsection-title ion-icon { color: var(--purple); }

/* Alerts */
.alert-box {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border-radius: 12px; margin-top: 16px;
    font-size: 0.86rem; line-height: 1.55;
}
.alert-box ion-icon { font-size: 22px; flex-shrink: 0; }
.alert-box.success { background: var(--success-light); border: 1px solid var(--success); }
.alert-box.success ion-icon { color: var(--success); }
.alert-box.warning { background: var(--warning-light); border: 1px solid var(--warning); }
.alert-box.warning ion-icon { color: #b08900; }
.alert-box.info { background: var(--info-light); border: 1px solid var(--info); }
.alert-box.info ion-icon { color: var(--info); }
.alert-box.danger { background: var(--danger-light); border: 1px solid var(--danger); }
.alert-box.danger ion-icon { color: var(--danger); }
.alert-box .alert-text { color: var(--text-dark); }

/* Table */
.table-wrap { overflow-x: auto; margin-top: 12px; border-radius: 12px; border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 11px 14px; text-align: left; font-size: 0.85rem; vertical-align: top; }
.data-table th { background: var(--gradient); color: #fff; font-weight: 600; }
.data-table td { border-bottom: 1px solid var(--border); }
.data-table tr:nth-child(even) td { background: var(--soft); }
.data-table tr:last-child td { border-bottom: none; }

/* Rights */
.rights-box {
    background: var(--gradient); border-radius: 16px; padding: 26px 22px;
    margin-bottom: 20px; color: #fff; box-shadow: 0 10px 40px rgba(111, 66, 193, 0.25);
}
.rights-box h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.rights-box ul { list-style: none; padding: 0; margin: 0; }
.rights-box ul li {
    display: flex; align-items: flex-start; gap: 12px; padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15); font-size: 0.9rem;
}
.rights-box ul li:last-child { border-bottom: none; }
.rights-box ul li ion-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.rights-box a { color: #fff; text-decoration: underline; }

/* Contact */
.contact-section {
    background: var(--card-bg); border-radius: 16px; padding: 26px 22px; margin-top: 24px;
    text-align: center; box-shadow: var(--shadow); border: 2px solid var(--purple);
}
.contact-section h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; }
.contact-section p { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 18px; }
.contact-methods { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact-link {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gradient); color: #fff !important;
    padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 0.9rem;
}
.company { font-size: 0.82rem; color: var(--text-muted); margin-top: 18px; line-height: 1.6; }

.page-footer { text-align: center; padding: 24px 16px; color: var(--text-muted); font-size: 0.85rem; }

.back-to-top {
    position: fixed; bottom: 24px; right: 24px; width: 50px; height: 50px;
    background: var(--gradient); color: #fff; border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 10px 30px rgba(111, 66, 193, 0.3);
    opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top ion-icon { font-size: 24px; }

@media (max-width: 480px) {
    .key-points-grid, .toc-list { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.3rem; }
    .intro-card, .toc-card, .key-points, .section-card { padding: 20px; }
    .section-header { gap: 12px; }
}

@media print {
    .appHeader, .back-to-top, .toc-card { display: none; }
    #appCapsule { padding-top: 0; }
    .section-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}

/* ===== Ikòn sipò nan antèt la ===== */
.appHeader .right { display: flex; justify-content: flex-end; }
.header-support {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px;
}

/* ===== Bwat sipò (sou chak paj) ===== */
.support-box {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 26px 22px;
    margin-top: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--purple);
}
.support-icon {
    width: 58px; height: 58px; margin: 0 auto 12px;
    border-radius: 50%; background: var(--gradient); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.support-box h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; }
.support-box p { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 18px; }
.support-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; max-width: 340px; margin: 0 auto;
    background: var(--gradient); color: #fff !important;
    padding: 14px 22px; border-radius: 12px; font-weight: 700; font-size: 0.95rem;
}
.support-copy {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 12px; padding: 8px 14px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--soft);
    color: var(--text-dark); font-size: 0.85rem; cursor: pointer;
    font-family: inherit;
}
.support-copy.copied { border-color: var(--success); color: var(--success); }
.company { font-size: 0.82rem; color: var(--text-muted); margin-top: 18px; line-height: 1.6; }

/* ===== FAQ (akòdeyon) ===== */
.faq-search {
    width: 100%; padding: 14px 16px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--card-bg); color: var(--text-dark);
    font-size: 16px; margin-bottom: 20px; box-shadow: var(--shadow); font-family: inherit;
}
.faq-group { margin-bottom: 22px; }
.faq-group-title {
    font-size: 0.95rem; font-weight: 700; margin: 0 0 10px 4px;
    display: flex; align-items: center; gap: 8px;
}
.faq-group-title ion-icon { color: var(--purple); font-size: 20px; }
.faq-item {
    background: var(--card-bg); border-radius: 14px; box-shadow: var(--shadow);
    margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
    list-style: none; cursor: pointer;
    padding: 16px 48px 16px 18px; position: relative;
    font-weight: 600; font-size: 0.93rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--purple-light); color: var(--purple);
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-answer { padding: 14px 18px 18px; color: var(--text-muted); font-size: 0.9rem; }
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--text-dark); }
.faq-answer ul { margin: 0 0 10px; padding-left: 20px; }
.faq-answer ul:last-child { margin-bottom: 0; }
.faq-empty { display: none; text-align: center; color: var(--text-muted); padding: 20px; }
