/* assets/css/main.css */

/* 1. VARIABLES & RESET */
:root {
    /* Brand Colors */
    --primary: #2563EB;       /* Royal Blue */
    --primary-dark: #1D4ED8;
    --primary-light: #EFF6FF;
    --accent: #F59E0B;        /* Amber */
    
    /* Text Colors */
    --text-main: #1E293B;     /* Slate 800 */
    --text-muted: #64748B;    /* Slate 500 */
    --text-light: #94A3B8;    /* Slate 400 */

    /* Backgrounds */
    --bg-body: #F1F5F9;       /* Slate 100 */
    --bg-card: #FFFFFF;
    --bg-sidebar: #0F172A;    /* Slate 900 */

    /* UI Elements */
    --border: #E2E8F0;
    --border-focus: #BFDBFE;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    
    /* Dimensions & Effects */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 15px rgba(37, 99, 235, 0.15);
    
    --header-height: 64px;
    --sidebar-width: 260px;
    --container-max: 1200px;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-body); color: var(--text-main); line-height: 1.5; font-size: 15px; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
button { font-family: inherit; }

/* 2. LAYOUT & GRID */
.dashboard-layout { display: flex; min-height: 100vh; position: relative; }

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left 0.3s var(--ease-out);
}

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 2rem; }
.container-sm { max-width: 540px; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.grid-2-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .grid-2-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* 3. SIDEBAR (MODERN) */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    color: white;
    height: 100vh;
    position: fixed;
    left: 0; top: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,0.1);
    transition: transform 0.3s var(--ease-out);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}
.brand span { color: var(--primary); }

.sidebar-menu {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.menu-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    font-weight: 600;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    margin-bottom: 0.25rem;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    color: white;
    background: rgba(255,255,255,0.06);
    transform: translateX(4px);
}

.menu-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* 4. DASHBOARD TOP NAVBAR */
.top-navbar {
    height: var(--header-height);
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.page-title { 
    font-size: 1.125rem; 
    font-weight: 700; 
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.menu-toggle:hover {
    background: #F1F5F9;
    color: var(--text-main);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 4.1 PUBLIC HEADER (Homepage, Checkout) */
.main-header {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    height: 60px;
}

.header-content {
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.brand-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.brand-logo span.brand-text { 
    font-size: 1.25rem; 
    color: var(--text-main); 
    font-weight: 700; 
}

/* Mobile Brand Text Logic */
@media (max-width: 640px) {
    .brand-logo span.brand-text {
        display: none; /* Default hide full text */
    }
    .brand-logo::after {
        content: "HDP";
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text-main);
    }
}
@media (min-width: 641px) {
    .brand-logo span.brand-text {
        display: block; /* Show full text on desktop */
    }
    .brand-logo::after {
        content: ""; /* No short text on desktop */
    }
}


.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* 11. HERO SECTION (Modern & Trustworthy) */
.hero-section {
    min-height: 100vh;
    padding: 100px 20px 60px; /* Reduced top padding as it's full screen */
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 150vw; height: 150vw;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem; /* Larger font size */
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Mobile Responsive Adjustments for Hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-section {
        padding-top: 120px; /* More space for header on mobile */
    }
}

/* 13. FOOTER (Professional) */
.site-footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    max-width: var(--container-max);
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* 5. CARDS & COMPONENTS */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-focus);
}

/* Stats Card Variant */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.25rem; }
.stat-info .value { font-size: 1.75rem; font-weight: 700; color: var(--text-main); letter-spacing: -0.02em; }

/* 6. TABLES (Responsive Card View) */
.table-container {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table { width: 100%; border-collapse: collapse; }
.table th {
    background: var(--bg-body);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.table td {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-main);
}
.table tr:hover td { background: #F8FAFC; }

/* Mobile Table -> Cards */
@media (max-width: 768px) {
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table thead { display: none; }
    
    .table tr {
        background: white;
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 1rem;
        box-shadow: var(--shadow-sm);
    }
    
    .table td {
        padding: 0.5rem 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }
    
    .table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        text-align: left;
        margin-right: 1rem;
    }
}

/* 7. BUTTONS & FORMS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.925rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 10px rgba(37, 99, 235, 0.3); }

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-main);
}
.btn-outline:hover { background: var(--bg-body); border-color: var(--text-muted); }

.btn-danger { background: #FEF2F2; color: var(--danger); border-color: #FEE2E2; }
.btn-danger:hover { background: #FEE2E2; }

.btn-success { background: #ECFDF5; color: var(--success); border-color: #D1FAE5; }
.btn-success:hover { background: #D1FAE5; }

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #FFFFFF;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Password Toggle */
.input-group {
    position: relative;
}
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.password-toggle:hover {
    color: var(--primary);
}

/* 8. PROFILE DROPDOWN (ANIMATED - PREMIUM STYLE) */
.profile-wrapper {
    position: relative;
    display: inline-block;
}

.profile-trigger {
    background: transparent; 
    border: none; 
    cursor: pointer;
    display: flex; 
    align-items: center; 
    gap: 0.75rem;
    padding: 0.35rem 0.5rem 0.35rem 0.35rem; 
    border-radius: 50px;
    transition: all 0.2s ease;
    pointer-events: auto;
    min-height: 44px;
    border: 1px solid transparent;
}

.profile-trigger:hover, .profile-trigger.active { 
    background: white;
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.avatar-circle {
    width: 36px; 
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-weight: 700; 
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.profile-name-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    display: none;
}

@media (min-width: 640px) {
    .profile-name-label { display: block; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Premium Dropdown Style */
.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px); 
    right: 0;
    width: 260px;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0,0,0,0.02);
    
    /* Animation State: Hidden */
    opacity: 0; 
    transform: translateY(8px) scale(0.98);
    visibility: hidden;
    pointer-events: none;
    
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 9999;
    overflow: hidden;
}

.profile-dropdown-menu.active {
    opacity: 1; 
    transform: translateY(0) scale(1); 
    visibility: visible;
    pointer-events: auto;
}

/* Dropdown Header */
.pd-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: #F8FAFC;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pd-email {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    word-break: break-all;
}

.pd-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pd-role::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
}

/* Dropdown Body */
.pd-body {
    padding: 8px;
}

.pd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.pd-item:hover {
    background: #F1F5F9;
    color: var(--primary);
}

.pd-icon {
    font-size: 1.1rem;
    opacity: 0.7;
    width: 20px;
    text-align: center;
}

.pd-item:hover .pd-icon { opacity: 1; }

.pd-item.danger {
    color: var(--danger);
    margin-top: 4px;
    border-top: 1px solid transparent; 
}

.pd-item.danger:hover {
    background: #FEF2F2;
    color: #B91C1C;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .profile-dropdown-menu {
        width: 240px;
        right: -8px; /* Slight offset to align with edge */
    }
}

/* 9. MODALS (Fixed Z-Index & Positioning) */
.pd-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5); /* Semi-transparent black */
    z-index: 99999 !important; /* Force highest priority */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    backdrop-filter: blur(8px); /* Increased blur for focus */
    margin: 0; padding: 0;
    overscroll-behavior: contain; /* Prevent body scroll */
}

.pd-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pd-modal {
    background: white;
    width: 90%;
    max-width: 500px; /* Increased for better form fit */
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* Deep shadow */
    transform: scale(0.95) translateY(10px);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; 
    z-index: 100000 !important; /* Higher than overlay */
    margin: auto; /* Center in flex container */
    max-height: 90vh; /* Prevent overflow on small screens */
    overflow-y: auto; /* Scrollable if too tall */
}

/* Modal Content Adjustment */
.order-proof-img {
    max-width: 100%;
    max-height: 200px; /* Limit height */
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #F8FAFC;
    display: block;
    margin: 0 auto;
}

.pd-modal-overlay.active .pd-modal {
    transform: scale(1) translateY(0);
}

.pd-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.pd-form-group { margin-bottom: 16px; }

.pd-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.pd-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

.pd-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.pd-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.pd-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pd-btn-primary { background: var(--primary); color: white; }
.pd-btn-primary:hover { background: var(--primary-dark); }
.pd-btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.pd-btn-secondary:hover { background: var(--bg-body); color: var(--text-main); }

/* 10. ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeIn 0.4s var(--ease-out) forwards; }

/* 12. PRODUCT CARDS (New Modern Design) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #F1F5F9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.product-icon-wrapper {
    height: 140px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--success);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc.expanded {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
}

.desc-content p { margin: 0.5rem 0; color: var(--text-main); }
.desc-list { margin: 0.25rem 0 0.5rem 1rem; padding-left: 0.75rem; list-style: disc; }
.desc-list li { margin: 6px 0; color: var(--text-main); }
.desc-sep { border: 0; border-top: 1px dashed var(--border); margin: 0.75rem 0; }
.desc-thumb { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.desc-ol { margin: 0.25rem 0 0.5rem 1rem; padding-left: 0.75rem; }
.desc-ol li { margin: 6px 0; color: var(--text-main); }
.desc-quote { background: #F8FAFC; border-left: 3px solid var(--border); padding: 8px 12px; border-radius: 8px; color: var(--text-main); margin: 8px 0; }
.product-footer {
    margin-top: auto;
}

.btn-access {
    width: 100%;
    padding: 0.875rem;
    border-radius: 12px;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-access:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* 14. UTILITIES & BADGES */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success { background: #ECFDF5; color: var(--success); }
.badge-warning { background: #FFFBEB; color: var(--warning); }
.badge-danger { background: #FEF2F2; color: var(--danger); }
.badge-info { background: #EFF6FF; color: var(--primary); }

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar Styling */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

.orders-scroll { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 1rem; align-items: stretch; }
.order-card { display: flex; flex-direction: column; text-align: center; width: 340px; min-width: 340px; min-height: 420px; height: auto; overflow: visible; }
@media (max-width: 768px) { .order-card { width: 100%; min-width: 100%; height: auto; } .orders-scroll { padding-bottom: 0.5rem; } }
.order-card .order-proof-img { height: 160px; width: 100%; object-fit: contain; }
.order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: auto; }
.btn-block { width: 100%; }

/* 11. MOBILE RESPONSIVENESS (Dashboard Specific) */
@media (max-width: 768px) {
    /* Sidebar Behavior */
    .sidebar { 
        transform: translateX(-100%); 
        box-shadow: none;
    }
    
    .sidebar.active { 
        transform: translateX(0); 
        box-shadow: 4px 0 24px rgba(0,0,0,0.2);
    }
    
    /* Overlay */
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 45;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        backdrop-filter: blur(2px);
    }
    
    .sidebar.active + .sidebar-overlay { 
        opacity: 1; 
        visibility: visible; 
    }

    /* Content Adjustment */
    .main-content { 
        margin-left: 0; 
        width: 100%;
    }
    
    /* Header Adjustment */
    .top-navbar { 
        padding: 0 1rem; 
    }
    
    .menu-toggle { 
        display: block; /* Show hamburger only on mobile */
    }
    
    .container { 
        padding: 1rem; 
    }
}
