{
  "version": "2.7",
  "children": [
    {
      "type": "frame",
      "id": "ReferralProgramScreen",
      "x": 0,
      "y": 0,
      "name": "Screen/ReferralProgram",
      "reusable": true,
      "width": 390,
      "height": 1022,
      "fill": "$bg-page",
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "ReferralTopBar",
          "name": "TopBar",
          "width": "fill_container",
          "height": 56,
          "fill": "$bg-surface",
          "stroke": {
            "align": "inside",
            "thickness": 1,
            "fill": "$border-subtle"
          },
          "gap": 12,
          "padding": [
            0,
            16
          ],
          "alignItems": "center",
          "children": [
            {
              "type": "icon_font",
              "id": "ReferralBackIcon",
              "name": "BackIcon",
              "width": 24,
              "height": 24,
              "iconFontName": "arrow-left",
              "iconFontFamily": "lucide",
              "fill": "$text-primary"
            },
            {
              "type": "text",
              "id": "ReferralScreenTitle",
              "name": "Title",
              "fill": "$text-primary",
              "content": "Giới thiệu bạn bè",
              "fontFamily": "Poppins",
              "fontSize": 18,
              "fontWeight": "600"
            },
            {
              "type": "frame",
              "id": "ReferralTopBarSpacer",
              "name": "Spacer",
              "width": "fill_container",
              "height": 24
            }
          ]
        },
        {
          "type": "frame",
          "id": "ReferralScrollContent",
          "name": "ScrollContent",
          "width": "fill_container",
          "layout": "vertical",
          "gap": 14,
          "padding": [
            16,
            16,
            32,
            16
          ],
          "children": [
            {
              "type": "frame",
              "id": "ReferralHeroBanner",
              "name": "HeroBanner",
              "width": "fill_container",
              "fill": "$bg-elevated",
              "cornerRadius": 20,
              "stroke": {
                "align": "inside",
                "thickness": 1,
                "fill": "$border-subtle"
              },
              "layout": "vertical",
              "gap": 8,
              "padding": 18,
              "alignItems": "center",
              "children": [
                {
                  "type": "frame",
                  "id": "HeroIconBg",
                  "name": "IconBg",
                  "width": 56,
                  "height": 56,
                  "fill": "$bg-interactive",
                  "cornerRadius": 28,
                  "layout": "vertical",
                  "justifyContent": "center",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "icon_font",
                      "id": "HeroUsersIcon",
                      "name": "Icon",
                      "width": 28,
                      "height": 28,
                      "iconFontName": "users",
                      "iconFontFamily": "lucide",
                      "fill": "$brown-primary"
                    }
                  ]
                },
                {
                  "type": "text",
                  "id": "HeroTitle",
                  "name": "Title",
                  "fill": "$text-primary",
                  "textGrowth": "fixed-width",
                  "width": "fill_container",
                  "content": "Giới thiệu bạn bè",
                  "textAlign": "center",
                  "fontFamily": "Poppins",
                  "fontSize": 19,
                  "fontWeight": "600"
                },
                {
                  "type": "text",
                  "id": "HeroSubtitle",
                  "name": "Subtitle",
                  "fill": "$text-secondary",
                  "textGrowth": "fixed-width",
                  "width": "fill_container",
                  "content": "Nhận 100 điểm cho mỗi bạn bè đăng ký!",
                  "textAlign": "center",
                  "fontFamily": "Poppins",
                  "fontSize": 13
                }
              ]
            },
            {
              "type": "frame",
              "id": "ReferralCodeCard",
              "name": "ReferralCodeCard",
              "width": "fill_container",
              "fill": "$brown-primary",
              "cornerRadius": 16,
              "stroke": {
                "align": "inside",
                "thickness": 1,
                "fill": "#FFFFFF33"
              },
              "effect": {
                "type": "shadow",
                "shadowType": "outer",
                "color": "#6B442320",
                "offset": {
                  "x": 0,
                  "y": 4
                },
                "blur": 12
              },
              "layout": "vertical",
              "gap": 14,
              "padding": 16,
              "children": [
                {
                  "type": "text",
                  "id": "CodeLabel",
                  "name": "Label",
                  "fill": "#FFFFFFCC",
                  "content": "Mã giới thiệu của bạn",
                  "fontFamily": "Poppins",
                  "fontSize": 12,
                  "fontWeight": "600",
                  "letterSpacing": 0.3
                },
                {
                  "type": "frame",
                  "id": "CodeBox",
                  "name": "CodeBox",
                  "width": "fill_container",
                  "fill": "#FFFFFF1A",
                  "cornerRadius": 12,
                  "stroke": {
                    "align": "inside",
                    "thickness": 1,
                    "fill": "#FFFFFF1A"
                  },
                  "layout": "vertical",
                  "padding": [
                    14,
                    16
                  ],
                  "justifyContent": "center",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "text",
                      "id": "CodeValue",
                      "name": "Code",
                      "fill": "#FFFFFF",
                      "content": "EGGY-VAN-A2024",
                      "textAlign": "center",
                      "fontFamily": "Poppins",
                      "fontSize": 20,
                      "fontWeight": "700",
                      "letterSpacing": 1
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "CodeActionRow",
                  "name": "ActionRow",
                  "width": "fill_container",
                  "gap": 12,
                  "children": [
                    {
                      "type": "frame",
                      "id": "CopyButton",
                      "name": "CopyButton",
                      "width": "fill_container",
                      "height": 44,
                      "fill": "#FFFFFF1A",
                      "cornerRadius": 10,
                      "stroke": {
                        "align": "inside",
                        "thickness": 1,
                        "fill": "#FFFFFF1A"
                      },
                      "gap": 6,
                      "padding": [
                        12,
                        0
                      ],
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "CopyIcon",
                          "name": "Icon",
                          "width": 16,
                          "height": 16,
                          "iconFontName": "copy",
                          "iconFontFamily": "lucide",
                          "fill": "#FFFFFF"
                        },
                        {
                          "type": "text",
                          "id": "CopyText",
                          "name": "Text",
                          "fill": "#FFFFFF",
                          "content": "Sao chép",
                          "fontFamily": "Poppins",
                          "fontSize": 13,
                          "fontWeight": "500"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "ShareButton",
                      "name": "ShareButton",
                      "width": "fill_container",
                      "height": 44,
                      "fill": "$orange-primary",
                      "cornerRadius": 10,
                      "effect": {
                        "type": "shadow",
                        "shadowType": "outer",
                        "color": "#FF6B3533",
                        "offset": {
                          "x": 0,
                          "y": 2
                        },
                        "blur": 4
                      },
                      "gap": 6,
                      "padding": [
                        12,
                        0
                      ],
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "ShareIcon",
                          "name": "Icon",
                          "width": 16,
                          "height": 16,
                          "iconFontName": "share-2",
                          "iconFontFamily": "lucide",
                          "fill": "#FFFFFF"
                        },
                        {
                          "type": "text",
                          "id": "ShareText",
                          "name": "Text",
                          "fill": "#FFFFFF",
                          "content": "Chia sẻ",
                          "fontFamily": "Poppins",
                          "fontSize": 13,
                          "fontWeight": "500"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "type": "frame",
              "id": "ReferralStatsRow",
              "name": "StatsRow",
              "width": "fill_container",
              "gap": 10,
              "children": [
                {
                  "type": "frame",
                  "id": "StatReferred",
                  "name": "Referred",
                  "width": "fill_container",
                  "fill": "$bg-surface",
                  "cornerRadius": 12,
                  "stroke": {
                    "align": "inside",
                    "thickness": 1,
                    "fill": "$border-subtle"
                  },
                  "effect": {
                    "type": "shadow",
                    "shadowType": "outer",
                    "color": "#00000008",
                    "offset": {
                      "x": 0,
                      "y": 1
                    },
                    "blur": 3
                  },
                  "layout": "vertical",
                  "gap": 6,
                  "padding": 16,
                  "justifyContent": "center",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "text",
                      "id": "StatReferredLabel",
                      "name": "Label",
                      "fill": "$text-secondary",
                      "content": "Đã giới thiệu",
                      "fontFamily": "Poppins",
                      "fontSize": 12
                    },
                    {
                      "type": "text",
                      "id": "StatReferredValue",
                      "name": "Value",
                      "fill": "$text-primary",
                      "content": "5",
                      "fontFamily": "Poppins",
                      "fontSize": 24,
                      "fontWeight": "700"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "StatPointsEarned",
                  "name": "PointsEarned",
                  "width": "fill_container",
                  "fill": "$bg-surface",
                  "cornerRadius": 12,
                  "stroke": {
                    "align": "inside",
                    "thickness": 1,
                    "fill": "$border-subtle"
                  },
                  "effect": {
                    "type": "shadow",
                    "shadowType": "outer",
                    "color": "#00000008",
                    "offset": {
                      "x": 0,
                      "y": 1
                    },
                    "blur": 3
                  },
                  "layout": "vertical",
                  "gap": 6,
                  "padding": 16,
                  "justifyContent": "center",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "text",
                      "id": "StatPointsLabel",
                      "name": "Label",
                      "fill": "$text-secondary",
                      "content": "Điểm nhận",
                      "fontFamily": "Poppins",
                      "fontSize": 12
                    },
                    {
                      "type": "text",
                      "id": "StatPointsValue",
                      "name": "Value",
                      "fill": "$orange-primary",
                      "content": "500",
                      "fontFamily": "Poppins",
                      "fontSize": 24,
                      "fontWeight": "700"
                    }
                  ]
                }
              ]
            },
            {
              "type": "frame",
              "id": "HowItWorksSection",
              "name": "HowItWorks",
              "width": "fill_container",
              "fill": "$bg-surface",
              "cornerRadius": 16,
              "stroke": {
                "align": "inside",
                "thickness": 1,
                "fill": "$border-subtle"
              },
              "layout": "vertical",
              "gap": 12,
              "padding": 16,
              "children": [
                {
                  "type": "text",
                  "id": "HowItWorksTitle",
                  "name": "Title",
                  "fill": "$text-primary",
                  "content": "Cách thức hoạt động",
                  "fontFamily": "Poppins",
                  "fontSize": 15,
                  "fontWeight": "600",
                  "letterSpacing": 0.2
                },
                {
                  "type": "frame",
                  "id": "Step1",
                  "name": "Step1",
                  "width": "fill_container",
                  "gap": 12,
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "Step1IconBg",
                      "name": "IconBg",
                      "width": 36,
                      "height": 36,
                      "fill": "$bg-elevated",
                      "cornerRadius": 8,
                      "layout": "vertical",
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "Step1Icon",
                          "name": "Icon",
                          "width": 18,
                          "height": 18,
                          "iconFontName": "share",
                          "iconFontFamily": "lucide",
                          "fill": "$orange-primary"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "Step1Info",
                      "name": "Info",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 2,
                      "children": [
                        {
                          "type": "text",
                          "id": "Step1Label",
                          "name": "Label",
                          "fill": "$text-tertiary",
                          "content": "Bước 1",
                          "fontFamily": "Poppins",
                          "fontSize": 10,
                          "fontWeight": "500",
                          "letterSpacing": 0.5
                        },
                        {
                          "type": "text",
                          "id": "Step1Text",
                          "name": "Text",
                          "fill": "$text-primary",
                          "content": "Chia sẻ mã cho bạn bè",
                          "fontFamily": "Poppins",
                          "fontSize": 13,
                          "fontWeight": "500"
                        }
                      ]
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "Step2",
                  "name": "Step2",
                  "width": "fill_container",
                  "gap": 12,
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "Step2IconBg",
                      "name": "IconBg",
                      "width": 36,
                      "height": 36,
                      "fill": "$bg-elevated",
                      "cornerRadius": 8,
                      "layout": "vertical",
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "Step2Icon",
                          "name": "Icon",
                          "width": 18,
                          "height": 18,
                          "iconFontName": "user-plus",
                          "iconFontFamily": "lucide",
                          "fill": "$orange-primary"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "Step2Info",
                      "name": "Info",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 2,
                      "children": [
                        {
                          "type": "text",
                          "id": "Step2Label",
                          "name": "Label",
                          "fill": "$text-tertiary",
                          "content": "Bước 2",
                          "fontFamily": "Poppins",
                          "fontSize": 10,
                          "fontWeight": "500",
                          "letterSpacing": 0.5
                        },
                        {
                          "type": "text",
                          "id": "Step2Text",
                          "name": "Text",
                          "fill": "$text-primary",
                          "content": "Bạn bè đăng ký & mua hàng",
                          "fontFamily": "Poppins",
                          "fontSize": 13,
                          "fontWeight": "500"
                        }
                      ]
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "Step3",
                  "name": "Step3",
                  "width": "fill_container",
                  "gap": 12,
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "Step3IconBg",
                      "name": "IconBg",
                      "width": 36,
                      "height": 36,
                      "fill": "$bg-elevated",
                      "cornerRadius": 8,
                      "layout": "vertical",
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "Step3Icon",
                          "name": "Icon",
                          "width": 18,
                          "height": 18,
                          "iconFontName": "gift",
                          "iconFontFamily": "lucide",
                          "fill": "$orange-primary"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "Step3Info",
                      "name": "Info",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 2,
                      "children": [
                        {
                          "type": "text",
                          "id": "Step3Label",
                          "name": "Label",
                          "fill": "$text-tertiary",
                          "content": "Bước 3",
                          "fontFamily": "Poppins",
                          "fontSize": 10,
                          "fontWeight": "500",
                          "letterSpacing": 0.5
                        },
                        {
                          "type": "text",
                          "id": "Step3Text",
                          "name": "Text",
                          "fill": "$text-primary",
                          "content": "Cả hai nhận 100 điểm!",
                          "fontFamily": "Poppins",
                          "fontSize": 13,
                          "fontWeight": "500"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "type": "frame",
              "id": "FriendsListSection",
              "name": "FriendsList",
              "width": "fill_container",
              "layout": "vertical",
              "gap": 10,
              "children": [
                {
                  "type": "text",
                  "id": "FriendsListTitle",
                  "name": "Title",
                  "fill": "$text-primary",
                  "content": "Bạn bè đã giới thiệu",
                  "fontFamily": "Poppins",
                  "fontSize": 15,
                  "fontWeight": "600",
                  "letterSpacing": 0.2
                },
                {
                  "type": "frame",
                  "id": "FriendItem1",
                  "name": "Friend1",
                  "width": "fill_container",
                  "fill": "$bg-surface",
                  "cornerRadius": 12,
                  "stroke": {
                    "align": "inside",
                    "thickness": 1,
                    "fill": "$border-subtle"
                  },
                  "gap": 10,
                  "padding": [
                    10,
                    14
                  ],
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "Friend1Avatar",
                      "name": "Avatar",
                      "width": 44,
                      "height": 44,
                      "fill": "$bg-interactive",
                      "cornerRadius": 24,
                      "layout": "vertical",
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "text",
                          "id": "Friend1Initial",
                          "name": "Initial",
                          "fill": "$brown-primary",
                          "content": "TB",
                          "fontFamily": "Poppins",
                          "fontSize": 15,
                          "fontWeight": "600"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "Friend1Info",
                      "name": "Info",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 2,
                      "justifyContent": "center",
                      "children": [
                        {
                          "type": "text",
                          "id": "Friend1Name",
                          "name": "Name",
                          "fill": "$text-primary",
                          "content": "Trần Bình",
                          "fontFamily": "Poppins",
                          "fontSize": 13,
                          "fontWeight": "600"
                        },
                        {
                          "type": "text",
                          "id": "Friend1Date",
                          "name": "Date",
                          "fill": "$text-tertiary",
                          "content": "Tham gia 05/01/2025",
                          "fontFamily": "Poppins",
                          "fontSize": 11
                        }
                      ]
                    },
                    {
                      "type": "text",
                      "id": "Friend1Points",
                      "name": "Points",
                      "fill": "$success",
                      "content": "+100 điểm",
                      "fontFamily": "Poppins",
                      "fontSize": 12,
                      "fontWeight": "600"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "FriendItem2",
                  "name": "Friend2",
                  "width": "fill_container",
                  "fill": "$bg-surface",
                  "cornerRadius": 12,
                  "stroke": {
                    "align": "inside",
                    "thickness": 1,
                    "fill": "$border-subtle"
                  },
                  "gap": 10,
                  "padding": [
                    10,
                    14
                  ],
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "Friend2Avatar",
                      "name": "Avatar",
                      "width": 44,
                      "height": 44,
                      "fill": "$bg-interactive",
                      "cornerRadius": 24,
                      "layout": "vertical",
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "text",
                          "id": "Friend2Initial",
                          "name": "Initial",
                          "fill": "$brown-primary",
                          "content": "LH",
                          "fontFamily": "Poppins",
                          "fontSize": 15,
                          "fontWeight": "600"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "Friend2Info",
                      "name": "Info",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 2,
                      "justifyContent": "center",
                      "children": [
                        {
                          "type": "text",
                          "id": "Friend2Name",
                          "name": "Name",
                          "fill": "$text-primary",
                          "content": "Lê Hương",
                          "fontFamily": "Poppins",
                          "fontSize": 13,
                          "fontWeight": "600"
                        },
                        {
                          "type": "text",
                          "id": "Friend2Date",
                          "name": "Date",
                          "fill": "$text-tertiary",
                          "content": "Tham gia 20/12/2024",
                          "fontFamily": "Poppins",
                          "fontSize": 11
                        }
                      ]
                    },
                    {
                      "type": "text",
                      "id": "Friend2Points",
                      "name": "Points",
                      "fill": "$success",
                      "content": "+100 điểm",
                      "fontFamily": "Poppins",
                      "fontSize": 12,
                      "fontWeight": "600"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "FriendItem3",
                  "name": "Friend3",
                  "width": "fill_container",
                  "fill": "$bg-surface",
                  "cornerRadius": 12,
                  "stroke": {
                    "align": "inside",
                    "thickness": 1,
                    "fill": "$border-subtle"
                  },
                  "gap": 10,
                  "padding": [
                    10,
                    14
                  ],
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "Friend3Avatar",
                      "name": "Avatar",
                      "width": 44,
                      "height": 44,
                      "fill": "$bg-interactive",
                      "cornerRadius": 24,
                      "layout": "vertical",
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "text",
                          "id": "Friend3Initial",
                          "name": "Initial",
                          "fill": "$brown-primary",
                          "content": "PM",
                          "fontFamily": "Poppins",
                          "fontSize": 15,
                          "fontWeight": "600"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "Friend3Info",
                      "name": "Info",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 2,
                      "justifyContent": "center",
                      "children": [
                        {
                          "type": "text",
                          "id": "Friend3Name",
                          "name": "Name",
                          "fill": "$text-primary",
                          "content": "Phạm Minh",
                          "fontFamily": "Poppins",
                          "fontSize": 13,
                          "fontWeight": "600"
                        },
                        {
                          "type": "text",
                          "id": "Friend3Date",
                          "name": "Date",
                          "fill": "$text-tertiary",
                          "content": "Tham gia 15/11/2024",
                          "fontFamily": "Poppins",
                          "fontSize": 11
                        }
                      ]
                    },
                    {
                      "type": "text",
                      "id": "Friend3Points",
                      "name": "Points",
                      "fill": "$success",
                      "content": "+100 điểm",
                      "fontFamily": "Poppins",
                      "fontSize": 12,
                      "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"
    }
  }
}