{
  "version": "2.7",
  "children": [
    {
      "type": "frame",
      "id": "MembershipCardScreen",
      "x": 0,
      "y": 0,
      "name": "Screen/MembershipCard",
      "reusable": true,
      "width": 390,
      "height": 844,
      "fill": "$bg-page",
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "MemberCardTopBar",
          "name": "TopBar",
          "width": "fill_container",
          "height": 56,
          "fill": "$bg-surface",
          "padding": [
            0,
            16
          ],
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {
              "type": "icon_font",
              "id": "MemberCardBackIcon",
              "name": "BackIcon",
              "width": 24,
              "height": 24,
              "iconFontName": "arrow-left",
              "iconFontFamily": "lucide",
              "fill": "$text-primary"
            },
            {
              "type": "text",
              "id": "MemberCardTitle",
              "name": "Title",
              "fill": "$text-primary",
              "content": "Thẻ thành viên",
              "fontFamily": "Poppins",
              "fontSize": 18,
              "fontWeight": "600"
            },
            {
              "type": "icon_font",
              "id": "MemberCardSettingsIcon",
              "name": "SettingsIcon",
              "width": 24,
              "height": 24,
              "iconFontName": "settings",
              "iconFontFamily": "lucide",
              "fill": "$text-primary"
            }
          ]
        },
        {
          "type": "frame",
          "id": "MemberCardContent",
          "name": "Content",
          "width": "fill_container",
          "layout": "vertical",
          "gap": 16,
          "padding": [
            12,
            0
          ],
          "alignItems": "center",
          "children": [
            {
              "type": "frame",
              "id": "MembershipCardFrame",
              "name": "MembershipCard",
              "width": "fill_container",
              "height": 190,
              "fill": "$brown-primary",
              "cornerRadius": 20,
              "effect": {
                "type": "shadow",
                "shadowType": "outer",
                "color": "#00000020",
                "offset": {
                  "x": 0,
                  "y": 4
                },
                "blur": 16,
                "spread": -2
              },
              "layout": "vertical",
              "gap": 14,
              "padding": [
                22,
                20
              ],
              "justifyContent": "space_between",
              "children": [
                {
                  "type": "frame",
                  "id": "CardTopRow",
                  "name": "CardTopRow",
                  "width": "fill_container",
                  "gap": 12,
                  "justifyContent": "space_between",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "CardLogoRow",
                      "name": "LogoRow",
                      "gap": 8,
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "frame",
                          "id": "CardLogo",
                          "name": "Logo",
                          "width": 36,
                          "height": 36,
                          "fill": "#FFFFFF",
                          "cornerRadius": 8,
                          "layout": "vertical",
                          "children": [
                            {
                              "type": "text",
                              "id": "CardLogoText",
                              "name": "LogoText",
                              "content": "EK",
                              "fontFamily": "Poppins",
                              "fontSize": 14,
                              "fontWeight": "700"
                            }
                          ]
                        },
                        {
                          "type": "text",
                          "id": "CardBrandName",
                          "name": "BrandName",
                          "content": "EggyMon Kitchen",
                          "fontFamily": "Poppins",
                          "fontSize": 14,
                          "fontWeight": "600"
                        },
                        {
                          "type": "icon_font",
                          "id": "GV2KT",
                          "name": "logoIcon",
                          "width": 28,
                          "height": 28,
                          "iconFontName": "coffee",
                          "iconFontFamily": "lucide",
                          "fill": "#FFFFFF"
                        },
                        {
                          "type": "text",
                          "id": "Pd7fO",
                          "name": "logoText",
                          "fill": "#FFFFFF",
                          "content": "Eggymon Kitchen",
                          "fontFamily": "Poppins",
                          "fontSize": 13,
                          "fontWeight": "600"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "TierBadge",
                      "name": "TierBadge",
                      "fill": {
                        "type": "gradient",
                        "gradientType": "linear",
                        "enabled": true,
                        "rotation": 135,
                        "size": {
                          "height": 1
                        },
                        "colors": [
                          {
                            "color": "#FFD700",
                            "position": 0
                          },
                          {
                            "color": "#FFC700",
                            "position": 1
                          }
                        ]
                      },
                      "cornerRadius": 12,
                      "effect": {
                        "type": "shadow",
                        "shadowType": "outer",
                        "color": "#00000010",
                        "offset": {
                          "x": 0,
                          "y": 2
                        },
                        "blur": 4
                      },
                      "gap": 4,
                      "padding": [
                        5,
                        10
                      ],
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "TierBadgeIcon",
                          "name": "TierIcon",
                          "width": 0,
                          "height": 0,
                          "iconFontFamily": "lucide"
                        },
                        {
                          "type": "text",
                          "id": "TierBadgeText",
                          "name": "TierText",
                          "content": "Gold Member",
                          "fontFamily": "Poppins",
                          "fontSize": 11,
                          "fontWeight": "700"
                        },
                        {
                          "type": "icon_font",
                          "id": "8eSos",
                          "name": "tierIcon",
                          "width": 14,
                          "height": 14,
                          "iconFontName": "star",
                          "iconFontFamily": "lucide",
                          "fill": "#8B6914"
                        },
                        {
                          "type": "text",
                          "id": "fANNn",
                          "name": "tierText",
                          "fill": "#8B6914",
                          "content": "Vàng",
                          "fontFamily": "Poppins",
                          "fontSize": 11,
                          "fontWeight": "700"
                        }
                      ]
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "CardMiddleSection",
                  "name": "MiddleSection",
                  "width": "fill_container",
                  "layout": "vertical",
                  "gap": 4,
                  "children": [
                    {
                      "type": "text",
                      "id": "MemberName",
                      "name": "MemberName",
                      "fill": "#FFFFFF",
                      "content": "Nguyễn Văn A",
                      "fontFamily": "Poppins",
                      "fontSize": 18,
                      "fontWeight": "600"
                    },
                    {
                      "type": "text",
                      "id": "MemberId",
                      "name": "MemberId",
                      "fill": "#DCC8AF",
                      "content": "EK-2024-001234",
                      "fontFamily": "Poppins",
                      "fontSize": 12
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "CardBottomRow",
                  "name": "BottomRow",
                  "width": "fill_container",
                  "gap": 4,
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "text",
                      "id": "CardPoints",
                      "name": "Points",
                      "fill": "#FFFFFF",
                      "content": "2,450 điểm",
                      "fontFamily": "Poppins",
                      "fontSize": 22,
                      "fontWeight": "700"
                    },
                    {
                      "type": "text",
                      "id": "YKSsI",
                      "name": "pointsLabel",
                      "fill": "#D4C4B0",
                      "content": "Điểm tích lũy",
                      "fontFamily": "Poppins",
                      "fontSize": 10,
                      "fontWeight": "normal"
                    },
                    {
                      "type": "icon_font",
                      "id": "O4mLl",
                      "name": "pointsIcon",
                      "width": 14,
                      "height": 14,
                      "iconFontName": "zap",
                      "iconFontFamily": "lucide",
                      "fill": "#FFD700"
                    }
                  ]
                }
              ]
            },
            {
              "type": "frame",
              "id": "QRCodeSection",
              "name": "QRCodeSection",
              "layout": "vertical",
              "gap": 8,
              "padding": [
                8,
                0,
                0,
                0
              ],
              "alignItems": "center",
              "children": [
                {
                  "type": "frame",
                  "id": "QRCodeFrame",
                  "name": "QRCodeFrame",
                  "width": 160,
                  "height": 160,
                  "fill": "#FFFFFF",
                  "cornerRadius": 16,
                  "stroke": {
                    "align": "inside",
                    "thickness": 1,
                    "fill": "$border-default"
                  },
                  "effect": {
                    "type": "shadow",
                    "shadowType": "outer",
                    "color": "#00000008",
                    "offset": {
                      "x": 0,
                      "y": 2
                    },
                    "blur": 8
                  },
                  "layout": "vertical",
                  "gap": 12,
                  "padding": 16,
                  "justifyContent": "center",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "icon_font",
                      "id": "QRCodeIcon",
                      "name": "QRIcon",
                      "width": 90,
                      "height": 90,
                      "iconFontName": "qr-code",
                      "iconFontFamily": "lucide",
                      "fill": "$text-primary"
                    },
                    {
                      "type": "text",
                      "id": "QRCodeLabel",
                      "name": "QRLabel",
                      "fill": "$text-secondary",
                      "content": "QR Code",
                      "fontFamily": "Poppins",
                      "fontSize": 14,
                      "fontWeight": "500"
                    }
                  ]
                },
                {
                  "type": "text",
                  "id": "QRScanText",
                  "name": "ScanText",
                  "fill": "$text-secondary",
                  "content": "Quét mã để tích điểm",
                  "fontFamily": "Poppins",
                  "fontSize": 13
                }
              ]
            },
            {
              "type": "frame",
              "id": "QuickActionsRow",
              "name": "QuickActions",
              "width": "fill_container",
              "gap": 20,
              "padding": [
                0,
                20
              ],
              "justifyContent": "space_around",
              "children": [
                {
                  "type": "frame",
                  "id": "ActionHistory",
                  "name": "ActionHistory",
                  "layout": "vertical",
                  "gap": 4,
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "ActionHistoryIconBg",
                      "name": "IconBg",
                      "width": 44,
                      "height": 44,
                      "fill": "$bg-elevated",
                      "cornerRadius": 12,
                      "layout": "vertical",
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "ActionHistoryIcon",
                          "name": "Icon",
                          "width": 0,
                          "height": 0,
                          "iconFontFamily": "lucide"
                        },
                        {
                          "type": "icon_font",
                          "id": "j5qFJ",
                          "name": "historyIcon",
                          "width": 20,
                          "height": 20,
                          "iconFontName": "history",
                          "iconFontFamily": "lucide",
                          "fill": "$brown-primary"
                        }
                      ]
                    },
                    {
                      "type": "text",
                      "id": "ActionHistoryLabel",
                      "name": "Label",
                      "fill": "$text-primary",
                      "content": "Lịch sử",
                      "fontFamily": "Poppins",
                      "fontSize": 11,
                      "fontWeight": "500"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "ActionRewards",
                  "name": "ActionRewards",
                  "layout": "vertical",
                  "gap": 4,
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "ActionRewardsIconBg",
                      "name": "IconBg",
                      "width": 44,
                      "height": 44,
                      "fill": "$bg-elevated",
                      "cornerRadius": 12,
                      "layout": "vertical",
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "ActionRewardsIcon",
                          "name": "Icon",
                          "width": 0,
                          "height": 0,
                          "iconFontFamily": "lucide"
                        },
                        {
                          "type": "icon_font",
                          "id": "jyeYW",
                          "name": "rewardsIcon",
                          "width": 20,
                          "height": 20,
                          "iconFontName": "gift",
                          "iconFontFamily": "lucide",
                          "fill": "$orange-primary"
                        }
                      ]
                    },
                    {
                      "type": "text",
                      "id": "ActionRewardsLabel",
                      "name": "Label",
                      "fill": "$text-primary",
                      "content": "Ưu đãi",
                      "fontFamily": "Poppins",
                      "fontSize": 11,
                      "fontWeight": "500"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "ActionReferral",
                  "name": "ActionReferral",
                  "layout": "vertical",
                  "gap": 4,
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "ActionReferralIconBg",
                      "name": "IconBg",
                      "width": 44,
                      "height": 44,
                      "fill": "$bg-elevated",
                      "cornerRadius": 12,
                      "layout": "vertical",
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "ActionReferralIcon",
                          "name": "Icon",
                          "width": 0,
                          "height": 0,
                          "iconFontFamily": "lucide"
                        },
                        {
                          "type": "icon_font",
                          "id": "641iq",
                          "name": "referralIcon",
                          "width": 20,
                          "height": 20,
                          "iconFontName": "users",
                          "iconFontFamily": "lucide",
                          "fill": "$brown-primary"
                        }
                      ]
                    },
                    {
                      "type": "text",
                      "id": "ActionReferralLabel",
                      "name": "Label",
                      "fill": "$text-primary",
                      "content": "Giới thiệu",
                      "fontFamily": "Poppins",
                      "fontSize": 11,
                      "fontWeight": "500"
                    }
                  ]
                }
              ]
            },
            {
              "type": "frame",
              "id": "RecentActivitySection",
              "name": "RecentActivity",
              "width": "fill_container",
              "layout": "vertical",
              "gap": 10,
              "padding": [
                0,
                20,
                20,
                20
              ],
              "children": [
                {
                  "type": "text",
                  "id": "RecentActivityTitle",
                  "name": "Title",
                  "fill": "$text-primary",
                  "content": "Hoạt động gần đây",
                  "fontFamily": "Poppins",
                  "fontSize": 15,
                  "fontWeight": "600"
                },
                {
                  "type": "frame",
                  "id": "ActivityItem1",
                  "name": "ActivityItem1",
                  "width": "fill_container",
                  "fill": "$bg-surface",
                  "cornerRadius": 10,
                  "stroke": {
                    "align": "inside",
                    "thickness": 1,
                    "fill": "$border-subtle"
                  },
                  "gap": 12,
                  "padding": [
                    10,
                    14
                  ],
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "Activity1IconBg",
                      "name": "IconBg",
                      "width": 36,
                      "height": 36,
                      "fill": "#DCFCE7",
                      "cornerRadius": 8,
                      "layout": "vertical",
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "Activity1Icon",
                          "name": "Icon",
                          "width": 0,
                          "height": 0,
                          "iconFontFamily": "lucide"
                        },
                        {
                          "type": "icon_font",
                          "id": "lCR3h",
                          "name": "activity1Icon",
                          "width": 18,
                          "height": 18,
                          "iconFontName": "shopping-bag",
                          "iconFontFamily": "lucide",
                          "fill": "$success"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "Activity1Info",
                      "name": "Info",
                      "width": "fill_container",
                      "layout": "vertical",
                      "children": [
                        {
                          "type": "text",
                          "id": "Activity1Desc",
                          "name": "Description",
                          "fill": "$text-primary",
                          "content": "Mua hàng - Combo bánh mì",
                          "fontFamily": "Poppins",
                          "fontSize": 13,
                          "fontWeight": "500"
                        },
                        {
                          "type": "text",
                          "id": "Activity1Date",
                          "name": "Date",
                          "fill": "$text-tertiary",
                          "content": "10/02/2025",
                          "fontFamily": "Poppins",
                          "fontSize": 12
                        }
                      ]
                    },
                    {
                      "type": "text",
                      "id": "Activity1Points",
                      "name": "Points",
                      "fill": "$success",
                      "content": "+50 điểm",
                      "fontFamily": "Poppins",
                      "fontSize": 14,
                      "fontWeight": "600"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "ActivityItem2",
                  "name": "ActivityItem2",
                  "width": "fill_container",
                  "fill": "$bg-surface",
                  "cornerRadius": 10,
                  "stroke": {
                    "align": "inside",
                    "thickness": 1,
                    "fill": "$border-subtle"
                  },
                  "gap": 12,
                  "padding": [
                    10,
                    14
                  ],
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "Activity2IconBg",
                      "name": "IconBg",
                      "width": 36,
                      "height": 36,
                      "fill": "#FFF3E0",
                      "cornerRadius": 8,
                      "layout": "vertical",
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "Activity2Icon",
                          "name": "Icon",
                          "width": 0,
                          "height": 0,
                          "iconFontFamily": "lucide"
                        },
                        {
                          "type": "icon_font",
                          "id": "cDqsu",
                          "name": "activity2Icon",
                          "width": 18,
                          "height": 18,
                          "iconFontName": "gift",
                          "iconFontFamily": "lucide",
                          "fill": "$warning"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "Activity2Info",
                      "name": "Info",
                      "width": "fill_container",
                      "layout": "vertical",
                      "children": [
                        {
                          "type": "text",
                          "id": "Activity2Desc",
                          "name": "Description",
                          "fill": "$text-primary",
                          "content": "Đổi ưu đãi - Giảm 20%",
                          "fontFamily": "Poppins",
                          "fontSize": 13,
                          "fontWeight": "500"
                        },
                        {
                          "type": "text",
                          "id": "Activity2Date",
                          "name": "Date",
                          "fill": "$text-tertiary",
                          "content": "08/02/2025",
                          "fontFamily": "Poppins",
                          "fontSize": 12
                        }
                      ]
                    },
                    {
                      "type": "text",
                      "id": "Activity2Points",
                      "name": "Points",
                      "fill": "$error",
                      "content": "-100 điểm",
                      "fontFamily": "Poppins",
                      "fontSize": 14,
                      "fontWeight": "600"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "ActivityItem3",
                  "name": "ActivityItem3",
                  "width": "fill_container",
                  "fill": "$bg-surface",
                  "cornerRadius": 10,
                  "stroke": {
                    "align": "inside",
                    "thickness": 1,
                    "fill": "$border-subtle"
                  },
                  "gap": 12,
                  "padding": [
                    10,
                    14
                  ],
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "Activity3IconBg",
                      "name": "IconBg",
                      "width": 36,
                      "height": 36,
                      "fill": "#DCFCE7",
                      "cornerRadius": 8,
                      "layout": "vertical",
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "Activity3Icon",
                          "name": "Icon",
                          "width": 0,
                          "height": 0,
                          "iconFontFamily": "lucide"
                        },
                        {
                          "type": "icon_font",
                          "id": "DDn1O",
                          "name": "activity3Icon",
                          "width": 18,
                          "height": 18,
                          "iconFontName": "shopping-bag",
                          "iconFontFamily": "lucide",
                          "fill": "$success"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "Activity3Info",
                      "name": "Info",
                      "width": "fill_container",
                      "layout": "vertical",
                      "children": [
                        {
                          "type": "text",
                          "id": "Activity3Desc",
                          "name": "Description",
                          "fill": "$text-primary",
                          "content": "Mua hàng - Trà sữa",
                          "fontFamily": "Poppins",
                          "fontSize": 13,
                          "fontWeight": "500"
                        },
                        {
                          "type": "text",
                          "id": "Activity3Date",
                          "name": "Date",
                          "fill": "$text-tertiary",
                          "content": "05/02/2025",
                          "fontFamily": "Poppins",
                          "fontSize": 12
                        }
                      ]
                    },
                    {
                      "type": "text",
                      "id": "Activity3Points",
                      "name": "Points",
                      "fill": "$success",
                      "content": "+30 điểm",
                      "fontFamily": "Poppins",
                      "fontSize": 14,
                      "fontWeight": "600"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-page": {
      "type": "color",
      "value": "#FAF8F4"
    },
    "bg-surface": {
      "type": "color",
      "value": "#FFFFFF"
    },
    "bg-elevated": {
      "type": "color",
      "value": "#FFF8F0"
    },
    "bg-interactive": {
      "type": "color",
      "value": "#F5EDE4"
    },
    "brown-primary": {
      "type": "color",
      "value": "#6B4423"
    },
    "brown-dark": {
      "type": "color",
      "value": "#4A2E15"
    },
    "orange-primary": {
      "type": "color",
      "value": "#FF6B35"
    },
    "orange-light": {
      "type": "color",
      "value": "#FF8A5C"
    },
    "text-primary": {
      "type": "color",
      "value": "#2C2C2C"
    },
    "text-secondary": {
      "type": "color",
      "value": "#6B6B6B"
    },
    "text-tertiary": {
      "type": "color",
      "value": "#9B9B9B"
    },
    "border-default": {
      "type": "color",
      "value": "#E5DDD4"
    },
    "border-subtle": {
      "type": "color",
      "value": "#F0EAE2"
    },
    "success": {
      "type": "color",
      "value": "#22C55E"
    },
    "warning": {
      "type": "color",
      "value": "#F59E0B"
    },
    "error": {
      "type": "color",
      "value": "#EF4444"
    }
  }
}