/* Modern Admin UI for Toko Bu Ida */

:root {
    --bg: #eef2f7;
    --surface: #ffffff;
    --surface-alt: #f6f7fb;
    --text: #253858;
    --text-muted: #6b7a99;
    --primary: #3a7bfd;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #dce3f0;
    --shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
    color: var(--text);
}

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

/* Layout */
.admin-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: #1f2937;
    color: #fff;
    padding: 1.5rem;
    position: fixed;
    inset: 0 auto 0 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding-bottom: 1.2rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-radius: 12px;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    transition: 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(59,130,246,0.2);
    color: #fff;
}

.sidebar-group {
    margin-bottom: 0.75rem;
}

.sidebar-group-label {
    padding: 0.35rem 0.8rem 0.55rem;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sidebar-submenu {
    display: grid;
    gap: 0.35rem;
}

.sidebar-submenu a {
    margin-bottom: 0;
    padding-left: 1rem;
}

.sidebar-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.95rem 1.1rem;
    margin-top: 1rem;
    background: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.sidebar-logout:hover,
.sidebar-logout.active {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

/* Main Content */
.admin-container {
    margin-left: 260px;
    padding: 1.5rem;
    width: 100%;
}

/* Topbar */
.admin-topbar {
    background: var(--surface);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: 0.2s;
}

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

.admin-main {
    display: grid;
    gap: 1.5rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.6rem;
}

.sidebar-brand .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #3a7bfd 0%, #60a5fa 100%);
    color: #fff;
    font-family: 'Fredoka', Arial, sans-serif;
    font-size: 1.05rem;
}

.sidebar-brand .brand-name {
    font-family: 'Fredoka', Arial, sans-serif;
    font-size: 1.15rem;
    color: #fff;
}

.sidebar-brand .brand-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
}

.brand-subtitle {
    color: #94a3b8;
}

.sidebar-divider {
    height: 1px;
    margin: 0.9rem 0 1rem;
    background: rgba(148, 163, 184, 0.2);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-title {
    margin: 0;
    font-family: 'Fredoka', Arial, sans-serif;
    font-size: 1.55rem;
}

.topbar-subtitle {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.profile-btn {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8fbff;
    color: var(--text);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.profile-name {
    color: var(--text-muted);
    font-weight: 500;
}

/* Grid */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 0.9rem;
    border-bottom: 1px solid var(--border);
}

th {
    background: #f1f5f9;
    color: var(--text-muted);
}

tr:hover {
    background: #f9fbff;
}

/* Buttons */
.btn {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: #eef4ff; color: var(--primary); border: 1px solid #d7e5ff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }

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

/* Form */
input, select, textarea {
    padding: 0.7rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    width: 100%;
}

/* Checkout Page - New Compact Layout */
.checkout-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}

.checkout-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Header Compact */
.checkout-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(58,123,253,0.08), rgba(255,255,255,0.9));
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    border: 1px solid rgba(59,130,246,0.1);
    gap: 2rem;
}

.checkout-header-compact h1 {
    font-size: 1.5rem;
    margin: 0 0 0.2rem;
    color: var(--text);
}

.checkout-header-compact p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Profile Page */
.profile-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.profile-header {
    margin-bottom: 1.5rem;
}

.profile-header h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(2rem, 2.5vw, 2.4rem);
    color: var(--text);
}

.profile-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 620px;
}

.profile-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 1.5rem;
}

.profile-form-panel h2 {
    margin: 0 0 1.2rem;
    font-size: 1.35rem;
    color: var(--text);
}

.profile-form .form-group {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.2rem;
}

.profile-form .form-group label {
    color: var(--text);
    font-weight: 600;
}

.profile-form .form-note {
    display: inline-block;
    margin-left: 0.35rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.profile-form input {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fbff;
    padding: 0.95rem 1rem;
}

.form-actions {
    margin-top: 0.5rem;
}

.profile-info-panel {
    display: flex;
    align-items: flex-start;
}

.info-card {
    width: 100%;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(93, 116, 234, 0.12);
}

.info-card h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: #1f2c47;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.info-row:first-of-type {
    border-top: none;
}

.info-row span {
    color: var(--text-muted);
}

.info-row strong {
    color: var(--text);
}

.alert {
    border-radius: 18px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
}

.alert-danger {
    background: rgba(254, 226, 226, 0.7);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: #991b1b;
}

.alert-success {
    background: rgba(220, 252, 231, 0.7);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #166534;
}

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


.total-badge {
    background: white;
    border: 1px solid rgba(148,163,184,0.2);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    white-space: nowrap;
    font-size: 0.95rem;
    color: var(--text);
}

.total-badge strong {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Main Container */
.checkout-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Summary Sidebar - Compact */
.checkout-summary-compact {
    background: var(--surface);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(148,163,184,0.14);
    position: sticky;
    top: 100px;
}

.checkout-summary-compact h3 {
    font-size: 1rem;
    margin: 0 0 0.8rem;
    color: var(--text);
    font-weight: 700;
}

.summary-items-compact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem;
    background: var(--surface-alt);
    border-radius: 6px;
    font-size: 0.8rem;
}

.summary-col {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: var(--text);
    display: block;
    line-height: 1.2;
}

.item-qty {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.item-price {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.summary-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(148,163,184,0.14);
    font-size: 0.9rem;
    font-weight: 600;
}

.summary-footer strong {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Form Main */
.checkout-form-main {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid rgba(148,163,184,0.14);
}

.form-section {
    margin-bottom: 1.2rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 1rem;
    margin: 0 0 0.8rem;
    color: var(--text);
    font-weight: 700;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 123, 253, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 70px;
}

/* Payment Methods - Compact */
.payment-methods-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.payment-option {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    padding: 0.8rem;
    background: var(--surface-alt);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.payment-option:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(58, 123, 253, 0.15);
}

.payment-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
}

.payment-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-details {
    flex: 1;
}

.payment-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
    margin: 0 0 0.3rem;
}

.payment-no {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.2rem;
}

.payment-holder {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
}

/* File Upload Compact */
.file-upload-compact {
    display: block;
    position: relative;
    cursor: pointer;
}

.file-upload-compact input[type="file"] {
    display: none;
}

.upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    border: 2px dashed rgba(58,123,253,0.3);
    border-radius: 8px;
    background: rgba(58,123,253,0.05);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text);
    transition: all 0.3s;
}

.file-upload-compact:hover .upload-label {
    border-color: var(--primary);
    background: rgba(58,123,253,0.1);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148,163,184,0.14);
}

.form-actions .btn {
    flex: 1;
    min-height: 40px;
}

/* Responsive */
@media (max-width: 900px) {
    .checkout-main {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary-compact {
        position: relative;
        top: auto;
    }
    
    .payment-methods-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .checkout-header-compact {
        flex-direction: column;
        text-align: center;
    }
    
    .payment-methods-compact {
        grid-template-columns: 1fr;
    }
}

.success,
.error {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.success {
    background: #edfbea;
    border: 1px solid rgba(22, 101, 52, 0.14);
    color: #166534;
}

.error {
    background: #fff1f1;
    border: 1px solid rgba(180, 35, 24, 0.14);
    color: #b42318;
}

.success-message,
.error-message {
    max-width: 720px;
    margin: 1.5rem auto;
    padding: 1.2rem 1.3rem;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    line-height: 1.7;
}

.success-message {
    background: rgba(235, 250, 242, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.16);
    color: #0f766e;
}

.error-message {
    background: rgba(254, 242, 242, 0.95);
    border: 1px solid rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

.success-message h2,
.error-message h2 {
    margin: 0 0 0.6rem;
    font-size: 1.2rem;
}

.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.success-actions .btn {
    min-width: 150px;
}

/* Status */
.status-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-badge.pending { background: #fef3c7; color: #92400e; }
.status-badge.processing { background: #dbeafe; color: #1d4ed8; }
.status-badge.verified { background: #dcfce7; color: #166534; }
.status-badge.shipped { background: #dbeafe; color: #1d4ed8; }
.status-badge.completed { background: #ecfdf5; color: #0f766e; }
.status-badge.delivered { background: #ecfdf5; color: #0f766e; }

.order-list {
    display: grid;
    gap: 1rem;
}

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

.order-card-header h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.order-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.order-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.order-total {
    font-weight: 700;
    color: var(--text);
    min-width: 120px;
    text-align: right;
}

.order-item-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(148, 163, 184, 0.08);
    border-radius: 12px;
    font-size: 0.9rem;
}

.order-item .item-name {
    font-weight: 600;
    color: var(--text);
}

.order-item .item-details {
    color: var(--text-muted);
    white-space: nowrap;
}

.order-card-actions {
    display: flex;
    justify-content: flex-end;
}

.order-card-actions .btn {
    padding: 0.7rem 1rem;
}

.empty-state {
    margin: 0;
    color: var(--text-muted);
}

.detail-card {
    max-width: 820px;
    margin: 0 auto 2rem;
    padding: 2rem;
    border-radius: 26px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.detail-box {
    background: #f8fbff;
    border-radius: 18px;
    padding: 1rem 1.1rem;
}

.detail-label {
    margin: 0 0 0.45rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-value {
    margin: 0;
    font-weight: 700;
    color: var(--text);
}

.detail-items h2 {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    color: #1f2c47;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: #f7f9fc;
    border: 1px solid #e2e8f0;
}

.item-name {
    font-weight: 600;
    color: var(--text);
}

.item-meta {
    color: var(--text-muted);
    white-space: nowrap;
}

.order-detail-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

@media screen and (max-width: 760px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-detail-actions {
        justify-content: flex-start;
    }
}

/* Admin Dashboard */
.admin-dashboard {
    display: grid;
    gap: 1.5rem;
}

.admin-dashboard-simple {
    gap: 1rem;
}

.admin-dashboard-intro {
    border-radius: 20px;
    padding: 1.35rem 1.5rem;
}

.admin-dashboard-intro-head {
    margin-bottom: 0;
}

.admin-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.admin-dashboard-summary-card {
    border-radius: 20px;
    padding: 1.25rem;
}

.admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 1rem;
}

.admin-hero-main,
.admin-hero-card,
.admin-hero-mini,
.admin-stat-card,
.admin-table-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.admin-hero-main {
    border-radius: 24px;
    padding: 2rem;
    background:
        radial-gradient(circle at top right, rgba(58, 123, 253, 0.12), transparent 26%),
        rgba(255, 255, 255, 0.96);
}

.admin-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #edf4ff;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 600;
}

.admin-page-title {
    margin: 1rem 0 0.75rem;
    font-family: 'Fredoka', Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    color: #1f2c47;
}

.admin-page-copy {
    max-width: 680px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

.admin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.5rem;
}

.admin-hero-side {
    display: grid;
    gap: 1rem;
}

.admin-hero-card {
    border-radius: 24px;
    padding: 1.5rem;
}

.admin-hero-label,
.admin-stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
}

.admin-hero-value,
.admin-stat-value {
    font-family: 'Fredoka', Arial, sans-serif;
    font-size: 2.1rem;
    line-height: 1;
    color: #1f2c47;
}

.admin-hero-note,
.admin-stat-note {
    margin-top: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.92rem;
}

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

.admin-hero-mini {
    border-radius: 20px;
    padding: 1.2rem;
}

.admin-hero-mini strong {
    display: block;
    font-family: 'Fredoka', Arial, sans-serif;
    font-size: 1.5rem;
    color: #1f2c47;
}

.admin-hero-mini span {
    display: block;
    margin-top: 0.45rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.admin-stat-card {
    border-radius: 22px;
    padding: 1.35rem;
}

.admin-table-card {
    border-radius: 24px;
    padding: 1.4rem;
}

.admin-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 1rem;
}

.admin-dashboard-orders .admin-order-list {
    display: grid;
    gap: 0.9rem;
}

.admin-order-item {
    border-radius: 18px;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-title {
    font-weight: 700;
    color: #1f2c47;
}

.order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.admin-section-title {
    margin: 0 0 0.35rem;
    font-family: 'Fredoka', Arial, sans-serif;
    font-size: 1.55rem;
    color: #1f2c47;
}

.admin-section-copy {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.admin-table-wrap {
    overflow-x: auto;
    border-radius: 24px;
}

.admin-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.admin-table th,
.admin-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

.admin-table th {
    background: #f8fbff;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 0.92rem;
}

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

.admin-table tbody tr:hover td {
    background: #f8fbff;
}

.admin-category-table {
    min-width: 720px;
}

.admin-orders-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.admin-orders-summary-card {
    background: #f8fbff;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.admin-orders-summary-card h3 {
    margin: 0;
    font-size: 1.45rem;
    color: #1f2c47;
}

.admin-orders-summary-card p {
    margin: 0.5rem 0 0;
    color: #64748b;
    font-size: 0.95rem;
}

@media screen and (max-width: 920px) {
    .admin-orders-summary {
        grid-template-columns: 1fr;
    }
}

.form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-inline select {
    min-width: 140px;
}

.admin-products-page {
    display: grid;
    gap: 1.5rem;
}

.admin-products-page-simple,
.admin-users-page-simple {
    gap: 1rem;
}

.admin-compact-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.admin-compact-summary-card {
    border-radius: 20px;
    padding: 1.2rem;
}

.admin-categories-page {
    display: grid;
    gap: 1.5rem;
}

.admin-categories-page-simple {
    gap: 1.15rem;
}

.admin-products-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 1rem;
    align-items: start;
}

.admin-categories-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.admin-category-intro {
    border-radius: 20px;
    padding: 1.35rem 1.5rem;
}

.admin-category-intro-head {
    margin-bottom: 0;
}

.admin-form-card,
.admin-side-card {
    border-radius: 24px;
}

.admin-product-form {
    display: grid;
    gap: 1rem;
}

.admin-category-form {
    display: grid;
    gap: 1rem;
}

.admin-category-inline-note {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #dbe7fb;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

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

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

.admin-form-field {
    display: grid;
    gap: 0.45rem;
}

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

.admin-form-field label {
    font-weight: 600;
    color: #334155;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-side-title {
    margin: 0 0 1rem;
    font-family: 'Fredoka', Arial, sans-serif;
    font-size: 1.35rem;
    color: #1f2c47;
}

.admin-note-list {
    display: grid;
    gap: 0.9rem;
}

.admin-note-item {
    padding: 1rem;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e2e8f0;
}

.admin-note-item strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #1f2c47;
}

.admin-note-item span {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.92rem;
}

.admin-current-product {
    margin-top: 1.2rem;
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);
    border: 1px solid #dbe7fb;
}

.admin-current-label {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
}

.admin-current-name {
    font-family: 'Fredoka', Arial, sans-serif;
    font-size: 1.2rem;
    color: #1f2c47;
}

.admin-current-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0.6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-current-thumb {
    width: 100%;
    max-width: 180px;
    margin-top: 0.9rem;
    border-radius: 16px;
    border: 1px solid #dbe7fb;
    object-fit: cover;
}

.admin-table-meta {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid #dbe7fb;
    color: #446188;
    font-weight: 600;
    font-size: 0.88rem;
}

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

.admin-product-thumb {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    background: #eef2f7;
    flex-shrink: 0;
}

.admin-product-thumb.placeholder {
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 600;
}

.admin-product-name {
    font-weight: 600;
    color: #1f2c47;
}

.admin-product-desc {
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

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

.admin-category-cell {
    display: grid;
    gap: 0.3rem;
}

.admin-category-name {
    font-weight: 600;
    color: #1f2c47;
}

.admin-category-name-cell {
    font-weight: 600;
    color: #1f2c47;
}

.admin-category-meta {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.category-badge-used {
    background: #ecfdf5;
    color: #0f766e;
}

.category-badge-empty {
    background: #eff6ff;
    color: #1d4ed8;
}

.admin-empty-state {
    padding: 1.1rem 1rem;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px dashed #dbe7fb;
    color: var(--text-muted);
    line-height: 1.7;
    text-align: center;
}

.admin-current-category {
    margin-top: 1.2rem;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.stock-badge.stock-good {
    background: #ecfdf5;
    color: #0f766e;
}

.stock-badge.stock-low {
    background: #fff7ed;
    color: #c2410c;
}

.stock-badge.stock-empty {
    background: #fef2f2;
    color: #b91c1c;
}

.admin-users-page {
    display: grid;
    gap: 1.5rem;
}

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

.admin-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #3a7bfd 0%, #93c5fd 100%);
    color: #fff;
    font-family: 'Fredoka', Arial, sans-serif;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.admin-user-name {
    font-weight: 600;
    color: #1f2c47;
}

.admin-user-subtext {
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.role-badge.role-admin {
    background: #dbeafe;
    color: #1d4ed8;
}

.role-badge.role-user {
    background: #ecfdf5;
    color: #0f766e;
}

.admin-report-page {
    display: grid;
    gap: 1.5rem;
}

.admin-report-page-simple {
    gap: 1rem;
}

.admin-report-header-card {
    border-radius: 20px;
    padding: 1.35rem 1.5rem;
}

.admin-report-header-head {
    margin-bottom: 1rem;
}

.admin-report-switch {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-report-switch-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid #dbe7fb;
    color: #446188;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-report-switch-link.active {
    background: #e9f2ff;
    color: #1d4ed8;
    border-color: #cfe0ff;
}

.admin-report-filter {
    display: inline-grid;
    gap: 0.45rem;
    margin-top: 1.4rem;
    max-width: 220px;
}

.admin-report-filter-inline {
    margin-top: 0;
    width: 100%;
    max-width: 220px;
}

.admin-report-filter label {
    font-weight: 600;
    color: #334155;
}

.admin-report-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.admin-report-summary-inline {
    margin-bottom: 1.15rem;
}

.admin-report-summary-item {
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e4ecf8;
}

.admin-report-summary-item span {
    display: block;
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-bottom: 0.45rem;
}

.admin-report-summary-item strong {
    font-family: 'Fredoka', Arial, sans-serif;
    font-size: 1.15rem;
    color: #1f2c47;
}

.admin-maintenance-link {
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-maintenance-link:hover {
    transform: translateY(-2px);
    border-color: #cfe0ff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

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

.admin-report-card {
    border-radius: 20px;
}

.admin-report-divider {
    height: 1px;
    margin: 0 0 1.15rem;
    background: #e8eef8;
}

.admin-section-head-compact {
    margin-bottom: 0.9rem;
}

.admin-report-empty {
    padding: 1.1rem 1rem;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px dashed #dbe7fb;
    color: var(--text-muted);
    line-height: 1.7;
}

.admin-status-list,
.admin-top-product-list {
    display: grid;
    gap: 1rem;
}

.admin-status-item,
.admin-top-product-item {
    padding: 1rem;
    border-radius: 16px;
    background: #fbfcff;
    border: 1px solid #e8eef8;
}

.admin-status-item-simple,
.admin-top-product-item-simple {
    padding: 0.95rem 1rem;
}

.admin-status-head,
.admin-top-product-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0.8rem;
}

.admin-top-product-name {
    font-weight: 600;
    color: #1f2c47;
}

.admin-top-product-meta {
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.admin-stock-report-table {
    min-width: 640px;
}

.admin-stock-product-name {
    font-weight: 600;
    color: #1f2c47;
}

.admin-status-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e9f0fb;
    overflow: hidden;
}

.admin-status-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3a7bfd 0%, #60a5fa 100%);
}

.admin-status-bar.revenue span {
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
}

/* Responsive */
@media (max-width: 900px) {
    .grid-4 {
        grid-template-columns: repeat(2,1fr);
    }

    .admin-sidebar {
        width: 100%;
        position: relative;
        inset: auto;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .admin-container {
        margin-left: 0;
    }

    .sidebar-logout {
        position: static;
    }

    .admin-topbar,
    .admin-section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-hero,
    .admin-stats-grid,
    .admin-dashboard-summary,
    .admin-compact-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-products-layout {
        grid-template-columns: 1fr;
    }

    .admin-categories-layout {
        grid-template-columns: 1fr;
    }

    .admin-report-layout {
        grid-template-columns: 1fr;
    }

    .admin-report-summary {
        grid-template-columns: 1fr;
    }
}

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

    .admin-sidebar {
        padding: 1.1rem;
    }

    .sidebar-brand {
        margin-bottom: 1.2rem;
    }

    .sidebar-menu a,
    .sidebar-submenu a,
    .sidebar-group-label {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .admin-hero,
    .admin-stats-grid,
    .admin-hero-mini-grid,
    .admin-dashboard-summary,
    .admin-compact-summary {
        grid-template-columns: 1fr;
    }

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

    .admin-hero-main,
    .admin-hero-card,
    .admin-stat-card,
    .admin-table-card,
    .admin-form-card,
    .admin-side-card,
    .admin-report-card {
        border-radius: 20px;
        padding: 1.2rem;
    }

    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-form-actions,
    .admin-table-actions,
    .admin-current-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-product-cell,
    .admin-user-cell {
        align-items: flex-start;
    }

    .admin-status-head,
    .admin-top-product-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* User Layout */
.user-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(93, 116, 234, 0.1), transparent 24%),
        radial-gradient(circle at bottom right, rgba(43, 220, 124, 0.1), transparent 20%),
        #f6f7fb;
    font-family: 'Outfit', 'Poppins', sans-serif;
    color: #1E293B;
}

.topbar {
    padding: 20px max(24px, calc((100% - 1200px) / 2));
    border-radius: 0;
    background: #ffffff;
    color: #1f2340;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.topbar-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 40px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #1f2340;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #5d74ea 0%, #8171ff 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    box-shadow: 0 8px 16px rgba(93, 116, 234, 0.25);
}

.brand-logo-img {
    height: 54px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: height 0.3s ease;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1f2340;
}

.brand-note {
    margin-top: 2px;
    font-size: 0.88rem;
    color: #6e7597;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.topbar-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #6e7597;
    transition: color 0.2s ease;
}

.topbar-nav a:hover,
.topbar-nav a.active {
    color: #5d74ea;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.link-btn,
.main-btn,
.dashboard-pill-link,
.catalog-link,
.cart-btn,
.account-btn {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.94rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.link-btn,
.dashboard-pill-link,
.account-btn {
    color: #1f2340;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid transparent;
}

.link-btn:hover,
.dashboard-pill-link:hover {
    background: rgba(0, 0, 0, 0.06);
}

.main-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #5d74ea 0%, #8171ff 100%);
    box-shadow: 0 10px 20px rgba(93, 116, 234, 0.25);
}

.cart-btn {
    position: relative;
    width: 48px;
    padding: 0;
    justify-content: center;
}

.cart-btn::before {
    content: '';
}


.account-menu {
    position: relative;
}

.account-btn {
    display: inline-flex;
    gap: 6px;
}

.account-caret {
    font-size: 0.85rem;
    line-height: 1;
}

.account-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    min-width: 180px;
    overflow: hidden;
    z-index: 20;
}

.account-dropdown a {
    display: block;
    padding: 0.95rem 1.15rem;
    color: #1f2340;
    font-weight: 600;
    transition: background 0.2s ease;
}

.account-dropdown a:hover {
    background: rgba(93, 116, 234, 0.08);
}

.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown {
    display: block;
}

.main-btn:hover,
.catalog-link:hover,
.cart-btn:hover,
.account-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(93, 116, 234, 0.22);
}

.user-main {
    width: min(1140px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 40px;
}

.user-footer,
.site-footer {
    padding: 0 16px 28px;
    text-align: center;
    color: #64748B;
    font-size: 0.92rem;
}

/* User Dashboard */
.user-dashboard {
    display: grid;
    gap: 24px;
}

.dashboard-hero,
.dashboard-panel,
.dashboard-summary-card,
.catalog-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

.dashboard-hero {
    border-radius: 28px;
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(129, 113, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.dashboard-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    gap: 24px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.dashboard-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: #4F46E5;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-title {
    margin: 16px 0 12px;
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 800;
    color: #1E293B;
    letter-spacing: -0.02em;
}

.dashboard-copy {
    max-width: 680px;
    margin: 0;
    color: #475569;
    line-height: 1.8;
    font-size: 1.05rem;
}

.dashboard-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.dashboard-pill-link {
    background: rgba(255, 255, 255, 0.9);
}

.dashboard-hero-side {
    display: grid;
    gap: 16px;
}

.dashboard-hero-card {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.dashboard-hero-card-label {
    color: #64748B;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.dashboard-hero-card-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: #1E293B;
}

.dashboard-hero-card-note {
    margin-top: 12px;
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.6;
}

.dashboard-hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-hero-mini {
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dashboard-hero-mini strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1E293B;
}

.dashboard-hero-mini span {
    display: block;
    margin-top: 6px;
    color: #64748B;
    font-size: 0.88rem;
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.dashboard-summary-card {
    border-radius: 24px;
    padding: 26px;
    transition: transform 0.3s ease;
}

.dashboard-summary-card:hover {
    transform: translateY(-5px);
}

.dashboard-summary-label {
    color: #64748B;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.dashboard-summary-value {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: #4F46E5;
}

.dashboard-summary-note {
    margin-top: 12px;
    color: #64748B;
    line-height: 1.6;
    font-size: 0.9rem;
}

.dashboard-panel {
    border-radius: 28px;
    padding: 32px;
}

.dashboard-panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-panel-title {
    margin: 0 0 8px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1E293B;
    letter-spacing: -0.01em;
}

.dashboard-panel-copy {
    margin: 0;
    color: #64748B;
    line-height: 1.7;
    font-size: 1.05rem;
}

.dashboard-panel-badge,
.dashboard-soft-stat {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: #4F46E5;
    font-size: 0.9rem;
    font-weight: 700;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 14px;
}

.catalog-toolbar input,
.catalog-toolbar select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 16px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1E293B;
    transition: all 0.2s ease;
}

.catalog-toolbar input:focus,
.catalog-toolbar select:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.catalog-toolbar .btn {
    min-height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 0 24px;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.2);
}

.catalog-toolbar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(79, 70, 229, 0.25);
}

.dashboard-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.dashboard-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dashboard-filter-chip.active,
.dashboard-filter-chip:hover {
    background: #4F46E5;
    border-color: #4F46E5;
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    transform: translateY(-1px);
}

.catalog-empty {
    padding: 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed rgba(79, 70, 229, 0.2);
    color: #64748B;
    text-align: center;
    line-height: 1.7;
}

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

.catalog-card {
    border-radius: 24px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.catalog-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.catalog-image,
.catalog-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    margin-bottom: 18px;
}

.catalog-image {
    object-fit: cover;
    background: #f1f5f9;
}

.catalog-image-placeholder {
    display: grid;
    place-items: center;
    background: rgba(0,0,0,0.02);
    color: #94a3b8;
    font-size: 0.95rem;
}

.catalog-category {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: #4F46E5;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.catalog-rating {
    color: #64748B;
    font-size: 0.85rem;
    font-weight: 500;
}

.catalog-name {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1E293B;
}

.catalog-description {
    min-height: 68px;
    margin: 0 0 16px;
    color: #64748B;
    line-height: 1.6;
    font-size: 0.95rem;
}

.catalog-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.catalog-price {
    font-weight: 800;
    color: #2bdc7c;
    font-size: 1.15rem;
}

.catalog-stock {
    color: #64748B;
    font-size: 0.88rem;
}

.catalog-form {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
}

.catalog-form input {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    text-align: center;
    font-family: inherit;
    font-size: 1rem;
    color: #1E293B;
}

.catalog-form .btn {
    min-height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.catalog-form .btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

.catalog-form .btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.25);
}

.catalog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.catalog-pagination-info {
    color: #64748B;
    font-size: 0.95rem;
    font-weight: 600;
}

.catalog-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: #4F46E5;
    font-weight: 700;
    transition: all 0.2s ease;
}

.catalog-page-link:hover {
    background: #4F46E5;
    color: #fff;
    transform: translateY(-2px);
}

.catalog-page-link.disabled {
    background: rgba(148, 163, 184, 0.18);
    color: #94A3B8;
    pointer-events: none;
    transform: none;
}

.dashboard-panel-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}


.catalog-status {
    color: #ef4444;
    font-size: 0.88rem;
    font-weight: 500;
}

@media (max-width: 980px) {
    .topbar {
        padding: 18px 24px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
    }

    .topbar-collapse {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(0,0,0,0.04);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
        z-index: 99;
        margin-left: 0;
    }

    .topbar-collapse.active {
        display: flex;
    }

    .topbar-nav {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        align-items: center;
    }

    .topbar-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cart-btn {
        width: 48px !important;
        margin: 0 auto;
    }

    .brand-logo-img {
        height: 46px;
    }

    .dashboard-hero-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-summary-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-toolbar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .user-main {
        width: min(100% - 24px, 1140px);
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    .dashboard-pill-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-hero,
    .dashboard-panel,
    .dashboard-summary-card,
    .catalog-card {
        border-radius: 20px;
    }

    .dashboard-hero,
    .dashboard-panel {
        padding: 24px;
    }

    .dashboard-summary-grid,
    .catalog-grid,
    .catalog-toolbar,
    .catalog-form {
        grid-template-columns: 1fr;
    }

    .dashboard-panel-head,
    .catalog-price-row,
    .catalog-actions,
    .catalog-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-hero-mini-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-panel-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-description {
        min-height: 0;
    }
}

/* ==========================================
   FOOTER STYLES (MODERN & RESPONSIVE)
   ========================================== */
.site-footer, .user-footer {
    background: linear-gradient(135deg, #1f2340 0%, #121526 100%);
    color: #cbd5e1;
    padding: 70px max(24px, calc((100% - 1200px) / 2)) 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #5d74ea 0%, #8171ff 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.08em;
    box-shadow: 0 8px 16px rgba(93, 116, 234, 0.25);
}

.footer-brand .brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: grid;
    place-items: center;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #5d74ea;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(93, 116, 234, 0.3);
}

.footer-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #5d74ea;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
}

.footer-contact-info li svg {
    flex-shrink: 0;
    color: #5d74ea;
}

.footer-hours-section {
    display: flex;
    flex-direction: column;
}

.footer-hours {
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.footer-hours strong {
    color: #ffffff;
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

/* Responsiveness */
@media (max-width: 980px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .site-footer, .user-footer {
        padding: 50px 24px 20px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-bottom: 35px;
    }
    .footer-title {
        margin-bottom: 16px;
    }
    .footer-bottom {
        padding-top: 20px;
    }
}

/* ==========================================
   ADMIN RESPONSIVE STYLES
   ========================================== */

/* Menu Toggle Button Hidden on Desktop */
.admin-menu-toggle {
    display: none;
}

@media (max-width: 980px) {
    /* Hide admin sidebar off-screen by default */
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }

    .admin-sidebar.active {
        transform: translateX(0);
        box-shadow: 6px 0 24px rgba(0, 0, 0, 0.15);
    }

    /* Admin Overlay backdrop */
    .admin-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.4);
        z-index: 1040;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .admin-sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Adjust admin container width */
    .admin-container {
        margin-left: 0;
        padding: 1rem;
        width: 100%;
        min-width: 0;
    }

    /* Topbar adjustments */
    .admin-topbar {
        padding: 0.85rem 1rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    /* Display hamburger toggle button on mobile */
    .admin-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 20px;
        height: 14px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1060;
        flex-shrink: 0;
    }

    .admin-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text);
        border-radius: 99px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Hamburger transformation to 'X' */
    .admin-menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .admin-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .admin-menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Title adjustments */
    .topbar-title {
        font-size: 1.25rem;
    }

    /* Hide profile name on very narrow views to save space */
    .profile-name {
        display: none;
    }
    
    .profile-btn {
        padding: 0;
        width: 38px;
        height: 38px;
        justify-content: center;
        border-radius: 50%;
        background: linear-gradient(135deg, #3a7bfd 0%, #60a5fa 100%);
        color: #fff;
    }

    /* Grids & Cards responsiveness */
    .admin-dashboard-summary,
    .admin-stats-grid,
    .admin-compact-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .admin-products-layout,
    .admin-categories-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .admin-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .admin-hero-main {
        padding: 1.5rem;
        border-radius: 18px;
    }

    .admin-page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 640px) {
    /* Stack form grid vertically */
    .admin-form-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

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

    /* Stack section header titles & actions */
    .admin-section-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .admin-form-actions,
    .admin-hero-actions,
    .admin-dashboard-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .admin-form-actions .btn,
    .admin-hero-actions .btn,
    .admin-dashboard-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .admin-table-card {
        padding: 1rem 0.75rem;
        border-radius: 16px;
    }

    .admin-stat-card,
    .admin-hero-card,
    .admin-hero-mini {
        padding: 1rem;
        border-radius: 16px;
    }

    /* Make standalone Kurir & Pengiriman pages responsive */
    .kurir-container, .pengiriman-container {
        padding: 0 8px !important;
        margin: 10px auto !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .form-row .form-group {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    /* Single columns for cards on small phones */
    .admin-dashboard-summary,
    .admin-stats-grid,
    .admin-compact-summary,
    .admin-hero-mini-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .detail-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .order-detail-actions {
        justify-content: flex-start;
        flex-direction: column;
        width: 100%;
    }

    .order-detail-actions .btn,
    .order-detail-actions select {
        width: 100% !important;
        text-align: center;
    }
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


