/* Custom Variables & Theme Setup */
:root {
  --bg-color: #0b0714;
  --panel-bg: rgba(22, 14, 38, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(157, 78, 221, 0.2);
  --text-main: #f3effa;
  --text-muted: #9f93ba;
  
  --primary: #9d4edd;
  --primary-glow: rgba(157, 78, 221, 0.6);
  --primary-hover: #b57cff;
  
  --secondary: #00f5d4;
  --secondary-glow: rgba(0, 245, 212, 0.4);
  
  --danger: #ff477e;
  --danger-glow: rgba(255, 71, 126, 0.4);
  
  --success: #38b000;
  --success-glow: rgba(56, 176, 0, 0.4);

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Background Ambient Lighting */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.45;
}

.glow-1 {
  background: radial-gradient(circle, var(--primary) 0%, rgba(123, 44, 191, 0) 70%);
  width: 50vw;
  height: 50vw;
  top: -10vw;
  left: -10vw;
  animation: floatAmbient 18s infinite alternate ease-in-out;
}

.glow-2 {
  background: radial-gradient(circle, var(--secondary) 0%, rgba(0, 245, 212, 0) 70%);
  width: 45vw;
  height: 45vw;
  bottom: -10vw;
  right: -10vw;
  animation: floatAmbient 22s infinite alternate-reverse ease-in-out;
}

.glow-3 {
  background: radial-gradient(circle, #7b2cbf 0%, rgba(255, 0, 128, 0) 70%);
  width: 35vw;
  height: 35vw;
  top: 40%;
  left: 35%;
  opacity: 0.25;
  animation: pulseAmbient 10s infinite alternate ease-in-out;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 80px) scale(1.1); }
}

@keyframes pulseAmbient {
  0% { opacity: 0.15; transform: scale(0.9); }
  100% { opacity: 0.35; transform: scale(1.1); }
}

/* App Wrapper */
.app-container {
  width: 100%;
  max-width: 620px;
  padding: 24px 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header styling */
.app-header {
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.logo-icon {
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(157, 78, 221, 0.4));
}

.logo h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, #e1d8f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo h1 span {
  background: linear-gradient(to right, var(--primary-hover), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* Glassmorphism Cards */
.card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 
              inset 0 1px 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.45), 
              inset 0 1px 1px rgba(255, 255, 255, 0.12),
              0 0 24px rgba(157, 78, 221, 0.05);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  background: linear-gradient(to right, #ffffff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Tab controls */
.tab-controls {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 28px;
  position: relative;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: #ffffff;
}

/* Sliding slider for tabs */
.tab-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.85) 0%, rgba(123, 44, 191, 0.85) 100%);
  box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
  border-radius: 10px;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tab Views */
.tab-view {
  display: none;
}

.tab-view.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* Drag Zone Styling */
.drag-zone {
  border: 2px dashed rgba(157, 78, 221, 0.35);
  border-radius: 20px;
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(157, 78, 221, 0.02);
  transition: var(--transition-smooth);
  position: relative;
}

.drag-zone:hover, .drag-zone.dragover {
  border-color: var(--secondary);
  background: rgba(0, 245, 212, 0.04);
  box-shadow: inset 0 0 20px rgba(0, 245, 212, 0.05);
}

.hidden-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon-wrapper {
  width: 72px;
  height: 72px;
  background: rgba(157, 78, 221, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  border: 1px solid rgba(157, 78, 221, 0.2);
  transition: var(--transition-smooth);
}

.drag-zone:hover .upload-icon-wrapper, .drag-zone.dragover .upload-icon-wrapper {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--secondary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 245, 212, 0.25);
}

.drag-icon {
  font-size: 2rem;
  color: var(--primary-hover);
  transition: var(--transition-smooth);
}

.drag-zone:hover .drag-icon, .drag-zone.dragover .drag-icon {
  color: var(--secondary);
}

.drag-zone-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.drag-zone-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.browse-link {
  color: var(--secondary);
  font-weight: 500;
  text-decoration: underline;
}

.file-size-hint {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* File Info Box */
.file-info-container {
  margin-top: 20px;
  animation: slideUp 0.3s ease;
}

.file-info-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  gap: 16px;
  margin-bottom: 18px;
}

.file-icon-type {
  width: 44px;
  height: 44px;
  background: rgba(157, 78, 221, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-hover);
  font-size: 1.3rem;
  border: 1px solid rgba(157, 78, 221, 0.25);
}

.file-metadata {
  flex: 1;
  min-width: 0;
}

.file-metadata h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.file-metadata p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Button styles */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #7b2cbf 100%);
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(157, 78, 221, 0.8);
}

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

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  background: rgba(255, 71, 126, 0.1);
  color: var(--danger);
}

.btn-danger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: rgba(255, 71, 126, 0.1);
  border: 1px solid rgba(255, 71, 126, 0.2);
  color: var(--danger);
  padding: 14px 24px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 24px;
}

.btn-danger:hover {
  background: var(--danger);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--danger-glow);
  border-color: transparent;
}

/* Share code display container */
.share-container {
  margin-top: 24px;
  animation: slideUp 0.35s ease;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.share-instruction {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 16px;
}

.code-display-wrapper {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.code-box {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 4px;
  text-align: center;
  padding: 10px;
  color: var(--secondary);
  text-shadow: 0 0 10px rgba(0, 245, 212, 0.3);
}

.qr-and-link {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 18px;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.qrcode-wrapper {
  background: #ffffff;
  padding: 8px;
  border-radius: 10px;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qrcode-wrapper img {
  width: 100% !important;
  height: 100% !important;
}

.share-link-wrapper {
  flex: 1;
  min-width: 0;
}

.share-link-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.link-copy-box {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.link-copy-box span {
  font-size: 0.85rem;
  color: var(--text-main);
  opacity: 0.8;
  font-family: var(--font-body);
}

.btn-icon-copy {
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.btn-icon-copy:hover {
  transform: scale(1.1);
  color: #ffffff;
  text-shadow: 0 0 8px var(--secondary);
}

.waiting-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.waiting-animation p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pulse-loader {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.7);
  animation: pulseLoad 1.6s infinite;
}

@keyframes pulseLoad {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(0, 245, 212, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 245, 212, 0);
  }
}

/* PIN Input styles */
.receive-instruction {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 24px;
}

.code-input-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.pin-input {
  width: 48px;
  height: 58px;
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  color: #ffffff;
  outline: none;
  transition: var(--transition-smooth);
}

.pin-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  background: rgba(157, 78, 221, 0.05);
}

.pin-separator {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 2px;
}

/* Status message for receive search */
.status-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 16px;
  animation: fadeIn 0.3s ease;
}

.status-msg i {
  color: var(--secondary);
}

/* Status Banner */
.status-banner {
  background: rgba(157, 78, 221, 0.15);
  border: 1px solid rgba(157, 78, 221, 0.2);
  border-radius: 12px;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.status-banner.error {
  background: rgba(255, 71, 126, 0.1);
  border-color: rgba(255, 71, 126, 0.2);
  color: #ff6b9d;
}

/* Transfer Card details */
.transfer-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 12px;
  gap: 16px;
}

.transfer-meta span:first-child {
  max-width: 60%;
}

.progress-bar-container {
  height: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-glow {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 0 10px var(--secondary-glow);
  border-radius: 6px;
  transition: width 0.1s linear;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

/* P2P Flow Visualization styling */
.p2p-visualizer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0;
  padding: 10px 0;
}

.node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 80px;
}

.node-icon {
  font-size: 1.8rem;
  color: var(--text-muted);
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.sender-node .node-icon {
  color: var(--primary-hover);
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.2);
  border-color: rgba(157, 78, 221, 0.4);
}

.receiver-node .node-icon {
  color: var(--secondary);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.2);
  border-color: rgba(0, 245, 212, 0.4);
}

.node-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.transfer-pipeline {
  flex: 1;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 12px;
}

.transfer-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: translateY(-50%);
  opacity: 0.6;
}

.file-floating {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  animation: floatFile 2.5s infinite ease-in-out;
  display: none; /* Controlled by JS during actual send/receive */
}

.animated-file-icon {
  font-size: 1.4rem;
  color: var(--secondary);
  filter: drop-shadow(0 0 8px var(--secondary));
}

@keyframes floatFile {
  0% { left: 10%; transform: translateY(-50%) rotate(0deg); }
  50% { left: 90%; transform: translateY(-65%) rotate(180deg); }
  100% { left: 10%; transform: translateY(-50%) rotate(360deg); }
}

.particles-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.particle {
  position: absolute;
  top: calc(50% - 3px);
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--secondary);
  animation: streamParticle 2s infinite linear;
}

.particle:nth-child(2) {
  animation-delay: 0.6s;
}

.particle:nth-child(3) {
  animation-delay: 1.2s;
}

@keyframes streamParticle {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Success Card details */
.success-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(56, 176, 0, 0.2);
  border-radius: 50%;
  animation: spinSuccess 4s infinite linear;
  border-top-color: var(--success);
}

.success-check {
  font-size: 2.2rem;
  color: var(--success);
  filter: drop-shadow(0 0 10px var(--success-glow));
  animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes spinSuccess {
  100% { transform: rotate(360deg); }
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
  background: linear-gradient(to right, #ffffff, #a5ffd6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-subtitle {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.success-file-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(56, 176, 0, 0.05);
  border: 1px solid rgba(56, 176, 0, 0.15);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 28px;
}

.success-file-icon {
  font-size: 1.6rem;
  color: var(--success);
}

.success-file-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.success-file-details span:first-child {
  font-size: 0.95rem;
}

.success-file-details span:last-child {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Explainer Section styling */
.explain-section {
  margin-top: 16px;
}

.explain-section h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-align: center;
}

.explain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.explain-item {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 20px;
}

.explain-icon {
  font-size: 1.4rem;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.explain-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.explain-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Footer styling */
.app-footer {
  text-align: center;
  padding: 16px 0;
  margin-top: auto;
}

.app-footer p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.2);
}

/* Helper Utility Classes */
.hidden {
  display: none !important;
}

.font-semibold {
  font-weight: 600;
}

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (min-width: 600px) {
  .explain-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .explain-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 12px;
  }
  
  .explain-icon {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 8px;
  }
  
  .app-container {
    padding: 44px 16px;
  }
}
