/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #1e293b;
  line-height: 1.5;
}

/* ===== КАСТОМНЫЙ СКРОЛЛБАР ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #0066ff;
  border-radius: 10px;
  border: 2px solid #f1f5f9;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: #0052cc;
}

::-webkit-scrollbar-thumb:active {
  background: #003d99;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #0066ff #f1f5f9;
}

body {
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  padding: 20px 0;
  border-bottom: 1px solid #eef2f6;
  background: #ffffff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.3px;
  color: #0b2b4a;
  text-decoration: none;
  cursor: pointer;
}

.logo i {
  font-size: 30px;
  color: #0066ff;
  background: #e6f0ff;
  padding: 8px;
  border-radius: 16px;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-weight: 500;
  color: #334155;
}

.nav-links a {
  text-decoration: none;
  color: #334155;
  transition: color 0.2s;
  font-size: 16px;
}

.nav-links a:hover {
  color: #0066ff;
}

.nav-links a.active {
  color: #0066ff;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn-outline {
  background: transparent;
  border: 1px solid #d0d9e8;
  padding: 10px 20px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  color: #1e293b;
  cursor: pointer;
  transition: 0.2s;
}

.btn-outline:hover {
  border-color: #0066ff;
  color: #0066ff;
  background: #f5f9ff;
}

.btn-primary {
  background: #0066ff;
  border: none;
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 10px rgba(0, 102, 255, 0.25);
}

.btn-primary:hover {
  background: #0052cc;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
  background: #f1f5f9;
  border: none;
  color: #1e293b;
  transition: 0.2s;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-large {
  padding: 14px 36px;
  font-size: 16px;
  border-radius: 60px;
}

/* Hero */
.hero {
  padding: 60px 0 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.hero-content {
  flex: 1 1 400px;
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #0b2b4a;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: #0066ff;
  background: linear-gradient(145deg, #0066ff, #3399ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 18px;
  color: #475569;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #0b2b4a;
}

.stat-label {
  font-size: 14px;
  color: #64748b;
}

.hero-visual {
  flex: 1 1 340px;
  background: #f8faff;
  border-radius: 48px;
  padding: 32px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
  border: 1px solid #eef2f6;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.02);
}

/* Card preview */
.card-preview {
  background: white;
  border-radius: 28px;
  padding: 28px 24px;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 16px 40px rgba(0, 102, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid #f0f4fe;
}

.card-preview .card-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.card-preview .card-type span {
  font-weight: 600;
  font-size: 14px;
  color: #334155;
  letter-spacing: 1px;
}

.card-preview .card-type i {
  font-size: 28px;
  color: #0066ff;
}

.card-preview .card-number {
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #0b2b4a;
  margin-bottom: 20px;
}

.card-preview .card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
}

.card-preview .card-footer strong {
  color: #0b2b4a;
}

/* Features */
.features {
  padding: 48px 0 64px;
  border-top: 1px solid #f1f5f9;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #0b2b4a;
  text-align: center;
  margin-bottom: 16px;
}

.section-sub {
  text-align: center;
  color: #64748b;
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 17px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.feature-card {
  background: #fafcff;
  padding: 32px 20px;
  border-radius: 32px;
  border: 1px solid #eef2f6;
  transition: 0.2s;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: #c7d9ff;
  box-shadow: 0 12px 28px rgba(0, 102, 255, 0.04);
}

.feature-card i {
  font-size: 36px;
  color: #0066ff;
  background: #e6f0ff;
  padding: 16px;
  border-radius: 24px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #0b2b4a;
}

.feature-card p {
  color: #475569;
  font-size: 15px;
}

/* CTA */
.cta-section {
  background: #f6faff;
  border-radius: 48px;
  padding: 48px 40px;
  margin: 20px 0 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #e7efff;
}

.cta-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: #0b2b4a;
  margin-bottom: 6px;
}

.cta-text p {
  color: #475569;
  font-size: 16px;
}

.cta-btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  border-top: 1px solid #eef2f6;
  padding: 32px 0 28px;
  color: #64748b;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  text-decoration: none;
  color: #475569;
  transition: 0.2s;
}

.footer-links a:hover {
  color: #0066ff;
}

.footer-social i {
  font-size: 20px;
  margin-left: 16px;
  color: #94a3b8;
  transition: 0.2s;
}

.footer-social i:hover {
  color: #0066ff;
}

/* ===== СТРАНИЦЫ АВТОРИЗАЦИИ ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f6faff 0%, #ffffff 100%);
}

.auth-container {
  background: #ffffff;
  border-radius: 32px;
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef2f6;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 24px;
  color: #0b2b4a;
  text-decoration: none;
  margin-bottom: 8px;
}

.auth-logo i {
  font-size: 28px;
  color: #0066ff;
  background: #e6f0ff;
  padding: 6px 8px;
  border-radius: 14px;
}

.auth-subtitle {
  color: #64748b;
  font-size: 16px;
  margin-top: 4px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: #0b2b4a;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i:first-child {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 16px;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 44px 12px 44px;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: 0.2s;
  background: #fafcff;
  color: #1e293b;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #0066ff;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.08);
}

.input-wrapper input::placeholder {
  color: #94a3b8;
}

.input-wrapper .toggle-password {
  position: absolute;
  right: 14px;
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s;
}

.input-wrapper .toggle-password:hover {
  color: #0066ff;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0066ff;
  cursor: pointer;
}

.forgot-link {
  color: #0066ff;
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

.terms-link {
  color: #0066ff;
  text-decoration: none;
}

.terms-link:hover {
  text-decoration: underline;
}

.auth-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 60px;
  margin-top: 8px;
}

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: #64748b;
  margin-top: 8px;
}

.auth-switch a {
  color: #0066ff;
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: modalFadeIn 0.25s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: 32px;
  padding: 48px 40px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.15);
  animation: modalSlideUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-icon {
  width: 72px;
  height: 72px;
  background: #fef2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-icon i {
  font-size: 36px;
  color: #dc2626;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #0b2b4a;
  margin-bottom: 12px;
}

.modal-message {
  font-size: 16px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 28px;
}

.modal-btn {
  background: #0066ff;
  border: none;
  padding: 12px 40px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.modal-btn:hover {
  background: #0052cc;
  transform: scale(1.02);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive */
@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .header-actions {
    justify-content: center;
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .hero-stats {
    gap: 24px;
  }
  .cta-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .auth-container {
    padding: 32px 24px;
  }
  .modal-box {
    padding: 32px 24px 28px;
  }
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
}

/* Добавьте в конец файла style.css */

/* ===== ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ ===== */
.profile-page {
  padding: 40px 0 60px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px;
  background: #fafcff;
  border-radius: 32px;
  border: 1px solid #eef2f6;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  background: #e6f0ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-avatar i {
  font-size: 64px;
  color: #0066ff;
}

.profile-user-info {
  flex: 1;
}

.profile-user-info h1 {
  font-size: 32px;
  font-weight: 700;
  color: #0b2b4a;
  margin-bottom: 4px;
}

.profile-email {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 8px;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e6f0ff;
  padding: 4px 14px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  color: #0066ff;
}

.profile-badge i {
  font-size: 14px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.profile-stat-card {
  background: #ffffff;
  padding: 20px 24px;
  border-radius: 20px;
  border: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: 0.2s;
}

.profile-stat-card:hover {
  border-color: #c7d9ff;
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.04);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i {
  font-size: 22px;
  color: #0066ff;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #0b2b4a;
}

.stat-label {
  font-size: 14px;
  color: #64748b;
}

.profile-settings {
  background: #ffffff;
  padding: 40px;
  border-radius: 32px;
  border: 1px solid #eef2f6;
  margin-bottom: 32px;
}

.profile-settings .section-title {
  font-size: 24px;
  text-align: left;
  margin-bottom: 24px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.profile-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-form .form-group label {
  font-weight: 600;
  font-size: 14px;
  color: #0b2b4a;
}

.profile-form .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-form .input-wrapper i:first-child {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 16px;
  z-index: 1;
}

.profile-form .input-wrapper input,
.profile-form .input-wrapper textarea {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: 0.2s;
  background: #fafcff;
  color: #1e293b;
}

.profile-form .input-wrapper textarea {
  padding: 12px 16px 12px 44px;
  resize: vertical;
  min-height: 80px;
}

.profile-form .input-wrapper input:focus,
.profile-form .input-wrapper textarea:focus {
  outline: none;
  border-color: #0066ff;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.08);
}

.profile-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.profile-actions .btn-secondary {
  padding: 12px 28px;
  border-radius: 60px;
  font-weight: 600;
}

.profile-danger-zone {
  background: #fef2f2;
  padding: 32px 40px;
  border-radius: 32px;
  border: 1px solid #fecaca;
}

.profile-danger-zone h3 {
  font-size: 18px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 8px;
}

.profile-danger-zone h3 i {
  margin-right: 8px;
}

.profile-danger-zone p {
  color: #475569;
  font-size: 14px;
  margin-bottom: 16px;
}

.btn-danger {
  background: #dc2626;
  border: none;
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  cursor: pointer;
  transition: 0.2s;
}

.btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Адаптив для профиля */
@media (max-width: 700px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  
  .profile-user-info h1 {
    font-size: 24px;
  }
  
  .profile-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .profile-settings {
    padding: 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .profile-actions {
    flex-direction: column;
  }
  
  .profile-actions .btn-primary,
  .profile-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .profile-danger-zone {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .profile-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Добавьте в конец файла style.css */

/* ===== ПРОФИЛЬ - НОВАЯ СТРУКТУРА ===== */
.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  padding: 40px 0 60px;
  align-items: start;
}

/* ---- ЛЕВАЯ КОЛОНКА - ПРОФИЛЬ ---- */
.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card {
  background: #ffffff;
  border-radius: 32px;
  padding: 32px 24px;
  border: 1px solid #eef2f6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.profile-card .profile-avatar {
  width: 80px;
  height: 80px;
  background: #e6f0ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.profile-card .profile-avatar i {
  font-size: 48px;
  color: #0066ff;
}

.profile-card h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #0b2b4a;
  margin-bottom: 4px;
}

.profile-card .profile-email {
  text-align: center;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 12px;
}

.profile-card .profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e6f0ff;
  padding: 4px 14px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  color: #0066ff;
  margin: 0 auto 20px;
  justify-content: center;
}

.profile-divider {
  height: 1px;
  background: #eef2f6;
  margin: 16px 0;
}

.profile-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}

.profile-info-item i {
  color: #0066ff;
  font-size: 16px;
  margin-top: 2px;
  width: 20px;
  flex-shrink: 0;
}

.profile-info-item > div {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.profile-info-item .info-label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-info-item .info-value {
  font-size: 14px;
  color: #0b2b4a;
  font-weight: 500;
  word-break: break-word;
}

.profile-edit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.profile-danger-zone {
  background: #fef2f2;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid #fecaca;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-danger-zone h4 {
  font-size: 14px;
  font-weight: 600;
  color: #dc2626;
}

.profile-danger-zone h4 i {
  margin-right: 6px;
}

.btn-danger.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 40px;
}

/* ---- ПРАВАЯ КОЛОНКА - КАРТОЧКИ ---- */
.profile-cards-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Регистрация карты */
.card-registration {
  background: linear-gradient(135deg, #f6faff 0%, #ffffff 100%);
  border-radius: 32px;
  padding: 32px 40px;
  border: 2px dashed #c7d9ff;
  text-align: center;
}

.card-registration h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0b2b4a;
  margin-bottom: 8px;
}

.card-registration h3 i {
  color: #0066ff;
  margin-right: 8px;
}

.card-registration p {
  color: #64748b;
  margin-bottom: 20px;
  font-size: 15px;
}

.card-registration .btn-primary i {
  margin-right: 8px;
}

/* Контейнер с карточкой */
.cards-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Карточка */
.card-item {
  background: linear-gradient(135deg, #0b2b4a 0%, #1a3a5c 100%);
  border-radius: 32px;
  padding: 32px 36px;
  color: #ffffff;
  box-shadow: 0 12px 40px rgba(11, 43, 74, 0.25);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.card-type-label {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}

.card-header i {
  font-size: 32px;
  opacity: 0.8;
}

.card-number-display {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 3px;
  font-family: 'Courier New', monospace;
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.card-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-detail .detail-label {
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.6;
  letter-spacing: 0.5px;
}

.card-detail .detail-value {
  font-size: 16px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

/* Финансовый блок */
.finance-block {
  background: #ffffff;
  border-radius: 32px;
  padding: 32px 36px;
  border: 1px solid #eef2f6;
}

.finance-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.finance-item {
  padding: 16px 20px;
  border-radius: 20px;
  background: #f8faff;
  border: 1px solid #eef2f6;
}

.finance-item.total {
  background: #e6f0ff;
  border-color: #0066ff;
}

.finance-item.total .finance-value {
  color: #0066ff;
}

.finance-item.income .finance-label i {
  color: #16a34a;
}

.finance-item.expense .finance-label i {
  color: #dc2626;
}

.finance-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 4px;
}

.finance-value {
  font-size: 24px;
  font-weight: 700;
  color: #0b2b4a;
}

/* Финансовые действия */
.finance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.finance-action-group h4 {
  font-size: 14px;
  font-weight: 600;
  color: #0b2b4a;
  margin-bottom: 10px;
}

.action-input-group {
  display: flex;
  gap: 10px;
}

.action-input-group input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: 0.2s;
}

.action-input-group input:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.08);
}

.action-input-group .btn-sm {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 16px;
  white-space: nowrap;
}

/* История транзакций */
.transaction-history h4 {
  font-size: 16px;
  font-weight: 600;
  color: #0b2b4a;
  margin-bottom: 12px;
}

.transaction-history h4 i {
  color: #0066ff;
  margin-right: 6px;
}

.transaction-list {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
}

.transaction-list::-webkit-scrollbar {
  width: 4px;
}

.transaction-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.transaction-list::-webkit-scrollbar-thumb {
  background: #0066ff;
  border-radius: 10px;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fafcff;
  margin-bottom: 6px;
  border: 1px solid #f1f5f9;
  transition: 0.2s;
}

.transaction-item:hover {
  background: #f1f5f9;
}

.transaction-item .tx-info {
  display: flex;
  flex-direction: column;
}

.transaction-item .tx-type {
  font-size: 14px;
  font-weight: 500;
  color: #0b2b4a;
}

.transaction-item .tx-date {
  font-size: 12px;
  color: #94a3b8;
}

.transaction-item .tx-amount {
  font-size: 16px;
  font-weight: 700;
}

.transaction-item .tx-amount.income {
  color: #16a34a;
}

.transaction-item .tx-amount.expense {
  color: #dc2626;
}

.empty-transactions {
  text-align: center;
  color: #94a3b8;
  padding: 20px 0;
  font-size: 14px;
}

/* Адаптив */
@media (max-width: 1024px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  
  .profile-sidebar {
    order: 2;
  }
  
  .profile-cards-area {
    order: 1;
  }
}

@media (max-width: 768px) {
  .finance-stats {
    grid-template-columns: 1fr;
  }
  
  .finance-actions {
    grid-template-columns: 1fr;
  }
  
  .card-details {
    grid-template-columns: 1fr 1fr;
  }
  
  .card-item {
    padding: 24px 20px;
  }
  
  .card-number-display {
    font-size: 20px;
    letter-spacing: 2px;
  }
  
  .finance-block {
    padding: 24px 20px;
  }
  
  .card-registration {
    padding: 24px 20px;
  }
  
  .action-input-group {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .card-details {
    grid-template-columns: 1fr;
  }
}

/* Добавьте в конец файла style.css */

/* ===== ФОРМА РЕГИСТРАЦИИ КАРТЫ ===== */
.card-registration-form {
  text-align: left;
  margin-top: 20px;
}

.card-registration-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.card-registration-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-registration-form .form-group label {
  font-weight: 600;
  font-size: 14px;
  color: #0b2b4a;
}

.card-registration-form .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.card-registration-form .input-wrapper i {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 16px;
  z-index: 1;
}

.card-registration-form .input-wrapper select {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: #fafcff;
  color: #1e293b;
  appearance: none;
  cursor: pointer;
  transition: 0.2s;
}

.card-registration-form .input-wrapper select:focus {
  outline: none;
  border-color: #0066ff;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.08);
}

.card-registration-form .input-wrapper select option {
  padding: 8px;
}

.card-registration-form .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 14px;
}

/* Карточка - дополнительная информация */
.card-extra-info {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
  opacity: 0.8;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.card-extra-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Блок "Списать средства" - disabled */
.finance-action-group.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.badge-disabled {
  font-size: 11px;
  background: #f1f5f9;
  color: #94a3b8;
  padding: 2px 10px;
  border-radius: 40px;
  font-weight: 500;
  margin-left: 6px;
}

/* Адаптив для формы */
@media (max-width: 768px) {
  .card-registration-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .card-extra-info {
    flex-direction: column;
    gap: 4px;
  }
}

/* Добавьте в конец файла style.css */

/* ===== CVV2 СКРЫТИЕ И ПОКАЗ ===== */
.cvv-container {
  position: relative;
}

.cvv-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cvv-hidden {
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

.cvv-toggle-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 4px 10px;
  color: #ffffff;
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cvv-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.cvv-toggle-btn:active {
  transform: scale(0.95);
}

.cvv-toggle-btn i {
  font-size: 14px;
}

/* Адаптив для CVV */
@media (max-width: 480px) {
  .cvv-toggle-btn {
    padding: 3px 8px;
    font-size: 12px;
  }
  
  .cvv-toggle-btn i {
    font-size: 12px;
  }
}

/* Добавьте в конец файла style.css */

/* ===== ДЕЙСТВИЯ С КАРТОЙ ===== */
.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.card-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  color: #1e293b;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
  font-family: 'Inter', sans-serif;
}

.card-action-btn:hover {
  border-color: #0066ff;
  color: #0066ff;
  background: #f5f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.08);
}

.card-action-btn.primary {
  background: #0066ff;
  border-color: #0066ff;
  color: #ffffff;
}

.card-action-btn.primary:hover {
  background: #0052cc;
  border-color: #0052cc;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

.card-action-btn i {
  font-size: 16px;
}

/* Стили для формы перевода в модалке */
#transferForm .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#transferForm .input-wrapper i {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 16px;
  z-index: 1;
}

#transferForm .input-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: 0.2s;
  background: #fafcff;
  color: #1e293b;
}

#transferForm .input-wrapper input:focus {
  outline: none;
  border-color: #0066ff;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.08);
}

/* Адаптив для действий */
@media (max-width: 700px) {
  .card-actions {
    flex-direction: column;
  }
  
  .card-action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Добавьте в конец файла style.css */

/* ===== АДМИН-ПАНЕЛЬ ===== */
.admin-user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.admin-user-list::-webkit-scrollbar {
  width: 4px;
}

.admin-user-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.admin-user-list::-webkit-scrollbar-thumb {
  background: #0066ff;
  border-radius: 10px;
}

.admin-user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8faff;
  border-radius: 16px;
  border: 1px solid #eef2f6;
  transition: 0.2s;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-user-item:hover {
  border-color: #c7d9ff;
  background: #f5f9ff;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-user-info strong {
  color: #0b2b4a;
  font-size: 15px;
}

.admin-user-email {
  color: #64748b;
  font-size: 13px;
}

.admin-user-status {
  font-size: 13px;
  font-weight: 500;
}

.admin-user-status.online {
  color: #16a34a;
}

.admin-user-status.offline {
  color: #94a3b8;
}

.admin-user-balance {
  font-size: 14px;
  font-weight: 600;
  color: #0b2b4a;
  background: #e6f0ff;
  padding: 2px 12px;
  border-radius: 40px;
}

.admin-user-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-btn-small {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #eef2f6;
  color: #1e293b;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.admin-btn-small:hover {
  background: #d0d9e8;
  transform: scale(1.05);
}

.admin-btn-small.danger:hover {
  background: #fecaca;
  color: #dc2626;
}

.admin-btn-small i {
  font-size: 13px;
}

/* Адаптив для админ-панели */
@media (max-width: 700px) {
  .admin-user-item {
    flex-direction: column;
    align-items: stretch;
  }
  
  .admin-user-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .admin-user-actions {
    justify-content: flex-start;
    margin-top: 4px;
  }
}

/* Стили для бейджа админа */
.profile-badge.admin {
  background: #fef3c7 !important;
  border: 1px solid #f59e0b !important;
  color: #f59e0b !important;
}

.profile-badge.admin i {
  color: #f59e0b !important;
}

.profile-badge.admin span {
  color: #f59e0b !important;
}