/* public/assets/css/app.css */

/* =========================
   RESET / BASE
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2933;
    background-color: transparent;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.40), rgba(15, 23, 42, 0.40)),
        url("/image.php?id=site_bg_desktop");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================
   THEME VARIABLES
   ========================= */
:root {
    --accent: #db1709;
    --accent-soft: rgba(219, 23, 9, 0.22);
    --accent-ring: rgba(219, 23, 9, 0.28);

    --brand-red: #db1709;
    --brand-blue: #2563eb;
    --brand-glow: #e2f26b;

    --brand-deep: #0f172a;
    --brand-accent: var(--brand-red);

    --border: #e5e7eb;
    --muted: #6b7280;
    --bg: #f5f7fa;
    --card: #ffffff;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Accent glow utility */
.glow-accent {
    box-shadow:
        0 10px 26px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(219, 23, 9, 0.16),
        0 14px 34px var(--accent-soft);
}

/* =========================
   LAYOUT: HEADER / MAIN / FOOTER
   ========================= */
.site-header {
    background: #0f172a;
    color: #f9fafb;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.4);
}

.site-header__left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-logo__img {
    display: block;
    height: clamp(28px, 3.2vw, 52px);
    width: auto;
    max-width: 18vw;
    min-width: 42px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav a {
    color: #e5e7eb;
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: #ffffff;
}

.site-header__user {
    font-size: 0.85rem;
    color: #9ca3af;
}

.site-nav-toggle {
    display: none;
}

.site-main {
    flex: 1;
    padding: 1.5rem 2rem;
    width: 100%;
    margin: 0 auto;
    max-width: none;
}

.site-footer {
    background: #0f172a;
    color: #9ca3af;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.75rem 1rem;
}

/* =========================
   CONTAINERS / TYPO
   ========================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    color: var(--brand-deep);
}

.muted,
.text-muted {
    color: #334155;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.55);
}

.text-sm {
    font-size: 0.875rem;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

/* =========================
   BUTTONS
   ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
    white-space: nowrap;
}

.btn-primary {
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
    color: #ffffff;
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.3),
        0 0 0 1px rgba(219, 23, 9, 0.22),
        0 12px 30px var(--accent-soft);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #f02211, #1e40af);
    box-shadow:
        0 14px 28px rgba(15, 23, 42, 0.4),
        0 0 0 1px rgba(219, 23, 9, 0.3),
        0 18px 44px var(--accent-ring);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(219, 23, 9, 0.22),
        0 10px 26px var(--accent-soft);
}

.btn-secondary {
    background-color: #ffffff;
    color: #111827;
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background-color: #f3f4f6;
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
    border: none;
}

.btn-danger:hover {
    filter: brightness(0.95);
}

.btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px var(--accent-ring),
        0 0 0 1px rgba(219, 23, 9, 0.25);
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.btn-xs {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

/* =========================
   FORMS (GLOBAL)
   ========================= */
.field,
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.field label,
.form-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="url"],
.field select,
.field textarea,
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field input[type="url"],
.form-field select,
.form-field textarea,
.input,
.textarea,
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="tel"] {
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
    outline: none;
    background-color: #f9fafb;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="tel"] {
    border-radius: 999px;
}

.field textarea,
.form-field textarea,
.textarea {
    min-height: 120px;
    resize: vertical;
}

.input {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
}

.textarea {
    width: 100%;
    background: #ffffff;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.input:focus,
.textarea:focus,
.auth-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    background-color: #ffffff;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.form {
    padding: 1.25rem;
}

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

.form-grid .span-2,
.field--span2 {
    grid-column: 1 / -1;
}

.field .help {
    font-size: 0.82rem;
    color: #6b7280;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #111827;
}

.req {
    color: #b91c1c;
}

.actions {
    white-space: nowrap;
}

/* =========================
   ALERTS
   ========================= */
.alert {
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    margin: 0.75rem 0;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.alert-success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

/* =========================
   CARDS / PRODUCTS
   ========================= */
.card {
    background: var(--card);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.card img {
    width: 100%;
    border-radius: 0.5rem;
    object-fit: cover;
    max-height: 160px;
}

.card-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.card-price {
    font-weight: 600;
    color: #16a34a;
    font-size: 0.95rem;
}

.card-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

.img-preview {
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 0.75rem;
    background: #f9fafb;
}

.img-preview img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 12px;
    display: block;
}

/* =========================
   SHOP HEADER / FILTERS
   ========================= */
.shop-breadcrumb {
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.shop-header__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-deep);
    position: relative;
    padding-bottom: 0.15rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
}

.shop-header__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2.5rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-accent), transparent);
    opacity: 0.9;
}

.shop-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shop-header__filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.shop-header__filters input[type="text"],
.shop-header__filters select {
    height: 2.4rem;
    min-width: 180px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background-color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    font-size: 0.9rem;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.shop-header__filters select {
    min-width: 150px;
    cursor: pointer;
}

.shop-header__filters input[type="text"]::placeholder {
    color: #9ca3af;
}

.shop-header__filters input[type="text"]:focus,
.shop-header__filters select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    background-color: #ffffff;
}

.shop-header__filters .btn-primary {
    height: 2.4rem;
    padding: 0 1.25rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* Store wrapper */
.store-shell {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* =========================
   BRAND STRIP (LONG LOGO)
   ========================= */
.brand-strip {
    width: 100%;
    padding: 0.9rem 0 0.4rem;
    display: flex;
    justify-content: center;
}

.brand-strip__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
}

.brand-strip__logo {
    display: block;
    width: 100%;
    max-width: min(1100px, 92vw);
    height: clamp(44px, 7vw, 110px);
    object-fit: contain;
}

/* =========================
   SPECIALS STRIP
   ========================= */
.specials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.25rem;
    margin: 0 0 1.5rem;
}

.special-card {
    border-radius: 0.9rem;
    padding: 1.1rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.special-card:hover {
    transform: translateY(-2px);
}

.special-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.4rem;
    color: inherit;
}

.special-card__text {
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 0.9rem;
    color: inherit;
    opacity: 0.95;
    max-width: 44ch;
}

.special-card__btn {
    align-self: flex-start;
    margin-top: auto;
}

.special-card--main {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(135deg, var(--brand-blue), #1d4ed8 42%, #0f172a 100%);
    color: #ffffff;
    border-color: rgba(37, 99, 235, 0.72);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.55),
        0 0 0 1px rgba(226, 242, 107, 0.14);
}

.special-card--main:hover {
    box-shadow:
        0 22px 52px rgba(15, 23, 42, 0.58),
        0 0 0 1px rgba(226, 242, 107, 0.18);
}

.special-card--main .special-card__title,
.special-card--main .special-card__text {
    color: #ffffff;
}

.special-card--main .special-card__text {
    opacity: 0.92;
}

.special-card--daily {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 32%),
        linear-gradient(135deg, #5d0804 0%, var(--brand-red) 62%, #b10f07 100%);
    color: #ffffff;
    border-color: rgba(219, 23, 9, 0.85);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.5),
        0 0 0 1px rgba(219, 23, 9, 0.72),
        0 0 16px rgba(226, 242, 107, 0.18);
}

.special-card--daily:hover {
    box-shadow:
        0 20px 46px rgba(15, 23, 42, 0.54),
        0 0 0 1px rgba(219, 23, 9, 0.82),
        0 0 18px rgba(226, 242, 107, 0.22);
}

.special-card--daily .special-card__title,
.special-card--daily .special-card__text {
    color: #ffffff;
}

.special-card--daily .special-card__text {
    opacity: 0.94;
}

.special-card--prebuilt {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 28%, var(--brand-red) 100%);
    color: #ffffff;
    border-color: rgba(148, 163, 184, 0.65);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.46),
        0 0 0 1px rgba(219, 23, 9, 0.55),
        0 0 14px rgba(226, 242, 107, 0.14);
}

.special-card--prebuilt:hover {
    box-shadow:
        0 20px 48px rgba(15, 23, 42, 0.5),
        0 0 0 1px rgba(219, 23, 9, 0.65),
        0 0 16px rgba(226, 242, 107, 0.18);
}

.special-card--prebuilt .special-card__title,
.special-card--prebuilt .special-card__text {
    color: #ffffff;
}

.special-card--prebuilt .special-card__text {
    opacity: 0.93;
}

.special-card--daily .btn-secondary,
.special-card--prebuilt .btn-secondary {
    background-color: rgba(255, 255, 255, 0.96);
    color: #111827;
    border-color: rgba(255, 255, 255, 0.75);
}

.special-card--daily .btn-secondary:hover,
.special-card--prebuilt .btn-secondary:hover {
    background-color: #ffffff;
    color: #111827;
    border-color: #ffffff;
    text-decoration: none;
}

.special-card--main .btn-primary {
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 12px 28px rgba(37, 99, 235, 0.28);
}

/* =========================
   PRODUCT ROW CAROUSEL (3 items)
   ========================= */
.product-section {
    margin-top: 1.75rem;
}

.product-section p,
.product-section .text-muted,
.shop-header p,
.shop-header .text-muted {
    color: #334155;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.product-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.product-section__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-deep);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
}

.product-section__controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-row-carousel {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 0.9rem 1rem 1.1rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.product-row-carousel__track {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.product-row-card {
    flex: 0 0 260px;
    max-width: 260px;
}

/* =========================
   AUTH PAGES (LOGIN / REGISTER)
   ========================= */
.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1rem 4rem;
    background: rgba(15, 23, 42, 0.08);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    margin-top: 2rem;
    padding: 2.5rem 2.75rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.auth-title {
    margin: 0 0 1.75rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: #0f172a;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.auth-link {
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    font-size: 0.85rem;
    color: #b91c1c;
}

/* Embedded mode */
body[data-embedded="1"] .site-header,
body[data-embedded="1"] .site-footer {
    display: none !important;
}

body[data-embedded="1"] {
    background-image: none;
    background-color: transparent;
}

body[data-embedded="1"] .auth-page {
    min-height: auto;
    padding: 1rem;
    background: transparent;
}

body[data-embedded="1"] .auth-card {
    margin-top: 0;
    max-width: 520px;
    box-shadow: none;
    border-radius: 18px;
}

/* =========================
   DASHBOARD (ADMIN / CLIENT)
   ========================= */
.dash-header {
    margin: 0.25rem 0 1rem;
}

.dash-header h1 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.dash-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.dash-menu {
    position: sticky;
    top: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.9rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.dash-menu .card {
    padding: 0.9rem;
}

.dash-menu h3 {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.dash-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dash-menu a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    color: #111827;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.dash-menu a:hover {
    text-decoration: none;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.dash-content .card {
    padding: 1.2rem;
}

.dash-content .card h2 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

/* =========================
   TABLES (ADMIN)
   ========================= */
.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.92rem;
}

.table th,
.table td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    text-align: left;
}

.table th {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
}

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

.table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* =========================
   ADMIN PAGES
   ========================= */
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
}

.page-head h1 {
    font-size: 1.6rem;
}

.page-head__actions {
    display: flex;
    gap: 0.5rem;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.75rem 0 0;
}

.toolbar__left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* =========================
   CHAT FAB
   ========================= */
.chat-fab {
    position: fixed;
    top: 90px !important;
    right: 24px !important;
    bottom: auto !important;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.45),
        0 0 0 1px rgba(219, 23, 9, 0.22),
        0 18px 44px var(--accent-soft);
    cursor: pointer;
    z-index: 55;
}

@media (max-width: 640px) {
    .chat-fab {
        top: 4.75rem !important;
        right: 1rem !important;
    }
}

/* =========================
   CHAT MODAL
   ========================= */
.chat-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.chat-modal-overlay.open {
    display: flex;
}

.chat-modal {
    width: min(980px, 94vw);
    height: min(720px, 88vh);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-modal__header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 500;
    background: #ffffff;
    flex: 0 0 auto;
}

.chat-modal__close {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.chat-modal__body {
    flex: 1 1 auto;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
}

.chat-embed,
.chat-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #ffffff;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1024px) {
    body {
        background-attachment: scroll;
    }

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

    .special-card {
        min-height: auto;
    }

    .special-card__text {
        max-width: none;
    }
}

@media (max-width: 960px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .field--span2 {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .brand-strip__logo {
        height: 42px;
        max-width: 320px;
    }
}