.bottom-menu.has-rub { grid-template-columns: repeat(4, 1fr); }
.rub-nav-symbol { font-size: 29px; font-weight: 600; }
.rub-bank-icon { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; margin-inline-end: 8px; }
#rub_tab h3 .rub-bank-icon { width: 28px; height: 28px; }
#rub_tab[hidden] { display: none; }
#rub_tab { padding-top: 16px; overflow-wrap: anywhere; }
#rub_tab h2 { font-size: 22px; margin: 0 0 18px; }
#rub_tab h3 { font-size: 17px; margin: 10px 0; }
#rub_tab p { color: var(--ink-2); line-height: 1.6; font-size: 13px; }
#rub_tab small { color: var(--ink-3); }
#rub_tab article, #rub_tab form { margin-top: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg-card); }
#rub_tab .rub-amount { color: var(--ink); font-size: 29px; font-weight: 700; margin: 14px 0; }
#rub_tab article.rub-request-card { margin-top: 10px; padding: 12px 16px; }
#rub_tab .rub-request-card .rub-card-top, #rub_tab .rub-request-card .rub-card-details { display: flex; justify-content: space-between; gap: 8px; }
#rub_tab .rub-request-card .rub-card-top { align-items: flex-start; }
#rub_tab .rub-request-card .rub-card-top small, #rub_tab .rub-request-card .rub-card-details p:last-child { flex: none; white-space: nowrap; }
#rub_tab .rub-request-card h3 { min-width: 0; margin: 0; line-height: 1.3; }
#rub_tab .rub-request-card .rub-amount { margin: 6px 0 2px; font-size: 26px; line-height: 1.2; }
#rub_tab .rub-request-card .rub-card-details p { margin: 1px 0; line-height: 1.25; }
#rub_tab .rub-request-card button { min-height: 44px; margin-top: 7px; padding: 8px; }
#rub_tab button, #rub_tab a { display: block; width: 100%; padding: 14px; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--accent); color: var(--bg); font: inherit; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
#rub_tab > button, #rub_tab button[type=button] { background: var(--accent-faint); color: var(--accent); }
#rub_tab button:disabled { opacity: .45; cursor: default; }
#rub_tab button:active { transform: translateY(1px); }
#rub_tab .rub-list-heading { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
#rub_tab .rub-list-heading h2 { grid-column: 2; margin: 0; text-align: center; }
#rub_tab .rub-list-heading button { width: 44px; height: 44px; margin: 0; padding: 0; font-size: 24px; line-height: 1; }
#rub_tab label { display: block; color: var(--ink-2); font-size: 13px; line-height: 1.6; margin: 14px 0; }
#rub_tab input:not([type=checkbox]) { display: block; width: 100%; margin-top: 6px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; user-select: text; -webkit-user-select: text; }
#rub_tab select { display: block; width: 100%; margin-top: 6px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
#rub_tab input[type=checkbox] { accent-color: var(--accent); margin-right: 8px; }
#rub_tab input:focus-visible, #rub_tab button:focus-visible, #rub_tab a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#rub_tab [role=status] { color: var(--ink); }
#rub_tab .tab-two-field { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: center; min-height: 58px; padding: 0 14px; margin-top: 6px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg-card); }
#rub_tab .tab-two-customized select { display: none; }
#rub_tab .tab-two-customized.open { z-index: 40; }
#rub_tab button.tab-two-select-trigger { width: 100%; margin: 0; padding: 14px 0; border: 0; background: transparent; color: var(--ink); text-align: left; font-size: 17px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rub_tab .tab-two-select-icon { color: var(--accent); text-align: center; }
#rub_tab .tab-two-select-menu { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: 220px; overflow-y: auto; border: 1.5px solid rgba(0,230,118,.2); border-radius: 16px; padding: 6px; background: rgba(14,26,34,.98); box-shadow: 0 14px 34px rgba(0,0,0,.42); }
#rub_tab .tab-two-customized.open .tab-two-select-menu { display: grid; gap: 2px; }
#rub_tab button.tab-two-select-option { min-height: 40px; margin: 0; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-size: 17px; font-weight: 400; text-align: left; }
#rub_tab button.tab-two-select-option:hover, #rub_tab button.tab-two-select-option.active { background: var(--accent-faint); color: var(--accent); }
#rub_tab .rub-consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; }
#rub_tab .rub-consent input { appearance: none; flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid var(--accent); border-radius: 5px; background: var(--bg); cursor: pointer; }
#rub_tab .rub-consent input:checked { background: var(--accent); }
#rub_tab .rub-consent input:checked::after { content: ''; width: 5px; height: 10px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
#rub_tab .rub-validated input:invalid,
#rub_tab .rub-validated .tab-two-field:has(select:invalid) {
  border-color: var(--red);
  outline-color: var(--red);
  animation: tab2FieldShake 240ms ease;
}
#rub_tab a.rub-terms-link { display: inline; width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--accent); text-align: left; font-size: 13px; font-weight: 400; line-height: 1.7; text-decoration: underline; text-underline-offset: 3px; }
.rub-terms-dialog { width: min(92vw, 400px); max-height: 80vh; max-height: 80dvh; overflow-y: auto; overscroll-behavior: contain; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg-card); color: var(--ink); font-family: 'Sora', sans-serif; box-shadow: 0 20px 60px #0008; }
.rub-terms-dialog::backdrop { background: #000b; backdrop-filter: blur(4px); }
.rub-terms-dialog h2 { margin: 0 0 18px; font-size: 20px; }
.rub-terms-dialog ol { padding-left: 22px; margin: 0; }
.rub-terms-dialog li { margin-bottom: 14px; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.rub-terms-dialog button { width: 100%; margin-top: 12px; padding: 14px; border: 0; border-radius: 14px; background: var(--accent); color: var(--bg); font: inherit; cursor: pointer; }
.rub-terms-dialog button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
