:root {
  --bg-dark: #070a12;
  --bg-card: rgba(15, 22, 38, 0.75);
  --bg-card-hover: rgba(22, 32, 54, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 82, 255, 0.4);
  --primary: #0052FF;
  --primary-hover: #2563EB;
  --primary-glow: rgba(0, 82, 255, 0.4);
  --accent-green: #10B981;
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;
  --accent-amber: #F59E0B;
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  position: relative;
  line-height: 1.5;
}

/* Custom Smooth Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Dynamic Ambient Glow Orbs */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.bg-glow-1 {
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.3) 0%, rgba(0,0,0,0) 70%);
}

.bg-glow-2 {
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(0,0,0,0) 70%);
  animation-delay: -9s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-30px, 80px) scale(0.95); }
}

/* Navbar */
.navbar {
  padding: 14px 24px;
  background: rgba(7, 10, 18, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s var(--ease-out);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-wordmark {
  height: 22px;
  width: auto;
}

.logo-subtext {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-left: 2px;
}

.badge-free {
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.2), rgba(59, 130, 246, 0.1));
  color: #60A5FA;
  border: 1px solid rgba(0, 82, 255, 0.35);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-left: 6px;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-audio {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.btn-audio:hover {
  background: rgba(0, 82, 255, 0.2);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.network-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.network-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
}

.network-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.network-badge:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 20px;
  position: relative;
  z-index: 1;
}

/* Hero Banner Card */
.hero-banner-card {
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.45) 0%, rgba(7, 10, 18, 0.95) 100%), 
              url('assets/base-banner.jpg') center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  margin-bottom: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 82, 255, 0.15);
  backdrop-filter: blur(12px);
  animation: fadeInUp 0.6s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.hero-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), #34D399, transparent);
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 82, 255, 0.2);
  border: 1px solid rgba(0, 82, 255, 0.4);
  color: #60A5FA;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.hero-badge-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

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

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.8px;
}

.gradient-text {
  background: linear-gradient(135deg, #60A5FA 0%, var(--primary) 50%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Security Notice Banner */
.security-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-size: 13px;
  color: #FCD34D;
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease-out);
}

.security-banner:hover {
  border-color: rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

.security-icon {
  font-size: 22px;
  flex-shrink: 0;
}

/* Main Grid */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  animation: fadeInUp 0.8s var(--ease-out);
}

/* Card Styling */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 82, 255, 0.1);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.card-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.asset-selector-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s ease;
}

.asset-selector-card:focus-within {
  border-color: var(--primary);
}

.hidden {
  display: none !important;
}

.token-info-badge {
  font-size: 12px;
  color: var(--accent-green);
  font-weight: 600;
}

/* RECIPIENT GRID EDITOR */
.recipients-grid-container {
  margin-bottom: 18px;
}

.recipients-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.recipients-title {
  font-size: 14px;
  color: var(--text-main);
}

.required-star {
  color: #EF4444;
  font-weight: 700;
}

.subtext-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 4px;
}

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

.link-btn-upload {
  background: none;
  color: #60A5FA;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.link-btn-upload:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.btn-toggle-view {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.btn-toggle-view:hover {
  color: var(--text-main);
  border-color: var(--primary);
}

.grid-table-wrapper {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.grid-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.grid-table th {
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 2;
}

.grid-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.col-num {
  width: 40px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.col-addr {
  width: 60%;
}

.col-amt {
  width: 30%;
}

.col-del {
  width: 36px;
  text-align: center;
}

.grid-row-addr-input, .grid-row-amt-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
  min-height: 36px;
  transition: border-color 0.2s ease;
}

.grid-row-addr-input:focus, .grid-row-amt-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 82, 255, 0.08);
}

.btn-row-delete {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-row-delete:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.15);
}

.grid-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 0 4px;
}

.btn-add-row {
  background: none;
  border: none;
  color: #60A5FA;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-add-row:hover {
  color: #fff;
  background: rgba(0, 82, 255, 0.15);
}

/* Buttons */
button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.25s var(--ease-out);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #003DB8);
  color: #fff;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-height: 42px;
  white-space: nowrap;
}

.btn-another {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-another:hover {
  background: linear-gradient(135deg, #34D399, #10B981);
}

.btn-icon-sm {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1A66FF, var(--primary));
  box-shadow: 0 6px 24px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-sm {
  background: rgba(0, 82, 255, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(0, 82, 255, 0.35);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  min-height: 36px;
}

.btn-sm:hover {
  background: rgba(0, 82, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  min-height: 44px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.btn-full { width: 100%; margin-top: 8px; }

.btn-large {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.35);
  letter-spacing: 0.3px;
  min-height: 52px;
}

.btn-large:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.45);
}

.btn-large:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

/* Textarea */
.textarea-wrapper textarea {
  width: 100%;
  height: 130px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
  resize: vertical;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.textarea-wrapper textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Options Row */
.options-row {
  margin-top: 16px;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option-group.full-width {
  width: 100%;
}

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

select, input[type="number"], input[type="text"] {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  transition: all 0.25s ease;
  min-height: 42px;
}

select:focus, input[type="number"]:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.input-with-btn {
  display: flex;
  gap: 8px;
}

.input-with-btn input {
  flex: 1;
}

/* Summary Box */
.summary-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.summary-item.highlight {
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.status-pill {
  background: rgba(0, 82, 255, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(0, 82, 255, 0.3);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
}

/* Table */
.table-container {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.recipient-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.recipient-table th, .recipient-table td {
  padding: 10px 12px;
}

.recipient-table th {
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-muted);
  font-weight: 600;
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
}

.recipient-table tbody tr {
  transition: background 0.2s ease;
  animation: fadeInRow 0.3s var(--ease-out);
}

.recipient-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

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

.recipient-table td {
  border-top: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 12px;
}

.empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 30px !important;
  font-family: var(--font-family) !important;
}

.badge-valid { color: var(--accent-green); font-weight: 700; }
.badge-invalid { color: #EF4444; font-weight: 700; }

/* ==========================================================================
   📱 PERFECT FIXED MODAL OVERLAY & CARD (ROOT BODY LEVEL ALIGNMENT)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(5, 8, 15, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
  box-sizing: border-box;
  animation: fadeInModal 0.35s var(--ease-out);
}

.modal-card {
  background: rgba(15, 22, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 82, 255, 0.25);
  border-radius: 24px;
  width: 92vw;
  max-width: 440px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 30px 22px;
  text-align: center;
  position: relative;
  margin: 0 auto;
  box-sizing: border-box;
  animation: scaleUpModal 0.4s var(--ease-spring);
}

.modal-base-header {
  margin-bottom: 10px;
}

.modal-base-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 0 20px var(--primary-glow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  color: var(--text-muted);
  font-size: 26px;
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover { color: #fff; }

/* BASE UNOFFICIAL SQUARE ANIMATED LOADER */
.base-square-loader {
  width: 64px;
  height: 64px;
  background: rgba(0, 82, 255, 0.12);
  border: 3px solid var(--primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 30px var(--primary-glow);
  animation: baseSquarePulse 2s ease-in-out infinite alternate, baseSquareRotate 8s linear infinite;
}

.base-loader-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  animation: baseIconGlow 2s ease-in-out infinite alternate;
}

@keyframes baseSquarePulse {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 82, 255, 0.3); border-color: var(--primary); }
  100% { transform: scale(1.08); box-shadow: 0 0 35px rgba(0, 82, 255, 0.7); border-color: #3B82F6; }
}

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

@keyframes baseIconGlow {
  0% { opacity: 0.85; filter: brightness(1); }
  100% { opacity: 1; filter: brightness(1.2); }
}

/* WALLET SELECTOR MODAL LIST */
.wallet-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.wallet-option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  width: 100%;
  color: var(--text-main);
  text-align: left;
  transition: all 0.25s var(--ease-out);
}

.wallet-option-item:hover {
  background: rgba(0, 82, 255, 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.wallet-option-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-option-icon {
  font-size: 22px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.wallet-option-info {
  display: flex;
  flex-direction: column;
}

.wallet-option-info strong {
  font-size: 14px;
  font-weight: 700;
}

.wallet-option-info span {
  font-size: 11px;
  color: var(--text-muted);
}

.wallet-detected-tag {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUpModal {
  from { transform: scale(0.88); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.celebration-icon {
  font-size: 54px;
  margin-bottom: 10px;
  animation: bounceCelebration 1.2s infinite alternate var(--ease-spring);
}

@keyframes bounceCelebration {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-10px) scale(1.08); }
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.security-tip {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FCD34D;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 12px;
  margin-top: 14px;
}

.tx-details-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.tx-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.hash-link {
  color: #60A5FA;
  font-family: var(--font-mono);
  text-decoration: none;
  font-weight: 600;
}

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

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flex-center {
  justify-content: center;
}

.footer {
  text-align: center;
  padding: 24px 16px;
  border-top: 1px solid var(--border-color);
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-main);
}

.footer-logo {
  height: 16px;
  width: auto;
}

/* ==========================================================================
   📱 RESPONSIVE MOBILE CSS GRID & FLEXBOX (<768px & <480px)
   ========================================================================== */

@media (max-width: 768px) {
  .navbar {
    padding: 10px 14px;
  }

  .nav-container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 10px;
    align-items: center;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .logo-subtext {
    font-size: 18px;
  }

  .badge-free {
    display: none;
  }

  .nav-wallet-btn {
    grid-column: 2;
    grid-row: 1;
    padding: 6px 12px;
    font-size: 12px;
    min-height: 36px;
    border-radius: 14px;
  }

  .nav-controls {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .btn-audio {
    flex: 1;
    justify-content: center;
    padding: 6px 10px;
    font-size: 11px;
    min-height: 34px;
    border-radius: 14px;
  }

  .network-badge {
    flex: 1;
    justify-content: center;
    padding: 6px 10px;
    font-size: 11px;
    min-height: 34px;
    border-radius: 14px;
  }

  .container {
    padding: 14px 10px;
  }

  .hero-banner-card {
    padding: 24px 14px;
    margin-bottom: 18px;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .security-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .main-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 16px 12px;
  }

  .card-header h2 {
    font-size: 15px;
  }

  .textarea-wrapper textarea {
    height: 110px;
    font-size: 12px;
  }

  .recipients-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .recipients-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .modal-overlay {
    padding: 12px;
  }

  .modal-card {
    width: 92vw;
    max-width: 420px;
    padding: 24px 16px;
    border-radius: 20px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-banner-card {
    padding: 20px 12px;
    border-radius: 16px;
  }

  .hero-title {
    font-size: 22px;
  }

  .card {
    padding: 12px;
    border-radius: 16px;
  }

  .btn-large {
    padding: 14px;
    font-size: 14px;
    min-height: 48px;
  }

  .modal-overlay {
    padding: 10px;
  }

  .modal-card {
    width: 94vw;
    padding: 20px 14px;
    border-radius: 20px;
    margin: 0 auto;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-desc {
    font-size: 12px;
  }

  .security-tip {
    font-size: 11px;
    padding: 10px;
    word-break: break-word;
  }

  .tx-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}
