@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0A0B14;
  color: #E8F1F9;
  min-height: 100vh;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0A0B14;
}
::-webkit-scrollbar-thumb {
  background: #3FF384;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2bc96a;
}

.container {
  max-width: 640px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.lang-switcher {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.lang-btn {
  background: rgba(232, 241, 249, 0.06);
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

.lang-btn:hover {
  opacity: 0.8;
  background: rgba(232, 241, 249, 0.1);
}

.lang-btn.active {
  border-color: #3FF384;
  opacity: 1;
  background: rgba(63, 243, 132, 0.08);
}

.lang-btn svg {
  display: block;
  border-radius: 2px;
}

.logo {
  max-width: 240px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Cards */
.card {
  background: #202134;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 16px;
  border: 1px solid rgba(63, 243, 132, 0.12);
}

.card h2 {
  margin-bottom: 16px;
  color: #E8F1F9;
  font-size: 1.25rem;
  font-weight: 700;
}

.card h3 {
  color: #E8F1F9;
  font-weight: 600;
}

.card p {
  color: rgba(232, 241, 249, 0.6);
  line-height: 1.6;
}

/* Instructions */
.instructions {
  margin-bottom: 20px;
}

.instructions p {
  margin-bottom: 10px;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(232, 241, 249, 0.6);
  line-height: 1.6;
  font-size: 0.95rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(63, 243, 132, 0.15);
  color: #3FF384;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-list li a {
  color: #3FF384;
  text-decoration: none;
  font-weight: 500;
}

.step-list li a:hover {
  text-decoration: underline;
}

.metamask-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(63, 243, 132, 0.08);
  border: 1px solid rgba(63, 243, 132, 0.2);
  border-radius: 6px;
  padding: 4px 10px;
  text-decoration: none;
  color: #3FF384;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.metamask-badge:hover {
  background: rgba(63, 243, 132, 0.15);
  border-color: rgba(63, 243, 132, 0.4);
  text-decoration: none;
}

.metamask-badge img {
  width: 18px;
  height: 18px;
}

.disclaimer {
  background: rgba(232, 241, 249, 0.04);
  border: 1px solid rgba(232, 241, 249, 0.1);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(232, 241, 249, 0.5);
  line-height: 1.6;
}

.disclaimer strong {
  color: rgba(232, 241, 249, 0.7);
  font-weight: 600;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #3FF384;
  color: #0A0B14;
}

.btn-primary:hover:not(:disabled) {
  background: #2bc96a;
}

.btn-primary:disabled {
  background: rgba(63, 243, 132, 0.3);
  color: rgba(10, 11, 20, 0.5);
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(232, 241, 249, 0.08);
  color: #E8F1F9;
  border: 1px solid rgba(232, 241, 249, 0.15);
}

.btn-secondary:hover {
  background: rgba(232, 241, 249, 0.12);
}

/* Social Login Buttons */
.login-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
}

.btn-social i {
  font-size: 1.1rem;
}

.btn-google {
  background: #4285f4;
}
.btn-google:hover {
  background: #357ae8;
}

.btn-discord {
  background: #5865f2;
}
.btn-discord:hover {
  background: #4752c4;
}

.btn-facebook {
  background: #1877f2;
}
.btn-facebook:hover {
  background: #0c63d4;
}

.btn-email {
  background: rgba(232, 241, 249, 0.1);
  color: #E8F1F9;
  border: 1px solid rgba(232, 241, 249, 0.15);
}
.btn-email:hover {
  background: rgba(232, 241, 249, 0.15);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 11, 20, 0.7);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #202134;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  border: 1px solid rgba(63, 243, 132, 0.15);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(232, 241, 249, 0.08);
}

.modal-header h3 {
  margin: 0;
  color: #E8F1F9;
  font-size: 1.1rem;
}

.modal-header .close-btn {
  color: rgba(232, 241, 249, 0.4);
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-header .close-btn:hover {
  color: #E8F1F9;
}

.modal-body {
  padding: 24px;
}

.modal-body .btn-primary {
  width: 100%;
}

/* Warning Modal */
.warning-text {
  color: rgba(232, 241, 249, 0.6);
  margin-bottom: 15px;
  line-height: 1.6;
}

.warning-text strong {
  color: #E8F1F9;
}

.warning-address {
  background: #0A0B14;
  padding: 14px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  color: #3FF384;
  word-break: break-all;
  margin: 15px 0;
  border: 1px solid rgba(63, 243, 132, 0.3);
  font-size: 0.9rem;
}

.warning-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.warning-actions .btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

#warning-modal .modal-header h3,
#svv-warning-modal .modal-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fbbf24;
}

#warning-modal .modal-header i,
#svv-warning-modal .modal-header i {
  font-size: 1.3rem;
}

/* Wallet Info */
.wallet-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wallet-address-section p {
  font-size: 0.9rem;
  margin: 0;
}

#wallet-address {
  font-family: 'JetBrains Mono', monospace;
  color: #3FF384;
  font-weight: 600;
  word-break: break-all;
  font-size: 0.85rem;
}

.wallet-info strong {
  color: #E8F1F9;
}

.btn-copy {
  background: none;
  border: 1px solid rgba(63, 243, 132, 0.25);
  border-radius: 6px;
  color: #3FF384;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: 8px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.btn-copy:hover {
  background: rgba(63, 243, 132, 0.1);
  border-color: #3FF384;
}

.wallet-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wallet-actions .btn {
  flex: 1;
  min-width: 140px;
}

/* Loading */
.loading {
  text-align: center;
  padding: 40px;
}

.loading p {
  color: rgba(232, 241, 249, 0.5);
}

.spinner {
  border: 3px solid rgba(63, 243, 132, 0.15);
  border-top: 3px solid #3FF384;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

/* Assets Table */
#assets-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

#assets-table th,
#assets-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(232, 241, 249, 0.06);
}

#assets-table th {
  background: rgba(10, 11, 20, 0.5);
  font-weight: 600;
  color: rgba(232, 241, 249, 0.6);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#assets-table td {
  color: rgba(232, 241, 249, 0.8);
  font-size: 0.95rem;
}

#assets-table tr:hover {
  background: rgba(63, 243, 132, 0.03);
}

#assets-table th:first-child,
#assets-table td:first-child {
  width: 70px;
  text-align: center;
}

.non-transferable-label {
  color: rgba(232, 241, 249, 0.35);
  font-size: 0.75rem;
  font-style: italic;
}

.svv-info-icon {
  cursor: help;
  color: #3FF384;
  font-style: normal;
  margin-left: 4px;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: rgba(232, 241, 249, 0.6);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.input-field {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(232, 241, 249, 0.12);
  border-radius: 8px;
  font-family: 'JetBrains Mono', 'Inter', monospace;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
  background: #0A0B14;
  color: #E8F1F9;
}

.input-field:focus {
  outline: none;
  border-color: #3FF384;
  box-shadow: 0 0 0 2px rgba(63, 243, 132, 0.15);
}

.input-field::placeholder {
  color: rgba(232, 241, 249, 0.25);
}

.error-message {
  color: #f87171;
  font-size: 0.85rem;
  margin-top: 6px;
  display: block;
}

/* Checkbox */
.asset-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3FF384;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: rgba(232, 241, 249, 0.6);
  font-size: 0.9rem;
}

.toggle-label:hover {
  color: #E8F1F9;
}

.helper-text {
  display: block;
  color: rgba(232, 241, 249, 0.35);
  font-size: 0.8rem;
  margin-top: 5px;
}

/* Progress */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(232, 241, 249, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-fill {
  height: 100%;
  background: #3FF384;
  transition: width 0.3s ease;
  width: 0%;
  border-radius: 4px;
}

#progress-text {
  text-align: center;
  color: rgba(232, 241, 249, 0.6);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* Transfer Results */
.transfer-result {
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.transfer-result.success {
  background: rgba(63, 243, 132, 0.1);
  border: 1px solid rgba(63, 243, 132, 0.25);
  color: #3FF384;
}

.transfer-result.failed {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #f87171;
}

.transfer-result.pending {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fbbf24;
}

.tx-link {
  color: #3FF384;
  text-decoration: none;
  font-weight: 600;
}

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

/* Error Banner */
.error-banner {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: rgba(232, 241, 249, 0.4);
}

.close-btn:hover {
  color: #E8F1F9;
}

/* Empty State */
#empty-assets,
#empty-names {
  text-align: center;
  padding: 32px;
  color: rgba(232, 241, 249, 0.35);
}

/* Asset Subsections */
.asset-subsection {
  margin-bottom: 24px;
}

.asset-subsection h3 {
  color: rgba(232, 241, 249, 0.6);
  margin-bottom: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Names Grid */
.names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.name-card {
  background: rgba(10, 11, 20, 0.5);
  border: 1px solid rgba(63, 243, 132, 0.12);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.name-card:hover {
  border-color: rgba(63, 243, 132, 0.35);
}

.name-text {
  color: #E8F1F9;
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .logo {
    max-width: 180px;
  }

  .card {
    padding: 20px;
  }

  .wallet-actions {
    flex-direction: column;
  }

  .wallet-actions .btn {
    width: 100%;
  }

  #assets-table {
    font-size: 0.85rem;
  }

  .login-buttons {
    grid-template-columns: 1fr;
  }

  .btn-social {
    font-size: 0.9rem;
    padding: 12px 20px;
  }

  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .names-grid {
    grid-template-columns: 1fr;
  }

  .warning-actions {
    flex-direction: column;
  }
}
