:root {
    --bg: #0b0f19;
    --bg-strong: #131a28;
    --surface: rgba(26, 35, 50, 0.65);
    --surface-strong: rgba(30, 41, 59, 0.9);
    --surface-soft: rgba(255, 255, 255, 0.03);
    --ink: #f8fafc;
    --ink-soft: #94a3b8;
    --ink-faint: #475569;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.15);
    --gold: #fde047;
    --gold-deep: #fbbf24;
    --blue: #3b82f6;
    --blue-deep: #2563eb;
    --emerald: #10b981;
    --coral: #ef4444;
    --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 18px 46px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 10px 22px rgba(0, 0, 0, 0.2);
    --radius-xl: 2.25rem;
    --radius-lg: 1.65rem;
    --radius-md: 1.1rem;
    --font-ui: "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --chrome-bg: linear-gradient(135deg, #0f172a, #0b0f19);
    --header-bg: rgba(11, 15, 25, 0.85);
    --footer-bg: linear-gradient(180deg, #131a28, #0b0f19);
    --chrome-text: rgba(255, 255, 255, 0.82);
    --chrome-link: rgba(255, 255, 255, 0.8);
    --chrome-link-hover: #fff5d5;
    --utility-outline-text: rgba(255, 255, 255, 0.88);
    --brand-logo-bg: rgba(255, 255, 255, 0.92);
    --main-nav-bg: rgba(255, 255, 255, 0.05);
    --main-nav-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --footer-title: #f3dfab;
    --footer-copy: rgba(255, 255, 255, 0.78);
    --theme-toggle-bg: rgba(255, 255, 255, 0.08);
    --theme-toggle-text: #f8fafc;
    --theme-toggle-border: rgba(255, 255, 255, 0.1);
    --theme-toggle-shadow: none;
    --bg-accent-a: rgba(37, 99, 235, 0.12);
    --bg-accent-b: rgba(251, 191, 36, 0.08);
    --grid-line: rgba(255, 255, 255, 0.015);
    --eyebrow-bg: rgba(255, 255, 255, 0.05);
    --button-primary-bg: linear-gradient(135deg, var(--gold-deep), #f59e0b);
    --button-primary-text: #0b0f19;
    --button-primary-shadow: 0 10px 30px rgba(251, 191, 36, 0.25);
    --button-secondary-bg: rgba(255, 255, 255, 0.05);
    --button-ghost-bg: rgba(255, 255, 255, 0.02);
    --install-banner-bg: rgba(24, 40, 69, 0.92);
    --install-banner-text: #fff;
    --install-banner-muted: rgba(255, 255, 255, 0.8);
    --hero-glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.08));
    --hero-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    --hero-glass-refined-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.06));
    --orbit-one-bg: rgba(248, 220, 122, 0.45);
    --orbit-two-bg: rgba(94, 155, 198, 0.28);
    --phone-shell-bg: radial-gradient(circle at top right, rgba(223, 194, 122, 0.24), transparent 34%), linear-gradient(180deg, #1a2740, #101a2e);
    --phone-shell-text: #fff;
    --phone-shell-muted: rgba(255, 255, 255, 0.78);
    --phone-highlight-bg: linear-gradient(135deg, rgba(223, 194, 122, 0.22), rgba(255, 255, 255, 0.08));
    --mini-card-bg: rgba(255, 255, 255, 0.06);
    --tab-bg: rgba(20, 35, 61, 0.05);
    --tab-text: var(--ink-soft);
    --tab-active-bg: linear-gradient(135deg, #182845, var(--blue-deep));
    --tab-active-text: #fff;
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-shadow: inset 0 1px 2px rgba(20, 35, 61, 0.03);
    --input-focus-ring: 0 0 0 3px rgba(107, 143, 201, 0.16);
    --subtle-panel-bg: rgba(20, 35, 61, 0.04);
    --dash-card-bg: rgba(255, 255, 255, 0.88);
    --dash-card-strong-bg: rgba(255, 255, 255, 0.96);
    --success-banner-bg: rgba(22, 163, 74, 0.14);
    --error-banner-bg: rgba(220, 38, 38, 0.14);
}

[data-theme="light"] {
    --bg: #f5eee3;
    --bg-strong: #ece1d3;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --surface-soft: rgba(20, 35, 61, 0.04);
    --ink: #14233d;
    --ink-soft: #5f6c80;
    --ink-faint: #8d98aa;
    --line: rgba(20, 35, 61, 0.1);
    --line-strong: rgba(20, 35, 61, 0.16);
    --gold: #dfc27a;
    --gold-deep: #b98926;
    --blue: #6b8fc9;
    --blue-deep: #1f3d73;
    --emerald: #8fad8a;
    --coral: #df7d67;
    --shadow-lg: 0 34px 90px rgba(20, 35, 61, 0.14);
    --shadow-md: 0 18px 46px rgba(20, 35, 61, 0.09);
    --shadow-sm: 0 10px 22px rgba(20, 35, 61, 0.06);
    --chrome-bg: linear-gradient(135deg, #ede4d8, #e5d7c3);
    --header-bg: rgba(250, 245, 238, 0.88);
    --footer-bg: linear-gradient(180deg, #e7dbc8, #dccdb7);
    --chrome-text: rgba(20, 35, 61, 0.82);
    --chrome-link: rgba(20, 35, 61, 0.78);
    --chrome-link-hover: #8a631a;
    --utility-outline-text: rgba(20, 35, 61, 0.84);
    --brand-logo-bg: rgba(255, 255, 255, 0.96);
    --main-nav-bg: rgba(20, 35, 61, 0.04);
    --main-nav-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    --footer-title: #14233d;
    --footer-copy: rgba(20, 35, 61, 0.8);
    --theme-toggle-bg: rgba(20, 35, 61, 0.06);
    --theme-toggle-text: #14233d;
    --theme-toggle-border: rgba(20, 35, 61, 0.1);
    --theme-toggle-shadow: 0 10px 22px rgba(20, 35, 61, 0.08);
    --bg-accent-a: rgba(31, 61, 115, 0.08);
    --bg-accent-b: rgba(185, 137, 38, 0.08);
    --grid-line: rgba(20, 35, 61, 0.03);
    --eyebrow-bg: rgba(20, 35, 61, 0.05);
    --button-primary-bg: linear-gradient(135deg, #14233d, #355c97);
    --button-primary-text: #f8fafc;
    --button-primary-shadow: 0 12px 32px rgba(31, 61, 115, 0.18);
    --button-secondary-bg: rgba(255, 255, 255, 0.74);
    --button-ghost-bg: rgba(20, 35, 61, 0.05);
    --install-banner-bg: rgba(248, 243, 236, 0.94);
    --install-banner-text: #14233d;
    --install-banner-muted: rgba(20, 35, 61, 0.72);
    --hero-glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.28));
    --hero-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    --hero-glass-refined-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.16));
    --orbit-one-bg: rgba(223, 194, 122, 0.32);
    --orbit-two-bg: rgba(107, 143, 201, 0.2);
    --phone-shell-bg: radial-gradient(circle at top right, rgba(31, 61, 115, 0.1), transparent 34%), linear-gradient(180deg, #fdfbf7, #eee4d6);
    --phone-shell-text: #14233d;
    --phone-shell-muted: rgba(20, 35, 61, 0.72);
    --phone-highlight-bg: linear-gradient(135deg, rgba(31, 61, 115, 0.1), rgba(223, 194, 122, 0.16));
    --mini-card-bg: rgba(255, 255, 255, 0.7);
    --tab-bg: rgba(20, 35, 61, 0.05);
    --tab-text: var(--ink-soft);
    --tab-active-bg: linear-gradient(135deg, #14233d, #355c97);
    --tab-active-text: #f8fafc;
    --input-bg: rgba(255, 255, 255, 0.95);
    --input-shadow: inset 0 1px 2px rgba(20, 35, 61, 0.04);
    --input-focus-ring: 0 0 0 3px rgba(31, 61, 115, 0.14);
    --subtle-panel-bg: rgba(20, 35, 61, 0.04);
    --dash-card-bg: rgba(255, 255, 255, 0.82);
    --dash-card-strong-bg: rgba(255, 255, 255, 0.94);
    --success-banner-bg: rgba(22, 163, 74, 0.12);
    --error-banner-bg: rgba(220, 38, 38, 0.1);
}

html,
body {
    margin: 0;
    background:
        radial-gradient(circle at 10% 20%, var(--bg-accent-a), transparent 30%),
        radial-gradient(circle at 90% 80%, var(--bg-accent-b), transparent 30%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-strong) 100%);
    color: var(--ink);
    font-family: var(--font-ui);
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    line-height: 1.7;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1), transparent 85%);
}

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

a {
    color: inherit;
    font-family: inherit;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

a:hover,
button:hover,
input:hover,
select:hover,
textarea:hover {
    outline: none;
    border-color: transparent !important;
}

button,
input,
select,
textarea {
    font-family: var(--font-ui);
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.35;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.8;
}

.rtl-app {
    direction: rtl;
}

.hero-shell,
.inner-hero,
.section-block,
.download-cta,
.coverage-grid,
.offer-layout,
.faq-list,
.contact-grid {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.hero-shell {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 2.75rem;
    padding: 4.8rem 0 3rem;
    align-items: center;
}

.hero-copy {
    display: grid;
    gap: 1.7rem;
}

.hero-copy-refined {
    gap: 1.2rem;
    align-content: start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: var(--eyebrow-bg);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-ui);
    backdrop-filter: blur(12px);
}

.hero-copy h1,
.inner-hero h1 {
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    line-height: 1.25;
    max-width: 12ch;
    font-weight: 800;
}

.hero-title-refined {
    font-size: clamp(2rem, 3.2vw, 3.4rem) !important;
    line-height: 1.24;
    max-width: 15ch !important;
    letter-spacing: -0.02em;
}

.hero-copy p,
.inner-hero p {
    max-width: 64ch;
    font-size: 1.05rem;
}

.hero-description-refined {
    max-width: 60ch;
    font-size: 0.97rem !important;
    line-height: 1.9;
}

.hero-actions,
.cta-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.primary-button,
.secondary-button,
.ghost-link,
.text-link {
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.primary-button,
.secondary-button,
.ghost-link {
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    font-weight: 700;
}

.primary-button {
    background: var(--button-primary-bg);
    color: var(--button-primary-text);
    box-shadow: var(--button-primary-shadow);
}

.secondary-button {
    background: var(--button-secondary-bg);
    color: var(--ink);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
}

.ghost-link {
    background: var(--button-ghost-bg);
    color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-link:hover,
.text-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: transparent !important;
}

.text-link {
    color: var(--ink);
    font-weight: 700;
}

.location-tools {
    margin-top: 1rem;
}

.auction-map-links,
.goods-location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.auction-map-links {
    margin-top: 0.95rem;
}

.map-link {
    padding: 0.78rem 1.05rem;
    font-size: 0.9rem;
}

.install-banner {
    position: sticky;
    bottom: 1rem;
    z-index: 40;
    padding: 0 0 1rem;
}

.install-banner[hidden] {
    display: none !important;
}

.install-banner-content {
    width: min(980px, calc(100% - 2rem));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1rem 1.15rem;
    background: var(--install-banner-bg);
    color: var(--install-banner-text);
    border-radius: 1.35rem;
    box-shadow: 0 20px 55px rgba(20, 35, 61, 0.2);
    backdrop-filter: blur(18px);
}

.install-banner-copy {
    display: grid;
    gap: 0.18rem;
}

.install-banner-copy strong {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}

.install-banner-copy span {
    color: var(--install-banner-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.install-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.install-button {
    min-width: 8.5rem;
    padding: 0.88rem 1.3rem;
    box-shadow: none;
}

.install-dismiss {
    padding: 0.7rem 1rem;
    color: var(--install-banner-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.install-dismiss:hover {
    color: var(--install-banner-text);
    transform: translateY(-1px);
}

.settings-logo-panel {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 1.2rem;
    background: var(--subtle-panel-bg);
    border-radius: 1.35rem;
}

.settings-logo-preview-shell {
    display: grid;
    place-items: center;
}

.settings-logo-preview,
.settings-logo-fallback {
    width: 100%;
    max-width: 11rem;
    aspect-ratio: 1;
    border-radius: 1.4rem;
    background: var(--surface-strong);
    box-shadow: var(--shadow-sm);
}

.settings-logo-preview {
    object-fit: cover;
    padding: 0.45rem;
}

.settings-logo-fallback {
    display: grid;
    place-items: center;
    padding: 1rem;
    text-align: center;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.5;
}

.settings-logo-copy {
    display: grid;
    gap: 0.6rem;
}

.settings-logo-copy strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.settings-logo-copy span,
.settings-logo-copy small,
.settings-logo-meta {
    color: var(--ink-soft);
}

.settings-file-field {
    max-width: 32rem;
}

.settings-logo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.location-status {
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 700;
}

.stat-card strong,
.countdown strong,
.info-panel strong,
.dashboard-overview strong {
    font-variant-numeric: tabular-nums;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card,
.info-panel,
.auction-card,
.feature-card,
.partner-pill,
.category-card,
.coverage-card,
.offer-form,
.process-panel,
.faq-item,
.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card {
    padding: 1.35rem 1.3rem;
    display: grid;
    gap: 0.45rem;
    position: relative;
    overflow: hidden;
}

.stat-card strong {
    font-size: 1.7rem;
    color: var(--ink);
}

.stat-card span {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 0.24rem;
    background: linear-gradient(90deg, var(--gold-deep), rgba(31, 61, 115, 0.3));
}

.hero-visual {
    position: relative;
    min-height: 38rem;
    display: grid;
    place-items: center;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 10% 9% 8%;
    border-radius: 2.5rem;
    background: var(--hero-glass-bg);
    box-shadow: var(--hero-glass-shadow);
    backdrop-filter: blur(16px);
}

.hero-visual-refined::before {
    inset: 12% 11% 10%;
    background: var(--hero-glass-refined-bg);
    box-shadow: none;
}

.hero-orbit {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
}

.hero-orbit-one {
    inset: 4rem 2rem auto auto;
    width: 15rem;
    height: 15rem;
    background: var(--orbit-one-bg);
}

.hero-orbit-two {
    inset: auto auto 4rem 1rem;
    width: 11rem;
    height: 11rem;
    background: var(--orbit-two-bg);
}

.phone-frame {
    position: relative;
    z-index: 1;
    width: min(100%, 24rem);
    padding: 1.25rem;
    border-radius: 2.2rem;
    background: var(--phone-shell-bg);
    color: var(--phone-shell-text);
    box-shadow: var(--shadow-lg);
}

.phone-frame::before {
    content: "";
    position: absolute;
    inset: 0.7rem;
    border-radius: 1.7rem;
    pointer-events: none;
}

.hero-shell-refined .phone-frame::before {
    display: none;
}

.phone-header,
.phone-highlight,
.mini-auction-list article,
.auction-topline,
.auction-meta,
.countdown,
.auction-footer,
.section-heading,
.tab-strip,
.auction-grid,
.partners-wall,
.category-grid,
.feature-grid,
.coverage-grid,
.field-grid,
.step-list,
.contact-grid {
    display: grid;
    gap: 1rem;
}

.phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--phone-shell-muted);
    padding-bottom: 0.85rem;
}

.phone-highlight {
    margin: 1.25rem 0;
    padding: 1.45rem;
    border-radius: var(--radius-lg);
    background: var(--phone-highlight-bg);
}

.phone-highlight strong,
.info-panel span {
    color: var(--gold);
}

.phone-highlight h2 {
    margin: 0.45rem 0;
}

.mini-auction-list article {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1rem;
    border-radius: 1.2rem;
    background: var(--mini-card-bg);
}

.mini-auction-list strong,
.mini-auction-list b {
    color: var(--phone-shell-text);
}

.mini-auction-list span {
    color: var(--phone-shell-muted);
    font-size: 0.84rem;
}

.section-block,
.download-cta,
.faq-list,
.coverage-grid,
.contact-grid {
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
}

.compact-section {
    padding-top: 0.5rem;
}

.section-heading {
    grid-template-columns: 1fr auto;
    align-items: end;
    margin-bottom: 1.9rem;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
}

.section-heading p {
    max-width: 58ch;
}

.tab-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tab-strip span {
    padding: 0.78rem 1.05rem;
    border-radius: 999px;
    background: var(--tab-bg);
    color: var(--tab-text);
    font-weight: 700;
}

.tab-strip .active {
    background: var(--tab-active-bg);
    color: var(--tab-active-text);
}

.auction-grid,
.feature-grid,
.partners-wall,
.category-grid,
.coverage-grid,
.contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partners-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-grid,
.coverage-grid,
.contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auction-card,
.feature-card,
.partner-pill,
.category-card,
.coverage-card,
.contact-card {
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.auction-card {
    position: relative;
    overflow: hidden;
}

.auction-card:hover,
.feature-card:hover,
.partner-pill:hover,
.category-card:hover,
.coverage-card:hover,
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    border-color: var(--line-strong) !important;
    background: var(--surface-strong);
}

.auction-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 0.38rem;
    background: currentColor;
    opacity: 0.85;
}

.tone-gold {
    color: var(--gold-deep);
}

.tone-blue {
    color: var(--blue-deep);
}

.tone-emerald {
    color: #6b8c48;
}

.tone-coral {
    color: var(--coral);
}

.auction-card h3,
.feature-card h3,
.category-card h3,
.coverage-card h2 {
    color: var(--ink);
}

.auction-card h3,
.feature-card h3,
.category-card h3 {
    font-size: 1.28rem;
}

.auction-topline,
.auction-meta,
.auction-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auction-category,
.auction-value {
    font-size: 0.86rem;
    font-weight: 700;
}

.auction-meta {
    margin: 1rem 0 1.25rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
    gap: 0.8rem;
}

.countdown {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
}

.countdown div {
    padding: 0.85rem 0.65rem;
    border-radius: 1rem;
    background: rgba(20, 35, 61, 0.045);
    text-align: center;
}

.countdown strong {
    display: block;
    color: var(--ink);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.countdown.is-complete div {
    background: rgba(185, 37, 37, 0.06);
}

.countdown span,
.auction-footer span,
.feature-card p,
.partner-pill span,
.category-card small,
.coverage-region,
.info-panel small,
.form-actions span,
.field-stack span,
.field-grid label span,
.contact-card span {
    color: var(--ink-soft);
}

.bid-summary,
.auction-note {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-top: 1rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.auction-distance-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 0.85rem;
    padding: 0.62rem 0.9rem;
    border-radius: 999px;
    background: rgba(107, 143, 201, 0.13);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 800;
}

.bid-entry {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.9rem;
    align-items: end;
    margin-top: 1rem;
}

.bid-button {
    min-height: 3.35rem;
}

.bid-guidance {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.auctions-hero-shell {
    padding-bottom: 2.2rem;
}

.auctions-hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.auctions-hero-visual {
    min-height: 100%;
}

.auctions-preview-frame {
    width: min(100%, 28rem);
}

.auctions-location-pill {
    display: inline-flex;
    align-items: center;
    min-height: 3.2rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: var(--subtle-panel-bg);
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.8;
}

.auctions-list-card {
    display: grid;
    align-content: start;
}

.auctions-card-summary {
    row-gap: 0.55rem;
}

.auctions-empty-state {
    display: grid;
    gap: 0.55rem;
}

.auctions-empty-state strong {
    color: var(--ink);
    font-size: 1.08rem;
}

.bid-threshold,
.bid-validation {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 0.95rem;
    border-radius: 1rem;
    font-size: 0.9rem;
}

.bid-threshold {
    background: rgba(165, 129, 45, 0.12);
    color: var(--ink);
    font-weight: 700;
}

.bid-validation.is-error {
    background: rgba(185, 37, 37, 0.1);
    color: #8d2121;
    font-weight: 700;
}

.bid-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    filter: saturate(0.72);
}

.auction-footer {
    margin-top: 1.2rem;
}

.feature-card {
    gap: 0.9rem;
    display: grid;
}

.feature-metric {
    color: var(--gold-deep);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.partner-pill {
    display: grid;
    gap: 0.4rem;
    align-content: start;
}

.partner-pill strong {
    font-size: 1.08rem;
}

.category-card {
    min-height: 15rem;
    display: grid;
    gap: 0.8rem;
    align-content: end;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: auto -10% -35% auto;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    filter: blur(10px);
}

.accent-gold {
    background: linear-gradient(180deg, rgba(255, 249, 236, 0.96), rgba(223, 194, 122, 0.28));
}

.accent-blue {
    background: linear-gradient(180deg, rgba(244, 248, 255, 0.97), rgba(107, 143, 201, 0.22));
}

.accent-coral {
    background: linear-gradient(180deg, rgba(255, 246, 243, 0.97), rgba(223, 125, 103, 0.22));
}

.download-cta,
.inner-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding-top: 3rem;
}

.download-cta {
    margin-top: 1.6rem;
    margin-bottom: 2rem;
    padding: 2.2rem;
    border-radius: calc(var(--radius-xl) + 0.4rem);
    background:
        radial-gradient(circle at top left, rgba(223, 194, 122, 0.18), transparent 24%),
        linear-gradient(135deg, #11213b, #1d3b8a);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.download-cta p,
.download-cta .eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

.download-cta .eyebrow {
    background: rgba(255, 255, 255, 0.12);
}

.download-cta h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.inner-hero {
    padding-bottom: 2rem;
}

.info-panel {
    padding: 1.45rem 1.6rem;
    min-width: 17rem;
    display: grid;
    gap: 0.35rem;
    background: var(--surface-strong);
}

.info-panel strong {
    font-size: 1.8rem;
    color: var(--ink);
}

.coverage-card strong,
.contact-card strong {
    font-size: 1.05rem;
    color: var(--ink);
}

.offer-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 1.5rem;
    align-items: start;
}

.auth-layout {
    padding-top: 1rem;
}

.auth-form {
    display: grid;
    gap: 1.25rem;
}

.offer-form,
.process-panel {
    padding: 1.5rem;
}

.field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid label,
.field-stack {
    display: grid;
    gap: 0.55rem;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.permission-grid label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: var(--subtle-panel-bg);
}

.permission-grid input[type="checkbox"] {
    width: auto;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 1rem;
    border: none;
    background: var(--input-bg);
    padding: 0.95rem 1rem;
    font: inherit;
    color: var(--ink);
    resize: vertical;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: var(--input-shadow);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235f6780' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    padding-left: 2.5rem;
}

.validation-errors,
.validation-message {
    color: #b91c1c;
    font-size: 0.88rem;
    margin-top: 0.3rem;
}

.valid.modified {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--emerald) 40%, transparent);
}

.invalid {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--coral) 42%, transparent);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow:
        var(--input-shadow),
        var(--input-focus-ring);
}

input:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: transparent !important;
    outline: none;
    box-shadow: var(--input-shadow);
}

.step-list {
    margin-top: 1.2rem;
}

.step-list div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: start;
    padding: 1rem 0;
}

.step-list strong {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    padding: 1.3rem 1.45rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
}

.faq-item p {
    margin-top: 0.9rem;
}

.contact-card {
    display: grid;
    gap: 0.6rem;
}

.blazor-error-boundary {
    background: linear-gradient(135deg, #c63a31, #8a1d16);
    padding: 1rem;
    color: white;
    border-radius: 1rem;
}

.blazor-error-boundary::after {
    content: "حدث خطأ أثناء عرض هذا القسم.";
}

.dashboard-hero,
.admin-section {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.dashboard-hero {
    padding: 3rem 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 1.5rem;
    align-items: start;
}

.dashboard-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-overview article,
.admin-card,
.admin-list-card,
.dashboard-message,
.offer-status-banner,
.request-card {
    background: var(--dash-card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.dashboard-overview article {
    padding: 1.4rem;
    display: grid;
    gap: 0.25rem;
}

.admin-nav-shell {
    padding-top: 0;
}

.admin-nav-grid,
.admin-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.admin-nav-grid a {
    text-decoration: none;
    padding: 1rem 1.15rem;
    border-radius: 1.1rem;
    background: var(--dash-card-bg);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

.admin-nav-grid a.active {
    background: var(--tab-active-bg);
    color: var(--tab-active-text);
}

.admin-link-card {
    align-content: start;
}

.admin-link-card h3 {
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.dashboard-overview strong {
    font-size: 1.9rem;
}

.dashboard-message {
    width: min(1180px, calc(100% - 2rem));
    margin: 1.25rem auto 0;
    padding: 1rem 1.2rem;
}

.offer-status-banner {
    width: min(1180px, calc(100% - 2rem));
    margin: 1.25rem auto 0;
    padding: 1rem 1.2rem;
}

.inline-banner {
    width: 100%;
    margin: 0;
}

.offer-status-banner.is-success {
    background: var(--success-banner-bg);
}

.offer-status-banner.is-error {
    background: var(--error-banner-bg);
}

.admin-section {
    padding: 1rem 0 2rem;
}

.admin-card {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.admin-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1rem;
}

.admin-list {
    display: grid;
    gap: 0.8rem;
}

.admin-list-card {
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-list-card span {
    display: block;
    margin-top: 0.2rem;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.danger-button {
    border: none;
    border-radius: 1rem;
    padding: 0.9rem 1.2rem;
    background: rgba(185, 37, 37, 0.12);
    color: #a22020;
    font-weight: 700;
}

.dashboard-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.request-board {
    gap: 1rem;
}

.request-card {
    padding: 1.2rem 1.3rem;
    display: grid;
    gap: 0.9rem;
}

.request-card-head,
.request-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.request-card-head strong {
    display: block;
    color: var(--ink);
}

.request-card-head span,
.request-meta span,
.request-date {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.request-meta span {
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(20, 35, 61, 0.05);
}

/* ── Dashboard: Loading ── */
.dash-loading {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 6rem 0;
    display: grid;
    place-items: center;
    text-align: center;
}

.dash-loading-inner {
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.dash-loading-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 3px solid rgba(20, 35, 61, 0.1);
    border-top-color: var(--blue-deep);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Dashboard: Header ── */
.dash-header {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.5rem 0 1rem;
    display: grid;
    gap: 1.25rem;
}

.dash-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.dash-header-title h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.dash-header-title p {
    font-size: 0.95rem;
}

.dash-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.dash-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(185, 137, 38, 0.12), rgba(185, 137, 38, 0.06));
    color: #8a6114;
}

/* ── Dashboard: Pulse Strip ── */
.dash-pulse-strip {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #14233d, #1c3568);
    color: #fff;
    box-shadow: 0 12px 40px rgba(20, 35, 61, 0.22);
}

.dash-pulse-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.5rem 0;
}

.dash-pulse-item.is-live {
    position: relative;
}

.dash-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.dash-pulse-item strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.dash-pulse-item span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    font-weight: 500;
}

.dash-pulse-divider {
    width: 1px;
    height: 2.2rem;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

/* ── Dashboard: KPI Cards ── */
.dash-kpi-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
}

.dash-kpi {
    position: relative;
    padding: 1.25rem 1.15rem 1rem;
    display: grid;
    gap: 0.6rem;
    border-radius: var(--radius-md);
    background: var(--dash-card-strong-bg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-kpi:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dash-kpi::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
}

.dash-kpi.accent-blue::before { background: linear-gradient(90deg, #1f3d73, #6b8fc9); }
.dash-kpi.accent-emerald::before { background: linear-gradient(90deg, #059669, #8fad8a); }
.dash-kpi.accent-gold::before { background: linear-gradient(90deg, #b98926, #dfc27a); }
.dash-kpi.accent-slate::before { background: linear-gradient(90deg, #475569, #94a3b8); }
.dash-kpi.accent-purple::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.dash-kpi.accent-coral::before { background: linear-gradient(90deg, #dc2626, #df7d67); }

.dash-kpi-icon {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border-radius: 0.7rem;
}

.dash-kpi.accent-blue .dash-kpi-icon { background: rgba(31, 61, 115, 0.08); color: #1f3d73; }
.dash-kpi.accent-emerald .dash-kpi-icon { background: rgba(5, 150, 105, 0.08); color: #059669; }
.dash-kpi.accent-gold .dash-kpi-icon { background: rgba(185, 137, 38, 0.1); color: #b98926; }
.dash-kpi.accent-slate .dash-kpi-icon { background: rgba(71, 85, 105, 0.08); color: #475569; }
.dash-kpi.accent-purple .dash-kpi-icon { background: rgba(124, 58, 237, 0.08); color: #7c3aed; }
.dash-kpi.accent-coral .dash-kpi-icon { background: rgba(220, 38, 38, 0.08); color: #dc2626; }

.dash-kpi-body {
    display: grid;
    gap: 0.15rem;
}

.dash-kpi-body span {
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 600;
}

.dash-kpi-body strong {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.dash-kpi small {
    color: var(--ink-faint);
    font-size: 0.78rem;
}

/* ── Dashboard: Panels (Chart + Alerts) ── */
.dash-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 0.85rem;
}

.dash-panel {
    background: var(--dash-card-strong-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    display: grid;
    gap: 1.25rem;
    align-content: start;
}

.dash-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dash-panel-head h3 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.dash-panel-head p {
    font-size: 0.88rem;
}

.dash-panel-badge {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(31, 61, 115, 0.08);
    color: var(--blue-deep);
}

.dash-panel-badge.is-warn {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

/* ── Dashboard: Alert List ── */
.dash-alert-list {
    display: grid;
    gap: 0.6rem;
}

.dash-alert-item {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--dash-card-bg) 72%, transparent);
    display: grid;
    gap: 0.6rem;
    transition: background-color 0.15s ease;
}

.dash-alert-item:hover {
    background: var(--dash-card-strong-bg);
}

.dash-alert-item.is-empty {
    text-align: center;
    padding: 1.5rem;
    color: var(--ink-soft);
}

.dash-alert-item.is-empty strong {
    color: var(--ink);
}

.dash-alert-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dash-alert-top strong {
    color: var(--ink);
    font-size: 0.9rem;
}

.dash-alert-cat {
    font-size: 0.78rem;
    color: var(--ink-faint);
    flex-shrink: 0;
}

.dash-alert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.dash-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    background: var(--subtle-panel-bg);
    color: var(--ink-soft);
}

.dash-tag.is-time {
    background: rgba(245, 158, 11, 0.08);
    color: #b45309;
}

.dash-access-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(31, 61, 115, 0.06), rgba(185, 137, 38, 0.06));
    border: 1px solid rgba(20, 35, 61, 0.06);
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.dash-access-bar svg {
    flex-shrink: 0;
    color: var(--blue-deep);
}

/* ── Dashboard: Section Head ── */
.dash-section-head {
    margin-bottom: 1rem;
}

.dash-section-head h2 {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
}

.dash-section-head p {
    font-size: 0.9rem;
}

/* ── Dashboard: Link Cards ── */
.dash-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.dash-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--dash-card-bg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.15s ease;
}

.dash-link-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--dash-card-strong-bg);
}

.dash-link-icon {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 0.8rem;
    flex-shrink: 0;
}

.dash-link-icon.accent-blue { background: rgba(31, 61, 115, 0.08); color: #1f3d73; }
.dash-link-icon.accent-emerald { background: rgba(5, 150, 105, 0.08); color: #059669; }
.dash-link-icon.accent-gold { background: rgba(185, 137, 38, 0.1); color: #b98926; }
.dash-link-icon.accent-slate { background: rgba(71, 85, 105, 0.08); color: #475569; }
.dash-link-icon.accent-purple { background: rgba(124, 58, 237, 0.08); color: #7c3aed; }
.dash-link-icon.accent-coral { background: rgba(220, 38, 38, 0.08); color: #dc2626; }

.dash-link-body {
    flex: 1;
    display: grid;
    gap: 0.15rem;
}

.dash-link-body strong {
    color: var(--ink);
    font-size: 0.92rem;
}

.dash-link-body span {
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.dash-link-arrow {
    flex-shrink: 0;
    color: var(--ink-faint);
    transition: transform 0.2s ease;
}

.dash-link-card:hover .dash-link-arrow {
    transform: translateX(-3px);
    color: var(--ink);
}

/* ── Legacy compat for chart/legend items ── */
.insight-item,
.auction-chart-legend-item,
.chart-empty-state {
    background: linear-gradient(180deg, color-mix(in srgb, var(--dash-card-strong-bg) 100%, transparent), color-mix(in srgb, var(--dash-card-bg) 96%, transparent));
    border: 1px solid var(--line);
    border-radius: calc(var(--radius-lg) + 0.15rem);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.admin-card-header {
    display: grid;
    gap: 0.5rem;
}

.admin-card-header p {
    max-width: 66ch;
}

.admin-form-card {
    align-content: start;
}

.badge-row,
.page-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.permission-badge,
.page-chip,
.chart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 700;
}

.permission-badge {
    background: rgba(31, 61, 115, 0.08);
    color: var(--blue-deep);
    border: 1px solid rgba(31, 61, 115, 0.09);
}

.permission-badge.is-strong {
    background: rgba(185, 137, 38, 0.14);
    color: #8a6114;
    border-color: rgba(185, 137, 38, 0.18);
}

.permission-badge.is-muted {
    background: rgba(20, 35, 61, 0.05);
    color: var(--ink-soft);
}

.page-chip {
    background: rgba(20, 35, 61, 0.05);
    color: var(--ink);
    border: 1px solid rgba(20, 35, 61, 0.06);
}

.permission-badge:hover,
.page-chip:hover,
.chart-badge:hover {
    border-color: transparent !important;
}

.admin-user-card {
    align-items: start;
}

.admin-user-copy {
    display: grid;
    gap: 0.8rem;
}

.admin-user-head {
    display: grid;
    gap: 0.2rem;
}

.admin-user-head span,
.table-subline {
    color: var(--ink-soft);
    font-size: 0.86rem;
}

.admin-table-shell {
    overflow-x: auto;
    border-radius: 1.25rem;
    border: 1px solid rgba(20, 35, 61, 0.07);
    background: rgba(255, 255, 255, 0.54);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    padding: 1rem 1rem;
    text-align: right;
    vertical-align: top;
    border-bottom: 1px solid rgba(20, 35, 61, 0.08);
}

.admin-table th {
    background: rgba(20, 35, 61, 0.04);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.admin-table td {
    color: var(--ink-soft);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table td strong {
    color: var(--ink);
}

.insight-item {
    padding: 1rem 1.05rem;
    display: grid;
    gap: 0.75rem;
}

.insight-item strong {
    color: var(--ink);
}

.insight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.auction-chart-shell {
    display: grid;
    gap: 1rem;
}

.auction-chart-svg {
    width: 100%;
    height: auto;
    display: block;
    padding: 0.25rem 0;
}

.auction-chart-gridline {
    stroke: rgba(20, 35, 61, 0.1);
    stroke-width: 1;
    stroke-dasharray: 6 8;
}

.auction-chart-baseline {
    stroke: rgba(20, 35, 61, 0.22);
    stroke-width: 1.5;
}

.auction-chart-axis-label,
.auction-chart-label {
    fill: #6a7485;
    font-family: var(--font-ui);
    font-size: 12px;
}

.auction-chart-value {
    fill: var(--ink);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
}

.auction-chart-bar {
    fill: url(#auctionBarGradient);
    filter: drop-shadow(0 14px 20px rgba(31, 61, 115, 0.18));
}

.auction-chart-bar.is-hot {
    fill: url(#auctionBarHotGradient);
    filter: drop-shadow(0 14px 24px rgba(185, 137, 38, 0.2));
}

.auction-chart-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.auction-chart-legend-item {
    padding: 1rem;
    display: grid;
    gap: 0.65rem;
}

.auction-chart-legend-head,
.auction-chart-legend-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auction-chart-legend-head strong {
    color: var(--ink);
}

.auction-chart-legend-meta span {
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.chart-badge {
    background: rgba(31, 61, 115, 0.08);
    color: var(--blue-deep);
}

.chart-badge.is-hot {
    background: rgba(185, 137, 38, 0.14);
    color: #8a6114;
}

.chart-empty-state {
    padding: 1.2rem;
    display: grid;
    gap: 0.35rem;
}

.eyebrow,
.secondary-button,
.ghost-link,
.permission-grid label,
.countdown div,
.request-meta span,
.permission-badge,
.page-chip,
.chart-badge,
.admin-table-shell,
.insight-item,
.auction-chart-legend-item,
.chart-empty-state,
.ad-spotlight-card,
.ad-mini-card,
.short-card,
.short-thumb,
.shorts-badge {
    border: none !important;
}

.admin-table th,
.admin-table td {
    border-bottom: none;
}

.media-hub-section {
    padding-top: 0.8rem;
}

.media-hub-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 1rem;
}

.ad-board-shell,
.shorts-shell,
.ad-card-grid,
.shorts-grid,
.short-copy {
    display: grid;
    gap: 1rem;
}

.ad-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ad-spotlight-card,
.ad-mini-card,
.short-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.ad-spotlight-card {
    padding: 1.8rem;
    min-height: 20rem;
    align-content: start;
    background:
        radial-gradient(circle at top left, rgba(223, 194, 122, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 233, 0.94));
}

.ad-spotlight-card h3,
.shorts-header h3 {
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    color: var(--ink);
}

.ad-spotlight-meta,
.short-footer,
.shorts-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.ad-spotlight-meta span,
.ad-mini-tag,
.short-category,
.short-duration,
.shorts-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(20, 35, 61, 0.06);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.ad-mini-card {
    padding: 1.3rem;
    min-height: 13rem;
    align-content: start;
}

.ad-mini-card strong,
.short-copy strong {
    color: var(--ink);
    font-size: 1.1rem;
}

.shorts-shell {
    padding: 1.2rem;
    border-radius: calc(var(--radius-lg) + 0.2rem);
    background:
        radial-gradient(circle at top right, rgba(107, 143, 201, 0.18), transparent 26%),
        rgba(248, 243, 236, 0.92);
    box-shadow: var(--shadow-md);
}

.short-card {
    padding: 1rem;
}

.short-thumb {
    min-height: 10.5rem;
    border-radius: 1.3rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.9rem;
    background:
        linear-gradient(180deg, rgba(20, 35, 61, 0.12), rgba(20, 35, 61, 0.32)),
        linear-gradient(135deg, rgba(223, 194, 122, 0.34), rgba(107, 143, 201, 0.28));
    color: #fff;
}

.short-play {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    font-weight: 700;
}

.short-footer span {
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.ad-mini-card.tone-gold {
    background: linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(223, 194, 122, 0.18));
}

.ad-mini-card.tone-blue {
    background: linear-gradient(180deg, rgba(244, 248, 255, 0.98), rgba(107, 143, 201, 0.2));
}

.ad-mini-card.tone-coral {
    background: linear-gradient(180deg, rgba(255, 246, 243, 0.98), rgba(223, 125, 103, 0.2));
}

.short-card.tone-gold .short-thumb {
    background:
        linear-gradient(180deg, rgba(20, 35, 61, 0.14), rgba(20, 35, 61, 0.32)),
        linear-gradient(135deg, rgba(223, 194, 122, 0.42), rgba(185, 137, 38, 0.3));
}

.short-card.tone-blue .short-thumb {
    background:
        linear-gradient(180deg, rgba(20, 35, 61, 0.14), rgba(20, 35, 61, 0.32)),
        linear-gradient(135deg, rgba(107, 143, 201, 0.42), rgba(31, 61, 115, 0.28));
}

.short-card.tone-coral .short-thumb {
    background:
        linear-gradient(180deg, rgba(20, 35, 61, 0.14), rgba(20, 35, 61, 0.32)),
        linear-gradient(135deg, rgba(223, 125, 103, 0.44), rgba(185, 37, 37, 0.28));
}

.live-bids-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    gap: 1rem;
    align-items: start;
}

.live-bids-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.live-bid-card {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.live-bid-card-media {
    overflow: hidden;
    border-radius: 1.35rem;
    min-height: 12.5rem;
    box-shadow: var(--shadow-sm);
    background: rgba(20, 35, 61, 0.08);
}

.live-bid-card-media img,
.live-bid-feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.live-bid-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.live-bid-stat {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(20, 35, 61, 0.045);
    display: grid;
    gap: 0.25rem;
}

.live-bid-stat span {
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.live-bid-stat strong {
    color: var(--ink);
    font-size: 1rem;
    font-family: var(--font-display);
}

.live-bid-feed {
    align-content: start;
}

.live-bid-feed-item {
    gap: 0.7rem;
}

.live-bid-feed-thumb {
    width: 100%;
    height: 9rem;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.3rem;
}

.live-bids-empty {
    min-height: 14rem;
    place-content: center;
    text-align: center;
}

.goods-rules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.goods-auctions-layout {
    align-items: start;
}

.goods-form,
.goods-sidebar {
    align-content: start;
}

.goods-location-panel {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
    background: rgba(20, 35, 61, 0.045);
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    justify-content: space-between;
}

.goods-location-panel strong {
    display: block;
    color: var(--ink);
    margin-bottom: 0.15rem;
}

.goods-location-panel span {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.goods-location-actions {
    justify-content: flex-end;
}

.goods-submission-card {
    align-items: start;
}

.goods-upload-note {
    margin-top: 0.85rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.goods-upload-chip-list,
.submission-image-strip,
.submission-image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.goods-upload-chip {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(20, 35, 61, 0.06);
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 700;
}

.submission-image-strip {
    margin-top: 0.8rem;
}

.submission-library-head {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.18rem;
}

.submission-library-head strong {
    color: var(--ink);
    font-size: 0.95rem;
}

.submission-library-head span,
.submission-image-name {
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.submission-image-library {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 0.85rem;
}

.submission-image-card {
    display: grid;
    gap: 0.65rem;
    padding: 0.7rem;
    border-radius: 1.1rem;
    background: rgba(20, 35, 61, 0.04);
    box-shadow: var(--shadow-sm);
}

.submission-image-card.is-primary {
    background:
        linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(223, 194, 122, 0.18));
}

.submission-image-toolbar {
    display: grid;
    gap: 0.45rem;
}

.primary-image-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(185, 137, 38, 0.12);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 800;
}

.image-picker-button {
    justify-self: start;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(20, 35, 61, 0.06);
    font-size: 0.84rem;
}

.submission-image-strip a,
.submission-image-link {
    display: block;
    width: 4.6rem;
    height: 4.6rem;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.submission-image-grid {
    margin-top: 0.95rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
}

.submission-image-grid .submission-image-link {
    width: 100%;
    height: 8rem;
}

.submission-image-library .submission-image-link {
    width: 100%;
    height: 8.5rem;
}

.submission-image-strip img,
.submission-image-link img,
.goods-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.goods-card-media {
    overflow: hidden;
    border-radius: 1.35rem;
    min-height: 13rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    background: rgba(20, 35, 61, 0.08);
}

.admin-image-library {
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.hero-shell,
.inner-hero,
.section-block,
.download-cta,
.dash-header,
.dash-loading,
.dashboard-hero,
.admin-section {
    animation: rise-in 0.7s ease both;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html,
    body {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 1100px) {
    .hero-shell,
    .download-cta,
    .inner-hero,
    .offer-layout,
    .dashboard-hero,
    .admin-split,
    .dash-panels,
    .dash-links-grid,
    .media-hub-grid,
    .live-bids-layout,
    .goods-rules-grid,
    .admin-nav-grid,
    .admin-link-grid {
        grid-template-columns: 1fr;
    }

    .dash-kpi-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dash-pulse-strip {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .dash-pulse-divider {
        display: none;
    }

    .dash-pulse-item {
        min-width: calc(50% - 0.5rem);
    }

    .stats-grid,
    .auction-grid,
    .feature-grid,
    .partners-wall,
    .category-grid,
    .coverage-grid,
    .contact-grid,
    .ad-card-grid,
    .live-bids-grid,
    .live-bid-summary-grid,
    .goods-rules-grid,
    .auction-chart-legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .settings-logo-panel {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .hero-shell {
        padding-top: 2.6rem;
    }

    .hero-copy h1,
    .inner-hero h1 {
        font-size: 2.3rem;
    }

    .stats-grid,
    .auction-grid,
    .feature-grid,
    .partners-wall,
    .category-grid,
    .coverage-grid,
    .contact-grid,
    .field-grid,
    .countdown,
    .ad-card-grid,
    .live-bids-grid,
    .live-bid-summary-grid,
    .goods-rules-grid,
    .auction-chart-legend {
        grid-template-columns: 1fr;
    }

    .dash-kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-links-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .download-cta,
    .inner-hero {
        grid-template-columns: 1fr;
    }

    .permission-grid,
    .bid-entry {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .inner-hero h1 {
        max-width: none;
    }

    .hero-visual {
        min-height: auto;
    }

    .phone-frame {
        width: 100%;
    }
}
