{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "PaymentCardScreen",
      "name": "Payment/Card",
      "reusable": true,
      "width": 480,
      "height": 760,
      "fill": "$bg-page",
      "layout": "vertical",
      "clip": true,
      "children": [
        {
          "type": "frame",
          "id": "CardHeader",
          "width": "fill_container",
          "padding": [20, 24],
          "fill": "$bg-elevated",
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "CardHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "CardBackBtn", "width": 40, "height": 40, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "CardBackIcon", "width": 20, "height": 20, "iconFontName": "arrow-left", "iconFontFamily": "lucide", "fill": "$text-secondary"}
              ]},
              {"type": "text", "id": "CardTitle", "fill": "$text-primary", "content": "Thẻ ngân hàng", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "CardTotalBadge", "fill": "#3B82F620", "cornerRadius": 10, "padding": [8, 14], "children": [
              {"type": "text", "id": "CardTotalText", "fill": "#3B82F6", "content": "530,250₫", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "CardContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 24,
          "layout": "vertical",
          "gap": 24,
          "children": [
            {"type": "frame", "id": "CardTypeSection", "width": "fill_container", "layout": "vertical", "gap": 12, "children": [
              {"type": "text", "id": "CardTypeLabel", "fill": "$text-secondary", "content": "Loại thẻ", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
              {"type": "frame", "id": "CardTypeRow", "width": "fill_container", "gap": 12, "children": [
                {"type": "frame", "id": "CardVisa", "width": "fill_container", "height": 64, "fill": "$bg-elevated", "cornerRadius": 12, "stroke": {"thickness": 2, "fill": "#3B82F6"}, "layout": "vertical", "gap": 4, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "CardVisaIcon", "width": 24, "height": 24, "iconFontName": "credit-card", "iconFontFamily": "lucide", "fill": "#3B82F6"},
                  {"type": "text", "id": "CardVisaText", "fill": "$text-primary", "content": "Visa/Master", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "500"}
                ]},
                {"type": "frame", "id": "CardNapas", "width": "fill_container", "height": 64, "fill": "$bg-interactive", "cornerRadius": 12, "layout": "vertical", "gap": 4, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "CardNapasIcon", "width": 24, "height": 24, "iconFontName": "landmark", "iconFontFamily": "lucide", "fill": "$text-secondary"},
                  {"type": "text", "id": "CardNapasText", "fill": "$text-secondary", "content": "Napas", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "500"}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "CardTerminalSection", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 16, "padding": 24, "layout": "vertical", "gap": 20, "alignItems": "center", "children": [
              {"type": "frame", "id": "CardTerminalIcon", "width": 80, "height": 80, "fill": "#3B82F620", "cornerRadius": 40, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "CardTerminalIconInner", "width": 40, "height": 40, "iconFontName": "smartphone-nfc", "iconFontFamily": "lucide", "fill": "#3B82F6"}
              ]},
              {"type": "text", "id": "CardTerminalTitle", "fill": "$text-primary", "content": "Chạm hoặc Quẹt thẻ", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "600", "textAlign": "center"},
              {"type": "text", "id": "CardTerminalDesc", "fill": "$text-tertiary", "content": "Đặt thẻ lên máy đọc thẻ hoặc quẹt thanh từ", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "normal", "textAlign": "center"},
              {"type": "frame", "id": "CardWaiting", "gap": 8, "alignItems": "center", "children": [
                {"type": "frame", "id": "CardDot1", "width": 8, "height": 8, "fill": "#3B82F6", "cornerRadius": 4},
                {"type": "frame", "id": "CardDot2", "width": 8, "height": 8, "fill": "#3B82F680", "cornerRadius": 4},
                {"type": "frame", "id": "CardDot3", "width": 8, "height": 8, "fill": "#3B82F640", "cornerRadius": 4}
              ]}
            ]},
            {"type": "frame", "id": "CardTipSection", "width": "fill_container", "layout": "vertical", "gap": 12, "children": [
              {"type": "frame", "id": "CardTipHeader", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "CardTipLabel", "fill": "$text-secondary", "content": "Tiền tip (không bắt buộc)", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
                {"type": "text", "id": "CardTipValue", "fill": "$orange-primary", "content": "50,000₫", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
              ]},
              {"type": "frame", "id": "CardTipRow", "width": "fill_container", "gap": 10, "children": [
                {"type": "frame", "id": "CardTip0", "width": "fill_container", "height": 44, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [{"type": "text", "id": "CardTip0Text", "fill": "$text-primary", "content": "Không", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}]},
                {"type": "frame", "id": "CardTip10", "width": "fill_container", "height": 44, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [{"type": "text", "id": "CardTip10Text", "fill": "$text-primary", "content": "10%", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}]},
                {"type": "frame", "id": "CardTip15", "width": "fill_container", "height": 44, "fill": "$orange-primary", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [{"type": "text", "id": "CardTip15Text", "fill": "$text-primary", "content": "15%", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}]},
                {"type": "frame", "id": "CardTip20", "width": "fill_container", "height": 44, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [{"type": "text", "id": "CardTip20Text", "fill": "$text-primary", "content": "20%", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}]}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "CardFooter",
          "width": "fill_container",
          "fill": "$bg-elevated",
          "padding": [16, 24],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "layout": "vertical",
          "gap": 12,
          "children": [
            {"type": "frame", "id": "CardTotalRow", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
              {"type": "text", "id": "CardTotalLabel", "fill": "$text-secondary", "content": "Tổng thanh toán", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "normal"},
              {"type": "text", "id": "CardTotalAmount", "fill": "#3B82F6", "content": "580,250₫", "fontFamily": "Roboto", "fontSize": 20, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "CardCancelBtn", "width": "fill_container", "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "text", "id": "CardCancelText", "fill": "$text-secondary", "content": "Hủy giao dịch", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "500"}
            ]}
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-elevated": {"type": "color", "value": "#1A1A1D"},
    "bg-interactive": {"type": "color", "value": "#2A2A2E"},
    "bg-page": {"type": "color", "value": "#0A0A0B"},
    "border-default": {"type": "color", "value": "#2A2A2E"},
    "border-subtle": {"type": "color", "value": "#1F1F23"},
    "orange-primary": {"type": "color", "value": "#FF5C00"},
    "text-primary": {"type": "color", "value": "#FFFFFF"},
    "text-secondary": {"type": "color", "value": "#ADADB0"},
    "text-tertiary": {"type": "color", "value": "#8B8B90"}
  }
}
