{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "name": "Payment Modal Showcase",
      "width": 1440,
      "fill": "$bg-page",
      "layout": "vertical",
      "gap": 80,
      "padding": [80, 120],
      "children": [
        {
          "type": "frame",
          "id": "PaymentModalSection",
          "name": "Payment Modal Section",
          "width": "fill_container",
          "layout": "vertical",
          "gap": 32,
          "children": [
            {
              "type": "frame",
              "id": "PaymentModalHeader",
              "name": "paymentModalSectionHeader",
              "layout": "vertical",
              "gap": 16,
              "alignItems": "center",
              "children": [
                {
                  "type": "frame",
                  "id": "PaymentModalBadge",
                  "name": "shBadge",
                  "fill": "#FF5C0018",
                  "cornerRadius": 100,
                  "padding": [6, 14],
                  "children": [
                    {
                      "type": "text",
                      "id": "PaymentModalBadgeText",
                      "name": "badgeText",
                      "fill": "$orange-primary",
                      "content": "PAYMENT MODAL",
                      "fontFamily": "Roboto",
                      "fontSize": 11,
                      "fontWeight": "500",
                      "letterSpacing": 2
                    }
                  ]
                },
                {
                  "type": "text",
                  "id": "PaymentModalTitle",
                  "name": "shTitle",
                  "fill": "$text-primary",
                  "content": "Payment Flow Dialog",
                  "textAlign": "center",
                  "fontFamily": "Roboto",
                  "fontSize": 42,
                  "fontWeight": "normal",
                  "letterSpacing": -1
                }
              ]
            },
            {
              "type": "frame",
              "id": "PaymentModalExample",
              "name": "paymentModalExample",
              "width": "fill_container",
              "fill": "$bg-surface",
              "cornerRadius": 16,
              "stroke": {"thickness": 1, "fill": "$border-subtle"},
              "padding": 40,
              "justifyContent": "center",
              "children": [
                {
                  "type": "frame",
                  "id": "PaymentModalFull",
                  "name": "Organism/PaymentModal/Full",
                  "reusable": true,
                  "width": 520,
                  "fill": "$bg-elevated",
                  "cornerRadius": 24,
                  "stroke": {"thickness": 1, "fill": "$border-default"},
                  "layout": "vertical",
                  "clip": true,
                  "children": [
                    {
                      "type": "frame",
                      "id": "PaymentModalTopBar",
                      "name": "topBar",
                      "width": "fill_container",
                      "padding": [20, 24],
                      "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
                      "justifyContent": "space_between",
                      "alignItems": "center",
                      "children": [
                        {"type": "text", "id": "PaymentModalTopTitle", "fill": "$text-primary", "content": "Thanh toán", "fontFamily": "Roboto", "fontSize": 20, "fontWeight": "600"},
                        {
                          "type": "frame",
                          "id": "PaymentModalCloseBtn",
                          "name": "closeBtn",
                          "width": 40,
                          "height": 40,
                          "fill": "$bg-interactive",
                          "cornerRadius": 10,
                          "justifyContent": "center",
                          "alignItems": "center",
                          "children": [
                            {"type": "icon_font", "id": "PaymentModalCloseIcon", "width": 20, "height": 20, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
                          ]
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "PaymentModalBody",
                      "name": "body",
                      "width": "fill_container",
                      "layout": "vertical",
                      "padding": 24,
                      "gap": 24,
                      "children": [
                        {
                          "type": "frame",
                          "id": "PaymentModalAmount",
                          "name": "amountSection",
                          "width": "fill_container",
                          "fill": "$bg-surface",
                          "cornerRadius": 16,
                          "layout": "vertical",
                          "padding": 20,
                          "gap": 8,
                          "alignItems": "center",
                          "children": [
                            {"type": "text", "id": "PaymentModalAmountLabel", "fill": "$text-secondary", "content": "Tổng thanh toán", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "normal"},
                            {"type": "text", "id": "PaymentModalAmountValue", "fill": "$orange-primary", "content": "128,000₫", "fontFamily": "Roboto", "fontSize": 42, "fontWeight": "700"}
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "PaymentModalMethods",
                          "name": "methodsSection",
                          "width": "fill_container",
                          "layout": "vertical",
                          "gap": 12,
                          "children": [
                            {"type": "text", "id": "PaymentModalMethodsLabel", "fill": "$text-secondary", "content": "Phương thức thanh toán", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
                            {
                              "type": "frame",
                              "id": "PaymentModalMethodsGrid",
                              "name": "methodsGrid",
                              "width": "fill_container",
                              "gap": 12,
                              "children": [
                                {
                                  "type": "frame",
                                  "id": "PayMethodCash",
                                  "name": "cashMethod",
                                  "width": "fill_container",
                                  "height": 80,
                                  "fill": "$bg-surface",
                                  "cornerRadius": 14,
                                  "stroke": {"thickness": 2, "fill": "$orange-primary"},
                                  "layout": "vertical",
                                  "gap": 6,
                                  "justifyContent": "center",
                                  "alignItems": "center",
                                  "children": [
                                    {"type": "icon_font", "id": "PayMethodCashIcon", "width": 28, "height": 28, "iconFontName": "banknote", "iconFontFamily": "lucide", "fill": "$orange-primary"},
                                    {"type": "text", "id": "PayMethodCashText", "fill": "$text-primary", "content": "Tiền mặt", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
                                  ]
                                },
                                {
                                  "type": "frame",
                                  "id": "PayMethodCard",
                                  "name": "cardMethod",
                                  "width": "fill_container",
                                  "height": 80,
                                  "fill": "$bg-surface",
                                  "cornerRadius": 14,
                                  "stroke": {"thickness": 1, "fill": "$border-default"},
                                  "layout": "vertical",
                                  "gap": 6,
                                  "justifyContent": "center",
                                  "alignItems": "center",
                                  "children": [
                                    {"type": "icon_font", "id": "PayMethodCardIcon", "width": 28, "height": 28, "iconFontName": "credit-card", "iconFontFamily": "lucide", "fill": "$text-secondary"},
                                    {"type": "text", "id": "PayMethodCardText", "fill": "$text-secondary", "content": "Thẻ", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
                                  ]
                                },
                                {
                                  "type": "frame",
                                  "id": "PayMethodQR",
                                  "name": "qrMethod",
                                  "width": "fill_container",
                                  "height": 80,
                                  "fill": "$bg-surface",
                                  "cornerRadius": 14,
                                  "stroke": {"thickness": 1, "fill": "$border-default"},
                                  "layout": "vertical",
                                  "gap": 6,
                                  "justifyContent": "center",
                                  "alignItems": "center",
                                  "children": [
                                    {"type": "icon_font", "id": "PayMethodQRIcon", "width": 28, "height": 28, "iconFontName": "qr-code", "iconFontFamily": "lucide", "fill": "$text-secondary"},
                                    {"type": "text", "id": "PayMethodQRText", "fill": "$text-secondary", "content": "QR Code", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
                                  ]
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "PaymentModalCashInput",
                          "name": "cashInputSection",
                          "width": "fill_container",
                          "layout": "vertical",
                          "gap": 12,
                          "children": [
                            {"type": "text", "id": "PaymentModalCashLabel", "fill": "$text-secondary", "content": "Tiền khách đưa", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
                            {
                              "type": "frame",
                              "id": "PaymentModalCashField",
                              "name": "cashField",
                              "width": "fill_container",
                              "height": 56,
                              "fill": "$bg-surface",
                              "cornerRadius": 12,
                              "stroke": {"thickness": 1, "fill": "$border-default"},
                              "padding": [0, 20],
                              "justifyContent": "space_between",
                              "alignItems": "center",
                              "children": [
                                {"type": "text", "id": "PaymentModalCashValue", "fill": "$text-primary", "content": "200,000", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "600"},
                                {"type": "text", "id": "PaymentModalCashCurrency", "fill": "$text-tertiary", "content": "₫", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "normal"}
                              ]
                            },
                            {
                              "type": "frame",
                              "id": "PaymentModalQuickAmounts",
                              "name": "quickAmounts",
                              "width": "fill_container",
                              "gap": 8,
                              "children": [
                                {"type": "frame", "id": "QuickAmt50", "name": "amt50k", "fill": "$bg-interactive", "cornerRadius": 8, "padding": [10, 16], "children": [{"type": "text", "id": "QuickAmt50Text", "fill": "$text-secondary", "content": "50K", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}]},
                                {"type": "frame", "id": "QuickAmt100", "name": "amt100k", "fill": "$bg-interactive", "cornerRadius": 8, "padding": [10, 16], "children": [{"type": "text", "id": "QuickAmt100Text", "fill": "$text-secondary", "content": "100K", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}]},
                                {"type": "frame", "id": "QuickAmt200", "name": "amt200k", "fill": "$orange-primary", "cornerRadius": 8, "padding": [10, 16], "children": [{"type": "text", "id": "QuickAmt200Text", "fill": "$text-primary", "content": "200K", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}]},
                                {"type": "frame", "id": "QuickAmt500", "name": "amt500k", "fill": "$bg-interactive", "cornerRadius": 8, "padding": [10, 16], "children": [{"type": "text", "id": "QuickAmt500Text", "fill": "$text-secondary", "content": "500K", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}]},
                                {"type": "frame", "id": "QuickAmtExact", "name": "amtExact", "fill": "$bg-interactive", "cornerRadius": 8, "padding": [10, 16], "children": [{"type": "text", "id": "QuickAmtExactText", "fill": "$text-secondary", "content": "Đủ tiền", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}]}
                              ]
                            }
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "PaymentModalChange",
                          "name": "changeSection",
                          "width": "fill_container",
                          "fill": "#22C55E18",
                          "cornerRadius": 12,
                          "padding": [16, 20],
                          "justifyContent": "space_between",
                          "alignItems": "center",
                          "children": [
                            {"type": "text", "id": "PaymentModalChangeLabel", "fill": "$green-success", "content": "Tiền thối lại", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "500"},
                            {"type": "text", "id": "PaymentModalChangeValue", "fill": "$green-success", "content": "72,000₫", "fontFamily": "Roboto", "fontSize": 20, "fontWeight": "700"}
                          ]
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "PaymentModalActions",
                      "name": "actions",
                      "width": "fill_container",
                      "padding": 24,
                      "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
                      "gap": 12,
                      "children": [
                        {
                          "type": "frame",
                          "id": "PaymentModalCancelBtn",
                          "name": "cancelBtn",
                          "width": "fill_container",
                          "height": 52,
                          "cornerRadius": 12,
                          "stroke": {"thickness": 1, "fill": "$border-default"},
                          "justifyContent": "center",
                          "alignItems": "center",
                          "children": [
                            {"type": "text", "id": "PaymentModalCancelText", "fill": "$text-secondary", "content": "Hủy", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "500"}
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "PaymentModalConfirmBtn",
                          "name": "confirmBtn",
                          "width": "fill_container",
                          "height": 52,
                          "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "size": {"height": 1}, "colors": [{"color": "#FF5C00", "position": 0}, {"color": "#FF8A4C", "position": 1}]},
                          "cornerRadius": 12,
                          "gap": 8,
                          "justifyContent": "center",
                          "alignItems": "center",
                          "children": [
                            {"type": "icon_font", "id": "PaymentModalConfirmIcon", "width": 20, "height": 20, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"},
                            {"type": "text", "id": "PaymentModalConfirmText", "fill": "$text-primary", "content": "Xác nhận thanh toán", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600"}
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "type": "frame",
          "id": "PaymentSuccessSection",
          "name": "Payment Success Section",
          "width": "fill_container",
          "layout": "vertical",
          "gap": 32,
          "children": [
            {
              "type": "frame",
              "id": "PaymentSuccessHeader",
              "name": "paymentSuccessSectionHeader",
              "layout": "vertical",
              "gap": 16,
              "alignItems": "center",
              "children": [
                {
                  "type": "frame",
                  "id": "PaymentSuccessBadge",
                  "name": "shBadge",
                  "fill": "#FF5C0018",
                  "cornerRadius": 100,
                  "padding": [6, 14],
                  "children": [
                    {
                      "type": "text",
                      "id": "PaymentSuccessBadgeText",
                      "name": "badgeText",
                      "fill": "$orange-primary",
                      "content": "SUCCESS STATE",
                      "fontFamily": "Roboto",
                      "fontSize": 11,
                      "fontWeight": "500",
                      "letterSpacing": 2
                    }
                  ]
                },
                {
                  "type": "text",
                  "id": "PaymentSuccessTitle",
                  "name": "shTitle",
                  "fill": "$text-primary",
                  "content": "Payment Confirmation",
                  "textAlign": "center",
                  "fontFamily": "Roboto",
                  "fontSize": 42,
                  "fontWeight": "normal",
                  "letterSpacing": -1
                }
              ]
            },
            {
              "type": "frame",
              "id": "PaymentSuccessExample",
              "name": "paymentSuccessExample",
              "width": "fill_container",
              "fill": "$bg-surface",
              "cornerRadius": 16,
              "stroke": {"thickness": 1, "fill": "$border-subtle"},
              "padding": 40,
              "justifyContent": "center",
              "children": [
                {
                  "type": "frame",
                  "id": "PaymentSuccessModal",
                  "name": "Organism/PaymentModal/Success",
                  "reusable": true,
                  "width": 420,
                  "fill": "$bg-elevated",
                  "cornerRadius": 24,
                  "stroke": {"thickness": 1, "fill": "$border-default"},
                  "layout": "vertical",
                  "padding": 40,
                  "gap": 24,
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "PaymentSuccessIconWrapper",
                      "name": "iconWrapper",
                      "width": 80,
                      "height": 80,
                      "fill": "#22C55E18",
                      "cornerRadius": 100,
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {"type": "icon_font", "id": "PaymentSuccessIcon", "width": 40, "height": 40, "iconFontName": "check-circle", "iconFontFamily": "lucide", "fill": "$green-success"}
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "PaymentSuccessContent",
                      "name": "content",
                      "layout": "vertical",
                      "gap": 8,
                      "alignItems": "center",
                      "children": [
                        {"type": "text", "id": "PaymentSuccessContentTitle", "fill": "$text-primary", "content": "Thanh toán thành công!", "fontFamily": "Roboto", "fontSize": 22, "fontWeight": "600", "textAlign": "center"},
                        {"type": "text", "id": "PaymentSuccessContentDesc", "fill": "$text-secondary", "content": "Đơn hàng #0042 đã được thanh toán", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "normal", "textAlign": "center"}
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "PaymentSuccessSummary",
                      "name": "summary",
                      "width": "fill_container",
                      "fill": "$bg-surface",
                      "cornerRadius": 14,
                      "layout": "vertical",
                      "padding": 20,
                      "gap": 12,
                      "children": [
                        {
                          "type": "frame",
                          "id": "PaymentSuccessSummaryTotal",
                          "name": "totalRow",
                          "width": "fill_container",
                          "justifyContent": "space_between",
                          "children": [
                            {"type": "text", "id": "PaymentSuccessTotalLabel", "fill": "$text-secondary", "content": "Tổng thanh toán", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "normal"},
                            {"type": "text", "id": "PaymentSuccessTotalValue", "fill": "$text-primary", "content": "128,000₫", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "PaymentSuccessSummaryMethod",
                          "name": "methodRow",
                          "width": "fill_container",
                          "justifyContent": "space_between",
                          "children": [
                            {"type": "text", "id": "PaymentSuccessMethodLabel", "fill": "$text-secondary", "content": "Phương thức", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "normal"},
                            {"type": "text", "id": "PaymentSuccessMethodValue", "fill": "$text-primary", "content": "Tiền mặt", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "PaymentSuccessSummaryChange",
                          "name": "changeRow",
                          "width": "fill_container",
                          "justifyContent": "space_between",
                          "children": [
                            {"type": "text", "id": "PaymentSuccessChangeLabel", "fill": "$green-success", "content": "Tiền thối lại", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "normal"},
                            {"type": "text", "id": "PaymentSuccessChangeValue", "fill": "$green-success", "content": "72,000₫", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
                          ]
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "PaymentSuccessActions",
                      "name": "actions",
                      "width": "fill_container",
                      "gap": 12,
                      "children": [
                        {
                          "type": "frame",
                          "id": "PaymentSuccessPrintBtn",
                          "name": "printBtn",
                          "width": "fill_container",
                          "height": 48,
                          "cornerRadius": 10,
                          "stroke": {"thickness": 1, "fill": "$border-default"},
                          "gap": 8,
                          "justifyContent": "center",
                          "alignItems": "center",
                          "children": [
                            {"type": "icon_font", "id": "PaymentSuccessPrintIcon", "width": 18, "height": 18, "iconFontName": "printer", "iconFontFamily": "lucide", "fill": "$text-secondary"},
                            {"type": "text", "id": "PaymentSuccessPrintText", "fill": "$text-secondary", "content": "In hóa đơn", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "PaymentSuccessNewBtn",
                          "name": "newOrderBtn",
                          "width": "fill_container",
                          "height": 48,
                          "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "size": {"height": 1}, "colors": [{"color": "#FF5C00", "position": 0}, {"color": "#FF8A4C", "position": 1}]},
                          "cornerRadius": 10,
                          "gap": 8,
                          "justifyContent": "center",
                          "alignItems": "center",
                          "children": [
                            {"type": "icon_font", "id": "PaymentSuccessNewIcon", "width": 18, "height": 18, "iconFontName": "plus", "iconFontFamily": "lucide", "fill": "$text-primary"},
                            {"type": "text", "id": "PaymentSuccessNewText", "fill": "$text-primary", "content": "Đơn 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"},
    "bg-surface": {"type": "color", "value": "#111113"},
    "border-default": {"type": "color", "value": "#2A2A2E"},
    "border-subtle": {"type": "color", "value": "#1F1F23"},
    "green-success": {"type": "color", "value": "#22C55E"},
    "orange-light": {"type": "color", "value": "#FF8A4C"},
    "orange-primary": {"type": "color", "value": "#FF5C00"},
    "text-disabled": {"type": "color", "value": "#6B6B70"},
    "text-muted": {"type": "color", "value": "#FFFFFFCC"},
    "text-primary": {"type": "color", "value": "#FFFFFF"},
    "text-secondary": {"type": "color", "value": "#ADADB0"},
    "text-tertiary": {"type": "color", "value": "#8B8B90"}
  }
}
