{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "GiftCardScreen",
      "name": "Payment/GiftCard",
      "reusable": true,
      "width": 440,
      "height": 660,
      "fill": "$bg-elevated",
      "cornerRadius": 24,
      "layout": "vertical",
      "clip": true,
      "children": [
        {
          "type": "frame",
          "id": "GiftHeader",
          "width": "fill_container",
          "padding": [20, 24],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "GiftHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "GiftIconBg", "width": 44, "height": 44, "fill": "#EC489920", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "GiftIcon", "width": 22, "height": 22, "iconFontName": "ticket", "iconFontFamily": "lucide", "fill": "#EC4899"}
              ]},
              {"type": "text", "id": "GiftTitle", "fill": "$text-primary", "content": "Thẻ quà tặng", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "GiftCloseBtn", "width": 36, "height": 36, "fill": "$bg-interactive", "cornerRadius": 18, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "GiftCloseIcon", "width": 18, "height": 18, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "GiftContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 24,
          "layout": "vertical",
          "gap": 20,
          "children": [
            {"type": "frame", "id": "GiftInputSection", "width": "fill_container", "layout": "vertical", "gap": 12, "children": [
              {"type": "text", "id": "GiftInputLabel", "fill": "$text-secondary", "content": "Mã thẻ quà tặng", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
              {"type": "frame", "id": "GiftInputRow", "width": "fill_container", "gap": 12, "children": [
                {"type": "frame", "id": "GiftInput", "width": "fill_container", "height": 52, "fill": "$bg-page", "cornerRadius": 12, "stroke": {"thickness": 2, "fill": "$orange-primary"}, "padding": [0, 16], "alignItems": "center", "children": [
                  {"type": "text", "id": "GiftInputValue", "fill": "$text-primary", "content": "GC-2024-ABCD-1234", "fontFamily": "Roboto Mono", "fontSize": 16, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "GiftScanBtn", "width": 52, "height": 52, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "GiftScanIcon", "width": 24, "height": 24, "iconFontName": "scan-line", "iconFontFamily": "lucide", "fill": "$text-primary"}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "GiftCardPreview", "width": "fill_container", "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "size": {"height": 1}, "colors": [{"color": "#EC4899", "position": 0}, {"color": "#DB2777", "position": 1}]}, "cornerRadius": 20, "padding": 24, "layout": "vertical", "gap": 20, "children": [
              {"type": "frame", "id": "GiftCardTop", "width": "fill_container", "justifyContent": "space_between", "alignItems": "flex-start", "children": [
                {"type": "frame", "id": "GiftCardLogo", "layout": "vertical", "gap": 4, "children": [
                  {"type": "text", "id": "GiftCardBrand", "fill": "$text-primary", "content": "tPOS", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "700"},
                  {"type": "text", "id": "GiftCardType", "fill": "#FFFFFF99", "content": "Gift Card", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "500"}
                ]},
                {"type": "icon_font", "id": "GiftCardChip", "width": 40, "height": 40, "iconFontName": "credit-card", "iconFontFamily": "lucide", "fill": "#FFFFFF60"}
              ]},
              {"type": "frame", "id": "GiftCardBalance", "width": "fill_container", "layout": "vertical", "gap": 4, "children": [
                {"type": "text", "id": "GiftCardBalanceLabel", "fill": "#FFFFFF80", "content": "Số dư còn lại", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"},
                {"type": "text", "id": "GiftCardBalanceValue", "fill": "$text-primary", "content": "500,000₫", "fontFamily": "Roboto", "fontSize": 36, "fontWeight": "700"}
              ]},
              {"type": "frame", "id": "GiftCardBottom", "width": "fill_container", "justifyContent": "space_between", "alignItems": "flex-end", "children": [
                {"type": "frame", "id": "GiftCardCode", "layout": "vertical", "gap": 2, "children": [
                  {"type": "text", "id": "GiftCardCodeLabel", "fill": "#FFFFFF70", "content": "Mã thẻ", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "normal"},
                  {"type": "text", "id": "GiftCardCodeValue", "fill": "$text-primary", "content": "•••• •••• •••• 1234", "fontFamily": "Roboto Mono", "fontSize": 14, "fontWeight": "500"}
                ]},
                {"type": "frame", "id": "GiftCardExpiry", "layout": "vertical", "gap": 2, "alignItems": "flex-end", "children": [
                  {"type": "text", "id": "GiftCardExpiryLabel", "fill": "#FFFFFF70", "content": "Hết hạn", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "normal"},
                  {"type": "text", "id": "GiftCardExpiryValue", "fill": "$text-primary", "content": "12/2026", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "GiftUseSection", "width": "fill_container", "layout": "vertical", "gap": 12, "children": [
              {"type": "text", "id": "GiftUseLabel", "fill": "$text-secondary", "content": "Số tiền sử dụng", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
              {"type": "frame", "id": "GiftUseInput", "width": "fill_container", "height": 60, "fill": "$bg-page", "cornerRadius": 14, "stroke": {"thickness": 1, "fill": "$border-default"}, "padding": [0, 18], "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "GiftUseValue", "fill": "$text-primary", "content": "500,000", "fontFamily": "Roboto", "fontSize": 26, "fontWeight": "700"},
                {"type": "frame", "id": "GiftUseMax", "fill": "#22C55E20", "cornerRadius": 8, "padding": [6, 12], "children": [
                  {"type": "text", "id": "GiftUseMaxText", "fill": "#22C55E", "content": "Toàn bộ", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
                ]}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "GiftFooter",
          "width": "fill_container",
          "padding": [16, 24],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "children": [
            {"type": "frame", "id": "GiftApplyBtn", "width": "fill_container", "height": 52, "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "size": {"height": 1}, "colors": [{"color": "#EC4899", "position": 0}, {"color": "#DB2777", "position": 1}]}, "cornerRadius": 12, "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "GiftApplyIcon", "width": 20, "height": 20, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"},
              {"type": "text", "id": "GiftApplyText", "fill": "$text-primary", "content": "Áp dụng 500,000₫", "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"}
  }
}
