/* ==========================================================================
   AvalTrip — site styles (Bootstrap 5.3 + dark / light theme + RTL)
   ========================================================================== */

:root {
    --at-gold: #b8946a;
    --at-gold-hover: #a5815a;
    --at-gold-soft: rgba(184, 148, 106, .14);
    --at-radius: 1.25rem;
    --at-font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    --at-font-heading: "Fira Sans", "Roboto", system-ui, sans-serif;
    --at-header-h: 84px;
}

/* Dark theme (default, matches the original site) */
[data-bs-theme="dark"] {
    --at-bg: #1f2535;
    --at-surface: #2a3040;
    --at-surface-2: #323a4d;
    --at-text: #ffffff;
    --at-muted: #9aa3b5;
    --at-border: rgba(255, 255, 255, .09);
    --at-footer-bg: #131a2a;
    --bs-body-bg: var(--at-bg);
    --bs-body-color: #e9ebf0;
    --bs-border-color: var(--at-border);
    --bs-secondary-bg: var(--at-surface-2);
    --bs-tertiary-bg: var(--at-surface);
}

/* Light theme */
[data-bs-theme="light"] {
    --at-bg: #ffffff;
    --at-surface: #f6f3ee;
    --at-surface-2: #ede6dc;
    --at-text: #101828;
    --at-muted: #5d6476;
    --at-border: rgba(16, 24, 40, .1);
    --at-footer-bg: #131a2a;
    --bs-body-bg: var(--at-bg);
    --bs-body-color: #344054;
}

/* Language-specific fonts */
html[lang="fa"] { --at-font-body: "Vazirmatn", Tahoma, sans-serif; --at-font-heading: "Vazirmatn", Tahoma, sans-serif; }
html[lang="ar"] { --at-font-body: "Cairo", Tahoma, sans-serif; --at-font-heading: "Cairo", Tahoma, sans-serif; }

body {
    font-family: var(--at-font-body);
    background: var(--at-bg);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--at-font-heading);
    color: var(--at-text);
    font-weight: 600;
    line-height: 1.25;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--at-gold); }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--at-gold); outline-offset: 2px; }

.text-gold { color: var(--at-gold) !important; }
.text-muted-2 { color: var(--at-muted) !important; }
.link-gold { color: var(--at-gold); }
.link-gold:hover { color: var(--at-gold-hover); text-decoration: underline; }
.req { color: #e5484d; }
.optional { color: var(--at-muted); font-size: .85em; font-weight: 400; }

/* Mirrored icons (arrows) in RTL */
[dir="rtl"] .flip-rtl { display: inline-block; transform: scaleX(-1); }

.skip-link {
    position: absolute; top: .5rem; inset-inline-start: .5rem; z-index: 2000;
    background: var(--at-gold); color: #fff; padding: .5rem 1rem; border-radius: .5rem;
}

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .65rem 1.5rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-sm { padding: .35rem .9rem; }
.btn-gold { background: var(--at-gold); border-color: var(--at-gold); color: #fff; }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--at-gold-hover); border-color: var(--at-gold-hover); color: #fff; }
.btn-gold:disabled { background: var(--at-gold); border-color: var(--at-gold); opacity: .6; }
.btn-outline-gold { border: 1px solid var(--at-gold); color: var(--at-gold); background: transparent; }
.btn-outline-gold:hover { background: var(--at-gold); color: #fff; }
.btn-icon {
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
    min-width: 42px; height: 42px; padding: 0 .65rem; border-radius: 999px;
    border: 1px solid var(--at-border); background: transparent; color: var(--at-text);
}
.btn-icon:hover { border-color: var(--at-gold); color: var(--at-gold); }
.btn-icon.dropdown-toggle::after { display: none; }

/* Theme toggle icon */
[data-bs-theme="dark"] .theme-icon-light, [data-bs-theme="light"] .theme-icon-dark { display: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; }
.topbar { background: #141a28; color: #c9ced9; font-size: .85rem; padding: .45rem 0; }
.topbar a, .topbar-link { color: #e6e8ee; }
.topbar a:hover { color: var(--at-gold); }
.topbar-link i { color: var(--at-gold); margin-inline-end: .3rem; }
.topbar-note a { font-weight: 600; }
.social-list a { color: inherit; opacity: .85; }
.social-list a:hover { color: var(--at-gold); opacity: 1; }

.main-nav {
    background: var(--at-surface);
    border-bottom: 1px solid var(--at-border);
    min-height: var(--at-header-h);
    transition: box-shadow .25s ease;
}
.site-header.is-scrolled .main-nav { box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.brand-logo { width: 56px; height: 56px; object-fit: contain; }
.main-nav .nav-link {
    color: var(--at-text); font-weight: 600; font-size: .95rem; padding: .5rem .85rem !important; position: relative;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--at-gold); }
.main-nav .nav-link.active::after {
    content: ""; position: absolute; inset-inline: .85rem; bottom: .15rem; height: 2px; background: var(--at-gold); border-radius: 2px;
}
.navbar-toggler { border: 1px solid var(--at-border); font-size: 1.4rem; }
.navbar-toggler:focus { box-shadow: none; }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--at-gold); border-color: var(--at-border); border-radius: .85rem; padding: .4rem; }
.dropdown-item { border-radius: .5rem; }

@media (max-width: 991.98px) {
    .main-nav .navbar-collapse { padding: 1rem 0; }
    .main-nav .nav-link.active::after { display: none; }
}

/* ---------- Off-canvas info panel ---------- */
.info-panel { background: var(--at-surface); color: var(--bs-body-color); width: 360px; }
.btn-close-gold {
    width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--at-gold); color: #fff; font-size: 1.1rem;
}
.info-list li { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.info-list i { color: var(--at-gold); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--at-surface); }
.section-divider { border-color: var(--at-border); opacity: 1; margin: 0; }
.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700;
    color: var(--at-gold); margin-bottom: .6rem;
}
html[lang="fa"] .eyebrow, html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.section-title { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem); margin-bottom: 1rem; }
.lead-text { font-size: 1.12rem; color: var(--bs-body-color); }

/* ---------- Hero ---------- */
.hero { padding-top: 2rem; }
.hero-card {
    position: relative; overflow: hidden; border-radius: var(--at-radius);
    min-height: clamp(420px, 62vh, 620px); display: flex; align-items: flex-end;
    --hero-shade: linear-gradient(90deg, rgba(19, 26, 42, .88) 0%, rgba(19, 26, 42, .55) 45%, rgba(19, 26, 42, .1) 100%);
    background: var(--hero-shade), linear-gradient(180deg, transparent 50%, rgba(19, 26, 42, .6) 100%), var(--hero-bg) center / cover no-repeat;
}
[dir="rtl"] .hero-card {
    --hero-shade: linear-gradient(270deg, rgba(19, 26, 42, .88) 0%, rgba(19, 26, 42, .55) 45%, rgba(19, 26, 42, .1) 100%);
}
.hero .eyebrow { color: #e3c9a6; }
.hero-content { padding: clamp(2rem, 5vw, 4rem); max-width: 760px; color: #fff; }
.hero-title { color: #fff; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); font-weight: 700; margin-bottom: 1rem; }
.hero-lead { color: rgba(255, 255, 255, .85); font-size: 1.15rem; margin-bottom: 2rem; }
.hero .btn-outline-light { border-color: rgba(255, 255, 255, .6); }

/* ---------- Service items ---------- */
.service-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.service-icon {
    flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--at-surface-2); color: var(--at-gold); font-size: 1.8rem;
    transition: background .25s ease, color .25s ease;
}
.service-item:hover .service-icon, .feature-card:hover .service-icon { background: var(--at-gold); color: #fff; }
.service-title { font-size: 1.1rem; margin-bottom: .4rem; }
.service-text { color: var(--at-muted); font-size: .95rem; margin-bottom: .5rem; }
.service-more { color: var(--at-text); font-size: 1.2rem; }

.feature-card {
    background: var(--at-surface); border: 1px solid var(--at-border); border-radius: var(--at-radius);
    padding: 2rem; transition: transform .25s ease, border-color .25s ease;
}
.section-alt .feature-card { background: var(--at-bg); }
.feature-card:hover { transform: translateY(-4px); border-color: var(--at-gold); }
.feature-card .service-icon { margin-bottom: 1.25rem; }

.mini-feature { display: flex; gap: 1rem; align-items: flex-start; }
.mini-feature > i { color: var(--at-gold); font-size: 1.5rem; line-height: 1.2; }
.mini-feature-title { font-size: 1.05rem; margin-bottom: .25rem; }

/* ---------- Why choose us ---------- */
.check-list li { margin-bottom: 1.1rem; }
.check-title { font-size: 1.05rem; margin-bottom: .3rem; display: flex; align-items: center; gap: .5rem; }
.check-title i { color: var(--at-gold); font-size: 1.2rem; }

.image-stack { position: relative; min-height: 460px; }
.image-stack img { position: absolute; object-fit: cover; border-radius: var(--at-radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.image-stack-main { width: 48%; height: 400px; inset-inline-start: 0; bottom: 0; z-index: 2; }
.image-stack-side { width: 58%; height: 260px; inset-inline-end: 0; top: 0; }
.more-about {
    position: absolute; inset-inline-end: 4%; bottom: 4%; width: 120px; height: 120px;
    display: flex; align-items: center; justify-content: center; color: var(--at-muted);
}
.more-about svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.more-about text { fill: currentColor; font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; }
.more-about i { font-size: 1.8rem; color: var(--at-text); }
.more-about:hover { color: var(--at-gold); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 767.98px) {
    .image-stack { min-height: 380px; }
    .image-stack-main { height: 320px; width: 55%; }
    .image-stack-side { height: 200px; }
    .more-about { display: none; }
}

/* ---------- Stats ---------- */
.stat-card {
    background: var(--at-surface); border: 1px solid var(--at-border); border-radius: var(--at-radius);
    padding: 1.75rem; text-align: center; height: 100%;
}
.stat-value { font-family: var(--at-font-heading); font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); font-weight: 700; color: var(--at-gold); }
.stat-label { color: var(--at-muted); font-size: .95rem; }
.stat-card-sm { padding: 1rem; }
.stat-card-sm .stat-value { font-size: 1.6rem; }
a.stat-card:hover { border-color: var(--at-gold); }

/* ---------- Page header (inner pages) ---------- */
.page-header {
    padding: 110px 0 90px; text-align: center; color: #fff;
    background: linear-gradient(rgba(19, 26, 42, .78), rgba(19, 26, 42, .88)), var(--page-header-bg) center / cover no-repeat;
}
.page-header-title { color: #fff; font-size: clamp(2rem, 1.4rem + 2.5vw, 3.4rem); margin-bottom: 1rem; }
.page-header .breadcrumb { justify-content: center; --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); --bs-breadcrumb-item-active-color: var(--at-gold); }
.page-header .breadcrumb a { color: #fff; }
[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before { float: right; padding-left: var(--bs-breadcrumb-item-padding-x); padding-right: 0; }

/* ---------- About gallery ---------- */
.about-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; gap: 1rem; }
.about-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--at-radius); }
.about-gallery img:first-child { grid-row: span 2; }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.logo-tile {
    width: 110px; height: 72px; background: #fff; border-radius: 1rem; display: flex; align-items: center; justify-content: center;
    padding: .75rem; border: 1px solid var(--at-border);
}
.logo-tile img { max-height: 100%; object-fit: contain; filter: grayscale(.2); }
.logo-tile-wide { width: 160px; }

/* ---------- Forms ---------- */
.form-card {
    background: var(--at-surface); border: 1px solid var(--at-border); border-radius: var(--at-radius);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}
.form-label { font-weight: 500; color: var(--at-text); margin-bottom: .4rem; }
.form-control, .form-select {
    background-color: var(--at-bg); border: 1px solid var(--at-border); color: var(--at-text);
    border-radius: .75rem; padding: .75rem 1rem; min-height: 50px;
}
.form-control::placeholder { color: var(--at-muted); opacity: .7; }
.form-control:focus, .form-select:focus { border-color: var(--at-gold); box-shadow: 0 0 0 .2rem var(--at-gold-soft); background-color: var(--at-bg); color: var(--at-text); }
.form-control.input-validation-error, .form-select.input-validation-error { border-color: #e5484d; }
[dir="rtl"] .form-select { background-position: left 1rem center; padding-left: 2.5rem; padding-right: 1rem; }
[dir="rtl"] input[dir="ltr"] { text-align: right; }
.form-check-input { width: 1.2em; height: 1.2em; border-color: var(--at-muted); background-color: transparent; }
.form-check-input:checked { background-color: var(--at-gold); border-color: var(--at-gold); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem var(--at-gold-soft); border-color: var(--at-gold); }
.invalid-feedback { font-size: .85rem; color: #ff6b6b; }
.invalid-feedback:empty { display: none !important; }
.field-validation-valid { display: none !important; }

.form-section { border: 0; padding: 0; margin: 0 0 2.25rem; }
.form-section-title {
    font-size: 1.15rem; font-weight: 600; color: var(--at-text); font-family: var(--at-font-heading);
    display: flex; align-items: center; gap: .65rem; padding-bottom: .9rem; margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--at-border); width: 100%; float: none;
}
.step-badge {
    width: 30px; height: 30px; border-radius: 50%; background: var(--at-gold); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 700; flex: 0 0 auto;
}
.choice-card {
    display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; user-select: none;
    padding: .8rem 1.2rem; border-radius: .85rem; border: 1px solid var(--at-border); background: var(--at-bg);
    font-weight: 500; transition: border-color .2s ease, background .2s ease;
}
.choice-card .form-check-input { margin: 0; }
.choice-card i { color: var(--at-gold); font-size: 1.15rem; }
.choice-card:has(input:checked) { border-color: var(--at-gold); background: var(--at-gold-soft); }

/* Honeypot: hidden from people, visible to naive bots */
/* Clipped in place (not moved off-screen): a large negative offset makes RTL pages scroll sideways. */
.hp-field { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.side-card {
    background: var(--at-surface); border: 1px solid var(--at-border); border-radius: var(--at-radius);
    padding: 2rem; top: calc(var(--at-header-h) + 1.5rem);
}
.steps li { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }

.success-card { max-width: 680px; }
.success-icon {
    width: 84px; height: 84px; border-radius: 50%; background: var(--at-gold); color: #fff; font-size: 2.6rem;
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.reference-code {
    display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.4rem;
    font-weight: 700; letter-spacing: .08em; color: var(--at-gold); background: var(--at-gold-soft);
    padding: .5rem 1.25rem; border-radius: .75rem;
}

/* Contact page */
.contact-list li { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-list .service-icon { width: 56px; height: 56px; font-size: 1.35rem; }
.contact-list h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.contact-list p { margin: 0; color: var(--at-muted); }
.still-card {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
    background: var(--at-surface); border: 1px solid var(--at-border); border-radius: var(--at-radius); padding: 2rem 2.5rem;
}

/* ---------- Call to action ---------- */
.cta-section { padding: 110px 0; }
.cta-title { font-size: clamp(2.4rem, 1.5rem + 3.5vw, 4.4rem); font-weight: 700; line-height: 1.2; margin: 0; }
.cta-underline { position: relative; display: inline-block; }
.cta-underline::after {
    content: ""; position: absolute; inset-inline: 10% 0; bottom: -.1em; height: .12em;
    border-bottom: 4px solid var(--at-gold); border-radius: 50%;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--at-footer-bg); color: #aeb4c2; padding: 80px 0 0; font-size: .95rem; }
.site-footer a { color: #d5d9e2; }
.site-footer a:hover { color: var(--at-gold); }
.footer-logo { width: 90px; height: 90px; object-fit: contain; }
.footer-title { color: #fff; font-size: 1.1rem; margin-bottom: 1.25rem; }
.footer-text { color: #aeb4c2; }
.footer-list li { margin-bottom: .6rem; }
.footer-phone { font-size: 1.25rem; color: var(--at-gold) !important; font-weight: 500; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 60px; padding: 1.5rem 0; font-size: .9rem; }

/* ---------- Floating buttons ---------- */
.whatsapp-float, .back-to-top {
    position: fixed; z-index: 1040; width: 52px; height: 52px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; border: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
}
.whatsapp-float { bottom: 24px; inset-inline-start: 24px; background: #25d366; color: #fff; font-size: 1.6rem; }
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }
.back-to-top {
    bottom: 24px; inset-inline-end: 24px; background: var(--at-gold); color: #fff; font-size: 1.2rem;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; }

/* ---------- Error page ---------- */
.error-page { padding: 140px 0; }
.error-code { font-family: var(--at-font-heading); font-size: clamp(5rem, 3rem + 8vw, 9rem); font-weight: 700; color: var(--at-gold); line-height: 1; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .more-about svg { animation: none; }
    * { scroll-behavior: auto !important; }
}

/* ---------- Admin ---------- */
.admin { background: var(--at-bg); }
.admin-nav { background: var(--at-surface); border-bottom: 1px solid var(--at-border); }
.admin-nav .nav-link { color: var(--at-text); font-weight: 500; }
.admin-nav .nav-link.active, .admin-nav .nav-link:hover { color: var(--at-gold); }
.admin-login { max-width: 420px; }
.admin-table { --bs-table-bg: transparent; }
.admin-table th { color: var(--at-muted); font-weight: 500; font-size: .85rem; white-space: nowrap; }
.admin-table td, .admin-table th { padding: .9rem 1rem; }
.details-list dt { color: var(--at-muted); font-weight: 500; }
.details-list dd { color: var(--at-text); word-break: break-word; }
.message-body { white-space: pre-wrap; }
.pagination { --bs-pagination-active-bg: var(--at-gold); --bs-pagination-active-border-color: var(--at-gold); --bs-pagination-color: var(--at-text); --bs-pagination-bg: var(--at-surface); --bs-pagination-border-color: var(--at-border); }
.admin-search { width: 280px; max-width: 100%; }

/* ---------- FAQ (accordion) ---------- */
.faq-accordion {
    --bs-accordion-bg: var(--at-bg);
    --bs-accordion-border-color: var(--at-border);
    --bs-accordion-border-radius: var(--at-radius);
    --bs-accordion-inner-border-radius: var(--at-radius);
    --bs-accordion-btn-color: var(--at-text);
    --bs-accordion-active-color: var(--at-gold);
    --bs-accordion-active-bg: var(--at-gold-soft);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem var(--at-gold-soft);
    --bs-accordion-btn-padding-y: 1.15rem;
}
.faq-accordion .accordion-item { margin-bottom: .75rem; border-radius: 1rem !important; overflow: hidden; border: 1px solid var(--at-border); }
.faq-accordion .accordion-header { margin: 0; }
.faq-accordion .accordion-button { font-family: var(--at-font-heading); font-weight: 600; font-size: 1.05rem; gap: 1rem; }
[dir="rtl"] .faq-accordion .accordion-button::after { margin-left: 0; margin-right: auto; }
.faq-accordion .accordion-body { color: var(--at-muted); }

/* ---------- Admin: reports & content editor ---------- */
.report-card { background: var(--at-surface); border: 1px solid var(--at-border); border-radius: var(--at-radius); padding: 1.5rem; height: 100%; }
.report-card h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.bar-list { list-style: none; padding: 0; margin: 0; }
.bar-list li { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; align-items: center; gap: .75rem; padding: .3rem 0; font-size: .9rem; }
.bar-track { height: 10px; background: var(--at-surface-2); border-radius: 4px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--at-gold); border-radius: 0 4px 4px 0; min-width: 2px; }
[dir="rtl"] .bar-fill { border-radius: 4px 0 0 4px; }
.bar-value { font-variant-numeric: tabular-nums; color: var(--at-text); min-width: 2.5rem; text-align: end; }
.bar-label { color: var(--at-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.month-chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 1.5rem; }
.month-bar { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.month-bar .col-fill { width: 100%; max-width: 38px; background: var(--at-gold); border-radius: 4px 4px 0 0; min-height: 2px; }
.month-bar .col-value { font-size: .75rem; color: var(--at-text); margin-bottom: .25rem; font-variant-numeric: tabular-nums; }
.month-bar .col-label { font-size: .7rem; color: var(--at-muted); margin-top: .35rem; white-space: nowrap; }
.month-bar:hover .col-fill { background: var(--at-gold-hover); }
.content-key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; color: var(--at-muted); word-break: break-all; }
.content-original { font-size: .82rem; color: var(--at-muted); }
.content-row.is-edited { border-inline-start: 3px solid var(--at-gold); }
.char-count { font-size: .75rem; color: var(--at-muted); }
.char-count.is-over { color: #ff6b6b; font-weight: 600; }
.group-nav .nav-link { color: var(--at-text); border-radius: 999px; padding: .35rem .9rem; font-size: .88rem; }
.group-nav .nav-link.active { background: var(--at-gold); color: #fff; }
.serp-preview { background: #fff; color: #202124; border-radius: .75rem; padding: 1rem 1.25rem; font-family: Arial, sans-serif; }
.serp-preview .serp-url { color: #4d5156; font-size: .8rem; }
.serp-preview .serp-title { color: #1a0dab; font-size: 1.15rem; line-height: 1.3; margin: .2rem 0; }
.serp-preview .serp-desc { color: #4d5156; font-size: .85rem; }
.faq-accordion .accordion-button::after { filter: grayscale(1) brightness(1.4); }
[data-bs-theme="light"] .faq-accordion .accordion-button::after { filter: grayscale(1) brightness(.4); }

/* ---------- Captcha ---------- */
.captcha-image { border-radius: .75rem; border: 1px solid var(--at-border); background: #232a3b; }
.captcha-input { max-width: 170px; letter-spacing: .3em; font-weight: 600; text-align: center; }
[dir="rtl"] .captcha-input { text-align: center; }

/* ---------- Registration extras ---------- */
.choice-radio { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; padding: .7rem 1.1rem; border-radius: .85rem; border: 1px solid var(--at-border); background: var(--at-bg); font-weight: 500; }
.choice-radio .form-check-input { margin: 0; border-radius: 50%; }
.choice-radio:has(input:checked) { border-color: var(--at-gold); background: var(--at-gold-soft); }
.form-control[type="file"] { padding: .6rem 1rem; }
