:root{--bg:#f8f9fc;--border:#e2e8f0;--card-bg:#ffffff;--ink:#1e293b;--on-primary:#1e293b;--primary:#ffcc00;--primary-dark:#e6b800;--primary-ink:#4b3a00;--surface-2:#eef2f6;--text-muted:#9ca3af;--text-primary:#1e293b;--text-secondary:#6b6b6b}
        * { margin: 0; padding: 0; box-sizing: border-box}
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg);
            min-height: 100vh;
            padding: 20px;
            color: var(--text-primary)}
        .container {
            max-width: 480px;
            margin: 0 auto}
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px}
        .header h1 { font-size: 20px}
        .logout-btn {
            background: none;
            border: 1px solid var(--border);
            border-radius: 30px;
            padding: 8px 16px;
            cursor: pointer;
            font-size: 13px;
            color: var(--text-secondary);
            transition: all 0.2s}
        .logout-btn:hover {
            background: var(--surface-2);
            border-color: #ef4444;
            color: #ef4444}
        .back-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 14px;
            padding: 4px 8px;
            margin-right: 8px}
        .back-btn:hover { color: var(--primary)}
        
        .profile-card {
            background: var(--card-bg);
            border-radius: 24px;
            padding: 24px;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            border: 1px solid var(--surface-2);
            margin-bottom: 20px}
        .avatar-container {
            position: relative;
            width: 100px;
            height: 100px;
            margin: 0 auto 16px;
            border-radius: 50%;
            overflow: hidden;
            border: 3px solid var(--primary);
            background: var(--surface-2);
            display: flex;
            align-items: center;
            justify-content: center}
        .avatar-container img {
            width: 100%;
            height: 100%;
            object-fit: cover}
        .avatar-container .no-avatar {
            font-size: 40px;
            color: var(--text-muted)}
        .avatar-upload-btn {
            position: absolute;
            bottom: 0;
            right: 0;
            background: var(--primary);
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            cursor: pointer;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2)}
        .avatar-upload-btn input {
            position: absolute;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer}
        
        .user-name-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-top: 4px}
        .user-name {
            font-size: 22px;
            font-weight: 700;
            cursor: pointer;
            transition: 0.2s}
        .user-name:hover { opacity: 0.7}
        .edit-name-btn {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 18px;
            cursor: pointer;
            transition: 0.2s;
            padding: 2px 6px}
        .edit-name-btn:hover { color: var(--primary)}
        .user-name-input {
            font-size: 22px;
            font-weight: 700;
            border: 2px solid var(--primary);
            border-radius: 12px;
            padding: 4px 12px;
            text-align: center;
            background: var(--card-bg);
            max-width: 220px;
            outline: none}
        .user-name-input:focus { border-color: var(--primary-dark)}
        .user-email { 
            color: var(--text-muted); 
            font-size: 13px; 
            margin-top: 4px}

        .user-details {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid var(--surface-2);
            text-align: left}
        .user-details .detail-row {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            font-size: 14px;
            border-bottom: 1px solid var(--surface-2)}
        .user-details .detail-row:last-child { border-bottom: none}
        .user-details .detail-label {
            color: var(--text-secondary);
            font-weight: 500}
        .user-details .detail-value {
            font-weight: 600;
            color: var(--text-primary)}
        .user-details .detail-value.empty {
            color: var(--text-muted);
            font-weight: 400}

        .edit-profile-btn {
            margin-top: 12px;
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: 30px;
            padding: 8px 20px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.2s;
            color: var(--text-primary)}
        .edit-profile-btn:hover {
            background: var(--primary);
            border-color: var(--primary)}

        .balance-card {
            border-radius: 24px;
            padding: 24px 20px;
            color: white;
            margin-bottom: 20px;
            border: none;
            box-shadow: 0 8px 25px rgba(0,0,0,0.25);
            position: relative;
            overflow: hidden;
            min-height: 160px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: background 0.4s ease}
        .balance-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -30%;
            width: 200px;
            height: 200px;
            background: rgba(255,255,255,0.08);
            border-radius: 50%}
        .balance-card::after {
            content: '';
            position: absolute;
            bottom: -40%;
            left: -20%;
            width: 150px;
            height: 150px;
            background: rgba(255,255,255,0.05);
            border-radius: 50%}
        .balance-card .card-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            position: relative;
            z-index: 1}
        .balance-card .card-label {
            font-size: 13px;
            font-weight: 500;
            color: rgba(255,255,255,0.8);
            letter-spacing: 0.5px;
            text-transform: uppercase}
        .balance-card .card-icon {
            font-size: 28px;
            opacity: 0.8}
        .balance-card .card-amount {
            font-size: 38px;
            font-weight: 800;
            color: #ffffff;
            margin-top: 4px;
            position: relative;
            z-index: 1;
            text-shadow: 0 2px 4px rgba(0,0,0,0.15)}
        .balance-card .card-amount small {
            font-size: 18px;
            font-weight: 500;
            color: rgba(255,255,255,0.8)}
        .balance-card .card-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 12px;
            position: relative;
            z-index: 1;
            border-top: 1px solid rgba(255,255,255,0.2);
            padding-top: 12px}
        .balance-card .card-id {
            font-size: 14px;
            font-weight: 600;
            color: rgba(255,255,255,0.95);
            font-family: 'Courier New', monospace;
            letter-spacing: 1px}
        .balance-card .card-id span {
            font-weight: 400;
            color: rgba(255,255,255,0.6);
            margin-right: 6px}
        .balance-card .card-action {
            background: rgba(255,255,255,0.2);
            border: none;
            border-radius: 30px;
            padding: 8px 18px;
            color: white;
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
            backdrop-filter: blur(4px);
            font-family: 'Inter', sans-serif}
        .balance-card .card-action:hover {
            background: rgba(255,255,255,0.35);
            transform: scale(1.02)}

        .card-color-0 { background: linear-gradient(145deg, #b45309, #d97706)}
        .card-color-1 { background: linear-gradient(145deg, #1d4ed8, #3b82f6)}
        .card-color-2 { background: linear-gradient(145deg, #6d28d9, #8b5cf6)}
        .card-color-3 { background: linear-gradient(145deg, #047857, #10b981)}
        .card-color-4 { background: linear-gradient(145deg, #b91c1c, #ef4444)}
        .card-color-5 { background: linear-gradient(145deg, #0f766e, #14b8a6)}
        .card-color-6 { background: linear-gradient(145deg, #d97706, #fbbf24)}
        .card-color-7 { background: linear-gradient(145deg, #be185d, #f472b6)}
        .card-color-8 { background: linear-gradient(145deg, #475569, #94a3b8)}

        .change-color-btn {
            background: none;
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 30px;
            padding: 4px 12px;
            color: white;
            font-size: 12px;
            cursor: pointer;
            transition: 0.2s;
            backdrop-filter: blur(4px);
            font-family: 'Inter', sans-serif}
        .change-color-btn:hover {
            background: rgba(255,255,255,0.2);
            transform: scale(1.05)}

        .action-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 20px}
        .action-btn {
            background: var(--card-bg);
            border: 1px solid var(--surface-2);
            border-radius: 16px;
            padding: 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 600;
            font-size: 14px;
            color: var(--text-primary)}
        .action-btn:hover {
            border-color: var(--primary);
            box-shadow: 0 4px 12px color-mix(in srgb,var(--primary) 15%,transparent);
            transform: translateY(-2px)}
        .action-btn .icon { font-size: 28px; display: block; margin-bottom: 4px}
        .action-btn.primary-btn {
            background: var(--primary);
            border-color: var(--primary);
            color:var(--on-primary)}
        .action-btn.primary-btn:hover {
            background: var(--primary-dark);
            border-color: var(--primary-dark);
            box-shadow: 0 4px 16px color-mix(in srgb,var(--primary) 40%,transparent)}
        .action-btn.full-width {
            grid-column: 1 / -1}

        /* YANGI: IKKITA TUGMA - "Заказать бензин" va "Уведомления" yonma-yon */
        .double-btn-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 16px}
        .double-btn-wrapper .action-btn {
            margin-bottom: 0}
        .double-btn-wrapper .action-btn .badge {
            display: inline-block;
            background: #ef4444;
            color: white;
            border-radius: 50%;
            min-width: 22px;
            height: 22px;
            font-size: 12px;
            font-weight: 700;
            line-height: 22px;
            text-align: center;
            padding: 0 6px;
            margin-left: 6px;
            vertical-align: top}
        .double-btn-wrapper .action-btn .badge.empty {
            background: var(--border);
            color: var(--text-muted)}
        .double-btn-wrapper .action-btn .badge.has {
            animation: pulse-badge 2s infinite}
        @keyframes pulse-badge {
            0%, 100% { transform: scale(1)}
            50% { transform: scale(1.15)}
        }
        .double-btn-wrapper .action-btn .small-text {
            font-size: 11px;
            font-weight: 400;
            color: var(--text-secondary);
            display: block;
            margin-top: 2px}
        .double-btn-wrapper .action-btn.primary-btn .small-text {
            color: var(--primary-ink)}

        .modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5);
            backdrop-filter: blur(8px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 20px}
        .modal-overlay.active { display: flex}
        .modal {
            background: var(--card-bg);
            border-radius: 28px;
            padding: 32px 28px;
            max-width: 420px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 24px 48px rgba(0,0,0,0.2);
            animation: modalSlide 0.3s ease}
        @keyframes modalSlide {
            from { transform: translateY(20px); opacity: 0}
            to { transform: translateY(0); opacity: 1}
        }
        .modal h2 { font-size: 22px; margin-bottom: 6px; color: var(--text-primary)}
        .modal .subtitle { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px}
        .modal label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 4px}
        .modal input, .modal select, .modal textarea {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--border);
            border-radius: 12px;
            font-size: 16px;
            margin-bottom: 12px;
            font-family: inherit;
            transition: 0.2s}
        .modal input:focus, .modal textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px color-mix(in srgb,var(--primary) 15%,transparent)}
        .modal .btn-group {
            display: flex;
            gap: 12px;
            margin-top: 8px}
        .modal .btn-group button {
            flex: 1;
            padding: 14px;
            border: none;
            border-radius: 14px;
            font-weight: 700;
            cursor: pointer;
            font-size: 15px;
            transition: 0.2s}
        .btn-primary {
            background: var(--primary);
            color:var(--on-primary)}
        .btn-primary:hover { background: var(--primary-dark); transform: scale(1.02)}
        .btn-secondary {
            background: var(--surface-2);
            color: var(--text-secondary)}
        .btn-secondary:hover { background: var(--border)}
        .btn-success {
            background: #22c55e;
            color: white}
        .btn-success:hover { background: #16a34a; transform: scale(1.02)}
        .btn-danger {
            background: #ef4444;
            color: white}
        .btn-danger:hover { background: #dc2626}
        .btn-telegram {
            background: #0088cc;
            color: white}
        .btn-telegram:hover { background: #006699}
        .modal .error {
            color: #ef4444;
            font-size: 13px;
            margin-bottom: 8px;
            display: none}
        .modal .success {
            color: #22c55e;
            font-size: 13px;
            margin-bottom: 8px;
            display: none}

        .color-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin: 16px 0}
        .color-swatch {
            width: 100%;
            aspect-ratio: 1 / 1;
            border-radius: 16px;
            cursor: pointer;
            border: 3px solid transparent;
            transition: 0.2s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1)}
        .color-swatch:hover {
            transform: scale(1.05);
            border-color: var(--primary)}
        .color-swatch.active {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary)}

        .recipient-info {
            background: var(--surface-2);
            padding: 12px 16px;
            border-radius: 12px;
            margin-bottom: 12px;
            font-size: 14px;
            border: 1px solid var(--surface-2)}
        .recipient-info strong { display: block}

        .toast {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--ink);
            color: white;
            padding: 14px 28px;
            border-radius: 40px;
            font-size: 14px;
            font-weight: 500;
            z-index: 2000;
            opacity: 0;
            transition: all 0.4s;
            pointer-events: none;
            box-shadow: 0 8px 24px rgba(0,0,0,0.2);
            max-width: 90%;
            text-align: center}
        .toast.show {
            opacity: 1;
            pointer-events: auto;
            transform: translateX(-50%) translateY(0)}
        .toast.success { background: #22c55e}
        .toast.error { background: #ef4444}
        .toast.warning { background: #f59e0b}

        .loading-spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid var(--surface-2);
            border-top: 2px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            vertical-align: middle;
            margin-right: 8px}
        @keyframes spin { to { transform: rotate(360deg)} }

        .history-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid var(--surface-2)}
        .history-item:last-child { border-bottom: none}
        .history-info { flex: 1}
        .history-info .desc { font-weight: 600; font-size: 14px}
        .history-info .date { font-size: 11px; color: var(--text-muted)}
        .history-amount { font-weight: 700; font-size: 16px}
        .history-amount.positive { color: #22c55e}
        .history-amount.negative { color: #ef4444}
        .history-empty {
            text-align: center;
            padding: 30px 0;
            color: var(--text-muted)}
        .history-empty .icon { font-size: 40px; display: block; margin-bottom: 8px}

        .order-history-section {
            background: var(--card-bg);
            border-radius: 24px;
            padding: 20px;
            margin-bottom: 20px;
            border: 1px solid var(--surface-2);
            box-shadow: 0 4px 12px rgba(0,0,0,0.05)}
        .order-history-section .section-title {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-primary)}
        .order-history-section .section-title span { font-size: 20px}
        .order-history-list {
            max-height: 400px;
            overflow-y: auto}
        .order-item {
            background: var(--surface-2);
            border-radius: 12px;
            padding: 12px 14px;
            margin-bottom: 8px;
            border-left: 3px solid var(--border);
            transition: all 0.2s}
        .order-item:hover { background: var(--surface-2)}
        .order-item.status-active { border-left-color: var(--primary)}
        .order-item.status-completed { border-left-color: #22c55e}
        .order-item.status-cancelled { border-left-color: #ef4444}
        .order-item .o-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 4px}
        .order-item .o-id { font-weight: 600; font-size: 13px; color: var(--text-primary)}
        .order-item .o-status {
            font-size: 11px;
            font-weight: 600;
            padding: 2px 10px;
            border-radius: 20px}
        .order-item .o-status.active { background: #fef3c7; color: #92400e}
        .order-item .o-status.completed { background: #d1fae5; color: #065f46}
        .order-item .o-status.cancelled { background: #fee2e2; color: #991b1b}
        .order-item .o-details {
            font-size: 13px;
            color: var(--text-secondary);
            margin-top: 4px;
            display: flex;
            flex-wrap: wrap;
            gap: 12px}
        .order-item .o-details span { display: flex; align-items: center; gap: 4px}
        .order-item .o-price { font-weight: 700; color: #f59e0b; font-size: 14px}
        .order-empty {
            text-align: center;
            padding: 30px 0;
            color: var(--text-muted)}
        .order-empty .icon { font-size: 40px; display: block; margin-bottom: 8px}
        .load-more-btn {
            background: var(--surface-2);
            border: none;
            border-radius: 30px;
            padding: 10px;
            width: 100%;
            font-weight: 600;
            font-size: 14px;
            color: var(--text-secondary);
            cursor: pointer;
            margin-top: 8px;
            transition: 0.2s}
        .load-more-btn:hover { background: var(--border)}

        .admin-push-btn {
            background: #8b5cf6;
            color: white;
            border: none;
            border-radius: 30px;
            padding: 12px 20px;
            font-weight: 700;
            font-size: 14px;
            cursor: pointer;
            width: 100%;
            margin-bottom: 16px;
            transition: 0.2s}
        .admin-push-btn:hover {
            background: #7c3aed;
            transform: scale(1.02)}

        .push-preview {
            background: var(--surface-2);
            border-radius: 12px;
            padding: 12px;
            margin-top: 8px;
            font-size: 13px;
            color: var(--text-secondary);
            border: 1px dashed var(--border)}
        .push-preview strong { color: var(--text-primary)}

        /* Messages list in bell modal */
        .message-item {
            padding: 12px 0;
            border-bottom: 1px solid var(--surface-2)}
        .message-item:last-child { border-bottom: none}
        .message-item .msg-title { font-weight: 600; font-size: 14px; color: var(--text-primary)}
        .message-item .msg-body { font-size: 13px; color: var(--text-secondary); margin-top: 4px}
        .message-item .msg-time { font-size: 11px; color: var(--text-muted); margin-top: 4px}
        .message-item.unread { background: var(--surface-2); border-radius: 8px; padding: 12px}
        .message-item.unread .msg-title { color: #d97706}

        /* New notification modal (72 hours) */
        .notify-modal-icon {
            font-size: 56px;
            text-align: center;
            margin-bottom: 12px;
            display: block}
        .notify-title {
            font-size: 22px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 8px;
            color: var(--text-primary)}
        .notify-desc {
            text-align: center;
            color: var(--text-secondary);
            font-size: 15px;
            line-height: 1.6;
            margin-bottom: 20px}
        .notify-features {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 20px}
        .notify-features .feature {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            background: var(--surface-2);
            border-radius: 12px;
            border: 1px solid var(--surface-2)}
        .notify-features .feature .icon { font-size: 24px}
        .notify-features .feature .text { font-size: 14px; color: var(--text-primary)}
        .notify-features .feature .text small { display: block; color: var(--text-secondary); font-size: 12px; margin-top: 2px}
        .notify-actions {
            display: flex;
            gap: 12px;
            margin-top: 4px}
        .notify-actions button {
            flex: 1;
            padding: 14px;
            border: none;
            border-radius: 14px;
            font-weight: 700;
            cursor: pointer;
            font-size: 15px;
            transition: 0.2s}
        .notify-actions .btn-check {
            background: var(--primary);
            color:var(--on-primary)}
        .notify-actions .btn-check:hover { background: var(--primary-dark); transform: scale(1.02)}

        @media (max-width: 480px) {
            .action-grid { grid-template-columns: 1fr 1fr}
            .balance-card .card-amount { font-size: 28px}
            .balance-card { padding: 20px 16px; min-height: 140px}
            .order-item .o-top { flex-direction: column; align-items: flex-start}
            .order-item .o-details { flex-direction: column; gap: 4px}
            .color-grid { grid-template-columns: repeat(4, 1fr); gap: 8px}
            .double-btn-wrapper { grid-template-columns: 1fr 1fr; gap: 8px}
            .double-btn-wrapper .action-btn { padding: 14px 10px}
            .double-btn-wrapper .action-btn .icon { font-size: 22px}
            .modal { padding: 24px 20px}
            .notify-features .feature { padding: 10px 12px}
            .notify-actions { flex-direction: column}
            .notify-actions button { padding: 12px}
        }
    
