/* Cuan10pay Admin Panel Styles */

/* Base Styles */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Table */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-container table {
    min-width: 800px;
}

@media (max-width: 768px) {
    .table-container {
        font-size: 0.75rem;
    }

    .table-container th,
    .table-container td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }

    .table-container .service-icon {
        width: 20px;
        height: 20px;
        padding: 0.2rem;
    }

    .table-container .status-badge {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
    }
}

/* Responsive Cards */
.stats-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

@media (max-width: 640px) {
    .stats-card {
        padding: 1rem !important;
    }

    .stats-card h3 {
        font-size: 1.5rem !important;
    }

    .stats-card p {
        font-size: 0.75rem !important;
    }
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

@media (max-width: 768px) {
    .chart-container {
        height: 200px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: white;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .modal-content {
        max-width: 80%;
    }
}

@media (min-width: 1024px) {
    .modal-content {
        max-width: 70%;
    }
}

/* Service Card Styles */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    height: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Tab Content Styles */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Submenu Styles */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.submenu.open {
    max-height: 500px;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 16rem;
    background-color: #111827;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 40;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 30;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
    .header h1 {
        font-size: 1.125rem !important;
    }

    .header .text-xs {
        font-size: 0.625rem !important;
    }
}

/* Touch-friendly elements */
.touch-target {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Quick Action Button */
.quick-action-btn {
    transition: all 0.2s ease;
}

.quick-action-btn:active {
    transform: scale(0.95);
}

/* Responsive Grid */
.responsive-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .responsive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .responsive-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 640px) {
    .quick-actions-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* Desktop Layout Adjustments */
@media (min-width: 1024px) {
    main {
        margin-left: 16rem;
    }

    .main-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Extra Large Desktop */
@media (min-width: 1280px) {
    main {
        margin-left: 18rem;
    }

    .sidebar {
        width: 18rem;
    }
}

/* Additional Mobile Improvements */
@media (max-width: 359px) {
    .header {
        padding: 0.5rem;
    }

    .header h1 {
        font-size: 1rem !important;
    }

    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .form-input,
    .form-select {
        padding: 0.5rem;
        font-size: 0.8125rem;
    }

    .form-label {
        font-size: 0.8125rem;
    }

    .badge {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
    }
}

/* Landscape Mode Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .sidebar {
        width: 14rem;
    }

    .header {
        padding: 0.5rem;
    }

    .header h1 {
        font-size: 1rem !important;
    }

    .main-content {
        padding: 0.5rem !important;
    }

    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .chart-container {
        height: 180px;
    }
}

/* Improved Touch Targets */
.sidebar a,
.sidebar button {
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Responsive Tab Navigation */
.tab-nav-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-nav-container::-webkit-scrollbar {
    display: none;
}

.tab-nav {
    display: flex;
    min-width: max-content;
}

/* Transaction Table Styles */
.transaction-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.transaction-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
}

.transaction-table td {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.transaction-table tr:hover {
    background: #f8f9fa;
}

.transaction-id {
    font-family: monospace;
    font-weight: 600;
    color: var(--primary);
}

.transaction-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.transaction-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.transaction-status.failed {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.transaction-status.pending {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
}

.transaction-status.active {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.transaction-status.inactive {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.transaction-status.processing {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.transaction-status.expired {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.transaction-status.refunded {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
}

.transaction-status.open {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.transaction-status.in_progress {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
}

.transaction-status.closed {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.transaction-actions {
    display: flex;
    gap: 0.5rem;
}

.transaction-action {
    padding: 0.5rem;
    border: none;
    border-radius: 0.375rem;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.transaction-action:hover {
    background: var(--primary);
    color: white;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #3730a3;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Form Styles */
.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

/* CSS Variables */
:root {
    --primary: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}
/* ===== Frontend Layout: Header, Navbar & Sidebar Styles ===== */

/* Enhanced Navbar Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
}

.logo i {
    font-size: 2rem;
    color: var(--primary);
}

.search-bar {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
    position: relative;
    display: none;
}

.search-bar i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.125rem;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-btn,
.mobile-menu-btn {
    position: relative;
    background: none;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.125rem;
}

.notification-btn:hover,
.mobile-menu-btn:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.notification-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.notification-badge.show {
    display: flex;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu:hover {
    background: var(--gray-50);
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.user-info {
    display: none;
}

.user-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.875rem;
}

.user-type {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: capitalize;
}

.user-menu i {
    color: var(--gray-400);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-menu.show i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    margin: 0.25rem;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.dropdown-item i {
    width: 1.25rem;
    text-align: center;
    color: var(--gray-500);
}

/* Enhanced Sidebar Styles */
aside.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-800) 100%);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

aside.sidebar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    pointer-events: none;
    z-index: -1;
}

aside.sidebar.open {
    transform: translateX(0);
}

.sidebar-menu {
    padding: 2rem 0;
}

.menu-title {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    color: var(--gray-300);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--primary);
}

.menu-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: white;
    border-left-color: var(--primary);
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.menu-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

.menu-item i {
    width: 1.25rem;
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-400);
    transition: color 0.2s ease;
}

.menu-item:hover i,
.menu-item.active i {
    color: var(--primary);
}

.menu-item span {
    font-weight: 500;
    flex: 1;
}

/* Main Content Layout */
main.main-content {
    margin-left: 0;
    padding: 5rem 1rem 2rem;
    min-height: 100vh;
    background: var(--gray-50);
    transition: margin-left 0.3s ease;
}

.page-header {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.breadcrumb-item {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--gray-700);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--gray-400);
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (min-width: 1024px) {
    aside.sidebar {
        transform: translateX(0);
    }

    main.main-content {
        margin-left: 280px;
        padding: 5rem 2rem 2rem;
    }

    .search-bar {
        display: block;
    }

    .user-info {
        display: block;
    }

    .mobile-menu-btn {
        display: none;
    }
}

@media (max-width: 1023px) {
    .search-bar {
        display: none;
    }

    .user-info {
        display: none;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo i {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }

    .navbar {
        padding: 0.5rem 0;
        min-height: 60px;
    }

    .logo {
        font-size: 1.125rem;
        gap: 0.5rem;
    }

    .logo i {
        font-size: 1.25rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .notification-btn,
    .mobile-menu-btn {
        padding: 0.5rem;
        font-size: 1rem;
    }

    .user-menu {
        padding: 0.375rem 0.5rem;
        gap: 0.5rem;
    }

    .user-avatar {
        width: 2rem;
        height: 2rem;
    }

    main.main-content {
        padding: 4rem 0.75rem 2rem;
    }

    .page-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    aside.sidebar {
        width: 260px;
    }

    .sidebar-menu {
        padding: 1.5rem 0;
    }

    .menu-item {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .menu-item i {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 0.5rem;
    }

    .navbar {
        padding: 0.375rem 0;
        min-height: 56px;
    }

    .logo {
        font-size: 1rem;
        gap: 0.375rem;
    }

    .logo i {
        font-size: 1rem;
    }

    .header-actions {
        gap: 0.375rem;
    }

    .notification-btn,
    .mobile-menu-btn {
        padding: 0.375rem;
        font-size: 0.875rem;
    }

    .user-menu {
        padding: 0.25rem 0.375rem;
        gap: 0.375rem;
    }

    .user-avatar {
        width: 1.75rem;
        height: 1.75rem;
    }

    main.main-content {
        padding: 3.5rem 0.5rem 2rem;
    }

    .page-header {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        border-radius: 0.75rem;
    }

    .page-title {
        font-size: 1.375rem;
    }

    aside.sidebar {
        width: 240px;
    }

    .menu-item {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }

    .menu-item i {
        width: 1rem;
        font-size: 0.875rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    header {
        background: var(--gray-800);
        border-bottom-color: var(--gray-700);
    }

    .logo {
        color: white;
    }

    .search-bar input {
        background: var(--gray-700);
        border-color: var(--gray-600);
        color: white;
    }

    .search-bar input:focus {
        background: var(--gray-800);
    }

    .notification-btn,
    .mobile-menu-btn {
        color: var(--gray-300);
    }

    .notification-btn:hover,
    .mobile-menu-btn:hover {
        background: var(--gray-700);
        color: white;
    }

    .user-menu:hover {
        background: var(--gray-700);
    }

    .user-name {
        color: white;
    }

    .user-type {
        color: var(--gray-400);
    }

    .dropdown-menu {
        background: var(--gray-800);
        border-color: var(--gray-700);
    }

    .dropdown-item {
        color: var(--gray-300);
    }

    .dropdown-item:hover {
        background: var(--gray-700);
        color: white;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .menu-item.active {
        border-left-color: white;
    }

    .menu-item.active::before {
        background: white;
    }

    .dropdown-item:hover {
        background: white;
        color: black;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    aside.sidebar,
    .dropdown-menu,
    .menu-item,
    .user-menu,
    .notification-btn,
    .mobile-menu-btn,
    .search-bar input {
        transition: none;
    }

    .sidebar-overlay {
        transition: none;
    }
}

/* ===== Frontend Footer Styles ===== */

footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: white;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    z-index: 10;
    clear: both;
}

/* Fix footer positioning on desktop to account for sidebar */
@media (min-width: 1024px) {
    body:not(.landing) footer {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
}

@media (min-width: 1280px) {
    body:not(.landing) footer {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
}

/* Ensure footer is always visible and not covered */
footer {
    min-height: 200px;
}

/* Debug styles for mobile menu button - remove in production */
/*
.mobile-menu-btn {
    border: 2px solid red !important;
    background: yellow !important;
}
*/

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--primary);
}

.footer-description {
    color: var(--gray-300);
    line-height: 1.6;
    margin: 0;
    max-width: 400px;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0 0 1rem 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    padding: 0.25rem 0;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

.footer-bottom-links span {
    color: var(--gray-600);
}

/* ===== Enhanced Mobile Menu & Touch Interactions ===== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu button - only visible on mobile devices */
.mobile-menu-btn {
    display: none !important; /* Hidden by default */
}

/* Show mobile menu button only on mobile/tablet */
@media (max-width: 1023px) {
    .mobile-menu-btn {
        display: flex !important;
        position: fixed !important;
        top: 1rem !important;
        right: 1rem !important;
        z-index: 10001 !important; /* Even higher z-index */
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 2px solid rgba(0, 0, 0, 0.1) !important;
        padding: 0.75rem !important;
        border-radius: 0.5rem !important;
        color: #374151 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.3) !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        touch-action: manipulation !important;
        min-width: 50px !important;
        min-height: 50px !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.125rem !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
        /* Ensure it's always clickable */
        pointer-events: auto !important;
    }

    .mobile-menu-btn:hover,
    .mobile-menu-btn:active,
    .mobile-menu-btn:focus {
        background: #4f46e5 !important;
        color: white !important;
        border-color: #4f46e5 !important;
        outline: 3px solid #4f46e5 !important;
        outline-offset: 2px !important;
        transform: scale(1.1) !important;
        box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4) !important;
    }

    /* Add a visual indicator that it's clickable */
    .mobile-menu-btn::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-radius: 0.75rem;
        background: linear-gradient(45deg, #4f46e5, #7c3aed);
        opacity: 0;
        transition: opacity 0.2s ease;
        z-index: -1;
    }

    .mobile-menu-btn:hover::before {
        opacity: 0.1;
    }

    /* Hide other header elements on mobile to prevent overlap */
    .header-actions .notification-btn,
    .header-actions .user-menu {
        display: none !important;
    }

    /* Adjust search bar positioning */
    .search-bar {
        margin-right: 5rem !important;
    }
}

/* Enhanced Touch Targets for Mobile */
@media (max-width: 1023px) {
    .notification-btn,
    .mobile-menu-btn,
    .user-menu,
    .menu-item,
    .dropdown-item {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menu-item {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .dropdown-item {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}

/* ===== Enhanced Responsive Footer ===== */

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }

    .footer-section {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
        font-size: 1.25rem;
    }

    .footer-logo i {
        font-size: 1.5rem;
    }

    .footer-description {
        max-width: none;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-links {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    footer {
        padding: 0 1rem;
    }

    .footer-content {
        padding: 1.5rem 0;
        gap: 1.5rem;
    }

    .footer-logo {
        font-size: 1.125rem;
        gap: 0.5rem;
    }

    .footer-logo i {
        font-size: 1.25rem;
    }

    .footer-description {
        font-size: 0.875rem;
    }

    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .footer-links li a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding: 1rem 0;
    }

    .footer-bottom p,
    .footer-bottom-links a {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 1rem 0;
        gap: 1rem;
    }

    .footer-logo {
        font-size: 1rem;
        gap: 0.375rem;
    }

    .footer-logo i {
        font-size: 1rem;
    }

    .footer-description {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .footer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .footer-links {
        gap: 0.375rem;
    }

    .footer-links li a {
        font-size: 0.8rem;
        padding: 0.125rem 0;
    }

    .footer-bottom {
        padding: 0.75rem 0;
        gap: 0.75rem;
    }

    .footer-bottom-links {
        gap: 0.75rem;
    }

    .footer-bottom-links span {
        display: none;
    }
}

/* ===== Enhanced Mobile Menu Functionality ===== */

@media (max-width: 1023px) {
    /* Ensure mobile menu button is always clickable */
    .mobile-menu-btn {
        position: relative;
        z-index: 1001;
        background: none;
        border: none;
        padding: 0.75rem;
        border-radius: 0.5rem;
        color: var(--gray-600);
        cursor: pointer;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .mobile-menu-btn:hover,
    .mobile-menu-btn:active {
        background: var(--gray-100);
        color: var(--gray-900);
        transform: scale(1.05);
    }

    .mobile-menu-btn:focus {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    /* Enhanced sidebar for mobile */
    aside.sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        background: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-800) 100%);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        -webkit-overflow-scrolling: touch;
    }

    aside.sidebar.open {
        transform: translateX(0);
    }

    /* Prevent body scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Enhanced menu items for touch */
    .menu-item {
        position: relative;
        padding: 1rem 1.5rem;
        color: var(--gray-300);
        text-decoration: none;
        transition: all 0.2s ease;
        border-left: 3px solid transparent;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 48px;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .menu-item:hover,
    .menu-item:active {
        background: rgba(255, 255, 255, 0.05);
        color: white;
        border-left-color: var(--primary);
    }

    .menu-item.active {
        background: rgba(99, 102, 241, 0.1);
        color: white;
        border-left-color: var(--primary);
    }

    .menu-item i {
        width: 1.25rem;
        text-align: center;
        font-size: 1.125rem;
        color: var(--gray-400);
        transition: color 0.2s ease;
        flex-shrink: 0;
    }

    .menu-item:hover i,
    .menu-item.active i {
        color: var(--primary);
    }

    .menu-item span {
        font-weight: 500;
        flex: 1;
        font-size: 0.95rem;
    }

    /* Enhanced overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(2px);
        -webkit-tap-highlight-color: transparent;
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Close button for sidebar */
    .sidebar-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        color: var(--gray-400);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 0.375rem;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        z-index: 1001;
    }

    .sidebar-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
}

/* ===== Enhanced Touch Interactions & Accessibility ===== */

/* Improve touch targets for all interactive elements */
button,
a,
input,
select,
textarea,
[role="button"],
.menu-item,
.dropdown-item,
.notification-btn,
.mobile-menu-btn,
.user-menu {
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.1);
    touch-action: manipulation;
    position: relative;
}

/* Enhanced focus states for accessibility */
.notification-btn:focus,
.mobile-menu-btn:focus,
.user-menu:focus,
.menu-item:focus,
.dropdown-item:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Prevent zoom on input focus on iOS */
@media screen and (max-width: 767px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
        border-radius: 8px !important;
    }
}

/* ===== Enhanced Responsive Layout ===== */

/* Ensure proper viewport handling */
@media screen and (max-width: 1023px) {
    /* Enhanced main content for mobile */
    main.main-content {
        margin-left: 0 !important;
        padding: 4rem 1rem 2rem !important;
        min-height: calc(100vh - 70px);
    }

    /* Better spacing for mobile */
    .page-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        border-radius: 0.75rem;
    }

    .page-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }

    /* Enhanced form elements for mobile */
    .form-input,
    .form-select {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 0.5rem;
        border: 2px solid var(--gray-200);
        transition: all 0.2s ease;
    }

    .form-input:focus,
    .form-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        transform: translateY(-1px);
    }

    /* Better button sizing for mobile */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
        border-radius: 0.5rem;
        font-weight: 600;
    }

    /* Enhanced card layouts for mobile */
    .stats-container,
    .quick-actions {
        gap: 1rem;
    }

    .stat-card,
    .action-card {
        padding: 1.25rem;
        border-radius: 0.75rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .stat-label,
    .action-title {
        font-size: 0.9rem;
    }
}

/* ===== Ultra-Mobile Optimizations ===== */

@media screen and (max-width: 480px) {
    /* Compact header for very small screens */
    header {
        padding: 0.5rem 0.75rem;
    }

    .navbar {
        padding: 0.5rem 0;
        min-height: 56px;
    }

    .logo {
        font-size: 1rem;
        gap: 0.375rem;
    }

    .logo i {
        font-size: 1rem;
    }

    /* Stack header actions vertically if needed */
    .header-actions {
        gap: 0.25rem;
    }

    .notification-btn,
    .mobile-menu-btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .user-avatar {
        width: 1.75rem;
        height: 1.75rem;
    }

    /* Optimize sidebar for small screens */
    aside.sidebar {
        width: 260px;
    }

    .menu-item {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .menu-item i {
        font-size: 1rem;
    }

    /* Better main content spacing */
    main.main-content {
        padding: 3.5rem 0.75rem 2rem !important;
    }

    .page-header {
        padding: 1.25rem 0.75rem;
        margin-bottom: 1rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    /* Optimize cards for small screens */
    .stats-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card,
    .action-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-icon,
    .action-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* ===== Landscape Mode Optimizations ===== */

@media screen and (max-height: 500px) and (orientation: landscape) {
    /* Adjust header for landscape */
    header {
        padding: 0.25rem 0.5rem;
    }

    .navbar {
        padding: 0.25rem 0;
        min-height: 48px;
    }

    .logo {
        font-size: 0.9rem;
    }

    .logo i {
        font-size: 0.9rem;
    }

    /* Compact sidebar */
    aside.sidebar {
        width: 220px;
    }

    .menu-item {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }

    /* Adjust main content */
    main.main-content {
        padding: 3rem 0.5rem 1rem !important;
    }

    .page-header {
        padding: 1rem 0.5rem;
    }

    .page-title {
        font-size: 1.125rem;
    }
}

/* ===== High DPI Display Support ===== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows for high DPI */
    header,
    aside.sidebar,
    .stat-card,
    .action-card,
    .page-header {
        border-width: 0.5px;
    }

    /* Better text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
}

/* ===== Print Styles ===== */

@media print {
    header,
    aside.sidebar,
    .sidebar-overlay,
    .mobile-menu-btn,
    .notification-btn,
    .user-menu,
    footer {
        display: none !important;
    }

    main.main-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .page-header {
        border: none;
        box-shadow: none;
        margin-bottom: 2rem;
    }
}

/* ===== Landing page styles (scoped to .landing) ===== */

/* Extended CSS Variables for landing */
:root {
  --primary-dark: #4f46e5;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Keyframes unique to landing */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-10px); }
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animation util classes (scoped to landing to avoid admin collisions) */
.landing .animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.landing .animate-fade-in    { animation: fadeIn 1s ease-out forwards; }
.landing .animate-slide-in-left  { animation: slideInLeft 0.8s ease-out forwards; }
.landing .animate-slide-in-right { animation: slideInRight 0.8s ease-out forwards; }
.landing .animate-float { animation: float 3s ease-in-out infinite; }

/* Header (landing scoped) */
.landing .landing-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}
.landing .landing-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Hero Section */
.landing .hero {
  min-height: 100vh;
  padding: 160px 0 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}
.landing .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"&gt;&lt;defs&gt;&lt;pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"&gt;&lt;circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/&gt;&lt;circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/&gt;&lt;/pattern&gt;&lt;/defs&gt;&lt;rect width="1000" height="1000" fill="url(%23grain)"/&gt;&lt;/svg&gt;');
  opacity: 0.1;
}
.landing .hero-content { position: relative; z-index: 2; }

/* Buttons (landing-only) */
.landing .l-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}
.landing .l-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.landing .l-btn:hover::before { left: 100%; }
.landing .l-btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.landing .l-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6); }
.landing .l-btn-secondary { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.landing .l-btn-secondary:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.landing .l-btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.landing .l-btn-outline:hover { background: #fff; color: var(--primary); }

/* Cards and features */
.landing .card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.landing .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.landing .feature-card {
  text-align: center;
  padding: 40px 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform: translateY(0);
}
.landing .feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.landing .feature-icon {
  width: 80px; height: 80px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  position: relative;
}
.landing .feature-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  background: linear-gradient(135deg, currentColor, transparent);
  opacity: 0.1;
  z-index: -1;
}

/* Stats */
.landing .stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

/* Testimonials */
.landing .testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}
.landing .testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px; left: 32px;
  font-size: 60px;
  color: var(--primary);
  opacity: 0.1;
  font-family: Georgia, serif;
}

/* CTA Section */
.landing .cta-section {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  position: relative;
  overflow: hidden;
}
.landing .cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"&gt;&lt;circle cx="200" cy="200" r="2" fill="rgba(255,255,255,0.1)"/&gt;&lt;circle cx="800" cy="300" r="1" fill="rgba(255,255,255,0.1)"/&gt;&lt;circle cx="600" cy="700" r="1.5" fill="rgba(255,255,255,0.1)"/&gt;&lt;circle cx="300" cy="800" r="1" fill="rgba(255,255,255,0.1)"/&gt;&lt;/svg&gt;');
}

/* Footer */
.landing .footer,
.landing footer {
  background: var(--gray-900);
  color: #fff;
  position: relative;
  margin-left: 0 !important;
  width: 100% !important;
}
.landing .footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* Scroll reveal */
.landing .scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.landing .scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Loading overlay */
.landing .loading {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
.landing .loading.hidden { opacity: 0; pointer-events: none; }
.landing .spinner {
  width: 50px; height: 50px;
  border: 4px solid var(--gray-200);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .landing .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }
  .landing .hero h1 { font-size: 2.5rem !important; }
  .landing .hero p  { font-size: 1.125rem !important; }
  .landing .card,
  .landing .feature-card { padding: 30px 20px; }
  .landing .l-btn { padding: 14px 24px; font-size: 14px; }
}
@media (max-width: 640px) {
  .landing .hero h1 { font-size: 2rem !important; }
  .landing .hero p  { font-size: 1rem !important; }
  .landing .stat-number { font-size: 2rem !important; }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    letter-spacing: -0.02em;
    position: relative;
	padding: 1rem 0.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 2rem; */

}