{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "LoyaltyRewardDialog",
      "name": "Dialog/LoyaltyReward",
      "reusable": true,
      "width": 420,
      "height": 700,
      "fill": "$bg-elevated",
      "cornerRadius": 24,
      "layout": "vertical",
      "clip": true,
      "children": [
        {
          "type": "frame",
          "id": "RewardHeader",
          "width": "fill_container",
          "padding": [20, 24],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "RewardHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "RewardIconBg", "width": 44, "height": 44, "fill": "#F59E0B20", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "RewardIcon", "width": 22, "height": 22, "iconFontName": "gift", "iconFontFamily": "lucide", "fill": "#F59E0B"}
              ]},
              {"type": "text", "id": "RewardTitle", "fill": "$text-primary", "content": "Đổi điểm thưởng", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "RewardCloseBtn", "width": 36, "height": 36, "fill": "$bg-interactive", "cornerRadius": 18, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "RewardCloseIcon", "width": 18, "height": 18, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "RewardContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 24,
          "layout": "vertical",
          "gap": 20,
          "children": [
            {"type": "frame", "id": "RewardPointsCard", "width": "fill_container", "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "size": {"height": 1}, "colors": [{"color": "#F59E0B", "position": 0}, {"color": "#D97706", "position": 1}]}, "cornerRadius": 16, "padding": 20, "layout": "vertical", "gap": 12, "alignItems": "center", "children": [
              {"type": "text", "id": "RewardPointsLabel", "fill": "#FFFFFF99", "content": "Điểm thưởng hiện có", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "normal"},
              {"type": "frame", "id": "RewardPointsValue", "gap": 8, "alignItems": "baseline", "children": [
                {"type": "text", "id": "RewardPointsNumber", "fill": "$text-primary", "content": "2,450", "fontFamily": "Roboto", "fontSize": 44, "fontWeight": "700"},
                {"type": "text", "id": "RewardPointsUnit", "fill": "#FFFFFF99", "content": "điểm", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "500"}
              ]},
              {"type": "text", "id": "RewardPointsInfo", "fill": "#FFFFFF99", "content": "= 245,000₫ giá trị quy đổi", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"}
            ]},
            {"type": "frame", "id": "RewardOptionsSection", "width": "fill_container", "layout": "vertical", "gap": 12, "children": [
              {"type": "text", "id": "RewardOptionsLabel", "fill": "$text-secondary", "content": "Chọn ưu đãi đổi điểm", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
              {"type": "frame", "id": "RewardOption1", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 14, "stroke": {"thickness": 2, "fill": "#F59E0B"}, "padding": 16, "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "frame", "id": "RewardOption1Left", "gap": 12, "alignItems": "center", "children": [
                  {"type": "frame", "id": "RewardOption1Radio", "width": 24, "height": 24, "stroke": {"thickness": 2, "fill": "#F59E0B"}, "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "frame", "id": "RewardOption1Dot", "width": 12, "height": 12, "fill": "#F59E0B", "cornerRadius": 6}
                  ]},
                  {"type": "frame", "id": "RewardOption1Info", "layout": "vertical", "gap": 2, "children": [
                    {"type": "text", "id": "RewardOption1Name", "fill": "$text-primary", "content": "Giảm 50,000₫", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"},
                    {"type": "text", "id": "RewardOption1Desc", "fill": "$text-tertiary", "content": "Áp dụng trực tiếp vào hóa đơn", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"}
                  ]}
                ]},
                {"type": "text", "id": "RewardOption1Points", "fill": "#F59E0B", "content": "500 điểm", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
              ]},
              {"type": "frame", "id": "RewardOption2", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 14, "stroke": {"thickness": 1, "fill": "$border-default"}, "padding": 16, "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "frame", "id": "RewardOption2Left", "gap": 12, "alignItems": "center", "children": [
                  {"type": "frame", "id": "RewardOption2Radio", "width": 24, "height": 24, "stroke": {"thickness": 2, "fill": "$border-default"}, "cornerRadius": 12},
                  {"type": "frame", "id": "RewardOption2Info", "layout": "vertical", "gap": 2, "children": [
                    {"type": "text", "id": "RewardOption2Name", "fill": "$text-primary", "content": "Giảm 100,000₫", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"},
                    {"type": "text", "id": "RewardOption2Desc", "fill": "$text-tertiary", "content": "Áp dụng trực tiếp vào hóa đơn", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"}
                  ]}
                ]},
                {"type": "text", "id": "RewardOption2Points", "fill": "$text-tertiary", "content": "1,000 điểm", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
              ]},
              {"type": "frame", "id": "RewardOption3", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 14, "stroke": {"thickness": 1, "fill": "$border-default"}, "padding": 16, "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "frame", "id": "RewardOption3Left", "gap": 12, "alignItems": "center", "children": [
                  {"type": "frame", "id": "RewardOption3Radio", "width": 24, "height": 24, "stroke": {"thickness": 2, "fill": "$border-default"}, "cornerRadius": 12},
                  {"type": "frame", "id": "RewardOption3Info", "layout": "vertical", "gap": 2, "children": [
                    {"type": "text", "id": "RewardOption3Name", "fill": "$text-primary", "content": "Món quà sinh nhật", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"},
                    {"type": "text", "id": "RewardOption3Desc", "fill": "$text-tertiary", "content": "1 ly trà sữa miễn phí", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"}
                  ]}
                ]},
                {"type": "text", "id": "RewardOption3Points", "fill": "$text-tertiary", "content": "800 điểm", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "RewardFooter",
          "width": "fill_container",
          "padding": [16, 24],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "layout": "vertical",
          "gap": 12,
          "children": [
            {"type": "frame", "id": "RewardSummary", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
              {"type": "text", "id": "RewardSummaryLabel", "fill": "$text-secondary", "content": "Điểm sau khi đổi", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "normal"},
              {"type": "text", "id": "RewardSummaryValue", "fill": "#22C55E", "content": "1,950 điểm", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "RewardApplyBtn", "width": "fill_container", "height": 52, "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "size": {"height": 1}, "colors": [{"color": "#F59E0B", "position": 0}, {"color": "#D97706", "position": 1}]}, "cornerRadius": 12, "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "RewardApplyIcon", "width": 20, "height": 20, "iconFontName": "gift", "iconFontFamily": "lucide", "fill": "$text-primary"},
              {"type": "text", "id": "RewardApplyText", "fill": "$text-primary", "content": "Đổi 500 đ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-default": {"type": "color", "value": "#2A2A2E"},
    "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"}
  }
}
