{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "PinEntryDialog",
      "name": "Dialog/PinEntry",
      "reusable": true,
      "width": 360,
      "height": 620,
      "fill": "$bg-elevated",
      "cornerRadius": 24,
      "layout": "vertical",
      "clip": true,
      "children": [
        {
          "type": "frame",
          "id": "PinHeader",
          "width": "fill_container",
          "padding": [24, 24],
          "layout": "vertical",
          "gap": 12,
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "PinIconBg", "width": 60, "height": 60, "fill": "#EF444420", "cornerRadius": 30, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "PinIcon", "width": 28, "height": 28, "iconFontName": "shield-check", "iconFontFamily": "lucide", "fill": "#EF4444"}
            ]},
            {"type": "text", "id": "PinTitle", "fill": "$text-primary", "content": "Nhập mã PIN", "fontFamily": "Roboto", "fontSize": 20, "fontWeight": "700", "textAlign": "center"},
            {"type": "text", "id": "PinSubtitle", "fill": "$text-tertiary", "content": "Xác thực để tiếp tục thao tác", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "normal", "textAlign": "center"}
          ]
        },
        {
          "type": "frame",
          "id": "PinContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": [16, 32],
          "layout": "vertical",
          "gap": 24,
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "PinDotsRow", "gap": 16, "alignItems": "center", "children": [
              {"type": "frame", "id": "PinDot1", "width": 20, "height": 20, "fill": "$orange-primary", "cornerRadius": 10},
              {"type": "frame", "id": "PinDot2", "width": 20, "height": 20, "fill": "$orange-primary", "cornerRadius": 10},
              {"type": "frame", "id": "PinDot3", "width": 20, "height": 20, "stroke": {"thickness": 2, "fill": "$border-default"}, "cornerRadius": 10},
              {"type": "frame", "id": "PinDot4", "width": 20, "height": 20, "stroke": {"thickness": 2, "fill": "$border-default"}, "cornerRadius": 10}
            ]},
            {"type": "frame", "id": "PinPad", "width": 280, "layout": "vertical", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "PinRow1", "gap": 12, "children": [
                {"type": "frame", "id": "PinKey1", "width": 72, "height": 56, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "PinKey1Text", "fill": "$text-primary", "content": "1", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "PinKey2", "width": 72, "height": 56, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "PinKey2Text", "fill": "$text-primary", "content": "2", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "PinKey3", "width": 72, "height": 56, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "PinKey3Text", "fill": "$text-primary", "content": "3", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "600"}
                ]}
              ]},
              {"type": "frame", "id": "PinRow2", "gap": 12, "children": [
                {"type": "frame", "id": "PinKey4", "width": 72, "height": 56, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "PinKey4Text", "fill": "$text-primary", "content": "4", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "PinKey5", "width": 72, "height": 56, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "PinKey5Text", "fill": "$text-primary", "content": "5", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "PinKey6", "width": 72, "height": 56, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "PinKey6Text", "fill": "$text-primary", "content": "6", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "600"}
                ]}
              ]},
              {"type": "frame", "id": "PinRow3", "gap": 12, "children": [
                {"type": "frame", "id": "PinKey7", "width": 72, "height": 56, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "PinKey7Text", "fill": "$text-primary", "content": "7", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "PinKey8", "width": 72, "height": 56, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "PinKey8Text", "fill": "$text-primary", "content": "8", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "PinKey9", "width": 72, "height": 56, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "PinKey9Text", "fill": "$text-primary", "content": "9", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "600"}
                ]}
              ]},
              {"type": "frame", "id": "PinRow4", "gap": 12, "children": [
                {"type": "frame", "id": "PinKeyClear", "width": 72, "height": 56, "fill": "$bg-page", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "PinKeyClearIcon", "width": 22, "height": 22, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-tertiary"}
                ]},
                {"type": "frame", "id": "PinKey0", "width": 72, "height": 56, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "PinKey0Text", "fill": "$text-primary", "content": "0", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "PinKeyBackspace", "width": 72, "height": 56, "fill": "$bg-page", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "PinKeyBackspaceIcon", "width": 22, "height": 22, "iconFontName": "delete", "iconFontFamily": "lucide", "fill": "$text-tertiary"}
                ]}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "PinFooter",
          "width": "fill_container",
          "padding": [16, 24],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "justifyContent": "center",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "PinCancelBtn", "width": "fill_container", "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "text", "id": "PinCancelText", "fill": "$text-secondary", "content": "Hủy", "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"}
  }
}
