        /* History View - Redesigned */
        .history-container {
            padding: 0;
            max-width: 552px;
            margin: 0 auto;
            min-height: calc(100vh - 160px);
        }
        
        .history-hero {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            padding: 24px 16px 60px;
            color: white;
            position: relative;
        }
        
        .history-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            pointer-events: none;
        }
        
        .history-hero-content {
            max-width: 520px;
            margin: 0 auto;
            position: relative;
        }
        
        .history-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 24px 20px 60px;
            position: relative;
        }
        
        .history-header-title {
            font-size: 24px;
            font-weight: 800;
            margin-bottom: 4px;
        }
        
        .history-header-subtitle {
            font-size: 14px;
            opacity: 0.9;
        }
        
        .history-stats-row {
            display: flex;
            gap: 12px;
            margin: -40px 16px 20px;
            position: relative;
            z-index: 10;
        }
        
        .history-stat-card {
            flex: 1;
            background: white;
            border-radius: 16px;
            padding: 16px;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        .history-stat-icon {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 8px;
            color: white;
        }
        
        .history-stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--gray-800);
        }
        
        .history-stat-label {
            font-size: 11px;
            color: var(--gray-500);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .history-content {
            padding: 0 16px 20px;
        }
        
        .history-phone-form {
            background: white;
            padding: 32px 24px;
            border-radius: 20px;
            margin: -40px 16px 20px;
            position: relative;
            z-index: 10;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            text-align: center;
        }
        
        .history-phone-icon {
            width: 64px;
            height: 64px;
            background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            color: var(--gray-400);
        }
        
        .history-phone-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--gray-800);
            margin-bottom: 8px;
        }
        
        .history-phone-text {
            font-size: 14px;
            color: var(--gray-500);
            margin-bottom: 20px;
        }
        
        .history-welcome {
            background: white;
            padding: 20px;
            border-radius: 16px;
            margin-bottom: 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        
        .welcome-content {
            display: flex;
            align-items: center;
            gap: 16px;
        }
        
        .welcome-avatar {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            font-weight: 600;
            flex-shrink: 0;
        }
        
        .welcome-info {
            flex: 1;
            text-align: left;
        }
        
        .welcome-name {
            font-size: 16px;
            font-weight: 600;
            color: var(--gray-800);
            margin-bottom: 2px;
        }
        
        .welcome-message {
            font-size: 13px;
            color: var(--gray-500);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .welcome-action {
            flex-shrink: 0;
        }
        
        .history-section-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-800);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .history-filter-tabs {
            position: relative;
            display: flex;
            gap: 0;
            margin-bottom: 16px;
            background: var(--gray-100);
            border-radius: 9999px;
            padding: 4px;
            overflow: hidden;
        }
        
        .history-filter-tab {
            position: relative;
            z-index: 2;
            flex: 1 1 0;
            min-width: 0;
            padding: 10px 12px;
            background: transparent;
            border: none;
            border-radius: 9999px;
            font-size: 13px;
            font-weight: 500;
            color: var(--gray-600);
            cursor: pointer;
            white-space: nowrap;
            transition: color 0.25s ease;
        }
        
        .history-filter-tab.active {
            color: white;
        }
        
        .history-filter-pill {
            position: absolute;
            top: 4px;
            left: 4px;
            height: calc(100% - 8px);
            background: var(--primary);
            border-radius: 9999px;
            z-index: 1;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }
        
        .history-empty {
            text-align: center;
            padding: 60px 20px;
            color: var(--gray-500);
        }
        
        .history-empty-icon {
            width: 80px;
            height: 80px;
            background: var(--gray-100);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            color: var(--gray-400);
        }
        
        .history-empty-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--gray-700);
            margin-bottom: 4px;
        }
        
        .history-empty-text {
            font-size: 14px;
        }
        
        .btn-secondary {
            background: var(--gray-200);
            color: var(--gray-700);
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-secondary:hover {
            background: var(--gray-300);
        }
        
        .form-label {
            display: block;
            font-weight: 500;
            margin-bottom: 8px;
            color: var(--gray-700);
        }
        
        .form-input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--gray-300);
            border-radius: 8px;
            font-size: 16px;
            margin-bottom: 16px;
        }
        
        .form-input:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .btn-primary {
            width: 100%;
            background: var(--primary);
            color: white;
            border: none;
            padding: 14px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
        }
        
        .order-card {
            background: white;
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid var(--gray-100);
        }
        
        .order-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }
        
        .order-card:active {
            transform: translateY(0);
        }
        
        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }
        
        .order-number {
            font-size: 15px;
            font-weight: 600;
            color: var(--gray-800);
        }
        
        .order-date {
            font-size: 12px;
            color: var(--gray-500);
            margin-top: 2px;
        }
        
        .order-status {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }
        
        .order-status.pending {
            background: var(--status-pending-bg);
            color: var(--status-pending-text);
        }
        
        .order-status.preparing {
            background: var(--status-preparing-bg);
            color: var(--status-preparing-text);
        }
        
        .order-status.completed {
            background: var(--status-completed-bg);
            color: var(--status-completed-text);
        }
        
        .order-total {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary);
        }
        
        .btn-reorder {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--gray-100);
            color: var(--gray-700);
            border: none;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-reorder:hover {
            background: var(--primary);
            color: white;
        }
        