* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: #fafafa;
            color: #1a1a1a;
            display: flex;
            height: 100vh;
            overflow: hidden;
        }

        #webgl-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
        }
        
        .sidebar {
            width: 280px;
            background: #ffffff;
            border-right: 2px solid #e5e5e5;
            display: flex;
            flex-direction: column;
            position: relative;
            z-index: 10;
            box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
        }
        
        .sidebar-header {
            padding: 32px 24px 24px;
            border-bottom: 2px solid #e5e5e5;
        }

        .logo {
            font-size: 18px;
            font-weight: 700;
            color: #047857;
            margin-bottom: 24px;
            letter-spacing: -0.3px;
            text-transform: uppercase;
        }

        .menu-item svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .project-meta svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            vertical-align: text-bottom;
            margin-right: 4px;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .user-avatar {
            width: 48px;
            height: 48px;
            background: #047857;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 700;
            color: white;
            letter-spacing: 1px;
        }

        .user-details {
            flex: 1;
        }
        
        .user-name {
            font-weight: 600;
            color: #1a1a1a;
            font-size: 14px;
            margin-bottom: 4px;
        }
        
        .user-balance {
            color: #047857;
            font-size: 13px;
            font-weight: 600;
        }
        
        .menu {
            flex: 1;
            padding: 24px 0;
            overflow-y: auto;
        }

        .menu::-webkit-scrollbar {
            width: 2px;
        }

        .menu::-webkit-scrollbar-track {
            background: transparent;
        }

        .menu::-webkit-scrollbar-thumb {
            background: #e5e5e5;
        }
        
        .menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            padding: 14px 24px;
            background: none;
            border: none;
            border-left: 3px solid transparent;
            text-align: left;
            cursor: pointer;
            color: #737373;
            font-size: 14px;
            transition: all 0.15s;
            font-weight: 500;
        }
        
        .menu-item:hover {
            background: #f5f5f5;
            color: #1a1a1a;
        }
        
        .menu-item.active {
            background: #f0fdf4;
            color: #047857;
            border-left-color: #047857;
            font-weight: 600;
        }
        
        .logout-btn {
            padding: 20px 24px;
            border-top: 2px solid #e5e5e5;
        }
        
        .logout-btn button {
            width: 100%;
            padding: 12px;
            background: #ffffff;
            color: #dc2626;
            border: 2px solid #dc2626;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.15s;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .logout-btn button:hover {
            background: #dc2626;
            color: #ffffff;
        }
        
        .main-content {
            flex: 1;
            padding: 40px;
            overflow-y: auto;
            position: relative;
            z-index: 10;
        }

        .main-content::-webkit-scrollbar {
            width: 8px;
        }

        .main-content::-webkit-scrollbar-track {
            background: #f5f5f5;
        }

        .main-content::-webkit-scrollbar-thumb {
            background: #d4d4d4;
        }
        
        .page-title {
            font-size: 32px;
            color: #1a1a1a;
            margin-bottom: 8px;
            font-weight: 700;
            letter-spacing: -0.5px;
        }

        .page-subtitle {
            color: #737373;
            font-size: 14px;
            margin-bottom: 32px;
            font-weight: 500;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }
        
        .stat-card {
            background: #ffffff;
            padding: 24px;
            border: 2px solid #e5e5e5;
            transition: all 0.2s;
            position: relative;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: #047857;
            transform: scaleX(0);
            transition: transform 0.2s;
        }

        .stat-card:hover::before {
            transform: scaleX(1);
        }

        .stat-card:hover {
            border-color: #047857;
            box-shadow: 0 4px 12px rgba(4, 120, 87, 0.1);
        }
        
        .stat-label {
            color: #737373;
            font-size: 12px;
            margin-bottom: 8px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .stat-value {
            font-size: 28px;
            font-weight: 700;
            color: #1a1a1a;
            letter-spacing: -1px;
        }
        
        .projects-section {
            background: #ffffff;
            padding: 32px;
            border: 2px solid #e5e5e5;
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 2px solid #f5f5f5;
        }

        .section-header h2 {
            font-size: 18px;
            font-weight: 700;
            color: #1a1a1a;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .btn-primary {
            background: #047857;
            color: white;
            padding: 10px 20px;
            border: 2px solid #047857;
            cursor: pointer;
            font-size: 12px;
            font-weight: 700;
            transition: all 0.15s;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .btn-primary:hover {
            background: #065f46;
            border-color: #065f46;
        }
        
        .projects-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        
        .project-card {
            background: #fafafa;
            border: 2px solid #e5e5e5;
            padding: 20px;
            cursor: pointer;
            transition: all 0.2s;
            border-left: 4px solid transparent;
        }
        
        .project-card:hover {
            background: #ffffff;
            border-color: #047857;
            border-left-color: #047857;
            box-shadow: 0 2px 8px rgba(4, 120, 87, 0.08);
        }
        
        .project-header {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 12px;
        }
        
        .project-title {
            font-size: 16px;
            font-weight: 600;
            color: #1a1a1a;
        }
        
        .project-status {
            padding: 6px 12px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .status-draft {
            background: #fef3c7;
            color: #92400e;
            border: 2px solid #fbbf24;
        }
        
        .status-generating {
            background: #dbeafe;
            color: #1e40af;
            border: 2px solid #3b82f6;
        }
        
        .status-completed {
            background: #d1fae5;
            color: #065f46;
            border: 2px solid #10b981;
        }
        
        .project-meta {
            display: flex;
            gap: 20px;
            color: #737373;
            font-size: 13px;
            font-weight: 500;
        }
        
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: #ffffff;
            padding: 24px;
            border: 2px solid #e5e5e5;
            width: 100%;
            max-width: 700px;
            max-height: 94vh;
            overflow-y: auto;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
            margin: auto;
        }

        .modal-content::-webkit-scrollbar {
            width: 6px;
        }

        .modal-content::-webkit-scrollbar-track {
            background: #f5f5f5;
        }

        .modal-content::-webkit-scrollbar-thumb {
            background: #d4d4d4;
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
            padding-bottom: 12px;
            border-bottom: 2px solid #e5e5e5;
        }

        .modal-header h2 {
            font-size: 18px;
            font-weight: 700;
            color: #1a1a1a;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .close-modal {
            font-size: 24px;
            cursor: pointer;
            background: none;
            border: none;
            color: #737373;
            transition: color 0.15s;
            line-height: 1;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .close-modal:hover {
            color: #1a1a1a;
        }
        
        .form-group {
            margin-bottom: 14px;
        }

        .form-group label {
            display: block;
            margin-bottom: 6px;
            color: #1a1a1a;
            font-weight: 600;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 10px 14px;
            background: #fafafa;
            border: 2px solid #e5e5e5;
            font-size: 14px;
            color: #1a1a1a;
            transition: all 0.15s;
            font-family: inherit;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #047857;
            background: #ffffff;
        }
        
        .form-group textarea {
            min-height: 60px;
            resize: vertical;
        }
        
        .form-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }

        .form-section-label {
            font-size: 12px;
            font-weight: 700;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-top: 12px;
            margin-bottom: 10px;
            padding-bottom: 6px;
            border-bottom: 2px solid #e5e5e5;
        }

        /* Toggle Switch */
        .mode-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            margin-bottom: 20px;
            padding: 16px;
            background: #f8fafc;
            border-radius: 8px;
            border: 2px solid #e5e5e5;
        }

        .mode-label {
            font-size: 13px;
            font-weight: 600;
            color: #64748b;
            transition: all 0.2s;
        }

        .mode-label.active {
            color: #047857;
            font-weight: 700;
        }

        .toggle-switch {
            position: relative;
            width: 56px;
            height: 28px;
            background: #e5e5e5;
            border-radius: 14px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .toggle-switch.active {
            background: #047857;
        }

        .toggle-slider {
            position: absolute;
            top: 3px;
            left: 3px;
            width: 22px;
            height: 22px;
            background: white;
            border-radius: 50%;
            transition: transform 0.3s;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .toggle-switch.active .toggle-slider {
            transform: translateX(28px);
        }

        .auto-mode-fields {
            display: none;
        }

        .auto-mode-fields.active {
            display: block;
        }

        .manual-mode-fields {
            display: block;
        }

        .manual-mode-fields.hidden {
            display: none;
        }

        .amount-btn {
            padding: 14px 20px;
            background: #ffffff;
            color: #1a1a1a;
            border: 2px solid #e5e5e5;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.15s;
            text-align: center;
        }

        .amount-btn:hover {
            background: #f5f5f5;
            border-color: #047857;
            color: #047857;
        }

        .amount-btn.selected {
            background: #047857;
            border-color: #047857;
            color: #ffffff;
        }

        .payment-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px;
            background: #fafafa;
            border: 2px solid #e5e5e5;
            margin-bottom: 12px;
            transition: all 0.15s;
        }

        .payment-item:hover {
            background: #ffffff;
            border-color: #d4d4d4;
        }

        .payment-info {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .payment-amount {
            font-size: 16px;
            font-weight: 700;
            color: #1a1a1a;
        }

        .payment-date {
            font-size: 13px;
            color: #737373;
        }

        .payment-status {
            padding: 6px 12px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .status-new {
            background: #dbeafe;
            color: #1e40af;
            border: 2px solid #3b82f6;
        }

        .status-processing {
            background: #fef3c7;
            color: #92400e;
            border: 2px solid #fbbf24;
        }

        .status-failed {
            background: #fee2e2;
            color: #991b1b;
            border: 2px solid #ef4444;
        }

        .status-cancelled {
            background: #f5f5f5;
            color: #525252;
            border: 2px solid #a3a3a3;
        }

        .form-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 2px solid #e5e5e5;
        }

        .btn-secondary {
            background: #ffffff;
            color: #1a1a1a;
            padding: 10px 20px;
            border: 2px solid #e5e5e5;
            cursor: pointer;
            font-size: 12px;
            font-weight: 700;
            transition: all 0.15s;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn-secondary:hover {
            background: #f5f5f5;
            border-color: #d4d4d4;
        }
        
        @media (max-width: 768px) {
            .sidebar {
                position: fixed;
                left: -280px;
                height: 100vh;
                z-index: 100;
                transition: left 0.3s;
            }

            .sidebar.mobile-open {
                left: 0;
            }
            
            .main-content {
                padding: 20px;
            }
            
            .form-row {
                grid-template-columns: 1fr;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .modal-content {
                padding: 20px;
                max-width: 100%;
                max-height: 95vh;
            }

            .form-section-label {
                margin-top: 15px;
                margin-bottom: 10px;
            }
        }