/* ===== LEDGER WALLET - GLOBAL STYLES ===== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #222222;
  --bg-card: #2a2a2a;
  --bg-input: #333333;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --accent-green: #4ade80;
  --accent-white: #ffffff;
  --border-color: #3a3a3a;
  --border-light: rgba(255,255,255,0.1);
  --shadow-glow: 0 0 30px rgba(74, 222, 128, 0.15);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Subtle background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(74, 222, 128, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255,255,255,0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-bracket {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 0;
  transition: var(--transition-smooth);
}

.logo-bracket:hover {
  color: var(--accent-green);
}

.logo-bracket .bracket {
  font-size: 16px;
  opacity: 0.7;
  font-weight: 400;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: var(--transition-smooth);
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-green);
  transition: var(--transition-smooth);
}

.navbar-links a:hover {
  color: var(--accent-green);
}

.navbar-links a:hover::after {
  width: 100%;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20,20,20,0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.mobile-nav a:hover {
  color: var(--accent-green);
}

.mobile-nav-close {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 28px;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: var(--transition-smooth);
}

.mobile-nav-close:hover {
  color: var(--accent-green);
  transform: rotate(90deg);
}

/* ===== PAGE WRAPPER ===== */
.page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 80px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s ease;
}

.btn:hover::before {
  background: rgba(255,255,255,0.06);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(255,255,255,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.2);
}

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

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-outline.selected {
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
  z-index: 1;
}

/* ===== PAGE TRANSITIONS ===== */
.page-enter {
  animation: pageEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 20px 24px;
  }

  .navbar-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 16px 20px;
  }
}


/* ============================================
   HOMEPAGE SPECIFIC
   ============================================ */

.home-hero {
  padding: 60px 48px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.home-hero .eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: block;
}

.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 750px;
  margin: 0 auto 20px;
}

.home-hero .divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 28px auto;
}

.home-hero .subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 56px;
}

/* Device Grid */
.device-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 60px;
  position: relative;
  z-index: 1;
}

.device-card {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 20px 28px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.device-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(74, 222, 128, 0), transparent);
  transition: background 0.5s ease;
  z-index: 0;
  border-radius: inherit;
}

.device-card:hover {
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.device-card.active {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.3), 0 20px 60px rgba(74, 222, 128, 0.12);
}

.device-card.active::before {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(74, 222, 128, 0.08), transparent);
}

.device-card .active-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.device-card.active .active-badge {
  opacity: 1;
}

.device-img-wrap {
  width: 120px;
  height: 130px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.device-placeholder {
  width: 80px;
  height: 110px;
  background: linear-gradient(160deg, #3a3a3a 0%, #2a2a2a 100%);
  border-radius: 12px;
  position: relative;
  box-shadow: 4px 8px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: var(--transition-smooth);
}

.device-placeholder.nano-shape {
  width: 40px;
  height: 120px;
  border-radius: 8px;
}

.device-placeholder.nano-shape::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 16px;
  background: rgba(0,0,0,0.4);
  border-radius: 4px;
}

.device-placeholder.stax-shape {
  width: 90px;
  height: 115px;
  border-radius: 14px;
}

.device-placeholder.stax-shape::after {
  content: '';
  position: absolute;
  inset: 10px;
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
}

.device-placeholder.flex-shape {
  width: 65px;
  height: 112px;
  border-radius: 10px;
}

.device-placeholder.flex-shape::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 55px;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
}

.device-card.active .device-placeholder {
  background: linear-gradient(160deg, #3d4a3e 0%, #2a352b 100%);
  box-shadow: 4px 8px 25px rgba(0,0,0,0.5), 0 0 20px rgba(74, 222, 128, 0.1), inset 0 1px 0 rgba(74, 222, 128, 0.15);
}

.device-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  transition: var(--transition-smooth);
}

.device-card.active .device-name {
  color: var(--accent-green);
}

.device-card .select-btn {
  width: 100%;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 10px 16px;
  position: relative;
  z-index: 1;
}

/* Other models section */
.other-models-section {
  text-align: center;
  padding: 0 48px 40px;
  position: relative;
  z-index: 1;
}

.other-models-section p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   IMPORT PAGE
   ============================================ */

.import-page {
  padding: 48px;
  min-height: calc(100vh - 80px);
  position: relative;
  z-index: 1;
}

.import-page .page-eyebrow,
.import-page h1,
.import-page .page-subtitle {
  text-align: center;
}

.import-page .page-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: block;
}

.import-page h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.import-page h1 .highlight {
  color: var(--accent-green);
}

.import-page .page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 auto 40px;
  max-width: 500px;
}

.import-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  max-width: 900px;
  align-items: start;
  justify-content: center;
  margin: 0 auto;
}

/* Device showcase panel */
.device-showcase {
  text-align: center;
}

.device-showcase-img {
  width: 180px;
  height: 200px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.showcase-device-placeholder {
  width: 100px;
  height: 170px;
  background: linear-gradient(160deg, #3d4a3e 0%, #2a352b 100%);
  border-radius: 14px;
  box-shadow: 8px 16px 40px rgba(0,0,0,0.6), 0 0 40px rgba(74, 222, 128, 0.12), inset 0 1px 0 rgba(74, 222, 128, 0.15);
  position: relative;
  animation: deviceFloat 3s ease-in-out infinite;
}

.showcase-device-placeholder.nano-shape {
  width: 55px;
  height: 170px;
  border-radius: 10px;
}

.showcase-device-placeholder.nano-shape::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 22px;
  background: rgba(0,0,0,0.35);
  border-radius: 5px;
}

.showcase-device-placeholder.flex-shape {
  width: 85px;
  height: 155px;
  border-radius: 12px;
}

.showcase-device-placeholder.flex-shape::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 70px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
}

.showcase-device-placeholder.stax-shape {
  width: 110px;
  height: 145px;
  border-radius: 16px;
}

.showcase-device-placeholder.stax-shape::after {
  content: '';
  position: absolute;
  inset: 12px;
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
}

.showcase-device-placeholder::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 22px;
  background: rgba(0,0,0,0.35);
  border-radius: 5px;
}

.showcase-device-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: deviceFloat 3s ease-in-out infinite;
}

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

.device-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 16px;
  background: var(--accent-green);
  filter: blur(20px);
  opacity: 0.3;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

.showcase-device-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.showcase-selected-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-green);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 20px;
  padding: 4px 12px;
}

.showcase-selected-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-green);
}

/* Device slide-in animation */
.device-showcase {
  animation: slideInDevice 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes slideInDevice {
  from {
    opacity: 0;
    transform: translateX(-40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Import Form */
.import-form-panel {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.import-form-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.3), transparent);
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-green);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.security-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0); }
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.seed-textarea {
  width: 100%;
  min-height: 130px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 16px;
  resize: vertical;
  transition: var(--transition-smooth);
  outline: none;
  line-height: 1.6;
}

.seed-textarea::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.seed-textarea:focus {
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.06);
  background: #2e2e2e;
}

.passphrase-input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 14px 18px;
  margin-top: 14px;
  margin-bottom: 20px;
  outline: none;
  transition: var(--transition-smooth);
}

.passphrase-input::placeholder {
  color: var(--text-muted);
}

.passphrase-input:focus {
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.06);
}

.connect-btn {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  letter-spacing: 0.05em;
  border-radius: var(--radius-xl);
}

/* ============================================
   LOADER PAGES
   ============================================ */

.loader-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.loader-page h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.loader-subtext {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 48px;
  min-height: 1.4em;
  transition: opacity 0.3s ease;
  letter-spacing: 0.02em;
}

/* Progress bar - segmented style (page 4) */
.progress-segmented {
  width: min(700px, 90vw);
  height: 50px;
  border: 2.5px solid var(--text-primary);
  border-radius: 30px;
  padding: 6px;
  display: flex;
  gap: 5px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.segment {
  flex: 1;
  height: 100%;
  border-radius: 4px;
  background: transparent;
  transition: background 0.2s ease;
}

.segment.filled {
  background: var(--text-primary);
}

/* Progress bar - smooth style (page 2) */
.progress-smooth {
  width: min(700px, 90vw);
  height: 50px;
  border: 2.5px solid var(--text-primary);
  border-radius: 30px;
  padding: 6px;
  overflow: hidden;
  position: relative;
}

.progress-smooth-fill {
  height: 100%;
  border-radius: 22px;
  background: var(--text-primary);
  width: 0%;
  transition: width 0.4s ease;
}

/* ============================================
   ERROR PAGE
   ============================================ */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  animation: errorShake 0.5s ease 0.3s both;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.error-message {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 40px;
}

.error-page .connect-btn {
  max-width: 400px;
  margin-bottom: 28px;
}

.error-tips {
  margin-top: 8px;
}

.error-tips strong {
  font-size: 14px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.error-tips p {
  font-size: 14px;
  color: var(--text-secondary);
}

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

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 320px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-left: 3px solid var(--accent-green);
}

.toast.error {
  border-left: 3px solid #ef4444;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1024px) {
  .device-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 32px 60px;
  }

  .import-page {
    padding: 36px 32px;
  }

  .import-layout {
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .home-hero {
    padding: 40px 24px 32px;
  }

  .device-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 24px 48px;
  }

  .other-models-section {
    padding: 0 24px 40px;
  }

  .import-page {
    padding: 28px 24px;
  }

  .import-layout {
    grid-template-columns: 1fr;
  }

  .device-showcase {
    display: flex;
    align-items: center;
    gap: 24px;
    text-align: left;
  }

  .device-showcase-img {
    width: 100px;
    height: 120px;
    flex-shrink: 0;
  }

  .showcase-device-placeholder {
    width: 60px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .device-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px 40px;
  }

  .home-hero {
    padding: 32px 20px 24px;
  }

  .device-card {
    padding: 20px 14px;
  }

  .device-img-wrap {
    width: 80px;
    height: 90px;
  }

  .device-name {
    font-size: 13px;
  }

  .import-form-panel {
    padding: 24px 20px;
  }

  .toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}
