{
  "version": "2.7",
  "children": [
    {
      "type": "frame",
      "id": "MemberCardDialog",
      "name": "Dialog/MemberCard",
      "reusable": true,
      "clip": true,
      "width": 400,
      "height": 540,
      "fill": "$bg-elevated",
      "cornerRadius": 24,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "MemberCardHeader",
          "width": "fill_container",
          "padding": [16, 20],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "MemberCardHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "MemberCardIconBg", "width": 40, "height": 40, "fill": "#8B5CF620", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "MemberCardIcon", "width": 20, "height": 20, "iconFontName": "id-card", "iconFontFamily": "lucide", "fill": "#8B5CF6"}
              ]},
              {"type": "text", "id": "MemberCardTitle", "fill": "$text-primary", "content": "Thẻ thành viên", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "MemberCardCloseBtn", "width": 36, "height": 36, "fill": "$bg-interactive", "cornerRadius": 18, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "MemberCardCloseIcon", "width": 18, "height": 18, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "MemberCardContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 20,
          "layout": "vertical",
          "gap": 16,
          "children": [
            {"type": "frame", "id": "MemberKaraokeCard", "width": "fill_container", "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "colors": [{"color": "#8B5CF6", "position": 0}, {"color": "#6D28D9", "position": 1}]}, "cornerRadius": 18, "padding": 20, "layout": "vertical", "gap": 16, "children": [
              {"type": "frame", "id": "MemberCardTop", "width": "fill_container", "justifyContent": "space_between", "alignItems": "flex_start", "children": [
                {"type": "frame", "id": "MemberCardTopLeft", "layout": "vertical", "gap": 4, "children": [
                  {"type": "text", "id": "MemberCardBrand", "fill": "#FFFFFFCC", "content": "🎤 KARAOKE VIP", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "600"},
                  {"type": "text", "id": "MemberCardTier", "fill": "$text-primary", "content": "Gold Member", "fontFamily": "Roboto", "fontSize": 20, "fontWeight": "700"}
                ]},
                {"type": "frame", "id": "MemberCardBadge", "fill": "#FFD70060", "cornerRadius": 8, "padding": [6, 12], "children": [
                  {"type": "text", "id": "MemberCardBadgeText", "fill": "#FFD700", "content": "⭐ VIP", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "700"}
                ]}
              ]},
              {"type": "frame", "id": "MemberCardCustomer", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
                {"type": "text", "id": "MemberCardName", "fill": "$text-primary", "content": "TRẦN MINH KHÔI", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"},
                {"type": "text", "id": "MemberCardId", "fill": "#FFFFFFAA", "content": "ID: MBR-2024-08765", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "normal"}
              ]},
              {"type": "frame", "id": "MemberCardStats", "width": "fill_container", "gap": 16, "children": [
                {"type": "frame", "id": "MemberCardStat1", "layout": "vertical", "gap": 2, "children": [
                  {"type": "text", "id": "MemberCardStat1Label", "fill": "#FFFFFF80", "content": "Điểm", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "normal"},
                  {"type": "text", "id": "MemberCardStat1Value", "fill": "$text-primary", "content": "4,850", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"}
                ]},
                {"type": "frame", "id": "MemberCardStat2", "layout": "vertical", "gap": 2, "children": [
                  {"type": "text", "id": "MemberCardStat2Label", "fill": "#FFFFFF80", "content": "Giờ hát", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "normal"},
                  {"type": "text", "id": "MemberCardStat2Value", "fill": "$text-primary", "content": "156h", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"}
                ]},
                {"type": "frame", "id": "MemberCardStat3", "layout": "vertical", "gap": 2, "children": [
                  {"type": "text", "id": "MemberCardStat3Label", "fill": "#FFFFFF80", "content": "Hạn thẻ", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "normal"},
                  {"type": "text", "id": "MemberCardStat3Value", "fill": "$text-primary", "content": "12/2025", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "MemberBenefits", "width": "fill_container", "layout": "vertical", "gap": 10, "children": [
              {"type": "text", "id": "MemberBenefitsLabel", "fill": "$text-secondary", "content": "Quyền lợi thành viên", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"},
              {"type": "frame", "id": "MemberBenefit1", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 12, "padding": [10, 14], "gap": 10, "alignItems": "center", "children": [
                {"type": "icon_font", "id": "MemberBenefit1Icon", "width": 18, "height": 18, "iconFontName": "percent", "iconFontFamily": "lucide", "fill": "#22C55E"},
                {"type": "text", "id": "MemberBenefit1Text", "fill": "$text-primary", "content": "Giảm 20% giá phòng", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
              ]},
              {"type": "frame", "id": "MemberBenefit2", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 12, "padding": [10, 14], "gap": 10, "alignItems": "center", "children": [
                {"type": "icon_font", "id": "MemberBenefit2Icon", "width": 18, "height": 18, "iconFontName": "clock", "iconFontFamily": "lucide", "fill": "#3B82F6"},
                {"type": "text", "id": "MemberBenefit2Text", "fill": "$text-primary", "content": "Tặng 30 phút mỗi 2 giờ", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
              ]},
              {"type": "frame", "id": "MemberBenefit3", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 12, "padding": [10, 14], "gap": 10, "alignItems": "center", "children": [
                {"type": "icon_font", "id": "MemberBenefit3Icon", "width": 18, "height": 18, "iconFontName": "gift", "iconFontFamily": "lucide", "fill": "#EC4899"},
                {"type": "text", "id": "MemberBenefit3Text", "fill": "$text-primary", "content": "Sinh nhật: 2h miễn phí", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "MemberCardFooter",
          "width": "fill_container",
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "gap": 12,
          "padding": [16, 20],
          "children": [
            {"type": "frame", "id": "MemberCardTopUpBtn", "width": "fill_container", "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "MemberCardTopUpIcon", "width": 18, "height": 18, "iconFontName": "plus", "iconFontFamily": "lucide", "fill": "$text-secondary"},
              {"type": "text", "id": "MemberCardTopUpText", "fill": "$text-secondary", "content": "Nạp điểm", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
            ]},
            {"type": "frame", "id": "MemberCardApplyBtn", "width": "fill_container", "height": 48, "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "colors": [{"color": "#FF5C00", "position": 0}, {"color": "#FF8533", "position": 1}]}, "cornerRadius": 12, "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "MemberCardApplyIcon", "width": 18, "height": 18, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"},
              {"type": "text", "id": "MemberCardApplyText", "fill": "$text-primary", "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"}
  }
}
