/* ==========================================================================
   EASY BANK TRIGGER - PREMIUM CLASSIC GLASSMORPHISM DARK STYLING
   ========================================================================== */

/* 1. CSS variables for colors, glows & transitions */
:root {
  --bg-color: #080C14;
  --panel-bg: rgba(17, 24, 39, 0.6);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-glow: rgba(255, 255, 255, 0.15);
  
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  
  /* Bank & Alert Branding Colors */
  --color-green: #10B981;
  --color-green-glow: rgba(16, 185, 129, 0.25);
  --color-purple: #8B5CF6;
  --color-purple-glow: rgba(139, 92, 246, 0.25);
  --color-cyan: #06B6D4;
  --color-cyan-glow: rgba(6, 182, 212, 0.25);
  --color-orange: #F59E0B;
  
  /* iOS Shortcut Branding Colors */
  --ios-blue: #0A84FF;
  --ios-pink: #FF375F;
  --ios-bg: #1C1C1E;
  
  /* Bank Specific Colors */
  --bank-kbank: #00A950;
  --bank-scb: #4E2A84;
  --bank-ktb: #00A4E4;
  --bank-ttb: #F37021;
  --bank-gsb: #EC008C;
  --bank-bbl: #1E3A8A;
  
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Sarabun', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
}

/* 2. Global Reset and Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Safe Area Insets for modern iPhones (Notch/Dynamic Island) */
.app-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 40px 16px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 3. Stunning Holographic Blurred Backdrops */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: screen;
}

.bg-glow-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
  top: -100px;
  right: -100px;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: -150px;
  left: -150px;
}

.bg-glow-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  top: 40%;
  left: 30%;
}

/* 4. Glassmorphism Design System Token */
.glass {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.glass:hover {
  border-color: var(--panel-border-glow);
}

/* 5. Header Component */
.app-header {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #FFFFFF, #CBD5E1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text .sub {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-green);
  box-shadow: 0 0 8px var(--color-green);
}

.status-dot.pulsing {
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 8px 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 6. Navigation Tabs */
.tab-navigation {
  display: flex;
  padding: 6px;
  gap: 6px;
  border-radius: 16px;
}

.nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-fast);
}

.nav-btn svg {
  transition: var(--transition-fast);
}

.nav-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.04);
}

.nav-btn.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0,0,0,0.15);
}

.nav-btn.active svg {
  color: var(--color-cyan);
}

/* Tab contents switching */
.tab-content {
  display: none;
  flex-direction: column;
  gap: 24px;
}

.tab-content.active {
  display: flex;
  animation: fadeIn 0.4s ease-out forwards;
}

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

/* 7. PWA Install Banner */
.install-banner {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border-color: rgba(16, 185, 129, 0.2);
  animation: slideInDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.install-icon {
  font-size: 32px;
}

.install-info h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.install-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

.share-icon-btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 0px 4px 2px 4px;
  border-radius: 6px;
  font-size: 14px;
  vertical-align: middle;
}

.close-banner-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.close-banner-btn:hover {
  color: white;
}

.hidden {
  display: none !important;
}

/* 8. Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.glow-green::before { background: var(--color-green); }
.glow-green { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.05); }
.glow-green:hover { box-shadow: 0 4px 25px rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); }

.glow-purple::before { background: var(--color-purple); }
.glow-purple { box-shadow: 0 4px 20px rgba(139, 92, 246, 0.05); }
.glow-purple:hover { box-shadow: 0 4px 25px rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.3); }

.glow-cyan::before { background: var(--color-cyan); }
.glow-cyan { box-shadow: 0 4px 20px rgba(6, 182, 212, 0.05); }
.glow-cyan:hover { box-shadow: 0 4px 25px rgba(6, 182, 212, 0.15); border-color: rgba(6, 182, 212, 0.3); }

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

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

.metric-header .icon {
  color: var(--text-muted);
}

.glow-green .metric-header .icon { color: var(--color-green); }
.glow-purple .metric-header .icon { color: var(--color-purple); }
.glow-cyan .metric-header .icon { color: var(--color-cyan); }

.metric-card .value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}

.metric-card .value .unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.metric-card .desc {
  font-size: 12px;
  font-weight: 500;
}

.text-green { color: var(--color-green); }
.text-purple { color: var(--color-purple); }
.text-cyan { color: var(--color-cyan); }

/* 9. Real-time Simulator Panel */
.simulator-section {
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.05);
}

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

.section-header h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.badge {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  color: #E2E8F0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 30px;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.section-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

.glass-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  color: white;
  font-family: var(--font-display);
  font-size: 15px;
  width: 100%;
  outline: none;
  transition: var(--transition-fast);
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

.sim-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.btn-bank {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-bank:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

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

.bank-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.bank-dot.kbank { background-color: var(--bank-kbank); box-shadow: 0 0 6px var(--bank-kbank); }
.bank-dot.scb { background-color: var(--bank-scb); box-shadow: 0 0 6px var(--bank-scb); }
.bank-dot.ktb { background-color: var(--bank-ktb); box-shadow: 0 0 6px var(--bank-ktb); }
.bank-dot.ttb { background-color: var(--bank-ttb); box-shadow: 0 0 6px var(--bank-ttb); }

.btn-kbank:hover { border-color: rgba(0, 169, 80, 0.4); background: rgba(0, 169, 80, 0.1); }
.btn-scb:hover { border-color: rgba(78, 42, 132, 0.4); background: rgba(78, 42, 132, 0.1); }
.btn-ktb:hover { border-color: rgba(0, 164, 228, 0.4); background: rgba(0, 164, 228, 0.1); }
.btn-ttb:hover { border-color: rgba(243, 112, 33, 0.4); background: rgba(243, 112, 33, 0.1); }

/* 10. Transaction Ticker */
.transactions-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.glass-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.danger-btn:hover {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
}

/* Board Selector styles */
.board-selector {
  display: flex;
  padding: 4px;
  gap: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}

.board-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.board-btn svg {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.board-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.04);
}

.board-btn.active {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.board-btn.active svg {
  color: var(--color-cyan);
}

.no-data-card {
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.no-data-icon {
  font-size: 40px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.no-data-card h3 {
  font-size: 16px;
  font-weight: 600;
}

.no-data-card p {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 320px;
}

.transactions-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* PREMIUM TRANSACTION CARDS */
.tx-card {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--text-muted);
  animation: slideInLeft 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Bank Border Colors */
.tx-card.tx-kbank { border-left-color: var(--bank-kbank); box-shadow: inset 5px 0 20px rgba(0, 169, 80, 0.03); }
.tx-card.tx-scb { border-left-color: var(--bank-scb); box-shadow: inset 5px 0 20px rgba(78, 42, 132, 0.03); }
.tx-card.tx-ktb { border-left-color: var(--bank-ktb); box-shadow: inset 5px 0 20px rgba(0, 164, 228, 0.03); }
.tx-card.tx-ttb { border-left-color: var(--bank-ttb); box-shadow: inset 5px 0 20px rgba(243, 112, 33, 0.03); }
.tx-card.tx-gsb { border-left-color: var(--bank-gsb); box-shadow: inset 5px 0 20px rgba(220, 38, 38, 0.03); }
.tx-card.tx-bbl { border-left-color: var(--bank-bbl); box-shadow: inset 5px 0 20px rgba(30, 58, 138, 0.03); }

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

/* Premium dynamic holographic bank badge */
.bank-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.bank-badge.kbank { background: linear-gradient(135deg, var(--bank-kbank), #10B981); }
.bank-badge.scb { background: linear-gradient(135deg, var(--bank-scb), #A78BFA); }
.bank-badge.ktb { background: linear-gradient(135deg, var(--bank-ktb), #38BDF8); }
.bank-badge.ttb { background: linear-gradient(135deg, var(--bank-ttb), #FDBA74); }
.bank-badge.gsb { background: linear-gradient(135deg, var(--bank-gsb), #F472B6); }
.bank-badge.bbl { background: linear-gradient(135deg, var(--bank-bbl), #3B82F6); }
.bank-badge.unknown { background: linear-gradient(135deg, #4B5563, #9CA3AF); }

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

.tx-info .sender {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.tx-info .meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.tx-info .account {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 500;
}

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

.tx-right .amount {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-green);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

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

/* Expansion panel for raw text details */
.raw-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  margin-top: 4px;
  text-decoration: underline;
}

.raw-toggle-btn:hover {
  color: var(--text-secondary);
}

.tx-raw-details {
  display: none;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 10px;
  width: 100%;
  font-size: 11px;
  color: var(--text-secondary);
  word-break: break-all;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.tx-raw-details.active {
  display: block;
}

/* Pulse animation for newly incoming card */
.new-item-pulse {
  animation: newItemEffect 1.2s ease-out;
}

@keyframes newItemEffect {
  0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  30% { transform: scale(1.02); box-shadow: 0 0 20px 10px rgba(16, 185, 129, 0.2); }
  100% { transform: scale(1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
}

/* 11. Shortcuts Guide Elements */
.guide-intro {
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.05);
}

.guide-intro h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.guide-intro p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.url-copy-box {
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.copy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.copy-btn {
  background: var(--color-cyan);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.copy-btn:hover {
  background: #0891B2;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.text-warning {
  font-size: 11px;
  color: var(--color-orange);
}

/* QR Code Section */
.qr-section {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.qr-box {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  max-width: 360px;
  width: 100%;
}

.qr-box h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.qr-box p {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.qr-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  margin-bottom: 10px;
}

.qr-image-container img {
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  image-rendering: pixelated;
}

.qr-loading {
  font-size: 13px;
  color: var(--text-muted);
  animation: pulse-green 1.5s infinite;
}

.text-muted {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-display);
  word-break: break-all;
}

.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Method Header (วิธีที่ 1 / วิธีที่ 2) */
.method-header {
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.method-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.method-header.glow-cyan::before {
  background: var(--color-cyan);
}

.method-header.glow-purple::before {
  background: var(--color-purple);
}

.method-header h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.method-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

.step-card {
  padding: 24px;
  display: flex;
  gap: 20px;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel-border-glow);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}

.glow-green .step-num {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--color-green);
  color: var(--color-green);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.step-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-details h3 {
  font-size: 16px;
  font-weight: 700;
}

.step-details p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.step-details ul, .step-details ol {
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-details code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 12.5px;
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-alert {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #E2E8F0;
}

.link-glow {
  color: var(--color-green);
  text-decoration: none;
  font-weight: 600;
}

.link-glow:hover {
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* 12. iOS Shortcut Block visual styling */
.shortcut-mockup {
  margin-top: 14px;
  background: #000000;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-block {
  background: var(--ios-bg);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.mock-block.highlight {
  border-left: 4px solid var(--ios-blue);
}

.mock-block.notify {
  border-left: 4px solid var(--ios-pink);
}

.mock-action {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.mock-block.highlight .mock-action { color: var(--ios-blue); }
.mock-block.notify .mock-action { color: var(--ios-pink); }
.mock-block:not(.highlight):not(.notify) .mock-action { color: #A1A1AA; }

.mock-block p {
  color: white;
  font-size: 13px;
}

.mock-variable {
  background: rgba(10, 132, 255, 0.15);
  color: #64D2FF;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.mock-url {
  font-family: var(--font-display);
  color: var(--text-secondary) !important;
  font-size: 12px !important;
}

.mock-headers, .mock-body {
  margin-top: 6px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 10px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 13. Toast Notification Alert */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  width: calc(100% - 48px);
}

.toast {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--color-green);
}

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

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

.toast-msg h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 2px;
}

.toast-msg p {
  font-size: 11px;
  color: var(--text-secondary);
}

/* 14. Footer Layout */
.app-footer {
  text-align: center;
  padding: 16px 0;
  font-size: 11px;
  color: var(--text-muted);
}

/* 15. Responsive adjustments */
@media(max-width: 480px) {
  .app-container {
    padding: 12px 10px 30px 10px;
  }
  
  .app-header {
    padding: 12px 16px;
  }
  
  .brand-text h1 {
    font-size: 18px;
  }
  
  .metric-card .value {
    font-size: 28px;
  }
  
  .tx-card {
    padding: 12px 16px;
  }
  
  .bank-badge {
    width: 38px;
    height: 38px;
    font-size: 11px;
  }
  
  .tx-right .amount {
    font-size: 18px;
  }
}

/* Formal operations dashboard */
:root {
  --bg-color: #f3f6fa;
  --panel-bg: #ffffff;
  --panel-border: #dce4ed;
  --panel-border-glow: #bac9d9;
  --text-primary: #17263b;
  --text-secondary: #52657c;
  --text-muted: #718197;
  --color-green: #13805e;
  --color-purple: #345c88;
  --color-cyan: #236e9a;
}

body { background: var(--bg-color); }
.bg-glow { display: none; }
.app-container { max-width: 1120px; gap: 26px; }
.glass { backdrop-filter: none; border-radius: 12px; box-shadow: 0 2px 12px rgba(22, 45, 70, .04); }
.app-header { padding: 19px 24px; border-top: 4px solid #1f4d75; }
.logo-icon { background: #1f4d75; box-shadow: none; border-radius: 9px; }
.brand-text h1 { color: #17263b; background: none; -webkit-text-fill-color: currentColor; letter-spacing: 0; }
.brand-text .sub { text-transform: none; letter-spacing: 0; font-size: 12px; }
.status-pill { background: #eef5fa; border: 1px solid #d6e4ee; color: #244d69; box-shadow: none; }
.metric-card { padding: 22px; gap: 10px; }
.metric-card .value { font-size: 30px; }
.glow-green, .glow-purple, .glow-cyan { box-shadow: 0 2px 12px rgba(22, 45, 70, .04); }
.glow-green:hover, .glow-purple:hover, .glow-cyan:hover { box-shadow: 0 3px 16px rgba(22, 45, 70, .08); }
.verification-section { padding: 26px; }
.section-kicker { display: block; color: #456f93; font-size: 11px; font-weight: 700; letter-spacing: .1em; margin-bottom: 4px; }
.verification-section h2 { font-size: 21px; }
.verification-note { color: #166849; background: #e7f5ed; border: 1px solid #cce7d7; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.verification-section .section-desc { margin: 10px 0 20px; }
.claim-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.claim-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: #334b63; }
.claim-form input, .claim-form select { width: 100%; min-width: 0; border: 1px solid #cbd7e2; background: #fff; color: #17263b; border-radius: 7px; padding: 11px 12px; font: inherit; font-weight: 400; outline: none; }
.claim-form input:focus, .claim-form select:focus { border-color: #2a6d9b; box-shadow: 0 0 0 3px rgba(42, 109, 155, .12); }
.optional { display: inline; font-weight: 400; color: #718197; }
.claim-submit { grid-column: 1 / -1; justify-self: start; background: #1f4d75; color: #fff; border: 0; padding: 11px 20px; border-radius: 7px; font: inherit; font-weight: 700; cursor: pointer; }
.claim-submit:hover { background: #173c5d; }
.claim-submit:disabled { opacity: .6; cursor: wait; }
.claim-result { margin-top: 16px; padding: 12px 14px; border-radius: 7px; font-size: 13px; }
.claim-result.success { background: #e8f5ee; color: #155a40; border: 1px solid #c8e8d5; }
.claim-result.error { background: #fff1ef; color: #a7352a; border: 1px solid #f1d0ca; }
.board-selector { background: #eaf0f6; border-color: #dce4ed; }
.board-btn.active { color: #173b5e; background: #fff; box-shadow: 0 1px 4px rgba(22,45,70,.1); }
.board-btn:hover, .glass-btn:hover { color: #173b5e; }
.tx-card { border-radius: 9px; box-shadow: 0 1px 8px rgba(22,45,70,.04) !important; }
.bank-badge { box-shadow: none; }
.tx-right .amount { text-shadow: none; }
.tx-raw-details { background: #f3f6fa; border-color: #dce4ed; }
.claim-state { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.claim-badge { display: inline-block; border-radius: 5px; padding: 2px 7px; font-size: 11px; font-weight: 700; }
.claim-badge.available { background: #e8f5ee; color: #136644; }
.claim-badge.claimed { background: #e9edf2; color: #40556b; }
.claim-audit { color: #52657c; font-size: 11px; }
.toast { background: #fff; color: #17263b; border-color: #dce4ed; box-shadow: 0 8px 22px rgba(22,45,70,.12); }
@media (max-width: 640px) {
  .claim-form { grid-template-columns: 1fr; }
  .verification-section { padding: 20px; }
  .verification-note { display: none; }
  .tx-card { gap: 12px; align-items: flex-start; }
  .tx-left { gap: 10px; min-width: 0; }
  .tx-info { min-width: 0; }
  .tx-right { flex-shrink: 0; }
}

/* Homepage guide and documentation */
.guide-feature { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 26px; margin-bottom: 24px; border-left: 4px solid #1f4d75; }
.guide-feature h2 { font-size: 19px; line-height: 1.35; margin: 3px 0 6px; }
.guide-feature p { color: var(--text-secondary); font-size: 13px; }
.guide-feature-link, .guide-back, .guide-bottom-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: #1f4d75; text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; padding: 10px 16px; border-radius: 7px; }
.guide-feature-link:hover, .guide-back:hover, .guide-bottom-link:hover { background: #173c5d; }
.guide-page main { display: flex; flex-direction: column; gap: 22px; }
.guide-page .logo-icon { font-size: 24px; font-weight: 700; }
.guide-hero { padding: 32px; background: #eaf2f8; border-color: #caddea; }
.guide-hero h2 { font-size: clamp(24px, 4vw, 32px); line-height: 1.3; margin: 5px 0 12px; }
.guide-hero p { color: var(--text-secondary); max-width: 760px; font-size: 15px; }
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-step { padding: 23px; }
.guide-number { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: #eaf2f8; color: #1f4d75; border-radius: 7px; font: 700 14px var(--font-display); }
.guide-step h3 { font-size: 16px; margin: 15px 0 8px; }
.guide-step p, .guide-detail p, .guide-detail li { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.guide-detail { padding: 27px 30px; }
.guide-detail h2 { font-size: 19px; margin-bottom: 14px; }
.guide-detail ol { padding-left: 22px; display: grid; gap: 10px; }
.guide-detail code, .guide-step code { font-family: Consolas, monospace; color: #1c507b; background: #eef4f8; padding: 2px 4px; border-radius: 3px; overflow-wrap: anywhere; }
.guide-detail pre { overflow-x: auto; background: #172b40; color: #e8f1f9; padding: 18px; border-radius: 8px; margin: 16px 0; font-size: 13px; line-height: 1.6; }
.guide-detail pre code { color: inherit; background: none; padding: 0; }
.guide-response-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0; }
.guide-response-list span { background: #eef4f8; border: 1px solid #dbe7ef; color: #334b63; border-radius: 6px; padding: 8px 11px; font-size: 12px; }
.guide-tip { background: #fff8e8; border-left: 3px solid #d89b23; padding: 12px 14px; margin-top: 18px; }
.guide-bottom-link { align-self: flex-start; margin-bottom: 10px; }
@media (max-width: 720px) {
  .guide-feature { flex-direction: column; align-items: flex-start; }
  .guide-steps { grid-template-columns: 1fr; }
  .guide-hero, .guide-detail { padding: 22px; }
  .guide-page .app-header { gap: 14px; }
}
