{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "TipEntryDialog",
      "name": "Dialog/TipEntry",
      "reusable": true,
      "width": 400,
      "height": 600,
      "fill": "$bg-elevated",
      "cornerRadius": 24,
      "layout": "vertical",
      "clip": true,
      "children": [
        {
          "type": "frame",
          "id": "TipHeader",
          "width": "fill_container",
          "padding": [20, 24],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "TipHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "TipIconBg", "width": 44, "height": 44, "fill": "#F59E0B20", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "TipIcon", "width": 22, "height": 22, "iconFontName": "heart-handshake", "iconFontFamily": "lucide", "fill": "#F59E0B"}
              ]},
              {"type": "frame", "id": "TipTitleGroup", "layout": "vertical", "gap": 2, "children": [
                {"type": "text", "id": "TipTitle", "fill": "$text-primary", "content": "Thêm tiền tip", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"},
                {"type": "text", "id": "TipSubtitle", "fill": "$text-tertiary", "content": "Không bắt buộc", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"}
              ]}
            ]},
            {"type": "frame", "id": "TipCloseBtn", "width": 36, "height": 36, "fill": "$bg-interactive", "cornerRadius": 18, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "TipCloseIcon", "width": 18, "height": 18, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "TipContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 24,
          "layout": "vertical",
          "gap": 20,
          "children": [
            {"type": "frame", "id": "TipQuickSection", "width": "fill_container", "layout": "vertical", "gap": 12, "children": [
              {"type": "text", "id": "TipQuickLabel", "fill": "$text-secondary", "content": "Chọn nhanh", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
              {"type": "frame", "id": "TipQuickRow", "width": "fill_container", "gap": 10, "children": [
                {"type": "frame", "id": "TipQuick10", "width": "fill_container", "height": 64, "fill": "$bg-interactive", "cornerRadius": 12, "layout": "vertical", "gap": 4, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "TipQuick10Percent", "fill": "$text-primary", "content": "10%", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"},
                  {"type": "text", "id": "TipQuick10Value", "fill": "$text-tertiary", "content": "53,025₫", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "normal"}
                ]},
                {"type": "frame", "id": "TipQuick15", "width": "fill_container", "height": 64, "fill": "#F59E0B", "cornerRadius": 12, "layout": "vertical", "gap": 4, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "TipQuick15Percent", "fill": "$text-primary", "content": "15%", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"},
                  {"type": "text", "id": "TipQuick15Value", "fill": "#FFFFFF99", "content": "79,538₫", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "normal"}
                ]},
                {"type": "frame", "id": "TipQuick20", "width": "fill_container", "height": 64, "fill": "$bg-interactive", "cornerRadius": 12, "layout": "vertical", "gap": 4, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "TipQuick20Percent", "fill": "$text-primary", "content": "20%", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"},
                  {"type": "text", "id": "TipQuick20Value", "fill": "$text-tertiary", "content": "106,050₫", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "normal"}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "TipCustomSection", "width": "fill_container", "layout": "vertical", "gap": 12, "children": [
              {"type": "text", "id": "TipCustomLabel", "fill": "$text-secondary", "content": "Hoặc nhập số tiền", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
              {"type": "frame", "id": "TipCustomInput", "width": "fill_container", "height": 60, "fill": "$bg-page", "cornerRadius": 14, "stroke": {"thickness": 1, "fill": "$border-default"}, "padding": [0, 18], "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "TipCustomValue", "fill": "$text-primary", "content": "79,538", "fontFamily": "Roboto", "fontSize": 26, "fontWeight": "700"},
                {"type": "text", "id": "TipCustomCurrency", "fill": "$text-tertiary", "content": "₫", "fontFamily": "Roboto", "fontSize": 20, "fontWeight": "500"}
              ]}
            ]},
            {"type": "frame", "id": "TipSummarySection", "width": "fill_container", "fill": "#F59E0B15", "cornerRadius": 12, "padding": 16, "layout": "vertical", "gap": 8, "children": [
              {"type": "frame", "id": "TipSummaryRow1", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "TipSummaryLabel1", "fill": "$text-tertiary", "content": "Hóa đơn", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"},
                {"type": "text", "id": "TipSummaryValue1", "fill": "$text-primary", "content": "530,250₫", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
              ]},
              {"type": "frame", "id": "TipSummaryRow2", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "TipSummaryLabel2", "fill": "$text-tertiary", "content": "Tip (15%)", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"},
                {"type": "text", "id": "TipSummaryValue2", "fill": "#F59E0B", "content": "+79,538₫", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
              ]},
              {"type": "frame", "id": "TipSummaryDivider", "width": "fill_container", "height": 1, "fill": "$border-subtle"},
              {"type": "frame", "id": "TipSummaryRow3", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "TipSummaryLabel3", "fill": "$text-primary", "content": "Tổng thanh toán", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"},
                {"type": "text", "id": "TipSummaryValue3", "fill": "#F59E0B", "content": "609,788₫", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "TipFooter",
          "width": "fill_container",
          "padding": [16, 24],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "gap": 12,
          "children": [
            {"type": "frame", "id": "TipSkipBtn", "width": "fill_container", "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "text", "id": "TipSkipText", "fill": "$text-secondary", "content": "Bỏ qua", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "500"}
            ]},
            {"type": "frame", "id": "TipConfirmBtn", "width": "fill_container", "height": 52, "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "size": {"height": 1}, "colors": [{"color": "#F59E0B", "position": 0}, {"color": "#D97706", "position": 1}]}, "cornerRadius": 12, "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "TipConfirmIcon", "width": 20, "height": 20, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"},
              {"type": "text", "id": "TipConfirmText", "fill": "$text-primary", "content": "Xác nhận tip", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
            ]}
          ]
        }
      ]
    }
  ],
  "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"}
  }
}
