:root {
    --bg: #eef6ff;
    --ink: #0f1a2b;
    --accent: #1f6feb;
    --panel: rgba(255, 255, 255, 0.82);
    --danger: #d74c3a;
    --glass-border: rgba(255, 255, 255, 0.6);
    --admin-menu-font-size: 16px;
    --admin-menu-line-height: 1.35;
}

body {
    margin: 0;
    font-family: "Tajawal", "Cairo", "Segoe UI", sans-serif;
    background: linear-gradient(145deg, #e2f1ff 0%, #f7f0ff 60%, #ffffff 100%);
    color: var(--ink);
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}
.admin-shell--guest {
    grid-template-columns: 1fr;
}


.admin-sidebar {
    background: linear-gradient(180deg, #0f1a2b 0%, #1f2f5c 100%);
    color: #fff;
    padding: 24px;
    box-shadow: 12px 0 30px rgba(15, 26, 43, 0.2);
}

.admin-sidebar h1 {
    margin: 0 0 20px;
}

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

.admin-nav-group {
    margin: 0;
}

.admin-nav-group summary {
    list-style: none;
}

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

.admin-nav-link,
.admin-sidebar a {
    display: block;
    color: #dbe6ff;
    padding: 12px 14px;
    font-size: var(--admin-menu-font-size);
    line-height: var(--admin-menu-line-height);
    text-decoration: none;
    border-radius: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-nav-link,
.admin-nav-toggle,
.admin-subnav-link,
.admin-subnav-toggle,
.admin-nav-link--logout {
    font-size: var(--admin-menu-font-size) !important;
    line-height: var(--admin-menu-line-height);
}

@media screen {
    .admin-nav-link,
    .admin-nav-toggle,
    .admin-subnav-link,
    .admin-subnav-toggle,
    .admin-nav-link--logout {
        font-size: var(--admin-menu-font-size) !important;
        line-height: var(--admin-menu-line-height);
    }
}

.admin-nav-link:hover,
.admin-sidebar a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.admin-nav-link.is-active,
.admin-subnav-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(31, 111, 235, 0.42) 0%, rgba(122, 92, 255, 0.28) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-nav-toggle {
    cursor: pointer;
    position: relative;
    padding-inline-end: 42px;
}

.admin-nav-toggle::after {
    content: "+";
    position: absolute;
    inset-inline-end: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #8fb4ff;
}

.admin-nav-group[open] .admin-nav-toggle::after {
    content: "-";
}

.admin-subnav {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(8, 14, 27, 0.28);
}

.admin-subnav-link {
    display: block;
    color: #bfcde6;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: var(--admin-menu-font-size);
    line-height: var(--admin-menu-line-height);
}

.admin-subnav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.admin-subnav-group {
    margin: 0;
}

.admin-subnav-group summary {
    list-style: none;
}

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

.admin-subnav-toggle {
    cursor: pointer;
    position: relative;
    padding-inline-end: 34px;
}

.admin-subnav-toggle::after {
    content: "+";
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8fb4ff;
    font-size: 17px;
}

.admin-subnav-group[open] .admin-subnav-toggle::after {
    content: "-";
}

.admin-subnav-nested {
    display: grid;
    gap: 6px;
    margin-top: 6px;
    padding-inline-start: 10px;
    border-inline-start: 1px dashed rgba(143, 180, 255, 0.35);
}

.admin-nav-link--logout {
    margin-top: 10px;
    color: #ffd4cf;
    background: rgba(215, 76, 58, 0.12);
}

.admin-content {
    padding: 30px;
    animation: rise 0.7s ease both;
}

.admin-card {
    max-width: 420px;
    margin: 80px auto;
    background: var(--panel);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(31, 111, 235, 0.18);
    backdrop-filter: blur(14px);
}

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

.specifications-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.specifications-grid .panel {
    min-width: 0;
}

.panel {
    background: var(--panel);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 18px 45px rgba(31, 111, 235, 0.12);
    backdrop-filter: blur(14px);
    animation: rise 0.7s ease both;
}

.panel table {
    width: 100%;
    border-collapse: collapse;
}

.panel th,
.panel td {
    text-align: start;
    padding: 10px;
    border-bottom: 1px solid #e4e7ee;
}

.btn {
    padding: 8px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #b9d7ff 0%, #ffe0f7 100%);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--ink);
}

.btn.primary {
    background: linear-gradient(135deg, #1f6feb 0%, #5b8cff 55%, #7a5cff 100%);
    color: #fff;
}

.btn.danger {
    background: var(--danger);
    color: #fff;
}

.btn:hover,
.panel:hover,
.stat-card:hover,
.admin-card:hover {
    animation: hover-shake 0.35s ease-in-out;
}

label {
    display: block;
    margin-bottom: 12px;
}

label input,
label select,
label textarea {
    width: 100%;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(31, 111, 235, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

.admin-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.admin-actions form {
    margin: 0;
    display: inline-flex;
}

.product-spec-builder {
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(31, 111, 235, 0.2);
    background: rgba(255, 255, 255, 0.72);
}

.product-spec-builder-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.product-spec-builder-head h4 {
    margin: 0;
}

#product-spec-rows {
    display: grid;
    gap: 10px;
}

.product-spec-row {
    display: grid;
    grid-template-columns: repeat(var(--spec-cols, 4), minmax(140px, 1fr)) auto;
    gap: 14px;
    align-items: start;
    padding: 10px;
    justify-content: space-between;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(31, 111, 235, 0.12);
}

.product-spec-row label {
    margin-bottom: 0;
    min-width: 30px;
}

.product-spec-row input,
.product-spec-row select {
    height: 30px;
    min-height: 30px;
    padding: 8px 10px;
}

.product-spec-row .product-spec-remove {
    min-height: 30px;
    height: 30px;
    padding: 0 14px;
    align-self: end;
    white-space: nowrap;
}

.fixed-price-stock-fields {
    margin-bottom: 14px;
}

.product-description-field {
    min-height: 160px;
}

.store-products-page h2,
.store-products-page h3,
.store-products-page h4 {
    font-size: calc(100% + 2px);
}

.store-products-page label,
.store-products-page .btn,
.store-products-page input,
.store-products-page select,
.store-products-page textarea,
.store-products-page table th,
.store-products-page table td,
.store-products-page .muted {
    font-size: calc(100% + 2px);
}

.status-switch {
    display: inline-flex;
    margin: 0;
}

.status-toggle {
    position: relative;
    min-width: 106px;
    height: 36px;
    border: none;
    border-radius: 999px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    background: #d74c3a;
    cursor: pointer;
    transition: background 0.22s ease;
}

.status-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 68%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    inset-inline-start: 9px;
    transition: inset-inline-start 0.22s ease, inset-inline-end 0.22s ease;
}

.status-toggle.is-on {
    background: #2fa66b;
}

.status-toggle.is-on::after {
    inset-inline-start: auto;
    inset-inline-end: 9px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.color-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(31, 111, 235, 0.16);
    background: rgba(255, 255, 255, 0.75);
}

.color-item input[type="color"] {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

.color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid rgba(31, 111, 235, 0.24);
}

.slider-preview {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.slider-preview img {
    width: 100%;
    max-width: 240px;
    border-radius: 12px;
    border: 1px solid rgba(31, 111, 235, 0.16);
}

.product-gallery-preview {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.product-gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.product-gallery-preview-item {
    position: relative;
}

.product-gallery-preview-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(31, 111, 235, 0.16);
}

.product-gallery-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 999px;
    background: #d74c3a;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.product-gallery-delete-btn:hover {
    background: #b73322;
}

.alert {
    background: #ffe6df;
    color: #a63d1a;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.country-results {
    display: grid;
    gap: 8px;
    max-height: 280px;
    overflow: auto;
    padding: 10px;
    border: 1px solid rgba(31, 111, 235, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
}

.country-result {
    display: grid;
    grid-template-columns: 28px 1fr 60px 44px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
}

.country-result .iso {
    font-weight: 700;
    color: #4a5d7a;
}

.country-result .add {
    padding: 4px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1f6feb 0%, #5b8cff 55%, #7a5cff 100%);
    color: #fff;
}

.selected-title {
    font-weight: 700;
    margin: 12px 0 8px;
}

.selected-countries {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.country-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(31, 111, 235, 0.12);
    color: var(--ink);
    border: 1px solid rgba(31, 111, 235, 0.2);
}

.country-chip .flag,
.country-result .flag {
    font-size: 16px;
}

.country-chip button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--danger);
    font-size: 16px;
    line-height: 1;
}

.muted {
    color: #5c6f86;
}

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

.stat-card {
    background: var(--panel);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 16px 40px rgba(31, 111, 235, 0.12);
    backdrop-filter: blur(14px);
    animation: rise 0.7s ease both;
}

.admin-header--platform {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-kicker {
    display: inline-block;
    margin-bottom: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.07);
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
}

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

.groupkom-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: 18px;
    margin-bottom: 18px;
    padding: 24px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.92), transparent 34%),
        linear-gradient(135deg, rgba(241,248,255,0.95) 0%, rgba(250,244,255,0.92) 58%, rgba(255,248,240,0.92) 100%);
}

.groupkom-hero__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #51637e;
    font-size: 13px;
    font-weight: 800;
}

.groupkom-hero h3 {
    margin: 0 0 10px;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.18;
    color: #0f172a;
}

.groupkom-hero p {
    margin: 0;
    color: #41556f;
    line-height: 1.9;
}

.groupkom-hero__status {
    display: grid;
    gap: 12px;
}

.groupkom-status-tile {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.66);
    box-shadow: 0 14px 30px rgba(31, 111, 235, 0.08);
}

.groupkom-status-tile strong {
    display: block;
    margin-bottom: 6px;
    font-size: 28px;
    color: #0f172a;
}

.groupkom-status-tile span {
    color: #4b6079;
    line-height: 1.7;
}

.groupkom-stats-grid {
    margin-bottom: 18px;
}

.groupkom-stat-card small {
    display: block;
    margin-top: 8px;
    color: #5a6d86;
    line-height: 1.7;
}

.groupkom-section {
    margin-bottom: 20px;
}

.groupkom-section__head {
    margin-bottom: 12px;
}

.groupkom-section__head h3 {
    margin: 0 0 6px;
    color: #0f172a;
}

.groupkom-plan-grid,
.groupkom-control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.groupkom-plan-card {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.66);
    box-shadow: 0 18px 40px rgba(31, 111, 235, 0.1);
}

.groupkom-plan-card.is-featured {
    background: linear-gradient(180deg, #0f172a 0%, #1d4ed8 100%);
    color: #fff;
}

.groupkom-plan-card__badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
}

.groupkom-plan-card.is-featured .groupkom-plan-card__badge,
.groupkom-plan-card.is-featured h4,
.groupkom-plan-card.is-featured p,
.groupkom-plan-card.is-featured li {
    color: #fff;
}

.groupkom-plan-card h4,
.groupkom-control-card h4 {
    margin: 0 0 10px;
}

.groupkom-plan-card p,
.groupkom-control-card p {
    margin: 0 0 12px;
    line-height: 1.8;
    color: #4d6079;
}

.groupkom-plan-card.is-featured p {
    color: rgba(255,255,255,0.9);
}

.groupkom-plan-card ul {
    margin: 0;
    padding-inline-start: 18px;
    line-height: 1.9;
}

.groupkom-step-list {
    display: grid;
    gap: 12px;
}

.groupkom-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(255,255,255,0.66);
    box-shadow: 0 14px 30px rgba(31, 111, 235, 0.08);
}

.groupkom-step span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    flex: 0 0 42px;
}

.groupkom-step p {
    margin: 0;
    color: #334155;
    line-height: 1.8;
}

.groupkom-plan-admin-grid {
    display: grid;
    grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.groupkom-store-admin-grid {
    display: grid;
    grid-template-columns: minmax(340px, 460px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

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

.groupkom-plan-switches {
    display: grid;
    gap: 10px;
    margin: 12px 0;
}

.groupkom-inline-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(112, 138, 255, 0.12);
    color: #283775;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 8px;
}

.groupkom-preview-card {
    margin: 14px 0 18px;
    padding: 14px 16px;
    border: 1px solid #d7e0f4;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff, #eef4ff);
}

.groupkom-domain-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.groupkom-domain-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    background: #edf4ff;
    color: #15304f;
    font-weight: 700;
    word-break: break-all;
}

.groupkom-domain-chip.is-custom {
    background: #eefbf2;
    color: #15553b;
}

.groupkom-status-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.groupkom-state-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(178, 188, 210, 0.2);
    color: #4a566e;
    font-size: 0.82rem;
    font-weight: 700;
}

.groupkom-state-pill.is-good {
    background: rgba(106, 201, 146, 0.18);
    color: #17653b;
}

.groupkom-table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.groupkom-table-actions form {
    margin: 0;
}

.cardkom-command {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 22px;
    margin-bottom: 20px;
    padding: 28px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.20), transparent 24%),
        radial-gradient(circle at left center, rgba(14, 165, 233, 0.22), transparent 32%),
        linear-gradient(135deg, rgba(7, 16, 33, 0.98) 0%, rgba(15, 23, 42, 0.96) 48%, rgba(29, 78, 216, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
}

.cardkom-command::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(125deg, rgba(255,255,255,0.08), transparent 26%),
        linear-gradient(315deg, rgba(255,255,255,0.05), transparent 30%);
    pointer-events: none;
}

.cardkom-command > * {
    position: relative;
    z-index: 1;
}

.cardkom-command__copy {
    color: #f8fbff;
}

.cardkom-command__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #cce3ff;
    font-size: 12px;
    font-weight: 800;
}

.cardkom-command__copy h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(28px, 3.4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.cardkom-command__copy p {
    margin: 0;
    max-width: 720px;
    color: rgba(235, 244, 255, 0.86);
    line-height: 1.95;
}

.cardkom-command__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.cardkom-command__actions .btn:not(.primary) {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.cardkom-command__visual {
    display: grid;
    gap: 14px;
    align-content: start;
}

.cardkom-command__release,
.cardkom-command__pulse {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.cardkom-command__release span,
.cardkom-command__pulse-labels span {
    color: rgba(215, 230, 255, 0.78);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.cardkom-command__release strong {
    display: block;
    margin: 10px 0 6px;
    color: #fff;
    font-size: 34px;
    line-height: 1;
}

.cardkom-command__release small {
    display: block;
    color: rgba(236, 244, 255, 0.82);
    line-height: 1.8;
}

.cardkom-command__pulse svg {
    display: block;
    width: 100%;
    height: 160px;
}

.cardkom-command__pulse-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.cardkom-stats-grid {
    margin-bottom: 20px;
}

.cardkom-release-publisher {
    margin-bottom: 20px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 24%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(240, 245, 255, 0.96) 100%);
}

.cardkom-release-publisher__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.cardkom-release-publisher__head h3 {
    margin: 6px 0 10px;
    font-size: clamp(22px, 2vw, 30px);
    color: #0f172a;
}

.cardkom-release-publisher__head p {
    margin: 0;
    max-width: 820px;
    line-height: 1.9;
    color: #4b5f78;
}

.cardkom-release-publisher__form textarea,
.cardkom-release-publisher__form input[type="text"] {
    background: rgba(255, 255, 255, 0.92);
}

.tenant-command {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 22px;
    align-items: start;
    margin-bottom: 20px;
    padding: 28px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 24%),
        radial-gradient(circle at right center, rgba(14, 165, 233, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(5, 46, 22, 0.98) 0%, rgba(15, 118, 110, 0.94) 48%, rgba(8, 47, 73, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 60px rgba(6, 78, 59, 0.22);
}

.tenant-command::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.08), transparent 28%),
        linear-gradient(315deg, rgba(255,255,255,0.04), transparent 32%);
    pointer-events: none;
}

.tenant-command > * {
    position: relative;
    z-index: 1;
}

.tenant-command__copy {
    color: #f5fffb;
}

.tenant-command__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #d8fff0;
    font-size: 12px;
    font-weight: 800;
}

.tenant-command__copy h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.tenant-command__copy p {
    margin: 0;
    max-width: 720px;
    color: rgba(234, 255, 247, 0.86);
    line-height: 1.95;
}

.tenant-command__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.tenant-command__actions .btn:not(.primary) {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.tenant-command__visual {
    display: grid;
    gap: 14px;
    align-content: start;
    align-self: start;
}

.tenant-command__release,
.tenant-command__pulse {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.tenant-command__release span,
.tenant-command__pulse-labels span {
    color: rgba(215, 255, 239, 0.8);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.tenant-command__release strong {
    display: block;
    margin: 10px 0 6px;
    color: #fff;
    font-size: 34px;
    line-height: 1;
}

.tenant-command__release small {
    display: block;
    color: rgba(236, 255, 248, 0.84);
    line-height: 1.8;
}

.tenant-command__pulse svg {
    display: block;
    width: 100%;
    height: 140px;
    max-height: 140px;
}

.tenant-command__pulse-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.tenant-command__pulse {
    min-height: 208px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tenant-stats-grid {
    margin-bottom: 20px;
}

.tenant-stat-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 22px;
}

.tenant-stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255,255,255,0.5), transparent 46%);
    pointer-events: none;
}

.tenant-stat-card span,
.tenant-stat-card small,
.tenant-stat-card strong {
    position: relative;
    z-index: 1;
}

.tenant-stat-card span {
    display: block;
    margin-bottom: 10px;
    color: #476258;
    font-weight: 800;
}

.tenant-stat-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(32px, 3.2vw, 46px);
    line-height: 1;
    color: #082f1c;
}

.tenant-stat-card small {
    display: block;
    color: #567165;
    line-height: 1.8;
}

.tenant-stat-card--orders {
    background: linear-gradient(160deg, rgba(240, 253, 244, 0.96) 0%, rgba(220, 252, 231, 0.90) 100%);
}

.tenant-stat-card--catalog {
    background: linear-gradient(160deg, rgba(236, 254, 255, 0.96) 0%, rgba(207, 250, 254, 0.90) 100%);
}

.tenant-stat-card--pending {
    background: linear-gradient(160deg, rgba(255, 247, 237, 0.96) 0%, rgba(255, 237, 213, 0.90) 100%);
}

.tenant-stat-card--release {
    background: linear-gradient(160deg, rgba(236, 253, 245, 0.96) 0%, rgba(209, 250, 229, 0.90) 100%);
}

.tenant-deep-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 20px;
    margin-bottom: 20px;
}

.tenant-panel {
    padding: 24px;
    border-radius: 24px;
}

.tenant-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.tenant-panel__eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(6, 95, 70, 0.08);
    color: #3d6a5d;
    font-size: 12px;
    font-weight: 800;
}

.tenant-panel__head h3 {
    margin: 0;
    font-size: 24px;
    color: #082f1c;
}

.tenant-panel__headline {
    font-size: 42px;
    line-height: 1;
    color: #065f46;
}

.tenant-signal-list {
    display: grid;
    gap: 12px;
}

.tenant-signal-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(240, 253, 244, 0.86) 100%);
    border: 1px solid rgba(209, 250, 229, 0.9);
}

.tenant-signal-row span {
    color: #476258;
    font-weight: 700;
}

.tenant-signal-row strong {
    color: #082f1c;
    font-size: 20px;
}

.tenant-panel--accent {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 26%),
        linear-gradient(180deg, rgba(248, 255, 252, 0.98) 0%, rgba(236, 253, 245, 0.96) 100%);
}

.tenant-panel__body {
    margin: 0;
    line-height: 1.95;
    color: #48675c;
}

.store-update-button {
    min-width: 180px;
    justify-content: center;
    position: relative;
}

.store-update-button__dots {
    display: none;
    align-items: center;
    gap: 6px;
}

.store-update-button__dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.26;
    animation: storeUpdatePulse 0.9s infinite ease-in-out;
}

.store-update-button__dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.store-update-button__dots span:nth-child(3) {
    animation-delay: 0.3s;
}

.store-update-button.is-loading {
    pointer-events: none;
    opacity: 0.96;
}

.store-update-button.is-loading .store-update-button__label {
    display: none;
}

.store-update-button.is-loading .store-update-button__dots {
    display: inline-flex;
}

@keyframes storeUpdatePulse {
    0%, 80%, 100% {
        opacity: 0.26;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.cardkom-stat-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 22px;
}

.cardkom-stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255,255,255,0.52), transparent 46%);
    pointer-events: none;
}

.cardkom-stat-card span,
.cardkom-stat-card small,
.cardkom-stat-card strong {
    position: relative;
    z-index: 1;
}

.cardkom-stat-card span {
    display: block;
    margin-bottom: 10px;
    color: #4c5f78;
    font-weight: 800;
}

.cardkom-stat-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(32px, 3.3vw, 48px);
    line-height: 1;
    color: #09111f;
}

.cardkom-stat-card small {
    display: block;
    color: #596e86;
    line-height: 1.8;
}

.cardkom-stat-card--orders {
    background: linear-gradient(160deg, rgba(240, 249, 255, 0.96) 0%, rgba(219, 234, 254, 0.90) 100%);
}

.cardkom-stat-card--catalog {
    background: linear-gradient(160deg, rgba(255, 247, 237, 0.96) 0%, rgba(255, 237, 213, 0.90) 100%);
}

.cardkom-stat-card--pending {
    background: linear-gradient(160deg, rgba(255, 241, 242, 0.96) 0%, rgba(255, 228, 230, 0.90) 100%);
}

.cardkom-stat-card--release {
    background: linear-gradient(160deg, rgba(239, 246, 255, 0.96) 0%, rgba(224, 231, 255, 0.90) 100%);
}

.cardkom-deep-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 20px;
    margin-bottom: 20px;
}

.cardkom-panel {
    padding: 24px;
    border-radius: 24px;
}

.cardkom-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.cardkom-panel__eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #52657d;
    font-size: 12px;
    font-weight: 800;
}

.cardkom-panel__head h3 {
    margin: 0;
    font-size: 24px;
    color: #09111f;
}

.cardkom-panel__headline {
    font-size: 42px;
    line-height: 1;
    color: #0f172a;
}

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

.cardkom-metric-tile {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(241, 247, 255, 0.86) 100%);
    border: 1px solid rgba(216, 229, 245, 0.9);
}

.cardkom-metric-tile span {
    display: block;
    margin-bottom: 10px;
    color: #5b7088;
    font-size: 12px;
    font-weight: 800;
}

.cardkom-metric-tile strong {
    display: block;
    margin-bottom: 8px;
    font-size: 34px;
    line-height: 1;
    color: #0f172a;
}

.cardkom-metric-tile p {
    margin: 0;
    color: #5b7088;
    line-height: 1.8;
}

.cardkom-signal-list {
    display: grid;
    gap: 12px;
}

.cardkom-signal-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(246, 249, 255, 0.95);
    border: 1px solid rgba(223, 232, 245, 0.86);
}

.cardkom-signal-row span {
    color: #53687f;
    font-weight: 700;
}

.cardkom-signal-row strong {
    color: #0f172a;
    font-size: 20px;
}

.cardkom-progress-stack {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.cardkom-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #4f637a;
    font-weight: 700;
}

.cardkom-progress {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(205, 219, 236, 0.58);
    overflow: hidden;
}

.cardkom-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 100%);
}

.cardkom-progress--warm span {
    background: linear-gradient(90deg, #fb7185 0%, #f97316 100%);
}

.cardkom-story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.cardkom-story-card {
    padding: 24px;
    border-radius: 24px;
}

.cardkom-story-card h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 24px;
}

.cardkom-story-card p {
    margin: 0;
    color: #52657d;
    line-height: 1.95;
}

.cardkom-story-card--accent {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 26%),
        linear-gradient(135deg, rgba(249, 250, 255, 0.97) 0%, rgba(232, 240, 255, 0.92) 100%);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

@keyframes hover-shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

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

    .admin-sidebar {
        position: sticky;
        top: 0;
    }

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

    .product-spec-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .admin-header--platform,
    .groupkom-hero,
    .cardkom-command,
    .tenant-command,
    .cardkom-deep-grid,
    .tenant-deep-grid,
    .cardkom-story-grid {
        grid-template-columns: 1fr;
    }

    .groupkom-plan-admin-grid,
    .groupkom-store-admin-grid,
    .groupkom-form-grid {
        grid-template-columns: 1fr;
    }

    .cardkom-release-publisher__head {
        flex-direction: column;
    }
}

.payment-options-wrap {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
}

.payment-options-card {
    width: min(500px, 100%);
    height: min(800px, calc(100vh - 170px));
    margin: 0 auto;
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.78) 0%, rgba(233, 245, 255, 0.62) 100%);
    border: 1px solid rgba(255, 255, 255, 0.66);
    box-shadow: 0 24px 54px rgba(31, 111, 235, 0.18);
    backdrop-filter: blur(18px);
    overflow: auto;
}

.payment-options-card form {
    display: grid;
    gap: 10px;
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
}

.modern-switch {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.modern-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.modern-switch-track {
    width: 140px;
    height: 40px;
    border-radius: 999px;
    background: #d74c3a;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: inline-block;
    transition: background 0.22s ease;
    position: relative;
}

.modern-switch-thumb {
    position: absolute;
    top: 50%;
    inset-inline-start: 6px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #fff;
    transform: translateY(-50%);
    transition: inset-inline-start 0.22s ease, inset-inline-end 0.22s ease;
}

.modern-switch input:checked + .modern-switch-track {
    background: #2fa66b;
}

.modern-switch input:checked + .modern-switch-track .modern-switch-thumb {
    inset-inline-start: auto;
    inset-inline-end: 6px;
}

.gateway-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

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

@media (max-width: 780px) {
    .gateway-cards-grid {
        grid-template-columns: 1fr;
    }
}

.gateway-card {
    border-radius: 20px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.78) 0%, rgba(233, 245, 255, 0.62) 100%);
    border: 1px solid rgba(255, 255, 255, 0.66);
    box-shadow: 0 24px 54px rgba(31, 111, 235, 0.15);
    backdrop-filter: blur(18px);
}

.gateway-card h3 {
    margin-top: 0;
}

.gateway-card form {
    display: grid;
    gap: 8px;
}

.store-sections-table .drag-col {
    width: 44px;
    text-align: center;
}

.store-sections-table .reorder-row {
    cursor: grab;
}

.store-sections-table .reorder-row.is-dragging {
    opacity: 0.55;
    background: rgba(31, 111, 235, 0.08);
}

.drag-handle {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(31, 111, 235, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    color: #1f6feb;
    font-size: 16px;
    line-height: 1;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.store-categories-table .drag-col,
.store-brands-table .drag-col,
.digital-products-table .drag-col {
    width: 44px;
    text-align: center;
}

.store-categories-table .reorder-row,
.store-brands-table .reorder-row,
.digital-products-table .reorder-row {
    cursor: grab;
}

.store-categories-table .reorder-row.is-dragging,
.store-brands-table .reorder-row.is-dragging,
.digital-products-table .reorder-row.is-dragging {
    opacity: 0.55;
    background: rgba(31, 111, 235, 0.08);
}

.store-products-list-table .drag-col {
    width: 44px;
    text-align: center;
}

.store-products-list-table .reorder-row {
    cursor: grab;
}

.store-products-list-table .reorder-row.is-dragging {
    opacity: 0.55;
    background: rgba(31, 111, 235, 0.08);
}

.digital-cards-table .drag-col {
    width: 44px;
    text-align: center;
}

.digital-cards-table .reorder-row {
    cursor: grab;
}

.digital-cards-table .reorder-row.is-dragging {
    opacity: 0.55;
    background: rgba(31, 111, 235, 0.08);
}

.admin-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.admin-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 24px rgba(31, 111, 235, 0.12);
    backdrop-filter: blur(10px);
}

.admin-topbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #274173;
    font-weight: 700;
    background: rgba(31, 111, 235, 0.09);
    border: 1px solid rgba(31, 111, 235, 0.18);
    transition: all 0.2s ease;
}

.admin-topbar-btn:hover {
    background: rgba(31, 111, 235, 0.16);
    color: #173053;
}

.admin-topbar-btn.is-active {
    background: rgba(31, 111, 235, 0.22);
    color: #0d2a57;
}

.admin-topbar-btn--primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #1f6feb 0%, #5b8cff 55%, #7a5cff 100%);
}

.admin-topbar-btn--primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #1a62d3 0%, #4f7de0 55%, #6f55e8 100%);
}

@media (max-width: 900px) {
    .admin-topbar {
        justify-content: center;
    }

    .admin-topbar-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.admin-topbar-btn--lang {
    min-width: 56px;
    background: rgba(31, 111, 235, 0.12);
    border-color: rgba(31, 111, 235, 0.26);
    color: #10315f;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.admin-topbar-btn--lang:hover {
    background: rgba(31, 111, 235, 0.2);
    color: #0d2a57;
}

/* Admin select controls: keep dropdown width usable on wide screens */
.panel label select,
.checkout-card label select,
.summary-card label select,
.profile-card label select {
    width: 100%;
    max-width: 520px;
}

@media (max-width: 700px) {
    .panel label select,
    .checkout-card label select,
    .summary-card label select,
    .profile-card label select {
        max-width: 100%;
    }
}

/* Global typography normalization across admin pages */
:root {
    --admin-font-base-size: 16px;
    --admin-font-small-size: 15px;
}

.admin-content,
.admin-content p,
.admin-content li,
.admin-content label,
.admin-content input,
.admin-content select,
.admin-content textarea,
.admin-content button,
.admin-content .btn,
.admin-content a,
.admin-content td,
.admin-content th {
    font-size: var(--admin-font-base-size) !important;
    line-height: 1.55;
}

.admin-content .muted,
.admin-content small {
    font-size: var(--admin-font-small-size) !important;
}

@media (max-width: 768px) {
    :root {
        --admin-font-base-size: 15px;
        --admin-font-small-size: 14px;
    }
}

.alert.success {
    background: #e2f6ea;
    color: #1f6d3e;
}

.live-chat-admin-wrap {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 14px;
    min-height: 66vh;
}

.live-chat-admin-sidebar,
.live-chat-admin-main {
    border: 1px solid rgba(31, 111, 235, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    padding: 12px;
}

.live-chat-admin-sidebar-head h3 {
    margin: 0 0 10px;
}

.live-chat-thread-list {
    display: grid;
    gap: 8px;
    max-height: 62vh;
    overflow: auto;
}

.live-chat-thread-item {
    border: 1px solid rgba(31, 111, 235, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 9px 10px;
    text-align: start;
    cursor: pointer;
}

.live-chat-thread-item.is-active {
    background: rgba(31, 111, 235, 0.12);
}

.live-chat-thread-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.live-chat-thread-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-chat-thread-phone {
    display: block;
    color: #2f4f78;
    font-weight: 700;
    margin-bottom: 2px;
}

.live-chat-thread-assigned {
    display: block;
    color: #4d6382;
    margin-bottom: 3px;
}

.live-chat-new-case {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ffd9a8;
    color: #6f3a00;
    font-size: 11px;
    font-weight: 700;
}

.live-chat-unread {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #d74c3a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 0 6px;
}

.live-chat-admin-main {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
}

.live-chat-admin-main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.live-chat-admin-main-head small {
    display: block;
    margin-top: 3px;
}

.live-chat-admin-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.live-chat-admin-messages {
    border: 1px solid rgba(31, 111, 235, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    padding: 12px;
    max-height: 55vh;
    min-height: 320px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.live-chat-msg {
    display: flex;
    width: 100%;
}

.live-chat-msg.is-admin {
    justify-content: flex-end;
}

.live-chat-msg.is-customer {
    justify-content: flex-start;
}

.live-chat-msg-bubble {
    width: fit-content;
    max-width: min(78%, 560px);
    min-width: 56px;
    border-radius: 14px;
    padding: 8px 11px;
    background: #ffffff;
    border: 1px solid rgba(31, 111, 235, 0.18);
    display: block;
    color: #111;
}

.live-chat-msg.is-admin .live-chat-msg-bubble {
    background: #dcf8c6;
    border-color: rgba(34, 139, 88, 0.28);
    border-bottom-right-radius: 6px;
}

.live-chat-msg.is-customer .live-chat-msg-bubble {
    border-bottom-left-radius: 6px;
}

.live-chat-msg-who,
.live-chat-msg-time {
    color: #4e6786;
}

.live-chat-msg-sender {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #35567f;
    opacity: 0.96;
}

.live-chat-msg-text {
    white-space: pre-wrap;
    word-break: break-word;
    color: #111;
}

.live-chat-msg-bubble a {
    color: #0a4db3;
}

.live-chat-msg-bubble img {
    margin-top: 6px;
    max-width: 100%;
    max-height: 240px;
    border-radius: 10px;
    border: 1px solid rgba(31, 111, 235, 0.22);
}

.live-chat-msg-time + .live-chat-msg-time {
    margin-inline-start: 6px;
}

.live-chat-msg.is-typing .live-chat-msg-bubble {
    background: #ffffff;
    border-color: rgba(31, 111, 235, 0.2);
}

.live-chat-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 16px;
}

.live-chat-typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6e86a8;
    opacity: 0.35;
    animation: liveChatTypingPulse 1.2s infinite ease-in-out;
}

.live-chat-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.live-chat-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes liveChatTypingPulse {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    40% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

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

.live-chat-admin-form [data-reply-lock-note] {
    color: #7a4a14;
    min-height: 18px;
}

.live-chat-admin-form textarea {
    min-height: 78px;
    resize: vertical;
    color: #111;
    background: #fff;
    border: 1px solid rgba(31, 111, 235, 0.25);
    border-radius: 10px;
    padding: 10px;
}

.live-chat-admin-form textarea::placeholder {
    color: #666;
    opacity: 1;
}

.live-chat-admin-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.live-chat-admin-form-actions input[type="file"] {
    flex: 1 1 220px;
    min-width: 0;
    max-width: 100%;
    color: #111;
}

.live-chat-admin-form-actions .btn {
    flex: 0 0 auto;
}

@media (max-width: 980px) {
    .live-chat-admin-wrap {
        grid-template-columns: 1fr;
    }

    .live-chat-thread-list,
    .live-chat-admin-messages {
        max-height: none;
    }
}

.live-chat-intervention-badge {
    background: #ffd6de;
    color: #7a1230;
}

.live-chat-intervention-box {
    display: grid;
    gap: 8px;
}

.live-chat-intervention-card {
    border: 1px solid rgba(31, 111, 235, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    display: grid;
    gap: 6px;
}

.live-chat-intervention-card.is-pending {
    border-color: rgba(232, 167, 44, 0.36);
    background: rgba(255, 247, 230, 0.95);
}

.live-chat-intervention-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.live-chat-notice-stack {
    position: fixed;
    top: 16px;
    inset-inline-end: 16px;
    z-index: 10050;
    display: grid;
    gap: 8px;
    max-width: min(360px, calc(100vw - 24px));
    pointer-events: none;
}

.live-chat-toast {
    background: rgba(15, 26, 43, 0.95);
    color: #fff;
    border-radius: 10px;
    border: 1px solid rgba(143, 180, 255, 0.3);
    box-shadow: 0 12px 30px rgba(15, 26, 43, 0.36);
    padding: 10px 12px;
    display: grid;
    gap: 3px;
    transform: translateY(0);
    opacity: 1;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.live-chat-toast small {
    color: #d5e4ff;
}

.live-chat-toast.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}
