@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
    color-scheme: light;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #eef7f5;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, .10);
    --primary: #14b8a6;
    --primary-2: #0f766e;
    --accent: #f59e0b;
    --shadow: 0 22px 60px rgba(15, 23, 42, .10);
}

/* Account authentication and Firebase settings */
.account-page {
    background: var(--bg);
    min-height: calc(100vh - 76px);
    padding: 48px 0 112px;
}

.account-shell {
    align-items: stretch;
    gap: 20px;
    max-width: 1120px;
}

.account-intro {
    background: var(--primary-2);
    border: 1px solid color-mix(in srgb, var(--primary) 65%, var(--line));
    border-radius: 8px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 480px;
    overflow: hidden;
    padding: clamp(28px, 5vw, 54px);
}

.account-intro::after {
    display: none;
}

.account-intro .eyebrow {
    color: #99f6e4;
}

.account-intro h1 {
    color: #fff;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.3;
    margin: 14px 0 0;
}

.account-intro p {
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.9;
    margin-top: 20px;
}

.account-panel,
.account-card {
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

.account-panel {
    align-self: stretch;
    padding: clamp(18px, 3vw, 30px);
}

.account-tabs {
    border-radius: 8px;
    gap: 4px;
    padding: 5px;
}

.account-tabs a {
    border-radius: 6px;
    min-height: 44px;
}

.account-card {
    padding: clamp(18px, 3vw, 26px);
}

.account-card h2,
.account-card h3 {
    font-size: 21px;
}

.account-form input,
.account-form select {
    border-radius: 8px;
    min-height: 46px;
}

.account-form > .main-button,
.google-signin-button {
    min-height: 48px;
    width: 100%;
}

.account-divider {
    align-items: center;
    color: var(--muted);
    display: grid;
    font-size: 12px;
    gap: 12px;
    grid-template-columns: 1fr auto 1fr;
    margin: 2px 0;
}

.account-divider::before,
.account-divider::after {
    background: var(--line);
    content: "";
    height: 1px;
}

.google-signin-button {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    font: inherit;
    font-weight: 900;
    gap: 11px;
    justify-content: center;
    padding: 11px 16px;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.google-signin-button:hover {
    background: var(--surface-soft);
    border-color: color-mix(in srgb, #4285f4 55%, var(--line));
    transform: translateY(-1px);
}

.google-signin-button:disabled {
    cursor: wait;
    opacity: .65;
}

.google-signin-button i {
    color: #4285f4;
    font-size: 18px;
}

.firebase-auth-feedback,
[data-firebase-feedback] {
    color: var(--primary-2);
    font-size: 12px;
    margin: 0;
    min-height: 18px;
    text-align: center;
}

.firebase-auth-feedback.is-error,
[data-firebase-feedback].is-error {
    color: #dc2626;
}

.account-user-identity {
    align-items: center;
    display: flex;
    gap: 13px;
}

.account-user-avatar {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    flex: 0 0 54px;
    height: 54px;
    justify-content: center;
    overflow: hidden;
    width: 54px;
}

.account-user-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.account-provider-card {
    align-items: center;
    display: flex;
    gap: 16px;
}

.account-provider-card > i {
    align-items: center;
    background: color-mix(in srgb, #4285f4 12%, var(--surface));
    border-radius: 8px;
    color: #4285f4;
    display: flex;
    flex: 0 0 48px;
    font-size: 21px;
    height: 48px;
    justify-content: center;
}

.account-provider-card h3,
.account-provider-card p {
    margin: 0;
}

.account-notification-bar {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr auto;
    margin-top: 18px;
    padding: 14px;
}

.account-notification-bar > div {
    align-items: center;
    display: flex;
    gap: 11px;
}

.account-notification-bar > div > i {
    color: var(--primary-2);
    font-size: 18px;
}

.account-notification-bar b,
.account-notification-bar small {
    display: block;
}

.account-notification-bar small {
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.account-notification-bar [data-firebase-feedback] {
    grid-column: 1 / -1;
    text-align: start;
}

.admin-settings-group-wide {
    grid-column: 1 / -1;
}

.firebase-settings-note {
    align-items: flex-start;
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    padding: 14px 18px;
}

.firebase-settings-note > i {
    color: var(--primary-2);
    margin-top: 4px;
}

.firebase-settings-note p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    margin: 0;
}

.admin-setting-textarea,
.admin-setting-toggle {
    min-width: 0;
}

.admin-setting-textarea textarea {
    direction: ltr;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.65;
    min-height: 150px;
    resize: vertical;
    width: 100%;
}

.admin-setting-toggle label {
    max-width: 280px;
}

.secret-saved {
    align-items: center;
    color: var(--primary-2);
    display: flex;
    font-size: 11px;
    gap: 7px;
    margin-top: 8px;
}

@media (max-width: 760px) {
    .account-page {
        padding: 24px 0 96px;
    }

    .account-intro {
        min-height: 260px;
        padding: 26px 22px;
    }

    .account-intro h1 {
        font-size: 30px;
    }

    .account-tabs a {
        font-size: 11px;
        gap: 5px;
        padding-inline: 5px;
    }

    .account-notification-bar {
        grid-template-columns: 1fr;
    }

    .account-notification-bar .ghost-button {
        width: 100%;
    }

    .admin-settings-group-wide {
        grid-column: auto;
    }
}

.chat-quick-start {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-height: 330px;
    padding: 32px;
    text-align: center;
}

.chat-quick-start > i {
    align-items: center;
    background: color-mix(in srgb, var(--primary) 14%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
    border-radius: 8px;
    color: var(--primary-2);
    display: flex;
    font-size: 24px;
    height: 58px;
    justify-content: center;
    margin-bottom: 16px;
    width: 58px;
}

.chat-quick-start h3 {
    font-size: 20px;
    margin: 0;
}

.chat-quick-start p {
    color: var(--muted);
    margin: 8px 0 0;
}

.chat-loading-dots {
    display: flex;
    gap: 6px;
    margin-top: 20px;
}

.chat-loading-dots b {
    animation: chat-loading-pulse .9s ease-in-out infinite alternate;
    background: var(--primary);
    border-radius: 50%;
    height: 8px;
    width: 8px;
}

.chat-loading-dots b:nth-child(2) {
    animation-delay: .15s;
}

.chat-loading-dots b:nth-child(3) {
    animation-delay: .3s;
}

@keyframes chat-loading-pulse {
    to { opacity: .25; transform: translateY(-4px); }
}

.site-footer.pro-footer .footer-branches article > a[href^="tel:"] {
    direction: ltr;
    display: inline-flex;
    font-variant-numeric: tabular-nums;
    gap: 0;
    grid-template-columns: none;
    justify-self: start;
    letter-spacing: .4px;
    max-width: 100%;
    unicode-bidi: isolate;
    white-space: nowrap;
    width: max-content;
}

.product-ai-assistant {
    align-items: end;
    background: color-mix(in srgb, var(--primary) 8%, var(--surface-soft));
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 46px minmax(220px, 1fr) auto;
    margin-bottom: 16px;
    padding: 14px;
}

.product-ai-icon {
    align-items: center;
    align-self: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--primary-2);
    display: flex;
    font-size: 18px;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.product-ai-assistant label {
    margin: 0;
}

.product-ai-assistant button {
    min-height: 46px;
    white-space: nowrap;
}

.product-ai-assistant > p {
    color: var(--primary-2);
    font-size: 12px;
    font-weight: 800;
    grid-column: 2 / -1;
    margin: 0;
    min-height: 18px;
}

@media (max-width: 700px) {
    .product-ai-assistant {
        align-items: stretch;
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .product-ai-icon {
        height: 42px;
        width: 42px;
    }

    .product-ai-assistant button,
    .product-ai-assistant > p {
        grid-column: 1 / -1;
        width: 100%;
    }
}

.gemini-connect-card .panel-head p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    margin: 6px 0 0;
}

.gemini-key-row {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(260px, 1fr) auto auto;
}

.gemini-key-row label {
    margin: 0;
}

.gemini-key-row .main-button,
.gemini-key-row .ghost-button {
    justify-content: center;
    min-height: 46px;
    white-space: nowrap;
}

.gemini-advanced {
    border-top: 1px solid var(--line);
    margin-top: 16px;
    padding-top: 14px;
}

.gemini-advanced > summary {
    align-items: center;
    color: var(--text);
    cursor: pointer;
    display: flex;
    font-size: 12px;
    font-weight: 900;
    gap: 8px;
    list-style: none;
}

.gemini-advanced > summary::-webkit-details-marker {
    display: none;
}

.gemini-advanced > summary .fa-chevron-down {
    color: var(--muted);
    margin-inline-start: auto;
    transition: transform .2s ease;
}

.gemini-advanced[open] > summary .fa-chevron-down {
    transform: rotate(180deg);
}

.gemini-advanced-body {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 14px;
}

.gemini-advanced-body label:first-child {
    grid-column: 1 / -1;
}

@media (max-width: 760px) {
    .gemini-key-row,
    .gemini-advanced-body {
        grid-template-columns: 1fr;
    }

    .gemini-advanced-body label:first-child {
        grid-column: auto;
    }
}

/* 2026-07-27 feature refresh */
.hero-full {
    padding: 0;
    position: relative;
}

.hero-full .hero-cover-carousel {
    width: 100%;
    max-width: none;
    border-radius: 0;
}

.hero-full .hero-cover {
    min-height: clamp(620px, 100svh, 920px);
    border-radius: 0;
    align-items: flex-end;
}

.hero-full .hero-cover-content {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto clamp(72px, 12vh, 128px);
}

.hero-full .hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 5;
}

.brand-carousel {
    overflow: hidden;
    padding: 10px 0;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.brand-track {
    display: flex;
    width: max-content;
    gap: 18px;
    animation: brand-scroll 24s linear infinite;
}

.brand-track a,
.brand-row a {
    width: 168px;
    height: 88px;
    flex: 0 0 168px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.brand-track img,
.brand-row img {
    width: 126px;
    height: 54px;
    object-fit: contain;
}

@keyframes brand-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.pro-footer {
    padding-bottom: 104px;
}

.footer-pro {
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) minmax(250px, .9fr) minmax(250px, 1fr) minmax(280px, 1.1fr);
    gap: 22px;
}

.footer-company,
.footer-tabs,
.footer-branches,
.footer-map {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    padding: 22px;
    min-width: 0;
}

.footer-actions,
.about-contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.footer-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.footer-tabs a,
.footer-tabs button,
.footer-branches a,
.footer-map p,
.footer-map a {
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-branches {
    display: grid;
    gap: 12px;
}

.footer-branches article {
    display: grid;
    gap: 5px;
    padding: 12px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--muted) 35%, transparent);
}

.footer-branches small {
    display: flex;
    gap: 7px;
    align-items: center;
    color: var(--text-muted);
}

.footer-map iframe {
    width: 100%;
    height: 190px;
    border: 0;
    border-radius: 8px;
    margin-bottom: 12px;
    filter: saturate(.9) contrast(.95);
}

.about-details {
    display: grid;
    gap: 24px;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.about-cards article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 18px;
}

.about-cards i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
}

.about-contact-strip {
    justify-content: space-between;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.ticket-board {
    display: grid;
    gap: 16px;
}

.ticket-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 18px;
}

.ticket-card.unread {
    border-color: var(--accent);
}

.ticket-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: start;
}

.ticket-head > i,
.mini-admin-card .panel-head i,
.gemini-test-panel .panel-head i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
}

.ticket-messages,
.admin-grid-list {
    display: grid;
    gap: 16px;
}

.ticket-message {
    border-radius: 8px;
    padding: 12px;
    background: color-mix(in srgb, var(--muted) 52%, transparent);
}

.ticket-message.admin {
    background: color-mix(in srgb, var(--accent-soft) 70%, transparent);
}

.ticket-message p {
    margin: 6px 0;
}

.admin-grid-list {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.compact-editor {
    gap: 12px;
}

.gemini-result {
    min-height: 130px;
    white-space: pre-wrap;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--muted) 55%, transparent);
    padding: 14px;
    color: var(--text);
    overflow: auto;
}

.admin-panel,
.admin-stats div {
    border-radius: 8px;
}

@media (max-width: 1120px) {
    .footer-pro,
    .about-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .footer-pro,
    .footer-tabs,
    .about-cards,
    .ticket-head {
        grid-template-columns: 1fr;
    }

    .hero-full .hero-cover {
        min-height: 86svh;
    }

    .hero-full .hero-cover-content {
        margin-bottom: 92px;
    }

    .brand-track a {
        width: 142px;
        height: 76px;
        flex-basis: 142px;
    }
}

html.dark {
    color-scheme: dark;
    --bg: #020617;
    --surface: #0f172a;
    --surface-soft: #111c2f;
    --text: #f8fafc;
    --muted: #cbd5e1;
    --line: rgba(255, 255, 255, .11);
    --shadow: 0 22px 60px rgba(0, 0, 0, .32);
}

* {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
    margin: 0;
    overflow-x: hidden;
    padding-bottom: 72px;
}

body:not(.admin-body):not(.admin-login-page) {
    padding-top: 76px;
}

body.modal-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.shell {
    margin: 0 auto;
    max-width: 1240px;
    padding: 0 20px;
    width: 100%;
}

.site-header {
    -webkit-backdrop-filter: blur(22px) saturate(155%);
    backdrop-filter: blur(22px) saturate(155%);
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 70;
}

.header-inner {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    min-height: 76px;
}

.brand,
.footer-brand {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.brand img,
.footer-brand img {
    background: var(--surface-soft);
    border-radius: 18px;
    height: 48px;
    object-fit: contain;
    padding: 5px;
    width: 48px;
}

.brand strong,
.footer-brand strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand small,
.footer-brand small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    max-width: 260px;
}

.desktop-nav {
    align-items: center;
    display: flex;
    gap: 4px;
}

.desktop-nav a {
    align-items: center;
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    gap: 7px;
    padding: 10px 14px;
}

.desktop-nav a:hover,
.lang-link:hover {
    background: var(--surface-soft);
    color: var(--primary-2);
}

.header-actions {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.icon-button,
.lang-link {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    display: inline-flex;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    min-width: 42px;
    padding: 0 13px;
    position: relative;
    transition: .2s ease;
}

.fav-count {
    align-items: center;
    background: var(--accent);
    border: 2px solid var(--surface);
    border-radius: 999px;
    color: #111827;
    display: inline-flex;
    font-size: 10px;
    height: 19px;
    justify-content: center;
    line-height: 1;
    min-width: 19px;
    padding: 0 4px;
    position: absolute;
    top: -6px;
}

.cart-count {
    align-items: center;
    background: var(--primary);
    border: 2px solid var(--surface);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 10px;
    height: 19px;
    justify-content: center;
    line-height: 1;
    min-width: 19px;
    padding: 0 4px;
    position: absolute;
    top: -6px;
}

html[dir="rtl"] .fav-count {
    left: -6px;
}

html[dir="ltr"] .fav-count {
    right: -6px;
}

html[dir="rtl"] .cart-count {
    left: -6px;
}

html[dir="ltr"] .cart-count {
    right: -6px;
}

.desktop-menu-button {
    display: inline-flex;
}

.icon-button:hover,
.lang-link:hover {
    border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
    transform: translateY(-1px);
}

.icon-button.cart-added {
    background: color-mix(in srgb, var(--primary) 16%, var(--surface));
    border-color: color-mix(in srgb, var(--primary) 42%, var(--line));
    color: var(--primary-2);
    transform: translateY(-1px) scale(1.04);
}

.dark-show {
    display: none;
}

.dark .dark-hide {
    display: none;
}

.dark .dark-show {
    display: inline;
}

.main-button,
.ghost-button {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 900;
    gap: 9px;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    transition: .2s ease;
}

.main-button {
    background: var(--primary);
    box-shadow: 0 16px 36px rgba(20, 184, 166, .24);
    color: #02131a;
}

.main-button:hover {
    background: #2dd4bf;
    transform: translateY(-1px);
}

.ghost-button {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
}

.ghost-button:hover {
    border-color: var(--primary);
    color: var(--primary-2);
}

.main-button:disabled,
.ghost-button:disabled {
    background: #e5e7eb;
    border-color: #e5e7eb;
    box-shadow: none;
    color: #64748b;
    cursor: not-allowed;
    transform: none;
}

html.dark .main-button:disabled,
html.dark .ghost-button:disabled {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.compact {
    font-size: 14px;
    min-height: 40px;
    padding: 9px 14px;
}

.hero {
    background: linear-gradient(180deg, var(--surface-soft), var(--bg));
    overflow: hidden;
    padding: 32px 0 48px;
    position: relative;
}

.hero:before {
    background:
        radial-gradient(circle at 12% 12%, rgba(20, 184, 166, .22), transparent 30%),
        radial-gradient(circle at 88% 20%, rgba(245, 158, 11, .18), transparent 26%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.hero-cover {
    align-items: center;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, .84), rgba(2, 6, 23, .52) 48%, rgba(2, 6, 23, .12)),
        var(--hero-cover-image);
    background-position: center;
    background-size: cover;
    border: 1px solid var(--line);
    border-radius: 34px;
    box-shadow: var(--shadow);
    display: flex;
    min-height: 620px;
    overflow: hidden;
    padding: clamp(26px, 5vw, 70px);
    position: relative;
    z-index: 2;
}

.hero-cover-carousel {
    min-height: 620px;
    position: relative;
    z-index: 2;
}

.hero-cover-carousel .hero-cover {
    height: 100%;
    inset: 0;
    min-height: 100%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: scale(1.01);
    transition: opacity .45s ease, transform .75s ease;
    visibility: hidden;
}

.hero-cover-carousel .hero-cover.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    visibility: visible;
}

html[dir="rtl"] .hero-cover {
    background-image:
        linear-gradient(270deg, rgba(2, 6, 23, .84), rgba(2, 6, 23, .52) 48%, rgba(2, 6, 23, .12)),
        var(--hero-cover-image);
}

.hero-cover-content {
    max-width: 680px;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.hero .hero-cover .eyebrow {
    color: #5eead4;
}

.hero .hero-cover h1 {
    color: #fff;
    max-width: 760px;
    text-shadow: 0 12px 34px rgba(2, 6, 23, .38);
}

.hero .hero-cover p {
    color: #e2e8f0;
    max-width: 640px;
    text-shadow: 0 8px 26px rgba(2, 6, 23, .34);
}

.hero .hero-cover .main-button {
    margin-top: 28px;
}

.hero-grid {
    align-items: center;
    display: grid;
    gap: 34px;
    min-height: 640px;
    padding-bottom: 52px;
    padding-top: 52px;
    position: relative;
    z-index: 2;
}

.hero-grid > *,
.hero-panel {
    min-width: 0;
}

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: .95fr 1.05fr;
        min-height: 650px;
    }
}

.hero-copy {
    align-content: center;
    display: grid;
    max-width: 780px;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.hero-panel {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: .35s ease;
}

.hero-panel.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.eyebrow {
    color: var(--primary-2);
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 12px;
}

.dark .eyebrow {
    color: #5eead4;
}

h1,
h2,
h3 {
    letter-spacing: 0;
    line-height: 1.16;
    margin: 0;
}

.hero h1,
.page-hero h1,
.product-detail h1 {
    font-size: clamp(36px, 5.4vw, 66px);
    font-weight: 900;
    max-width: 900px;
}

.hero h1 {
    color: var(--text);
    overflow-wrap: anywhere;
    text-shadow: none;
    text-wrap: balance;
}

.hero p {
    color: var(--muted);
    max-width: 680px;
    overflow-wrap: anywhere;
    text-shadow: none;
}

.hero p,
.page-hero p,
.section-head p,
.split p,
.services-grid p,
.detail-copy p,
.detail-sections p,
.about-grid p,
.activity-grid p {
    color: var(--muted);
    font-size: 17px;
    line-height: 2;
    margin: 18px 0 0;
}

.hero p {
    color: var(--muted);
    max-width: 680px;
    overflow-wrap: anywhere;
    text-shadow: none;
}

.hero-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
    position: relative;
    z-index: 3;
}

.hero-dots button {
    background: color-mix(in srgb, var(--text) 24%, transparent);
    border: 0;
    border-radius: 999px;
    height: 10px;
    transition: .2s ease;
    width: 10px;
}

.hero-dots button.is-active {
    background: var(--primary);
    width: 42px;
}

.hero-media {
    aspect-ratio: 16 / 11;
    background: #020617;
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow);
    min-height: 420px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-media img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    opacity: 0;
    position: absolute;
    transform: scale(1.03);
    transition: opacity .45s ease, transform 1.2s ease;
    width: 100%;
}

.hero-media img.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-media:after {
    background: linear-gradient(180deg, transparent 46%, rgba(2, 6, 23, .68));
    content: "";
    inset: 0;
    position: absolute;
}

html[dir="rtl"] .hero-media:after {
    background: linear-gradient(180deg, transparent 46%, rgba(2, 6, 23, .68));
}

.hero-badge {
    align-items: center;
    background: rgba(255, 255, 255, .90);
    border-radius: 24px;
    bottom: 18px;
    color: #0f172a;
    display: grid;
    gap: 4px 12px;
    grid-template-columns: auto 1fr auto 1fr;
    left: 18px;
    padding: 16px;
    position: absolute;
    right: 18px;
    z-index: 2;
}

.hero-badge strong {
    color: var(--primary-2);
    font-size: 24px;
    font-weight: 900;
}

.hero-badge span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.section,
.page-hero,
.product-detail {
    padding: 78px 0;
}

.alt {
    background: var(--surface-soft);
}

.section-head {
    margin-bottom: 30px;
    max-width: 820px;
}

.section h2,
.section-head h2,
.split h2,
.services-grid h2,
.detail-sections h2,
.about-grid h2 {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 900;
}

.split,
.services-grid,
.activity-grid,
.about-grid,
.product-detail-grid {
    display: grid;
    gap: 36px;
}

@media (min-width: 960px) {
    .split,
    .services-grid,
    .activity-grid,
    .about-grid,
    .product-detail-grid {
        grid-template-columns: .9fr 1.1fr;
    }

    .services-grid,
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 680px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.feature-card,
.product-card,
.activity-card,
.info-panel,
.spec-card,
.branch-card,
.account-panel,
.account-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.account-page {
    background:
        radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 28rem),
        radial-gradient(circle at 92% 8%, rgba(245, 158, 11, .12), transparent 24rem),
        linear-gradient(180deg, var(--surface-soft), var(--bg));
    min-height: calc(100vh - 76px);
    padding: 72px 0 92px;
}

.account-shell {
    display: grid;
    gap: 24px;
}

@media (min-width: 980px) {
    .account-shell {
        align-items: start;
        grid-template-columns: minmax(280px, .82fr) minmax(520px, 1.18fr);
    }
}

.account-intro {
    background: color-mix(in srgb, var(--surface) 76%, transparent);
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    border-radius: 30px;
    overflow: hidden;
    padding: clamp(24px, 4vw, 42px);
    position: relative;
}

.account-intro::after {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border-radius: 999px;
    content: "";
    height: 220px;
    position: absolute;
    top: -90px;
    width: 220px;
}

html[dir="rtl"] .account-intro::after {
    left: -90px;
}

html[dir="ltr"] .account-intro::after {
    right: -90px;
}

.account-intro h1 {
    font-size: clamp(34px, 4.8vw, 56px);
    font-weight: 900;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.account-intro p {
    color: var(--muted);
    font-size: 17px;
    line-height: 2;
    margin: 18px 0 0;
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.account-panel {
    padding: clamp(18px, 3vw, 26px);
}

.account-tabs {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 22px;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
    padding: 6px;
}

.account-tabs a {
    align-items: center;
    border-radius: 16px;
    color: var(--muted);
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-height: 46px;
    padding: 8px 10px;
    text-align: center;
}

.account-tabs a.is-active {
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    color: var(--primary-2);
}

.account-card {
    padding: 20px;
}

.account-card h2,
.account-card h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 16px;
}

.account-card p {
    color: var(--muted);
    line-height: 1.8;
    margin-top: 0;
}

.account-form {
    display: grid;
    gap: 14px;
}

.account-form label {
    display: grid;
    gap: 8px;
}

.account-form label span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.account-form input,
.account-form select {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 15px;
    color: var(--text);
    outline: none;
    padding: 12px;
    width: 100%;
}

.account-form input:focus,
.account-form select:focus {
    border-color: color-mix(in srgb, var(--primary) 44%, var(--line));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent);
}

.account-form-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.account-form-row a {
    color: var(--primary-2);
    font-size: 13px;
    font-weight: 900;
}

.account-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 18px;
}

.account-head small,
.account-head p {
    color: var(--muted);
    font-weight: 900;
    margin: 0;
}

.account-head h2 {
    font-size: 30px;
    font-weight: 900;
}

.account-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: 18px;
}

.account-summary div {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
}

.account-summary i {
    color: var(--primary);
}

.account-summary span,
.account-summary b {
    display: block;
}

.account-summary span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    margin-top: 8px;
}

.account-summary b {
    font-size: 13px;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.account-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 860px) {
    .account-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.account-note,
.local-reset-link {
    background: color-mix(in srgb, var(--primary) 9%, var(--bg));
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line));
    border-radius: 16px;
    color: var(--primary-2);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.7;
    padding: 12px;
}

.account-note i {
    margin-inline-end: 8px;
}

.local-reset-link {
    display: grid;
    gap: 6px;
}

.local-reset-link a {
    color: var(--text);
    direction: ltr;
    overflow-wrap: anywhere;
}

@media (max-width: 560px) {
    .account-tabs {
        grid-template-columns: 1fr;
    }

    .account-head {
        align-items: stretch;
        flex-direction: column;
    }

    .account-head .ghost-button {
        width: 100%;
    }
}

/* Desktop cover content follows the active language direction. */
@media (min-width: 721px) {
    .hero.hero-full .hero-cover-content {
        max-width: 1120px;
        text-align: start;
        width: min(1120px, calc(100% - 144px));
    }

    html[dir="rtl"] .hero.hero-full .hero-cover-content h1,
    html[dir="rtl"] .hero.hero-full .hero-cover-content p {
        margin-left: auto;
        margin-right: 0;
    }

    html[dir="ltr"] .hero.hero-full .hero-cover-content h1,
    html[dir="ltr"] .hero.hero-full .hero-cover-content p {
        margin-left: 0;
        margin-right: auto;
    }
}

/* Stable product cards: content length never changes the card dimensions. */
.product-grid {
    align-items: stretch;
}

.product-grid .product-card {
    display: grid;
    grid-template-rows: 280px minmax(0, 1fr);
    height: 650px;
    min-height: 650px;
    min-width: 0;
    width: 100%;
}

.product-grid .product-image {
    aspect-ratio: auto;
    height: 280px;
    min-height: 280px;
    overflow: hidden;
}

.product-grid .product-image img {
    aspect-ratio: auto;
    height: 100%;
    max-height: none;
    object-fit: contain;
    width: 100%;
}

.product-grid .product-content {
    display: grid;
    grid-template-rows: 32px 70px 96px minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
}

.product-grid .product-content > span {
    align-items: center;
    justify-self: start;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-grid .product-content h3 {
    align-self: start;
    display: -webkit-box;
    margin-block: 12px 0;
    max-height: 62px;
    min-height: 62px;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-grid .product-content p {
    display: -webkit-box;
    margin: 8px 0 0;
    max-height: 84px;
    min-height: 84px;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-grid .product-actions {
    align-self: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(88px, .72fr) minmax(0, 1.28fr);
    height: 112px;
    margin-top: 0;
    min-height: 112px;
    min-width: 0;
    overflow: hidden;
}

.product-grid .product-actions > strong {
    align-content: center;
    display: -webkit-box;
    max-height: 48px;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-grid .product-action-buttons {
    align-content: end;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    min-width: 0;
}

.product-grid .product-action-buttons .main-button,
.product-grid .product-action-buttons .ghost-button {
    justify-content: center;
    margin: 0;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .product-grid .product-card {
        grid-template-rows: 160px minmax(0, 1fr);
        height: 500px;
        min-height: 500px;
    }

    .product-grid .product-image {
        height: 160px;
        min-height: 160px;
    }

    .product-grid .product-content {
        grid-template-rows: 28px 52px 64px minmax(0, 1fr);
    }

    .product-grid .product-content h3 {
        max-height: 45px;
        min-height: 45px;
    }

    .product-grid .product-content p {
        max-height: 58px;
        min-height: 58px;
    }

    .product-grid .product-actions {
        gap: 6px;
        grid-template-columns: 1fr;
        height: 150px;
        min-height: 150px;
    }

    .product-grid .product-actions > strong {
        max-height: 38px;
        min-height: 38px;
    }
}

.feature-card {
    min-height: 220px;
    padding: 22px;
    position: relative;
}

.feature-card b {
    color: #94a3b8;
    font-size: 13px;
    position: absolute;
    top: 20px;
}

html[dir="rtl"] .feature-card b {
    left: 20px;
}

html[dir="ltr"] .feature-card b {
    right: 20px;
}

.feature-card i {
    color: var(--primary);
    font-size: 28px;
}

.feature-card h3 {
    font-size: 21px;
    font-weight: 900;
    margin-top: 18px;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.8;
}

.service-photo {
    border-radius: 32px;
    min-height: 520px;
    overflow: hidden;
    position: relative;
}

.service-photo img {
    height: 100%;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.service-photo:after {
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .58));
    content: "";
    inset: 0;
    position: absolute;
}

.service-photo div {
    align-items: center;
    background: rgba(255, 255, 255, .92);
    border-radius: 22px;
    bottom: 18px;
    color: #0f172a;
    display: flex;
    font-weight: 900;
    gap: 12px;
    left: 18px;
    padding: 16px;
    position: absolute;
    right: 18px;
    z-index: 2;
}

.service-photo i {
    color: var(--accent);
}

.service-list {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.service-list button {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--text);
    display: flex;
    gap: 14px;
    padding: 16px;
    text-align: start;
    width: 100%;
}

.service-list i {
    align-items: center;
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    border-radius: 16px;
    color: var(--primary-2);
    display: inline-flex;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.service-list b,
.service-list small {
    display: block;
}

.service-list small {
    color: var(--muted);
    line-height: 1.7;
}

.brand-row {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.brand-row a {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    min-height: 96px;
    padding: 18px;
}

.brand-row img {
    max-height: 54px;
    object-fit: contain;
}

.product-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

@media (min-width: 981px) {
    .shop-product-grid {
        gap: 16px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

.product-card.is-unavailable .product-image img,
.product-detail.is-unavailable .detail-media img {
    filter: grayscale(.8);
    opacity: .62;
}

.stock-badge {
    background: rgba(239, 68, 68, .94);
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    padding: 7px 11px;
    position: absolute;
    top: 14px;
    z-index: 5;
}

html[dir="rtl"] .stock-badge {
    right: 14px;
}

html[dir="ltr"] .stock-badge {
    left: 14px;
}

.detail-stock-badge {
    top: 18px;
}

.favorite-button {
    align-items: center;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    position: absolute;
    top: 14px;
    transition: .2s ease;
    width: 42px;
    z-index: 4;
}

html[dir="rtl"] .favorite-button {
    left: 14px;
}

html[dir="ltr"] .favorite-button {
    right: 14px;
}

.favorite-button:hover,
.favorite-button.is-active {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
    transform: translateY(-1px);
}

.product-image {
    background: #f1f5f9;
    display: block;
}

.product-image img {
    aspect-ratio: 1 / .84;
    display: block;
    object-fit: contain;
    padding: 22px;
    width: 100%;
}

.product-content {
    padding: 22px;
}

.product-content span {
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    border-radius: 999px;
    color: var(--primary-2);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
}

.product-content h3 {
    font-size: 24px;
    font-weight: 900;
    margin-top: 14px;
}

.product-content p {
    color: var(--muted);
    line-height: 1.8;
    min-height: 76px;
}

.product-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.product-actions strong {
    color: var(--accent);
}

.product-action-buttons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.cart-layout {
    display: grid;
    gap: 16px;
}

@media (min-width: 840px) {
    .cart-layout {
        grid-template-columns: 1.05fr .95fr;
    }
}

.cart-box {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px;
}

.cart-box h3,
.invoice-group h4 {
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 12px;
}

.cart-items,
.invoice-group {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.cart-row,
.invoice-line {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    display: grid;
    gap: 10px;
    padding: 10px;
}

.cart-row {
    grid-template-columns: 54px 1fr auto auto;
}

.cart-row img {
    background: #f8fafc;
    border-radius: 12px;
    height: 54px;
    object-fit: contain;
    padding: 5px;
    width: 54px;
}

.cart-row strong,
.cart-row small {
    display: block;
}

.cart-row small,
.muted-line {
    color: var(--muted);
}

.cart-qty {
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    gap: 8px;
    padding: 4px;
}

.cart-qty button {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.invoice-line {
    grid-template-columns: 1fr auto;
}

.invoice-line small {
    color: var(--muted);
}

.invoice-total {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    font-weight: 900;
    justify-content: space-between;
    padding-top: 14px;
}

.invoice-total strong {
    color: var(--accent);
    font-size: 20px;
}

.cart-checkout {
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 18px;
}

.activity-card {
    padding: 26px;
}

.activity-card > i {
    color: #2563eb;
    font-size: 44px;
}

.activity-card h3 {
    font-size: 26px;
    font-weight: 900;
    margin-top: 14px;
}

.page-hero {
    background: var(--surface-soft);
}

.product-detail {
    background: linear-gradient(180deg, var(--surface-soft), var(--bg));
}

.detail-media {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 32px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    min-height: 480px;
    padding: 28px;
    position: relative;
}

.detail-media img {
    max-height: 520px;
    object-fit: contain;
}

.detail-copy {
    align-self: center;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.detail-meta span {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    gap: 8px;
    padding: 9px 12px;
}

.detail-meta i {
    color: var(--primary);
}

.detail-sections {
    display: grid;
    gap: 20px;
}

.info-panel {
    padding: 26px;
}

.spec-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.spec-card {
    padding: 20px;
}

.spec-card b {
    color: var(--primary);
    display: block;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
}

.about-grid img {
    border-radius: 32px;
    box-shadow: var(--shadow);
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    width: 100%;
}

.stats-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 24px;
}

.stats-row strong {
    color: var(--primary-2);
    font-size: 34px;
    font-weight: 900;
}

.branch-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.branch-card {
    padding: 22px;
}

.branch-card h3 {
    font-size: 22px;
    font-weight: 900;
}

.branch-card p {
    color: var(--muted);
    line-height: 1.8;
}

.branch-card a {
    color: var(--primary-2);
    display: inline-flex;
    font-weight: 900;
    margin-inline-end: 12px;
    margin-top: 8px;
}

.site-footer {
    background: #020617;
    color: #f8fafc;
}

.footer-grid {
    display: grid;
    gap: 34px;
    padding-bottom: 44px;
    padding-top: 52px;
}

@media (min-width: 860px) {
    .footer-grid {
        grid-template-columns: 1.2fr .75fr .8fr 1fr;
    }
}

.site-footer p,
.site-footer a,
.site-footer button {
    color: #cbd5e1;
    line-height: 1.8;
}

.site-footer h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 12px;
}

.site-footer a,
.site-footer button {
    background: transparent;
    border: 0;
    display: block;
    font-weight: 800;
    margin: 8px 0;
    padding: 0;
    text-align: start;
}

.site-footer i {
    color: #5eead4;
    margin-inline-end: 8px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-social a {
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .10);
    color: #94a3b8;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding: 18px 20px;
}

.mobile-nav {
    align-items: center;
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    box-shadow: 0 -18px 42px rgba(15, 23, 42, .10);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    left: 0;
    padding: 6px 6px max(6px, env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 48;
}

.mobile-nav a,
.mobile-nav button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 900;
    gap: 3px;
    justify-content: center;
    min-height: 55px;
    position: relative;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.mobile-nav i {
    font-size: 18px;
    transition: color .18s ease, transform .18s ease;
}

.mobile-nav a:hover,
.mobile-nav button:hover,
.mobile-nav a.is-active,
.mobile-nav button.is-active {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    border-radius: 16px;
    color: var(--primary-2);
}

.mobile-nav a.is-active i,
.mobile-nav button.is-active i {
    color: var(--primary);
    transform: translateY(-2px);
}

html.dark .mobile-nav a.is-active,
html.dark .mobile-nav button.is-active {
    color: #5eead4;
}

html.dark .mobile-nav a.is-active i,
html.dark .mobile-nav button.is-active i {
    color: #2dd4bf;
}

.drawer,
.modal {
    background: rgba(2, 6, 23, .64);
    inset: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    transition: .2s ease;
    z-index: 80;
}

.drawer.is-open,
.modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.drawer > div {
    background: var(--surface);
    bottom: 0;
    height: 100%;
    left: 0;
    max-width: 360px;
    overflow-y: auto;
    padding: 22px;
    position: absolute;
    top: 0;
    transform: translateX(-100%);
    transition: .25s ease;
    width: calc(100% - 48px);
}

html[dir="rtl"] .drawer > div {
    left: 0;
    margin: 0;
    right: auto;
    transform: translateX(-100%);
}

html[dir="ltr"] .drawer > div {
    left: 0;
    margin: 0;
    transform: translateX(-100%);
}

.drawer.is-open > div {
    transform: translateX(0);
}

html[dir="rtl"] .drawer.is-open > div,
html[dir="ltr"] .drawer.is-open > div {
    transform: translateX(0);
}

.drawer-head {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 6px;
    margin-bottom: 8px;
    padding: 18px 0;
}

.drawer-head img {
    background: var(--surface-soft);
    border-radius: 18px;
    height: 54px;
    object-fit: contain;
    padding: 6px;
    width: 54px;
}

.drawer-head strong {
    font-size: 20px;
    font-weight: 900;
}

.drawer-head small {
    color: var(--muted);
    line-height: 1.6;
}

.drawer a,
.drawer button:not(.icon-button) {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    display: flex;
    font-weight: 900;
    gap: 10px;
    padding: 16px 0;
    text-align: start;
    width: 100%;
}

.drawer a i,
.drawer button:not(.icon-button) i {
    color: var(--primary-2);
    min-width: 22px;
    text-align: center;
}

.drawer-tools {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
}

.drawer-tools a,
.drawer-tools button:not(.icon-button) {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    justify-content: center;
    min-height: 44px;
    padding: 10px;
}

.drawer-tools a.is-active {
    background: color-mix(in srgb, var(--primary) 18%, var(--surface));
    border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
    color: var(--primary-2);
}

.drawer-tools button:not(.icon-button) {
    grid-column: 1 / -1;
}

.drawer-menu {
    display: grid;
}

.ios-install-note {
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--line));
    border-radius: 16px;
    color: var(--text);
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding: 14px;
}

.ios-install-note[hidden] {
    display: none;
}

.ios-install-note strong {
    font-weight: 900;
}

.ios-install-note p,
.install-status {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.7;
    margin: 0;
}

.install-status {
    color: var(--primary-2);
    padding-top: 10px;
}

.drawer-count {
    margin-inline-start: auto;
    position: static;
}

.modal {
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 18px;
}

.modal.is-open {
    display: flex;
}

.modal-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 36px);
    max-width: 680px;
    overflow: auto;
    padding: 24px;
    transform: translateY(16px);
    transition: .25s ease;
    width: min(100%, 680px);
}

.modal-panel.large {
    max-width: 920px;
    width: min(100%, 920px);
}

.modal.is-open .modal-panel {
    transform: translateY(0);
}

.bottom-sheet {
    align-items: flex-end;
}

.bottom-sheet .modal-panel {
    border-end-end-radius: 0;
    border-end-start-radius: 0;
    max-width: 760px;
    transform: translateY(100%);
    width: min(100%, 760px);
}

.services-panel {
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.service-sheet-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-sheet-grid a,
.service-sheet-grid button {
    align-items: flex-start;
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--bg)), var(--bg));
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    color: var(--text);
    display: flex;
    gap: 14px;
    min-height: 118px;
    padding: 16px;
    text-align: start;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.service-sheet-grid a:hover,
.service-sheet-grid button:hover {
    border-color: var(--primary);
    box-shadow: 0 16px 38px rgba(15, 118, 110, .13);
    transform: translateY(-2px);
}

.service-sheet-grid i {
    align-items: center;
    background: color-mix(in srgb, var(--primary) 16%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
    border-radius: 50%;
    color: var(--primary-2);
    display: inline-flex;
    flex: 0 0 46px;
    font-size: 18px;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.service-sheet-grid span {
    min-width: 0;
}

.service-sheet-grid b,
.service-sheet-grid small {
    display: block;
}

.service-sheet-grid small {
    color: var(--muted);
    line-height: 1.7;
    margin-top: 4px;
}

@media (max-width: 520px) {
    .bottom-sheet .modal-panel {
        max-width: 100%;
    }

    .service-sheet-grid {
        gap: 10px;
    }

    .service-sheet-grid a,
    .service-sheet-grid button {
        border-radius: 14px;
        flex-direction: column;
        gap: 10px;
        min-height: 132px;
        padding: 12px;
    }

    .service-sheet-grid i {
        flex-basis: 40px;
        height: 40px;
        width: 40px;
    }

    .service-sheet-grid b {
        font-size: 13px;
    }

    .service-sheet-grid small {
        font-size: 11px;
        line-height: 1.55;
    }
}

.search-input {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--text);
    font-weight: 800;
    margin-bottom: 16px;
    outline: none;
    padding: 14px 16px;
    width: 100%;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, .14);
}

.search-results,
.favorites-list {
    display: grid;
    gap: 10px;
}

.search-results a,
.favorite-row {
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    display: flex;
    gap: 12px;
    padding: 12px;
}

.search-results a[hidden] {
    display: none;
}

.search-results img,
.favorite-row img {
    background: #f8fafc;
    border-radius: 14px;
    height: 58px;
    object-fit: contain;
    padding: 6px;
    width: 58px;
}

.search-results b,
.search-results small,
.favorite-row b,
.favorite-row small {
    display: block;
}

.search-results small {
    color: var(--muted);
}

.favorite-row {
    justify-content: space-between;
}

.favorite-row a {
    align-items: center;
    display: flex;
    flex: 1;
    gap: 12px;
    min-width: 0;
}

.favorite-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-button.is-added,
.ghost-button.is-added {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
    transform: translateY(-1px);
}

.empty-state {
    background: var(--bg);
    border: 1px dashed var(--line);
    border-radius: 18px;
    color: var(--muted);
    font-weight: 900;
    margin: 0;
    padding: 18px;
    text-align: center;
}

.modal-head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.modal-head h2 {
    font-size: 28px;
    font-weight: 900;
}

.modal-head p {
    color: var(--muted);
    line-height: 1.8;
}

.request-form,
.request-form label {
    display: grid;
    gap: 10px;
}

.form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.request-form span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.request-form input,
.request-form select,
.request-form textarea {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--text);
    outline: none;
    padding: 13px 14px;
    width: 100%;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, .14);
}

.form-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
}

.form-footer p {
    color: var(--primary-2);
    font-weight: 900;
}

.form-footer p a {
    border-bottom: 1px solid currentColor;
    color: var(--primary);
    display: inline-flex;
    margin-inline-start: 8px;
}

.mobile-only {
    display: none;
}

@media (max-width: 980px) {
    .desktop-nav,
    .header-actions .main-button,
    .lang-link {
        display: none;
    }

    .mobile-only {
        display: inline-flex;
    }

    .desktop-menu-button {
        display: none;
    }

    .hero h1,
    .page-hero h1,
    .product-detail h1 {
        font-size: 38px;
    }

    .hero-media {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    body:not(.admin-body):not(.admin-login-page) {
        padding-top: 64px;
    }

    .header-inner {
        gap: 10px;
        min-height: 64px;
        padding-inline: 14px;
    }

    .brand {
        gap: 8px;
    }

    .brand img {
        border-radius: 14px;
        height: 40px;
        width: 40px;
    }

    .brand strong {
        font-size: 15px;
        max-width: 132px;
    }

    .brand small {
        display: none;
    }

    .section,
    .page-hero,
    .product-detail {
        padding: 54px 0;
    }

    .hero-grid {
        min-height: auto;
        padding-bottom: 34px;
        padding-top: 34px;
    }

    .hero {
        padding: 18px 0 34px;
    }

    .hero-cover {
        align-items: flex-end;
        background-image:
            linear-gradient(180deg, rgba(2, 6, 23, .14), rgba(2, 6, 23, .82)),
            var(--hero-cover-image);
        border-radius: 24px;
        min-height: 560px;
        padding: 24px;
    }

    .hero-cover-carousel {
        min-height: 560px;
    }

    html[dir="rtl"] .hero-cover {
        background-image:
            linear-gradient(180deg, rgba(2, 6, 23, .14), rgba(2, 6, 23, .82)),
            var(--hero-cover-image);
    }

    .hero-cover-content {
        width: 100%;
    }

    .hero-copy {
        justify-items: center;
        max-width: 100%;
        text-align: center;
        width: 100%;
    }

    .hero h1,
    .page-hero h1,
    .product-detail h1 {
        font-size: 27px;
        line-height: 1.28;
        max-width: min(100%, 330px);
    }

    .hero .hero-cover h1 {
        color: #fff;
        max-width: 100%;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.9;
        max-width: min(100%, 330px);
    }

    .hero .hero-cover p {
        color: #e2e8f0;
        max-width: 100%;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .hero-actions .main-button,
    .hero-actions .ghost-button {
        width: 100%;
    }

    .hero-media {
        min-height: 280px;
    }

    .hero-badge {
        grid-template-columns: 1fr 1fr;
        left: 12px;
        padding: 12px;
        right: 12px;
    }

    .hero-badge strong {
        font-size: 20px;
    }

    .main-button,
    .ghost-button {
        white-space: normal;
    }

    .header-actions {
        gap: 5px;
    }

    .header-actions .icon-button {
        height: 38px;
        min-width: 38px;
        padding: 0 10px;
    }

    .shop-product-grid {
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-product-grid .product-image img {
        padding: 12px;
    }

    .shop-product-grid .product-content {
        padding: 13px;
    }

    .shop-product-grid .product-content span {
        font-size: 10px;
        padding: 5px 8px;
    }

    .shop-product-grid .product-content h3 {
        font-size: 16px;
        margin-top: 10px;
    }

    .shop-product-grid .product-content p {
        display: -webkit-box;
        font-size: 12px;
        line-height: 1.6;
        min-height: 58px;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .shop-product-grid .product-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .shop-product-grid .product-action-buttons {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .shop-product-grid .ghost-button,
    .shop-product-grid .main-button {
        font-size: 12px;
        min-height: 34px;
        padding: 8px 10px;
        width: 100%;
    }

    .cart-row {
        grid-template-columns: 48px 1fr auto;
    }

    .cart-row .icon-button {
        grid-column: 3;
    }

    .cart-qty {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .shop-product-grid .favorite-button {
        height: 34px;
        top: 9px;
        width: 34px;
    }

    html[dir="rtl"] .shop-product-grid .favorite-button {
        left: 9px;
    }

    html[dir="ltr"] .shop-product-grid .favorite-button {
        right: 9px;
    }
}

@media (min-width: 981px) {
    body:not(.admin-body):not(.admin-login-page) {
        padding-bottom: 104px;
    }

    .mobile-nav {
        background: color-mix(in srgb, var(--surface) 76%, transparent);
        border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
        border-radius: 26px;
        bottom: 22px;
        box-shadow: 0 22px 60px rgba(15, 23, 42, .14);
        grid-template-columns: repeat(5, minmax(0, 1fr));
        left: 50%;
        padding: 8px;
        right: auto;
        transform: translateX(-50%);
        width: min(620px, calc(100% - 48px));
    }

    .mobile-nav a,
    .mobile-nav button {
        border-radius: 20px;
        flex-direction: row;
        font-size: 13px;
        gap: 8px;
        min-height: 54px;
        padding: 0 12px;
        white-space: nowrap;
    }

    .mobile-nav i {
        align-items: center;
        background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
        border: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
        border-radius: 16px;
        display: inline-flex;
        font-size: 17px;
        height: 34px;
        justify-content: center;
        margin: 0;
        width: 34px;
    }

    .mobile-nav a:hover,
    .mobile-nav button:hover,
    .mobile-nav a.is-active,
    .mobile-nav button.is-active {
        border-radius: 20px;
        box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent);
    }

    .mobile-nav a.is-active i,
    .mobile-nav button.is-active i {
        background: color-mix(in srgb, var(--primary) 15%, var(--surface));
        border-color: color-mix(in srgb, var(--primary) 28%, transparent);
        transform: translateY(-1px);
    }
}

.admin-login-page,
.admin-body {
    background:
        radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 28rem),
        radial-gradient(circle at 88% 0%, rgba(245, 158, 11, .10), transparent 24rem),
        var(--bg);
    color: var(--text);
}

.login-box {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow);
    max-width: 430px;
    padding: 30px;
    text-align: center;
    width: 100%;
}

.login-box img {
    background: var(--surface-soft);
    border-radius: 22px;
    height: 76px;
    object-fit: contain;
    padding: 8px;
    width: 76px;
}

.login-box h1,
.admin-top h1 {
    font-size: 34px;
    font-weight: 900;
}

.login-box p {
    color: var(--muted);
}

.admin-body {
    display: block;
    min-height: 100vh;
    padding-top: 86px;
    padding-bottom: 0;
}

.admin-header {
    align-items: center;
    -webkit-backdrop-filter: blur(22px) saturate(155%);
    backdrop-filter: blur(22px) saturate(155%);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    left: 0;
    min-height: 76px;
    padding: 12px clamp(14px, 3vw, 28px);
    position: fixed;
    right: 0;
    top: 0;
    z-index: 90;
}

.admin-header-brand img {
    height: 48px;
    width: 48px;
}

.admin-header-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.admin-header-actions .icon-button {
    background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.admin-notify-button b {
    background: var(--accent);
    border-radius: 999px;
    color: #111827;
    font-size: 11px;
    line-height: 1;
    min-width: 19px;
    padding: 4px 6px;
    position: absolute;
    right: -4px;
    top: -4px;
}

.admin-sidebar {
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border-right: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    bottom: 0;
    box-shadow: 18px 0 52px rgba(15, 23, 42, .16);
    height: 100vh;
    left: 0;
    overflow-y: auto;
    padding: 20px;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform .24s ease;
    width: 292px;
    z-index: 110;
}

.admin-sidebar.is-open {
    transform: translateX(0);
}

.admin-body.admin-menu-open::before {
    background: rgba(2, 6, 23, .42);
    content: "";
    inset: 0;
    position: fixed;
    z-index: 100;
}

.admin-sidebar-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 14px;
}

.admin-brand {
    padding: 8px;
}

.admin-sidebar nav,
.admin-side-actions,
.admin-stack,
.admin-form,
.panel-form {
    display: grid;
    gap: 10px;
}

.admin-sidebar nav a,
.admin-side-actions a,
.admin-side-actions button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 16px;
    color: var(--muted);
    display: flex;
    font-weight: 900;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    text-align: start;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.admin-sidebar nav a.is-active,
.admin-sidebar nav a:hover,
.admin-side-actions a:hover,
.admin-side-actions button:hover {
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    color: var(--primary-2);
    transform: translateX(-2px);
}

.admin-sidebar nav b,
.admin-top-actions b {
    background: var(--accent);
    border-radius: 999px;
    color: #111827;
    font-size: 12px;
    margin-inline-start: auto;
    min-width: 24px;
    padding: 2px 7px;
    text-align: center;
}

.admin-side-actions {
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 20px;
}

.admin-main {
    margin-left: 0;
    margin-right: 0;
    min-width: 0;
    padding: 28px clamp(18px, 3vw, 36px);
}

.admin-top {
    align-items: center;
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .06);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 16px;
    position: sticky;
    top: 16px;
    z-index: 20;
}

.admin-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-alert {
    border-radius: 18px;
    font-weight: 900;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.admin-alert.success {
    background: rgba(16, 185, 129, .14);
    color: #059669;
}

.admin-alert.danger {
    background: rgba(239, 68, 68, .14);
    color: #dc2626;
}

.admin-stats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 20px;
}

.admin-stats div,
.admin-panel {
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.admin-stats div {
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.admin-stats div::after {
    background: color-mix(in srgb, var(--primary) 9%, transparent);
    border-radius: 999px;
    content: "";
    height: 86px;
    position: absolute;
    top: -36px;
    width: 86px;
}

html[dir="rtl"] .admin-stats div::after {
    left: -28px;
}

html[dir="ltr"] .admin-stats div::after {
    right: -28px;
}

.admin-stats i {
    color: var(--primary);
    font-size: 24px;
}

.admin-stats span,
.admin-stats strong {
    display: block;
}

.admin-stats span {
    color: var(--muted);
    font-weight: 900;
    margin-top: 12px;
}

.admin-stats strong {
    font-size: 34px;
    font-weight: 900;
}

.admin-panel {
    margin-bottom: 18px;
    padding: 20px;
}

.admin-panel h2 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 16px;
}

.panel-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.panel-head small {
    color: var(--muted);
    font-weight: 900;
}

.admin-form label {
    display: grid;
    gap: 8px;
}

.admin-form span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.mini-form select,
.small-input {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    outline: none;
    padding: 11px 12px;
    width: 100%;
}

.admin-form textarea {
    resize: vertical;
}

.admin-image-preview {
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    gap: 12px;
    min-height: 66px;
    padding: 10px;
}

.admin-image-preview img {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    object-fit: cover;
    width: 96px;
}

.admin-image-preview span {
    color: var(--primary-2);
}

.admin-upload-field {
    display: grid;
    gap: 10px;
}

.admin-upload-field .admin-image-preview {
    min-height: 74px;
}

.admin-upload-field .admin-image-preview img {
    background: var(--surface);
    object-fit: contain;
}

.admin-image-empty {
    align-items: center;
    background: var(--bg);
    border: 1px dashed var(--line);
    border-radius: 14px;
    color: var(--muted);
    display: flex;
    font-size: 13px;
    font-weight: 900;
    gap: 10px;
    min-height: 74px;
    padding: 12px;
}

.admin-image-empty i {
    color: var(--primary);
}

.product-create-panel .panel-head > i {
    align-items: center;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    border-radius: 18px;
    color: var(--primary-2);
    display: inline-flex;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.product-admin-form {
    gap: 18px;
}

.product-form-section {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 14px;
    padding-top: 18px;
}

.product-form-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.product-form-section-head {
    align-items: center;
    display: flex;
    gap: 12px;
}

.product-form-section-head > i {
    align-items: center;
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--line));
    border-radius: 15px;
    color: var(--primary-2);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.product-form-section-head small,
.products-list-head small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.product-form-section-head h3 {
    font-size: 18px;
    font-weight: 900;
}

.product-media-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-checks {
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
}

.product-checks label {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.product-checks input[type="checkbox"] {
    width: auto;
}

.product-actions-bar {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.admin-products-area {
    margin-bottom: 18px;
}

.products-list-head {
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
    padding: 16px;
}

.products-list-head span {
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    border-radius: 999px;
    color: var(--primary-2);
    font-size: 13px;
    font-weight: 900;
    padding: 8px 12px;
}

.admin-product-list {
    display: grid;
    gap: 12px;
}

.admin-product-card {
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .07);
    overflow: hidden;
}

.admin-product-card[open] {
    box-shadow: var(--shadow);
}

.admin-product-summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: 68px minmax(0, 1fr) auto auto;
    list-style: none;
    padding: 14px;
}

.admin-product-summary::-webkit-details-marker {
    display: none;
}

.admin-product-summary img {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    height: 68px;
    object-fit: contain;
    padding: 6px;
    width: 68px;
}

.admin-product-title {
    min-width: 0;
}

.admin-product-title strong,
.admin-product-title small {
    display: block;
}

.admin-product-title strong {
    font-size: 17px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-product-title small {
    color: var(--muted);
    margin-top: 4px;
}

.admin-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-product-meta b {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    padding: 6px 9px;
}

.admin-product-meta b.is-on {
    background: rgba(16, 185, 129, .14);
    border-color: rgba(16, 185, 129, .22);
    color: #059669;
}

.admin-product-meta b.is-off {
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .20);
    color: #dc2626;
}

.admin-product-summary > i {
    color: var(--muted);
    transition: transform .18s ease;
}

.admin-product-card[open] .admin-product-summary > i {
    transform: rotate(180deg);
}

.admin-product-editor {
    border-top: 1px solid var(--line);
    padding: 16px;
}

.check-row,
.form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.check-row input[type="checkbox"],
.mini-form input[type="checkbox"] {
    width: auto;
}

.small-input {
    max-width: 90px;
}

.table-wrap {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: start;
    vertical-align: top;
}

.admin-table th {
    background: color-mix(in srgb, var(--surface-soft) 70%, transparent);
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    position: sticky;
    top: 0;
    z-index: 1;
}

.admin-table small {
    color: var(--muted);
}

.admin-table tr.unread {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.invoice-admin-link {
    color: var(--primary);
    display: inline-flex;
    font-weight: 900;
    margin-top: 10px;
}

.status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 9px;
}

.status.new {
    background: rgba(245, 158, 11, .16);
    color: #d97706;
}

.status.processing,
.status.contacted {
    background: rgba(59, 130, 246, .16);
    color: #2563eb;
}

.status.done {
    background: rgba(16, 185, 129, .16);
    color: #059669;
}

.status.cancelled {
    background: rgba(239, 68, 68, .16);
    color: #dc2626;
}

.mini-form {
    display: grid;
    gap: 8px;
    min-width: 160px;
}

.admin-install-note {
    margin-top: 0;
}

.admin-install-status {
    color: var(--primary-2);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.6;
    margin: 0;
}

.order-toast {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    bottom: 22px;
    box-shadow: var(--shadow);
    color: var(--text);
    font-weight: 900;
    opacity: 0;
    padding: 14px 18px;
    position: fixed;
    right: 22px;
    transform: translateY(12px);
    transition: .2s ease;
    z-index: 200;
}

.order-toast.is-open {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .admin-body {
        padding-top: 74px;
    }

    .admin-header {
        min-height: 66px;
        padding: 10px 12px;
    }

    .admin-header-brand img {
        height: 42px;
        width: 42px;
    }

    .admin-header-brand small {
        display: none;
    }

    .admin-header-actions {
        gap: 6px;
    }

    .admin-header-actions .icon-button {
        height: 40px;
        min-width: 40px;
        padding: 0 10px;
    }

    .admin-sidebar {
        max-width: 360px;
        padding: 16px;
        width: calc(100% - 44px);
    }

    .admin-product-summary {
        align-items: start;
        grid-template-columns: 58px minmax(0, 1fr) auto;
    }

    .admin-product-summary img {
        height: 58px;
        width: 58px;
    }

    .admin-product-meta {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }

    .admin-product-summary > i {
        align-self: center;
        grid-column: 3;
        grid-row: 1;
    }

    .admin-main {
        margin-right: 0;
        padding: 14px;
    }

    .admin-top {
        align-items: flex-start;
        flex-direction: column;
        position: static;
    }

    .admin-top h1 {
        font-size: 28px;
    }

    .admin-top-actions {
        width: 100%;
    }

    .admin-top-actions .ghost-button,
    .admin-top-actions .main-button {
        justify-content: center;
    }

    .admin-panel {
        border-radius: 20px;
        padding: 16px;
    }

    .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-table {
        min-width: 760px;
    }
}

@media (max-width: 640px) {
    .admin-header-brand span {
        display: none;
    }

    .admin-header-actions .icon-button {
        height: 38px;
        min-width: 38px;
        padding: 0 9px;
    }

    .admin-main {
        padding: 10px;
    }

    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .admin-stats div {
        padding: 14px;
    }

    .admin-stats strong {
        font-size: 26px;
    }

    .admin-panel h2 {
        font-size: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions .main-button,
    .form-actions .ghost-button {
        justify-content: center;
        width: 100%;
    }

    .order-toast {
        bottom: 14px;
        left: 14px;
        right: 14px;
    }
}

/* Final feature overrides */
.hero.hero-full { padding: 0; position: relative; }
.hero.hero-full .hero-cover-carousel { width: 100%; max-width: none; border-radius: 0; }
.hero.hero-full .hero-cover { min-height: clamp(620px, 100svh, 920px); border-radius: 0; align-items: flex-end; }
.hero.hero-full .hero-cover-content { width: min(1120px, calc(100% - 32px)); margin: 0 auto clamp(72px, 12vh, 128px); }
.brand-carousel { overflow: hidden; padding: 10px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.brand-track { display: flex; width: max-content; gap: 18px; animation: brand-scroll 24s linear infinite; }
.brand-track a { width: 168px; height: 88px; flex: 0 0 168px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--surface) 88%, transparent); }
.brand-track img { width: 126px; height: 54px; object-fit: contain; }
.footer-pro { display: grid; grid-template-columns: minmax(260px, 1.25fr) minmax(250px, .9fr) minmax(250px, 1fr) minmax(280px, 1.1fr); gap: 22px; }
.footer-company, .footer-tabs, .footer-branches, .footer-map, .ticket-card, .about-cards article { border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--surface) 84%, transparent); padding: 22px; }
.footer-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.footer-tabs a, .footer-tabs button, .footer-branches a, .footer-map p, .footer-map a { display: flex; align-items: center; gap: 9px; }
.footer-map iframe { width: 100%; height: 190px; border: 0; border-radius: 8px; margin-bottom: 12px; }
.about-cards, .admin-grid-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.about-contact-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: var(--surface); }
.ticket-board, .ticket-messages { display: grid; gap: 16px; }
.ticket-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; }
.ticket-message { border-radius: 8px; padding: 12px; background: color-mix(in srgb, var(--muted) 52%, transparent); }
.ticket-message.admin { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
.gemini-result { min-height: 130px; white-space: pre-wrap; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--muted) 55%, transparent); padding: 14px; color: var(--text); overflow: auto; }
@media (max-width: 1120px) { .footer-pro { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .footer-pro, .footer-tabs, .ticket-head { grid-template-columns: 1fr; } .hero.hero-full .hero-cover { min-height: 86svh; } }

/* Responsive footer, stable cover carousel, and live support chat */
.hero.hero-full {
    height: clamp(620px, calc(100svh - 76px), 920px);
    min-height: 620px;
}

.hero.hero-full .hero-cover-carousel {
    height: 100%;
    min-height: 0;
    isolation: isolate;
}

.hero.hero-full .hero-cover {
    height: 100%;
    min-height: 0;
    padding: clamp(28px, 5vw, 72px);
}

.hero.hero-full .hero-cover:after {
    background: linear-gradient(0deg, rgba(2, 6, 23, .52), transparent 46%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.hero.hero-full .hero-cover-content {
    margin-bottom: clamp(76px, 10vh, 112px);
}

.hero-arrow {
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    color: #fff;
    display: flex;
    height: 46px;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background .2s ease, transform .2s ease;
    width: 46px;
    z-index: 6;
}

.hero-arrow:hover {
    background: rgba(20, 184, 166, .88);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev { inset-inline-start: 24px; }
.hero-next { inset-inline-end: 24px; }

.hero-dots button {
    background: rgba(255, 255, 255, .52);
    border-color: rgba(255, 255, 255, .28);
}

.hero-dots button.is-active {
    background: #2dd4bf;
    width: 32px;
}

.site-footer.pro-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    color: var(--text);
    padding: 54px 0 104px;
}

.footer-pro {
    align-items: start;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.footer-company,
.footer-tabs,
.footer-branches,
.footer-map {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.footer-company { grid-column: span 4; }
.footer-tabs { grid-column: span 3; }
.footer-branches { grid-column: span 2; }
.footer-map { grid-column: span 3; }

.site-footer.pro-footer p,
.site-footer.pro-footer a,
.site-footer.pro-footer button {
    color: var(--muted);
}

.site-footer.pro-footer h3,
.site-footer.pro-footer .footer-brand strong {
    color: var(--text);
}

.site-footer.pro-footer i {
    color: var(--primary-2);
}

html.dark .site-footer.pro-footer i {
    color: #5eead4;
}

.footer-company > p {
    font-size: 14px;
    margin: 18px 0;
    max-width: 520px;
}

.footer-tabs {
    gap: 24px;
}

.footer-tabs a,
.footer-tabs button {
    margin: 5px 0;
    min-height: 34px;
}

.footer-branches {
    gap: 8px;
}

.footer-branches article {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    gap: 2px;
    padding: 10px 12px;
}

.footer-branches article span,
.footer-branches article small,
.footer-branches article a {
    font-size: 12px;
    line-height: 1.55;
    margin: 0;
}

.footer-map iframe {
    background: var(--surface-soft);
    height: 164px;
}

.footer-map p,
.footer-map > a {
    font-size: 13px;
    line-height: 1.55;
    margin: 7px 0;
}

.site-footer.pro-footer .footer-social a {
    background: var(--surface-soft);
    border-color: var(--line);
    color: var(--text);
    margin: 0;
}

.site-footer.pro-footer .footer-actions .main-button {
    align-items: center;
    background: var(--primary-2);
    border: 1px solid var(--primary-2);
    color: #fff;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    margin: 0;
    min-height: 42px;
    padding: 10px 15px;
    white-space: nowrap;
}

.site-footer.pro-footer .footer-actions .ghost-button {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    margin: 0;
    min-height: 42px;
    padding: 10px 15px;
    white-space: nowrap;
}

.site-footer.pro-footer .footer-actions i {
    color: inherit;
    flex: 0 0 auto;
    margin: 0;
}

.site-footer.pro-footer .footer-actions .main-button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #052e2b;
}

html.dark .site-footer.pro-footer .footer-actions .main-button {
    background: #14b8a6;
    border-color: #14b8a6;
    color: #021b19;
}

@media (max-width: 430px) {
    .site-footer.pro-footer .footer-actions {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-footer.pro-footer .footer-actions .main-button,
    .site-footer.pro-footer .footer-actions .ghost-button {
        width: 100%;
    }
}

.site-footer.pro-footer .footer-actions .ghost-button {
    border: 1px solid var(--line);
    color: var(--text);
}

.site-footer.pro-footer .footer-bottom {
    border-color: var(--line);
    color: var(--muted);
    margin-top: 36px;
    padding-inline: max(20px, calc((100% - 1180px) / 2));
}

.chat-modal-panel {
    display: flex;
    flex-direction: column;
    max-height: min(760px, calc(100svh - 28px));
    max-width: 760px;
    overflow: hidden;
}

.live-chat-view {
    min-height: 0;
}

.live-chat-view:not([hidden]) {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.chat-status-bar {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 10px 12px;
}

.chat-status-bar > div {
    align-items: center;
    display: grid;
    grid-template-columns: auto 1fr;
    min-width: 0;
}

.chat-status-bar small {
    color: var(--muted);
    grid-column: 2;
}

.live-dot {
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .13);
    display: block;
    grid-row: span 2;
    height: 9px;
    margin-inline-end: 12px;
    width: 9px;
}

.chat-messages {
    background: color-mix(in srgb, var(--surface-soft) 70%, var(--surface));
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-height: 300px;
    overflow-y: auto;
    padding: 16px;
}

.chat-message {
    border: 1px solid var(--line);
    border-radius: 8px;
    max-width: min(82%, 540px);
    padding: 10px 12px;
}

.chat-message.from-customer {
    align-self: flex-start;
    background: var(--primary);
    border-color: transparent;
    color: #fff;
}

html[dir="ltr"] .chat-message.from-customer {
    align-self: flex-end;
}

.chat-message.from-team {
    align-self: flex-end;
    background: var(--surface);
}

html[dir="ltr"] .chat-message.from-team {
    align-self: flex-start;
}

.chat-message > div {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.chat-message small {
    font-size: 10px;
    opacity: .72;
}

.chat-message p {
    line-height: 1.7;
    margin: 5px 0 0;
    overflow-wrap: anywhere;
}

.chat-compose {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto;
    margin-top: 12px;
}

.chat-compose textarea {
    max-height: 120px;
    min-height: 52px;
    resize: vertical;
}

.chat-compose .main-button {
    height: 52px;
    padding: 0;
    width: 52px;
}

.chat-feedback {
    color: #dc2626;
    font-size: 13px;
    margin: 6px 0 0;
}

.ticket-card .ticket-messages {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    max-height: 420px;
    overflow-y: auto;
    padding: 14px;
}

.ticket-card .ticket-message {
    max-width: min(82%, 620px);
}

.ticket-card .ticket-message.customer {
    justify-self: start;
}

.ticket-card .ticket-message.admin {
    justify-self: end;
}

html[dir="ltr"] .ticket-card .ticket-message.customer {
    justify-self: end;
}

html[dir="ltr"] .ticket-card .ticket-message.admin {
    justify-self: start;
}

@media (max-width: 1120px) {
    .footer-company,
    .footer-tabs,
    .footer-branches,
    .footer-map {
        grid-column: span 6;
    }
}

@media (max-width: 720px) {
    .hero.hero-full {
        height: calc(100svh - 64px);
        min-height: 560px;
    }

    .hero.hero-full .hero-cover {
        min-height: 0;
        padding: 24px 20px;
    }

    .hero.hero-full .hero-cover-content {
        margin-bottom: 76px;
        width: 100%;
    }

    .hero.hero-full .hero-cover h1 {
        font-size: clamp(30px, 9vw, 44px);
    }

    .hero-arrow {
        height: 40px;
        top: auto;
        bottom: 22px;
        width: 40px;
    }

    .hero-prev { inset-inline-start: 18px; }
    .hero-next { inset-inline-end: 18px; }
    .hero-full .hero-dots { bottom: 35px; }

    .site-footer.pro-footer {
        padding: 38px 0 96px;
    }

    .footer-pro {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-company,
    .footer-tabs,
    .footer-branches,
    .footer-map {
        grid-column: 1;
    }

    .footer-tabs {
        grid-template-columns: 1fr 1fr;
    }

    .footer-map iframe {
        height: 210px;
    }

    .site-footer.pro-footer .footer-bottom {
        align-items: start;
        flex-direction: column;
        gap: 8px;
        padding-inline: 20px;
    }

    .chat-modal-panel {
        border-radius: 12px 12px 0 0;
        bottom: 0;
        height: min(88svh, 760px);
        max-height: none;
        position: absolute;
        width: 100%;
    }

    .chat-messages {
        min-height: 0;
    }

    .chat-status-bar {
        align-items: flex-start;
        gap: 8px;
    }

    .chat-status-bar .ghost-button {
        min-height: 36px;
        padding: 7px 9px;
    }

    .chat-message {
        max-width: 90%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-cover-carousel .hero-cover {
        transition: none;
    }
}

/* About page 2026 refresh */
.about-showcase {
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, .92), rgba(2, 6, 23, .66) 52%, rgba(2, 6, 23, .25)),
        var(--about-image);
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    min-height: clamp(620px, 78svh, 820px);
    overflow: hidden;
    position: relative;
}

html[dir="rtl"] .about-showcase {
    background-image:
        linear-gradient(270deg, rgba(2, 6, 23, .92), rgba(2, 6, 23, .66) 52%, rgba(2, 6, 23, .25)),
        var(--about-image);
}

.about-showcase:after {
    background: linear-gradient(0deg, rgba(2, 6, 23, .72), transparent 38%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.about-showcase-content {
    align-self: center;
    margin-bottom: 54px;
    position: relative;
    width: 100%;
    z-index: 2;
}

.about-showcase-content .eyebrow {
    color: #5eead4;
}

.about-showcase h1 {
    color: #fff;
    font-size: clamp(44px, 5.4vw, 78px);
    line-height: 1.12;
    margin: 14px 0 22px;
    max-width: 880px;
}

.about-showcase-content > p {
    color: #e2e8f0;
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.9;
    max-width: 760px;
}

.about-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.about-glass-button {
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    gap: 9px;
    min-height: 50px;
    padding: 12px 18px;
}

.about-showcase-meta {
    bottom: 0;
    inset-inline: 0;
    position: absolute;
    z-index: 3;
}

.about-showcase-meta .shell {
    border-top: 1px solid rgba(255, 255, 255, .22);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-showcase-meta span {
    align-items: center;
    color: #e2e8f0;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 10px;
    min-height: 64px;
    padding: 12px 18px;
}

.about-showcase-meta span + span {
    border-inline-start: 1px solid rgba(255, 255, 255, .18);
}

.about-showcase-meta i {
    color: #5eead4;
}

.about-intro-layout {
    align-items: center;
    display: grid;
    gap: clamp(36px, 7vw, 96px);
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
}

.about-intro-copy h2 {
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.2;
    margin: 12px 0 22px;
}

.about-intro-copy p {
    color: var(--muted);
    font-size: 17px;
    line-height: 2;
}

.text-link {
    align-items: center;
    color: var(--primary-2);
    display: inline-flex;
    font-weight: 900;
    gap: 10px;
    margin-top: 18px;
}

html.dark .text-link {
    color: #5eead4;
}

.about-metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-metrics article {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 154px;
    padding: 24px;
}

.about-metrics strong {
    color: var(--primary-2);
    display: block;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
}

html.dark .about-metrics strong {
    color: #5eead4;
}

.about-metrics span {
    color: var(--muted);
    display: block;
    font-weight: 700;
    line-height: 1.6;
    margin-top: 12px;
}

.about-section-head {
    max-width: 760px;
}

.about-workflow {
    counter-reset: workflow;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 42px;
}

.about-workflow article {
    border-top: 1px solid var(--line);
    min-width: 0;
    padding: 28px 24px 8px;
    position: relative;
}

.about-workflow article + article {
    border-inline-start: 1px solid var(--line);
}

.about-workflow article:before {
    background: var(--primary);
    border-radius: 50%;
    content: "";
    height: 9px;
    inset-inline-start: 24px;
    position: absolute;
    top: -5px;
    width: 9px;
}

.about-workflow b {
    color: var(--muted);
    font-size: 12px;
}

.about-workflow i {
    color: var(--primary-2);
    display: block;
    font-size: 26px;
    margin: 20px 0 16px;
}

html.dark .about-workflow i {
    color: #5eead4;
}

.about-workflow h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.about-workflow p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.about-capability-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 38px;
}

.about-capability-grid article {
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 18px;
    grid-template-columns: auto 1fr;
    min-height: 240px;
    padding: clamp(22px, 3vw, 34px);
}

.about-capability-icon {
    align-items: center;
    background: var(--surface-soft);
    border-radius: 8px;
    color: var(--primary-2);
    display: flex;
    font-size: 24px;
    height: 54px;
    justify-content: center;
    width: 54px;
}

html.dark .about-capability-icon {
    color: #5eead4;
}

.about-capability-grid h3 {
    font-size: 22px;
    margin: 2px 0 10px;
}

.about-capability-grid p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-capability-grid a,
.about-capability-grid button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--primary-2);
    display: inline-flex;
    font-weight: 900;
    gap: 9px;
    padding: 0;
}

html.dark .about-capability-grid a,
html.dark .about-capability-grid button {
    color: #5eead4;
}

.about-branches-layout {
    align-items: start;
    display: grid;
    gap: clamp(28px, 5vw, 70px);
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
}

.about-branch-list {
    border-top: 1px solid var(--line);
    margin-top: 32px;
}

.about-branch-list article {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 18px;
    grid-template-columns: 48px 1fr auto;
    padding: 18px 0;
}

.about-branch-number {
    color: var(--primary-2);
    font-size: 13px;
    font-weight: 900;
}

html.dark .about-branch-number {
    color: #5eead4;
}

.about-branch-list h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.about-branch-list p,
.about-branch-list small {
    color: var(--muted);
    display: block;
    line-height: 1.65;
}

.about-branch-actions {
    display: flex;
    gap: 8px;
}

.about-branch-actions a {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--primary-2);
    display: flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.about-contact-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(24px, 4vw, 38px);
    position: sticky;
    top: 96px;
}

.about-contact-panel h2 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.25;
    margin: 12px 0 16px;
}

.about-contact-panel > p {
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 24px;
}

.about-contact-panel > .main-button,
.about-contact-panel > .ghost-button {
    justify-content: center;
    margin-top: 10px;
    width: 100%;
}

.about-contact-details {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
}

.about-contact-details a {
    align-items: center;
    color: var(--muted);
    display: flex;
    gap: 10px;
    overflow-wrap: anywhere;
}

.about-contact-details i {
    color: var(--primary-2);
}

@media (max-width: 960px) {
    .about-intro-layout,
    .about-branches-layout {
        grid-template-columns: 1fr;
    }

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

    .about-workflow article:nth-child(3) {
        border-inline-start: 0;
    }

    .about-contact-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .hero.hero-full {
        height: clamp(520px, 70svh, 620px);
        min-height: 520px;
    }

    .hero.hero-full .hero-cover-content {
        margin-bottom: 66px;
    }

    .hero.hero-full .hero-cover h1 {
        font-size: clamp(27px, 8vw, 36px);
        line-height: 1.18;
    }

    .hero.hero-full .hero-cover p {
        display: -webkit-box;
        font-size: 14px;
        line-height: 1.75;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .hero.hero-full .hero-cover .main-button {
        margin-top: 18px;
    }

    .about-showcase {
        min-height: 640px;
    }

    .about-showcase h1 {
        font-size: clamp(34px, 10vw, 46px);
    }

    .about-showcase-content {
        margin-bottom: 132px;
    }

    .about-showcase-content > p {
        display: -webkit-box;
        font-size: 15px;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

    .about-showcase-meta .shell {
        grid-template-columns: 1fr;
    }

    .about-showcase-meta span {
        min-height: 38px;
        padding: 7px 0;
    }

    .about-showcase-meta span + span {
        border-inline-start: 0;
    }

    .about-showcase-meta span:nth-child(3) {
        display: none;
    }

    .about-intro-copy h2 {
        font-size: 34px;
    }

    .about-metrics {
        gap: 10px;
    }

    .about-metrics article {
        min-height: 132px;
        padding: 18px;
    }

    .about-metrics strong {
        font-size: 34px;
    }

    .about-metrics span {
        font-size: 13px;
    }

    .about-workflow,
    .about-capability-grid {
        grid-template-columns: 1fr;
    }

    .about-workflow article,
    .about-workflow article:nth-child(3) {
        border-inline-start: 0;
        padding-inline: 18px;
    }

    .about-capability-grid article {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .about-branch-list article {
        gap: 12px;
        grid-template-columns: 34px 1fr auto;
    }

    .about-branch-list small {
        font-size: 11px;
    }

    .about-branch-actions {
        flex-direction: column;
    }

    .about-branch-actions a {
        height: 36px;
        width: 36px;
    }
}

/* Stronger about-page hierarchy */
.about-principles {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(46px, 7vw, 86px);
}

.about-principles article {
    border-block: 1px solid var(--line);
    min-height: 190px;
    padding: 30px clamp(20px, 3vw, 38px);
    position: relative;
}

.about-principles article + article {
    border-inline-start: 1px solid var(--line);
}

.about-principles article:before {
    background: var(--primary);
    content: "";
    height: 3px;
    inset-inline: 0;
    position: absolute;
    top: -1px;
}

.about-principles article:nth-child(2):before {
    background: var(--accent);
}

.about-principles article:nth-child(3):before {
    background: #2563eb;
}

.about-principles span {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 13px;
    font-weight: 900;
    gap: 9px;
}

.about-principles i {
    color: var(--primary-2);
}

.about-principles article:nth-child(2) i {
    color: #b45309;
}

.about-principles article:nth-child(3) i {
    color: #2563eb;
}

html.dark .about-principles article:nth-child(2) i {
    color: #fbbf24;
}

html.dark .about-principles article:nth-child(3) i {
    color: #60a5fa;
}

.about-principles h3 {
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.55;
    margin-top: 20px;
}

.about-capability-grid article,
.about-contact-panel,
.about-metrics article {
    box-shadow: 0 14px 36px rgba(15, 23, 42, .055);
}

html.dark .about-capability-grid article,
html.dark .about-contact-panel,
html.dark .about-metrics article {
    box-shadow: 0 16px 42px rgba(0, 0, 0, .22);
}

.about-capability-grid article {
    transition: border-color .2s ease, transform .2s ease;
}

.about-capability-grid article:hover {
    border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
    transform: translateY(-3px);
}

.about-branch-list article {
    transition: background .2s ease, padding .2s ease;
}

.about-branch-list article:hover {
    background: color-mix(in srgb, var(--surface-soft) 72%, transparent);
    padding-inline: 12px;
}

@media (max-width: 720px) {
    .about-intro-band,
    .about-workflow-section,
    .about-capabilities-section,
    .about-branches-section {
        padding-block: 66px;
    }

    .about-principles {
        grid-template-columns: 1fr;
        margin-top: 48px;
    }

    .about-principles article {
        min-height: 0;
        padding: 24px 6px;
    }

    .about-principles article + article {
        border-block-start: 0;
        border-inline-start: 0;
    }

    .about-principles article:before {
        inset-inline: 0 auto;
        width: 54px;
    }

    .about-principles h3 {
        font-size: 21px;
        margin-top: 12px;
    }

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

    .about-workflow article {
        border-inline-start: 0;
        min-height: 245px;
        padding: 24px 14px 12px;
    }

    .about-workflow article:nth-child(even) {
        border-inline-start: 1px solid var(--line);
    }

    .about-workflow article:nth-child(3),
    .about-workflow article:nth-child(4) {
        border-block-start: 1px solid var(--line);
    }

    .about-workflow article:before {
        inset-inline-start: 14px;
    }

    .about-workflow h3 {
        font-size: 17px;
    }

    .about-workflow p {
        font-size: 13px;
    }

    .about-capability-grid article {
        gap: 14px;
        grid-template-columns: 48px 1fr;
        padding: 20px;
    }

    .about-capability-icon {
        font-size: 20px;
        height: 48px;
        width: 48px;
    }

    .about-capability-grid h3 {
        font-size: 19px;
    }

    .about-capability-grid p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .about-contact-panel {
        padding: 24px 20px;
    }
}

/* 2026-07-28 layout system: footer, products, and admin editors */
.site-footer.pro-footer {
    padding-top: 52px;
}

.site-footer.pro-footer .footer-pro {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.site-footer.pro-footer .footer-company {
    grid-column: span 5;
    order: 1;
}

.site-footer.pro-footer .footer-tabs {
    grid-column: span 3;
    order: 2;
}

.site-footer.pro-footer .footer-map {
    grid-column: span 4;
    order: 3;
}

.site-footer.pro-footer .footer-branches {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 8px;
    order: 4;
    padding-top: 24px;
}

.site-footer.pro-footer .footer-branches > h3 {
    grid-column: 1 / -1;
    margin-bottom: 2px;
}

.site-footer.pro-footer .footer-branches article {
    min-height: 138px;
    padding: 14px;
}

.site-footer.pro-footer .footer-tabs {
    grid-template-columns: 1fr;
}

.site-footer.pro-footer .footer-tabs > div {
    min-width: 0;
}

.site-footer.pro-footer .footer-tabs a,
.site-footer.pro-footer .footer-tabs button,
.site-footer.pro-footer .footer-map p,
.site-footer.pro-footer .footer-map > a,
.site-footer.pro-footer .footer-branches small,
.site-footer.pro-footer .footer-branches article > a {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 22px minmax(0, 1fr);
    min-width: 0;
}

.site-footer.pro-footer .footer-tabs i,
.site-footer.pro-footer .footer-map i,
.site-footer.pro-footer .footer-branches i {
    align-items: center;
    color: var(--primary-2);
    display: inline-flex;
    height: 22px;
    justify-content: center;
    margin: 0;
    width: 22px;
}

html.dark .site-footer.pro-footer .footer-tabs i,
html.dark .site-footer.pro-footer .footer-map i,
html.dark .site-footer.pro-footer .footer-branches i {
    color: #5eead4;
}

.site-footer.pro-footer .footer-social {
    align-items: center;
    display: flex;
}

.site-footer.pro-footer .footer-social a,
.site-footer.pro-footer .footer-social i {
    display: inline-flex;
}

.site-footer.pro-footer .footer-social i {
    color: inherit;
    margin: 0;
}

.site-footer.pro-footer .footer-map iframe {
    height: 190px;
}

.site-footer.pro-footer .footer-bottom {
    justify-content: flex-start;
    margin-top: 30px;
}

.shop-product-grid {
    align-items: stretch;
}

.shop-product-grid .product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    min-width: 0;
}

.shop-product-grid .product-image {
    aspect-ratio: 16 / 10;
    background: var(--surface-soft);
    overflow: hidden;
}

.shop-product-grid .product-image img {
    aspect-ratio: auto;
    height: 100%;
    max-height: none;
    object-fit: contain;
    padding: clamp(18px, 3vw, 34px);
    width: 100%;
}

.shop-product-grid .product-content {
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    min-width: 0;
    padding: 20px;
}

.shop-product-grid .product-content > span {
    justify-self: start;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-product-grid .product-content h3 {
    display: -webkit-box;
    font-size: 21px;
    line-height: 1.45;
    margin: 12px 0 8px;
    min-height: 61px;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.shop-product-grid .product-content p {
    display: -webkit-box;
    line-height: 1.75;
    margin: 0;
    min-height: 84px;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.shop-product-grid .product-actions {
    align-self: end;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr);
    margin-top: 18px;
    min-width: 0;
}

.shop-product-grid .product-actions > strong {
    align-items: center;
    display: -webkit-box;
    font-size: 15px;
    line-height: 1.45;
    min-height: 42px;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.shop-product-grid .product-action-buttons {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
}

.shop-product-grid .product-action-buttons .main-button,
.shop-product-grid .product-action-buttons .ghost-button {
    justify-content: center;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    padding-inline: 12px;
}

.admin-body {
    background: var(--bg);
}

.admin-main {
    margin-inline: auto;
    max-width: 1480px;
    padding: 26px clamp(16px, 3vw, 38px) 56px;
    width: 100%;
}

.admin-top,
.admin-panel,
.admin-stats div,
.admin-product-card {
    border-color: var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .055);
}

html.dark .admin-top,
html.dark .admin-panel,
html.dark .admin-stats div,
html.dark .admin-product-card {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
}

.admin-top {
    border-inline: 0;
    border-top: 0;
    padding: 14px 16px;
}

.admin-panel {
    padding: 22px;
}

.admin-panel h2 {
    font-size: 21px;
    margin-bottom: 0;
}

.admin-form,
.panel-form {
    gap: 16px;
}

.admin-form label {
    min-width: 0;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.mini-form select,
.small-input {
    background: var(--surface);
    border-radius: 8px;
    min-height: 44px;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}

.admin-form input[type="file"] {
    min-height: 0;
}

.admin-settings-shell {
    display: grid;
    gap: 16px;
}

.admin-settings-toolbar {
    margin-bottom: 0;
}

.admin-settings-toolbar .panel-head {
    margin-bottom: 8px;
}

.admin-settings-toolbar > p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
    max-width: 760px;
}

.admin-settings-group {
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
}

.admin-settings-group-head {
    align-items: center;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    padding: 16px 18px;
}

.admin-settings-group-head > i {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--primary-2);
    display: flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.admin-settings-group-head h2 {
    font-size: 18px;
}

.admin-settings-group-head small,
.admin-settings-group-head > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.admin-settings-group-head .admin-editor-toggle {
    white-space: nowrap;
}

.admin-settings-group-head > span {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 9px;
}

.admin-settings-list {
    display: grid;
}

.admin-setting-row {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(150px, .65fr) minmax(0, 2.35fr);
    padding: 16px 18px;
}

.admin-setting-row + .admin-setting-row {
    border-top: 1px solid var(--line);
}

.admin-setting-key {
    min-width: 0;
    padding-top: 24px;
}

.admin-setting-key strong,
.admin-setting-key small {
    display: block;
    overflow-wrap: anywhere;
}

.admin-setting-key strong {
    font-size: 13px;
}

.admin-setting-key small {
    color: var(--muted);
    font-size: 10px;
    margin-top: 5px;
    text-transform: uppercase;
}

.admin-setting-fields {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-setting-fields label {
    gap: 5px;
}

.admin-setting-fields label > span {
    font-size: 10px;
}

.admin-setting-image-editor {
    align-items: stretch;
    display: grid;
    gap: 12px;
    grid-template-columns: 104px minmax(0, 1fr);
    min-width: 0;
}

.admin-setting-image-preview {
    align-items: center;
    aspect-ratio: 1;
    background:
        linear-gradient(45deg, var(--surface-soft) 25%, transparent 25%),
        linear-gradient(-45deg, var(--surface-soft) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--surface-soft) 75%),
        linear-gradient(-45deg, transparent 75%, var(--surface-soft) 75%),
        var(--surface);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    display: flex;
    font-size: 25px;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
}

.admin-setting-image-preview img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.admin-setting-image-upload {
    align-items: center;
    background: var(--surface);
    border: 1px dashed color-mix(in srgb, var(--primary) 55%, var(--line));
    border-radius: 8px;
    cursor: pointer;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 104px;
    padding: 14px;
    transition: border-color .2s ease, background .2s ease;
}

.admin-setting-image-upload:hover {
    background: var(--surface-soft);
    border-color: var(--primary);
}

.admin-setting-image-upload > i {
    align-items: center;
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    border-radius: 8px;
    color: var(--primary-2);
    display: flex;
    font-size: 17px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.admin-setting-image-upload b,
.admin-setting-image-upload small {
    display: block;
}

.admin-setting-image-upload b {
    color: var(--text);
    font-size: 13px;
}

.admin-setting-image-upload small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
    margin-top: 4px;
}

.admin-setting-image-upload input[type="file"] {
    grid-column: 1 / -1;
    max-width: 100%;
    width: 100%;
}

.admin-settings-savebar {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border: 1px solid var(--line);
    border-radius: 8px;
    bottom: 14px;
    display: flex;
    justify-content: flex-end;
    padding: 10px;
    position: sticky;
    z-index: 12;
}

.admin-brand-create,
.admin-brand-card {
    margin-bottom: 16px;
}

.admin-brand-editor {
    align-items: start;
}

.admin-brand-visual,
.admin-brand-fields {
    display: grid;
    gap: 12px;
}

.admin-brand-logo-preview {
    align-items: center;
    aspect-ratio: 16 / 8;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.admin-brand-logo-preview img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.admin-brand-logo-preview > i {
    font-size: 28px;
}

.admin-upload-drop {
    align-items: center;
    background: var(--surface);
    border: 1px dashed color-mix(in srgb, var(--primary) 55%, var(--line));
    border-radius: 8px;
    cursor: pointer;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: 36px 1fr;
    min-height: 68px;
    padding: 12px;
    position: relative;
}

.admin-upload-drop > i {
    align-items: center;
    background: var(--surface-soft);
    border-radius: 8px;
    color: var(--primary-2);
    display: flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.admin-upload-drop span,
.admin-upload-drop small,
.admin-upload-drop b {
    display: block;
}

.admin-upload-drop small {
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}

.admin-upload-drop input[type="file"] {
    cursor: pointer;
    inset: 0;
    opacity: 0;
    position: absolute;
}

.danger-button {
    border-color: color-mix(in srgb, #ef4444 44%, var(--line));
    color: #dc2626;
}

.admin-slide-form {
    display: grid;
    gap: 18px;
}

.admin-slide-media,
.admin-slide-fields {
    display: grid;
    gap: 14px;
}

.admin-slide-preview {
    aspect-ratio: 16 / 9;
    background: #020617;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.admin-slide-preview img {
    height: 100%;
    object-fit: cover;
    opacity: .72;
    width: 100%;
}

.admin-slide-preview:after {
    background: linear-gradient(0deg, rgba(2, 6, 23, .82), transparent 55%);
    content: "";
    inset: 0;
    position: absolute;
}

.admin-slide-preview > div {
    bottom: 16px;
    color: #fff;
    display: grid;
    gap: 3px;
    inset-inline: 16px;
    position: absolute;
    z-index: 2;
}

.admin-slide-preview span {
    color: #5eead4;
    font-size: 11px;
}

.admin-slide-preview strong {
    display: -webkit-box;
    font-size: 18px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.admin-language-panel {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 14px;
}

.admin-language-head {
    align-items: center;
    display: flex;
    gap: 8px;
}

.admin-language-head > span {
    align-items: center;
    background: var(--primary-2);
    border-radius: 6px;
    color: #fff;
    display: flex;
    height: 28px;
    justify-content: center;
    width: 34px;
}

.admin-slide-actions {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

@media (max-width: 1180px) {
    .site-footer.pro-footer .footer-company,
    .site-footer.pro-footer .footer-tabs,
    .site-footer.pro-footer .footer-map {
        grid-column: span 6;
    }

    .site-footer.pro-footer .footer-map {
        grid-column: 1 / -1;
    }

    .site-footer.pro-footer .footer-branches {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-footer.pro-footer .footer-pro {
        grid-template-columns: 1fr;
    }

    .site-footer.pro-footer .footer-company,
    .site-footer.pro-footer .footer-tabs,
    .site-footer.pro-footer .footer-map,
    .site-footer.pro-footer .footer-branches {
        grid-column: 1;
    }

    .site-footer.pro-footer .footer-branches {
        grid-template-columns: 1fr;
    }

    .site-footer.pro-footer .footer-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-product-grid .product-image {
        aspect-ratio: 1 / 1;
    }

    .shop-product-grid .product-image img {
        padding: 12px;
    }

    .shop-product-grid .product-content {
        padding: 12px;
    }

    .shop-product-grid .product-content h3 {
        font-size: 15px;
        line-height: 1.5;
        min-height: 45px;
    }

    .shop-product-grid .product-content p {
        font-size: 12px;
        line-height: 1.6;
        min-height: 58px;
    }

    .shop-product-grid .product-actions {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .shop-product-grid .product-actions > strong {
        font-size: 13px;
        min-height: 38px;
    }

    .shop-product-grid .product-action-buttons {
        grid-template-columns: 1fr;
    }

    .admin-panel {
        padding: 16px;
    }

    .admin-settings-toolbar .panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-settings-toolbar .main-button {
        justify-content: center;
        width: 100%;
    }

    .admin-setting-row {
        grid-template-columns: 1fr;
    }

    .admin-setting-key {
        padding-top: 0;
    }

    .admin-setting-fields {
        grid-template-columns: 1fr;
    }

    .admin-setting-image-editor {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .admin-setting-image-upload {
        min-height: 82px;
    }

    .admin-settings-savebar .main-button {
        justify-content: center;
        width: 100%;
    }
}

/* Final account surface overrides */
.account-page {
    background: var(--bg);
    min-height: calc(100vh - 76px);
    padding: 48px 0 112px;
}

.account-shell {
    align-items: stretch;
    gap: 20px;
    max-width: 1120px;
}

@media (min-width: 980px) {
    .account-shell {
        grid-template-columns: minmax(300px, .82fr) minmax(540px, 1.18fr);
    }
}

.account-intro {
    background: var(--primary-2);
    border: 1px solid color-mix(in srgb, var(--primary) 65%, var(--line));
    border-radius: 8px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 480px;
    overflow: hidden;
    padding: clamp(28px, 5vw, 54px);
}

.account-intro::after {
    display: none;
}

.account-intro .eyebrow {
    color: #99f6e4;
}

.account-intro h1 {
    color: #fff;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.3;
    margin: 14px 0 0;
}

.account-intro p {
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.9;
    margin-top: 20px;
}

.account-panel,
.account-card {
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

.account-panel {
    align-self: stretch;
    padding: clamp(18px, 3vw, 30px);
}

.account-tabs {
    border-radius: 8px;
    gap: 4px;
    padding: 5px;
}

.account-tabs a {
    border-radius: 6px;
    min-height: 44px;
}

.account-card {
    padding: clamp(18px, 3vw, 26px);
}

.account-card h2,
.account-card h3 {
    font-size: 21px;
}

.account-form input,
.account-form select {
    border-radius: 8px;
    min-height: 46px;
}

@media (max-width: 760px) {
    .account-page {
        padding: 24px 0 96px;
    }

    .account-intro {
        min-height: 260px;
        padding: 26px 22px;
    }

    .account-intro h1 {
        font-size: 30px;
    }
}

/* 2026-08-11 simplified admin system */
.admin-body {
    background: var(--bg);
}

.admin-main {
    max-width: 1480px;
    padding: 24px clamp(16px, 3vw, 38px) 72px;
}

.admin-top,
.admin-panel,
.admin-stats > div {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

html.dark .admin-top,
html.dark .admin-panel,
html.dark .admin-stats > div {
    box-shadow: none;
}

.admin-top {
    margin-bottom: 18px;
    min-height: 96px;
    padding: 18px 20px;
}

.admin-top h1 {
    font-size: clamp(25px, 3vw, 34px);
    margin-top: 5px;
}

.admin-top .eyebrow {
    font-size: 11px;
}

.admin-panel {
    margin-bottom: 16px;
    padding: 18px;
}

.admin-panel h2 {
    font-size: 19px;
    letter-spacing: 0;
    margin: 0;
}

.panel-head {
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.panel-head small {
    display: block;
    font-size: 10px;
    letter-spacing: 0;
    margin-bottom: 4px;
    text-transform: none;
}

.admin-form,
.panel-form,
.compact-editor {
    gap: 16px;
}

.admin-main .form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form label > span,
.admin-form > label > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.mini-form select,
.small-input {
    background: var(--surface-soft);
    border-color: var(--line);
    border-radius: 8px;
    min-height: 44px;
    padding: 10px 12px;
}

.admin-form textarea {
    line-height: 1.7;
    min-height: 94px;
}

.admin-main .main-button,
.admin-main .ghost-button {
    border-radius: 8px;
    min-height: 42px;
}

.admin-stack,
.admin-grid-list,
.admin-slider-list,
.admin-product-list {
    gap: 14px;
}

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

.mini-admin-card .panel-head > i,
.gemini-test-panel .panel-head > i,
.product-create-panel .panel-head > i {
    border-radius: 8px;
    height: 42px;
    width: 42px;
}

.admin-stats {
    gap: 12px;
}

.admin-stats > div {
    padding: 16px;
}

.admin-stats > div::after {
    display: none;
}

.admin-stats i {
    font-size: 19px;
}

.admin-stats span {
    font-size: 12px;
    margin-top: 9px;
}

.admin-stats strong {
    font-size: 28px;
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 11px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
}

.seo-page-toolbar .panel-head {
    border: 0;
    margin: 0;
    padding: 0;
}

.seo-page-toolbar .panel-head p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    margin: 6px 0 0;
}

.seo-section-card {
    margin-bottom: 0;
}

.seo-section-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.seo-section-head > i {
    align-items: center;
    background: color-mix(in srgb, var(--primary) 11%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line));
    border-radius: 8px;
    color: var(--primary-2);
    display: flex;
    flex: 0 0 42px;
    font-size: 17px;
    height: 42px;
    justify-content: center;
}

.seo-section-head small {
    color: var(--muted);
    display: block;
    font-size: 10px;
    margin-bottom: 3px;
}

.seo-color-field > span:last-child {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    min-height: 44px;
    padding: 6px 9px;
}

.seo-color-field input[type="color"] {
    border: 0;
    flex: 0 0 34px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    width: 34px;
}

.seo-color-field b {
    color: var(--muted);
    direction: ltr;
    font-size: 12px;
}

.seo-media-section .admin-upload-field {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.seo-media-section .admin-upload-field > label {
    min-width: 0;
}

.seo-media-section .admin-image-preview {
    background: var(--surface);
    border-radius: 8px;
    min-height: 82px;
}

.seo-media-section .admin-image-preview img {
    border-radius: 6px;
    height: 58px;
    object-fit: contain;
    width: 82px;
}

.seo-media-section .admin-image-preview span {
    display: none;
}

.seo-savebar {
    margin-top: 0;
}

@media (max-width: 900px) {
    .admin-main .form-grid,
    .admin-grid-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .admin-main {
        padding: 16px 12px 82px;
    }

    .admin-top {
        align-items: stretch;
        min-height: 0;
        padding: 15px;
    }

    .admin-top-actions,
    .seo-page-toolbar .panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-top-actions > *,
    .seo-page-toolbar .main-button {
        justify-content: center;
        width: 100%;
    }

    .admin-panel {
        padding: 15px;
    }

    .panel-head {
        align-items: flex-start;
    }

    .seo-media-section .grid {
        grid-template-columns: 1fr;
    }
}

/* Unified admin sections and compact editors */
.admin-section-overview {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: 48px minmax(0, 1fr);
    margin-bottom: 16px;
}

.admin-section-overview-icon {
    align-items: center;
    background: color-mix(in srgb, var(--primary) 11%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--line));
    border-radius: 8px;
    color: var(--primary-2);
    display: flex;
    font-size: 19px;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.admin-section-overview small {
    color: var(--muted);
    display: block;
    font-size: 10px;
    margin-bottom: 3px;
}

.admin-section-overview h2 {
    font-size: 19px;
}

.admin-section-overview p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    margin: 5px 0 0;
}

.admin-collapsible-item {
    transition: border-color .2s ease, box-shadow .2s ease;
}

.admin-collapsible-item.is-collapsed > :not(.admin-collapsible-head):not(input[type="hidden"]) {
    display: none !important;
}

.admin-collapsible-item.is-collapsed > .admin-collapsible-head {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.admin-settings-group > .admin-collapsible-head {
    margin-bottom: 14px;
}

.admin-settings-group.is-collapsed > .admin-collapsible-head {
    margin-bottom: 0;
}

.admin-editor-toggle {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    gap: 7px;
    justify-content: center;
    min-height: 38px;
    padding: 8px 11px;
}

.admin-editor-toggle:hover {
    border-color: var(--primary);
    color: var(--primary-2);
}

.admin-editor-toggle .fa-chevron-down {
    font-size: 9px;
    transition: transform .2s ease;
}

.admin-editor-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

[data-collapsible-list] > .admin-panel,
[data-collapsible-list] > .admin-slide-card,
[data-collapsible-editor] {
    margin-bottom: 0;
}

[data-collapsible-list] .panel-head > i:not(.admin-editor-toggle i),
[data-collapsible-editor] .panel-head > i:not(.admin-editor-toggle i) {
    color: var(--primary-2);
}

.admin-collection-toolbar .panel-head {
    margin: 0;
}

.admin-order-list {
    display: grid;
    gap: 12px;
}

.admin-order-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.admin-order-card.unread {
    border-inline-start: 4px solid var(--primary);
}

.admin-order-card > summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 14px;
    grid-template-columns: 105px minmax(190px, 1.25fr) minmax(170px, .9fr) auto 20px;
    list-style: none;
    min-height: 82px;
    padding: 14px 16px;
}

.admin-order-card > summary::-webkit-details-marker,
.ticket-card > summary::-webkit-details-marker {
    display: none;
}

.admin-order-number b,
.admin-order-number small,
.admin-order-primary strong,
.admin-order-primary small {
    display: block;
}

.admin-order-number b {
    font-size: 16px;
}

.admin-order-number small,
.admin-order-primary small {
    color: var(--muted);
    font-size: 10px;
    margin-top: 4px;
}

.admin-order-primary strong {
    font-size: 14px;
}

.admin-order-device {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 12px;
    gap: 8px;
    min-width: 0;
}

.admin-order-device span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-order-card > summary > .fa-chevron-down,
.ticket-toggle-icon {
    color: var(--muted);
    font-size: 11px;
    transition: transform .2s ease;
}

.admin-order-card[open] > summary > .fa-chevron-down,
.ticket-card[open] .ticket-toggle-icon {
    transform: rotate(180deg);
}

.admin-order-card[open] > summary {
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
}

.admin-order-body {
    display: grid;
    gap: 16px;
    padding: 16px;
}

.admin-order-info > div {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    min-height: 66px;
    padding: 11px;
}

.admin-order-info > div > i {
    color: var(--primary-2);
    flex: 0 0 18px;
    text-align: center;
}

.admin-order-info small,
.admin-order-info b,
.admin-order-info a {
    display: block;
}

.admin-order-info small,
.admin-order-details > small {
    color: var(--muted);
    font-size: 10px;
}

.admin-order-info b,
.admin-order-info a {
    color: var(--text);
    font-size: 12px;
    margin-top: 3px;
}

.admin-order-details {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px;
}

.admin-order-details p {
    color: var(--text);
    font-size: 12px;
    line-height: 1.75;
    margin: 7px 0 0;
    white-space: normal;
}

.admin-order-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.admin-order-files a {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: inline-flex;
    font-size: 11px;
    gap: 7px;
    padding: 8px 10px;
}

.admin-order-update {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(180px, .8fr) minmax(150px, 1fr) auto;
}

.admin-order-update .check-row {
    margin: 0 0 9px;
}

.ticket-board {
    gap: 12px;
}

.ticket-card {
    border-radius: 8px;
    padding: 0;
}

.ticket-card > .ticket-head {
    align-items: center;
    cursor: pointer;
    grid-template-columns: 38px minmax(0, 1fr) auto 16px;
    list-style: none;
    min-height: 82px;
    padding: 14px 16px;
}

.ticket-card[open] > .ticket-head {
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
}

.ticket-conversation {
    display: grid;
    gap: 14px;
    padding: 16px;
}

@media (max-width: 820px) {
    .admin-order-card > summary {
        grid-template-columns: 78px minmax(0, 1fr) auto 16px;
    }

    .admin-order-device {
        display: none;
    }

    .admin-order-update {
        grid-template-columns: 1fr;
    }

    .admin-order-update .check-row {
        margin: 0;
    }
}

@media (max-width: 560px) {
    .admin-section-overview {
        align-items: start;
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .admin-section-overview-icon {
        height: 42px;
        width: 42px;
    }

    .panel-head:has(.admin-editor-toggle) {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-editor-toggle {
        width: 100%;
    }

    .admin-settings-group-head {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        padding: 13px;
    }

    .admin-settings-group-head > i {
        height: 38px;
        width: 38px;
    }

    .admin-settings-group-head > span {
        display: none;
    }

    .admin-settings-group-head .admin-editor-toggle {
        grid-column: 1 / -1;
    }

    .admin-order-card > summary {
        gap: 8px;
        grid-template-columns: 58px minmax(0, 1fr) auto 12px;
        padding: 12px;
    }

    .admin-order-number small {
        display: none;
    }

    .admin-order-primary strong {
        font-size: 12px;
    }

    .admin-order-card .status {
        font-size: 9px;
        padding: 5px 7px;
    }

    .ticket-card > .ticket-head {
        grid-template-columns: 32px minmax(0, 1fr) 12px;
        padding: 12px;
    }

    .ticket-card > .ticket-head .status {
        display: none;
    }
}

/* Final fixed product-card geometry. Keep this after legacy responsive rules. */
.product-grid .product-card {
    display: grid;
    grid-template-rows: 280px minmax(0, 1fr);
    height: 650px;
    min-height: 650px;
    width: 100%;
}

.product-grid .product-image {
    aspect-ratio: auto;
    height: 280px;
    min-height: 280px;
}

.product-grid .product-image img {
    aspect-ratio: auto;
    height: 100%;
    max-height: none;
    object-fit: contain;
    width: 100%;
}

.product-grid .product-content {
    display: grid;
    grid-template-rows: 32px 70px 96px minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
}

.product-grid .product-content h3 {
    max-height: 62px;
    min-height: 62px;
    -webkit-line-clamp: 2;
}

.product-grid .product-content p {
    max-height: 84px;
    min-height: 84px;
    -webkit-line-clamp: 3;
}

.product-grid .product-actions {
    align-self: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(88px, .72fr) minmax(0, 1.28fr);
    height: 112px;
    margin-top: 0;
    min-height: 112px;
    overflow: hidden;
}

.product-grid .product-action-buttons {
    align-content: end;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
}

@media (max-width: 760px) {
    .product-grid .product-card {
        grid-template-rows: 160px minmax(0, 1fr);
        height: 500px;
        min-height: 500px;
    }

    .product-grid .product-image {
        height: 160px;
        min-height: 160px;
    }

    .product-grid .product-content {
        grid-template-rows: 28px 52px 64px minmax(0, 1fr);
    }

    .product-grid .product-content h3 {
        max-height: 45px;
        min-height: 45px;
    }

    .product-grid .product-content p {
        max-height: 58px;
        min-height: 58px;
    }

    .product-grid .product-actions {
        gap: 6px;
        grid-template-columns: 1fr;
        height: 150px;
        min-height: 150px;
    }
}

/* Compact two-column shop cards on phones. */
@media (max-width: 760px) {
    .shop-product-grid .product-card {
        grid-template-rows: 128px 232px;
        height: 360px;
        min-height: 360px;
    }

    .shop-product-grid .product-image {
        height: 128px;
        min-height: 128px;
    }

    .shop-product-grid .product-image img {
        padding: 10px;
    }

    .shop-product-grid .product-content {
        align-content: start;
        grid-template-rows: 24px 42px 42px 100px;
        padding: 10px;
    }

    .shop-product-grid .product-content > span {
        font-size: 9px;
        padding: 4px 7px;
    }

    .shop-product-grid .product-content h3 {
        font-size: 14px;
        line-height: 1.4;
        margin: 5px 0 0;
        max-height: 38px;
        min-height: 38px;
    }

    .shop-product-grid .product-content p {
        font-size: 11px;
        line-height: 1.55;
        margin-top: 3px;
        max-height: 34px;
        min-height: 34px;
        -webkit-line-clamp: 2;
    }

    .shop-product-grid .product-actions {
        align-self: start;
        gap: 4px;
        height: 100px;
        min-height: 100px;
    }

    .shop-product-grid .product-actions > strong {
        font-size: 12px;
        line-height: 1.35;
        max-height: 28px;
        min-height: 28px;
        -webkit-line-clamp: 2;
    }

    .shop-product-grid .product-action-buttons {
        gap: 5px;
    }

    .shop-product-grid .product-action-buttons .main-button,
    .shop-product-grid .product-action-buttons .ghost-button {
        font-size: 11px;
        min-height: 30px;
        padding: 6px 7px;
    }
}

/* Compact featured-product cards on the mobile homepage. */
@media (max-width: 760px) {
    .product-grid:not(.shop-product-grid) .product-card {
        grid-template-rows: auto 238px;
        height: auto;
        min-height: 0;
    }

    .product-grid:not(.shop-product-grid) .product-image {
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
        width: 100%;
    }

    .product-grid:not(.shop-product-grid) .product-image img {
        height: 100%;
        object-fit: contain;
        padding: 10px;
        width: 100%;
    }

    .product-grid:not(.shop-product-grid) .product-content {
        align-content: start;
        grid-template-rows: 24px 44px 40px 110px;
        padding: 10px 14px;
    }

    .product-grid:not(.shop-product-grid) .product-content > span {
        font-size: 10px;
        padding: 4px 8px;
    }

    .product-grid:not(.shop-product-grid) .product-content h3 {
        display: -webkit-box;
        font-size: 18px;
        line-height: 1.25;
        margin: 4px 0 0;
        max-height: 42px;
        min-height: 42px;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .product-grid:not(.shop-product-grid) .product-content p {
        display: -webkit-box;
        font-size: 12px;
        line-height: 1.5;
        margin: 2px 0 0;
        max-height: 36px;
        min-height: 36px;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .product-grid:not(.shop-product-grid) .product-actions {
        align-self: start;
        gap: 5px;
        height: 110px;
        min-height: 110px;
    }

    .product-grid:not(.shop-product-grid) .product-actions > strong {
        font-size: 13px;
        line-height: 1.35;
        max-height: 28px;
        min-height: 28px;
        -webkit-line-clamp: 2;
    }

    .product-grid:not(.shop-product-grid) .product-action-buttons {
        gap: 5px;
    }

    .product-grid:not(.shop-product-grid) .product-action-buttons .main-button,
    .product-grid:not(.shop-product-grid) .product-action-buttons .ghost-button {
        font-size: 12px;
        min-height: 34px;
        padding: 7px 10px;
    }
}

/* Admin team activity */
.activity-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.activity-member-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #dfe7e5;
    border-radius: 8px;
    background: #fff;
}

.activity-member-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.activity-member-head > span,
.activity-avatar,
.activity-log-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 8px;
    color: #176b64;
    background: #e6f4f1;
}

.activity-member-head h3,
.activity-member-head small,
.activity-member-card p,
.activity-log-content p,
.activity-mini-list p {
    margin: 0;
}

.activity-member-head h3 {
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-member-head small,
.activity-log-content small,
.activity-member-card p,
.activity-log-item time,
.activity-mini-list time {
    color: #667085;
    font-size: 12px;
}

.activity-member-head > strong {
    min-width: 42px;
    color: #176b64;
    font-size: 28px;
    text-align: end;
}

.activity-member-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 14px;
}

.activity-member-stats span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 10px 6px;
    border: 1px solid #e5e9e8;
    border-radius: 8px;
    color: #667085;
    font-size: 11px;
    text-align: center;
}

.activity-member-stats b {
    color: #101828;
    font-size: 18px;
}

.activity-member-card > p {
    display: flex;
    align-items: center;
    gap: 7px;
}

.activity-period {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #667085;
    font-size: 13px;
}

.activity-timeline,
.activity-mini-list {
    display: grid;
}

.activity-log-item,
.activity-mini-list article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 0;
    border-top: 1px solid #e8eceb;
}

.activity-log-item:first-child,
.activity-mini-list article:first-child {
    border-top: 0;
}

.activity-log-content,
.activity-log-content > div,
.activity-mini-list article > div {
    min-width: 0;
}

.activity-log-content > div {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-bottom: 3px;
}

.activity-log-content p,
.activity-mini-list p {
    overflow: hidden;
    color: #344054;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-log-item time,
.activity-mini-list time {
    white-space: nowrap;
}

.entity-order .activity-log-icon { color: #9a5b00; background: #fff2d8; }
.entity-ticket .activity-log-icon { color: #315ea8; background: #eaf1ff; }
.entity-product .activity-log-icon { color: #176b64; background: #e6f4f1; }

html.dark .activity-member-card {
    border-color: #2b3447;
    background: #111827;
}

html.dark .activity-member-head > span,
html.dark .activity-avatar,
html.dark .activity-log-icon {
    color: #79d4c7;
    background: #173a38;
}

html.dark .activity-member-head small,
html.dark .activity-log-content small,
html.dark .activity-member-card p,
html.dark .activity-log-item time,
html.dark .activity-mini-list time,
html.dark .activity-period {
    color: #98a2b3;
}

html.dark .activity-member-stats span,
html.dark .activity-log-item,
html.dark .activity-mini-list article {
    border-color: #2b3447;
}

html.dark .activity-member-stats b,
html.dark .activity-log-content p,
html.dark .activity-mini-list p {
    color: #eef2f7;
}

@media (max-width: 1100px) {
    .activity-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .activity-summary-grid { grid-template-columns: 1fr; }
    .activity-member-card { padding: 16px; }
    .activity-log-item,
    .activity-mini-list article { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
    .activity-log-item time,
    .activity-mini-list time { grid-column: 2; }
    .activity-log-icon,
    .activity-avatar { width: 40px; height: 40px; flex-basis: 40px; }
}
