/* ==================== Theme Variables ==================== */
:root {
  --bg-primary: #faf8f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fdfcfa;
  --bg-elevated: #ffffff;
  --bg-input: #f5f2ee;
  --bg-input-focus: #fff8f5;
  --bg-header: rgba(255, 255, 255, 0.88);
  --bg-tabs: rgba(255, 255, 255, 0.9);
  --bg-overlay: rgba(255, 255, 255, 0.06);
  --bg-subtle: #f5f2ee;
  --bg-changelog: #fff5f0;

  --text-primary: #1a1a2e;
  --text-secondary: #374151;
  --text-muted: #9ca3af;
  --text-faint: #b0b8c4;
  --text-accent: #e85d3a;

  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-hover: rgba(232, 93, 58, 0.18);
  --border-focus: #e85d3a;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.09);

  --accent-primary: #e85d3a;
  --accent-secondary: #f5a623;
  --accent-tertiary: #0d9488;

  --accent-primary-rgb: 232, 93, 58;
  --accent-secondary-rgb: 245, 166, 35;
  --accent-tertiary-rgb: 13, 148, 136;

  --btn-header-bg: rgba(232, 93, 58, 0.07);
  --btn-header-border: rgba(232, 93, 58, 0.18);
  --btn-header-text: #e85d3a;

  --toast-bg: rgba(255, 255, 255, 0.95);
  --toast-border: rgba(232, 93, 58, 0.12);
  --spinner-track: rgba(232, 93, 58, 0.12);

  --bg-dot: rgba(0, 0, 0, 0.035);
}

[data-theme="dark"] {
  --bg-primary: #0b0b16;
  --bg-secondary: #16162a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --bg-elevated: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(255, 255, 255, 0.03);
  --bg-input-focus: rgba(255, 107, 74, 0.04);
  --bg-header: rgba(11, 11, 22, 0.82);
  --bg-tabs: rgba(11, 11, 22, 0.6);
  --bg-overlay: rgba(255, 255, 255, 0.06);
  --bg-subtle: rgba(255, 255, 255, 0.04);
  --bg-changelog: rgba(255, 107, 74, 0.04);

  --text-primary: #f0f0f5;
  --text-secondary: #e8e8f0;
  --text-muted: #6b6b8a;
  --text-faint: #555568;
  --text-accent: #ff8a65;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 107, 74, 0.15);
  --border-focus: #ff6b4a;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.3);

  --accent-primary: #ff6b4a;
  --accent-secondary: #ffb74d;
  --accent-tertiary: #4ecdc4;

  --accent-primary-rgb: 255, 107, 74;
  --accent-secondary-rgb: 255, 183, 77;
  --accent-tertiary-rgb: 78, 205, 196;

  --btn-header-bg: rgba(255, 107, 74, 0.08);
  --btn-header-border: rgba(255, 107, 74, 0.2);
  --btn-header-text: #ff8a65;

  --toast-bg: rgba(25, 25, 45, 0.95);
  --toast-border: rgba(255, 107, 74, 0.15);
  --spinner-track: rgba(255, 107, 74, 0.15);

  --bg-dot: transparent;
}

/* ==================== Base Reset ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Sora', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ==================== Home Page ==================== */
.app-store-page {
  min-height: 100vh;
  padding-bottom: 24px;
  background: var(--bg-primary);
  background-image:
    radial-gradient(circle at 1px 1px, var(--bg-dot) 1px, transparent 0),
    radial-gradient(ellipse at 10% 5%, rgba(var(--accent-primary-rgb), 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 5%, rgba(var(--accent-secondary-rgb), 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(var(--accent-tertiary-rgb), 0.04) 0%, transparent 50%);
  background-size: 24px 24px, 100% 100%, 100% 100%, 100% 100%;
  transition: background-color 0.4s ease;
  position: relative;
}

/* Animated entrance for page sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.app-tabs {
  animation: fadeIn 0.4s ease both;
}

.env-version-card {
  animation: fadeInUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.env-version-card:nth-child(1) { animation-delay: 0.05s; }
.env-version-card:nth-child(2) { animation-delay: 0.12s; }
.env-version-card:nth-child(3) { animation-delay: 0.19s; }
.env-version-card:nth-child(4) { animation-delay: 0.26s; }
.env-version-card:nth-child(5) { animation-delay: 0.33s; }
.env-version-card:nth-child(6) { animation-delay: 0.40s; }

/* ==================== Page Header ==================== */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: var(--bg-header);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.3s ease;
}

.page-header.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

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

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(var(--accent-primary-rgb), 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-logo:hover {
  transform: rotate(-8deg) scale(1.05);
  box-shadow: 0 4px 20px rgba(var(--accent-primary-rgb), 0.4);
}

.page-title {
  font-size: 17px;
  font-weight: 700;
  font-family: 'Outfit', 'Sora', sans-serif;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.4px;
}

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

/* ==================== Theme Toggle ==================== */
.btn-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  background: var(--bg-subtle);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.btn-theme-toggle:hover {
  background: var(--btn-header-bg);
  border-color: var(--btn-header-border);
  color: var(--accent-primary);
  transform: rotate(15deg);
}

.btn-theme-toggle:active {
  transform: scale(0.92) rotate(0deg);
}

.btn-theme-toggle svg {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-theme-toggle .icon-sun { display: none; }
.btn-theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .btn-theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .btn-theme-toggle .icon-moon { display: none; }

/* ==================== Header Action Buttons ==================== */
.btn-header-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--btn-header-border);
  border-radius: 10px;
  background: var(--btn-header-bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--btn-header-text);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 34px;
  font-family: inherit;
}

.btn-header-action:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.4);
  background: rgba(var(--accent-primary-rgb), 0.14);
  color: var(--accent-primary);
}

.btn-header-action:active {
  transform: scale(0.96);
}

.btn-header-action svg {
  flex-shrink: 0;
}

/* ==================== App Tabs ==================== */
.app-tabs {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  margin-top: 56px;
  background: var(--bg-tabs);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.app-tabs::-webkit-scrollbar {
  display: none;
}

.app-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--bg-overlay);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  position: relative;
}

.app-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(-50%);
}

.app-tab:hover::after {
  width: 60%;
}

.app-tab:hover {
  background: rgba(var(--accent-primary-rgb), 0.06);
  border-color: rgba(var(--accent-primary-rgb), 0.15);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.app-tab.active {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(var(--accent-primary-rgb), 0.3);
}

.app-tab.active::after {
  width: 0;
}

.app-tab img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.app-tab:hover img {
  transform: scale(1.08);
}

.app-tab span {
  font-size: 14px;
  font-weight: 600;
  font-family: 'Sora', 'Outfit', sans-serif;
}

/* ==================== Environment Cards Container ==================== */
.env-cards-container {
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* ==================== Environment Version Card ==================== */
.env-version-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow-sm);
}

.env-version-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 0 3px 3px 0;
}

.env-version-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.env-version-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(var(--accent-primary-rgb), 0.06);
}

.env-version-card:hover::before {
  opacity: 1;
}

.env-version-card:hover::after {
  opacity: 1;
}

.env-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.env-card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.env-name {
  font-size: 17px;
  font-weight: 700;
  font-family: 'Outfit', 'Sora', sans-serif;
  margin: 0;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
}

.version-badge {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-family: 'Sora', sans-serif;
  box-shadow: 0 2px 8px rgba(var(--accent-primary-rgb), 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  display: inline-block;
  vertical-align: middle;
}

.env-version-card:hover .version-badge {
  transform: scale(1.05);
  box-shadow: 0 3px 12px rgba(var(--accent-primary-rgb), 0.35);
}

.env-card-body {
  margin-bottom: 12px;
}

.version-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-family: 'Sora', sans-serif;
}

.info-value {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  font-family: 'Sora', sans-serif;
}

.changelog-section {
  background: var(--bg-changelog);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.1);
  padding: 10px;
  border-radius: 12px;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.env-version-card:hover .changelog-section {
  border-color: rgba(var(--accent-primary-rgb), 0.18);
  background: rgba(var(--accent-primary-rgb), 0.06);
}

.changelog-title {
  font-size: 11px;
  color: var(--text-accent);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-family: 'Sora', sans-serif;
}

.changelog-content {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.env-card-actions {
  display: flex;
  gap: 10px;
}

.env-card-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-faint);
}

.env-card-empty .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.env-card-empty .empty-text {
  font-size: 14px;
  color: var(--text-faint);
}

/* ==================== Buttons ==================== */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Sora', inherit;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: scale(0.96);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
  flex: 1;
  border-radius: 10px;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  box-shadow: 0 2px 12px rgba(var(--accent-primary-rgb), 0.25);
}

.btn-success:hover {
  box-shadow: 0 6px 24px rgba(var(--accent-primary-rgb), 0.4);
  transform: translateY(-2px);
}

.btn-refresh {
  background: linear-gradient(135deg, var(--accent-tertiary) 0%, #06b6d4 100%);
  box-shadow: 0 2px 12px rgba(var(--accent-tertiary-rgb), 0.25);
}

.btn-refresh:hover {
  box-shadow: 0 6px 24px rgba(var(--accent-tertiary-rgb), 0.4);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #ec4899 100%);
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

.btn-qr {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
  flex: none;
}

.btn-qr:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

/* ==================== QR Modal ==================== */
.qr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.qr-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.qr-modal {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 28px;
  min-width: 300px;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.qr-modal-overlay.show .qr-modal {
  transform: scale(1);
}

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

.qr-modal-header h3 {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.qr-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-subtle);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qr-modal-close:hover {
  background: var(--accent-primary);
  color: #fff;
}

.qr-modal-body {
  text-align: center;
}

#qrCodeContainer {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: #ffffff;
  border-radius: 16px;
  margin-bottom: 16px;
}

#qrCodeContainer img,
#qrCodeContainer canvas {
  border-radius: 4px;
}

.qr-modal-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ==================== Bottom Navigation ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--bg-header);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 0;
  z-index: 100;
}

.nav-item {
  flex: 1;
  text-align: center;
  padding: 8px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.nav-item.active {
  color: var(--accent-primary);
  font-weight: 700;
}

.nav-item:hover {
  color: var(--text-accent);
}

/* ==================== Toast ==================== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--toast-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--toast-border);
  color: var(--text-primary);
  padding: 16px 32px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(var(--accent-primary-rgb), 0.1);
  letter-spacing: -0.2px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.loading-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--toast-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--toast-border);
  color: var(--text-primary);
  padding: 32px 48px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 9999;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(var(--accent-primary-rgb), 0.08);
}

.loading-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.loading-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border: 3px solid var(--spinner-track);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  box-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.15);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== Empty State ==================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
  grid-column: 1 / -1;
  font-family: 'Sora', sans-serif;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .env-cards-container {
    padding: 12px;
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .env-version-card {
    padding: 20px;
    border-radius: 16px;
  }

  .app-tabs {
    padding: 12px 16px;
  }

  .page-header {
    padding: 0 16px;
  }

  .btn-header-action span {
    display: none;
  }

  .btn-header-action {
    padding: 7px 10px;
  }

  .env-version-card::after {
    display: none;
  }
}

/* ==================== Smooth Scroll ==================== */
html {
  scroll-behavior: smooth;
}

/* ==================== Selection ==================== */
::selection {
  background: rgba(var(--accent-primary-rgb), 0.2);
  color: var(--text-primary);
}

/* ==================== Focus Visible ==================== */
*:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==================== Scrollbar Styling ==================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-subtle);
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-primary-rgb), 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-primary-rgb), 0.5);
}
