/* CSS Design System - PayOut Mobile-First Fintech Dashboard */

:root {
  /* Color Palette */
  --bg-primary: #080b11;
  --bg-secondary: #0f1524;
  --card-bg: rgba(21, 31, 50, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  
  --accent-color: #007aff;
  --accent-glow: rgba(0, 122, 255, 0.25);
  --accent-secondary: #00d2ff;
  
  --text-primary: #ffffff;
  --text-secondary: #8e9cae;
  --text-muted: #536275;
  
  /* Status Colors */
  --status-active: #00e676;
  --status-pending: #ffc400;
  --status-grace: #ff9100;
  --status-suspended: #ff1744;
  --status-inactive: #757575;
  --status-blocked: #ff1744;
  
  /* Radii */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --tg-viewport-height: 100vh;
}

.auth-shell {
  min-height: var(--tg-viewport-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  z-index: 2;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(165deg, rgba(18, 28, 48, 0.95) 0%, rgba(10, 14, 24, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 22px 20px 18px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 122, 255, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(12px);
  animation: auth-card-in 0.45s ease-out;
}

@keyframes auth-card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 12px;
  padding: 6px 10px 6px 6px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.auth-back-btn svg {
  width: 18px;
  height: 18px;
}

.auth-back-btn[hidden] {
  display: none !important;
}

.auth-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-logo-img {
  display: block;
  width: min(220px, 88%);
  height: auto;
  object-fit: contain;
  object-position: center;
}

.auth-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-tab {
  flex: 1;
  height: 38px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-tab.active {
  color: #fff;
  background: rgba(0, 122, 255, 0.22);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.auth-hint {
  font-weight: 400;
  color: var(--text-muted);
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.auth-input-wrap input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 0 42px 0 40px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-wrap input:focus {
  outline: none;
  border-color: rgba(0, 122, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.auth-input-wrap input.auth-input--invalid {
  border-color: rgba(255, 23, 68, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 23, 68, 0.12);
}

.auth-toggle-pw {
  position: absolute;
  right: 4px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-toggle-pw:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.auth-toggle-pw svg {
  width: 18px;
  height: 18px;
}

.auth-submit {
  margin-top: 4px;
  height: 48px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  position: relative;
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.auth-submit.is-loading .auth-submit-label {
  opacity: 0;
}

.auth-submit.is-loading::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.45;
  animation: auth-alert-in 0.25s ease-out;
}

.auth-alert[hidden] {
  display: none !important;
}

.auth-alert--error {
  border: 1px solid rgba(255, 107, 107, 0.35);
  background: rgba(255, 23, 68, 0.1);
  color: #ffb4b4;
}

.auth-alert-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-card.auth-shake {
  animation: auth-shake 0.4s ease;
}

@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@keyframes auth-alert-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-form--code .auth-code-header {
  text-align: center;
  margin-bottom: 4px;
}

.auth-code-icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 122, 255, 0.15);
  border: 1px solid rgba(0, 122, 255, 0.25);
  color: var(--accent-secondary);
}

.auth-code-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.auth-note {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0;
}

.auth-code-email {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.auth-code-input {
  width: 100%;
  height: 52px !important;
  text-align: center;
  font-size: 24px !important;
  font-weight: 600;
  letter-spacing: 0.35em;
  padding: 0 12px !important;
  font-variant-numeric: tabular-nums;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.auth-code-input.auth-input--invalid {
  border-color: rgba(255, 23, 68, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 23, 68, 0.12);
}

.auth-code-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.btn-ghost {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text-secondary) !important;
}

.auth-footer-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #000; /* Pitch black for outer screen centering */
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: var(--tg-viewport-height);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(0, 122, 255, 0.2), transparent 45%);
  pointer-events: none;
}

/* Background Radial Glow Effect */
.radial-glow {
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  height: 100%;
  background: radial-gradient(circle at top, var(--accent-glow) 0%, rgba(8, 11, 17, 0) 65%);
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}

/* Mobile Wrapper Container */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: var(--tg-viewport-height);
  width: 100%;
  max-width: 460px; /* Lock to mobile layout */
  margin: 0 auto;
  padding: 16px 16px calc(84px + env(safe-area-inset-bottom)) 16px; /* spacing for fixed navigation */
  background-color: var(--bg-primary);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.app-content {
  flex: 1;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 4px 0;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: white;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-greeting {
  font-weight: 600;
  font-size: 15px;
}

.user-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
  text-transform: uppercase;
}

.user-status-badge.active,
.user-status-badge.paid { background: rgba(0, 230, 118, 0.15); color: var(--status-active); }
.user-status-badge.pending_activation { background: rgba(255, 196, 0, 0.15); color: var(--status-pending); }
.user-status-badge.grace { background: rgba(255, 145, 0, 0.15); color: var(--status-grace); }
.user-status-badge.suspended { background: rgba(255, 23, 68, 0.15); color: var(--status-suspended); }
.user-status-badge.inactive { background: rgba(117, 117, 117, 0.15); color: var(--status-inactive); }

.header-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d8e7f8;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.logout-btn:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.1);
}

.logout-btn i {
  width: 16px;
  height: 16px;
}

/* Quick Admin Link */
.admin-link-icon {
  background: rgba(255, 23, 68, 0.15);
  border: 1px solid rgba(255, 23, 68, 0.3);
  color: var(--status-suspended);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-link-icon i {
  width: 16px;
  height: 16px;
}

.admin-link-icon:active {
  transform: scale(0.92);
  background: rgba(255, 23, 68, 0.25);
}

.auto-renew-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.auto-renew-badge.on {
  background: rgba(0, 230, 118, 0.15);
  color: var(--status-active);
  border: 1px solid rgba(0, 230, 118, 0.2);
}
.auto-renew-badge.off {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glassmorphic Card */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.card:active {
  transform: scale(0.985);
}

.balance-card {
  background: linear-gradient(135deg, rgba(21, 31, 50, 0.85) 0%, rgba(10, 15, 27, 0.95) 100%);
  border: 1px solid rgba(0, 122, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.card-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.total-balance {
  font-family: 'Outfit', sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
  background: linear-gradient(to right, #fff, #b9cbe7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.currency-symbol {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
}

.sub-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.sub-icon-line {
  width: 14px;
  height: 14px;
  color: var(--accent-secondary);
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.accounts-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 4px 10px 4px;
}

.accounts-hint-click {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Accounts List */
.accounts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s;
}

.account-card:active {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(0.985);
}

.account-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.account-name-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-title {
  font-weight: 600;
  font-size: 14px;
}

.account-status-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.account-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: 999px;
  padding: 2px 8px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.account-status-chip.active {
  border-color: rgba(0, 230, 118, 0.3);
  color: var(--status-active);
  background: rgba(0, 230, 118, 0.12);
}

.account-status-chip.pending_activation {
  border-color: rgba(255, 196, 0, 0.3);
  color: var(--status-pending);
  background: rgba(255, 196, 0, 0.12);
}

.account-status-chip.blocked,
.account-status-chip.hidden {
  border-color: rgba(255, 23, 68, 0.3);
  color: #ff9bb0;
  background: rgba(255, 23, 68, 0.12);
}

.account-status-chip.pay_subscription {
  border-color: rgba(255, 152, 0, 0.35);
  color: #ffb74d;
  background: rgba(255, 152, 0, 0.12);
}

.account-meta {
  font-size: 10px;
  color: var(--text-muted);
}

.account-balance {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 17px;
}

/* Account Preparing State */
.account-card.pending {
  border: 1px dashed rgba(255, 196, 0, 0.2);
  background: rgba(255, 255, 255, 0.01);
}

.account-card.pending .account-title {
  color: var(--status-pending);
}

.account-card.pending .account-balance {
  font-size: 12px;
  color: var(--status-pending);
  font-family: inherit;
  font-weight: 500;
  text-align: right;
  max-width: 140px;
}

.account-card.pending .currency-badge {
  border-color: rgba(255, 196, 0, 0.25);
}

/* Account Blocked State */
.account-card.blocked {
  border: 1px solid rgba(255, 23, 68, 0.15);
  background: rgba(255, 23, 68, 0.02);
}

.account-card.blocked .account-title {
  color: var(--status-blocked);
}

.account-card.blocked .account-balance {
  color: var(--status-blocked);
}

.account-card.locked {
  border-style: dashed;
}

/* Empty assigned state */
.accounts-empty-assigned {
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.accounts-empty-assigned i {
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.stat-card {
  margin-bottom: 0;
  padding: 14px;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-top: 2px;
}

.text-green { color: var(--status-active); }
.text-red { color: var(--status-suspended); }

/* Screens Viewports */
.app-screen {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.app-screen.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Forms */
.app-form {
  margin-top: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 13px 60px 13px 14px;
  color: white;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  height: 48px; /* High tap target */
  transition: border-color 0.2s;
}

.input-wrapper input:focus {
  border-color: var(--accent-color);
}

.form-group select {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  color: white;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  height: 48px;
}

.form-group select:focus {
  border-color: var(--accent-color);
}

.input-suffix {
  position: absolute;
  right: 14px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px; /* Mobile tap target requirement */
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), #0056b3);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

.btn-primary:active {
  background: #0056b3;
  transform: translateY(1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  height: 38px;
  font-size: 13px;
  padding: 0 16px;
}

/* Fixed Bottom Navigation */
.app-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  height: calc(68px + env(safe-area-inset-bottom));
  background: rgba(10, 16, 30, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px env(safe-area-inset-bottom) 8px;
  z-index: 99;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  flex: 1;
  height: 100%;
  gap: 4px;
  font-family: inherit;
  transition: color 0.2s ease;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon i {
  width: 20px;
  height: 20px;
  stroke-width: 1.9px;
}

.nav-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.nav-item.active {
  color: var(--accent-color);
  position: relative;
}

.nav-item.active .nav-icon {
  background: rgba(0, 122, 255, 0.14);
  border: 1px solid rgba(0, 122, 255, 0.35);
  box-shadow: 0 0 18px rgba(0, 122, 255, 0.22);
  border-radius: 12px;
  width: 38px;
  height: 28px;
}

.nav-item.active .nav-label {
  color: #d8ebff;
}

/* Detail Card Settings */
.detail-card {
  padding: 20px;
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-subtitle {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.4;
}

.sub-status-paid,
.sub-status-active {
  color: var(--status-active);
  font-weight: 600;
}

.sub-status-pending_activation {
  color: var(--status-pending);
  font-weight: 600;
}

.subscription-price {
  font-size: 15px;
  margin-bottom: 16px;
}

.highlight {
  color: var(--accent-secondary);
  font-weight: 700;
}

.sub-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.sub-detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 6px;
}

.sub-detail-item .label {
  color: var(--text-secondary);
}

.sub-detail-item .value {
  font-weight: 500;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .25s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.auto-renew-card {
  margin-top: 14px;
}

.auto-renew-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.auto-renew-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.auto-renew-status {
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 10px;
}

.auto-renew-status .badge {
  font-weight: 700;
  color: var(--text-primary);
}

/* Alerts */
.alert-info {
  display: flex;
  gap: 10px;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.20);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 13px;
  color: #b3d7ff;
  margin-bottom: 16px;
  line-height: 1.4;
}

.alert-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent-secondary);
  margin-top: 2px;
}

.error-box {
  background: rgba(255, 23, 68, 0.12);
  border: 1px solid rgba(255, 23, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 13px;
  color: #ffb3b3;
  margin-top: 14px;
}

.success-box {
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 13px;
  color: #c2ffd6;
  margin-top: 14px;
}

.withdraw-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Rules list */
.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rules-list li {
  font-size: 13px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 18px;
  line-height: 1.4;
}

.rules-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent-color);
  font-weight: bold;
}

/* History Screen */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.history-item::before {
  content: "";
  width: 3px;
  align-self: stretch;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin-right: 10px;
}

.history-details {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.history-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c4d9ee;
  background: rgba(255, 255, 255, 0.03);
}

.history-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-type {
  font-weight: 600;
  font-size: 13px;
}

.history-date {
  font-size: 10px;
  color: var(--text-muted);
}

.history-amount-block {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-amount {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.history-status-badge {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  width: fit-content;
  margin-left: auto;
}

.history-status-badge.completed { background: rgba(0, 230, 118, 0.1); color: var(--status-active); }
.history-status-badge.pending { background: rgba(255, 196, 0, 0.1); color: var(--status-pending); }
.history-status-badge.processing { background: rgba(0, 122, 255, 0.12); color: var(--accent-secondary); }
.history-status-badge.failed { background: rgba(255, 23, 68, 0.1); color: var(--status-suspended); }
.history-status-badge.expired { background: rgba(117, 117, 117, 0.1); color: var(--status-inactive); }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Skeletons */
.skeleton-card {
  height: 70px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 75%);
  background-size: 200% 100%;
  animation: loading-skeleton 1.5s infinite;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

@keyframes loading-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-60px);
  width: 90%;
  max-width: 360px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 122, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: white;
  z-index: 99999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Badges for modals/accounts */
.badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
  display: inline-block;
}

.badge.active { background: rgba(0, 230, 118, 0.15); color: var(--status-active); }
.badge.pending_activation { background: rgba(255, 196, 0, 0.15); color: var(--status-pending); }
.badge.blocked { background: rgba(255, 23, 68, 0.15); color: var(--status-blocked); }
.badge.hidden { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }

/* INTERACTIVE MODALS STYLE */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 360px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 10px;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-primary);
  font-family: 'Outfit', monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.wallet-input:focus {
  outline: none;
  border-color: rgba(0, 122, 255, 0.5);
}

.wallet-validate-hint {
  font-size: 12px;
  margin: 8px 0 12px;
  min-height: 18px;
  color: var(--text-secondary);
}

.wallet-validate-hint--ok {
  color: var(--status-active);
}

.wallet-validate-hint--warn {
  color: var(--status-pending);
}

.wallet-validate-hint--error {
  color: var(--status-suspended);
}

.wallet-modal-summary {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#btn-confirm-withdraw-wallet {
  width: 100%;
}

.modal-close-btn i {
  width: 18px;
  height: 18px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-stat-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.modal-stat-label {
  color: var(--text-secondary);
}

.modal-stat-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.requisites-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.requisites-label {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.requisites-text {
  font-family: monospace;
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-all;
  color: white;
  line-height: 1.4;
}

/* Payment Spinner */
.spinner-glow {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0,122,255,0.15);
  border-left-color: var(--accent-color);
  border-radius: 50%;
  margin: 20px auto;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 15px rgba(0,122,255,0.1);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.processing-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
}

/* Success glow badge */
.success-icon-glow {
  color: var(--status-active);
  margin: 10px auto;
  display: flex;
  justify-content: center;
}

.success-icon-glow i {
  width: 54px;
  height: 54px;
}

.payment-success-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin-top: 4px;
}

.payment-modal-warning {
  background: rgba(255, 145, 0, 0.1);
  border: 1px solid rgba(255, 145, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 11px;
  color: #ffcc80;
  line-height: 1.4;
}

.payment-details-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0,0,0,0.25);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.pay-sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

/* DEV PANEL STYLING */
.dev-panel {
  position: absolute;
  right: 16px;
  bottom: 84px;
  z-index: 100000;
}

.dev-panel-toggle {
  background: #ff5722;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 11px;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,0.2);
}

.dev-panel-toggle i {
  width: 13px;
  height: 13px;
}

.dev-panel-content {
  display: none;
  background: rgba(15, 17, 26, 0.98);
  border: 1px solid #ff5722;
  border-radius: 12px;
  padding: 14px;
  width: 250px;
  margin-top: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.dev-panel.open .dev-panel-content {
  display: block;
}

.dev-panel-title {
  color: #ff5722;
  font-size: 13px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 87, 34, 0.2);
  padding-bottom: 4px;
  text-transform: uppercase;
}

.dev-section {
  background: rgba(255,255,255,0.02);
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.dev-label {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.dev-time-display {
  font-size: 10px;
  color: #ffab91;
  margin-bottom: 6px;
  line-height: 1.3;
  font-family: monospace;
}

.dev-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.dev-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
  padding: 5px;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
}

.dev-btn-danger {
  grid-column: span 2;
  background: rgba(244, 67, 54, 0.2);
  border-color: rgba(244, 67, 54, 0.3);
  color: #ff8a80;
}

.dev-btn-primary {
  width: 100%;
  background: rgba(255, 87, 34, 0.2);
  border: 1px solid rgba(255, 87, 34, 0.3);
  color: #ffab91;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.dev-btn-primary i {
  width: 12px;
  height: 12px;
}

.dev-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.dev-input-row {
  display: flex;
  gap: 4px;
}

.dev-input-row input {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  padding: 4px;
  border-radius: 4px;
  font-size: 10px;
}

.dev-input-row select {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  padding: 4px;
  border-radius: 4px;
  font-size: 10px;
}
.text-center { text-align: center; }

@media (max-width: 430px) {
  .app-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .total-balance {
    font-size: 30px;
  }
}

/* Info tab: rules link only (no long scrollable list in cabinet) */
#screen-rules .rules-info-card {
  overflow: visible;
  max-height: none;
}

.language-card {
  margin-bottom: 12px;
}

.language-select-row {
  margin-top: 10px;
}

.language-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
}

.language-select:focus {
  outline: none;
  border-color: rgba(0, 122, 255, 0.5);
}

#screen-rules .rules-open-link {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* Standalone rules page — normal page scroll, no inner slider/box */
.dashboard-plan-chip {
  margin-top: 10px;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.15);
  border: 1px solid rgba(0, 122, 255, 0.35);
  color: #9ed0ff;
}

/* Tariff picker */
.plan-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.plan-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.plan-option.active {
  border-color: rgba(0, 122, 255, 0.55);
  background: rgba(0, 122, 255, 0.12);
}

.plan-option-name {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.plan-option-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-secondary);
}

.plan-option-desc {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.plan-option-features {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  width: 100%;
  text-align: left;
}

.plan-option-features li {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
  margin-bottom: 3px;
}

.plan-option-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 10px;
  font-weight: 700;
}

.account-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.account-select-btn {
  justify-content: center;
}

.dashboard-stats-row {
  margin-top: 4px;
}

/* Главная: чуть компактнее, без лишней прокрутки */
#screen-dashboard {
  overflow-x: hidden;
}

#screen-dashboard .balance-card {
  padding: 14px;
  margin-bottom: 10px;
}

#screen-dashboard .total-balance {
  font-size: 28px;
  margin-bottom: 4px;
}

#screen-dashboard .sub-info {
  font-size: 12px;
}

#screen-dashboard .dashboard-plan-chip {
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 10px;
}

#screen-dashboard .accounts-header-row {
  margin: 8px 4px 6px;
}

#screen-dashboard .section-title {
  font-size: 15px;
}

#screen-dashboard .accounts-list {
  gap: 7px;
}

#screen-dashboard .account-card {
  padding: 10px 12px;
}

#screen-dashboard .currency-badge {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

#screen-dashboard .account-title {
  font-size: 13px;
}

#screen-dashboard .account-status-label {
  font-size: 11px;
}

#screen-dashboard .dashboard-stats-row {
  margin-top: 6px;
  gap: 8px;
}

#screen-dashboard .stat-card {
  padding: 10px;
  margin-bottom: 0;
}

#screen-dashboard .stat-value {
  font-size: 13px;
}

#screen-dashboard .card-label {
  font-size: 11px;
}

.app-container:has(#screen-dashboard.active) .app-header {
  margin-bottom: 12px;
}

/* Virtual payout card — сине-чёрный стиль, Mastercard */
.payout-virtual-card-wrap {
  width: 100%;
  margin: 8px 0 2px;
}

.payout-virtual-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  max-height: 188px;
  border-radius: 16px;
  background: linear-gradient(135deg, #04080f 0%, #0a1628 42%, #050810 100%);
  border: 1px solid rgba(0, 122, 255, 0.28);
  overflow: hidden;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 122, 255, 0.08);
}

.pvc-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}

.pvc-glow--blue {
  width: 130%;
  height: 50%;
  right: -32%;
  top: -18%;
  background: linear-gradient(
    120deg,
    transparent 28%,
    rgba(0, 122, 255, 0.55) 48%,
    rgba(0, 210, 255, 0.35) 68%,
    transparent 88%
  );
  opacity: 0.75;
  transform: rotate(-8deg);
}

.pvc-glow--blue-accent {
  width: 38%;
  height: 38%;
  left: -8%;
  top: -12%;
  background: radial-gradient(circle, rgba(0, 90, 200, 0.4), transparent 72%);
  opacity: 0.55;
}

.pvc-top {
  position: relative;
  z-index: 1;
}

.pvc-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.15);
}

.pvc-logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.pvc-number-block {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 4px 6px;
}

.pvc-number {
  margin: 0;
  width: 100%;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(15px, 4.2vw, 19px);
  font-weight: 600;
  letter-spacing: 0.11em;
  color: #e8f4ff;
  line-height: 1.3;
  word-break: break-word;
}

.pvc-reveal-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 122, 255, 0.35);
  border-radius: 8px;
  background: rgba(0, 20, 40, 0.55);
  color: #9ed0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.pvc-reveal-btn:hover {
  background: rgba(0, 122, 255, 0.22);
}

.pvc-reveal-btn:active {
  transform: scale(0.96);
}

.pvc-reveal-btn svg {
  width: 18px;
  height: 18px;
}

.pvc-field--cvv .pvc-value {
  letter-spacing: 0.12em;
}

.pvc-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.pvc-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.pvc-cardholder {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #e8f4ff;
  text-transform: uppercase;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pvc-cardholder[hidden] {
  display: none;
}

.pvc-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.pvc-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pvc-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.pvc-value {
  font-size: 13px;
  font-weight: 600;
  color: #e8f4ff;
  letter-spacing: 0.04em;
}

.pvc-network {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.pvc-mc {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-block;
}

.pvc-mc--red {
  background: #eb001b;
  margin-right: -12px;
  opacity: 0.95;
}

.pvc-mc--yellow {
  background: #f79e1b;
  opacity: 0.9;
}

.rules-page-body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.rules-page-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.rules-page-header {
  margin-bottom: 20px;
}

.rules-page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
}

.rules-page-back svg {
  width: 18px;
  height: 18px;
}

.rules-page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.rules-article {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rules-article p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
}

.rules-article p::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.rules-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 8px 0 0;
  padding: 0;
}

.rules-section-title::before {
  display: none;
}

.rules-article .rules-list {
  margin: 0;
  padding: 0 0 0 4px;
}
