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

/* CSS variables for Light & Dark Mode */
:root {
  /* Dark Theme (Default) */
  --bg-body-gradient: radial-gradient(circle at 0% 0%, #151a26 0%, #0a0b0d 100%);
  --bg-page: #0c0d10;
  --bg-card: #16181f;
  --bg-card-hover: #1e212b;
  --bg-input: #1f222e;
  --text-primary: #ffffff;
  --text-secondary: #8f96a3;
  --text-muted: #535a66;
  --border-color: #242835;
  --accent-btc: #f7931a;
  --accent-blue: #3b71e3;
  --accent-blue-hover: #4e82f5;
  --accent-blue-rgb: 59, 113, 227;
  --accent-green: #2ebd85;
  --accent-red: #f6465d;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(22, 24, 31, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  /* Smooth transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

[data-theme="light"] {
  --bg-body-gradient: radial-gradient(circle at 0% 0%, #edf1f7 0%, #d5dde8 100%);
  --bg-page: #f4f5f8;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fc;
  --bg-input: #eceef2;
  --text-primary: #0f141e;
  --text-secondary: #5f6672;
  --text-muted: #9099a6;
  --border-color: #e2e5eb;
  --accent-blue: #3b71e3;
  --accent-blue-hover: #2d5ec7;
  --accent-blue-rgb: 59, 113, 227;
  --accent-green: #0ecb81;
  --accent-red: #f6465d;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.05);
}

/* Reset and general layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-body-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  transition: background var(--transition-normal);
}

/* Main screen layout */
.app-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  padding: 40px;
  gap: 60px;
  justify-content: center;
  align-items: center;
}

/* Glassmorphic Side Panel for Controls (Desktop only) */
.control-panel {
  flex: 1;
  max-width: 420px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 20px 40px var(--shadow-color);
  max-height: 850px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 10;
}

/* Customize panel elements */
.control-panel h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 5px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.panel-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.panel-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

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

input[type="text"],
input[type="number"],
input[type="datetime-local"],
select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
  outline: none;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 113, 227, 0.15);
}

/* Range Input Customization */
.range-slider-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-input);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
  transition: var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--accent-blue-hover);
}

/* Toggles & Buttons */
.toggle-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.toggle-group span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-input);
  transition: .3s;
  border-radius: 24px;
  border: 1px solid var(--border-color);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-primary);
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.btn-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-top: 5px;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
}

/* Scrollbar Customization for Panel */
.control-panel::-webkit-scrollbar {
  width: 6px;
}

.control-panel::-webkit-scrollbar-track {
  background: transparent;
}

.control-panel::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

/* ==========================================================================
   Virtual Phone Container (iPhone Mockup)
   ========================================================================== */
.phone-mock {
  position: relative;
  width: 400px;
  height: 840px;
  background: #000;
  border-radius: 54px;
  box-shadow: 
    0px 25px 50px -12px var(--shadow-color),
    0px 0px 0px 12px #1a1a1a, /* Inner bezel */
    0px 0px 0px 14px #262626, /* Outer edge */
    0px 0px 0px 15px #0a0a0a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Physical Phone details */
.phone-mock::before {
  content: '';
  position: absolute;
  top: 140px;
  left: -15px;
  width: 3px;
  height: 40px;
  background: #333;
  border-radius: 2px 0 0 2px;
  box-shadow: 
    0 60px 0 #333, /* Volume down */
    0 110px 0 #333; /* Action button */
}

.phone-mock::after {
  content: '';
  position: absolute;
  top: 200px;
  right: -15px;
  width: 3px;
  height: 75px;
  background: #333;
  border-radius: 0 2px 2px 0; /* Power button */
}

/* Screen area inside phone */
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-page);
  border-radius: 42px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background var(--transition-normal);
}

/* Status Bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 99;
  position: relative;
}

.status-time {
  font-family: var(--font-sans);
  letter-spacing: -0.1px;
}

/* Notch / Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
  z-index: 100;
  transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.3s, border-radius 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

/* Expanded Dynamic Island (for simulated alerts/notifications) */
.dynamic-island.expanded {
  width: 340px;
  height: 65px;
  border-radius: 28px;
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.dynamic-island-content {
  display: none;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.dynamic-island.expanded .dynamic-island-content {
  display: flex;
  animation: fadeIn 0.2s ease forwards;
}

.island-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-btc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.island-text {
  flex: 1;
  text-align: left;
}

.island-title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.island-sub {
  color: #8a8a93;
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
}

.island-badge {
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 700;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-icon {
  width: 17px;
  height: 11px;
  fill: currentColor;
}

.battery-container {
  display: flex;
  align-items: center;
  gap: 4px;
}

.battery-percentage {
  font-size: 11px;
  font-weight: 600;
}

.battery-body {
  position: relative;
  width: 22px;
  height: 11px;
  border: 1px solid var(--text-primary);
  border-radius: 3px;
  padding: 1px;
  display: flex;
}

.battery-level {
  height: 100%;
  background: var(--accent-green);
  border-radius: 1px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.battery-body::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 3px;
  width: 1.5px;
  height: 4px;
  background: var(--text-primary);
  border-radius: 0 1px 1px 0;
}

/* ==========================================================================
   Virtual App Views
   ========================================================================== */
.wallet-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding: 15px 20px 80px; /* space for home indicator */
}

/* Scrollbar styling for phone view (subtle) */
.wallet-view::-webkit-scrollbar {
  width: 3px;
}

.wallet-view::-webkit-scrollbar-thumb {
  background: rgba(143, 150, 163, 0.15);
  border-radius: 2px;
}

/* App Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.view-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

.header-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
  position: relative;
}

.header-action-btn:hover {
  background: var(--bg-card-hover);
}

.notification-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  border: 1.5px solid var(--bg-page);
}

/* Asset Balance Card */
.balance-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 25px;
}

.coin-logo-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f7931a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(247, 147, 26, 0.35);
  animation: logoPulse 2.5s infinite ease-in-out;
}

@keyframes logoPulse {
  0% { transform: scale(1); box-shadow: 0 6px 16px rgba(247, 147, 26, 0.35); }
  50% { transform: scale(1.04); box-shadow: 0 8px 24px rgba(247, 147, 26, 0.5); }
  100% { transform: scale(1); box-shadow: 0 6px 16px rgba(247, 147, 26, 0.35); }
}

.crypto-balance-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 4px;
}

.crypto-amount {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.crypto-symbol {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 8px;
}

.fiat-amount {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

.wallet-address-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.wallet-address-chip:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.wallet-address-chip svg {
  width: 14px;
  height: 14px;
}

/* Quick Action Buttons Grid */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.action-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(59, 113, 227, 0.2);
}

.action-item:hover .action-icon-circle {
  background: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 113, 227, 0.35);
}

.action-item:active .action-icon-circle {
  transform: translateY(1px);
}

.action-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Detailed Information Cards */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 6px var(--shadow-color);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.info-row-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.info-row-value {
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trend-green {
  color: var(--accent-green);
}
.trend-red {
  color: var(--accent-red);
}

/* Activity (Transaction list) Section */
.activity-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activity-header span {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-display);
}

.activity-header a {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  text-decoration: none;
}

.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tx-item:hover {
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

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

.tx-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tx-icon-wrapper.received {
  background: rgba(46, 189, 133, 0.12);
  color: var(--accent-green);
}

.tx-icon-wrapper.sent {
  background: rgba(246, 70, 93, 0.12);
  color: var(--accent-red);
}

.tx-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tx-type {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.tx-time {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.tx-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tx-crypto-val {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sans);
}

.tx-crypto-val.plus {
  color: var(--accent-green);
}
.tx-crypto-val.minus {
  color: var(--text-primary);
}

.tx-fiat-val {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Home Indicator Bar (iOS Style) */
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 5px;
  background: var(--text-primary);
  opacity: 0.35;
  border-radius: 10px;
  z-index: 101;
  pointer-events: none;
}

/* Mobile Settings Toggle (Hidden on Desktop) */
.mobile-settings-toggle {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  background: var(--accent-blue);
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(59, 113, 227, 0.4);
  cursor: pointer;
  z-index: 1000;
  border: none;
}

/* ==========================================================================
   Overlay Sheets / Drawer Modals inside Phone Screen
   ========================================================================== */
.sheet-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sheet-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-radius: 28px 28px 0 0;
  border-top: 1px solid var(--border-color);
  padding: 24px 20px 40px;
  z-index: 201;
  transition: bottom 0.35s cubic-bezier(0.32, 0.94, 0.6, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.bottom-sheet.active {
  bottom: 0;
}

.sheet-drag-handle {
  width: 36px;
  height: 5px;
  background: var(--border-color);
  border-radius: 10px;
  margin: -12px auto 16px;
}

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

.sheet-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.sheet-close-btn {
  width: 28px;
  height: 28px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sheet-close-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

/* Modal Content Styles */
.sheet-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Interactive Send Layout */
.send-amount-display {
  text-align: center;
  padding: 15px 0;
}

.send-amount-crypto {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
}

.send-amount-fiat {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 4px;
}

.fee-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.fee-option:hover {
  background: var(--bg-card-hover);
}

.fee-option.selected {
  border-color: var(--accent-blue);
  background: rgba(59, 113, 227, 0.06);
}

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

.fee-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.fee-option.selected .fee-icon-circle {
  background: var(--accent-blue);
  color: #fff;
}

.fee-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fee-name {
  font-size: 13px;
  font-weight: 600;
}

.fee-rate {
  font-size: 11px;
  color: var(--text-muted);
}

.fee-crypto-val {
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.fee-fiat-val {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
}

/* Swap interface inside sheet */
.swap-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swap-box-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.swap-box-input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.swap-input {
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  width: 60%;
  outline: none;
}

.swap-token-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
}

.swap-arrow-divider {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: var(--accent-blue);
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: var(--transition-fast);
}

.swap-arrow-divider:hover {
  background: var(--accent-blue-hover);
  transform: translate(-50%, -50%) rotate(180deg);
}

.swap-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0 4px;
}

/* Receive Sheet QR section */
.receive-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
}

.qr-box {
  background: #ffffff;
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box svg {
  width: 180px;
  height: 180px;
}

.receive-warning-text {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  max-width: 250px;
  line-height: 1.5;
}

/* Success Modal Overlay */
.success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-page);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-icon-animation {
  width: 80px;
  height: 80px;
  background: rgba(46, 189, 133, 0.12);
  color: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transform: scale(0.6);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-overlay.active .success-icon-animation {
  transform: scale(1);
}

.success-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.success-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 30px;
}

/* Dynamic Toast Notifications (Alert messages in app) */
.toast-msg {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(22, 24, 31, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  white-space: nowrap;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .app-container {
    padding: 20px;
    gap: 30px;
    flex-direction: column;
  }
  
  .control-panel {
    width: 100%;
    max-width: 500px;
    max-height: none;
  }
}

/* MOBILE MODE: Hides customization, turns mock phone into native-like fullscreen webapp */
@media (max-width: 480px) {
  body {
    background: var(--bg-page);
  }
  
  .app-container {
    padding: 0;
    width: 100vw;
    height: 100vh;
  }
  
  .control-panel {
    display: none; /* hidden on standard mobile browsers, triggered via settings button */
  }
  
  .control-panel.mobile-active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    z-index: 2000;
    padding: 24px;
    background: var(--bg-page);
  }
  
  .phone-mock {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  
  .phone-mock::before,
  .phone-mock::after {
    display: none; /* remove side buttons on mobile */
  }
  
  .phone-screen {
    border-radius: 0;
    padding-top: env(safe-area-inset-top, 24px);
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }
}
