/* GO SMS — Shared styles for all pages */

:root {
  --bg: #0a0a0a;
  --bg-deep: #050505;
  --surface: #131313;
  --surface-hover: #1a1a1a;
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.16);
  --text: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #6b6b6b;
  --accent: #10b981;
  --accent-hover: #0d9668;
  --accent-glow: rgba(16,185,129,0.4);
  --tg-blue: #229ED9;
  --tg-blue-hover: #1e8bc0;
  --danger: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background glow + grid (universal) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(16,185,129,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(16,185,129,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Header */
header {
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,10,10,0.7);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  user-select: none;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--accent) 0%, #0d9668 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--bg);
  box-shadow: 0 4px 12px rgba(16,185,129,0.25);
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switcher {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.lang-switcher button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.lang-switcher button.active {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}
.lang-switcher button:hover:not(.active) {
  color: var(--text);
}

/* Buttons */
.btn-primary {
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--accent);
  color: #001a10;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(16,185,129,0.2);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(16,185,129,0.32);
}
.btn-primary.full { width: 100%; }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-secondary {
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.24);
}
.btn-secondary.full { width: 100%; }
.btn-login {
  padding: 9px 18px;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-bright);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-login:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.24);
}
.btn-tg {
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--tg-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(34,158,217,0.25);
}
.btn-tg.full { width: 100%; }
.btn-tg:hover {
  background: var(--tg-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(34,158,217,0.32);
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  text-align: left;
}
.form-group label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 2px;
}
.form-group input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--accent);
  background: var(--surface-hover);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.1);
}
.form-group input::placeholder {
  color: var(--text-muted);
}

/* Auth card */
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
  z-index: 1;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(19,19,19,0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-card h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.auth-card .auth-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.5;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-bottom {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}
.auth-bottom a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.auth-bottom a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
footer a:hover { color: var(--text); }
.social-links {
  display: flex;
  gap: 24px;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Dashboard layout */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.dash-header h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dash-header .greeting {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 2px;
}

/* Balance hero */
.balance-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.balance-card, .stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s;
}
.balance-card:hover, .stat-card:hover {
  border-color: var(--border-bright);
}
.balance-card {
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(19,19,19,0.6) 100%);
  border: 1px solid rgba(16,185,129,0.16);
}
.card-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 12px;
}
.balance-value {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
}
.balance-value .currency {
  font-size: 22px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-left: 4px;
}
.stat-value-lg {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-trend {
  font-size: 12px;
  color: var(--accent);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.balance-actions {
  display: flex;
  gap: 8px;
}
.balance-actions .btn-primary, .balance-actions .btn-secondary {
  padding: 10px 18px;
  font-size: 13px;
  box-shadow: none;
}

/* Section */
.section {
  margin-bottom: 32px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-head a, .section-head button {
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.section-head a:hover, .section-head button:hover {
  color: var(--text);
}

/* Rental card */
.rentals-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.rental-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s;
}
.rental-card:hover {
  border-color: var(--border-bright);
  background: var(--surface-hover);
}
.rental-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.rental-service {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rental-service .flag {
  font-size: 14px;
}
.rental-number {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-status.active {
  background: rgba(16,185,129,0.1);
  color: var(--accent);
}
.badge-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.rental-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.rental-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}
.rental-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.rental-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.rental-meta .sms-count {
  color: var(--accent);
  font-weight: 600;
}
.rental-card .btn-open {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.rental-card .btn-open:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-bright);
}

/* SMS list */
.sms-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.sms-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.2s;
}
.sms-item:last-child { border-bottom: none; }
.sms-item:hover {
  background: rgba(255,255,255,0.02);
}
.sms-time {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.sms-content .sender {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}
.sms-content .preview {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}
.sms-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-weight: 500;
}
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 14px;
}
.empty-state svg {
  margin-bottom: 12px;
  opacity: 0.4;
}

/* User chip in header */
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.user-chip:hover {
  border-color: var(--border-bright);
}
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #0d9668 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--bg);
}

/* Catalog */
.page-title {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}
.search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}
.search-input {
  flex: 1;
  position: relative;
}
.search-input input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px 14px 46px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  outline: none;
}
.search-input input:focus {
  border-color: var(--accent);
  background: var(--surface-hover);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.1);
}
.search-input svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input input::placeholder { color: var(--text-muted); }
.country-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.country-chip {
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.country-chip:hover {
  color: var(--text);
  border-color: var(--border-bright);
}
.country-chip.active {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.3);
  color: var(--accent);
}
.country-chip .flag { font-size: 14px; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--border-bright);
  background: var(--surface-hover);
  transform: translateY(-2px);
}
.service-card.rental {
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, var(--surface) 100%);
  border-color: rgba(16,185,129,0.24);
}
.service-card.rental:hover {
  border-color: rgba(16,185,129,0.4);
  box-shadow: 0 12px 32px rgba(16,185,129,0.12);
}
.service-card.favorite {
  border-color: rgba(255,193,7,0.12);
}
.service-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.service-name .marker {
  font-size: 14px;
}
.service-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  min-height: 16px;
}
.service-flags {
  display: flex;
  gap: 4px;
  font-size: 14px;
  margin-bottom: 14px;
}
.service-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
}
.service-price-from {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.service-price {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.service-price .currency {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-left: 2px;
}
.service-cta {
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}
.service-card:hover .service-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.service-card.rental .service-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
}
.badge-new {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 8px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Deposit page */
.amount-card {
  background: linear-gradient(135deg, rgba(16,185,129,0.06) 0%, var(--surface) 60%);
  border: 1px solid rgba(16,185,129,0.16);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 24px;
}
.amount-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 12px;
}
.amount-input-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}
.amount-input-wrap input {
  background: transparent;
  border: none;
  font-size: clamp(48px, 8vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  font-family: inherit;
  outline: none;
  text-align: center;
  width: 200px;
  padding: 0;
}
.amount-input-wrap input::placeholder { color: var(--text-muted); }
.amount-input-wrap input::-webkit-outer-spin-button,
.amount-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-currency {
  font-size: 28px;
  color: var(--text-secondary);
  font-weight: 700;
}
.preset-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.preset-btn {
  padding: 9px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.preset-btn:hover {
  color: var(--text);
  border-color: var(--border-bright);
}
.preset-btn.active {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.3);
  color: var(--accent);
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.payment-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  width: 100%;
  text-align: left;
  color: var(--text);
}
.payment-method:hover:not(.disabled) {
  border-color: var(--border-bright);
  background: var(--surface-hover);
}
.payment-method.selected {
  border-color: var(--accent);
  background: rgba(16,185,129,0.06);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.06);
}
.payment-method.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pm-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.pm-info { flex: 1; }
.pm-name { font-size: 14px; font-weight: 600; }
.pm-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.pm-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.pm-badge.active {
  background: rgba(16,185,129,0.1);
  color: var(--accent);
}
.pm-badge.soon {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}

.promo-section { margin-bottom: 24px; }
.promo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 0;
  text-decoration: none;
}
.promo-toggle:hover { color: var(--text); }
.promo-input {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}
.promo-input input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.promo-input input:focus {
  border-color: var(--accent);
  background: var(--surface-hover);
}
.promo-input button {
  padding: 11px 18px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.promo-input button:hover { background: var(--surface-hover); }

.deposit-cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.deposit-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Transactions list */
.transactions-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.tx-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.2s;
}
.tx-item:last-child { border-bottom: none; }
.tx-item:hover { background: rgba(255,255,255,0.02); }
.tx-time { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tx-desc { font-size: 13px; }
.tx-desc .type { color: var(--text); font-weight: 500; }
.tx-desc .method { color: var(--text-muted); font-size: 11px; margin-top: 2px; }
.tx-amount { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tx-amount.in { color: var(--accent); }
.tx-amount.out { color: var(--text-secondary); }

@media (max-width: 768px) {
  .amount-input-wrap input { width: 160px; }
  .tx-item { grid-template-columns: 70px 1fr auto; padding: 12px 16px; gap: 10px; }
  .tx-time { font-size: 11px; }
}

/* SMS live page */
.number-card {
  background: linear-gradient(135deg, rgba(16,185,129,0.06) 0%, var(--surface) 60%);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 28px;
  position: relative;
}
.number-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.number-meta .pill {
  padding: 4px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.number-display {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.number-big {
  font-size: clamp(28px, 5.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.copy-btn {
  padding: 9px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.copy-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.24);
}
.copy-btn.copied {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.timer-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.timer-row .timer {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.timer-row .timer svg { color: var(--accent); }
.number-progress {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 22px;
}
.number-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #0d9668);
  border-radius: 3px;
}
.number-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.number-actions .btn-secondary,
.number-actions .btn-danger {
  padding: 10px 18px;
  font-size: 13px;
}
.btn-danger {
  padding: 14px 28px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-danger:hover {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.5);
}

/* Live feed */
.live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.live-head h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.2);
  animation: pulse 1.6s infinite;
}
.live-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.sms-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sms-full {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color 0.2s;
  animation: smsAppear 0.5s ease;
}
.sms-full:hover { border-color: var(--border-bright); }
@keyframes smsAppear {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.sms-full-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.sms-sender {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sms-sender .badge-svc {
  font-size: 10px;
  padding: 2px 7px;
  background: rgba(16,185,129,0.1);
  color: var(--accent);
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sms-full-time {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.sms-message {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}
.sms-code-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.sms-code {
  padding: 6px 12px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 6px;
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.sms-copy {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.sms-copy:hover {
  color: var(--text);
  border-color: var(--border-bright);
}

.waiting-card {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  margin-top: 10px;
}
.waiting-card .dots {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 12px;
}
.waiting-card .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotBounce 1.4s infinite;
}
.waiting-card .dot:nth-child(2) { animation-delay: 0.2s; }
.waiting-card .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-6px); }
}
.waiting-card .title { font-size: 14px; color: var(--text); margin-bottom: 4px; font-weight: 500; }
.waiting-card .sub { font-size: 12px; color: var(--text-muted); }

/* Rent flow */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 16px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

.rent-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.step-block {
  margin-bottom: 28px;
}
.step-title {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-title .num {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.option-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  transition: all 0.2s;
  width: 100%;
}
.option-card:hover {
  border-color: var(--border-bright);
  background: var(--surface-hover);
}
.option-card.selected {
  border-color: var(--accent);
  background: rgba(16,185,129,0.08);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.06);
}
.option-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.option-title .flag { font-size: 16px; }
.option-sub {
  font-size: 12px;
  color: var(--text-secondary);
}
.option-card.selected .option-sub {
  color: var(--accent);
}

.proxy-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.proxy-toggle .label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.proxy-toggle .title { font-size: 14px; font-weight: 500; }
.proxy-toggle .sub { font-size: 12px; color: var(--text-secondary); }
.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-switch.on { background: var(--accent); }
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-switch.on::after { transform: translateX(20px); }

.summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  position: sticky;
  top: 96px;
}
.summary h3 {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 16px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
}
.summary-row .key { color: var(--text-secondary); }
.summary-row .val { color: var(--text); font-weight: 500; }
.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0 8px;
}
.summary-total .key {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.summary-total .val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.summary-balance {
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 12px;
  font-size: 12px;
}
.summary-balance .row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}
.summary-balance .row .key { color: var(--text-muted); }
.summary-balance .row .val { color: var(--text-secondary); font-weight: 500; }
.summary-balance .row.highlight .val { color: var(--accent); font-weight: 600; }
.summary-cta { margin-top: 16px; }

@media (max-width: 900px) {
  .rent-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 28px;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--border-bright);
}
.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-ellipsis {
  padding: 0 6px;
  color: var(--text-muted);
  align-self: center;
}

@media (max-width: 768px) {
  header, footer { padding: 14px 20px; }
  .nav { gap: 8px; }
  .btn-login { padding: 7px 14px; font-size: 12px; }
  .lang-switcher button { padding: 5px 9px; font-size: 11px; }
  .auth-wrap { padding: 24px 16px; }
  .auth-card { padding: 32px 24px; }
  .auth-card h2 { font-size: 22px; }
  .container { padding: 20px 16px; }
  .balance-hero { grid-template-columns: 1fr; }
  .balance-value { font-size: 32px; }
  .sms-item { grid-template-columns: 1fr; gap: 6px; padding: 12px 16px; }
  .sms-time { font-size: 11px; }
  .sms-content .preview { max-width: 100%; white-space: normal; }
  .rentals-list { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service-card { padding: 14px; }
  .service-name { font-size: 13px; }
  .service-price { font-size: 18px; }
}
@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: 1fr; }
}
