/* ============================================================
   Growth Stage — Admin Panel Stylesheet
   Light Theme
   ============================================================ */

:root {
    --admin-bg:         #f0f4f8;
    --admin-sidebar-bg: #ffffff;
    --admin-card-bg:    #ffffff;
    --admin-border:     #e2e8f0;
    --admin-text:       #1e293b;
    --admin-text-muted: #64748b;
    --admin-accent:     #0ea5e9;
    --admin-accent-hover: #0284c7;
    --admin-success:    #22c55e;
    --admin-warning:    #f59e0b;
    --admin-danger:     #ef4444;
    --admin-shadow:     0 1px 4px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
    --admin-shadow-md:  0 4px 24px rgba(0,0,0,0.12);
    --admin-radius:     12px;
    --admin-sidebar-w:  260px;
}

/* ---- Admin Body ---- */
.admin-body {
    font-family: 'Inter', sans-serif;
    background: var(--admin-bg);
    color: var(--admin-text);
    min-height: 100vh;
    font-size: clamp(13px, 2vw, 15px);
}

/* ---- Layout ---- */
.admin-layout {
    display: grid;
    grid-template-columns: var(--admin-sidebar-w) 1fr;
    min-height: 100vh;
}

/* ---- Sidebar ---- */
.admin-sidebar {
    background: var(--admin-sidebar-bg);
    border-right: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--admin-text);
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: black;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-brand-text {
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.2;
    color: var(--admin-text);
}

.sidebar-brand-sub {
    font-size: 0.7rem;
    color: var(--admin-text-muted);
    font-weight: 400;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
}

.sidebar-section {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--admin-text-muted);
    padding: 0.75rem 0.75rem 0.4rem;
    margin-top: 0.5rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    color: var(--admin-text-muted);
    text-decoration: none;
    font-size: 0.87rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 0.2rem;
}

.sidebar-item:hover {
    background: rgba(14, 165, 233, 0.07);
    color: var(--admin-accent);
}

.sidebar-item.active {
    background: rgba(14, 165, 233, 0.12);
    color: var(--admin-accent);
    font-weight: 600;
}

.sidebar-item i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.sidebar-item.logout {
    color: #ef4444;
}

.sidebar-item.logout:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--admin-border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--admin-accent), #0284c7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--admin-text);
}

.sidebar-user-role {
    font-size: 0.7rem;
    color: var(--admin-text-muted);
}

/* ---- Main Content ---- */
.admin-main {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- Topbar ---- */
.admin-topbar {
    background: var(--admin-sidebar-bg);
    border-bottom: 1px solid var(--admin-border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    background: none;
    border: 1px solid var(--admin-border);
    color: var(--admin-text-muted);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: var(--admin-bg);
    color: var(--admin-text);
}

.admin-topbar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--admin-text);
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-btn {
    background: none;
    border: 1px solid var(--admin-border);
    color: var(--admin-text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.topbar-btn:hover {
    background: var(--admin-bg);
    color: var(--admin-text);
}

.topbar-btn.primary {
    background: var(--admin-accent);
    border-color: var(--admin-accent);
    color: white;
}

.topbar-btn.primary:hover {
    background: var(--admin-accent-hover);
    border-color: var(--admin-accent-hover);
    color: white;
}

/* ---- Content Area ---- */
.admin-content {
    padding: 2rem 1.5rem;
    flex: 1;
}

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

.admin-page-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--admin-text);
    letter-spacing: -0.5px;
}

.admin-page-subtitle {
    color: var(--admin-text-muted);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

/* ---- Stats Cards ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    padding: 1.25rem;
    box-shadow: var(--admin-shadow);
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: var(--admin-shadow-md);
    transform: translateY(-2px);
}

.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.stat-icon-blue    { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.stat-icon-green   { background: linear-gradient(135deg, #22c55e, #16a34a); }
.stat-icon-yellow  { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-icon-purple  { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.stat-icon-red     { background: linear-gradient(135deg, #ef4444, #dc2626); }
.stat-icon-orange  { background: linear-gradient(135deg, #f97316, #ea580c); }

.stat-change {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
}

.stat-change.up   { background: rgba(34,197,94,0.1); color: #16a34a; }
.stat-change.down { background: rgba(239,68,68,0.1); color: #dc2626; }

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--admin-text);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--admin-text-muted);
    font-weight: 500;
}

/* ---- Admin Cards ---- */
.admin-card {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.admin-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--admin-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-card-title i { color: var(--admin-accent); }

.admin-card-body {
    padding: 1.25rem;
}

/* ---- Tables ---- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--admin-text-muted);
    background: var(--admin-bg);
    border-bottom: 1px solid var(--admin-border);
    white-space: nowrap;
}

.admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--admin-border);
    color: var(--admin-text);
    vertical-align: middle;
}

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

.admin-table tr:hover td {
    background: rgba(14, 165, 233, 0.03);
}

.admin-table tr.clickable-row {
    cursor: pointer;
}

.product-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--admin-border);
}

.product-thumb-placeholder {
    width: 48px;
    height: 48px;
    background: var(--admin-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-text-muted);
    font-size: 1.2rem;
    border: 1px solid var(--admin-border);
}

/* ---- Status Badges ---- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-new       { background: rgba(14,165,233,0.12); color: #0284c7; }
.status-contacted { background: rgba(245,158,11,0.12); color: #b45309; }
.status-confirmed { background: rgba(34,197,94,0.12); color: #16a34a; }
.status-delivered { background: rgba(100,116,139,0.12); color: #475569; }

/* ---- Admin Forms ---- */
.admin-form-group {
    margin-bottom: 1.1rem;
}

.admin-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 0.4rem;
}

.admin-form-control {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid var(--admin-border);
    color: var(--admin-text);
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.87rem;
    transition: all 0.2s ease;
    min-height: 42px;
}

.admin-form-control:focus {
    outline: none;
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
    background: white;
}

textarea.admin-form-control {
    resize: vertical;
    min-height: 90px;
}

.admin-form-control.is-invalid {
    border-color: var(--admin-danger);
}

.admin-invalid-feedback {
    color: var(--admin-danger);
    font-size: 0.75rem;
    margin-top: 0.3rem;
}

/* Toggle Switch */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
    vertical-align: middle;
    flex-shrink: 0;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 13px;
    transition: all 0.25s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    left: 3px;
    top: 3px;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.1);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--admin-accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.toggle-switch input:focus-visible + .toggle-slider {
    outline: 2px solid var(--admin-accent);
    outline-offset: 2px;
}

.toggle-switch:hover .toggle-slider {
    background: #b0bec5;
}

.toggle-switch:hover input:checked + .toggle-slider {
    background: var(--admin-accent-hover);
}

.toggle-label {
    font-size: 0.85rem;
    color: var(--admin-text-muted);
    font-weight: 500;
}

/* ---- Admin Buttons ---- */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 38px;
    white-space: nowrap;
}

.admin-btn-primary {
    background: var(--admin-accent);
    color: white;
}

.admin-btn-primary:hover {
    background: var(--admin-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    color: white;
}

.admin-btn-secondary {
    background: white;
    border-color: var(--admin-border);
    color: var(--admin-text);
}

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

.admin-btn-danger {
    background: white;
    border-color: #fecaca;
    color: var(--admin-danger);
}

.admin-btn-danger:hover {
    background: #fef2f2;
    border-color: var(--admin-danger);
}

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

.admin-btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    min-height: 30px;
}

.admin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-group {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

/* ---- Modal ---- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: white;
    border-radius: var(--admin-radius);
    width: 100%;
    max-width: 560px;
    box-shadow: var(--admin-shadow-md);
    animation: modalSlideIn 0.25s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from { transform: scale(0.95) translateY(-10px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--admin-text);
}

.modal-close {
    background: none;
    border: 1px solid var(--admin-border);
    color: var(--admin-text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #fef2f2;
    border-color: var(--admin-danger);
    color: var(--admin-danger);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--admin-border);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ---- Image Preview ---- */
.image-preview {
    width: 100%;
    height: 150px;
    border: 2px dashed var(--admin-border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
    background: #f8fafc;
}

.image-preview:hover {
    border-color: var(--admin-accent);
    background: rgba(14, 165, 233, 0.03);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.image-preview-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--admin-text-muted);
    font-size: 0.8rem;
    z-index: 1;
}

.image-preview-text i { font-size: 1.5rem; }

/* ---- Filter Row ---- */
.filter-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.filter-row .admin-form-control {
    min-width: 140px;
    flex: 1;
}

/* ---- Order expanded row ---- */
.order-details-row td {
    padding: 0 !important;
}

.order-details-content {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid var(--admin-border);
}

.order-details-content h5 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--admin-text-muted);
    margin-bottom: 0.75rem;
}

/* ---- Status Select ---- */
.status-select {
    background: white;
    border: 1.5px solid var(--admin-border);
    color: var(--admin-text);
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 34px;
}

.status-select:focus {
    outline: none;
    border-color: var(--admin-accent);
}

/* ---- Alert ---- */
.admin-alert {
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-weight: 500;
}

.admin-alert i { flex-shrink: 0; margin-top: 1px; }

.admin-alert-warning {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    color: #92400e;
}

.admin-alert-danger {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.15);
    color: #991b1b;
}

.admin-alert-success {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.15);
    color: #14532d;
}

/* ---- Login Page ---- */
.admin-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0f1e 0%, #0d1526 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 64px;
    height: 64px;
    background: black;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.login-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.login-subtitle {
    font-size: 0.85rem;
    color: #64748b;
}

.login-error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}

/* ---- Sidebar overlay for mobile ---- */
.sidebar-overlay {
    display: none;
}

/* ---- Admin Toast ---- */
.admin-toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.admin-toast {
    background: white;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: var(--admin-shadow-md);
    animation: slideInRight 0.3s ease;
    pointer-events: all;
    min-width: 260px;
    max-width: 360px;
    border-left: 4px solid var(--admin-accent);
}

.admin-toast.success { border-left-color: var(--admin-success); }
.admin-toast.error   { border-left-color: var(--admin-danger); }
.admin-toast.warning { border-left-color: var(--admin-warning); }

.admin-toast i { flex-shrink: 0; }
.admin-toast.success i { color: var(--admin-success); }
.admin-toast.error   i { color: var(--admin-danger); }
.admin-toast.warning i { color: var(--admin-warning); }
.admin-toast span { color: var(--admin-text); font-size: 0.85rem; }

.admin-toast.hide {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(120%); opacity: 0; }
}

/* ---- Sidebar toggle show on tablet ---- */
@media (max-width: 992px) {
    .sidebar-toggle {
        display: flex;
    }
}

/* ---- Low stock alert row ---- */
.low-stock-row {
    background: rgba(245,158,11,0.04) !important;
}

.low-stock-row td { border-left: 2px solid var(--admin-warning); }

/* ---- Settings layout ---- */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

/* ============================================================
   ADMIN TABS
   ============================================================ */
.admin-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--admin-border);
    padding-bottom: 0;
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--admin-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px 8px 0 0;
}

.admin-tab:hover {
    color: var(--admin-accent);
    background: rgba(14, 165, 233, 0.04);
}

.admin-tab.active {
    color: var(--admin-accent);
    border-bottom-color: var(--admin-accent);
    background: rgba(14, 165, 233, 0.06);
}

.admin-tab i { font-size: 0.9rem; }
