:root {
    --primary: #061a40;
    --primary-2: #102a5c;
    --secondary: #f04b23;
    --secondary-2: #ff8a00;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --dark: #0f172a;
    --muted: #64748b;
    --light: #f4f7fb;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 18px 45px rgba(15, 23, 42, .10);
    --shadow-lg: 0 25px 70px rgba(2, 8, 23, .22);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--light);
    color: var(--dark);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
    text-decoration: none;
}

/* AUTH LOGIN */
.auth-body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(240, 75, 35, .35), transparent 32%),
        radial-gradient(circle at bottom right, rgba(22, 163, 74, .20), transparent 35%),
        linear-gradient(135deg, #061a40 0%, #020817 100%);
}

.auth-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
}

.auth-hero {
    min-height: 100vh;
    padding: 70px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo {
    width: 66px;
    height: 66px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-2));
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 14px 35px rgba(240, 75, 35, .35);
    margin-bottom: 26px;
}

.auth-logo-small {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 24px;
    margin-bottom: 18px;
}

.auth-hero h1 {
    max-width: 720px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}

.auth-hero p {
    max-width: 650px;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 0;
}

.auth-features {
    max-width: 720px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.auth-feature {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    padding: 20px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 13px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.auth-feature i {
    font-size: 26px;
    color: #ff9a6a;
}

.auth-panel {
    min-height: 100vh;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
    box-shadow: -20px 0 70px rgba(2, 8, 23, .30);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
}

.auth-card h2 {
    font-size: 30px;
    font-weight: 950;
    color: var(--primary);
    margin-bottom: 4px;
}

.auth-btn {
    width: 100%;
    border: 0;
    border-radius: 15px;
    padding: 13px 18px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 15px 30px rgba(240, 75, 35, .22);
}

.auth-btn:hover {
    opacity: .95;
}

.auth-footer-text {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-top: 22px;
}

/* LAYOUT */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    min-height: 100vh;
    background: linear-gradient(180deg, #061a40 0%, #020817 100%);
    color: var(--white);
    position: fixed;
    inset: 0 auto 0 0;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 12px 0 30px rgba(2, 8, 23, .22);
}

.sidebar-brand {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-2));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(240, 75, 35, .35);
}

.brand-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .3px;
}

.sidebar-nav {
    padding: 14px;
}

.nav-link {
    color: #dbeafe;
    padding: 12px 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 7px;
    font-weight: 600;
    transition: .2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, var(--secondary), #ff6b35);
    color: var(--white);
    transform: translateX(3px);
}

.nav-toggle {
    justify-content: space-between;
}

.nav-toggle span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle[aria-expanded="true"] .arrow {
    transform: rotate(180deg);
}

.arrow {
    transition: .25s ease;
}

.nav-submenu {
    padding-left: 22px;
    margin-bottom: 8px;
}

.nav-submenu a {
    display: block;
    color: #cbd5e1;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 3px;
    transition: .2s ease;
}

.nav-submenu a:hover,
.nav-submenu a.active {
    background: rgba(255, 255, 255, .10);
    color: var(--white);
}

.logout-link {
    margin-top: 20px;
    color: #fecaca;
}

.main {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    padding: 26px;
    background: var(--light);
}

.topbar {
    min-height: 72px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 26px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.topbar-title h5 {
    margin: 0;
    font-weight: 850;
    color: var(--primary);
}

.topbar-title small {
    color: var(--muted);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--dark);
    cursor: pointer;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* COMPONENTS */
.card-modern,
.stat-card {
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--white);
}

.stat-card {
    padding: 20px;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.stat-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -35px;
    top: -35px;
    background: rgba(240, 75, 35, .10);
    border-radius: 50%;
}

.stat-card small {
    color: var(--muted);
    font-weight: 700;
}

.stat-card h3 {
    margin: 8px 0 0;
    font-weight: 900;
    color: var(--primary);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-bottom: 1px solid var(--border);
}

.table td,
.table th {
    vertical-align: middle;
    padding: 13px 14px;
}

.btn {
    border-radius: 12px;
    font-weight: 700;
    padding: 9px 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border: 0;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #ef4444);
    border: 0;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #22c55e);
    border: 0;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #fbbf24);
    border: 0;
    color: #111827;
}

.form-control,
.form-select {
    border-radius: 13px;
    border: 1px solid var(--border);
    padding: 10px 13px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 .2rem rgba(240, 75, 35, .15);
}

.input-group-text {
    border-radius: 13px;
    border-color: var(--border);
}

label {
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.alert {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .08);
}

.admin-footer {
    border-top: 1px solid var(--border);
    background: var(--white);
    padding: 14px 26px;
    color: var(--muted);
    font-size: 14px;
}

.dropdown-toggle::after {
    display: none;
}

.topbar input {
    border-radius: 50px;
}

.badge {
    font-size: 11px;
}

.dropdown-menu {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, .15);
}

.dropdown-item {
    padding: 11px 16px;
    border-radius: 10px;
    margin: 3px;
}

.dropdown-item:hover {
    background: #f4f7fb;
}

/* PRINT */
@media print {
    .no-print {
        display: none !important;
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    body {
        background: #fff;
    }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        min-height: auto;
        padding: 36px 24px;
    }

    .auth-panel {
        min-height: auto;
        padding: 30px 22px;
    }

    .auth-features {
        grid-template-columns: 1fr;
    }

    .sidebar {
        left: -280px;
        transition: .3s ease;
    }

    .sidebar.show {
        left: 0;
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    .topbar {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .topbar .position-relative input {
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .content {
        padding: 16px;
    }

    .auth-hero h1 {
        font-size: 34px;
    }

    .auth-card h2 {
        font-size: 26px;
    }
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-title {
    margin: 0;
    font-weight: 900;
    color: var(--primary);
}

.page-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.bg-primary-soft {
    background: rgba(6, 26, 64, .10);
    color: var(--primary);
}

.bg-success-soft {
    background: rgba(22, 163, 74, .12);
    color: var(--success);
}

.bg-warning-soft {
    background: rgba(245, 158, 11, .14);
    color: var(--warning);
}

.bg-danger-soft {
    background: rgba(220, 38, 38, .12);
    color: var(--danger);
}
.table-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(6, 26, 64, .08);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.brand-logo{

width:48px;

height:48px;

border-radius:14px;

object-fit:cover;

background:#fff;

padding:4px;

}
.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    object-fit: cover;
    background: #fff;
    padding: 4px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text small {
    font-size: 11px;
    font-weight: 500;
    margin-top: 3px;
}

.auth-logo-img {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    object-fit: cover;
    background: #fff;
    padding: 5px;
    box-shadow: 0 14px 35px rgba(240, 75, 35, .35);
    margin-bottom: 26px;
}

.auth-logo-small-img {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.product-thumb {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.modern-modal {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(2, 8, 23, .28);
}

.delete-icon {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    background: rgba(220, 38, 38, .12);
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}
.topbar-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.topbar-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 21px;
    height: 21px;
    padding: 2px 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.notification-panel {
    width: 410px;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(2, 8, 23, .26);
}

.notification-head {
    background: linear-gradient(135deg, var(--primary), #020817);
    color: #fff;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-head strong {
    font-size: 16px;
}

.notification-head small {
    display: block;
    color: #cbd5e1;
    margin-top: 2px;
}

.notification-head i {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: rgba(255,255,255,.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.notify-box {
    border-radius: 18px;
    padding: 13px 8px;
    text-align: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: .2s ease;
}

.notify-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(15,23,42,.10);
}

.notify-box strong {
    display: block;
    font-size: 23px;
    line-height: 1;
    font-weight: 950;
}

.notify-box span {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
}

.notify-box.warning strong { color: #f59e0b; }
.notify-box.danger strong { color: #dc2626; }
.notify-box.dark strong { color: #0f172a; }

.notification-list {
    max-height: 340px;
    overflow-y: auto;
    background: #fff;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
    text-decoration: none;
    transition: .2s ease;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.notification-item-icon.danger {
    background: #fee2e2;
    color: #dc2626;
}

.notification-item-icon.warning {
    background: #fef3c7;
    color: #d97706;
}

.notification-item-title {
    font-weight: 900;
    font-size: 14px;
}

.notification-item-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.notification-footer {
    padding: 13px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.notification-footer a {
    font-weight: 800;
    color: var(--primary);
}

.sidebar-alert-badge {
    min-width: 22px;
    height: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}