{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "PromoActiveScreen",
      "name": "Screen/PromoActive",
      "reusable": true,
      "width": 520,
      "height": 680,
      "fill": "$bg-page",
      "cornerRadius": 20,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "PromoHeader",
          "width": "fill_container",
          "fill": "$bg-elevated",
          "padding": [16, 20],
          "gap": 12,
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "PromoIconBg", "width": 44, "height": 44, "fill": "#EC489915", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "PromoIcon", "width": 22, "height": 22, "iconFontName": "sparkles", "iconFontFamily": "lucide", "fill": "#EC4899"}
            ]},
            {"type": "frame", "id": "PromoTitleBox", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
              {"type": "text", "id": "PromoTitle", "fill": "$text-primary", "content": "Khuyến Mãi Đang Chạy", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"},
              {"type": "text", "id": "PromoCount", "fill": "$text-tertiary", "content": "4 chương trình đang hoạt động", "fontFamily": "Roboto", "fontSize": 13}
            ]},
            {"type": "frame", "id": "PromoClose", "width": 36, "height": 36, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "PromoCloseIcon", "width": 18, "height": 18, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "PromoList",
          "width": "fill_container",
          "height": "fill_container",
          "layout": "vertical",
          "padding": [16, 20],
          "gap": 12,
          "children": [
            {"type": "frame", "id": "Promo1", "width": "fill_container", "fill": {"type": "gradient", "gradientType": "linear", "rotation": 135, "colors": [{"color": "#EC489920", "position": 0}, {"color": "#F472B610", "position": 1}]}, "cornerRadius": 16, "padding": 16, "layout": "vertical", "gap": 12, "children": [
              {"type": "frame", "id": "Promo1Header", "width": "fill_container", "gap": 12, "alignItems": "center", "children": [
                {"type": "frame", "id": "Promo1Badge", "fill": "#EC4899", "cornerRadius": 8, "padding": [6, 10], "children": [
                  {"type": "text", "id": "Promo1Discount", "fill": "#FFFFFF", "content": "-30%", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "700"}
                ]},
                {"type": "frame", "id": "Promo1Info", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
                  {"type": "text", "id": "Promo1Name", "fill": "$text-primary", "content": "Happy Hour Sáng", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "700"},
                  {"type": "text", "id": "Promo1Time", "fill": "$text-tertiary", "content": "06:00 - 09:00 hàng ngày", "fontFamily": "Roboto", "fontSize": 12}
                ]},
                {"type": "frame", "id": "Promo1Toggle", "width": 44, "height": 24, "fill": "#22C55E", "cornerRadius": 12, "padding": [2, 2], "justifyContent": "flex_end", "children": [
                  {"type": "frame", "id": "Promo1ToggleKnob", "width": 20, "height": 20, "fill": "#FFFFFF", "cornerRadius": 10}
                ]}
              ]},
              {"type": "frame", "id": "Promo1Stats", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 10, "padding": 12, "gap": 16, "children": [
                {"type": "frame", "id": "Promo1Stat1", "layout": "vertical", "gap": 2, "children": [
                  {"type": "text", "id": "Promo1Stat1Val", "fill": "#EC4899", "content": "127", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"},
                  {"type": "text", "id": "Promo1Stat1Label", "fill": "$text-tertiary", "content": "Đã dùng", "fontFamily": "Roboto", "fontSize": 11}
                ]},
                {"type": "frame", "id": "Promo1Stat2", "layout": "vertical", "gap": 2, "children": [
                  {"type": "text", "id": "Promo1Stat2Val", "fill": "#22C55E", "content": "1.2M", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"},
                  {"type": "text", "id": "Promo1Stat2Label", "fill": "$text-tertiary", "content": "Doanh thu", "fontFamily": "Roboto", "fontSize": 11}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "Promo2", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 16, "padding": 16, "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "Promo2Badge", "fill": "#F97316", "cornerRadius": 8, "padding": [6, 10], "children": [
                {"type": "text", "id": "Promo2Discount", "fill": "#FFFFFF", "content": "2+1", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "700"}
              ]},
              {"type": "frame", "id": "Promo2Info", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
                {"type": "text", "id": "Promo2Name", "fill": "$text-primary", "content": "Mua 2 Tặng 1", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "700"},
                {"type": "text", "id": "Promo2Desc", "fill": "$text-tertiary", "content": "Áp dụng cho cà phê", "fontFamily": "Roboto", "fontSize": 12}
              ]},
              {"type": "frame", "id": "Promo2Toggle", "width": 44, "height": 24, "fill": "#22C55E", "cornerRadius": 12, "padding": [2, 2], "justifyContent": "flex_end", "children": [
                {"type": "frame", "id": "Promo2ToggleKnob", "width": 20, "height": 20, "fill": "#FFFFFF", "cornerRadius": 10}
              ]}
            ]},
            {"type": "frame", "id": "Promo3", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 16, "padding": 16, "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "Promo3Badge", "fill": "#3B82F6", "cornerRadius": 8, "padding": [6, 10], "children": [
                {"type": "text", "id": "Promo3Discount", "fill": "#FFFFFF", "content": "-15%", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "700"}
              ]},
              {"type": "frame", "id": "Promo3Info", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
                {"type": "text", "id": "Promo3Name", "fill": "$text-primary", "content": "VIP Member", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "700"},
                {"type": "text", "id": "Promo3Desc", "fill": "$text-tertiary", "content": "Ưu đãi thành viên VIP", "fontFamily": "Roboto", "fontSize": 12}
              ]},
              {"type": "frame", "id": "Promo3Toggle", "width": 44, "height": 24, "fill": "#22C55E", "cornerRadius": 12, "padding": [2, 2], "justifyContent": "flex_end", "children": [
                {"type": "frame", "id": "Promo3ToggleKnob", "width": 20, "height": 20, "fill": "#FFFFFF", "cornerRadius": 10}
              ]}
            ]},
            {"type": "frame", "id": "Promo4", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 16, "padding": 16, "gap": 12, "alignItems": "center", "stroke": {"thickness": 1, "fill": "#EF444430"}, "children": [
              {"type": "frame", "id": "Promo4Badge", "fill": "#EF4444", "cornerRadius": 8, "padding": [6, 10], "children": [
                {"type": "text", "id": "Promo4Discount", "fill": "#FFFFFF", "content": "-50%", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "700"}
              ]},
              {"type": "frame", "id": "Promo4Info", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
                {"type": "text", "id": "Promo4Name", "fill": "$text-primary", "content": "Flash Sale", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "700"},
                {"type": "frame", "id": "Promo4Timer", "gap": 6, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Promo4TimerIcon", "width": 12, "height": 12, "iconFontName": "clock", "iconFontFamily": "lucide", "fill": "#EF4444"},
                  {"type": "text", "id": "Promo4TimerText", "fill": "#EF4444", "content": "Còn 2h 15m", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "500"}
                ]}
              ]},
              {"type": "frame", "id": "Promo4Toggle", "width": 44, "height": 24, "fill": "$bg-interactive", "cornerRadius": 12, "padding": [2, 2], "children": [
                {"type": "frame", "id": "Promo4ToggleKnob", "width": 20, "height": 20, "fill": "$text-tertiary", "cornerRadius": 10}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "PromoFooter",
          "width": "fill_container",
          "fill": "$bg-elevated",
          "stroke": {"thickness": 1, "fill": "$border-subtle"},
          "padding": [16, 20],
          "justifyContent": "center",
          "children": [
            {"type": "frame", "id": "AddPromoBtn", "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": "AddPromoIcon", "width": 18, "height": 18, "iconFontName": "plus", "iconFontFamily": "lucide", "fill": "#FFFFFF"},
              {"type": "text", "id": "AddPromoText", "fill": "#FFFFFF", "content": "Thêm khuyến mãi mới", "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"}
  }
}
