{
  "version": "2.7",
  "children": [
    {
      "type": "frame",
      "id": "LoyaltyStampDialog",
      "name": "Dialog/LoyaltyStamp",
      "reusable": true,
      "clip": true,
      "width": 380,
      "height": 500,
      "fill": "$bg-elevated",
      "cornerRadius": 24,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "LoyaltyStampHeader",
          "width": "fill_container",
          "padding": [16, 20],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "LoyaltyStampHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "LoyaltyStampIconBg", "width": 40, "height": 40, "fill": "#EC489920", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "LoyaltyStampIcon", "width": 20, "height": 20, "iconFontName": "stamp", "iconFontFamily": "lucide", "fill": "#EC4899"}
              ]},
              {"type": "text", "id": "LoyaltyStampTitle", "fill": "$text-primary", "content": "Thẻ tích điểm", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "LoyaltyStampCloseBtn", "width": 36, "height": 36, "fill": "$bg-interactive", "cornerRadius": 18, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "LoyaltyStampCloseIcon", "width": 18, "height": 18, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "LoyaltyStampContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 20,
          "layout": "vertical",
          "gap": 20,
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "LoyaltyStampCustomer", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 14, "padding": 14, "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "LoyaltyStampAvatar", "width": 44, "height": 44, "fill": "#D4A37430", "cornerRadius": 22, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "text", "id": "LoyaltyStampInitial", "fill": "#D4A374", "content": "HN", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"}
              ]},
              {"type": "frame", "id": "LoyaltyStampCustomerInfo", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
                {"type": "text", "id": "LoyaltyStampCustomerName", "fill": "$text-primary", "content": "Hoàng Nam", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"},
                {"type": "text", "id": "LoyaltyStampCustomerPhone", "fill": "$text-tertiary", "content": "0987 654 321", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"}
              ]}
            ]},
            {"type": "frame", "id": "LoyaltyStampCard", "width": "fill_container", "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "colors": [{"color": "#D4A374", "position": 0}, {"color": "#B8956A", "position": 1}]}, "cornerRadius": 18, "padding": 20, "layout": "vertical", "gap": 16, "children": [
              {"type": "frame", "id": "LoyaltyStampCardHeader", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "LoyaltyStampCardTitle", "fill": "$text-primary", "content": "☕ Coffee Loyalty", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"},
                {"type": "text", "id": "LoyaltyStampCardCount", "fill": "$text-primary", "content": "7/10", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
              ]},
              {"type": "frame", "id": "LoyaltyStampGrid", "width": "fill_container", "gap": 10, "justifyContent": "space_between", "children": [
                {"type": "frame", "id": "Stamp1", "width": 32, "height": 32, "fill": "#00000030", "cornerRadius": 16, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Stamp1Icon", "width": 16, "height": 16, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"}
                ]},
                {"type": "frame", "id": "Stamp2", "width": 32, "height": 32, "fill": "#00000030", "cornerRadius": 16, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Stamp2Icon", "width": 16, "height": 16, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"}
                ]},
                {"type": "frame", "id": "Stamp3", "width": 32, "height": 32, "fill": "#00000030", "cornerRadius": 16, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Stamp3Icon", "width": 16, "height": 16, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"}
                ]},
                {"type": "frame", "id": "Stamp4", "width": 32, "height": 32, "fill": "#00000030", "cornerRadius": 16, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Stamp4Icon", "width": 16, "height": 16, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"}
                ]},
                {"type": "frame", "id": "Stamp5", "width": 32, "height": 32, "fill": "#00000030", "cornerRadius": 16, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Stamp5Icon", "width": 16, "height": 16, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"}
                ]},
                {"type": "frame", "id": "Stamp6", "width": 32, "height": 32, "fill": "#00000030", "cornerRadius": 16, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Stamp6Icon", "width": 16, "height": 16, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"}
                ]},
                {"type": "frame", "id": "Stamp7", "width": 32, "height": 32, "fill": "#00000030", "cornerRadius": 16, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Stamp7Icon", "width": 16, "height": 16, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"}
                ]},
                {"type": "frame", "id": "Stamp8", "width": 32, "height": 32, "fill": "#FFFFFF30", "cornerRadius": 16, "stroke": {"thickness": 2, "fill": "#FFFFFF60"}},
                {"type": "frame", "id": "Stamp9", "width": 32, "height": 32, "fill": "#FFFFFF30", "cornerRadius": 16, "stroke": {"thickness": 2, "fill": "#FFFFFF60"}},
                {"type": "frame", "id": "Stamp10", "width": 32, "height": 32, "fill": "#FFFFFF30", "cornerRadius": 16, "stroke": {"thickness": 2, "fill": "#FFFFFF60"}, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Stamp10Gift", "width": 16, "height": 16, "iconFontName": "gift", "iconFontFamily": "lucide", "fill": "#FFFFFF80"}
                ]}
              ]},
              {"type": "text", "id": "LoyaltyStampReward", "fill": "#FFFFFFCC", "content": "Còn 3 stamp nữa - Nhận 1 ly FREE!", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "500", "textAlign": "center"}
            ]},
            {"type": "frame", "id": "LoyaltyStampAddInfo", "width": "fill_container", "fill": "#22C55E15", "cornerRadius": 12, "padding": [12, 16], "gap": 10, "alignItems": "center", "children": [
              {"type": "icon_font", "id": "LoyaltyStampAddIcon", "width": 18, "height": 18, "iconFontName": "plus-circle", "iconFontFamily": "lucide", "fill": "#22C55E"},
              {"type": "frame", "id": "LoyaltyStampAddText", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
                {"type": "text", "id": "LoyaltyStampAddTitle", "fill": "#22C55E", "content": "+1 stamp từ đơn hàng này", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"},
                {"type": "text", "id": "LoyaltyStampAddDesc", "fill": "$text-tertiary", "content": "Mua 1 Latte - 55,000₫", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "normal"}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "LoyaltyStampFooter",
          "width": "fill_container",
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "padding": [16, 20],
          "children": [
            {"type": "frame", "id": "LoyaltyStampConfirmBtn", "width": "fill_container", "height": 52, "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "colors": [{"color": "#FF5C00", "position": 0}, {"color": "#FF8533", "position": 1}]}, "cornerRadius": 12, "gap": 10, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "LoyaltyStampConfirmIcon", "width": 20, "height": 20, "iconFontName": "stamp", "iconFontFamily": "lucide", "fill": "$text-primary"},
              {"type": "text", "id": "LoyaltyStampConfirmText", "fill": "$text-primary", "content": "Tích đ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"}
  }
}
