:root {
    --ui-ink: #132045;
    --ui-muted: #526276;
    --ui-border: #dce5e9;
    --ui-accent: #132045;
    --ui-accent-hover: #1e3a6e;
    --ui-focus: #0b81aa;
}

body.national-day-theme {
    --ui-ink: #163f30;
    --ui-accent: #08783e;
    --ui-accent-hover: #075f35;
    --ui-focus: #a07012;
}

body { color: var(--ui-ink); }

button, a, summary { -webkit-tap-highlight-color: transparent; }

a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid var(--ui-focus);
    outline-offset: 3px;
}

.nav-inner { gap: 18px; }
.nav-logo { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; }
.nav-menu { align-items: center; gap: clamp(15px, 2vw, 30px); }
.nav-menu > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #344356;
    font-weight: 700;
    white-space: nowrap;
}
.nav-menu > a::after { bottom: 4px; height: 2px; }
.nav-btns { flex: 0 0 auto; gap: 6px; }
.btn-lang, .btn-login, .btn-try {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.2;
}
.btn-lang { padding-inline: 13px; }
.btn-login { padding-inline: 13px; }
.btn-try {
    padding-inline: 18px;
    background: var(--ui-accent);
    box-shadow: 0 5px 14px rgba(19, 32, 69, .14);
}
.btn-try:hover { background: var(--ui-accent-hover); transform: translateY(-1px); }
body.national-day-theme .btn-try:hover { background: var(--ui-accent-hover); }

.hamburger {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d7e5dc;
    border-radius: 8px;
    background: #fff;
}
.hamburger[aria-expanded="true"] { background: #edf9f2; border-color: #87b99c; }
.hamburger span { flex: 0 0 auto; }

.campaign-ribbon-inner { gap: 14px; }
.campaign-ribbon-text { line-height: 1.45; }
.campaign-ribbon-link {
    min-height: 44px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 47, 29, .14);
}

.hero-badge { border-radius: 8px; }
.hero h1 { letter-spacing: 0; }
.hero-desc { color: var(--ui-muted); }
.hero-actions { gap: 12px; }
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 28px;
    border-radius: 8px;
    line-height: 1.45;
    text-align: center;
}
.btn-primary { background: var(--ui-accent); box-shadow: 0 6px 20px rgba(19, 32, 69, .16); }
.btn-primary:hover { background: var(--ui-accent-hover); transform: translateY(-1px); }
.btn-secondary { border-width: 1px; background: #fff; border-color: #aebbc8; }
.btn-secondary:hover { border-color: var(--ui-accent); background: #f4f8fb; }
body.national-day-theme .btn-primary { background: #fff; color: #075f35; }
body.national-day-theme .btn-primary:hover { background: #fff7df; }
body.national-day-theme .btn-secondary { background: rgba(0, 47, 29, .38); color: #fff; border-color: rgba(255, 255, 255, .72); }
body.national-day-theme .btn-secondary:hover { background: #fff; color: #075f35; }

.section { scroll-margin-top: 80px; }
.section-head { margin-bottom: 44px; }
.section-desc { color: #526276; }
.section-badge { border-radius: 8px; }

.term-options { gap: 4px; padding: 5px; border-radius: 8px; }
.term-btn {
    min-height: 46px;
    padding: 9px 18px;
    border-radius: 6px;
    color: #46556a;
    white-space: nowrap;
}
.term-btn.active { background: var(--ui-accent); box-shadow: 0 3px 10px rgba(19, 32, 69, .15); }
body.national-day-theme .term-btn.active { background: #08783e; }

.plan {
    border-radius: 8px;
    padding: 32px 22px 24px;
    border-width: 1px;
    box-shadow: 0 3px 16px rgba(19, 32, 69, .04);
}
.plan:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(19, 32, 69, .1); }
.plan.popular { transform: none; border: 2px solid #08783e; box-shadow: 0 7px 24px rgba(8, 120, 62, .1); }
.plan.popular:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(8, 120, 62, .16); }
.pop-badge { border-radius: 6px; }
.plan-tag, .price-per, .limit span, .plan-support { color: #58697b; }
.plan-feats li.no { color: #718095; }
.plan-feats li.no .feat-check { color: #748297; }
.plan-limits { gap: 6px; }
.limit { border-radius: 6px; }
.btn-plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 10px 14px;
    border-radius: 8px;
    line-height: 1.45;
    background: #fff;
    color: var(--ui-accent);
    border-color: var(--ui-accent);
}
.btn-plan + .btn-plan { margin-top: 10px; }
.btn-plan:hover { background: var(--ui-accent); border-color: var(--ui-accent); transform: translateY(-1px); }
.btn-plan.filled { background: var(--ui-accent); border: 2px solid var(--ui-accent); }
.btn-plan.filled:hover { background: var(--ui-accent-hover); border-color: var(--ui-accent-hover); filter: none; transform: translateY(-1px); }
body.national-day-theme .btn-plan { border-color: #08783e; color: #075f35; }
body.national-day-theme .btn-plan:hover, body.national-day-theme .btn-plan.filled { background: #08783e; color: #fff; }
body.national-day-theme .btn-plan.filled:hover { background: #075f35; border-color: #075f35; }
.btn-plan.disabled { opacity: .7; }
body.national-day-theme .btn-plan.disabled {
    background: #eef1f3;
    border-color: #a8b1b8;
    color: #526276;
}

.service-highlight, .service-zatca, .upgrade-path, .faq-item { border-radius: 8px; }
.service-highlight summary, .service-zatca summary, .service-item summary, .upgrade-details summary { border-radius: 6px; }
.service-highlight summary:hover, .service-item summary:hover, .upgrade-details summary:hover { color: var(--ui-accent); }
.service-highlight summary:hover h3, .service-item summary:hover h4 { color: var(--ui-accent); }
.service-zatca summary:hover { color: #fff7df; }
.service-highlight summary::after, .service-zatca summary::after, .service-item summary::after, .upgrade-details summary::after {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #edf7f4;
    color: #08775d;
    font-size: 22px;
}
.service-zatca summary::after { background: rgba(255, 255, 255, .16); color: #fff; }
.service-filters button { border-radius: 8px; min-height: 46px; }
.service-filters button:hover { background: var(--service-soft); }
.service-filters button[aria-pressed="true"]:hover { background: var(--service-accent); }
.service-button { min-height: 50px; border-radius: 8px; }
.service-button:hover { background: var(--ui-accent-hover); border-color: var(--ui-accent-hover); }

.faq-item { margin-bottom: 10px; }
.faq-q { min-height: 60px; gap: 16px; font-weight: 700; }
.faq-q > span:first-child { flex: 1; }
.faq-arrow { width: 32px; height: 32px; border-radius: 6px; }
.faq-a p { color: #526276; }
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 12px 36px;
    border-radius: 8px;
    line-height: 1.45;
}
.btn-cta:hover { transform: translateY(-1px); }

@media (max-width: 768px) {
    .nav-menu { align-items: stretch; gap: 2px; padding: 12px 16px 16px; border-bottom: 1px solid var(--ui-border); border-radius: 0 0 8px 8px; }
    .nav-menu > a { min-height: 48px; padding: 10px 14px; border-radius: 6px; }
    .nav-menu > a:hover, .nav-menu > a:focus-visible { background: #edf9f2; color: var(--ui-accent); }
    .nav-menu > a::after { display: none; }
    .mobile-nav-btns { justify-content: stretch; margin-top: 6px; padding-top: 14px; }
    .mobile-nav-btns a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 14px; border-radius: 8px; }
    .mobile-nav-btns .btn-try-m { flex: 1; }
    .campaign-ribbon-inner { justify-content: space-between; }
    .campaign-ribbon-link { min-height: 44px; padding: 8px 12px; font-size: 12px; }
    .section-head { margin-bottom: 34px; }
}

@media (max-width: 480px) {
    .campaign-ribbon-inner { gap: 8px; }
    .campaign-ribbon-text { font-size: 12px; flex: 1 1 185px; }
    body.national-day-theme .hero { min-height: 450px; }
    .hero-actions { width: 100%; }
    .hero-actions .btn-primary { width: 100%; }
    .term-options { width: 100%; }
    .term-btn { flex: 1 1 auto; padding-inline: 9px; }
    .plan { padding: 28px 20px 24px; }
    .service-zatca summary strong { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
    .nav-menu.open { animation: none; }
    .btn-plan:hover, .btn-cta:hover, .btn-try:hover, .plan:hover, .plan.popular:hover { transform: none; }
}
