:root {
    --ui-radius-sm: 12px;
    --ui-radius-md: 18px;
    --ui-radius-lg: 26px;
    --ui-shadow-soft: 0 16px 36px rgba(15, 23, 42, 0.08);
    --ui-shadow-hover: 0 22px 52px rgba(15, 23, 42, 0.12);
    --ui-border-soft: rgba(148, 163, 184, 0.22);
    --ui-surface: rgba(255, 255, 255, 0.92);
    --ui-surface-strong: #ffffff;
    --ui-muted: #64748b;
    --ui-text: #0f172a;
    --ui-accent: #2563eb;
    --ui-accent-soft: rgba(37, 99, 235, 0.12);
}

body.layout-polished {
    color: var(--ui-text);
}

body.layout-polished.storefront-layout {
    --ui-accent: #0f766e;
    --ui-accent-soft: rgba(15, 118, 110, 0.12);
}

body.layout-polished.admin-layout {
    --ui-accent: #1d4ed8;
    --ui-accent-soft: rgba(29, 78, 216, 0.12);
}

body.layout-polished.merchant-layout {
    --ui-accent: #2563eb;
    --ui-accent-soft: rgba(37, 99, 235, 0.12);
}

.layout-polished .card,
.layout-polished .content-card,
.layout-polished .stats-card,
.layout-polished .table-responsive,
.layout-polished .modal-content,
.layout-polished .offcanvas,
.layout-polished .dropdown-menu {
    border: 1px solid var(--ui-border-soft);
    border-radius: var(--ui-radius-md);
    box-shadow: var(--ui-shadow-soft);
    background: var(--ui-surface);
    backdrop-filter: blur(10px);
}

.layout-polished .card:hover,
.layout-polished .stats-card:hover {
    box-shadow: var(--ui-shadow-hover);
}

.layout-polished .table-responsive {
    overflow: hidden;
}

.layout-polished .table {
    margin-bottom: 0;
    color: var(--ui-text);
}

.layout-polished .table thead th {
    border-bottom-width: 1px;
    border-color: rgba(148, 163, 184, 0.26);
    background: rgba(248, 250, 252, 0.92);
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.layout-polished .table tbody td {
    vertical-align: middle;
    border-color: rgba(226, 232, 240, 0.9);
}

.layout-polished .form-control,
.layout-polished .form-select,
.layout-polished textarea,
.layout-polished select {
    min-height: 46px;
    border-radius: var(--ui-radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.layout-polished textarea.form-control,
.layout-polished textarea {
    min-height: 120px;
}

.layout-polished .form-control:focus,
.layout-polished .form-select:focus,
.layout-polished textarea:focus,
.layout-polished select:focus {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.12);
}

.layout-polished .btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.72rem 1.2rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.layout-polished .btn:hover {
    transform: translateY(-1px);
}

.layout-polished .btn-primary,
.layout-polished .btn-success,
.layout-polished .btn-danger,
.layout-polished .btn-warning,
.layout-polished .btn-dark {
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.layout-polished .btn-outline-primary,
.layout-polished .btn-outline-secondary,
.layout-polished .btn-outline-dark,
.layout-polished .btn-light {
    border-width: 1px;
}

.layout-polished .alert {
    border: 1px solid transparent;
    border-radius: var(--ui-radius-sm);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.layout-polished .alert-info,
.layout-polished .alert-primary {
    background: rgba(219, 234, 254, 0.78);
    border-color: rgba(96, 165, 250, 0.3);
}

.layout-polished .alert-success {
    background: rgba(220, 252, 231, 0.82);
    border-color: rgba(74, 222, 128, 0.28);
}

.layout-polished .alert-warning {
    background: rgba(254, 243, 199, 0.82);
    border-color: rgba(251, 191, 36, 0.3);
}

.layout-polished .alert-danger {
    background: rgba(254, 226, 226, 0.82);
    border-color: rgba(248, 113, 113, 0.3);
}

.layout-polished .badge {
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    font-weight: 600;
}

.layout-polished .page-header,
.layout-polished .section-header {
    margin-bottom: 1.25rem;
}

.layout-polished .page-header h1,
.layout-polished .page-header h2,
.layout-polished .section-header h2,
.layout-polished .section-header h3 {
    color: var(--ui-text);
    letter-spacing: -0.02em;
}

.layout-polished .empty-state {
    padding: 2.4rem 1.6rem;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: var(--ui-radius-md);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96));
    color: var(--ui-muted);
    text-align: center;
}

.layout-polished .pagination .page-link {
    border-radius: 999px !important;
    border-color: rgba(148, 163, 184, 0.3);
    color: #334155;
    margin: 0 0.15rem;
}

.layout-polished .pagination .active .page-link {
    background: var(--ui-accent);
    border-color: var(--ui-accent);
    color: #fff;
}

.layout-polished .list-group-item {
    border-color: rgba(226, 232, 240, 0.9);
}

.layout-polished .navbar,
.layout-polished .topbar,
.layout-polished .sidebar,
.layout-polished .admin-header {
    backdrop-filter: blur(12px);
}

.layout-polished .main-header,
.layout-polished .sidebar,
.layout-polished .user-menu-btn,
.layout-polished .user-avatar-circle,
.layout-polished .header-shortcuts {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.layout-polished .user-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.2);
    text-decoration: none;
}

.layout-polished .user-avatar-circle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ui-accent), #0f172a);
    color: #fff;
    font-weight: 700;
}

.layout-polished .page-content {
    padding-bottom: 1.25rem;
}

.layout-polished .sidebar-overlay {
    backdrop-filter: blur(2px);
}

.layout-polished .flash-message,
.layout-polished .toast,
.layout-polished .toast-container .toast {
    border-radius: var(--ui-radius-sm);
}

@media (max-width: 991.98px) {
    .layout-polished .card,
    .layout-polished .table-responsive,
    .layout-polished .modal-content,
    .layout-polished .offcanvas {
        border-radius: 16px;
    }

    .layout-polished .btn {
        width: auto;
        min-height: 44px;
    }

    .layout-polished .table thead th,
    .layout-polished .table tbody td {
        white-space: nowrap;
    }
}
