/* ============================================================
   style.css — TRON Energy Replace MiniApp
   Dark background + Red accent + Neumorphic energy page
   + Clean iOS-like profile/recharge/FAQ pages
   ============================================================ */

:root {
  --color-primary: #ff4444;
  --color-primary-light: #ff6b6b;
  --color-primary-dark: #cc3333;
  --color-gradient: linear-gradient(135deg, #ff4444, #ff6b6b);
  --color-gradient-hover: linear-gradient(135deg, #ff5555, #ff7b7b);
  --color-bg: #0f0f13;
  --color-bg-card: #1a1a24;
  --color-bg-input: #1e1e2e;
  --color-bg-input-focus: #252538;
  --color-bg-hover: #22222e;
  --color-text: #e6edf3;
  --color-text-secondary: #8b949e;
  --color-text-muted: #484f58;
  --color-text-placeholder: #3a3a4a;
  --color-border: #2a2a3a;
  --color-border-focus: #ff4444;
  --color-success: #3fb950;
  --color-warning: #d29922;
  --color-error: #ff4444;
  --color-neu-light: rgba(255,255,255,0.04);
  --color-neu-dark: rgba(0,0,0,0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-xs: 11px;
  --font-sm: 13px;
  --font-md: 15px;
  --font-lg: 18px;
  --font-xl: 22px;
  --font-2xl: 28px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100vh; min-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
input, button, select, textarea {
  font-family: inherit; font-size: inherit; color: inherit;
  outline: none; border: none; background: none;
  -webkit-appearance: none; appearance: none;
}

/* ---- App Shell ---- */
#app {
  max-width: 480px; margin: 0 auto;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}

/* ---- Page System ---- */
.page { display: none; flex: 1; flex-direction: column; overflow: hidden; }
.page.active { display: flex; }
.page-scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: var(--space-md) var(--space-md) calc(60px + var(--safe-bottom));
}

/* ---- Sub Pages ---- */
.sub-page {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: none;
  flex-direction: column;
}
.sub-page.active {
  display: flex !important;
}
.sub-header {
  display: flex; align-items: center;
  padding: var(--space-md); gap: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0; background: var(--color-bg);
}
.sub-title { font-size: var(--font-lg); font-weight: 600; }
.btn-back {
  font-size: var(--font-xl); cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  line-height: 1;
}
.btn-back:active { opacity: 0.6; }

/* ---- Tab Bar ---- */
#tab-bar {
  display: flex; border-top: 1px solid var(--color-border);
  background: var(--color-bg-card);
  padding-bottom: var(--safe-bottom); flex-shrink: 0;
}
.tab-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 8px 0; cursor: pointer;
  color: var(--color-text-muted);
  font-size: var(--font-xs); gap: 2px;
  transition: color 0.15s;
}
.tab-item.active { color: var(--color-primary); }
.tab-icon { font-size: 20px; }
.tab-label { font-size: var(--font-xs); }

/* ============================================================
   ENERGY PAGE — Neumorphic style
   ============================================================ */

/* ---- Top Status Bar ---- */
.top-bar {
  display: flex; align-items: center;
  padding: var(--space-md);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
  box-shadow: 4px 4px 8px var(--color-neu-dark), -2px -2px 6px var(--color-neu-light);
}
.top-bar-item { flex: 1; }
.top-bar-label { display: block; font-size: var(--font-xs); color: var(--color-text-secondary); }
.top-bar-value { display: block; font-size: var(--font-lg); font-weight: 700; color: var(--color-primary); margin-top: 2px; }
.top-bar-btn {
  flex-shrink: 0;
  padding: 6px 16px;
  background: var(--color-gradient);
  color: #fff; border-radius: var(--radius-full);
  font-size: var(--font-sm); font-weight: 600;
  cursor: pointer; transition: opacity 0.15s;
}
.top-bar-btn:active { opacity: 0.8; }

/* ---- Section Header ---- */
.section-header {
  display: flex; align-items: center; gap: var(--space-sm);
  margin-bottom: 6px;
}
.section-bar {
  width: 4px; height: 20px;
  background: var(--color-primary);
  border-radius: 2px;
}
.section-title {
  font-size: var(--font-lg); font-weight: 700;
}

/* ---- Form ---- */
.rent-form { display: flex; flex-direction: column; gap: 10px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label {
  font-size: var(--font-sm); font-weight: 500;
  color: var(--color-text-secondary); letter-spacing: 0.3px;
}
.label-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-text-muted); color: var(--color-bg);
  font-size: 10px; font-weight: 700; vertical-align: middle;
  margin-left: 4px; cursor: help;
}
.form-input {
  flex: 1; padding: 14px var(--space-md);
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-md);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: inset 2px 2px 5px var(--color-neu-dark), inset -1px -1px 3px var(--color-neu-light);
}
.form-input:focus {
  border-color: #ff4444;
  background: var(--color-bg-input-focus);
  box-shadow: 0 0 0 2px rgba(255,68,68,0.2), inset 2px 2px 5px var(--color-neu-dark), inset -1px -1px 3px var(--color-neu-light);
}
.form-input::placeholder { color: var(--color-text-placeholder); }
.form-hint { font-size: var(--font-xs); min-height: 16px; }
.form-hint.success { color: var(--color-success); }
.form-hint.error { color: var(--color-error); }

/* ---- Input Row ---- */
.input-row { display: flex; gap: 8px; align-items: center; }
.input-row .form-input { flex: 1; min-width: 0; }
.input-copy-btn {
  flex-shrink: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1.5px solid #ff4444;
  border-radius: var(--radius-md);
  font-size: 17px; cursor: pointer; transition: all 0.2s;
  color: #ff4444;
}
.input-copy-btn:active {
  background: rgba(255,68,68,0.1);
  transform: scale(0.95);
}

/* ---- Smart Analysis Panel ---- */
.smart-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 4px 4px 8px var(--color-neu-dark), -2px -2px 6px var(--color-neu-light);
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.smart-header {
  display: flex; align-items: center;
  padding: 12px var(--space-md); gap: 8px;
  border-bottom: 1px solid var(--color-border);
}
.smart-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-success); flex-shrink: 0;
}
.smart-dot.loading {
  background: var(--color-warning);
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.smart-title { flex: 1; font-size: var(--font-sm); font-weight: 600; color: var(--color-text); }
.smart-badge {
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: var(--font-xs); font-weight: 600;
  background: rgba(63,185,80,0.15); color: var(--color-success);
}
.smart-badge.loading { background: rgba(210,153,34,0.15); color: var(--color-warning); }
.smart-badge.error { background: rgba(255,68,68,0.15); color: var(--color-error); }
.smart-body { padding: 12px var(--space-md); }
.smart-result { font-size: var(--font-sm); color: var(--color-text-secondary); }
.smart-result.highlight { color: var(--color-primary); font-weight: 600; }

/* ---- Payment Cards ---- */
.payment-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm);
}
.payment-card {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 6px var(--space-sm);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.2s; text-align: center;
  box-shadow: 3px 3px 6px var(--color-neu-dark), -2px -2px 4px var(--color-neu-light);
  position: relative;
}
.payment-card input { display: none; }
.card-icon { font-size: 16px; margin-bottom: 1px; }
.card-title { font-size: var(--font-xs); font-weight: 600; color: var(--color-text); }
.card-sub { font-size: 10px; color: var(--color-text-secondary); margin-top: 1px; }
.card-price { font-size: 10px; color: var(--color-warning); margin-top: 1px; }

.payment-card.active {
  background: var(--color-gradient);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(255,68,68,0.3);
}
.payment-card.active .card-title { color: #fff; }
.payment-card.active .card-sub { color: rgba(255,255,255,0.85); }
.payment-card.active .card-price { color: rgba(255,255,255,0.9); }
.payment-card:active { transform: scale(0.97); }

/* ---- Estimate ---- */
.estimate-row {
  display: flex; justify-content: space-between;
  padding: var(--space-md); background: var(--color-bg-card);
  border-radius: var(--radius-md); font-size: var(--font-sm);
  box-shadow: 3px 3px 6px var(--color-neu-dark), -2px -2px 4px var(--color-neu-light);
}
.estimate-label { color: var(--color-text-secondary); }
.estimate-value { font-weight: 600; color: var(--color-primary); }

/* ---- Primary Button ---- */
.btn-primary {
  padding: 13px 0;
  background: var(--color-gradient);
  color: #fff; border-radius: var(--radius-md);
  font-size: var(--font-md); font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  text-align: center; letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(255,68,68,0.3);
}
.btn-primary:active { opacity: 0.85; transform: translateY(1px); }
.btn-primary:disabled {
  background: var(--color-bg-card); color: var(--color-text-muted);
  box-shadow: 3px 3px 6px var(--color-neu-dark), -2px -2px 4px var(--color-neu-light);
  cursor: not-allowed;
}

/* ---- Secondary Button ---- */
.btn-secondary {
  padding: 12px 0; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); color: var(--color-text-secondary);
  font-size: var(--font-sm); cursor: pointer; text-align: center;
  width: 100%; margin-top: var(--space-sm);
}
.btn-secondary:active { opacity: 0.7; }

/* ============================================================
   PROFILE PAGE — Clean iOS-like style
   ============================================================ */

.profile-header {
  display: flex !important; align-items: center !important; justify-content: center !important;
  flex-direction: column !important;
  padding: var(--space-lg) var(--space-md) !important;
  margin-bottom: var(--space-sm); text-align: center !important;
}
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 32px; flex-shrink: 0; margin: 0 auto var(--space-sm) !important;
  overflow: hidden;
}
.profile-info { text-align: center !important; width: 100%; }
.profile-name {
  display: block !important; font-size: var(--font-xl); font-weight: 700;
  color: var(--color-text) !important; margin-bottom: 2px;
}
.profile-id {
  display: block !important; font-size: var(--font-sm);
  color: var(--color-text-muted) !important; margin-top: 2px;
}

/* ---- Profile Stats Card ---- */
.profile-stats-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}
.profile-stats-card .stat-row {
  display: flex; align-items: center;
  padding: 14px 0;
}
.profile-stats-card .stat-row:first-child { padding-top: 4px; }
.profile-stats-card .stat-row:last-child { padding-bottom: 4px; }
.profile-stats-card .stat-label {
  flex: 1; font-size: var(--font-sm);
  color: var(--color-text-secondary);
}
.profile-stats-card .stat-value-red {
  font-size: var(--font-md); font-weight: 700;
  color: var(--color-primary); margin-right: var(--space-md);
}
.stat-btn-recharge {
  padding: 5px 14px;
  background: var(--color-gradient);
  color: #fff; border-radius: var(--radius-full);
  font-size: var(--font-xs); font-weight: 600;
  cursor: pointer; transition: opacity 0.15s;
}
.stat-btn-recharge:active { opacity: 0.8; }
.profile-stats-card .stat-value-secondary {
  font-size: var(--font-md); color: var(--color-text);
}
.profile-stats-card .stat-divider {
  height: 1px; background: var(--color-border);
}

/* ---- Menu List ---- */
.menu-list {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg); overflow: hidden;
  text-align: left;
}
.menu-item {
  display: flex; align-items: center;
  padding: 14px var(--space-md); width: 100%;
  cursor: pointer; border-bottom: 1px solid var(--color-border);
  transition: background 0.1s; text-align: left;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--color-bg-hover); }
.menu-icon { font-size: 20px; margin-right: var(--space-md); flex-shrink: 0; }
.menu-text { flex: 1; font-size: var(--font-md); color: var(--color-text); }
.menu-value {
  font-size: var(--font-sm); color: var(--color-text-secondary);
  margin-right: var(--space-sm);
}
.menu-arrow { font-size: var(--font-lg); color: var(--color-text-muted); }

/* ============================================================
   RECHARGE PAGE — Clean iOS-like style
   ============================================================ */

.recharge-hero {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-lg) var(--space-md);
  background: var(--color-gradient);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}
.recharge-hero-icon { font-size: 40px; }
.recharge-hero-text h3 {
  font-size: var(--font-lg); font-weight: 700; color: #fff; margin: 0;
}
.recharge-hero-text p {
  font-size: var(--font-sm); color: rgba(255,255,255,0.8); margin: 4px 0 0;
}

.recharge-form {
  margin-bottom: var(--space-lg);
}
.recharge-input-row {
  display: flex; align-items: center;
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: var(--space-md);
}
.recharge-input-row .form-input {
  border: none; box-shadow: none;
  background: transparent;
}
.recharge-input-suffix {
  padding: 0 var(--space-md);
  font-size: var(--font-md); font-weight: 600;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.quick-amounts {
  display: flex; gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.quick-amount-btn {
  flex: 1; padding: 10px 0;
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text); font-size: var(--font-sm);
  font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.quick-amount-btn:active,
.quick-amount-btn.selected {
  background: rgba(255,68,68,0.15);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ---- Order Info Card (after generating recharge order) ---- */
.order-info-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}
.order-info-label {
  font-size: var(--font-xs); color: var(--color-text-secondary);
  margin-bottom: 4px;
}
.order-info-addr {
  display: block; font-size: var(--font-xs);
  word-break: break-all; color: var(--color-primary);
  background: var(--color-bg-input);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  font-family: 'SF Mono', 'Menlo', monospace;
}
.btn-copy-addr {
  display: inline-block; padding: 8px var(--space-lg);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  color: var(--color-primary); font-size: var(--font-sm);
  cursor: pointer; transition: opacity 0.15s;
  background: transparent;
}
.btn-copy-addr:active { opacity: 0.7; }

/* ---- Notice Section ---- */
.notice-section {
  background: rgba(210,153,34,0.08);
  border: 1px solid rgba(210,153,34,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.notice-header {
  font-size: var(--font-sm); font-weight: 600;
  color: var(--color-warning); margin-bottom: var(--space-sm);
}
.notice-body p {
  font-size: var(--font-sm); color: var(--color-text-secondary);
  line-height: 1.6; margin: 2px 0;
}

/* ============================================================
   FAQ PAGE — Accordion
   ============================================================ */

.faq-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.faq-item {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.faq-question {
  display: flex; align-items: center;
  padding: 14px var(--space-md);
  cursor: pointer; width: 100%;
  transition: background 0.1s;
}
.faq-question:active { background: var(--color-bg-hover); }
.faq-question-text { flex: 1; font-size: var(--font-md); font-weight: 500; color: var(--color-text); }
.faq-question-icon {
  font-size: var(--font-lg); color: var(--color-text-muted);
  transition: transform 0.25s; flex-shrink: 0;
  width: 24px; text-align: center;
}
.faq-item.open .faq-question-icon { transform: rotate(45deg); }
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 var(--space-md) 14px;
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 var(--space-md);
}
/* FAQ答案装饰框 */
.faq-item.open .faq-answer p {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 10px 0 4px;
  line-height: 1.7;
}
.faq-answer-text {
  font-size: var(--font-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================================
   LANGUAGE PAGE — Radio-style list
   ============================================================ */

.language-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.language-option {
  display: flex; align-items: center;
  padding: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.15s; width: 100%;
}
.language-option.active {
  border-color: var(--color-primary);
  background: rgba(255,68,68,0.05);
}
.language-option:active { opacity: 0.7; }
.lang-name { flex: 1; font-size: var(--font-md); color: var(--color-text); }
.lang-check { font-size: var(--font-md); color: var(--color-primary); display: none; }
.language-option.active .lang-check { display: inline; }

/* ============================================================
   THEME PAGE — Radio-style list
   ============================================================ */

.theme-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.theme-option {
  display: flex; align-items: center;
  padding: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.15s; width: 100%;
}
.theme-option.active {
  border-color: var(--color-primary);
  background: rgba(255,68,68,0.05);
}
.theme-option:active { opacity: 0.7; }
.theme-dot {
  width: 24px; height: 24px; border-radius: 50%;
  margin-right: var(--space-md); flex-shrink: 0;
}
.theme-name { flex: 1; font-size: var(--font-md); color: var(--color-text); }
.theme-check { font-size: var(--font-md); color: var(--color-primary); display: none; }
.theme-option.active .theme-check { display: inline; }

/* ============================================================
   ORDERS PAGE
   ============================================================ */

.page-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-sm);
}
.page-title { font-size: var(--font-lg); font-weight: 600; }
.btn-icon { font-size: var(--font-lg); cursor: pointer; padding: var(--space-xs); }
.btn-icon:active { opacity: 0.6; }
.order-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.order-item {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: 3px 3px 6px var(--color-neu-dark), -2px -2px 4px var(--color-neu-light);
}
.order-top { display: flex; justify-content: space-between; align-items: center; }
.order-energy { font-size: var(--font-md); font-weight: 500; }
.order-status { font-weight: 500; font-size: var(--font-sm); }
.order-status.success { color: var(--color-success); }
.order-status.pending { color: var(--color-warning); }
.order-status.failed { color: var(--color-error); }
.order-meta {
  display: flex; justify-content: space-between;
  margin-top: var(--space-xs);
  font-size: var(--font-xs); color: var(--color-text-muted);
}

/* ============================================================
   STATS PAGE
   ============================================================ */

.stats-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}
.stats-card .stat-row {
  display: flex; justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}
.stats-card .stat-row:last-child { border-bottom: none; }
.stats-card .stat-label { color: var(--color-text-secondary); font-size: var(--font-sm); }
.stats-card .stat-value { font-weight: 600; font-size: var(--font-sm); }

/* ============================================================
   FALLBACK COPY BAR
   ============================================================ */

.fallback-bar {
  position: fixed; bottom: 60px; left: 0; right: 0;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
  display: flex; align-items: center;
  justify-content: space-between; z-index: 200;
}
.fallback-text { font-size: var(--font-sm); }
.fallback-btn {
  padding: 8px var(--space-md);
  background: var(--color-gradient);
  color: #fff; border-radius: var(--radius-sm);
  font-size: var(--font-sm); font-weight: 500;
  cursor: pointer;
}

/* ============================================================
   TOAST
   ============================================================ */

.toast {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%); padding: 10px 20px;
  border-radius: var(--radius-full); font-size: var(--font-sm);
  z-index: 999; animation: fadeInOut 2.5s ease;
  pointer-events: none; white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.toast.success { background: var(--color-success); color: #000; }
.toast.warning { background: var(--color-warning); color: #000; }
.toast.error { background: var(--color-error); color: #fff; }
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0); }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

[hidden] { display: none !important; }
