    :root {
        --primary: #5c6bc0;
        --primary-light: #8e99e8;
        --primary-dark: #3f51b5;
        --secondary: #7c4dff;
        --accent: #ff6b6b;
        --success: #4caf50;
        --warning: #ff9800;
        --danger: #f44336;
        --info: #2196f3;
        --bg-primary: #f8fafc;
        --bg-secondary: #ffffff;
        --bg-tertiary: #f1f5f9;
        --text-primary: #1e293b;
        --text-secondary: #64748b;
        --text-muted: #94a3b8;
        --border-color: #e2e8f0;
        --border-light: #f1f5f9;
        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
        --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
        --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
        --radius-sm: 6px;
        --radius: 10px;
        --radius-lg: 16px;
        --radius-xl: 24px;
    }
    #sidebar{
        z-index: 49 !important;
    }

    .header-topbar-area.two.bg-white{
        z-index: 49;
        position: relative;
    }

    .dataTables_paginate.paging_simple_numbers span{
        align-content: center; 
    }


    body {font-family: "Inter", sans-serif;background: var(--bg-primary);color: var(--text-primary);min-height: 100vh;line-height: 1.6;}
    /* Layout */
    .app-container {display: flex;padding: 40px 80px;min-height: 100vh;gap: 40px;}
    /* Sidebar */
    .sidebar {width: 280px;background: var(--bg-secondary);border-right: 1px solid var(--border-color);position: fixed;height: 100vh;overflow-y: auto;z-index: 1000;transition: transform 0.3s ease;}
    .sidebar-header {padding: 1.5rem;border-bottom: 1px solid var(--border-color);}
    .logo {display: flex;align-items: center;gap: 0.75rem;text-decoration: none;}
    .logo-icon {width: 42px;height: 42px;background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);border-radius: var(--radius);display: flex;align-items: center;justify-content: center;color: white;font-size: 1.25rem;}
    .logo-text {font-size: 1.35rem;font-weight: 700;color: var(--text-primary);}
    .logo-text span {color: var(--primary);}
    .sidebar-nav {padding: 1rem 0;}
    .nav-section {margin-bottom: 0.5rem;}
    .nav-section-title {padding: 0.75rem 1.5rem;font-size: 0.7rem;font-weight: 600;text-transform: uppercase;letter-spacing: 0.05em;color: var(--text-muted);}
    .nav-menu {list-style: none;}
    .nav-item {padding: 0 0.75rem;}
    .nav-link {display: flex;align-items: center;gap: 0.875rem;padding: 0.75rem 1rem;color: var(--text-secondary);text-decoration: none;border-radius: var(--radius);font-weight: 500;font-size: 0.9rem;transition: all 0.2s ease;margin-bottom: 2px;}
    .nav-link:hover {background: var(--bg-tertiary);color: var(--text-primary);}
    .nav-link.active {background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);color: white;box-shadow: var(--shadow-md);}
    .nav-link i {width: 20px;text-align: center;font-size: 1rem;}
    .nav-badge {margin-left: auto;background: var(--accent);color: white;padding: 0.15rem 0.5rem;border-radius: 20px;font-size: 0.7rem;font-weight: 600;}
    .nav-link.active .nav-badge {background: rgba(255, 255, 255, 0.3);}
    /* User Card in Sidebar */
    .sidebar-user {margin: 0;padding: 1rem;background: var(--bg-tertiary);border-radius: var(--radius-lg);}
    .sidebar-user-info {display: flex;align-items: center;gap: 0.75rem;}
    .sidebar-user-avatar {min-width: 45px;height: 45px;border-radius: 50%;background: #2196f3;display: flex;align-items: center;justify-content: center;color: white;font-weight: 600;font-size: 1rem;}
    .sidebar-user-details h4 {font-size: 0.9rem;font-weight: 600;color: var(--text-primary);}
    .sidebar-user-details p {font-size: 0.75rem;color: var(--text-muted);}
    .logout-btn {display: flex;align-items: center;justify-content: center;gap: 0.5rem;padding: 0.6rem;background: white;border: 1px solid var(--border-color);border-radius: var(--radius);color: var(--text-secondary);font-size: 0.85rem;font-weight: 500;cursor: pointer;transition: all 0.2s ease;}
    .logout-btn:hover {background: var(--danger);color: white;border-color: var(--danger);}
    /* Main Content */
    .main-content {flex: 1;margin-left: 0;background: #fff;min-height: 100vh;transition: margin-left 0.3s ease;}
    /* Top Header */
    .top-header {background: var(--bg-secondary);border-bottom: 1px solid var(--border-color);padding: 1rem 2rem;display: flex;justify-content: space-between;align-items: center;position: sticky;top: 0;z-index: 100;}
    .menu-toggle {display: none !important;background: none;border: none;font-size: 1.25rem;color: var(--text-primary);cursor: pointer;padding: 0.5rem;}
    .header-left {display: flex;align-items: center;gap: 1rem;}
    .page-title h1 {font-size: 1.5rem;font-weight: 700;color: var(--text-primary);}
    .page-title p {font-size: 0.85rem;color: var(--text-secondary);}
    .header-right {display: flex;align-items: center;gap: 1rem;}
    .search-box {display: flex;align-items: center;background: var(--bg-tertiary);padding: 0.6rem 1rem;border-radius: 50px;gap: 0.5rem;border: 1px solid transparent;transition: all 0.2s ease;}
    .search-box:focus-within {border-color: var(--primary);background: white;box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.1);}
    .search-box input {border: none;background: none;outline: none;font-size: 0.875rem;color: var(--text-primary);width: 200px;}
    .search-box input::placeholder {color: var(--text-muted);}
    .search-box i {color: var(--text-muted);}
    .header-btn {width: 42px;height: 42px;border-radius: var(--radius);border: 1px solid var(--border-color);background: white;color: var(--text-secondary);display: flex;align-items: center;justify-content: center;cursor: pointer;position: relative;transition: all 0.2s ease;}
    .header-btn:hover {background: var(--bg-tertiary);color: var(--primary);}
    .header-btn .badge {position: absolute;top: -4px;right: -4px;width: 18px;height: 18px;background: var(--accent);color: white;border-radius: 50%;font-size: 0.65rem;display: flex;align-items: center;justify-content: center;font-weight: 600;}
    /* Page Content */
    .page-content {padding: 2rem;}
    .page-section {display: none;}
    .page-section.active {display: block;animation: fadeIn 0.3s ease;}
    @keyframes fadeIn {
        from {opacity: 0;transform: translateY(10px);
        }
        to {opacity: 1;transform: translateY(0);
        }
    }


    
    /* Cards */
    .card {background: var(--bg-secondary);border-radius: var(--radius-lg);border: 1px solid var(--border-color);box-shadow: var(--shadow-sm);overflow: hidden;}
    .card-header {padding: 1.25rem 1.5rem;border-bottom: 1px solid var(--border-color);display: flex;justify-content: space-between;align-items: center;flex-wrap: wrap;gap: 1rem;}
    .card-title {font-size: 1.1rem;font-weight: 600;color: var(--text-primary);display: flex;align-items: center;gap: 0.5rem;}
    .card-title i {color: var(--primary);}
    .card-body {padding: 1.5rem;}
    /* Welcome Section */
    .welcome-banner {background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);border-radius: var(--radius-xl);padding: 2rem;color: white;position: relative;overflow: hidden;margin-bottom: 2rem;}
    .welcome-banner::before {content: "";position: absolute;top: -50%;right: -10%;width: 300px;height: 300px;background: rgba(255, 255, 255, 0.1);border-radius: 50%;}
    .welcome-banner::after {content: "";position: absolute;bottom: -30%;right: 20%;width: 150px;height: 150px;background: rgba(255, 255, 255, 0.05);border-radius: 50%;}
    .welcome-content {position: relative;z-index: 1;display: flex;justify-content: space-between;align-items: center;flex-wrap: wrap;gap: 1.5rem;}
    .welcome-text h1 {font-size: 1.75rem;font-weight: 700;margin-bottom: 0.5rem;}
    .welcome-text p {opacity: 0.9;font-size: 0.95rem;max-width: 450px;}
    .welcome-actions {display: flex;gap: 1rem;}
    .btn {display: inline-flex;align-items: center;gap: 0.5rem;padding: 0.75rem 1.5rem;border-radius: 50px;font-size: 0.9rem;font-weight: 600;cursor: pointer;transition: all 0.2s ease;text-decoration: none;border: none;font-family: inherit;}
    .btn-white {background: white;color: var(--primary);}
    .btn-white:hover {transform: translateY(-2px);box-shadow: var(--shadow-lg);}
    .btn-outline-white {background: transparent;color: white;border: 2px solid rgba(255, 255, 255, 0.5);}
    .btn-outline-white:hover {background: rgba(255, 255, 255, 0.1);border-color: white;}
    .btn-primary {background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);color: white;}
    .btn-primary:hover {transform: translateY(-2px);box-shadow: var(--shadow-lg);}
    .btn-secondary {background: var(--bg-tertiary);color: var(--text-primary);}
    .btn-secondary:hover {background: var(--border-color);}
    .btn-success {background: var(--success);color: white;}
    .btn-danger {background: var(--danger);color: white;}
    .btn-sm {padding: 0.5rem 1rem;font-size: 0.8rem;}
    .btn-icon {width: 36px;height: 36px;padding: 0;border-radius: var(--radius);display: inline-flex;align-items: center;justify-content: center;}
    /* Stats Grid */
    .stats-grid {display: grid;grid-template-columns: repeat(4, 1fr);gap: 1.5rem;margin-bottom: 2rem;}
    .stat-card {background: var(--bg-secondary);border-radius: var(--radius-lg);padding: 1.5rem;border: 1px solid var(--border-color);transition: all 0.3s ease;position: relative;overflow: hidden;}
    .stat-card:hover {transform: translateY(-4px);box-shadow: var(--shadow-lg);}
    .stat-card::before {content: "";position: absolute;top: 0;left: 0;right: 0;height: 3px;}
    .stat-card.purple::before {background: linear-gradient(90deg, var(--primary), var(--secondary));}
    .stat-card.green::before {background: linear-gradient(90deg, #4caf50, #8bc34a);}
    .stat-card.red::before {background: linear-gradient(90deg, #f44336, #ff5722);}
    .stat-card.orange::before {background: linear-gradient(90deg, #ff9800, #ffc107);}

    .stat-header {display: flex;justify-content: space-between;align-items: flex-start;margin-bottom: 1rem;}
    .stat-icon {width: 48px;height: 48px;border-radius: var(--radius);display: flex;align-items: center;justify-content: center;font-size: 1.25rem;}
    .stat-card.purple .stat-icon {background: rgba(92, 107, 192, 0.1);color: var(--primary);}
    .stat-card.green .stat-icon {background: rgba(76, 175, 80, 0.1);color: var(--success);}
    .stat-card.red .stat-icon {background: rgba(244, 67, 54, 0.1);color: var(--danger);}
    .stat-card.orange .stat-icon {background: rgba(255, 152, 0, 0.1);color: var(--warning);}

    .stat-trend {display: flex;align-items: center;gap: 0.25rem;font-size: 0.75rem;font-weight: 600;padding: 0.25rem 0.5rem;border-radius: 20px;}
    .stat-trend.up {background: rgba(76, 175, 80, 0.1);color: var(--success);}
    .stat-trend.down {background: rgba(244, 67, 54, 0.1);color: var(--danger);}
    .stat-value {font-size: 2rem;font-weight: 700;color: var(--text-primary);margin-bottom: 0.25rem;}
    .stat-label {font-size: 0.875rem;color: var(--text-secondary);font-weight: 500;}
    /* Dashboard Grid */
    .dashboard-grid {display: grid;grid-template-columns: 1fr 380px;gap: 1.5rem;}
    /* Account Info */
    .account-header {display: flex;align-items: center;gap: 1rem;padding-bottom: 1.5rem;border-bottom: 1px solid var(--border-color);margin-bottom: 1.5rem;}
    .account-avatar {width: 70px;height: 70px;border-radius: var(--radius-lg);background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);display: flex;align-items: center;justify-content: center;color: white;font-size: 1.5rem;font-weight: 600;position: relative;}
    .account-avatar .verified {position: absolute;bottom: -5px;right: -5px;width: 22px;height: 22px;background: var(--success);border: 2px solid white;border-radius: 50%;display: flex;align-items: center;justify-content: center;}
    .account-avatar .verified i {font-size: 0.6rem;color: white;}
    .account-details h3 {font-size: 1.15rem;font-weight: 600;color: var(--text-primary);}
    .account-details p {font-size: 0.85rem;color: var(--text-secondary);}
    .account-details .member-badge {display: inline-flex;align-items: center;gap: 0.25rem;padding: 0.25rem 0.75rem;background: rgba(255, 152, 0, 0.1);color: var(--warning);border-radius: 20px;font-size: 0.75rem;font-weight: 600;margin-top: 0.5rem;}
    .info-list {display: flex;flex-direction: column;gap: 1rem;}
    .info-item {display: flex;justify-content: space-between;align-items: center;padding: 0.75rem 0;border-bottom: 1px solid var(--border-light);}
    .info-item:last-child {border-bottom: none;}
    .info-label {display: flex;align-items: center;gap: 0.75rem;color: var(--text-secondary);font-size: 0.9rem;}
    .info-label i {width: 35px;height: 35px;background: var(--bg-tertiary);border-radius: var(--radius);display: flex;align-items: center;justify-content: center;color: var(--text-primary);}
    .info-value {font-weight: 500;color: var(--text-primary);}
    /* Toggle Switch */
    .toggle-container {display: flex;align-items: center;gap: 0.75rem;}
    .toggle-label {font-size: 0.8rem;color: var(--text-secondary);}
    .toggle-label.active {color: var(--success);}
    .toggle {position: relative;width: 48px;height: 26px;}
    .toggle input {opacity: 0;width: 0;height: 0;}
    .toggle-slider {position: absolute;cursor: pointer;top: 0;left: 0;right: 0;bottom: 0;background: var(--border-color);border-radius: 34px;transition: 0.3s;}
    .toggle-slider::before {content: "";position: absolute;height: 20px;width: 20px;left: 3px;bottom: 3px;background: white;border-radius: 50%;transition: 0.3s;box-shadow: var(--shadow);}
    .toggle input:checked + .toggle-slider {background: var(--success);}
    .toggle input:checked + .toggle-slider::before {transform: translateX(22px);}
    /* Recent Activity */
    .activity-list {display: flex;flex-direction: column;}
    .activity-item {display: flex;align-items: center;gap: 1rem;padding: 1rem;border-radius: var(--radius);transition: background 0.2s ease;cursor: pointer;}
    .activity-item:hover {background: var(--bg-tertiary);}
    .activity-icon {width: 45px;height: 45px;border-radius: var(--radius);display: flex;align-items: center;justify-content: center;font-size: 1.1rem;}
    .activity-icon.purchase {background: rgba(92, 107, 192, 0.1);color: var(--primary);}
    .activity-icon.redeem {background: rgba(76, 175, 80, 0.1);color: var(--success);}
    .activity-icon.gift {background: rgba(255, 152, 0, 0.1);color: var(--warning);}
    .activity-icon.expired {background: rgba(244, 67, 54, 0.1);color: var(--danger);}

    .activity-details {flex: 1;}
    .activity-details h4 {font-size: 0.9rem;font-weight: 600;color: var(--text-primary);margin-bottom: 0.15rem;}
    .activity-details p {font-size: 0.8rem;color: var(--text-muted);}
    .activity-amount {text-align: right;}
    .activity-amount .amount {font-size: 0.95rem;font-weight: 600;color: var(--text-primary);}
    .activity-amount .status {font-size: 0.7rem;padding: 0.2rem 0.6rem;border-radius: 20px;font-weight: 500;}
    .status-completed {background: rgba(76, 175, 80, 0.1);color: var(--success);}
    .status-pending {background: rgba(255, 152, 0, 0.1);color: var(--warning);}
    .status-failed {background: rgba(244, 67, 54, 0.1);color: var(--danger);}

    /* Tables */
    .table-container {overflow-x: auto;}
    .data-table {width: 100%;border-collapse: collapse;}
    .data-table th,
    .data-table td {padding: 1rem;text-align: left;border-bottom: 1px solid var(--border-light);}
    .data-table th {background: var(--bg-tertiary);font-weight: 600;font-size: 0.8rem;text-transform: uppercase;letter-spacing: 0.03em;color: var(--text-secondary);}
    .data-table tbody tr {transition: background 0.2s ease;}
    .data-table tbody tr:hover {background: var(--bg-tertiary);}
    .data-table td {font-size: 0.9rem;color: var(--text-primary);}
    .order-id {font-weight: 600;color: var(--primary);}
    .giftcard-preview {display: flex;align-items: center;gap: 0.75rem;}
    .giftcard-preview img {width: 50px;height: 35px;border-radius: 4px;object-fit: cover;background: linear-gradient(135deg, var(--primary), var(--secondary));}
    .giftcard-preview .placeholder {width: 50px;height: 35px;border-radius: 4px;background: linear-gradient(135deg, var(--primary), var(--secondary));display: flex;align-items: center;justify-content: center;color: white;font-size: 0.7rem;}
    .masked-code {font-family: monospace;background: var(--bg-tertiary);padding: 0.25rem 0.5rem;border-radius: 4px;font-size: 0.85rem;}
    .action-btns {display: flex;gap: 0.5rem;}
    /* Filters */
    .filters-bar {display: flex;flex-wrap: wrap;gap: 1rem;margin-bottom: 1.5rem;padding: 1rem;background: var(--bg-tertiary);border-radius: var(--radius);}
    .filter-group {display: flex;align-items: center;gap: 0.5rem;}
    .filter-group label {font-size: 0.85rem;font-weight: 500;color: var(--text-secondary);}
    .filter-select,
    .filter-input {padding: 0.5rem 1rem;border: 1px solid var(--border-color);border-radius: var(--radius);font-size: 0.85rem;background: white;color: var(--text-primary);outline: none;transition: border-color 0.2s ease;}
    .filter-select:focus,
    .filter-input:focus {border-color: var(--primary);}
    /* Wishlist Grid */
    .wishlist-grid {display: grid;grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));gap: 1.5rem;}
    .wishlist-card {background: var(--bg-secondary);border-radius: var(--radius-lg);border: 1px solid var(--border-color);overflow: hidden;transition: all 0.3s ease;}
    .wishlist-card:hover {transform: translateY(-4px);box-shadow: var(--shadow-lg);}
    .wishlist-image {height: 240px;background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);display: flex;align-items: center;justify-content: center;position: relative;}
    .wishlist-image i {font-size: 3rem;color: white;opacity: 0.8;}
    .wishlist-badge {position: absolute;top: 1rem;left: 1rem;background: white;padding: 0.25rem 0.75rem;border-radius: 20px;font-size: 0.75rem;font-weight: 600;color: var(--primary);}
    .remove-wishlist {position: absolute;top: 1rem;right: 1rem;width: 32px;height: 32px;background: rgba(255, 255, 255, 0);border: none;border-radius: 50%;display: flex;align-items: center;justify-content: center;cursor: pointer;color: var(--danger);transition: all 0.2s ease;}
    .remove-wishlist:hover {background: var(--danger);color: white;transform: scale(1.1);}
    .remove-wishlist:hover .remove-wishlist i {color: var(--danger);transform: scale(1.1);}
    .wishlist-content {padding: 1.25rem;}
    .wishlist-brand {font-size: 0.75rem;color: var(--text-muted);text-transform: uppercase;letter-spacing: 0.05em;margin-bottom: 0.25rem;}
    .wishlist-name {font-size: 1.1rem;font-weight: 600;color: var(--text-primary);margin-bottom: 0.5rem;}
    .wishlist-meta {display: flex;flex-wrap: wrap;gap: 0.75rem;margin-bottom: 1rem;}
    .wishlist-meta span {display: flex;align-items: center;gap: 0.35rem;font-size: 0.8rem;color: var(--text-secondary);}
    .wishlist-meta span i {color: var(--primary);}
    .wishlist-value {display: flex;align-items: center;justify-content: space-between;padding-top: 1rem;border-top: 1px solid var(--border-light);}
    .wishlist-price {font-size: 1.1rem;font-weight: 700;color: var(--primary);}
    /* Profile Section */
    .profile-grid {display: grid;grid-template-columns: 300px 1fr;gap: 2rem;}
    .profile-sidebar {display: flex;flex-direction: column;gap: 1.5rem;}
    .profile-card {text-align: center;padding: 2rem;}
    .profile-photo {width: 120px;height: 120px;border-radius: 50%;background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);display: flex;align-items: center;justify-content: center;color: white;font-size: 3rem;font-weight: 600;margin: 0 auto 1.25rem;position: relative;}
    .profile-photo .edit-photo {position: absolute;bottom: 5px;right: 5px;width: 32px;height: 32px;background: white;border: 2px solid var(--border-color);border-radius: 50%;display: flex;align-items: center;justify-content: center;cursor: pointer;color: var(--text-secondary);transition: all 0.2s ease;}
    .profile-photo .edit-photo:hover {background: var(--primary);color: white;border-color: var(--primary);}
    .profile-name {font-size: 1.35rem;font-weight: 700;color: var(--text-primary);margin-bottom: 0.25rem;}
    .profile-email {font-size: 0.9rem;color: var(--text-secondary);margin-bottom: 0.75rem;}
    .profile-member-id {display: inline-flex;align-items: center;gap: 0.5rem;background: var(--bg-tertiary);padding: 0.5rem 1rem;border-radius: 50px;font-size: 0.85rem;color: var(--text-secondary);}
    .profile-member-id strong {color: var(--text-primary);}
    .profile-nav {padding: 0.5rem;}
    .profile-nav-item {display: flex;align-items: center;gap: 0.75rem;padding: 0.875rem 1rem;border-radius: var(--radius);color: var(--text-secondary);cursor: pointer;transition: all 0.2s ease;font-weight: 500;}
    .profile-nav-item:hover {background: var(--bg-tertiary);color: var(--text-primary);}
    .profile-nav-item.active {background: rgba(92, 107, 192, 0.1);color: var(--primary);}
    .profile-nav-item i {width: 20px;text-align: center;}
    .profile-main {display: flex;flex-direction: column;gap: 1.5rem;}
    /* Form Styles */
    .form-grid {display: grid;grid-template-columns: repeat(2, 1fr);gap: 1.25rem;}
    .form-group {margin-bottom: 1.25rem;}
    .form-group.full-width {grid-column: 1 / -1;}
    .form-label {display: block;font-size: 0.85rem;font-weight: 600;color: var(--text-primary);margin-bottom: 0.5rem;}
    .form-input,
    .form-select,
    .form-textarea {width: 100%;padding: 0.75rem 1rem;border: 1px solid var(--border-color);border-radius: var(--radius);font-size: 0.9rem;color: var(--text-primary);background: white;transition: all 0.2s ease;font-family: inherit;}
    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {outline: none;border-color: var(--primary);box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.1);}
    .form-textarea {min-height: 120px;resize: vertical;}
    .form-input:disabled {background: var(--bg-tertiary);cursor: not-allowed;}
    .form-hint {font-size: 0.8rem;color: var(--text-muted);margin-top: 0.35rem;}
    .form-actions {display: flex;gap: 1rem;margin-top: 1.5rem;padding-top: 1.5rem;border-top: 1px solid var(--border-color);}
    /* Loyalty Points */
    .points-summary {display: grid;grid-template-columns: repeat(3, 1fr);gap: 1.5rem;margin-bottom: 2rem;}
    .points-card {background: var(--bg-secondary);border-radius: var(--radius-lg);padding: 1.5rem;border: 1px solid var(--border-color);text-align: center;}
    .points-card.highlight {background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);color: white;border: none;}
    .points-card-value {font-size: 2rem;font-weight: 700;margin-bottom: 0.25rem;}
    .points-card-label {font-size: 0.85rem;opacity: 0.8;}
    .points-history {display: flex;flex-direction: column;}
    .points-item {display: flex;align-items: center;padding: 0.5rem 1rem;border-bottom: 1px solid var(--border-light);}
    .points-item:last-child {border-bottom: none;}
    .points-icon {width: 42px;height: 42px;border-radius: var(--radius);display: flex;align-items: center;justify-content: center;margin-right: 1rem;}
    .points-icon.earned {background: rgba(76, 175, 80, 0.1);color: var(--success);}
    .points-icon.redeemed {background: rgba(244, 67, 54, 0.1);color: var(--danger);}
    .points-icon.bonus {background: rgba(255, 152, 0, 0.1);color: var(--warning);}

    .points-details {flex: 1;}
    .points-details h4 {font-size: 0.9rem;font-weight: 600;color: var(--text-primary);}
    .points-details p {font-size: 0.8rem;color: var(--text-muted);}
    .points-value {text-align: right;}
    .points-value .amount {font-size: 1rem;font-weight: 600;}
    .points-value .amount.positive {color: var(--success);}
    .points-value .amount.negative {color: var(--danger);}

    .points-value .balance {font-size: 0.75rem;color: var(--text-muted);}
    /* Help & Support */
    .support-grid {display: grid;grid-template-columns: repeat(3, 1fr);gap: 1.5rem;margin-bottom: 2rem;}
    .support-card {background: var(--bg-secondary);border-radius: var(--radius-lg);padding: 1.5rem;border: 1px solid var(--border-color);text-align: center;transition: all 0.3s ease;}
    .support-card:hover {transform: translateY(-4px);box-shadow: var(--shadow-lg);}
    .support-icon {width: 60px;height: 60px;border-radius: var(--radius-lg);background: rgba(92, 107, 192, 0.1);display: flex;align-items: center;justify-content: center;margin: 0 auto 1rem;font-size: 1.5rem;color: var(--primary);}
    .support-card h4 {font-size: 1rem;font-weight: 600;color: var(--text-primary);margin-bottom: 0.5rem;}
    .support-card p {font-size: 0.85rem;color: var(--text-secondary);}
    .support-card a {color: var(--primary);text-decoration: none;font-weight: 500;}
    .support-card a:hover {text-decoration: underline;}
    /* Modal */
    .modal-overlay {position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0, 0, 0, 0.5);display: flex;align-items: center;justify-content: center;z-index: 2000;opacity: 0;visibility: hidden;transition: all 0.3s ease;}
    .modal-overlay.active {opacity: 1;visibility: visible;}
    .modal {background: white;border-radius: var(--radius-xl);width: 100%;max-width: 500px;max-height: 90vh;overflow-y: auto;transform: scale(0.9) translateY(20px);transition: transform 0.3s ease;}
    .modal-overlay.active .modal {transform: scale(1) translateY(0);}
    .modal-header {padding: 1.5rem;border-bottom: 1px solid var(--border-color);display: flex;justify-content: space-between;align-items: center;}
    .modal-title {font-size: 1.25rem;font-weight: 600;color: var(--text-primary);}
    .modal-close {background: none;border: none;font-size: 1.25rem;color: var(--text-muted);cursor: pointer;padding: 0.25rem;transition: color 0.2s ease;}
    .modal-close:hover {color: var(--danger);}
    .modal-body {padding: 1.5rem;}
    .modal-footer {padding: 1.25rem 1.5rem;border-top: 1px solid var(--border-color);display: flex;justify-content: flex-end;gap: 1rem;}
    /* Empty State */
    .empty-state {text-align: center;padding: 3rem;}
    .empty-state-icon {width: 80px;height: 80px;background: var(--bg-tertiary);border-radius: 50%;display: flex;align-items: center;justify-content: center;margin: 0 auto 1.5rem;font-size: 2rem;color: var(--text-muted);}
    .empty-state h3 {font-size: 1.25rem;font-weight: 600;color: var(--text-primary);margin-bottom: 0.5rem;}
    .empty-state p {color: var(--text-secondary);margin-bottom: 1.5rem;}
    /* Notification Toast */
    .toast-container {position: fixed;top: 1rem;right: 1rem;z-index: 3000;display: flex;flex-direction: column;gap: 0.75rem;}
    .toast {background: white;border-radius: var(--radius);padding: 1rem 1.25rem;box-shadow: var(--shadow-xl);display: flex;align-items: center;gap: 0.75rem;min-width: 300px;animation: slideIn 0.3s ease;}
    @keyframes slideIn {
        from {transform: translateX(100%);opacity: 0;
        }
        to {transform: translateX(0);opacity: 1;
        }
    }
    .toast.success {border-left: 4px solid var(--success);}
    .toast.error {border-left: 4px solid var(--danger);}
    .toast.warning {border-left: 4px solid var(--warning);}
    .toast.info {border-left: 4px solid var(--info);}

    .toast-icon {width: 24px;height: 24px;border-radius: 50%;display: flex;align-items: center;justify-content: center;font-size: 0.75rem;}
    .toast.success .toast-icon {background: rgba(76, 175, 80, 0.1);color: var(--success);}
    .toast.error .toast-icon {background: rgba(244, 67, 54, 0.1);color: var(--danger);}

    .toast-content {flex: 1;}
    .toast-content strong {display: block;font-size: 0.9rem;color: var(--text-primary);}
    .toast-content span {font-size: 0.8rem;color: var(--text-secondary);}
    /* Order Detail Modal Content */
    .order-detail-grid {display: grid;gap: 1rem;}
    .order-detail-row {display: flex;justify-content: space-between;padding: 0.75rem 0;border-bottom: 1px solid var(--border-light);}
    .order-detail-row:last-child {border-bottom: none;}
    .order-detail-label {color: var(--text-secondary);font-size: 0.9rem;}
    .order-detail-value {font-weight: 500;color: var(--text-primary);}
    .giftcard-design-preview {width: 100%;height: 150px;background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);border-radius: var(--radius);display: flex;align-items: center;justify-content: center;color: white;font-size: 2rem;margin-top: 1rem;}
    /* Sidebar overlay for mobile */
    .sidebar-overlay {display: none;position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0, 0, 0, 0.5);z-index: 999;}
    .sidebar-overlay.active {display: block;}
    /* Invoice Button */
    .invoice-btn {display: inline-flex;align-items: center;gap: 0.35rem;color: var(--primary);text-decoration: none;font-size: 0.85rem;font-weight: 500;}
    .invoice-btn:hover {text-decoration: underline;}
    /* Tabs */
    .tabs {display: flex;gap: 0.5rem;margin-bottom: 1.5rem;border-bottom: 2px solid var(--border-color);}
    .tab-btn {padding: 0.75rem 1.5rem;background: none;border: none;font-size: 0.9rem;font-weight: 500;color: var(--text-secondary);cursor: pointer;position: relative;transition: color 0.2s ease;}
    .tab-btn:hover {color: var(--text-primary);}
    .tab-btn.active {color: var(--primary);}
    .tab-btn.active::after {content: "";position: absolute;bottom: -2px;left: 0;right: 0;height: 2px;background: var(--primary);}
    .tab-content {display: none;}
    .tab-content.active {display: block;}
    /* Gift Reminders Styles */
    .reminder-alert {background: linear-gradient(135deg, var(--warning) 0%, #e65100 100%);border-radius: var(--radius-lg);padding: 1.25rem 1.5rem;display: flex;align-items: center;gap: 1rem;margin-bottom: 1.5rem;color: white;flex-wrap: wrap;}
    .reminder-alert-icon {width: 50px;height: 50px;background: rgba(255, 255, 255, 0.2);border-radius: 50%;display: flex;align-items: center;justify-content: center;font-size: 1.5rem;flex-shrink: 0;}
    .reminder-alert-content {flex: 1;min-width: 200px;}
    .reminder-alert-content h4 {font-size: 1rem;font-weight: 600;margin-bottom: 0.25rem;}
    .reminder-alert-content p {font-size: 0.9rem;opacity: 0.95;}
    .reminder-alert-actions {display: flex;gap: 0.75rem;flex-wrap: wrap;}
    .view-toggle {display: flex;gap: 0.5rem;margin-bottom: 1.5rem;padding: 0.25rem;background: var(--bg-tertiary);border-radius: var(--radius);width: fit-content;}
    .view-btn {padding: 0.6rem 1.25rem;border: none;background: none;border-radius: var(--radius-sm);font-size: 0.85rem;font-weight: 500;color: var(--text-secondary);cursor: pointer;display: flex;align-items: center;gap: 0.5rem;transition: all 0.2s ease;}
    .view-btn:hover {color: var(--text-primary);}
    .view-btn.active {background: white;color: var(--primary);box-shadow: var(--shadow-sm);}
    .reminder-view {display: none;}
    .reminder-view.active {display: block;}
    .reminders-list {display: flex;flex-direction: column;gap: 1rem;}
    .reminder-item {display: flex;align-items: flex-start;gap: 1rem;padding: 1.25rem;background: var(--bg-secondary);border: 1px solid var(--border-color);border-radius: var(--radius-lg);transition: all 0.3s ease;}
    .reminder-item:hover {box-shadow: var(--shadow-md);transform: translateY(-2px);}
    .reminder-item.upcoming {border-left: 4px solid var(--warning);background: linear-gradient(90deg, rgba(255, 152, 0, 0.05) 0%, transparent 100%);}
    .reminder-date-badge {width: 55px;height: 60px;background: var(--bg-tertiary);border-radius: var(--radius);display: flex;flex-direction: column;align-items: center;justify-content: center;flex-shrink: 0;}
    .reminder-date-badge .day {font-size: 1.5rem;font-weight: 700;color: var(--text-primary);line-height: 1;}
    .reminder-date-badge .month {font-size: 0.7rem;font-weight: 600;color: var(--text-muted);text-transform: uppercase;}
    .reminder-icon {width: 45px;height: 45px;border-radius: var(--radius);display: flex;align-items: center;justify-content: center;font-size: 1.1rem;flex-shrink: 0;}
    .reminder-icon.birthday {background: rgba(233, 30, 99, 0.1);color: #e91e63;}
    .reminder-icon.anniversary {background: rgba(244, 67, 54, 0.1);color: #f44336;}
    .reminder-icon.holiday {background: rgba(76, 175, 80, 0.1);color: #4caf50;}
    .reminder-icon.other {background: rgba(33, 150, 243, 0.1);color: #2196f3;}
    .reminder-details {flex: 1;min-width: 0;}
    .reminder-header {display: flex;align-items: center;gap: 0.75rem;margin-bottom: 0.35rem;flex-wrap: wrap;}
    .reminder-details h4 {font-size: 1rem;font-weight: 600;color: var(--text-primary);}
    .reminder-countdown {font-size: 0.75rem;padding: 0.2rem 0.6rem;border-radius: 20px;background: rgba(92, 107, 192, 0.1);color: var(--primary);font-weight: 500;}
    .reminder-countdown.urgent {background: rgba(255, 152, 0, 0.15);color: var(--warning);}
    .reminder-occasion {font-size: 0.85rem;color: var(--text-secondary);margin-bottom: 0.5rem;}
    .reminder-occasion i {margin-right: 0.35rem;}
    .reminder-meta {display: flex;flex-wrap: wrap;gap: 0.75rem;margin-bottom: 0.5rem;}
    .reminder-meta span {font-size: 0.75rem;color: var(--text-muted);display: flex;align-items: center;gap: 0.35rem;}
    .reminder-note {font-size: 0.8rem;color: var(--text-secondary);font-style: italic;padding: 0.5rem 0.75rem;background: var(--bg-tertiary);border-radius: var(--radius-sm);margin-top: 0.5rem;}
    .reminder-note i {margin-right: 0.35rem;color: var(--warning);}
    .reminder-actions {display: flex;gap: 0.5rem;flex-shrink: 0;align-items: flex-start;}
    /* Calendar View */
    .calendar-container {max-width: 100%;margin: 0 auto;}
    .calendar-header {display: flex;align-items: center;justify-content: space-between;margin-bottom: 1.5rem;}
    .calendar-header h3 {font-size: 1.25rem;font-weight: 600;color: var(--text-primary);}
    .calendar-nav {width: 40px;height: 40px;border: 1px solid var(--border-color);background: white;border-radius: var(--radius);display: flex;align-items: center;justify-content: center;cursor: pointer;color: var(--text-secondary);transition: all 0.2s ease;}
    .calendar-nav:hover {background: var(--primary);color: white;border-color: var(--primary);}
    .calendar-grid {display: grid;grid-template-columns: repeat(7, 1fr);gap: 4px;}
    .calendar-day-header {padding: 0.75rem;text-align: center;font-size: 0.75rem;font-weight: 600;color: var(--text-muted);text-transform: uppercase;}
    .calendar-day {aspect-ratio: 0; padding: 15px 0px; width: 40%;display: flex;flex-direction: column;align-items: center;justify-content: center;border-radius: var(--radius);font-size: 0.9rem;font-weight: 500;color: var(--text-primary);cursor: pointer;position: relative;transition: all 0.2s ease;}
    .calendar-day:hover {background: var(--bg-tertiary);}
    .calendar-day.other-month {color: var(--text-muted);opacity: 0.5;}
    .calendar-day.today {background: var(--primary);color: white;}
    .calendar-day.has-event {font-weight: 600;}
    .calendar-day.has-event:hover {background: var(--bg-tertiary);}
    .event-dot {position: absolute;bottom: 6px;width: 6px;height: 6px;border-radius: 50%;}
    .event-dot.birthday {background: #e91e63;}
    .event-dot.anniversary {background: #f44336;}
    .event-dot.holiday {background: #4caf50;}
    .event-dot.other {background: #2196f3;}
    .calendar-legend {display: flex;justify-content: center;gap: 1.5rem;margin-top: 1.5rem;padding-top: 1rem;border-top: 1px solid var(--border-color);flex-wrap: wrap;}
    .legend-item {display: flex;align-items: center;gap: 0.5rem;font-size: 0.8rem;color: var(--text-secondary);}
    .legend-dot {width: 10px;height: 10px;border-radius: 50%;}
    .legend-dot.birthday {background: #e91e63;}
    .legend-dot.anniversary {background: #f44336;}
    .legend-dot.holiday {background: #4caf50;}
    .legend-dot.other {background: #2196f3;}

    /* Notification Settings Grid */
    .notification-settings-grid {display: grid;gap: 1rem;}
    .notification-setting {display: flex;justify-content: space-between;align-items: center;padding: 1rem;background: var(--bg-tertiary);border-radius: var(--radius);}
    .setting-info h4 {font-size: 0.9rem;font-weight: 600;color: var(--text-primary);display: flex;align-items: center;gap: 0.5rem;}
    .setting-info h4 i {color: var(--primary);}
    .setting-info p {font-size: 0.8rem;color: var(--text-secondary);margin-top: 0.15rem;}
    /* Notification Options in Modal */
    .notification-options {display: flex;gap: 1rem;flex-wrap: wrap;}
    .checkbox-card {cursor: pointer;}
    .checkbox-card input {display: none;}
    .checkbox-card-content {display: flex;flex-direction: column;align-items: center;gap: 0.5rem;padding: 1rem 1.5rem;border: 2px solid var(--border-color);border-radius: var(--radius);transition: all 0.2s ease;}
    .checkbox-card-content i {font-size: 1.25rem;color: var(--text-muted);}
    .checkbox-card-content span {font-size: 0.85rem;font-weight: 500;color: var(--text-secondary);}
    .checkbox-card input:checked + .checkbox-card-content {border-color: var(--primary);background: rgba(92, 107, 192, 0.05);}
    .checkbox-card input:checked + .checkbox-card-content i {color: var(--primary);}
    .checkbox-card input:checked + .checkbox-card-content span {color: var(--primary);}
    /* Gift Suggestions */
    .gift-suggestions {margin-top: 1.5rem;padding-top: 1.5rem;border-top: 1px solid var(--border-color);}
    .gift-suggestions h4 {font-size: 0.9rem;font-weight: 600;color: var(--text-primary);margin-bottom: 0.75rem;display: flex;align-items: center;gap: 0.5rem;}
    .gift-suggestions h4 i {color: var(--warning);}
    .suggestion-chips {display: flex;flex-wrap: wrap;gap: 0.5rem;}
    .suggestion-chip {padding: 0.5rem 1rem;border: 1px solid var(--border-color);background: white;border-radius: 50px;font-size: 0.8rem;font-weight: 500;color: var(--text-secondary);cursor: pointer;display: flex;align-items: center;gap: 0.35rem;transition: all 0.2s ease;}
    .suggestion-chip:hover {border-color: var(--primary);color: var(--primary);background: rgba(92, 107, 192, 0.05);}
    /* Delete Icon */
    .delete-icon {width: 70px;height: 70px;background: rgba(244, 67, 54, 0.1);border-radius: 50%;display: flex;align-items: center;justify-content: center;margin: 0 auto 1rem;font-size: 1.75rem;color: var(--danger);}
    /* Day Reminders List (in modal) */
    .day-reminders-list {display: flex;flex-direction: column;gap: 1rem;}
    .day-reminder-item {display: flex;align-items: center;gap: 1rem;padding: 1rem;background: var(--bg-tertiary);border-radius: var(--radius);}
    .day-reminder-item .reminder-icon {width: 40px;height: 40px;}
    .day-reminder-info {flex: 1;}
    .day-reminder-info h4 {font-size: 0.95rem;font-weight: 600;color: var(--text-primary);}
    .day-reminder-info p {font-size: 0.8rem;color: var(--text-secondary);}
    /* Responsive */
    @media (max-width: 768px) {
        .reminder-item {flex-wrap: wrap;}
        .reminder-actions {width: 100%;justify-content: flex-end;margin-top: 0.5rem;}
        .reminder-alert {flex-direction: column;text-align: center;}
        .reminder-alert-actions {justify-content: center;}
        .notification-options {justify-content: center;}
    }
    

    @media (max-width: 480px) {
        .reminder-date-badge {width: 45px;height: 50px;}
        .reminder-date-badge .day {font-size: 1.25rem;}
        .calendar-day {font-size: 0.8rem;}
        .calendar-day-header {font-size: 0.65rem;padding: 0.5rem;}
    }
    

    /* Responsive */
    @media (max-width: 1200px) {
        .stats-grid {grid-template-columns: repeat(2, 1fr);}
        .dashboard-grid,
        .profile-grid {grid-template-columns: 1fr;}
        .points-summary,
        .support-grid {grid-template-columns: repeat(2, 1fr);}
    }
    

    @media (max-width: 992px) {
        .sidebar {transform: translateX(-100%);}
        .sidebar.active {transform: translateX(0);}
        .main-content {margin-left: 0;}
        .menu-toggle {display: block !important;}
        .search-box {display: none;}
    }
    

    @media (max-width: 768px) {
        .page-content {padding: 1rem;}
        .top-header {padding: 1rem;}
        .welcome-banner {padding: 1.5rem;}
        .welcome-text h1 {font-size: 1.35rem;}
        .welcome-actions {flex-direction: column;width: 100%;}
        .stats-grid {grid-template-columns: 1fr;}
        .form-grid {grid-template-columns: 1fr;}
        .filters-bar {flex-direction: column;}
        .points-summary,
        .support-grid {grid-template-columns: 1fr;}
        .wishlist-grid {grid-template-columns: 1fr;}
        .tabs {overflow-x: auto; scrollbar-width: none;}
        .modal {margin: 1rem;max-width: calc(100% - 2rem);}
    }
    

    @media (max-width: 480px) {
        .header-right {gap: 0.5rem;}
        .header-btn {width: 38px;height: 38px;}
        .account-header {flex-direction: column;text-align: center;}
        .data-table th,
        .data-table td {padding: 0.75rem 0.5rem;font-size: 0.8rem;}
    }
    
    .closeBtn {display: none;}
    @media (max-width: 768px) {
        .closeBtn {display: block !important;}
        .app-container {padding: 0px !important;}
    }
    .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .content-message {
        min-height: 45px;
    }
    .draft-card {
        transition:
            transform 0.3s ease,
            opacity 0.3s ease;
    }

/* DataTable wrapper */
.dataTables_wrapper {
    font-family: inherit;
}

/* Search input styling */
.dataTables_filter input {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.2s;
    min-width: 200px;
}

.dataTables_filter input:focus {
    border-color: var(--primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Length select styling */
.dataTables_length select {
    padding: 2px;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
    background-color: white;
    cursor: pointer;
}

.dataTables_length select:focus {
    border-color: var(--primary, #3b82f6);
}

/* Pagination styling */
.dataTables_paginate {
    display: flex;
    gap: 0.25rem;
}

.dataTables_paginate .paginate_button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    color: #374151;
}

.dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.dataTables_paginate .paginate_button.current {
    background: var(--primary, #3b82f6);
    color: white;
    border-color: var(--primary, #3b82f6);
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Info text styling */
.dataTables_info {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Sorting icons */
table.dataTable thead th {
    position: relative;
    cursor: pointer;
}

table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::after {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    color: #9ca3af;
}

table.dataTable thead th.sorting::after {
    content: "\f0dc"; /* fa-sort */
}

table.dataTable thead th.sorting_asc::after {
    content: "\f0de"; /* fa-sort-up */
    color: var(--primary, #3b82f6);
}

table.dataTable thead th.sorting_desc::after {
    content: "\f0dd"; /* fa-sort-down */
    color: var(--primary, #3b82f6);
}

/* Remove default DataTable borders */
table.dataTable {
    border-collapse: collapse !important;
}

table.dataTable thead th,
table.dataTable tbody td {
    border: none !important;
}

/* Processing indicator */
.dataTables_processing {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Responsive table */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        width: 100%;
    }
    
    .dataTables_filter input {
        width: 100%;
    }
}

/* Empty table styling */
.dataTables_empty {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}
.dataTables_paginate {
    align-content: center !important;
}

