/* ============================================================
   SEO AI – Main Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --fire: #f25621;
    --fire-dark: #c43d10;
    --fire-light: #ff7a4d;
    --bg-main: #0a0a0a;
    --bg-card: #111111;
    --swiper-pagination-bottom: 0px;
}

/* ---------- Custom Logo (ảnh upload từ Customizer) ---------- */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo       { height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.custom-logo-link:hover { opacity: 0.85; transition: opacity 0.2s ease; }


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: #f0ede8;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    overflow-x: hidden;
}

footer { font-size: 14px; }

/* ---------- Tech grid background ---------- */
.tech-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(242, 86, 33, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242, 86, 33, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(6px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* ---------- FAQ ---------- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer { max-height: 240px; }
.faq-item.active .faq-icon  { transform: rotate(0deg); }

.faq-item { transition: all 0.25s ease; }

.faq-item:hover {
    border-color: rgba(242, 86, 33, 0.35);
    box-shadow: 0 0 0 1px rgba(242, 86, 33, 0.12);
}

.faq-item.active {
    border-color: rgba(242, 86, 33, 0.55) !important;
    box-shadow: 0 0 40px rgba(242, 86, 33, 0.15);
    background: linear-gradient(90deg, rgba(242,86,33,0.12), rgba(0,0,0,0));
}

.faq-item.active .faq-icon {
    color: var(--fire);
    text-shadow: 0 0 15px rgba(242, 86, 33, 0.6);
}

/* ---------- Swiper overrides ---------- */
.swiper { padding-bottom: 25px; }

.swiper-pagination-bullet {
    background: rgba(255,255,255,0.3) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active { background: var(--fire) !important; }

/* ---------- Material Symbols ---------- */
.material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* ============================================================
   PRICING PAGE – Extra Styles
   ============================================================ */

/* Billing toggle */
.billing-tabs { display: flex; gap: 0; }

.billing-tab {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.billing-tab:first-child  { border-radius: 10px 0 0 10px; }
.billing-tab:last-child   { border-radius: 0 10px 10px 0; }

.billing-tab.active {
    background: var(--fire);
    border-color: var(--fire);
    color: #fff;
}

/* Pricing cards */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 24px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.pricing-card.featured {
    border: 2px solid var(--fire);
    background: rgba(242,86,33,0.06);
    box-shadow: 0 0 60px rgba(242,86,33,0.12);
}

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fire);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.plan-price sup {
    font-size: 1.25rem;
    font-weight: 700;
    vertical-align: top;
    margin-top: 8px;
}

.plan-price .amount {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1;
}

.plan-price .period {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 400;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.5;
}

.feature-list .check { color: var(--fire); flex-shrink: 0; margin-top: 1px; }
.feature-list .cross { color: #6b7280; flex-shrink: 0; margin-top: 1px; }

/* Compare table */
.compare-table { width: 100%; border-collapse: collapse; }

.compare-table thead th {
    padding: 14px 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.compare-table thead th:first-child { text-align: left; }

.compare-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

.compare-table td {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-align: center;
    color: #d1d5db;
}

.compare-table td:first-child {
    text-align: left;
    color: #9ca3af;
    font-weight: 500;
}

.compare-table .col-featured td { color: var(--fire); font-weight: 700; }

.check-icon { color: var(--fire); font-size: 18px; }
.dash-icon   { color: #374151;   font-size: 18px; }

/* Annual savings banner */
.savings-banner {
    background: linear-gradient(135deg, rgba(242,86,33,0.12), rgba(0,0,0,0));
    border: 1px solid rgba(242,86,33,0.25);
    border-radius: 16px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* How it works steps */
.step-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.step-card:hover { border-color: rgba(242,86,33,0.35); }

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--fire);
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

/* Addon cards */
.addon-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 28px 24px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.addon-card:hover {
    border-color: rgba(242,86,33,0.3);
    transform: translateY(-3px);
}

/* Guarantee badge */
.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    color: #4ade80;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
