/* ============================================================
   CSS VARIABLES & RESET
============================================================ */
:root {
  --bg-primary: #0a0a14;
  --bg-secondary: #12121f;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(99, 102, 241, 0.4);
  --text-primary: #f0f0ff;
  --text-secondary: #a0a0c0;
  --text-muted: #6060a0;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --glass: rgba(15, 15, 30, 0.7);
  --shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #f0f2ff;
  --bg-secondary: #e4e8ff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --border: rgba(99, 102, 241, 0.15);
  --border-glow: rgba(99, 102, 241, 0.3);
  --text-primary: #1a1a3e;
  --text-secondary: #4a4a7a;
  --text-muted: #8080b0;
  --glass: rgba(240, 242, 255, 0.8);
  --shadow: 0 25px 50px rgba(99, 102, 241, 0.15);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* ============================================================
   ANIMATED BACKGROUND ORBS
============================================================ */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orbs::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
  top: -200px;
  left: -200px;
  animation: float1 12s ease-in-out infinite;
}

.bg-orbs::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 70%);
  bottom: -150px;
  right: -100px;
  animation: float2 15s ease-in-out infinite;
}

@keyframes float1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(60px, 40px) scale(1.1);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-50px, -30px) scale(1.08);
  }
}

/* ============================================================
   LAYOUT
============================================================ */
.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   HEADER / NAVBAR
============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--glass);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: background var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.75rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.3s;
}

.pulse-dot.active {
  background: var(--success);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   NAV BUTTONS (Home & Scanner)
============================================================ */
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.15rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.45), 0 1px 3px rgba(0,0,0,0.3);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.28s;
}

.nav-btn:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6), 0 2px 8px rgba(0,0,0,0.3);
}

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

.nav-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.4);
}

.nav-btn.active {
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.5), 0 6px 20px rgba(124, 58, 237, 0.5);
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ============================================================
   API KEY SECTION
============================================================ */
.api-section {
  margin-bottom: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.card-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.input-field {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition);
}

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

.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

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

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-danger {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid rgba(239, 68, 68, 0.3);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  transform: translateY(-2px);
}

/* ============================================================
   MAIN GRID
============================================================ */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CAMERA SECTION
============================================================ */
.camera-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
}

#webcam-container {
  width: 100%;
  height: 100%;
  position: relative;
}

#webcam-container canvas,
#webcam-container video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.camera-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(5px);
  transition: opacity 0.5s;
}

.camera-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.camera-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  animation: camera-bounce 2s ease-in-out infinite;
}

@keyframes camera-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.camera-overlay p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  padding: 0 1rem;
}

/* Scan corner decorations */
.scan-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.6;
  animation: scan-pulse 2s ease-in-out infinite;
}

@keyframes scan-pulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.9;
  }
}

.scan-corner.tl {
  top: 12px;
  left: 12px;
  border-width: 3px 0 0 3px;
  border-radius: 4px 0 0 0;
}

.scan-corner.tr {
  top: 12px;
  right: 12px;
  border-width: 3px 3px 0 0;
  border-radius: 0 4px 0 0;
}

.scan-corner.bl {
  bottom: 12px;
  left: 12px;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 4px;
}

.scan-corner.br {
  bottom: 12px;
  right: 12px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 4px 0;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  animation: scan-sweep 3s ease-in-out infinite;
}

@keyframes scan-sweep {
  0% {
    top: 10%;
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    top: 90%;
    opacity: 0;
  }
}

.detected-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.detected-label.visible {
  opacity: 1;
}

/* ============================================================
   RESULTS / CONFIDENCE BARS
============================================================ */
.results-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.confidence-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.confidence-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

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

.confidence-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.confidence-pct {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}

.confidence-bar-bg {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 100px;
  overflow: hidden;
}

.confidence-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.confidence-bar-fill.high {
  background: linear-gradient(90deg, var(--success), #34d399);
}

/* ============================================================
   GEMINI SECTION
============================================================ */
.gemini-section {
  margin-bottom: 2rem;
}

.gemini-card {
  position: relative;
  overflow: hidden;
}

.gemini-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
}

.gemini-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.gemini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4285f4, #34a853, #fbbc04, #ea4335);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.gemini-meta {
  flex: 1;
}

.gemini-meta strong {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
  color: var(--text-primary);
}

.gemini-meta span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gemini-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.dots-loader {
  display: flex;
  gap: 4px;
}

.dots-loader span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-bounce 1.2s ease-in-out infinite;
}

.dots-loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.dots-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dot-bounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.gemini-content {
  min-height: 80px;
}

.language-block {
  margin-bottom: 1rem;
}

.language-block:last-child {
  margin-bottom: 0;
}

.lang-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}

.lang-tag.id {
  background: rgba(220, 38, 38, 0.15);
  color: #f87171;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.lang-tag.en {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.lang-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

/* ============================================================
   PLACEHOLDER MESSAGE
============================================================ */
.placeholder-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  gap: 0.75rem;
}

.placeholder-msg .icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

.placeholder-msg p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   DETECTED OBJECT BADGE
============================================================ */
.detected-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  padding: 0.35rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a5b4fc;
}

/* ============================================================
   CONTROLS
============================================================ */
.controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================================
   TOAST NOTIFICATIONS
============================================================ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  box-shadow: var(--shadow);
  max-width: 300px;
  animation: toast-in 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.3);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.3);
}

@keyframes toast-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  text-align: center;
  padding: 2rem 0 3rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ============================================================
   ANIMATION UTILITIES
============================================================ */
.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVE FIXES
============================================================ */
@media (max-width: 480px) {
  .input-group {
    flex-direction: column;
  }

  .input-group .btn-primary {
    width: 100%;
  }

  .controls {
    flex-direction: column;
  }

  .controls .btn-primary,
  .controls .btn-danger {
    width: 100%;
    text-align: center;
  }

  .badge-status span {
    display: none;
  }
}

/* ============================================================
   INTERACTIVE HUD & FUTURISTIC EFFECTS
============================================================ */
.camera-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-size: 33.33% 33.33%;
  background-image: 
    linear-gradient(to right, rgba(99, 102, 241, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.15) 1px, transparent 1px);
}

.camera-hud-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 3;
}

.hud-badge {
  background: rgba(10, 10, 20, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent-3);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hud-badge.rec {
  color: #ef4444;
  font-weight: bold;
}

.pulse-red {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: pulse-red-anim 1s infinite alternate;
}

@keyframes pulse-red-anim {
  from { opacity: 0.3; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.1); }
}

/* Audio & Text to Speech Styles */
.btn-speak {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition);
}

.btn-speak:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.15);
}

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

/* Interactive Card Glow Effect on hover */
.card {
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, var(--border-glow), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.2;
  transition: opacity 0.5s ease;
}

.card:hover::after {
  opacity: 1;
}

/* Specific item glow */
.supported-item {
  transition: all var(--transition);
  cursor: pointer;
}

.supported-item:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--border-glow) !important;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}