@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: rgba(30, 41, 59, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --accent: #0891b2;
  --accent-hover: #0e7490;
  --accent-glow: rgba(8, 145, 178, 0.25);
  --accent-soft: rgba(8, 145, 178, 0.12);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.15);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.15);
  --yellow: #eab308;
  --white: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #1e293b;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== MAIN ===== */
.main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

/* ===== HIDDEN UTILITY ===== */
.hidden {
  display: none !important;
}

/* ===== CREATE SECTION ===== */
.create-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 400px;
}

.create-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.5s var(--ease-out);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.create-header {
  text-align: center;
  margin-bottom: 32px;
}

.create-icon {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  filter: drop-shadow(0 8px 24px var(--accent-glow));
}

.create-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.create-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.create-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.create-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-row {
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.input-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-row .input-field {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  min-width: 0;
}

.input-row .input-field::placeholder {
  color: var(--text-muted);
}

.input-at {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 2px;
  flex-shrink: 0;
}

.input-row .domain-select {
  padding: 14px 32px 14px 8px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  max-width: 200px;
}

.input-row .domain-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ===== BUTTONS ===== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  color: white;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 10px 25px -5px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.82rem;
  width: auto;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-primary);
}

.btn-small:hover {
  background: var(--bg-glass-hover);
}

.create-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 4px 0;
}

.create-divider::before,
.create-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== ADDRESS BAR ===== */
.address-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  margin-bottom: 16px;
}

.address-info {
  min-width: 0;
  flex: 1;
}

.address-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.address-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  word-break: break-all;
}

.address-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.icon-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.icon-btn.copied {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
}

.icon-btn-danger:hover {
  background: var(--red-soft);
  border-color: var(--red);
  color: var(--red);
}

.icon-btn-new:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== SPLIT PANE ===== */
.split-pane {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  flex: 1;
  min-height: 500px;
}

/* ===== LIST PANEL ===== */
.list-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
  animation: fadeInUp 0.5s var(--ease-out);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.panel-header h2 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.auto-refresh-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.list-content {
  flex: 1;
  overflow-y: auto;
}

/* Skeleton loading */
.skeleton-list {
  padding: 8px;
}

.skeleton-item {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.skeleton-line {
  background: linear-gradient(90deg, var(--bg-glass) 25%, var(--bg-glass-hover) 50%, var(--bg-glass) 75%);
  background-size: 200% 100%;
  animation: shimmer 1s infinite linear;
  border-radius: 6px;
}

.skeleton-line.w80 {
  width: 80%;
}

.skeleton-line.w70 {
  width: 70%;
}

.skeleton-line.w60 {
  width: 60%;
}

.skeleton-line.w50 {
  width: 50%;
}

.skeleton-line.w40 {
  width: 40%;
}

.skeleton-line.w30 {
  width: 30%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  gap: 12px;
}

.empty-state p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.empty-state span {
  font-size: 0.78rem;
}

/* Error state */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  gap: 12px;
}

.error-msg {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 500;
}

/* Message items */
.message-item {
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 1px solid var(--border);
  position: relative;
  animation: slideInRight 0.4s var(--ease-out) backwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.message-item:nth-child(1) {
  animation-delay: 0.05s;
}

.message-item:nth-child(2) {
  animation-delay: 0.1s;
}

.message-item:nth-child(3) {
  animation-delay: 0.15s;
}

.message-item:nth-child(4) {
  animation-delay: 0.2s;
}

.message-item:nth-child(5) {
  animation-delay: 0.25s;
}

.message-item:hover {
  background: var(--bg-glass-hover);
}

.message-item.active {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}

.message-item.unread {
  background: rgba(8, 145, 178, 0.04);
}

.message-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.message-item.unread .msg-subject {
  font-weight: 700;
  color: var(--text-primary);
}

.msg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.msg-from {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.msg-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
}

.msg-subject {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-snippet {
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== DETAIL PANEL ===== */
.detail-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
  position: relative;
  animation: fadeInUp 0.5s var(--ease-out) 0.1s backwards;
}

.detail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 16px;
  color: var(--text-muted);
  padding: 40px;
  text-align: center;
}

.detail-placeholder p {
  font-size: 0.9rem;
}

.detail-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 16px;
  padding: 40px;
}

.detail-loading p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s cubic-bezier(0.6, 0.2, 0.4, 0.9) infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.detail-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
  padding: 40px;
  text-align: center;
}

.detail-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.detail-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.detail-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.4;
  color: var(--text-primary);
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}

.meta-label {
  color: var(--text-muted);
  min-width: 50px;
  font-weight: 500;
}

.meta-value {
  color: var(--text-secondary);
  word-break: break-all;
}

.detail-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
  word-break: break-word;
}

.detail-body a {
  color: var(--accent);
  text-decoration: underline;
}

.detail-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
}

.detail-body table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

.back-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10;
}

.back-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  color: var(--text-primary);
  animation: toastIn 0.3s ease-out;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-success {
  border-left: 3px solid var(--green);
}

.toast-error {
  border-left: 3px solid var(--red);
}

.toast-out {
  animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 14px 16px;
  }

  .main {
    padding: 16px;
  }

  .create-card {
    padding: 28px 20px;
  }

  .create-header h1 {
    font-size: 1.3rem;
  }

  .split-pane {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .detail-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    border-radius: 0;
    border: none;
  }

  .detail-panel.mobile-show {
    display: flex;
  }

  .back-btn {
    display: flex !important;
  }

  .address-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .address-actions {
    justify-content: flex-end;
  }

  .list-panel {
    min-height: 300px;
  }

  .input-row {
    flex-direction: column;
  }

  .input-row .domain-select {
    border-left: none;
    border-top: 1px solid var(--border);
    max-width: none;
    padding: 12px 32px 12px 16px;
  }

  .input-at {
    display: none;
  }

  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .toast {
    max-width: none;
  }
}

@media (min-width: 769px) {
  .back-btn {
    display: none !important;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ===== STANDALONE INPUT FIELD (password inputs, modal inputs) ===== */
.input-field {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-field::placeholder {
  color: var(--text-muted);
}

.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ===== PASSWORD SECTION ===== */
.password-section {
  margin-top: 4px;
}

.password-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.password-toggle:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.password-toggle .chevron {
  margin-left: auto;
  transition: transform var(--transition);
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 0;
  animation: slideDown 0.2s ease;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap .input-field {
  padding-right: 40px;
}

.toggle-vis {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.toggle-vis:hover {
  color: var(--text-primary);
}

.password-info {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--yellow);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.15);
  line-height: 1.4;
}

.password-info svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== LOGIN MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
  padding: 20px;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.4s var(--ease-elastic);
  overflow: hidden;
}

@keyframes modalPop {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  text-align: center;
  padding: 28px 24px 16px;
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), rgba(168, 85, 247, 0.15));
  color: var(--accent);
}

.modal-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-header p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}

.modal-body {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-address {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--accent);
  text-align: center;
  word-break: break-all;
}

.login-error {
  color: var(--red);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
  background: var(--red-soft);
  border-radius: var(--radius-sm);
  animation: shake 0.3s ease;
}

.login-cooldown {
  color: var(--yellow);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
  background: rgba(234, 179, 8, 0.1);
  border-radius: var(--radius-sm);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-ghost:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.icon-btn-logout {
  color: var(--yellow) !important;
}

.icon-btn-logout:hover {
  background: rgba(234, 179, 8, 0.15) !important;
}

.icon-btn-reset {
  color: #fb923c !important;
}

.icon-btn-reset:hover {
  background: rgba(251, 146, 60, 0.15) !important;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ===== DELETE MODAL DANGER STYLES ===== */
.modal-icon-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-icon-danger svg {
  color: #ef4444;
}

.btn-danger {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

/* ===== ICON BUTTON TOOLTIPS ===== */
.icon-btn {
  position: relative;
}

.icon-btn::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.icon-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
