/* style.css - MediCore Common Styles with Dark Mode */

:root {
    /* ============================================
       LIGHT MODE (Default)
       ============================================ */
    /* Primary Colors */
    --primary: #13d79b;
    --primary-dark: #0ba87a;
    --primary-light: #7cefc9;
    --primary-ultra-light: #e6faf3;
    --primary-gradient: linear-gradient(145deg, #0ba87a, #13d79b);
    --shadow-color: rgba(19, 215, 155, 0.15);
    --shadow-color-dark: rgba(19, 215, 155, 0.25);
    
    /* Secondary Colors */
    --secondary: #0d47a1;
    --secondary-light: #e3f2fd;
    
    /* Status Colors */
    --success: #13d79b;
    --warning: #ffa726;
    --danger: #e53935;
    --danger-light: #ffebee;
    --info: #29b6f6;
    
    /* Background Colors */
    --bg-body: #0fc28c;
    --bg-white: #ffffff;
    --bg-app: rgba(255, 255, 255, 0.85);
    --bg-header: rgba(255, 255, 255, 0.7);
    --bg-nav: rgba(255, 255, 255, 0.85);
    --bg-card: #ffffff;
    --bg-hover: #f0f7f3;
    --bg-input: #ffffff;
    --bg-input-error: #ffffff;
    
    /* Text Colors */
    --text-primary: #1b2e1b;
    --text-secondary: #37474f;
    --text-muted: #78909c;
    --text-white: #ffffff;
    --text-link: #15c280;
    --text-placeholder: #b0bec5;
    
    /* Border Colors */
    --border-color: #e8ecf1;
    --border-focus: #15c280;
    --border-error: #e53935;
    
    /* Box Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 30px 60px -20px rgba(46, 125, 50, 0.25);
    --shadow-xl: 0 8px 24px rgba(46, 125, 50, 0.2);
    --shadow-heavy: 0 2px 8px rgba(0, 0, 0, 0.08);
    
    /* Scrollbar */
    --scrollbar-track: #e8ecf1;
    --scrollbar-thumb: #15c280;
    
    /* Toast */
    --toast-bg: #1b2e1b;
    --toast-text: #ffffff;
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* ============================================
       CARD SPECIFIC VARIABLES
       ============================================ */
    --card-bg: #ffffff;
    --card-border: rgba(46, 125, 50, 0.04);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    
    --category-bg: #ffffff;
    --category-border: #e8ecf1;
    --category-active-bg: #f0f7f0;
    --category-active-shadow: 0 4px 16px rgba(46, 125, 50, 0.08);
    
    --filter-bg: #ffffff;
    --filter-border: #e8ecf1;
    --filter-text: #546e7a;
    --filter-active-bg: #15c280;
    --filter-active-text: #ffffff;
    
    --product-bg: #ffffff;
    --product-border: rgba(46, 125, 50, 0.04);
    --product-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    --product-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    
    /* Order History */
    --order-status-delivered: #13d79b;
    --order-status-delivered-bg: #e6faf3;
    --order-status-shipped: #29b6f6;
    --order-status-shipped-bg: #e3f2fd;
    --order-status-processing: #ffa726;
    --order-status-processing-bg: #fff3e0;
    --order-status-cancelled: #e53935;
    --order-status-cancelled-bg: #ffebee;
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
    /* Primary Colors - Slightly muted for dark mode */
    --primary: #10c890;
    --primary-dark: #0d9b6e;
    --primary-light: #5ce0b0;
    --primary-ultra-light: rgba(19, 215, 155, 0.12);
    --shadow-color: rgba(16, 200, 144, 0.15);
    --shadow-color-dark: rgba(16, 200, 144, 0.25);
    
    /* Secondary Colors */
    --secondary: #42a5f5;
    --secondary-light: rgba(66, 165, 245, 0.12);
    
    /* Status Colors */
    --success: #10c890;
    --warning: #ffa726;
    --danger: #ef5350;
    --danger-light: rgba(239, 83, 80, 0.15);
    --info: #42a5f5;
    
    /* Background Colors */
    --bg-body: #0f1923;
    --bg-white: #1a2632;
    --bg-app: rgba(26, 35, 50, 0.92);
    --bg-header: rgba(26, 35, 50, 0.85);
    --bg-nav: rgba(26, 35, 50, 0.85);
    --bg-card: #1e2c3a;
    --bg-hover: #253545;
    --bg-input: #1a2632;
    --bg-input-error: #1a2632;
    
    /* Text Colors */
    --text-primary: #e8edf2;
    --text-secondary: #a0b4c8;
    --text-muted: #6a7f94;
    --text-white: #ffffff;
    --text-link: #10c890;
    --text-placeholder: #4a5f74;
    
    /* Border Colors */
    --border-color: #2a3a4a;
    --border-focus: #10c890;
    --border-error: #ef5350;
    
    /* Box Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 2px 8px rgba(0, 0, 0, 0.4);
    
    /* Scrollbar */
    --scrollbar-track: #1a2632;
    --scrollbar-thumb: #10c890;
    
    /* Toast */
    --toast-bg: #1e2c3a;
    --toast-text: #e8edf2;
    
    /* ============================================
       CARD SPECIFIC VARIABLES - DARK MODE
       ============================================ */
    --card-bg: #1e2c3a;
    --card-border: rgba(46, 125, 50, 0.08);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    
    --category-bg: #1e2c3a;
    --category-border: #2a3a4a;
    --category-active-bg: rgba(19, 215, 155, 0.12);
    --category-active-shadow: 0 4px 16px rgba(19, 215, 155, 0.12);
    
    --filter-bg: #1a2632;
    --filter-border: #2a3a4a;
    --filter-text: #6a7f94;
    --filter-active-bg: #10c890;
    --filter-active-text: #ffffff;
    
    --product-bg: #1e2c3a;
    --product-border: rgba(46, 125, 50, 0.08);
    --product-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --product-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    
    /* Order History - Dark Mode */
    --order-status-delivered: #10c890;
    --order-status-delivered-bg: rgba(19, 215, 155, 0.12);
    --order-status-shipped: #42a5f5;
    --order-status-shipped-bg: rgba(41, 182, 246, 0.12);
    --order-status-processing: #ffa726;
    --order-status-processing-bg: rgba(255, 167, 38, 0.12);
    --order-status-cancelled: #ef5350;
    --order-status-cancelled-bg: rgba(239, 83, 80, 0.12);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-body);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 16px;
    transition: background 0.3s ease;
}

.app-wrapper {
    max-width: 440px;
    width: 100%;
    height: 100vh;
    max-height: 680px;
    background: var(--bg-app);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: appFade 0.4s ease;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@keyframes appFade {
    0% { opacity: 0; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

/* ============================================
   FIXED HEADER
   ============================================ */
.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    background: var(--bg-header);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.home-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-header .brand i {
    font-size: 28px;
    color: var(--primary);
    background: var(--bg-white);
    padding: 10px;
    border-radius: 18px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.home-header .brand h1 {
    font-size: 22px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-header .cart-icon {
    position: relative;
    background: var(--bg-white);
    padding: 10px 14px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.home-header .cart-icon i {
    font-size: 20px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.home-header .cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: white;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    min-width: 20px;
    text-align: center;
}

.home-header .bell-icon {
    position: relative;
    background: var(--bg-white);
    padding: 10px 14px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.home-header .bell-icon i {
    font-size: 20px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.home-header .bell-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: white;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    min-width: 20px;
    text-align: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   SCROLLABLE CONTENT
   ============================================ */
.scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px 8px;
    -webkit-overflow-scrolling: touch;
    transition: background 0.3s ease;
}

.scroll-content::-webkit-scrollbar {
    width: 4px;
}

.scroll-content::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.scroll-content::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
    transition: background 0.3s ease;
}

/* ============================================
   FIXED BOTTOM NAV
   ============================================ */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    padding: 6px 4px 10px;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 40px;
    border: none;
    background: transparent;
    gap: 2px;
    transition: 0.2s;
}

.nav-item i {
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-item.active {
    color: var(--primary);
    background: var(--primary-ultra-light);
}

.nav-item .nav-badge {
    background: var(--danger);
    color: white;
    border-radius: 30px;
    font-size: 10px;
    padding: 1px 8px;
    margin-left: 4px;
}

/* ============================================
   TOAST
   ============================================ */
.toast-box {
    min-height: 34px;
    padding: 4px 0;
    flex-shrink: 0;
}

.toast {
    background: var(--toast-bg);
    color: var(--toast-text);
    padding: 6px 20px;
    border-radius: 60px;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    animation: toastAnim 2.8s ease forwards;
    transition: background 0.3s ease, color 0.3s ease;
}

@keyframes toastAnim {
    0% { opacity: 0; transform: translateY(8px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes cardPop {
    0% { opacity: 0; transform: scale(0.92) translateY(8px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================
   INPUT AUTOCOMPLETE FIX
   ============================================ */
input:-internal-autofill-selected {
    background-image: none !important;
    background-color: var(--bg-input) !important;
    color: var(--text-primary) !important;
}

/* ============================================
   HEADER WITH BACK BUTTON
   ============================================ */
.back-btn {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 40px;
    font-size: 20px;
    color: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn:hover {
    background: var(--bg-hover);
    transform: scale(1.05);
}

.back-btn:active {
    transform: scale(0.92);
}

.page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.page-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.form-group label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-group .input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
    padding: 0 16px;
}

.form-group .input-wrap:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px var(--primary-ultra-light);
}

.form-group .input-wrap.error {
    border-color: var(--border-error);
}

.form-group .input-wrap i {
    color: var(--text-muted);
    font-size: 16px;
    margin-right: 12px;
    width: 20px;
    transition: color 0.3s ease;
}

.form-group .input-wrap input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.form-group .input-wrap input::placeholder {
    color: var(--text-placeholder);
    font-weight: 400;
    transition: color 0.3s ease;
}

.password-toggle {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    padding: 8px;
    margin-left: auto;
    transition: color 0.3s ease;
}

.form-group .error-msg {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    display: none;
    transition: color 0.3s ease;
}

.form-group .error-msg.show {
    display: block;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 8px 24px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--shadow-color-dark);
}

.submit-btn:active {
    transform: scale(0.96);
}

.submit-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================
   SETTINGS PAGE SPECIFIC
   ============================================ */
.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.settings-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px var(--shadow-color);
}

.settings-card .card-icon {
    background: var(--primary-ultra-light);
    color: var(--primary);
}

.settings-card .card-info .title {
    color: var(--text-primary);
}

.settings-card .card-info .desc {
    color: var(--text-muted);
}

.settings-card .card-action {
    color: var(--text-muted);
}

/* ============================================
   NOTIFICATION ITEMS
   ============================================ */
.notif-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.notif-item.unread {
    border-left: 4px solid var(--primary);
    background: var(--primary-ultra-light);
}

.notif-item .notif-title {
    color: var(--text-primary);
}

.notif-item .notif-text {
    color: var(--text-secondary);
}

.notif-item .notif-time {
    color: var(--text-muted);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
    background: var(--product-bg);
    border: 1px solid var(--product-border);
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--product-hover-shadow);
    transform: translateY(-2px);
}

.product-card .prod-name {
    color: var(--text-primary);
}

.product-card .prod-meta {
    color: var(--text-muted);
}

.product-card .price {
    color: var(--primary);
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-card {
    background: var(--category-bg);
    border: 2px solid var(--category-border);
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--category-active-shadow);
}

.category-card.active {
    border-color: var(--primary);
    background: var(--category-active-bg);
    box-shadow: var(--category-active-shadow);
}

.category-card .cat-name {
    color: var(--text-primary);
}

.category-card .cat-count {
    color: var(--text-muted);
}

/* ============================================
   PROFILE SECTION
   ============================================ */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary);
}

.info-card .info-content .label {
    color: var(--text-muted);
}

.info-card .info-content .value {
    color: var(--text-primary);
}

.info-card .icon-wrap {
    background: var(--primary-ultra-light);
    color: var(--primary);
}

/* ============================================
   DANGER ZONE
   ============================================ */
.danger-zone {
    background: var(--danger-light);
    border: 2px solid rgba(239, 83, 80, 0.15);
}

.danger-zone .danger-title {
    color: var(--danger);
}

.danger-zone .danger-desc {
    color: var(--text-secondary);
}

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

.danger-btn:hover {
    box-shadow: 0 8px 24px rgba(239, 83, 80, 0.25);
}

/* ============================================
   SETTINGS PAGE - THEME OPTIONS
   ============================================ */
.theme-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.theme-option {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-option:hover {
    border-color: var(--primary);
    background: var(--primary-ultra-light);
}

.theme-option.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* ============================================
   TOGGLE SWITCH
   ============================================ */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

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

.toggle-switch .slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.toggle-switch .slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--bg-white);
    border-radius: 50%;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px var(--shadow-heavy);
}

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

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

.toggle-switch input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .app-wrapper {
        max-height: 100vh;
        border-radius: 0;
        border: none;
    }
    
    .home-header {
        padding: 12px 16px 10px;
    }
    
    .scroll-content {
        padding: 10px 16px 6px;
    }
    
    .bottom-nav {
        padding: 4px 2px 8px;
    }
    
    .nav-item {
        padding: 2px 8px;
        font-size: 9px;
    }
    
    .nav-item i {
        font-size: 16px;
    }
}

/* ============================================
   SHIMMER LOADING ANIMATION
   ============================================ */
.shimmer {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================
   ORDER CARD
   ============================================ */
.order-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 16px 18px;
    margin-bottom: 12px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary);
}

/* Order card specific elements */
.order-card .order-id {
    color: var(--text-primary);
}

.order-card .order-status-badge.delivered {
    background: var(--order-status-delivered-bg);
    color: var(--order-status-delivered);
}

.order-card .order-status-badge.shipped {
    background: var(--order-status-shipped-bg);
    color: var(--order-status-shipped);
}

.order-card .order-status-badge.processing {
    background: var(--order-status-processing-bg);
    color: var(--order-status-processing);
}

.order-card .order-status-badge.cancelled {
    background: var(--order-status-cancelled-bg);
    color: var(--order-status-cancelled);
}

.order-card .order-items .item-list {
    color: var(--text-secondary);
}

.order-card .order-items .item-list .item-name {
    color: var(--text-primary);
    font-weight: 500;
}

.order-card .order-items .item-list .item-qty {
    color: var(--text-muted);
}

.order-card .order-total .amount {
    color: var(--primary);
}

.order-card .order-footer .track-btn {
    background: var(--primary-ultra-light);
    color: var(--primary);
    border: none;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-card .order-footer .track-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateX(4px);
}

.order-card .order-footer .invoice-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-card .order-footer .invoice-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================
   CATEGORY CARD
   ============================================ */
.category-card {
    background: var(--category-bg);
    border-radius: 20px;
    padding: 14px 8px;
    text-align: center;
    border: 2px solid var(--category-border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardPop 0.4s ease backwards;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--category-active-shadow);
}

.category-card.active {
    border-color: var(--primary);
    background: var(--category-active-bg);
    box-shadow: var(--category-active-shadow);
}

.category-card .cat-icon {
    color: var(--primary);
}

.category-card .cat-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 12px;
}

.category-card .cat-count {
    color: var(--text-muted);
    font-size: 10px;
}

/* ============================================
   FILTER CHIP
   ============================================ */
.filter-chip {
    flex-shrink: 0;
    background: var(--filter-bg);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    color: var(--filter-text);
    border: 1px solid var(--filter-border);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.filter-chip.active {
    background: var(--filter-active-bg);
    color: var(--filter-active-text);
    border-color: var(--filter-active-bg);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.filter-chip.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--shadow-color-dark);
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: var(--product-bg);
    border-radius: 20px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--product-border);
    animation: slideIn 0.3s ease backwards;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--product-shadow);
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--product-hover-shadow);
}

.product-card .prod-img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary-ultra-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.product-card .prod-info .prod-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.product-card .prod-info .prod-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.product-card .prod-info .prod-meta .generic {
    background: var(--primary-ultra-light);
    color: var(--primary);
    padding: 0 8px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 10px;
}

.product-card .prod-right .price {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}

.product-card .prod-right .add-btn {
    margin-top: 4px;
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.product-card .prod-right .add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.product-card .prod-right .add-btn:active {
    transform: scale(0.92);
}

.product-card .prod-right .add-btn.in-cart {
    background: var(--danger);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.2);
}

/* ============================================
   CATEGORY GRID (Additional styles)
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

/* ============================================
   FILTER BAR (Additional styles)
   ============================================ */
.filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

/* ============================================
   PRODUCT GRID (Additional styles)
   ============================================ */
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.product-grid::-webkit-scrollbar {
    width: 4px;
}

.product-grid::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}

.product-grid::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}

/* ============================================
   ORDER HISTORY PAGE SPECIFIC
   ============================================ */
.orders-page {
    padding: 0 0 12px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 4px 16px var(--shadow-color);
}

.stat-item .stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.stat-item .stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.order-card .order-id-date {
    display: flex;
    flex-direction: column;
}

.order-card .order-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-card .order-status-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-card .order-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card .order-items {
    flex: 1;
}

.order-card .order-total {
    text-align: right;
    flex-shrink: 0;
    margin-left: 12px;
}

.order-card .order-total .label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-card .order-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.5s ease;
}

.empty-state .empty-icon {
    font-size: 64px;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}

.empty-state .shop-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 32px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-state .shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-color-dark);
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes cardPop {
    0% { opacity: 0; transform: scale(0.92) translateY(8px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateX(-8px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .category-card {
        padding: 12px 4px;
    }
    
    .category-card .cat-icon {
        font-size: 24px;
    }
    
    .category-card .cat-name {
        font-size: 10px;
    }
    
    .product-card {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .product-card .prod-img {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .product-card .prod-info .prod-name {
        font-size: 13px;
    }
    
    .product-card .prod-right .price {
        font-size: 14px;
    }
    
    .filter-chip {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .stat-item .stat-number {
        font-size: 17px;
    }
    
    .order-card {
        padding: 14px;
    }
    
    .order-card .order-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .order-card .order-total {
        text-align: left;
        margin-left: 0;
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid var(--border-color);
    }
    
    .order-card .order-footer {
        flex-wrap: wrap;
    }
    
    .order-card .order-footer button {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .order-card .order-header {
        flex-direction: column;
        gap: 6px;
    }
}

/* ============================================
   INSTALL BANNER - THEMED
   ============================================ */

.install-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    max-width: 440px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px var(--shadow-heavy);
    border: 1px solid var(--border-color);
    padding: 16px 18px;
    z-index: 999;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.install-banner.show {
    bottom: 20px;
    opacity: 1;
    visibility: visible;
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.install-banner-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-ultra-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
}

.install-banner-text {
    flex: 1;
    min-width: 0;
}

.install-banner-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease;
}

.install-banner-text p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 0;
    transition: color 0.3s ease;
}

.install-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.install-btn {
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.install-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px var(--shadow-color);
}

.install-btn:active {
    transform: scale(0.94);
}

.install-btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}

.close-install-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.close-install-btn:hover {
    color: var(--text-primary);
}

/* ============================================
   IOS INSTALL OVERLAY
   ============================================ */
.ios-install-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: overlayFade 0.3s ease;
}

@keyframes overlayFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.ios-install-modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 400px;
    width: 100%;
    padding: 32px 24px 24px;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(30px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.ios-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.ios-close-btn:hover {
    color: var(--text-primary);
}

.ios-install-content {
    text-align: center;
}

.ios-install-icon {
    font-size: 48px;
    color: var(--primary);
    background: var(--primary-ultra-light);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.ios-install-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.ios-install-content > p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.ios-install-steps {
    text-align: left;
    margin: 16px 0 24px;
}

.ios-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.ios-step:last-child {
    border-bottom: none;
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--primary-ultra-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.step-text {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.step-text strong {
    color: var(--text-primary);
}

.step-text i {
    color: var(--primary);
}

.ios-got-it-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ios-got-it-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .install-banner {
        margin: 0 12px;
        padding: 14px 16px;
        bottom: -120px;
    }

    .install-banner.show {
        bottom: 12px;
    }

    .install-banner-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .install-banner-text h4 {
        font-size: 14px;
    }

    .install-banner-text p {
        font-size: 11px;
    }

    .install-btn {
        font-size: 12px;
        padding: 6px 14px;
    }

    .ios-install-modal {
        padding: 24px 16px 20px;
    }

    .ios-install-content h3 {
        font-size: 19px;
    }

    .ios-step {
        padding: 8px 0;
        gap: 10px;
    }

    .step-text {
        font-size: 13px;
    }

    .ios-got-it-btn {
        font-size: 15px;
        padding: 12px;
    }
}

@media (max-width: 380px) {
    .install-banner-content {
        flex-wrap: wrap;
        gap: 10px;
    }

    .install-banner-text {
        flex: 1 1 100%;
        order: 2;
    }

    .install-banner-actions {
        order: 3;
        width: 100%;
        justify-content: flex-end;
    }

    .install-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================
   SLIM SCROLLBAR - MODERN DESIGN
   ============================================ */

/* For WebKit browsers (Chrome, Edge, Safari, Opera) */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

/* For the form overlay specifically */
.form-sheet::-webkit-scrollbar {
    width: 4px;
}

.form-sheet::-webkit-scrollbar-track {
    background: transparent;
}

.form-sheet::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* For the main content area */
.scroll-content::-webkit-scrollbar {
    width: 4px;
}

.scroll-content::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* For the chat container */
.chat-container::-webkit-scrollbar {
    width: 4px;
}

.chat-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* For the notification list */
.notif-list::-webkit-scrollbar {
    width: 4px;
}

.notif-list::-webkit-scrollbar-track {
    background: transparent;
}

.notif-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* For the product grid */
.product-grid::-webkit-scrollbar {
    width: 4px;
}

.product-grid::-webkit-scrollbar-track {
    background: transparent;
}

.product-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* ============================================
   HIDE SCROLLBAR WHEN NOT SCROLLING
   ============================================ */
.scroll-content,
.chat-container,
.notif-list,
.product-grid,
.form-sheet {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
}

.scroll-content:hover,
.chat-container:hover,
.notif-list:hover,
.product-grid:hover,
.form-sheet:hover {
    scrollbar-color: var(--primary) transparent;
}

/* ============================================
   COMPLETELY HIDE SCROLLBAR (Alternative)
   ============================================ */
/* Uncomment this if you want to hide scrollbars completely */
/*
.scroll-content::-webkit-scrollbar,
.chat-container::-webkit-scrollbar,
.notif-list::-webkit-scrollbar,
.product-grid::-webkit-scrollbar,
.form-sheet::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.scroll-content,
.chat-container,
.notif-list,
.product-grid,
.form-sheet {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
*/

/* Desktop background */
@media (min-width: 768px) {
    body {
        background: #e8f5e9;
        background-image: radial-gradient(ellipse at 30% 20%, rgba(19, 215, 155, 0.08) 0%, transparent 70%),
                          radial-gradient(ellipse at 70% 80%, rgba(19, 215, 155, 0.06) 0%, transparent 70%);
        padding: 40px 20px;
    }
    
    .app-wrapper {
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08), 0 10px 30px rgba(0, 0, 0, 0.04);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .app-wrapper:hover {
        transform: translateY(-4px);
        box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1), 0 15px 40px rgba(0, 0, 0, 0.05);
    }
}

/* ============================================
   OFFLINE BANNER - FIXED
   ============================================ */
.offline-banner {
    display: none !important;
    background: var(--danger);
    color: var(--text-white);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
    border-radius: 0;
    margin: 0;
    animation: fadeSlide 0.3s ease;
}

.offline-banner.show {
    display: block !important;
}

.offline-banner i {
    margin-right: 6px;
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}


/* ============================================
   2FA MODAL STYLES - FIXED
   ============================================ */

/* Form Overlay */
.form-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.form-overlay.open {
    display: flex !important;
}

/* Modal Box */
.modal-box {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 440px;
    width: 100%;
    padding: 28px 24px 24px;
    position: relative;
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

@keyframes modalSlideUp {
    0% { opacity: 0; transform: translateY(30px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-header h3 i {
    margin-right: 8px;
}

.modal-header .close-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
    border-radius: 8px;
}

.modal-header .close-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* Modal Form Elements */
.modal-box .form-group {
    margin-bottom: 16px;
}

.modal-box .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.modal-box .form-group .input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
    padding: 0 16px;
}

.modal-box .form-group .input-wrap:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px var(--primary-ultra-light);
}

.modal-box .form-group .input-wrap i {
    color: var(--text-muted);
    font-size: 16px;
    margin-right: 12px;
    width: 20px;
}

.modal-box .form-group .input-wrap input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.modal-box .form-group .input-wrap input::placeholder {
    color: var(--text-placeholder);
    font-weight: 400;
}

/* Modal Buttons */
.modal-box .cancel-btn,
.modal-box .submit-btn {
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.modal-box .cancel-btn {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.modal-box .cancel-btn:hover {
    background: var(--border-color);
}

.modal-box .submit-btn {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.modal-box .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-color-dark);
}

.modal-box .submit-btn.danger {
    background: var(--danger);
}

.modal-box .submit-btn.danger:hover {
    box-shadow: 0 8px 24px rgba(229, 57, 53, 0.25);
}

/* Modal Text */
.modal-box p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .modal-box {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
        max-height: 95vh;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-box .form-group .input-wrap input {
        font-size: 14px;
        padding: 12px 0;
    }

    .modal-box .cancel-btn,
    .modal-box .submit-btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    .modal-box p {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .modal-box {
        padding: 16px 12px;
    }

    .modal-box .form-group .input-wrap {
        padding: 0 12px;
    }

    .modal-box .form-group .input-wrap input {
        font-size: 13px;
    }
}