/* Payment modal */
.payment-modal {
  max-width: 440px;
}

.payment-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.payment-amount strong {
  font-size: 24px;
  font-weight: 800;
  color: #059669;
}

.pay-choose-label {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 12px;
  font-weight: 500;
}

.payment-methods {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.payment-methods--banks {
  gap: 12px;
}

.pay-method {
  flex: 1;
  padding: 12px 10px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.pay-method:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.pay-method--kaspi.active {
  border-color: #f14635;
  background: linear-gradient(135deg, #fff5f4, #ffe4e1);
}

.pay-method--halyk.active {
  border-color: #008055;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.pay-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: white;
}

.pay-brand-logo--kaspi {
  background: linear-gradient(135deg, #f14635, #d63b2c);
}

.pay-brand-logo--halyk {
  background: linear-gradient(135deg, #008055, #006644);
}

.pay-brand-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
}

.pay-brand-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.bank-qr-placeholder {
  text-align: center;
  padding: 28px 20px;
  border-radius: 12px;
  margin-top: 4px;
}

.pay-panel--kaspi {
  background: #fff8f7;
  border: 1px dashed #fecaca;
}

.pay-panel--halyk {
  background: #f0fdf9;
  border: 1px dashed #a7f3d0;
}

.bank-qr-placeholder .icon {
  margin: 0 auto 12px;
  opacity: 0.5;
}

.bank-qr-placeholder p {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
}

.bank-methods-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .bank-methods-banner { grid-template-columns: 1fr; }
}

.bank-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
}

.bank-banner--kaspi {
  border-color: #fecaca;
}

.bank-banner--halyk {
  border-color: #a7f3d0;
}

.bank-banner strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.bank-banner p {
  font-size: 12px;
  color: var(--muted);
}

.bank-method-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.bank-method-cell--kaspi .icon { color: #f14635; }
.bank-method-cell--halyk .icon { color: #008055; }

.pay-panel.hidden {
  display: none;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 12px;
  color: #166534;
  margin-bottom: 16px;
}

.secure-badge .icon {
  color: #16a34a;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-error {
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
  display: none;
}

.payment-error.visible {
  display: block;
}

.test-cards-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--slate);
}

.test-cards-hint summary {
  cursor: pointer;
  font-weight: 600;
}

.test-cards-hint code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.pay-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  color: var(--slate);
}

.payment-overlay .modal-footer .btn-green {
  flex: 1;
}

/* Profile */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
}

.profile-card {
  padding: 28px;
}

.profile-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.profile-header h2 {
  font-size: 20px;
  margin-bottom: 4px;
}

.profile-email {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.profile-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  margin-bottom: 16px;
}

.security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #166534;
  background: #f0fdf4;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.avatar-colors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.color-dot:hover {
  transform: scale(1.1);
}

.color-dot.active {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--navy);
}

.input-readonly {
  background: #f8fafc;
  color: var(--muted);
  cursor: not-allowed;
}

.field-hint {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.pwd-strength {
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

.pwd-strength--weak { color: #dc2626; }
.pwd-strength--medium { color: #d97706; }
.pwd-strength--strong { color: #059669; }

/* Payments hub */
.payment-test-info {
  padding: 20px;
  margin-bottom: 16px;
}

.payment-test-info h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}

.test-cards-grid {
  display: grid;
  gap: 10px;
}

.test-cards-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
}

.test-cards-grid code {
  font-size: 13px;
}

.secure-stat {
  display: flex;
  align-items: center;
  gap: 14px;
}

.secure-stat .icon {
  color: var(--green-dark);
  flex-shrink: 0;
}

.secure-stat p {
  font-size: 12px;
  color: var(--slate);
  margin-top: 4px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  cursor: pointer;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.badge-red {
  background: #fee2e2;
  color: #dc2626;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 800px) {
  .settings-grid { grid-template-columns: 1fr; }
}

.settings-card {
  padding: 24px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
  font-weight: 600;
  font-size: 14px;
}

.link-btn:hover {
  text-decoration: underline;
}

.btn-danger {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border-color: #fecaca !important;
}

.btn-danger:hover {
  background: #fee2e2 !important;
}
