/* ==========================================================================
   Ayra BD - Admin Panel Stylesheet
   Exact Fonts: Potro Sans Bangla, Alinur Banglaborno, Jost, Roboto
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300..900;1,300..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Official Bengali Fonts from Website */
@font-face {
    font-family: "Potro Sans Bangla";
    src: url("../assets/fonts/Potro-Sans-Bangla-Regular.ttf") format("truetype"),
         url("/assets/fonts/Potro-Sans-Bangla-Regular.ttf") format("truetype"),
         url("https://fatemaborkhashop.com/public/frontEnd/fonts/Potro-Sans-Bangla-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Alinur Banglaborno";
    src: url("../assets/fonts/Li-Alinur-Banglaborno-Unicode.ttf") format("truetype"),
         url("/assets/fonts/Li-Alinur-Banglaborno-Unicode.ttf") format("truetype"),
         url("https://fatemaborkhashop.com/public/frontEnd/fonts/Li-Alinur-Banglaborno-Unicode.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --admin-primary: #663333;       /* Ayra BD Wine/Burgundy */
    --admin-primary-dark: #4d2626;
    --admin-secondary: #cc9966;     /* Warm Gold Accent */
    --admin-sidebar-bg: #181d1a;    /* Deep Charcoal Dark */
    --admin-sidebar-hover: #242c27;
    --admin-canvas: #f4f6f8;        /* Soft Light Surface */
    --admin-surface: #ffffff;
    --admin-text-main: #212529;
    --admin-text-muted: #6c757d;
    --admin-border: #e9ecef;
    --admin-card-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    --admin-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: clip;
}

body.admin-body {
    font-family: "Potro Sans Bangla", "Roboto", "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--admin-canvas);
    color: var(--admin-text-main);
    display: flex;
    min-height: 100vh;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea,
optgroup {
    font-family: "Potro Sans Bangla", "Roboto", "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, h5, h6,
.page-header h2,
.sidebar-brand-title,
.card-header h3 {
    font-family: "Potro Sans Bangla", "Jost", sans-serif;
}

/* ==========================================================================
   Admin Sidebar Navigation
   ========================================================================== */
.admin-sidebar {
    width: 270px;
    background-color: var(--admin-sidebar-bg);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.sidebar-brand-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--admin-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
}

.sidebar-brand-title {
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.sidebar-brand-title span {
    color: var(--admin-secondary);
}

.sidebar-badge {
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    font-weight: 700;
    background: rgba(204, 153, 102, 0.2);
    color: var(--admin-secondary);
    border: 1px solid var(--admin-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 2px;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
    list-style: none;
}

.sidebar-menu-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    padding: 8px 12px;
    margin-top: 10px;
}

.sidebar-item {
    margin-bottom: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar-link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-link-left i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--admin-secondary);
    transition: transform 0.2s ease;
}

.sidebar-link:hover {
    background-color: var(--admin-sidebar-hover);
    color: #ffffff;
}

.sidebar-link:hover .sidebar-link-left i {
    transform: scale(1.15);
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-dark));
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(102, 51, 51, 0.4);
}

.sidebar-link.active .sidebar-link-left i {
    color: #ffffff;
}

.count-pill {
    background: var(--admin-secondary);
    color: #181d1a;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--admin-secondary), #b07d4b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
}

.admin-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.admin-role {
    font-size: 11px;
    color: var(--admin-secondary);
}

/* ==========================================================================
   Admin Main Content Wrapper
   ========================================================================== */
.admin-main {
    margin-left: 270px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    overflow: visible;
}

/* Top Navigation Bar (Sticky Header) */
.admin-topbar {
    background: var(--admin-surface);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid var(--admin-border);
    position: sticky;
    top: 0;
    z-index: 990;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--admin-text-main);
    cursor: pointer;
}

.topbar-search {
    position: relative;
    width: 320px;
}

.topbar-search input {
    width: 100%;
    padding: 9px 16px 9px 38px;
    border-radius: 8px;
    border: 1px solid var(--admin-border);
    background: #f8f9fa;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.topbar-search input:focus {
    border-color: var(--admin-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 51, 51, 0.1);
}

.topbar-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-text-muted);
    font-size: 13px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-store-visit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(102, 51, 51, 0.08);
    color: var(--admin-primary);
    border: 1px solid rgba(102, 51, 51, 0.2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-store-visit:hover {
    background: var(--admin-primary);
    color: #ffffff;
}

.date-display {
    font-size: 13px;
    color: var(--admin-text-muted);
    font-weight: 500;
}

/* Page Views Container */
.admin-container {
    padding: 30px;
    flex: 1;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

.tab-pane.active {
    display: block;
}

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

/* ==========================================================================
   Dashboard Overview Cards
   ========================================================================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title h2 {
    font-family: 'Jost', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--admin-text-main);
}

.page-title p {
    font-size: 13px;
    color: var(--admin-text-muted);
    margin-top: 4px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-primary-custom {
    background: var(--admin-primary);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 51, 51, 0.25);
}

.btn-primary-custom:hover {
    background: var(--admin-primary-dark);
    transform: translateY(-1px);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--admin-surface);
    border-radius: var(--admin-radius);
    padding: 22px;
    border: 1px solid var(--admin-border);
    box-shadow: var(--admin-card-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(102, 51, 51, 0.12);
    border-color: rgba(102, 51, 51, 0.35);
}

.stat-card:active {
    transform: translateY(-1px) scale(0.99);
}


.stat-details h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.stat-details .stat-number {
    font-family: 'Jost', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--admin-text-main);
    line-height: 1.1;
}

.stat-details .stat-meta {
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-meta.text-success { color: #2b8a3e; }
.stat-meta.text-warning { color: #e8590c; }
.stat-meta.text-info { color: #1971c2; }

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon.revenue {
    background: rgba(102, 51, 51, 0.1);
    color: var(--admin-primary);
}

.stat-icon.orders {
    background: rgba(204, 153, 102, 0.18);
    color: #a37039;
}

.stat-icon.pending {
    background: rgba(245, 159, 0, 0.14);
    color: #e67700;
}

.stat-icon.delivered {
    background: rgba(43, 138, 62, 0.12);
    color: #2b8a3e;
}

/* ==========================================================================
   Analytics & Visual Charts Section
   ========================================================================== */
.analytics-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.card-box {
    background: var(--admin-surface);
    border-radius: var(--admin-radius);
    padding: 24px;
    border: 1px solid var(--admin-border);
    box-shadow: var(--admin-card-shadow);
}

.card-title-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title-header h3 {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--admin-text-main);
}

.bar-chart-wrap {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 180px;
    padding-top: 20px;
    border-bottom: 1px solid var(--admin-border);
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.bar-fill {
    width: 100%;
    max-width: 32px;
    background: linear-gradient(180deg, var(--admin-secondary), var(--admin-primary));
    border-radius: 6px 6px 0 0;
    transition: height 0.4s ease;
    position: relative;
}

.bar-label {
    font-size: 11px;
    color: var(--admin-text-muted);
    margin-top: 8px;
}

.area-stats-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.area-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
}

.area-stat-label {
    font-size: 13px;
    font-weight: 600;
}

.area-stat-val {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--admin-primary);
}

/* ==========================================================================
   Data Tables (Orders, Products)
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.admin-table th {
    background: #f8f9fa;
    color: var(--admin-text-muted);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--admin-border);
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 11.5px;
    letter-spacing: 0.05em;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
}

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

.order-id-badge {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    color: var(--admin-primary);
    background: rgba(102, 51, 51, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.customer-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-name {
    font-weight: 600;
    color: var(--admin-text-main);
}

.customer-phone {
    font-size: 12px;
    color: var(--admin-text-muted);
}

/* Status Badges */
.status-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-pending { background: #fff3bf; color: #d9480f; }
.status-processing { background: #d0ebff; color: #1864ab; }
.status-shipped { background: #e5dbff; color: #5f3dc4; }
.status-delivered { background: #d3f9d8; color: #2b8a3e; }
.status-cancelled { background: #ffe3e3; color: #c92a2a; }

/* Status Change Dropdown Select */
.status-select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--admin-border);
    font-size: 12px;
    font-weight: 600;
    background: #ffffff;
    cursor: pointer;
    outline: none;
}

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

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--admin-border);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-text-main);
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-action:hover {
    border-color: var(--admin-primary);
    color: var(--admin-primary);
    background: rgba(102, 51, 51, 0.05);
}

.btn-action.delete:hover {
    border-color: #e03131;
    color: #e03131;
    background: rgba(224, 49, 49, 0.08);
}

.btn-action-mobile {
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid var(--admin-border);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--admin-text-main);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.18s ease;
}

.btn-action-mobile:hover {
    border-color: var(--admin-primary);
    color: var(--admin-primary);
    background: rgba(102, 51, 51, 0.05);
}

.btn-action-mobile.btn-edit {
    background: rgba(102, 51, 51, 0.08);
    color: var(--admin-primary);
    border-color: rgba(102, 51, 51, 0.25);
    font-weight: 600;
}

.btn-action-mobile.btn-edit:hover {
    background: var(--admin-primary);
    color: #ffffff;
}

.btn-action-mobile.btn-delete:hover {
    border-color: #e03131;
    color: #e03131;
    background: rgba(224, 49, 49, 0.08);
}

.prod-meta-flex {
    display: none;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid var(--admin-border);
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--admin-text-muted);
}

.filter-btn:hover {
    background: #f1f3f5;
    color: var(--admin-text-main);
}

.filter-btn.active {
    background: var(--admin-primary);
    border-color: var(--admin-primary);
    color: #ffffff;
}

/* Product Row Elements */
.prod-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prod-thumb {
    width: 46px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--admin-border);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    cursor: pointer;
    background-color: #f5f5f5;
}

.prod-thumb:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    z-index: 2;
}

.prod-title {
    font-weight: 600;
    color: var(--admin-text-main);
    line-height: 1.3;
}

.prod-cat {
    font-size: 11px;
    color: var(--admin-secondary);
    text-transform: uppercase;
    font-weight: 700;
}

/* ==========================================================================
   Modals (Invoice, Add Product)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-overlay.show,
.modal-overlay.active {
    display: flex !important;
}

.modal-content-box {
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--admin-text-main);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #888;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* Printable Invoice Styling */
.invoice-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    background: #ffffff;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid var(--admin-primary);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.invoice-logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invoice-logo-group img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--admin-secondary);
}

.invoice-meta-right {
    text-align: right;
    font-size: 13px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
}

.invoice-table th {
    background: #f8f9fa;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
}

.invoice-table td {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
}

/* Settings Form Controls */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-group-admin {
    margin-bottom: 18px;
}

.form-group-admin label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--admin-text-main);
    margin-bottom: 6px;
}

.form-group-admin input,
.form-group-admin select,
.form-group-admin textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-size: 13.5px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group-admin textarea {
    min-height: 200px;
    line-height: 1.6;
    resize: vertical;
}

#edit-prod-description {
    min-height: 220px;
    font-size: 14px;
    line-height: 1.65;
}

.form-group-admin input:focus,
.form-group-admin select:focus,
.form-group-admin textarea:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(102, 51, 51, 0.1);
}

/* Multi-Image Gallery Manager in Edit Modal */
.edit-image-upload-panel {
    background: #f8fafc;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    padding: 14px;
}

.btn-upload-photos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--admin-primary);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.btn-upload-photos:hover {
    border-color: var(--admin-primary);
    background: #fdf8f8;
    color: var(--admin-primary-dark);
    transform: translateY(-1px);
}

.edit-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 12px;
}

.edit-gallery-item {
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.edit-gallery-item.is-main {
    border: 2px solid var(--admin-secondary);
    box-shadow: 0 2px 10px rgba(204, 153, 102, 0.25);
}

.gallery-thumb-wrap {
    position: relative;
    width: 100%;
    height: 125px;
    background: #f1f5f9;
}

.gallery-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.badge-main-img {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--admin-secondary);
    color: #181d1a;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.btn-remove-gallery-img {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(224, 49, 49, 0.9);
    color: #ffffff;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-remove-gallery-img:hover {
    background: #c92a2a;
    transform: scale(1.15);
}

.gallery-item-footer {
    padding: 6px;
    background: #ffffff;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.btn-set-main {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    color: #475569;
    padding: 4px 6px;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.btn-set-main:hover {
    background: var(--admin-primary);
    color: #ffffff;
    border-color: var(--admin-primary);
}

.text-main-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--admin-primary);
    display: block;
}

/* Toast Notification */
.admin-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #181d1a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--admin-secondary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99999;
}

.admin-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Print Invoice Rules */
@media print {
    body * {
        visibility: hidden;
    }
    .modal-overlay.show,
    .invoice-card,
    .invoice-card * {
        visibility: visible;
    }
    .modal-overlay {
        position: absolute;
        left: 0;
        top: 0;
        background: transparent;
        padding: 0;
    }
    .modal-header,
    .modal-footer {
        display: none !important;
    }
    .modal-content-box {
        max-width: 100%;
        box-shadow: none;
        border: none;
    }
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
    .sidebar-toggle-btn {
        display: block;
    }
    .analytics-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Zero Horizontal Scrolling */
    body.admin-body {
        overflow-x: clip;
        width: 100%;
        max-width: 100%;
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .admin-container {
        padding: 14px 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .admin-topbar {
        height: 56px;
        padding: 0 14px;
        width: 100%;
        box-sizing: border-box;
        position: sticky;
        top: 0;
        z-index: 990;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .topbar-search {
        display: none;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 16px;
    }

    .page-title h2 {
        font-size: 20px;
        line-height: 1.25;
    }

    .page-title p {
        font-size: 12px;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .btn-primary-custom {
        width: 100%;
        justify-content: center;
        padding: 11px 16px;
        font-size: 13.5px;
    }

    .card-box {
        padding: 12px 10px;
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Product Table to Mobile Cards Transformation */
    .table-responsive {
        overflow-x: visible;
        width: 100%;
    }

    .admin-table-mobile-cards {
        display: block;
        width: 100%;
        border: none;
    }

    .admin-table-mobile-cards thead {
        display: none !important;
    }

    .admin-table-mobile-cards tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .admin-table-mobile-cards tbody tr {
        display: flex;
        flex-direction: column;
        background: #ffffff;
        border: 1px solid var(--admin-border);
        border-radius: 12px;
        padding: 12px;
        gap: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        width: 100%;
        box-sizing: border-box;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .admin-table-mobile-cards tbody tr:hover {
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .admin-table-mobile-cards tbody td {
        display: block;
        padding: 0;
        border: none;
        width: 100%;
        box-sizing: border-box;
    }

    .admin-table-mobile-cards .desktop-col-price,
    .admin-table-mobile-cards .desktop-col-stock {
        display: none !important;
    }

    .prod-cell {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .prod-thumb {
        width: 52px;
        height: 64px;
        flex-shrink: 0;
        border-radius: 6px;
    }

    .prod-info-wrap {
        flex: 1;
        min-width: 0;
    }

    .prod-title {
        font-size: 13.5px;
        font-weight: 600;
        line-height: 1.35;
        color: var(--admin-text-main);
        word-break: break-word;
    }

    .prod-cat {
        font-size: 11px;
        color: var(--admin-secondary);
        font-weight: 700;
        margin-top: 3px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .prod-meta-flex {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        background: #f8fafc;
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid #edf2f7;
        width: 100%;
        box-sizing: border-box;
    }

    .prod-price-box {
        display: flex;
        align-items: baseline;
        gap: 6px;
    }

    .prod-price-label {
        font-size: 11px;
        color: var(--admin-text-muted);
    }

    .prod-current-price {
        font-size: 15px;
        font-weight: 700;
        color: var(--admin-primary);
    }

    .prod-old-price {
        font-size: 11.5px;
        color: #888;
        text-decoration: line-through;
    }

    .mobile-action-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        width: 100%;
        margin-top: 2px;
    }

    .btn-action-mobile {
        width: 100%;
        height: 34px;
        padding: 0 4px;
        font-size: 11.5px;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    .btn-action-mobile span {
        display: inline;
    }

    /* Modal Mobile Adjustments */
    .modal-content-box {
        width: 95% !important;
        max-width: 95% !important;
        margin: 12px auto !important;
        padding: 16px !important;
        border-radius: 12px !important;
        max-height: 90vh !important;
    }

    .modal-content-box [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* 100% Mobile Responsive Orders Section (No Horizontal Scroll / No টানাটানি) */
    .orders-table-responsive {
        overflow-x: hidden !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .admin-orders-responsive-table {
        display: block !important;
        width: 100% !important;
        border: none !important;
    }

    .admin-orders-responsive-table thead {
        display: none !important;
    }

    .admin-orders-responsive-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .admin-orders-responsive-table tbody tr.order-table-row {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        border: 1.5px solid var(--admin-border) !important;
        border-radius: 12px !important;
        padding: 14px 12px !important;
        gap: 10px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    }

    .admin-orders-responsive-table tbody tr.order-table-row:hover {
        background: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    }

    .admin-orders-responsive-table tbody td {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
        box-sizing: border-box !important;
    }

    .admin-orders-responsive-table .desktop-only-cell {
        display: none !important;
    }

    .mobile-order-header-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding-bottom: 8px !important;
        border-bottom: 1px dashed var(--admin-border) !important;
    }

    .mobile-order-date {
        font-size: 11.5px !important;
        color: var(--admin-text-muted) !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .order-customer-click-btn {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        background: #fdfaf7 !important;
        border: 1px solid rgba(102, 51, 51, 0.15) !important;
        border-radius: 8px !important;
        padding: 10px 12px !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    .order-phone-box {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        padding: 8px 12px !important;
        box-sizing: border-box !important;
    }

    .order-action-col {
        width: 100% !important;
        margin-top: 2px !important;
    }

    .btn-open-order-details {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 14px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
    }

    .filter-pills {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 6px !important;
        width: 100% !important;
    }

    .filter-btn {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
}

/* ==========================================================================
   Add Product & Media Upload Styles
   ========================================================================== */
.form-card-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 991px) {
    .form-card-grid {
        grid-template-columns: 1fr;
    }
}

.upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.upload-box:hover {
    border-color: var(--admin-primary);
    background: #fbf6f6;
}

.upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-box i {
    font-size: 36px;
    color: var(--admin-primary);
    margin-bottom: 10px;
    display: block;
}

.upload-box p {
    font-size: 13px;
    color: var(--admin-text-muted);
    margin: 4px 0 0;
}

.preview-container {
    margin-top: 14px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    max-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-container img {
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.checkbox-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.checkbox-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.checkbox-chip input[type="checkbox"] {
    accent-color: var(--admin-primary);
    cursor: pointer;
}

.checkbox-chip:has(input:checked) {
    background: var(--admin-primary);
    color: #ffffff;
    border-color: var(--admin-primary);
}

.attribute-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.attribute-add-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.attribute-input {
    padding: 7px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    background: #ffffff;
    color: var(--admin-text-main);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.attribute-input:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(102, 51, 51, 0.12);
}

.attribute-color-picker {
    width: 38px;
    height: 36px;
    padding: 2px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    background: #ffffff;
    vertical-align: middle;
}

.btn-attribute-add {
    background: #f1f5f9;
    color: var(--admin-primary);
    border: 1px solid #cbd5e1;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-attribute-add:hover {
    background: var(--admin-primary);
    color: #ffffff;
    border-color: var(--admin-primary);
    box-shadow: 0 2px 6px rgba(102, 51, 51, 0.25);
}

.chip-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.14);
    color: inherit;
    font-size: 12px;
    line-height: 1;
    margin-left: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
}

.checkbox-chip:has(input:checked) .chip-remove-btn {
    background: rgba(255, 255, 255, 0.25);
}

.chip-remove-btn:hover {
    background: #e03131 !important;
    color: #ffffff !important;
    transform: scale(1.15);
}

.color-chip-preview-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: inline-block;
    vertical-align: middle;
    margin-right: 2px;
}

/* ==========================================================================
   Banner Manager Styles
   ========================================================================== */
.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

.banner-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.banner-card-header {
    padding: 16px 20px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--admin-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-preview-frame {
    width: 100%;
    height: 180px;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ==========================================================================
   Courier Integration Styles
   ========================================================================== */
.courier-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.courier-partner-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.courier-partner-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.courier-partner-card.active {
    border-color: #2b8a3e;
    background: #fbfdfb;
    box-shadow: 0 4px 14px rgba(43, 138, 62, 0.15);
}

.courier-partner-card.active::after {
    content: "✓ সক্রিয় কুরিয়ার";
    position: absolute;
    top: 12px;
    right: 12px;
    background: #2b8a3e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.courier-logo-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.courier-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
}

.courier-icon-steadfast {
    background: linear-gradient(135deg, #107c41, #0c5c30);
}

.courier-icon-pathao {
    background: linear-gradient(135deg, #e02424, #b91c1c);
}

.courier-icon-redx {
    background: linear-gradient(135deg, #e02020, #1f2937);
}

.courier-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--admin-text-main);
}

.courier-sub {
    font-size: 11px;
    color: var(--admin-text-muted);
}

.courier-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.courier-badge.steadfast {
    background: rgba(16, 124, 65, 0.12);
    color: #107c41;
    border: 1px solid rgba(16, 124, 65, 0.3);
}

.courier-badge.pathao {
    background: rgba(224, 36, 36, 0.12);
    color: #e02424;
    border: 1px solid rgba(224, 36, 36, 0.3);
}

.courier-badge.redx {
    background: rgba(224, 32, 32, 0.12);
    color: #e02020;
    border: 1px solid rgba(224, 32, 32, 0.3);
}

.btn-courier-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #107c41;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-courier-action:hover {
    background: #0d6334;
    box-shadow: 0 3px 8px rgba(16, 124, 65, 0.3);
}

.courier-booking-info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

/* ==========================================================================
   Category Manager Styles
   ========================================================================== */
.category-grid-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 991px) {
    .category-grid-layout {
        grid-template-columns: 1fr;
    }
}

.cat-table-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--admin-border);
    background: #f1f5f9;
}

.btn-link-category-shortcut {
    background: none;
    border: none;
    color: var(--admin-secondary);
    font-size: 11.5px;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.btn-link-category-shortcut:hover {
    color: var(--admin-primary);
}

/* ==========================================================================
   Responsive Orders Section & Order Details Modal Styles
   ========================================================================== */

/* Order Table Base Elements */
.mobile-order-header-bar {
    display: none;
}

.desktop-only-cell {
    display: table-cell;
}

.clickable-customer-name {
    cursor: pointer;
    color: var(--admin-primary);
    font-weight: 700;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.clickable-customer-name:hover {
    color: var(--admin-primary-dark);
    text-decoration: underline;
}

.order-customer-click-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.order-customer-click-btn:hover {
    background: rgba(102, 51, 51, 0.08);
}

.customer-avatar-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(102, 51, 51, 0.1);
    color: var(--admin-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.customer-text-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-name-val {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--admin-text-main);
    line-height: 1.3;
}

.click-details-hint {
    font-size: 11px;
    color: var(--admin-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    text-decoration: underline;
}

.order-date-text {
    font-size: 12.5px;
    color: #475569;
    font-weight: 500;
}

.order-phone-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-phone-link {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.order-phone-link:hover {
    color: var(--admin-primary);
    text-decoration: underline;
}

.order-wa-link {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #25d366;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.order-wa-link:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.4);
}

.order-action-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.btn-open-order-details {
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    background: var(--admin-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-open-order-details:hover {
    background: var(--admin-primary-dark);
    box-shadow: 0 2px 8px rgba(102, 51, 51, 0.25);
}

/* ORDER DETAILS MODAL - MODERN, SPACIOUS & NON-BOXED REDESIGN */
.order-details-modal-box {
    max-width: 760px;
    width: min(760px, 95vw);
    max-height: 92vh;
    border-radius: 16px;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.order-details-modal-box .modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #eef2f6;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 5;
}

.order-details-modal-box .modal-body {
    padding: 20px 24px;
    background: #ffffff;
}

.order-details-modal-box .modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #eef2f6;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* TOP STATUS STRIP - Clean, subtle banner, not a heavy cramped box */
.order-details-top-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 22px;
    gap: 16px;
    flex-wrap: wrap;
}

.top-strip-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.strip-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.strip-val {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
}

.strip-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--admin-primary);
}

/* ORDER SECTIONS - Seamless flow with subtle dividers instead of heavy nested cards */
.order-details-section {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.order-details-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.section-icon-badge {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(102, 51, 51, 0.08);
    color: var(--admin-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.order-section-header h4 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
}

/* CUSTOMER INFO - Spacious 2-col grid */
.customer-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}

.customer-info-grid .info-row.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    display: block;
    margin-bottom: 3px;
}

.info-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

.customer-name-large {
    font-size: 16px;
    font-weight: 800;
    color: var(--admin-primary);
}

.phone-val-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.phone-number-text {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
}

.phone-actions-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-quick-call {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #bae6fd;
    transition: all 0.2s ease;
}

.btn-quick-call:hover {
    background: #bae6fd;
    color: #0284c7;
}

.btn-quick-wa {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dcfce7;
    color: #15803d;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #bbf7d0;
    transition: all 0.2s ease;
}

.btn-quick-wa:hover {
    background: #bbf7d0;
    color: #166534;
}

.address-text {
    line-height: 1.5;
    color: #334155;
    font-size: 14px;
}

/* Light Note Strip - No box inside box! */
.note-highlight-strip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 3.5px solid #f59e0b;
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 13px;
    line-height: 1.5;
}

/* ORDERED ITEMS - Clean list like modern receipts */
.order-items-clean-list {
    display: flex;
    flex-direction: column;
}

.order-item-clean-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.order-item-clean-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.order-item-thumb-clean {
    width: 52px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: #ffffff;
}

.order-item-info-clean {
    flex: 1;
    min-width: 0;
}

.order-item-title-clean {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.35;
}

.order-item-variants-clean {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.variant-tag {
    font-size: 11px;
    background: #f1f5f9;
    color: #334155;
    padding: 2.5px 7px;
    border-radius: 5px;
    font-weight: 600;
}

.variant-tag.hijab {
    background: #fef3c7;
    color: #b45309;
}

.order-item-price-clean {
    text-align: right;
    flex-shrink: 0;
}

.order-item-price-clean .qty-calc {
    font-size: 11.5px;
    color: #64748b;
}

.order-item-price-clean .item-total-price {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--admin-primary);
    margin-top: 2px;
}

/* BOTTOM 2-COLUMN GRID (Bill + Status) */
.order-details-grid-2col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.order-details-grid-2col .order-details-section {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.bill-summary-clean {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.bill-summary-clean .bill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
}

.bill-summary-clean .bill-row strong {
    color: #1e293b;
}

.bill-summary-clean .bill-row.discount-row {
    color: #16a34a;
}

.bill-summary-clean .bill-row.grand-total-row {
    border-top: 1.5px solid #e2e8f0;
    padding-top: 10px;
    margin-top: 4px;
    font-weight: 800;
    font-size: 14.5px;
    color: var(--admin-primary);
}

.bill-summary-clean .grand-total-amount {
    font-size: 17px;
    font-weight: 800;
    color: var(--admin-primary);
}

/* STATUS QUICK BOX */
.status-quick-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-quick-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.status-select-modern {
    width: 100%;
    padding: 10px 12px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.status-select-modern:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(102, 51, 51, 0.1);
}

/* COURIER SECTION - Sleek highlight panel */
.order-courier-banner {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 8px;
}

.courier-banner-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #15803d;
    font-size: 14px;
    font-weight: 700;
}

.courier-unbooked-desc {
    margin: 0 0 12px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

.courier-booked-info {
    font-size: 13.5px;
}

.btn-courier-booking-big {
    background: #107c41 !important;
    color: #ffffff !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 18px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.btn-courier-booking-big:hover {
    background: #0d6334 !important;
    box-shadow: 0 4px 12px rgba(16, 124, 65, 0.35) !important;
}

.btn-invoice-shortcut {
    background: rgba(102, 51, 51, 0.08);
    color: var(--admin-primary);
    border-color: rgba(102, 51, 51, 0.25);
    font-weight: 600;
}

/* Backward compatibility fallbacks so old styles don't conflict */
.order-details-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 18px !important;
    box-shadow: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 18px !important;
}
.order-details-card:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.order-details-card-header {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 12px !important;
    gap: 8px !important;
}
.order-item-modal-row {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
.note-highlight-box {
    background: #fffbeb !important;
    padding: 9px 13px !important;
    border-radius: 8px !important;
    border: 1px solid #fef3c7 !important;
    border-left: 3.5px solid #f59e0b !important;
}

/* RESPONSIVE ADJUSTMENTS FOR ORDER DETAILS MODAL */
@media (max-width: 680px) {
    .order-details-modal-box {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px auto !important;
        padding: 0 !important;
    }
    .order-details-modal-box .modal-header {
        padding: 14px 16px !important;
    }
    .order-details-modal-box .modal-body {
        padding: 14px 16px !important;
    }
    .order-details-modal-box .modal-footer {
        padding: 12px 16px !important;
    }
    .order-details-top-strip {
        padding: 10px 14px;
        gap: 10px;
    }
    .customer-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .order-details-grid-2col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   ADMIN SECURITY & PIN LOCK SCREEN SYSTEM
   ========================================================================== */
html.admin-locked .admin-sidebar,
html.admin-locked .admin-main {
    display: none !important;
}

.admin-lock-screen {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: radial-gradient(circle at 50% 25%, #1e1b4b 0%, #0f172a 60%, #020617 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.lock-screen-bg-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(99, 102, 241, 0.1) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(40px);
}

.lock-screen-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 30px 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(16, 185, 129, 0.12);
    text-align: center;
    color: #ffffff;
    backdrop-filter: blur(16px);
    position: relative;
    z-index: 2;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lock-screen-brand {
    margin-bottom: 20px;
}

.lock-brand-logo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin: 0 auto 12px;
    display: block;
}

.lock-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(52, 211, 153, 0.25);
    margin-bottom: 10px;
}

.lock-screen-brand h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Jost', sans-serif;
}

.lock-screen-brand p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.45;
}

.pin-input-container {
    margin-bottom: 14px;
}

.pin-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.pin-icon {
    position: absolute;
    left: 16px;
    color: #64748b;
    font-size: 17px;
    pointer-events: none;
}

.pin-input-field {
    width: 100%;
    height: 50px;
    background: rgba(15, 23, 42, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-size: 22px;
    text-align: center;
    letter-spacing: 0.25em;
    font-family: 'Courier New', monospace;
    outline: none;
    transition: all 0.25s ease;
    padding: 0 46px;
}

.pin-input-field:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.pin-toggle-visibility {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s;
}

.pin-toggle-visibility:hover {
    color: #ffffff;
}

.pin-error-message {
    min-height: 22px;
    font-size: 12.5px;
    color: #f87171;
    margin-top: 6px;
    font-weight: 600;
    line-height: 1.4;
}

/* Numeric Keypad */
.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.keypad-btn {
    height: 46px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.keypad-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.keypad-btn:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.25);
}

.keypad-clear {
    color: #f87171 !important;
    font-weight: 700;
}

.keypad-backspace {
    color: #cbd5e1 !important;
}

.btn-unlock-admin {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-unlock-admin:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}

.lock-screen-footer {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.default-pin-hint {
    font-size: 11px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.lock-return-link {
    color: #64748b;
    font-size: 12.5px;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lock-return-link:hover {
    color: #38bdf8;
}

/* Shake Animation on Wrong PIN */
@keyframes shakeCard {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-9px); }
    40%, 80% { transform: translateX(9px); }
}

.shake-card {
    animation: shakeCard 0.4s ease;
}

/* Topbar Lock Button & Mobile Optimization */
.btn-topbar-lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-topbar-lock:hover {
    background: #dc2626;
    color: #ffffff;
}

@media (max-width: 768px) {
    .date-display {
        display: none !important;
    }
    .topbar-right {
        gap: 8px !important;
    }
    .btn-topbar-lock,
    .btn-store-visit {
        padding: 6px 10px !important;
        font-size: 11.5px !important;
        height: 32px !important;
        white-space: nowrap !important;
    }
}

/* ==========================================================================
   SECURITY TAB REDESIGN - CLEAN, ORGANIZED & RESPONSIVE
   ========================================================================== */
.security-banner-card {
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    padding: 18px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: var(--admin-card-shadow);
}

.security-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.security-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.security-title {
    margin: 0 0 3px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--admin-text-main);
}

.security-desc {
    margin: 0;
    font-size: 13px;
    color: var(--admin-text-muted);
}

.security-banner-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.security-badge-shield {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
}

.security-badge-count {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
}

.security-layout-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .security-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* PIN Cards List (Clean, spacious, 100% responsive) */
.pin-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pin-card-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    transition: all 0.2s ease;
}

.pin-card-item:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.pin-card-info-side {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.pin-avatar.master {
    background: #fef3c7;
    color: #b45309;
}

.pin-avatar.secondary {
    background: #e0f2fe;
    color: #0284c7;
}

.pin-card-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pin-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.pin-pill-master {
    background: #fef3c7;
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #fde68a;
}

.pin-pill-secondary {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #bae6fd;
}

.pin-created-date {
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
}

.pin-card-action-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pin-code-display-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 12px;
}

.pin-masked-code {
    font-family: 'Courier New', monospace;
    font-weight: 800;
    letter-spacing: 0.15em;
    font-size: 15px;
    color: #0f172a;
}

.pin-view-eye-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
    transition: color 0.2s;
}

.pin-view-eye-btn:hover {
    color: #0f172a;
}

.pin-btns-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-pin-change {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(102, 51, 51, 0.08);
    color: var(--admin-primary);
    border: 1px solid rgba(102, 51, 51, 0.25);
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pin-change:hover {
    background: var(--admin-primary);
    color: #ffffff;
}

.btn-pin-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #fff;
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn-pin-remove:hover {
    background: #dc2626;
    color: #ffffff;
}

.security-guidance-card {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

@media (max-width: 600px) {
    .security-banner-card {
        padding: 14px 16px;
    }
    .pin-card-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
    }
    .pin-card-action-side {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
    }
}

/* ==========================================================================
   Customer Management Accordion & Mobile-First Responsive Styles
   ========================================================================== */

/* Toggle view on desktop/mobile */
.customer-desktop-table {
    display: block;
    width: 100%;
}

.customer-mobile-accordion {
    display: none;
    width: 100%;
}

/* Card-based Accordion for Customers */
.customer-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
}

.customer-acc-card {
    background: #ffffff;
    border: 1.5px solid var(--admin-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    width: 100%;
    box-sizing: border-box;
}

.customer-acc-card:hover {
    border-color: #cbd5e1;
}

.customer-acc-card.active {
    border-color: #6366f1;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.12);
}

/* Accordion Header (Only shows name & avatar by default) */
.customer-acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    background: #ffffff;
    transition: background-color 0.2s ease;
    gap: 10px;
}

.customer-acc-card.active .customer-acc-header {
    background: #faf5ff;
    border-bottom: 1px solid #f1f5f9;
}

.customer-acc-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.customer-acc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #4338ca;
    font-weight: 800;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid #c7d2fe;
}

.customer-acc-name-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.customer-acc-name {
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-acc-sub-badge {
    display: inline-block;
    font-size: 11.5px;
    color: #6366f1;
    font-weight: 600;
    margin-top: 3px;
}

.customer-acc-header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.customer-acc-tap-hint {
    font-size: 12px;
    font-weight: 700;
    color: #6366f1;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.customer-acc-card.active .customer-acc-tap-hint {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

.customer-acc-tap-hint i.acc-chevron {
    transition: transform 0.25s ease;
    font-size: 11px;
}

.customer-acc-card.active .customer-acc-tap-hint i.acc-chevron {
    transform: rotate(180deg);
}

/* Accordion Body (Details shown only when clicked) */
.customer-acc-body {
    display: none;
    padding: 16px;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    box-sizing: border-box;
}

.customer-acc-card.active .customer-acc-body {
    display: block;
    animation: accSlideDown 0.22s ease-out;
}

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

.customer-acc-details-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.customer-detail-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
}

.customer-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.customer-detail-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.customer-detail-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
    word-break: break-word;
}

.detail-phone-link {
    color: var(--admin-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #fed7d7;
    width: fit-content;
}

.detail-phone-link:hover {
    background: #fed7d7;
}

.detail-username-badge {
    background: #f1f5f9;
    color: #334155;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    display: inline-block;
}

/* Password Reveal Box in Accordion */
.acc-pass-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    max-width: 320px;
}

.acc-pass-display {
    font-family: monospace;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #0f172a;
    word-break: break-all;
}

.btn-acc-eye {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-acc-eye:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Orders Link in Accordion */
.btn-acc-orders-link {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 7px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-acc-orders-link:hover {
    background: #d1fae5;
}

/* Action Buttons in Accordion */
.customer-acc-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.btn-acc-reset-pass {
    background: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
    transition: background-color 0.2s ease;
}

.btn-acc-reset-pass:hover {
    background: #4f46e5;
}

.btn-acc-delete {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-acc-delete:hover {
    background: #dc2626;
    color: #ffffff;
}

/* Responsive view switch rule: on mobile (<= 860px), hide desktop table and show accordion */
@media (max-width: 860px) {
    .customer-desktop-table {
        display: none !important;
    }
    .customer-mobile-accordion {
        display: flex !important;
        flex-direction: column;
    }
}



