{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "CouponRedeemDialog",
      "name": "Dialog/CouponRedeem",
      "reusable": true,
      "width": 400,
      "height": 480,
      "fill": "$bg-elevated",
      "cornerRadius": 20,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "CouponContent",
          "width": "fill_container",
          "height": "fill_container",
          "layout": "vertical",
          "gap": 20,
          "padding": [28, 24],
          "children": [
            {"type": "frame", "id": "CouponIconWrap", "width": "fill_container", "justifyContent": "center", "children": [
              {"type": "frame", "id": "CouponIconBg", "width": 72, "height": 72, "fill": {"type": "gradient", "gradientType": "linear", "rotation": 135, "colors": [{"color": "#EC489920", "position": 0}, {"color": "#F472B615", "position": 1}]}, "cornerRadius": 36, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "frame", "id": "CouponIconInner", "width": 52, "height": 52, "fill": "#EC489920", "cornerRadius": 26, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "CouponIcon", "width": 28, "height": 28, "iconFontName": "ticket", "iconFontFamily": "lucide", "fill": "#EC4899"}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "CouponTitle", "width": "fill_container", "layout": "vertical", "gap": 6, "alignItems": "center", "children": [
              {"type": "text", "id": "CouponTitleText", "fill": "$text-primary", "content": "Đổi Mã Coupon", "fontFamily": "Roboto", "fontSize": 20, "fontWeight": "700", "textAlign": "center"},
              {"type": "text", "id": "CouponSubtitle", "fill": "$text-tertiary", "content": "Nhập mã để áp dụng ưu đãi", "fontFamily": "Roboto", "fontSize": 14, "textAlign": "center"}
            ]},
            {"type": "frame", "id": "CouponInput", "width": "fill_container", "height": 56, "fill": "$bg-page", "cornerRadius": 14, "stroke": {"thickness": 2, "fill": "$orange-primary"}, "padding": [0, 16], "gap": 12, "alignItems": "center", "children": [
              {"type": "icon_font", "id": "CouponInputIcon", "width": 22, "height": 22, "iconFontName": "ticket", "iconFontFamily": "lucide", "fill": "$orange-primary"},
              {"type": "text", "id": "CouponInputVal", "fill": "$text-primary", "content": "SUMMER2026", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700", "letterSpacing": 2, "width": "fill_container"}
            ]},
            {"type": "frame", "id": "CouponResult", "width": "fill_container", "fill": "#22C55E15", "cornerRadius": 14, "padding": 16, "gap": 12, "layout": "vertical", "children": [
              {"type": "frame", "id": "ResultHeader", "width": "fill_container", "gap": 10, "alignItems": "center", "children": [
                {"type": "icon_font", "id": "ResultIcon", "width": 20, "height": 20, "iconFontName": "check-circle", "iconFontFamily": "lucide", "fill": "#22C55E"},
                {"type": "text", "id": "ResultTitle", "fill": "#22C55E", "content": "Mã hợp lệ!", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
              ]},
              {"type": "frame", "id": "ResultDetails", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 10, "padding": 12, "gap": 8, "layout": "vertical", "children": [
                {"type": "frame", "id": "ResultRow1", "width": "fill_container", "justifyContent": "space_between", "children": [
                  {"type": "text", "id": "ResultLabel1", "fill": "$text-secondary", "content": "Ưu đãi", "fontFamily": "Roboto", "fontSize": 13},
                  {"type": "text", "id": "ResultValue1", "fill": "#EC4899", "content": "Giảm 50,000đ", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "ResultRow2", "width": "fill_container", "justifyContent": "space_between", "children": [
                  {"type": "text", "id": "ResultLabel2", "fill": "$text-secondary", "content": "Đơn tối thiểu", "fontFamily": "Roboto", "fontSize": 13},
                  {"type": "text", "id": "ResultValue2", "fill": "$text-primary", "content": "100,000đ", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
                ]},
                {"type": "frame", "id": "ResultRow3", "width": "fill_container", "justifyContent": "space_between", "children": [
                  {"type": "text", "id": "ResultLabel3", "fill": "$text-secondary", "content": "Hết hạn", "fontFamily": "Roboto", "fontSize": 13},
                  {"type": "text", "id": "ResultValue3", "fill": "$text-primary", "content": "31/03/2026", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
                ]}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "CouponFooter",
          "width": "fill_container",
          "stroke": {"thickness": 1, "fill": "$border-subtle"},
          "gap": 12,
          "padding": [16, 24],
          "children": [
            {"type": "frame", "id": "CancelCouponBtn", "width": "fill_container", "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "text", "id": "CancelCouponText", "fill": "$text-secondary", "content": "Hủy", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
            ]},
            {"type": "frame", "id": "ApplyCouponBtn", "width": "fill_container", "height": 48, "fill": {"type": "gradient", "gradientType": "linear", "rotation": 135, "colors": [{"color": "#FF5C00", "position": 0}, {"color": "#FF8A4C", "position": 1}]}, "cornerRadius": 12, "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "ApplyCouponIcon", "width": 18, "height": 18, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "#FFFFFF"},
              {"type": "text", "id": "ApplyCouponText", "fill": "#FFFFFF", "content": "Áp dụng", "fontFamily": "Roboto", "fontSize": 14, "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"}
  }
}
