{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "CustomerProfile",
      "name": "Spa/Customer Profile",
      "reusable": true,
      "width": 500,
      "height": 700,
      "fill": "$bg-page",
      "layout": "vertical",
      "clip": true,
      "children": [
        {
          "type": "frame",
          "id": "ProfileHeader",
          "width": "fill_container",
          "padding": [20, 24],
          "fill": "$bg-elevated",
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "ProfileHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "ProfileBackBtn", "width": 40, "height": 40, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "ProfileBackIcon", "width": 20, "height": 20, "iconFontName": "arrow-left", "iconFontFamily": "lucide", "fill": "$text-secondary"}
              ]},
              {"type": "text", "id": "ProfileTitle", "fill": "$text-primary", "content": "Hồ sơ khách hàng", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "ProfileEditBtn", "width": 40, "height": 40, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "ProfileEditIcon", "width": 20, "height": 20, "iconFontName": "edit-2", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "ProfileContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 24,
          "layout": "vertical",
          "gap": 20,
          "clip": true,
          "children": [
            {
              "type": "frame",
              "id": "CustomerCard",
              "width": "fill_container",
              "fill": "$bg-elevated",
              "cornerRadius": 16,
              "padding": 24,
              "layout": "vertical",
              "gap": 16,
              "alignItems": "center",
              "children": [
                {"type": "frame", "id": "CustomerAvatar", "width": 80, "height": 80, "fill": "#EC489920", "cornerRadius": 100, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "CustomerAvatarText", "fill": "#EC4899", "content": "NL", "fontFamily": "Roboto", "fontSize": 28, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "CustomerInfo", "layout": "vertical", "gap": 6, "alignItems": "center", "children": [
                  {"type": "text", "id": "CustomerName", "fill": "$text-primary", "content": "Nguyễn Thị Lan", "fontFamily": "Roboto", "fontSize": 20, "fontWeight": "700"},
                  {"type": "text", "id": "CustomerPhone", "fill": "$text-secondary", "content": "0901 234 567", "fontFamily": "Roboto", "fontSize": 14}
                ]},
                {"type": "frame", "id": "CustomerBadges", "gap": 12, "children": [
                  {"type": "frame", "id": "VIPBadge", "fill": "#F59E0B20", "cornerRadius": 8, "padding": [8, 14], "gap": 6, "alignItems": "center", "children": [
                    {"type": "icon_font", "id": "VIPIcon", "width": 16, "height": 16, "iconFontName": "crown", "iconFontFamily": "lucide", "fill": "#F59E0B"},
                    {"type": "text", "id": "VIPText", "fill": "#F59E0B", "content": "VIP Gold", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
                  ]},
                  {"type": "frame", "id": "PointsBadge", "fill": "#22C55E20", "cornerRadius": 8, "padding": [8, 14], "gap": 6, "alignItems": "center", "children": [
                    {"type": "icon_font", "id": "PointsIcon", "width": 16, "height": 16, "iconFontName": "star", "iconFontFamily": "lucide", "fill": "#22C55E"},
                    {"type": "text", "id": "PointsText", "fill": "#22C55E", "content": "1,250 điểm", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
                  ]}
                ]}
              ]
            },
            {
              "type": "frame",
              "id": "StatsRow",
              "width": "fill_container",
              "gap": 12,
              "children": [
                {"type": "frame", "id": "StatVisits", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 12, "padding": 16, "layout": "vertical", "gap": 4, "alignItems": "center", "children": [
                  {"type": "text", "id": "StatVisitsValue", "fill": "$text-primary", "content": "28", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "700"},
                  {"type": "text", "id": "StatVisitsLabel", "fill": "$text-tertiary", "content": "Lượt", "fontFamily": "Roboto", "fontSize": 12}
                ]},
                {"type": "frame", "id": "StatSpent", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 12, "padding": 16, "layout": "vertical", "gap": 4, "alignItems": "center", "children": [
                  {"type": "text", "id": "StatSpentValue", "fill": "$text-primary", "content": "12.5M", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "700"},
                  {"type": "text", "id": "StatSpentLabel", "fill": "$text-tertiary", "content": "Đã chi", "fontFamily": "Roboto", "fontSize": 12}
                ]},
                {"type": "frame", "id": "StatLast", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 12, "padding": 16, "layout": "vertical", "gap": 4, "alignItems": "center", "children": [
                  {"type": "text", "id": "StatLastValue", "fill": "$text-primary", "content": "3", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "700"},
                  {"type": "text", "id": "StatLastLabel", "fill": "$text-tertiary", "content": "Ngày trước", "fontFamily": "Roboto", "fontSize": 12}
                ]}
              ]
            },
            {
              "type": "frame",
              "id": "NotesSection",
              "width": "fill_container",
              "fill": "$bg-elevated",
              "cornerRadius": 14,
              "layout": "vertical",
              "children": [
                {"type": "frame", "id": "NotesHeader", "width": "fill_container", "padding": [14, 18], "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]}, "gap": 8, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "NotesIcon", "width": 18, "height": 18, "iconFontName": "file-text", "iconFontFamily": "lucide", "fill": "$orange-primary"},
                  {"type": "text", "id": "NotesTitle", "fill": "$text-primary", "content": "Ghi chú", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "NotesBody", "width": "fill_container", "padding": 18, "layout": "vertical", "gap": 10, "children": [
                  {"type": "frame", "id": "NoteRow1", "gap": 8, "children": [
                    {"type": "text", "id": "NoteLabel1", "fill": "$text-tertiary", "content": "Dị ứng:", "fontFamily": "Roboto", "fontSize": 13},
                    {"type": "text", "id": "NoteValue1", "fill": "$text-primary", "content": "Không", "fontFamily": "Roboto", "fontSize": 13}
                  ]},
                  {"type": "frame", "id": "NoteRow2", "gap": 8, "children": [
                    {"type": "text", "id": "NoteLabel2", "fill": "$text-tertiary", "content": "Ưa thích:", "fontFamily": "Roboto", "fontSize": 13},
                    {"type": "text", "id": "NoteValue2", "fill": "$text-primary", "content": "Massage thư giãn", "fontFamily": "Roboto", "fontSize": 13}
                  ]},
                  {"type": "frame", "id": "NoteRow3", "gap": 8, "children": [
                    {"type": "text", "id": "NoteLabel3", "fill": "$text-tertiary", "content": "Nhân viên:", "fontFamily": "Roboto", "fontSize": 13},
                    {"type": "text", "id": "NoteValue3", "fill": "$text-primary", "content": "Chị Hương", "fontFamily": "Roboto", "fontSize": 13}
                  ]}
                ]}
              ]
            },
            {
              "type": "frame",
              "id": "HistorySection",
              "width": "fill_container",
              "height": "fill_container",
              "fill": "$bg-elevated",
              "cornerRadius": 14,
              "layout": "vertical",
              "clip": true,
              "children": [
                {"type": "frame", "id": "HistoryHeader", "width": "fill_container", "padding": [14, 18], "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]}, "gap": 8, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "HistoryIcon", "width": 18, "height": 18, "iconFontName": "clock", "iconFontFamily": "lucide", "fill": "#8B5CF6"},
                  {"type": "text", "id": "HistoryTitle", "fill": "$text-primary", "content": "Lịch sử gần đây", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "HistoryBody", "width": "fill_container", "padding": 12, "layout": "vertical", "gap": 10, "children": [
                  {"type": "frame", "id": "HistoryItem1", "width": "fill_container", "fill": "$bg-interactive", "cornerRadius": 10, "padding": 12, "justifyContent": "space_between", "alignItems": "center", "children": [
                    {"type": "frame", "id": "History1Left", "layout": "vertical", "gap": 4, "children": [
                      {"type": "text", "id": "History1Date", "fill": "$text-tertiary", "content": "03/02/2026", "fontFamily": "Roboto", "fontSize": 12},
                      {"type": "text", "id": "History1Service", "fill": "$text-primary", "content": "Facial + Massage", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                    ]},
                    {"type": "text", "id": "History1Amount", "fill": "#22C55E", "content": "850,000₫", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
                  ]},
                  {"type": "frame", "id": "HistoryItem2", "width": "fill_container", "fill": "$bg-interactive", "cornerRadius": 10, "padding": 12, "justifyContent": "space_between", "alignItems": "center", "children": [
                    {"type": "frame", "id": "History2Left", "layout": "vertical", "gap": 4, "children": [
                      {"type": "text", "id": "History2Date", "fill": "$text-tertiary", "content": "15/01/2026", "fontFamily": "Roboto", "fontSize": 12},
                      {"type": "text", "id": "History2Service", "fill": "$text-primary", "content": "Gội đầu dưỡng", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                    ]},
                    {"type": "text", "id": "History2Amount", "fill": "#22C55E", "content": "250,000₫", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
                  ]}
                ]}
              ]
            }
          ]
        },
        {
          "type": "frame",
          "id": "ProfileFooter",
          "width": "fill_container",
          "fill": "$bg-elevated",
          "padding": [16, 24],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "gap": 12,
          "children": [
            {"type": "frame", "id": "BookBtn", "width": "fill_container", "height": 48, "fill": "$orange-primary", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "gap": 8, "children": [
              {"type": "icon_font", "id": "BookIcon", "width": 18, "height": 18, "iconFontName": "calendar", "iconFontFamily": "lucide", "fill": "#FFFFFF"},
              {"type": "text", "id": "BookText", "fill": "#FFFFFF", "content": "Đặt lịch", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
            ]},
            {"type": "frame", "id": "RedeemBtn", "width": "fill_container", "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "gap": 8, "children": [
              {"type": "icon_font", "id": "RedeemIcon", "width": 18, "height": 18, "iconFontName": "gift", "iconFontFamily": "lucide", "fill": "$text-secondary"},
              {"type": "text", "id": "RedeemText", "fill": "$text-secondary", "content": "Đổi điểm", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
            ]}
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-elevated": {"type": "color", "value": "#1A1A1D"},
    "bg-interactive": {"type": "color", "value": "#2A2A2E"},
    "bg-page": {"type": "color", "value": "#0A0A0B"},
    "border-subtle": {"type": "color", "value": "#1F1F23"},
    "orange-primary": {"type": "color", "value": "#FF5C00"},
    "text-primary": {"type": "color", "value": "#FFFFFF"},
    "text-secondary": {"type": "color", "value": "#ADADB0"},
    "text-tertiary": {"type": "color", "value": "#8B8B90"}
  }
}
