﻿@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --gold: #C9A227;
    --gold-light: #E8C547;
    --gold-dark: #8B7020;
    --copper: #B87333;
    
    --bg-dark: #12100E;
    --bg-card: #1C1917;
    --bg-card-hover: #292524;
    --bg-elevated: #3D3835;
    --bg-warm: #2A2520;
    
    --text-primary: #FAF7F2;
    --text-secondary: #D6D3D1;
    --text-muted: #A8A29E;
    
    --success: #4ADE80;
    --success-bg: rgba(74, 222, 128, 0.15);
    --warning: #FBBF24;
    --warning-bg: rgba(251, 191, 36, 0.15);
    --error: #F87171;
    --error-bg: rgba(248, 113, 113, 0.15);
    --info: #60A5FA;
    --info-bg: rgba(96, 165, 250, 0.15);
    
    --gradient-gold: linear-gradient(135deg, #C9A227 0%, #E8C547 50%, #C9A227 100%);
    
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.3);
    
    --radius: 16px;
    --radius-sm: 10px;
    
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 162, 39, 0.72) rgba(18, 16, 14, 0.72);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: rgba(18, 16, 14, 0.72);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D8B338 0%, #B77723 100%);
    border: 2px solid rgba(18, 16, 14, 0.88);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #F0CC55 0%, #C98A2E 100%);
}

*::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn--primary {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.5);
}

.btn--secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold);
}

.btn--error {
    background: var(--error);
    color: white;
}

.btn--sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn--full {
    width: 100%;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.login-card {
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: var(--radius);
    padding: 48px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo {
    margin-bottom: 32px;
}

.login-logo i {
    width: 64px;
    height: 64px;
    color: var(--gold);
    margin-bottom: 16px;
}

.login-logo h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-input-group {
    position: relative;
    margin-bottom: 16px;
}

.login-input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.login-input-group input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}

.login-input-group input:focus {
    outline: none;
    border-color: var(--gold);
}

.login-hint {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 24px;
}

.login-error {
    color: var(--error);
    font-size: 13px;
    margin-top: 16px;
    min-height: 20px;
}

.login-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 24px;
    transition: var(--transition);
}

.login-back:hover {
    color: var(--gold);
}

.login-back svg {
    width: 16px;
    height: 16px;
}

.admin-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.admin-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
}

.admin-header__brand i {
    width: 28px;
    height: 28px;
}

.admin-badge {
    padding: 4px 12px;
    background: var(--gold);
    color: var(--bg-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-session {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-session__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-family: 'Outfit', sans-serif;
}

.admin-session__meta strong {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-primary);
}

.admin-session__meta span {
    font-size: 0.78rem;
    line-height: 1.2;
    color: var(--text-muted);
    max-width: 340px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-header__actions {
    display: flex;
    gap: 12px;
}

.admin-main {
    flex: 1;
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.admin-security-banner {
    position: relative;
    top: auto;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 10px 14px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 999px;
    background: rgba(42, 37, 32, 0.78);
    color: var(--warning);
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(14px);
}

.admin-security-banner i {
    width: 18px;
    height: 18px;
}

.admin-security-banner span {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-security-banner strong {
    color: var(--text-secondary);
    font-size: 13px;
}

.admin-security-banner--live {
    border-color: rgba(52, 211, 153, 0.28);
    color: #34d399;
}

.admin-security-banner--live span {
    color: #34d399;
}

.admin-title {
    margin-bottom: 32px;
}

.admin-title h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.admin-title p {
    color: var(--text-secondary);
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-card__icon i {
    width: 28px;
    height: 28px;
}

.stat-card--gold .stat-card__icon {
    background: rgba(201, 162, 39, 0.15);
    color: var(--gold);
}

.stat-card--success .stat-card__icon {
    background: var(--success-bg);
    color: var(--success);
}

.stat-card--warning .stat-card__icon {
    background: var(--warning-bg);
    color: var(--warning);
}

.stat-card--error .stat-card__icon {
    background: var(--error-bg);
    color: var(--error);
}

.stat-card--info .stat-card__icon {
    background: var(--info-bg);
    color: var(--info);
}

.stat-card__content {
    display: flex;
    flex-direction: column;
}

.stat-card__number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
}

.stat-card--gold .stat-card__number { color: var(--gold); }
.stat-card--success .stat-card__number { color: var(--success); }
.stat-card--warning .stat-card__number { color: var(--warning); }
.stat-card--error .stat-card__number { color: var(--error); }
.stat-card--info .stat-card__number { color: var(--info); }

.stat-card__label {
    color: var(--text-muted);
    font-size: 13px;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-dark);
}

.filter-btn svg {
    width: 16px;
    height: 16px;
}

.admin-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    min-width: 280px;
}

.admin-search i {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.admin-search input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
}

.admin-search input:focus {
    outline: none;
}

.admin-search input::placeholder {
    color: var(--text-muted);
}

.admin-table-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: visible;
}

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

.admin-table--reviews {
    min-width: 1160px;
}

.admin-table--masters {
    min-width: 1240px;
}

.admin-table th,
.admin-table td {
    padding: 16px 20px;
    text-align: left;
}

.admin-table th {
    background: var(--bg-dark);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 14px;
}

.admin-table tr:hover td {
    background: var(--bg-card-hover);
}

.admin-table .client-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-table .client-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bg-dark);
}

.admin-table .client-info strong {
    display: block;
    margin-bottom: 2px;
}

.admin-table .client-info span {
    color: var(--text-muted);
    font-size: 12px;
}

.admin-review-client {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

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

.admin-review-client span {
    color: var(--text-muted);
    font-size: 12px;
}

.admin-review-client .admin-review-verify {
    display: inline-flex;
    width: fit-content;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-review-verify--ok {
    color: #58e6a8 !important;
    background: rgba(46, 204, 113, 0.13);
}

.admin-review-verify--pending {
    color: #f3c55b !important;
    background: rgba(201, 162, 39, 0.13);
}

.admin-review-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(201, 162, 39, 0.35);
    background: rgba(201, 162, 39, 0.12);
}

.admin-review-avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-weight: 700;
}

.admin-date-line {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.35;
}

.admin-date-line + .admin-date-line {
    margin-top: 8px;
}

.admin-date-line strong {
    display: block;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
}

.admin-schedule-list {
    display: grid;
    gap: 8px;
    min-width: 210px;
}

.admin-schedule-list span {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 10px;
    background: rgba(201, 162, 39, 0.06);
}

.admin-schedule-list strong {
    color: var(--text-primary);
    font-size: 12px;
}

.admin-schedule-list small {
    color: var(--text-muted);
    font-size: 11px;
}

.admin-table .services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-table .service-tag {
    padding: 4px 10px;
    background: rgba(201, 162, 39, 0.1);
    border-radius: 12px;
    font-size: 11px;
    color: var(--gold);
}

.admin-table .total-cell {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--gold);
}

.admin-stars {
    display: inline-flex;
    gap: 3px;
    color: rgba(255, 255, 255, 0.22);
}

.admin-stars svg {
    width: 15px;
    height: 15px;
}

.admin-stars .is-filled {
    color: var(--gold);
    fill: currentColor;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-pending::before {
    background: var(--warning);
}

.status-confirmed {
    background: var(--success-bg);
    color: var(--success);
}

.status-confirmed::before {
    background: var(--success);
}

.status-completed {
    background: var(--info-bg);
    color: var(--info);
}

.status-completed::before {
    background: var(--info);
}

.status-info {
    background: var(--info-bg);
    color: var(--info);
}

.status-info::before {
    background: var(--info);
}

.status-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-warning::before {
    background: var(--warning);
}

.status-cancelled {
    background: var(--error-bg);
    color: var(--error);
}

.status-cancelled::before {
    background: var(--error);
}

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

.action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.action-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.action-btn:disabled:hover {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.action-btn--danger:hover {
    border-color: var(--error);
    color: var(--error);
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.admin-service-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: 190px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 3px;
}

.admin-service-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
}

.admin-service-option span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-service-option:has(input:checked) {
    border-color: rgba(212, 163, 59, 0.65);
    background: rgba(212, 163, 59, 0.12);
    color: var(--text-primary);
}

.admin-service-option.is-out-catalog {
    border-color: rgba(255, 193, 7, 0.48);
    background: rgba(255, 193, 7, 0.08);
}

.admin-service-option em {
    display: block;
    margin-top: 4px;
    color: var(--gold-light);
    font-size: 11px;
    font-style: normal;
}

.admin-service-option input {
    accent-color: var(--gold);
}

.admin-service-option strong {
    color: var(--gold);
    font-size: 12px;
}

.admin-service-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.admin-service-total strong {
    color: var(--gold);
    font-size: 18px;
}

.admin-exception-check {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px 12px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 193, 7, 0.42);
    border-radius: 14px;
    background: rgba(255, 193, 7, 0.08);
    color: var(--text-primary);
}

.admin-exception-check > span {
    font-size: 12px;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
}

.admin-exception-check select,
.admin-exception-check textarea {
    grid-column: 1 / -1;
    width: 100%;
    padding: 10px 12px;
}

.admin-exception-check textarea {
    min-height: 72px;
    resize: vertical;
}

.admin-exception-check.hidden {
    display: none;
}

.admin-exception-check.is-required {
    border-color: rgba(255, 107, 107, 0.72);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

.admin-exception-check input {
    margin-top: 3px;
    accent-color: var(--gold);
}

.admin-exception-check .select-enhanced {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.admin-exception-check .select-enhanced__button {
    min-height: 46px;
    padding: 0 14px;
}

.admin-exception-check .select-enhanced__button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-exception-check small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    line-height: 1.45;
}

.admin-exception-error {
    grid-column: 2;
    color: var(--error) !important;
    font-weight: 700;
}

.order-status-hint {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.35;
    text-transform: none;
}

.order-warning {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--warning-bg);
    color: var(--warning);
    font-size: 11px;
    font-weight: 700;
}

.admin-empty {
    text-align: center;
    padding: 80px 20px;
}

.admin-empty i {
    width: 80px;
    height: 80px;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 20px;
}

.admin-empty h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.admin-empty p {
    color: var(--text-muted);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__content {
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: var(--radius);
    padding: 32px;
    width: min(92vw, 560px);
    max-width: 560px;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal__content--edit {
    width: min(94vw, 680px);
    max-width: 680px;
    max-height: min(90vh, 820px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal__content--edit .modal__header {
    justify-content: center;
    text-align: center;
    position: relative;
}

.modal__content--edit .modal__close {
    position: absolute;
    right: 0;
}

.modal__content--history {
    max-height: min(88vh, 760px);
    display: flex;
    flex-direction: column;
}

.history-timeline {
    overflow-y: auto;
    display: grid;
    gap: 12px;
    padding-right: 4px;
}

.history-summary {
    display: grid;
    gap: 4px;
    padding: 14px;
    margin-bottom: 6px;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 14px;
}

.history-summary span,
.history-item time,
.history-item p {
    color: var(--text-muted);
    font-size: 13px;
}

.history-item {
    position: relative;
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.history-item__dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12);
}

.history-item h4 {
    margin: 0 0 3px;
    color: var(--text-primary);
    font-size: 14px;
}

.history-item p {
    margin-top: 6px;
    line-height: 1.45;
}

.audit-table {
    min-width: 1180px;
}

.audit-table td:last-child {
    max-width: 460px;
}

.audit-route {
    display: inline-block;
    max-width: 220px;
    padding: 5px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--gold-light);
    font-size: 12px;
}

.audit-detail {
    margin-top: 8px;
}

.audit-detail summary {
    color: var(--gold);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.audit-detail pre {
    max-height: 220px;
    max-width: min(440px, 52vw);
    margin-top: 8px;
    padding: 10px;
    overflow: auto;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.order-sales-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.order-sales-summary article {
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
        rgba(28, 23, 18, 0.82);
    border: 1px solid rgba(201, 162, 39, 0.16);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.order-sales-summary span,
.order-sales-summary small {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
}

.order-sales-summary strong {
    display: block;
    margin: 5px 0;
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    line-height: 1;
}

.closing-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin-bottom: 20px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
        rgba(28, 23, 18, 0.82);
    border: 1px solid rgba(201, 162, 39, 0.16);
    border-radius: 18px;
}

.closing-toolbar label {
    display: grid;
    gap: 8px;
    min-width: 320px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.closing-toolbar select {
    min-height: 58px;
    padding: 0 14px;
    background: rgba(18, 16, 14, 0.82);
    border: 1px solid rgba(248, 240, 223, 0.14);
    border-radius: 16px;
    color: var(--text-primary);
    font: 700 14px 'Outfit', sans-serif;
}

.closing-state {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 14px;
    color: var(--text-secondary);
    font-size: 13px;
}

.closing-state strong {
    color: var(--gold);
}

.closing-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.closing-flow article {
    min-height: 96px;
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 12px;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
        rgba(18, 16, 14, 0.68);
    border: 1px solid rgba(248, 240, 223, 0.11);
    border-radius: 16px;
}

.closing-flow article i {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 14px;
}

.closing-flow article.is-ok i {
    color: #58e6a8;
    background: rgba(46, 204, 113, 0.13);
}

.closing-flow article.needs-review i {
    color: #f3c55b;
    background: rgba(201, 162, 39, 0.14);
}

.closing-flow strong {
    color: var(--text-primary);
    font-size: 15px;
}

.closing-flow span {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

#closing-report.is-refreshing {
    animation: closingPulse 0.45s ease;
}

@keyframes closingPulse {
    from { opacity: 0.55; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.closing-date-control {
    display: grid;
    grid-template-columns: 44px minmax(180px, 1fr) 44px;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(18, 16, 14, 0.82);
    border: 1px solid rgba(248, 240, 223, 0.14);
    border-radius: 16px;
}

.closing-date-control input {
    min-height: 46px;
    padding: 0 10px;
    background: transparent;
    border: 0;
    color: var(--text-primary);
    font: 700 14px 'Outfit', sans-serif;
    text-align: center;
    text-transform: capitalize;
    cursor: default;
}

.closing-date-control button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 12px;
    color: var(--gold);
    cursor: pointer;
    transition: var(--transition);
}

.closing-date-control button:hover {
    background: var(--gradient-gold);
    color: #12100E;
}

.closing-date-control svg {
    width: 18px;
    height: 18px;
}

.closing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.closing-grid--small {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.closing-ledger {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.closing-grid article,
.closing-ledger article,
.closing-columns section {
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
        rgba(28, 23, 18, 0.82);
    border: 1px solid rgba(201, 162, 39, 0.16);
    border-radius: 18px;
}

.closing-grid article.has-warning {
    border-color: rgba(248, 113, 113, 0.48);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.08);
}

.closing-grid span,
.closing-grid small,
.closing-ledger span,
.closing-ledger small {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
}

.closing-grid strong,
.closing-ledger strong {
    display: block;
    margin: 5px 0;
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    line-height: 1;
}

.closing-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.closing-columns--review {
    margin-bottom: 0;
}

.closing-columns h3 {
    margin-bottom: 12px;
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
}

.closing-row,
.closing-warning {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.closing-row small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
}

.closing-row strong {
    color: var(--gold);
}

.closing-warning {
    display: block;
    color: var(--warning);
    font-size: 13px;
}

.closing-history {
    margin-top: 18px;
}

.closing-history h3 {
    margin-bottom: 12px;
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
}

.closing-history-list {
    display: grid;
    gap: 10px;
}

.closing-history-list article,
.closing-history-empty {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 150px 100px auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
        rgba(28, 23, 18, 0.82);
    border: 1px solid rgba(201, 162, 39, 0.16);
    border-radius: 16px;
}

.closing-history-list article span,
.closing-history-empty {
    color: var(--text-secondary);
    font-size: 12px;
}

.closing-history-list article strong {
    color: var(--text-primary);
}

.proof-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-file-link {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.admin-file-link--ghost {
    color: var(--text-secondary);
}

.modal__content--edit form {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 162, 39, 0.55) transparent;
}

.modal__content--edit .modal__actions {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 14px -4px 0;
    padding: 14px 4px 0;
    background: linear-gradient(180deg, rgba(28, 23, 18, 0), var(--bg-card) 34%);
    z-index: 2;
}

.modal__content--edit .modal__actions .btn {
    min-width: 150px;
}

.modal.active .modal__content {
    transform: scale(1);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal__header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--gold);
}

.modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal__close:hover {
    background: var(--error-bg);
    border-color: var(--error);
    color: var(--error);
}

.modal__close svg {
    width: 18px;
    height: 18px;
}

.modal__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warning-bg);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.modal__icon svg {
    width: 36px;
    height: 36px;
    color: var(--warning);
}

.modal__content--warning {
    text-align: center;
}

.modal__content--warning h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.modal__content--warning p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal__content--warning .modal__actions {
    justify-content: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
}

.form-input option {
    background: var(--bg-card);
}

@media (max-width: 1024px) {
    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .admin-session {
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-session__meta span {
        max-width: 100%;
        white-space: normal;
    }
    
    .admin-main {
        padding: 20px;
    }
    
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-filters {
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .admin-search {
        min-width: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .modal__actions {
        flex-direction: column;
    }
    
    .modal__actions .btn {
        width: 100%;
    }
}

.footer {
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
    justify-content: center;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 16px;
    text-decoration: none;
}

.footer__logo i {
    width: 32px;
    height: 32px;
}

.footer__brand p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.footer__links h4,
.footer__contact h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--gold);
}

.footer__contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 14px;
}

.footer__contact i {
    width: 16px;
    height: 16px;
    color: var(--copper);
}

.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--gradient-gold);
    border-color: var(--gold);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.social-link svg,
.social-link i {
    width: 18px;
    height: 18px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: var(--text-muted);
}

.heart-icon {
    color: var(--copper);
    width: 14px;
    height: 14px;
    display: inline-block;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.admin-section + .admin-section {
    margin-top: 44px;
}

.admin-product-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
    padding: 18px;
    margin-bottom: 18px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
}

.admin-structured-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}

.admin-form-header,
.admin-form-actions {
    grid-column: 1 / -1;
}

.admin-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0 6px;
}

.admin-form-header div,
.admin-field {
    display: grid;
    gap: 7px;
}

.admin-form-header strong {
    color: var(--text-primary);
    font-size: 15px;
}

.admin-form-header span,
.admin-field span {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.admin-field {
    min-width: 0;
}

.admin-field--wide {
    grid-column: span 2;
}

.admin-field--full {
    grid-column: 1 / -1;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    width: 100%;
}

.admin-field .select-enhanced {
    min-width: 0;
}

.admin-form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 12px;
    padding-top: 10px;
}

.admin-form-actions .btn {
    min-height: 46px;
    border-radius: 14px;
    justify-content: center;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.admin-form-actions .btn--secondary {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.16);
}

.admin-days-field {
    align-content: start;
}

.admin-day-checks,
.admin-date-chips,
.admin-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-day-checks label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    color: var(--text-secondary);
    cursor: pointer;
}

.admin-day-checks label:has(input:checked) {
    border-color: rgba(201, 162, 39, 0.48);
    background: rgba(201, 162, 39, 0.12);
    color: var(--gold);
}

.admin-date-chip,
.admin-branch-dates span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.22);
    background: rgba(201, 162, 39, 0.09);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
}

.admin-date-chip button {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
    color: currentColor;
    cursor: pointer;
}

.admin-date-chip svg {
    width: 12px;
    height: 12px;
}

.admin-branch-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 520px;
}

.admin-branch-dates em {
    color: var(--text-muted);
    font-size: 12px;
    font-style: normal;
}

.admin-role-list {
    grid-column: 1 / -1;
}

.admin-role-card {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

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

.admin-role-card span,
.admin-role-card small {
    color: var(--text-muted);
    font-size: 12px;
}

.admin-role-card.is-disabled {
    opacity: 0.72;
}

.admin-master-form .admin-branch-scope {
    grid-column: 1 / -1;
}

.admin-product-form.is-editing {
    border-color: rgba(212, 163, 59, 0.75);
    box-shadow: 0 0 0 3px rgba(212, 163, 59, 0.16), 0 18px 48px rgba(0, 0, 0, 0.22);
}

.admin-product-form input,
.admin-product-form select,
.admin-product-form textarea {
    min-width: 0;
    padding: 12px 14px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
}

.admin-product-form textarea {
    grid-column: 1 / -1;
    min-height: 82px;
    resize: vertical;
}

.admin-branch-scope {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

.admin-branch-scope strong {
    color: var(--text-primary);
    font-size: 14px;
}

.admin-branch-scope span {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.admin-branch-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-branch-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.18);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.admin-branch-chip:hover,
.admin-branch-chip.is-selected {
    border-color: rgba(201, 162, 39, 0.46);
    background: rgba(201, 162, 39, 0.12);
    color: var(--text-primary);
}

.admin-branch-chip input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.master-service-builder {
    grid-column: 1 / -1;
    padding: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(212, 163, 59, 0.18);
    border-radius: var(--radius);
}

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

.builder-head div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.builder-head strong {
    color: var(--text-primary);
}

.builder-head span,
.admin-muted {
    color: var(--text-muted);
    font-size: 12px;
}

.master-service-list {
    display: grid;
    gap: 10px;
}

.master-service-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 130px 130px 42px;
    gap: 10px;
    align-items: center;
}

.admin-import-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 18px;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.22);
    border-radius: var(--radius);
}

.admin-import-box div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-import-box strong {
    color: var(--gold);
}

.admin-import-box span {
    color: var(--text-muted);
    font-size: 13px;
}

.admin-import-box input {
    max-width: 280px;
    color: var(--text-secondary);
}

.admin-import-result {
    margin: -6px 0 18px;
}

.admin-import-feedback {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(201, 162, 39, 0.22);
    background: rgba(201, 162, 39, 0.08);
}

.admin-import-feedback.is-success {
    border-color: rgba(62, 201, 138, 0.28);
    background: rgba(62, 201, 138, 0.08);
}

.admin-import-feedback strong {
    color: var(--text-primary);
}

.admin-import-feedback span,
.admin-import-feedback small {
    color: var(--text-muted);
    font-size: 13px;
}

.admin-import-feedback ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 13px;
}

.admin-product-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 10px;
    vertical-align: middle;
}

.admin-file-link {
    color: var(--gold);
    font-weight: 600;
}

.admin-module-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px;
    gap: 12px;
    margin: 0 0 18px;
}

.admin-search--compact {
    min-width: 0;
}

.admin-module-controls select,
.admin-status-select {
    padding: 11px 14px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
}

.native-select-hidden {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
}

.select-enhanced {
    position: relative;
    min-width: 170px;
    z-index: 30;
}

.select-enhanced.is-open {
    z-index: 5000;
}

.select-enhanced__button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(248, 240, 223, 0.14);
    background: rgba(18, 16, 14, 0.82);
    color: var(--text-primary);
    font: 700 14px/1 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-enhanced.is-open .select-enhanced__button,
.select-enhanced__button:hover {
    border-color: rgba(201, 162, 39, 0.65);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.10);
}

.select-enhanced__button svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
    transition: transform 0.2s ease;
}

.select-enhanced.is-open .select-enhanced__button svg {
    transform: rotate(180deg);
}

.select-enhanced__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    display: grid;
    gap: 4px;
    padding: 8px;
    max-height: min(320px, 48vh);
    overflow: auto;
    border-radius: 16px;
    border: 1px solid rgba(201, 162, 39, 0.28);
    background: rgba(18, 16, 14, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.66);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.18s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 162, 39, 0.72) rgba(18, 16, 14, 0.72);
}

.select-enhanced__menu::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.select-enhanced__menu::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

.has-open-select,
.admin-table-container.has-open-select,
.admin-product-form.has-open-select,
.admin-module-controls.has-open-select,
.admin-section.has-open-select {
    overflow: visible !important;
    z-index: 5000;
}

.admin-table tr.has-open-select,
.admin-table td:has(.select-enhanced.is-open) {
    position: relative;
    z-index: 5000;
}

.select-enhanced.is-open .select-enhanced__menu,
.select-enhanced__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-enhanced__option {
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    text-align: left;
    font: 700 14px/1.2 'Outfit', sans-serif;
    cursor: pointer;
}

.select-enhanced__option:hover,
.select-enhanced__option.is-selected {
    background: rgba(201, 162, 39, 0.15);
    color: var(--text-primary);
}

input[type="file"] {
    min-height: 48px;
    padding: 8px 12px;
    background: rgba(18, 16, 14, 0.72);
    border: 1px solid rgba(248, 240, 223, 0.14);
    border-radius: 12px;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
}

input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--gradient-gold);
    color: #12100E;
    font-weight: 800;
    cursor: pointer;
}

.mini-step {
    width: 26px;
    height: 26px;
    margin: 0 4px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--gold);
    cursor: pointer;
}

.admin-pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 4px;
}

.admin-pager button {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
}

.admin-pager button.active,
.admin-pager button:hover:not(:disabled) {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    border-color: transparent;
}

.admin-pager button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .closing-flow,
    .closing-grid,
    .closing-grid--small,
    .closing-ledger,
    .closing-columns,
    .closing-history-list article,
    .closing-history-empty {
        grid-template-columns: 1fr;
    }

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

    .closing-toolbar label {
        min-width: min(100%, 320px);
    }

    .master-service-row {
        grid-template-columns: 1fr 110px;
    }

    .admin-import-box {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-module-controls {
        grid-template-columns: 1fr;
    }
}

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

    .builder-head,
    .master-service-row {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .modal__content {
        width: calc(100vw - 24px);
        padding: 22px;
    }

    .admin-service-options {
        grid-template-columns: 1fr;
    }

    .admin-exception-check {
        grid-template-columns: 1fr;
    }

    .admin-exception-check select,
    .admin-exception-check .select-enhanced,
    .admin-exception-check textarea {
        grid-column: 1 / -1;
    }
}

/* Admin premium dark restored */
:root {
    --gold: #C9A227;
    --gold-light: #E3C46A;
    --gold-dark: #8B7020;
    --copper: #B87333;
    --bg-dark: #12100E;
    --bg-card: #1C1712;
    --bg-card-hover: #282017;
    --bg-elevated: #332A20;
    --bg-warm: #211A13;
    --text-primary: #F8F0DF;
    --text-secondary: #D8C8AD;
    --text-muted: #A59680;
    --gradient-gold: linear-gradient(135deg, #C9A227, #B87333);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 44px 120px rgba(0, 0, 0, 0.46);
}

body {
    background:
        radial-gradient(circle at 8% 8%, rgba(201, 162, 39, 0.13), transparent 28rem),
        radial-gradient(circle at 90% 18%, rgba(122, 143, 104, 0.12), transparent 30rem),
        radial-gradient(circle at 50% 100%, rgba(184, 115, 51, 0.12), transparent 34rem),
        linear-gradient(180deg, #100E0C 0%, #18130F 48%, #0D0C0A 100%);
    color: var(--text-primary);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(248, 240, 223, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(248, 240, 223, 0.020) 1px, transparent 1px);
    background-size: 84px 84px;
    opacity: 0.32;
}

.login-screen {
    background:
        radial-gradient(circle at 50% 8%, rgba(201, 162, 39, 0.16), transparent 30rem),
        linear-gradient(135deg, #100E0C, #18130F);
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(18, 16, 14, 0.84);
    border-bottom: 1px solid rgba(201, 162, 39, 0.14);
    backdrop-filter: blur(18px);
}

.admin-header__brand,
.login-logo h1,
.admin-title h1,
.footer__logo,
.footer__links h4,
.footer__contact h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.admin-header__brand i,
.login-logo i,
.stat-card__number,
.admin-table td strong {
    color: var(--gold);
}

.admin-main {
    width: min(100%, 1520px);
    max-width: 1520px;
    padding: 34px 32px 70px;
}

.admin-tabs {
    position: relative;
    top: auto;
    z-index: 15;
    display: grid;
    gap: 16px;
    padding: 18px;
    margin: 0 0 28px;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
        rgba(28, 23, 18, 0.82);
    border: 1px solid rgba(201, 162, 39, 0.16);
    border-radius: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.admin-module-nav__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 0 2px 14px;
    border-bottom: 1px solid rgba(248, 240, 223, 0.1);
}

.admin-module-nav__header span {
    display: block;
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-module-nav__header strong {
    display: block;
    margin-top: 4px;
    color: var(--text-primary);
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1;
    font-family: 'Cormorant Garamond', serif;
}

.admin-module-nav__header p {
    max-width: 520px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

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

.admin-module-group {
    min-width: 0;
    padding: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.006)),
        rgba(18, 16, 14, 0.52);
    border: 1px solid rgba(248, 240, 223, 0.1);
    border-radius: 16px;
}

.admin-module-group h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.admin-module-group h3 i {
    width: 16px;
    height: 16px;
}

.admin-module-group__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
}

.admin-tabs button {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 66px;
    min-width: 0;
    padding: 10px 12px;
    background: rgba(18, 16, 14, 0.72);
    border: 1px solid rgba(248, 240, 223, 0.13);
    border-radius: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
}

.admin-tabs button i {
    grid-row: 1 / 3;
    width: 22px;
    height: 22px;
}

.admin-tabs button strong {
    color: inherit;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
}

.admin-tabs button small {
    grid-column: 2;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
}

.admin-tabs button span {
    grid-column: 3;
    grid-row: 1 / 3;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    background: rgba(201, 162, 39, 0.13);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.admin-tabs button.active,
.admin-tabs button:hover {
    background: var(--gradient-gold);
    color: #12100E;
    border-color: transparent;
}

.admin-tabs button.active span,
.admin-tabs button:hover span {
    background: rgba(18, 16, 14, 0.16);
}

.admin-tabs button.active small,
.admin-tabs button:hover small {
    color: rgba(18, 16, 14, 0.72);
}

.admin-section {
    display: none;
}

.hidden {
    display: none !important;
}

#branch-form {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

#branch-form textarea {
    min-height: 48px;
    resize: vertical;
}

.admin-field small {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.admin-field input[type="date"],
.admin-field input[type="time"],
.admin-field input[type="number"] {
    color-scheme: dark;
}

.admin-calendar-field {
    position: relative;
    padding: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(201, 162, 39, 0.13);
    border-radius: 16px;
}

.admin-calendar-field input[type="date"] {
    margin-top: 8px;
    padding-left: 44px;
    background:
        linear-gradient(90deg, rgba(201, 162, 39, 0.16), transparent 56px),
        rgba(8, 8, 8, 0.72);
}

.admin-calendar-field::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 51px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--gold);
    border-radius: 5px;
    opacity: 0.8;
    pointer-events: none;
}

.admin-date-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.admin-date-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.22);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 800;
}

.admin-date-chip button {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.24);
    color: var(--text-primary);
    cursor: pointer;
}

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

.admin-section.active-module {
    display: block;
    animation: adminFade 0.25s ease;
}

@keyframes adminFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-title {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 34px;
    margin-bottom: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 0%, rgba(201, 162, 39, 0.15), transparent 24rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
        rgba(28, 23, 18, 0.82);
    border: 1px solid rgba(201, 162, 39, 0.16);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.admin-title h1 {
    font-size: clamp(2.4rem, 4.2vw, 4.8rem);
    line-height: 0.96;
}

.admin-title p,
.login-logo p,
.login-hint,
.stat-card__label,
.admin-table th,
.admin-empty p,
.footer__brand p,
.footer__links a,
.footer__contact p {
    color: var(--text-secondary);
}

.admin-stats {
    gap: 18px;
    margin-bottom: 26px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card,
.admin-table-container,
.admin-product-form,
.admin-import-box,
.admin-module-controls,
.login-card,
.modal__content {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
        rgba(28, 23, 18, 0.82);
    border: 1px solid rgba(201, 162, 39, 0.16);
    border-radius: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.admin-table-container {
    overflow-x: auto;
    overflow-y: visible;
}

.admin-table th:first-child {
    border-top-left-radius: 18px;
}

.admin-table th:last-child {
    border-top-right-radius: 18px;
}

.admin-availability-note {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    margin: 2px 0 12px;
    border-radius: 14px;
    border: 1px solid rgba(201, 162, 39, 0.18);
    background: rgba(201, 162, 39, 0.08);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.admin-availability-note.is-ok {
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(52, 211, 153, 0.09);
    color: #9ff5ce;
}

.admin-availability-note.is-error {
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(248, 113, 113, 0.1);
    color: #fecaca;
}

.admin-toast-stack {
    position: fixed;
    top: 92px;
    right: 24px;
    z-index: 3000;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.admin-toast {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    background: rgba(28, 23, 18, 0.96);
    border: 1px solid rgba(212, 163, 59, 0.34);
    border-radius: 14px;
    color: var(--text-primary);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    animation: adminToastIn 0.24s ease;
}

.admin-toast svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
}

.admin-toast--success {
    border-color: rgba(40, 199, 111, 0.38);
}

.admin-toast--error {
    border-color: rgba(255, 107, 107, 0.42);
}

.admin-toast--error svg {
    color: var(--error);
}

.admin-toast.is-leaving {
    animation: adminToastOut 0.22s ease forwards;
}

@keyframes adminToastIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes adminToastOut {
    to { opacity: 0; transform: translateY(-8px); }
}

.stat-card {
    min-height: 112px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card__icon,
.admin-badge,
.btn--primary,
.admin-pager button.active,
.admin-pager button:hover:not(:disabled) {
    background: var(--gradient-gold);
    color: #12100E;
    border-color: transparent;
}

.admin-toolbar,
.admin-module-controls {
    gap: 14px;
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 20px;
}

.btn,
.filter-btn,
.action-btn,
.mini-step,
.admin-pager button {
    border-radius: 14px;
    font-weight: 700;
}

.btn--secondary,
.filter-btn,
.admin-search,
.admin-search input,
.admin-module-controls select,
.admin-status-select,
.form-input,
.login-input-group input {
    background: rgba(18, 16, 14, 0.72);
    color: var(--text-primary);
    border-color: rgba(248, 240, 223, 0.13);
}

.filter-btn:hover,
.filter-btn.active,
.btn--secondary:hover {
    background: rgba(201, 162, 39, 0.12);
    border-color: rgba(201, 162, 39, 0.30);
}

.admin-table-container {
    overflow: visible;
}

.admin-table thead {
    background: rgba(248, 240, 223, 0.08);
}

.admin-table th {
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 1.5px;
}

.admin-table tbody tr {
    background: rgba(31, 27, 22, 0.70);
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: rgba(201, 162, 39, 0.12);
}

.footer {
    background: rgba(18, 16, 14, 0.92);
    border-top: 1px solid rgba(201, 162, 39, 0.14);
}

@media (max-width: 760px) {
    .admin-main {
        padding: 24px 16px 56px;
    }

    .admin-title {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

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

    .admin-tabs {
        padding: 14px;
    }
}

@media (max-width: 720px) {
    .admin-module-nav__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-module-nav__header p {
        text-align: left;
    }

    .admin-module-nav__grid {
        grid-template-columns: 1fr;
    }
}
