/* Viola Live — web recharge page (/topup). Builds on site.css. RTL and LTR through logical properties. */

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.tu-lang { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); }
.tu-lang .icon { width: 20px; height: 20px; }
.tu-lang select {
  font: inherit; font-size: 15px; color: var(--text); background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 6px 10px; max-width: 46vw;
}

.tu-main { padding: 28px 0 48px; }
.tu-wrap { max-width: 640px; }
.tu-title { font-size: clamp(26px, 5vw, 36px); line-height: 1.3; margin: 0 0 8px; }
.tu-sub { color: var(--text-soft); margin: 0 0 22px; }

.tu-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px;
}
@media (min-width: 600px) { .tu-card { padding: 24px; } }
.tu-card h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 0 0 14px; }
.tu-step {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none;
  font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
}

.tu-id-row { display: flex; gap: 10px; }
.tu-id-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 20px; letter-spacing: .06em; text-align: center;
  color: var(--text); background: var(--ink); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 14px;
}
.tu-id-row input:focus { outline: 2px solid var(--purple); outline-offset: 1px; }
.tu-id-row .btn { flex: none; }
.tu-help { color: var(--text-mute); font-size: 14.5px; margin: 8px 0 0; }
.tu-error { color: #FF8FB4; font-size: 15px; margin: 8px 0 0; }

.tu-account {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px;
  border: 1px solid rgba(82, 214, 178, .45); background: rgba(82, 214, 178, .08); border-radius: 16px;
}
.tu-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none; background: var(--panel-2) center / cover no-repeat;
  display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--text);
}
.tu-account-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.tu-account-text small { color: var(--mint); font-size: 13.5px; }
.tu-account-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tu-account-id { color: var(--text-mute); font-size: 14px; }
.tu-change { margin-inline-start: auto; padding: 6px 14px; font-size: 14.5px; }

.tu-packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 520px) { .tu-packs { grid-template-columns: repeat(3, 1fr); } }
.tu-pack {
  font: inherit; color: var(--text); text-align: center; cursor: pointer;
  background: var(--ink); border: 1.5px solid var(--line-2); border-radius: 16px; padding: 14px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; transition: border-color .15s, background .15s;
}
.tu-pack:hover { border-color: var(--purple); }
.tu-pack[aria-checked="true"] { border-color: var(--pink); background: rgba(255, 92, 157, .10); box-shadow: 0 0 0 1px var(--pink) inset; }
.tu-pack:disabled { opacity: .45; cursor: not-allowed; }
.tu-coin { width: 26px; height: 26px; }
.tu-pack-coins { font-size: 19px; font-weight: 800; line-height: 1.3; }
.tu-pack-label { color: var(--text-mute); font-size: 13px; }
.tu-pack-bonus { color: var(--gold); font-size: 12.5px; font-weight: 700; }
.tu-pack-price { margin-top: 4px; font-weight: 700; color: var(--link); }

/* (v1.317.1) الكمية المخصّصة */
.tu-custom { margin-top: 14px; padding: 12px; border: 1.5px dashed var(--line-2); border-radius: 16px; background: var(--ink); transition: border-color .15s, background .15s; }
.tu-custom.on { border-style: solid; border-color: var(--pink); background: rgba(255, 92, 157, .10); }
.tu-custom-label { display: block; font-weight: 700; margin-bottom: 8px; }
.tu-custom-row input {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 20px; text-align: center;
  color: var(--text); background: var(--bg, #0b0b12); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 14px;
}
.tu-custom-row input:focus { outline: 2px solid var(--purple); outline-offset: 1px; }
.tu-custom-row input[aria-invalid="true"] { border-color: #ff6b6b; }
.tu-custom-info { margin: 8px 0 0; font-size: 14.5px; color: var(--text-soft); min-height: 1.4em; }
.tu-custom-info b { color: var(--link); }
.tu-custom-info .gold { color: var(--gold); font-weight: 700; }

.tu-note { color: var(--text-soft); font-size: 14.5px; margin: 14px 0; }
.tu-pay { width: 100%; justify-content: center; font-size: 18px; padding-block: 14px; }
.tu-pay:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.tu-secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-mute); font-size: 14px; margin: 12px 0 0; text-align: center; }
.tu-secure .icon { width: 16px; height: 16px; flex: none; }
.tu-legal { color: var(--text-mute); font-size: 13.5px; text-align: center; margin: 6px 0 0; }

.tu-alert { background: rgba(255, 92, 157, .12); border: 1px solid rgba(255, 92, 157, .5); color: var(--text); border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; }

.tu-result { text-align: center; padding-block: 32px; }
.tu-result h2 { justify-content: center; font-size: 23px; }
.tu-result p { color: var(--text-soft); }
.tu-result-icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); }
.tu-result-icon svg { width: 34px; height: 34px; }
.tu-result.ok .tu-result-icon { background: rgba(82, 214, 178, .16); color: var(--mint); }
.tu-result.wait .tu-result-icon { color: var(--gold); }
.tu-result.wait .tu-result-icon svg { animation: tu-spin 1.1s linear infinite; }
.tu-result.fail .tu-result-icon { color: var(--pink); }
@keyframes tu-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tu-result.wait .tu-result-icon svg { animation: none; } }

.tu-footer { padding-bottom: 24px; }
.tu-footer .footer-bottom { margin-top: 0; border-top: 0; }
.tu-footer-links { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; }

/* (v1.317.1) قائمة الأقسام تحت «فيولا لايف» */
.tu-menu { position: relative; }
.tu-menu > summary { list-style: none; cursor: pointer; border-radius: 12px; padding: 4px 6px; margin-inline-start: -6px; }
.tu-menu > summary::-webkit-details-marker { display: none; }
.tu-menu > summary:hover, .tu-menu[open] > summary { background: rgba(255, 255, 255, .06); }
.tu-menu > summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.tu-menu-caret { width: 18px; height: 18px; color: var(--text-soft); transition: transform .15s; }
.tu-menu[open] .tu-menu-caret { transform: rotate(180deg); }
.tu-menu-list {
  position: absolute; inset-inline-start: 0; top: calc(100% + 8px); z-index: 60; padding: 6px;
  min-width: 230px; max-height: 75vh; overflow: auto; border-radius: 14px; border: 1px solid var(--line-2);
  background: #15122a; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); display: flex; flex-direction: column;
}
.tu-menu-list a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.tu-menu-list a:hover { background: rgba(255, 255, 255, .07); }
.tu-menu-list a[aria-current="page"] { background: rgba(255, 92, 157, .12); color: #ffd1e3; }
