/* pricing.css — bảng giá 4 gói cân đối, không icon, theme-aware */

/* ===== HERO ===== */
.pricing-hero {
    padding: 64px 0 32px;
    background: var(--gradient-soft);
    text-align: center;
    position: relative; overflow: hidden;
}
.pricing-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(800px 360px at 80% -10%, rgba(217,70,239,.18), transparent 60%),
        radial-gradient(720px 360px at 12% 20%, rgba(99,102,241,.22), transparent 60%);
}
.pricing-hero h1 {
    font-size: clamp(38px, 5.5vw, 60px);
    margin: 0 0 16px;
    background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    position: relative;
    text-transform: uppercase;
}
.pricing-hero .lead {
    max-width: 720px; margin: 0 auto;
    color: var(--fg-muted); font-size: 18px;
    font-weight: 500;
    line-height: 1.55;
    position: relative;
}

/* ===== PRICING GRID — 4 COLUMN BALANCED ===== */
.pricing-section { padding: 56px 0 60px; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 1000px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* ===== CARD ===== */
.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex; flex-direction: column;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(99,102,241,.2);
    border-color: var(--brand-300);
}
html.dark .price-card:hover {
    border-color: var(--brand-500);
    box-shadow: 0 20px 40px -12px rgba(99,102,241,.35);
}

/* ===== HEAD ===== */
.price-head {
    text-align: center;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px dashed var(--border);
}
.price-name {
    font-size: 18px; font-weight: 800;
    margin: 0 0 4px;
    color: var(--fg);
    letter-spacing: 0;
}
.price-duration {
    font-size: 13px; color: var(--fg-subtle);
    font-weight: 500;
}

/* ===== PRICE TAG ===== */
.price-tag {
    text-align: center;
    margin-bottom: 8px;
}
.price-amount {
    font-size: 44px; font-weight: 900;
    background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
    line-height: 1;
}
.price-unit {
    font-size: 28px; font-weight: 800;
}

/* ===== TAGLINE / SAVINGS ===== */
.price-tagline {
    font-size: 13px; color: var(--fg-subtle);
    margin: 0 0 18px; padding: 8px 12px;
    background: var(--surface-2); border-radius: 8px;
    text-align: center; font-style: italic;
}
.price-savings {
    font-size: 12.5px;
    background: linear-gradient(90deg, rgba(16,185,129,.15), rgba(16,185,129,.05));
    color: #059669;
    padding: 7px 12px; border-radius: 8px;
    margin: 0 auto 18px; font-weight: 700;
    text-align: center;
    display: block;
}
html.dark .price-savings { color: #34d399; }

/* ===== FEATURES LIST ===== */
.price-features {
    list-style: none; padding: 0; margin: 0 0 24px;
    flex: 1; display: flex; flex-direction: column; gap: 10px;
}
.price-features li {
    font-size: 13.5px; color: var(--fg-muted);
    padding-left: 24px; position: relative; line-height: 1.5;
}
.price-features li::before {
    content: ""; position: absolute; left: 0; top: 4px;
    width: 16px; height: 16px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3'><path d='M20 6L9 17l-5-5'/></svg>") center/contain no-repeat;
}

/* ===== CTA BUTTON ===== */
.price-cta {
    display: block; text-align: center;
    padding: 13px 16px; border-radius: 10px;
    background: var(--surface-2); color: var(--fg);
    border: 1px solid var(--border-strong);
    font-weight: 700; font-size: 14px;
    text-decoration: none;
    transition: all .15s ease;
}
.price-cta:hover {
    background: var(--brand-600); color: #fff;
    border-color: var(--brand-600);
    transform: translateY(-2px);
}

/* ===== POPULAR (6 tháng — green) ===== */
.price-card.popular {
    border: 2px solid #10b981;
    box-shadow: 0 10px 30px -10px rgba(16,185,129,.3);
}
.price-card.popular:hover {
    box-shadow: 0 20px 40px -12px rgba(16,185,129,.5);
    border-color: #10b981;
}
.popular-badge {
    position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff; font-size: 11px; font-weight: 800;
    letter-spacing: 1px; padding: 5px 14px;
    border-radius: 999px; white-space: nowrap;
    box-shadow: 0 4px 12px rgba(16,185,129,.5);
}
.price-cta-popular {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important; border: none !important;
}
.price-cta-popular:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    box-shadow: 0 8px 20px rgba(16,185,129,.4);
}

/* ===== BEST VALUE (1 năm — orange/amber) ===== */
.price-card.best-value {
    border: 2px solid #f59e0b;
    box-shadow: 0 10px 30px -10px rgba(245,158,11,.3);
    background: linear-gradient(180deg, var(--surface) 0%, rgba(245,158,11,.04) 100%);
}
html.dark .price-card.best-value {
    background: linear-gradient(180deg, var(--surface) 0%, rgba(245,158,11,.08) 100%);
}
.price-card.best-value:hover {
    box-shadow: 0 20px 40px -12px rgba(245,158,11,.5);
    border-color: #f59e0b;
}
.best-badge {
    position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; font-size: 11px; font-weight: 800;
    letter-spacing: 1px; padding: 5px 14px;
    border-radius: 999px; white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245,158,11,.5);
}
.price-card.best-value .price-amount {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.best-savings {
    background: linear-gradient(90deg, rgba(245,158,11,.18), rgba(245,158,11,.06)) !important;
    color: #d97706 !important;
}
html.dark .best-savings { color: #fbbf24 !important; }
.price-cta-best {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #fff !important; border: none !important;
}
.price-cta-best:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    box-shadow: 0 8px 20px rgba(245,158,11,.4);
}

/* ===== NOTE BELOW GRID ===== */
.pricing-note {
    margin-top: 32px; text-align: center;
    color: var(--fg-muted); font-size: 14px;
    display: flex; align-items: center; gap: 8px;
    width: 100%; justify-content: center;
}
.pricing-note svg { color: var(--brand-500); flex-shrink: 0; }

/* ===== FEATURES INCLUDED SECTION ===== */
.features-included {
    padding: 56px 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.features-h2 {
    text-align: center; font-size: clamp(26px, 3.5vw, 36px);
    margin: 0 0 8px;
    background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.features-sub {
    text-align: center; color: var(--fg-muted);
    max-width: 640px; margin: 0 auto 40px; font-size: 16px;
}

.benefit-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; margin-bottom: 48px;
}
@media (max-width: 900px) {
    .benefit-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .benefit-row { grid-template-columns: 1fr; }
}
.benefit-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px; text-align: center;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.benefit-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-300);
    box-shadow: var(--shadow);
}
html.dark .benefit-card:hover { border-color: var(--brand-500); }
.benefit-icon {
    width: 56px; height: 56px; border-radius: 14px;
    margin: 0 auto 14px; color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 8px 20px -6px rgba(0,0,0,.25);
}
.benefit-icon svg { width: 28px; height: 28px; }
.benefit-card h4 {
    font-size: 16px; margin: 0 0 8px;
    color: var(--fg); font-weight: 700;
}
.benefit-card p {
    margin: 0; font-size: 13px;
    color: var(--fg-muted); line-height: 1.6;
}

/* ===== FEATURE MATRIX VEO + GROK ===== */
.feature-matrix {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 900px) {
    .feature-matrix { grid-template-columns: 1fr; }
}
.feature-col {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
}
.feature-col-head {
    display: flex; align-items: center; gap: 14px;
    padding-bottom: 16px; margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.feature-platform-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: grid; place-items: center;
    color: #fff; font-weight: 800; font-size: 22px;
    box-shadow: 0 6px 16px -4px rgba(0,0,0,.3);
    flex-shrink: 0;
}
.feature-col-head h3 {
    margin: 0 0 2px; font-size: 18px; font-weight: 700;
    color: var(--fg);
}
.feature-col-sub {
    margin: 0; font-size: 13px; color: var(--fg-subtle);
}
.feature-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 12px;
}
.feature-list li {
    font-size: 14px; color: var(--fg-muted);
    line-height: 1.6; padding-left: 28px;
    position: relative;
}
.feature-list li::before {
    content: ""; position: absolute; left: 0; top: 4px;
    width: 18px; height: 18px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3'><path d='M20 6L9 17l-5-5'/></svg>") center/contain no-repeat;
}
.feature-list li b { color: var(--fg); font-weight: 700; }

/* ===== FAQ ===== */
.pricing-faq { padding: 40px 0 80px; }
.pricing-faq h2 {
    text-align: center; font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 28px;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px; overflow: hidden;
    transition: border-color .15s;
    max-width: 880px; margin-left: auto; margin-right: auto;
}
.faq-item:hover { border-color: var(--brand-300); }
html.dark .faq-item:hover { border-color: var(--brand-500); }
.faq-item summary {
    cursor: pointer; padding: 16px 20px;
    font-weight: 600; font-size: 15px; color: var(--fg);
    list-style: none; position: relative;
    padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%); font-size: 22px;
    font-weight: 400; color: var(--brand-500);
    transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
    padding: 0 20px 18px; margin: 0;
    color: var(--fg-muted); font-size: 14px; line-height: 1.7;
}
.faq-item a { color: var(--brand-600); text-decoration: underline; }
html.dark .faq-item a { color: var(--brand-300); }

/* ============================================================
   CTV SECTION (recruit collaborator)
   ============================================================ */
.ctv-section { padding: 32px 0 56px; }
.ctv-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 36px; align-items: center;
    position: relative; overflow: hidden;
}
.ctv-card::before {
    content: ""; position: absolute; inset: 0;
    pointer-events: none; border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, #f59e0b 0%, #6366f1 35%, #8b5cf6 65%, #10b981 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
@media (max-width: 820px) {
    .ctv-card { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
}

.ctv-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: linear-gradient(90deg, rgba(139,92,246,.15), rgba(217,70,239,.12));
    color: var(--brand-600);
    font-size: 13px; font-weight: 700;
    margin-bottom: 14px;
}
html.dark .ctv-eyebrow { color: var(--brand-300); }
.ctv-eyebrow svg { color: var(--brand-500); }

.ctv-left h2 {
    font-size: clamp(22px, 2.6vw, 30px);
    margin: 0 0 12px; line-height: 1.3;
    color: var(--fg); font-weight: 800;
}
.ctv-highlight {
    color: #f59e0b;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ctv-body {
    font-size: 15px; color: var(--fg-muted);
    margin: 0 0 18px; line-height: 1.6;
}
.ctv-body b { color: var(--brand-600); }
html.dark .ctv-body b { color: var(--brand-300); }

.ctv-perks {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 12px;
}
.ctv-perks li {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; color: var(--fg);
}
.ctv-perks li svg {
    color: var(--brand-500);
    flex-shrink: 0;
}

/* Right column */
.ctv-right {
    display: flex; flex-direction: column;
    gap: 12px; align-items: stretch;
}
.ctv-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 999px;
    font-size: 14px; font-weight: 700;
    align-self: flex-end;
    width: fit-content;
}
.ctv-pill-yellow {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #fbbf24;
}
.ctv-pill-yellow span {
    width: 22px; height: 22px; border-radius: 50%;
    background: #f59e0b; color: #fff;
    display: grid; place-items: center;
    font-size: 13px; font-weight: 800;
}
.ctv-pill-blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border: 1px solid #60a5fa;
}
.ctv-pill-blue svg { color: #2563eb; }
html.dark .ctv-pill-yellow { background: linear-gradient(135deg, rgba(251,191,36,.15), rgba(251,191,36,.08)); color: #fbbf24; border-color: rgba(251,191,36,.4); }
html.dark .ctv-pill-blue { background: linear-gradient(135deg, rgba(96,165,250,.15), rgba(96,165,250,.08)); color: #60a5fa; border-color: rgba(96,165,250,.4); }
html.dark .ctv-pill-blue svg { color: #60a5fa; }

.ctv-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 24px; border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff; font-weight: 700; font-size: 16px;
    text-decoration: none;
    box-shadow: 0 8px 22px -6px rgba(37,99,235,.5);
    transition: all .2s ease;
}
.ctv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(37,99,235,.65);
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
}
.ctv-zalo {
    text-align: center; margin: 4px 0 0;
    font-size: 13px; color: var(--fg-subtle);
}
.ctv-zalo b { color: var(--fg); font-weight: 700; }

@media (max-width: 820px) {
    .ctv-pill { align-self: flex-start; }
}
