/* ===================================
   Vanizz - Clean Minimal Design System
   =================================== */

.btn-storage-action.comment {
  position: relative;
}

.btn-storage-action.comment.has-notification::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
}

/* Expiry Banner */
.expiry-banner {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.1);
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.expiry-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.expiry-icon {
  color: #f97316;
  /* Orange */
  display: flex;
  align-items: center;
}

.expiry-text {
  display: flex;
  flex-direction: column;
}

.expiry-text strong {
  color: #9a3412;
  font-size: 0.95rem;
  line-height: 1.2;
}

.expiry-text span {
  color: #c2410c;
  font-size: 0.85rem;
}

#graceCountdown {
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  background: rgba(249, 115, 22, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-download-all-sm {
  background: #f97316;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-download-all-sm:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

:root {
  /* Color Palette - Light Minimal Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e2e8f0;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.95);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Cyan-Mint Accent Colors */
  --accent-primary: #06b6d4;
  --accent-secondary: #0d9488;
  /* Teal/Mint shade */
  --accent-light: #f0fdfa;
  /* Very light mint */
  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);

  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  --border-color: rgba(226, 232, 240, 1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-2xl: 48px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Clean Background - Premium Radial Effects */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background:
    radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 40%),
    #f8fafc;
  display: block;
}

.floating-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.4;
  display: block;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(6, 182, 212, 0.08);
  top: -100px;
  right: -100px;
  animation: float 20s infinite alternate;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(6, 182, 212, 0.05);
  bottom: -50px;
  left: -50px;
  animation: float 15s infinite alternate-reverse;
}

@keyframes float {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(30px, 30px);
  }
}

/* Container */
.container {
  max-width: 1200px;
  /* Increased for better horizontal breathing room */
  margin: 0 auto;
  padding: var(--spacing-md);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 100px;
}

/* ===== HEADER ===== */
.header {
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 0 36px 36px;
}

.header.alone {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18) 0%, rgba(239, 68, 68, 0.08) 100%);
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: 0 4px 20px -5px rgba(239, 68, 68, 0.1);
}

.header.connected {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 4px 20px -5px rgba(16, 185, 129, 0.1);
}

/* Centered Header State (for Setup View) */
.header.header-centered .header-row {
  justify-content: center;
}

.header.header-centered .header-left {
  flex: 0 0 auto;
}

.header.header-centered .logo-section {
  margin-right: 0 !important;
}

.header.header-centered .header-right {
  display: none;
}

.header.header-centered .logo-section img {
  max-height: 70px !important;
}


/* Header Row Layout */
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  position: relative;
  width: 100%;
}

.header-left,
.header-right {
  flex: 1;
  /* These sections will take equal space to keep center balanced */
  display: flex;
  align-items: center;
}

.header-left {
  justify-content: flex-start;
  text-align: left;
}

.header-right {
  justify-content: flex-end;
  text-align: right;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.session-pill-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  animation: fadeIn 0.4s ease;
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo-section img {
  height: auto;
  max-height: 80px;
  /* Reduced from 160px for better proportion */
  width: auto;
  max-width: 200px;
  mix-blend-mode: multiply;
  display: block;
}

.logo svg {
  width: 32px;
  height: 32px;
  color: var(--accent-primary);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}



.session-user-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-full);
  padding: 4px 16px 4px 4px;
  /* Padding to embrace the circle on left */
}

.user-logo-circle {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
  z-index: 2;
  border: none;
}

.session-user-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  font-weight: 700;
  color: var(--accent-primary);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-left: 0;
  z-index: 1;
}

.user-role-badge {
  background: var(--accent-primary);
  color: white !important;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(6, 182, 212, 0.4);
}

.session-url-display {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(226, 232, 240, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.session-url-display .url-code {
  color: var(--text-primary);
  font-weight: 700;
  margin-left: 2px;
}

.user-count-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.connected .user-count-badge {
  background: var(--success-light);
  color: var(--success-dark);
  border-color: var(--success);
}

.alone .user-count-badge {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-end-session {
  background: rgba(239, 68, 68, 0.1);
  border: none;
  color: var(--error);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-left: var(--spacing-xs);
}

.btn-end-session:hover {
  background: var(--error);
  color: white;
}

/* Settings Button */
.btn-settings {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--bg-tertiary);
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-settings:hover {
  background: var(--accent-light);
  color: var(--accent-primary);
  transform: rotate(45deg);
}

/* Premium Pill Countdown Timer */
.header-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 10px 18px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1.5px solid #f1f5f9;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #334155;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  min-width: 100px;
  margin: 0 8px;
}

/* Alarm State (Expired) */
.header-countdown.alarm {
  background: #fef2f2;
  border-color: #fee2e2;
  color: #ef4444;
  animation: countdownPulse 1.5s ease-in-out infinite;
}

@keyframes countdownPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.15);
  }
}

.btn-settings svg {
  width: 18px;
  height: 18px;
}

/* Pro Button */
.btn-pro {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border: none;
  border-radius: var(--radius-full);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-pro:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* View Sections */
.view-section {
  display: none;
}

.view-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-header {
  text-align: center;
  margin-bottom: 24px;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.view-subtitle {
  color: #64748b;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ===== GLASS CARD - Now Clean White ===== */
.glass-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 100%;
  border: 1.5px solid #f1f5f9;
  border-radius: var(--radius-2xl);
  padding: var(--spacing-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.setup-card {
  text-align: center;
  padding: 35px 30px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 25px 50px -12px rgba(6, 182, 212, 0.1),
    0 10px 20px -5px rgba(0, 0, 0, 0.04);
  max-width: 600px;
  margin: 0 auto;
}

.setup-icon {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 24px;
  margin: 0 auto 30px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(241, 245, 249, 1);
}

.setup-icon svg {
  width: 44px;
  height: 44px;
  color: var(--accent-primary);
  filter: drop-shadow(0 4px 6px rgba(6, 182, 212, 0.2));
}

.setup-card h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.setup-card>p {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 25px;
}

.setup-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* Mobile Promo Card - Premium Feature Hook */
.mobile-promo-card {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(to right, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-promo-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(to left, rgba(6, 182, 212, 0.03), transparent);
}

.mobile-promo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

.mobile-promo-icon {
  width: 52px;
  height: 52px;
  background: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.mobile-promo-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.mobile-promo-content p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.divider {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.join-input-group {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.join-input-group input {
  flex: 1;
  padding: 16px 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  font-size: 1.1rem;
  font-family: 'Fira Code', monospace;
  text-align: center;
  letter-spacing: 0.25em;
  color: #0f172a;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
}

.join-input-group input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.08);
  transform: translateY(-1px);
}

.join-input-group input::placeholder {
  letter-spacing: normal;
  color: #94a3b8;
  font-weight: 400;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 30px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #0891b2 100%);
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px -4px rgba(6, 182, 212, 0.4);
  letter-spacing: 0.01em;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -5px rgba(6, 182, 212, 0.5);
  filter: brightness(1.05);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: var(--bg-tertiary);
  border: none;
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: #cbd5e1;
}

/* ===== DROP VIEW - Upload Zone ===== */
.upload-zone {
  position: relative;
  border: 3px dashed var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: var(--bg-primary);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent-primary);
  background: var(--accent-light);
  transform: scale(1.01);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--spacing-md);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.upload-zone:hover .upload-icon {
  color: var(--accent-primary);
}

.upload-zone h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.upload-zone p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* File List */
.file-list {
  margin-top: var(--spacing-lg);
}

.file-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-sm);
  transition: all var(--transition-fast);
  animation: slideIn 0.3s ease;
}

.file-item:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.file-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.file-remove {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.file-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* Options Section */
.options-section {
  margin-top: var(--spacing-lg);
}

.option-group {
  margin-bottom: var(--spacing-md);
}

.option-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text-muted);
  pointer-events: none;
}

select,
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  appearance: none;
  transition: all var(--transition-fast);
}

select:focus,
input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

/* Toggle Switch */
.toggle-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
}

.toggle-option span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--accent-primary);
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(22px);
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--spacing-sm);
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width var(--transition-normal);
}

/* ===== ONLINE STORAGE SECTION ===== */
#shareSection {
  display: none;
  margin-top: var(--spacing-lg);
}

#shareSection.active {
  display: block;
}

.storage-card {
  padding: 0 !important;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.storage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.storage-header .header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.storage-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-icon-only {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-icon-only:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Connection Banner */
.connection-banner {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin: var(--spacing-md) var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--success-light);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
}

.connection-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success);
  border-radius: 50%;
  color: white;
  flex-shrink: 0;
}

#transferModeText {
  font-weight: 600;
  color: var(--text-primary);
}

.status-divider {
  width: 1px;
  height: 20px;
  background: rgba(0, 0, 0, 0.1);
}

#statusText {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Stats Grid */
.stats-grid {
  display: flex;
  justify-content: space-around;
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Capacity Section */
.capacity-section {
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
}

.capacity-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}

.capacity-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.capacity-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Files Container */
.files-container {
  padding: var(--spacing-lg);
  background: var(--bg-primary);
  min-height: 150px;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.shared-files-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.shared-file-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.shared-file-item:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.shared-file-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.shared-file-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-primary);
}

.shared-file-info {
  flex: 1;
  min-width: 0;
}

.shared-file-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shared-file-size {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.shared-file-actions {
  display: flex;
  gap: 4px;
}

.shared-file-actions button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shared-file-actions button:hover {
  background: var(--bg-primary);
  color: var(--accent-primary);
}

.shared-file-actions button.delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  color: var(--text-muted);
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Storage Footer */
.storage-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.btn-delete-full {
  width: 100%;
  padding: var(--spacing-md);
  background: rgba(239, 68, 68, 0.1);
  border: none;
  border-radius: var(--radius-md);
  color: var(--error);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-delete-full:hover {
  background: var(--error);
  color: white;
}

/* FAB Container for Hover Logic */
.fab-container {
  position: fixed;
  bottom: 100px;
  right: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-sm);
  z-index: 100;
  padding: 10px;
  /* Expands hover area */
}

/* Floating Action Button */
.fab-add {
  position: relative;
  width: 56px;
  height: 56px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 101;
}

.fab-container:hover .fab-add,
.fab-container.active .fab-add {
  transform: rotate(45deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.6);
}

.fab-add svg {
  transition: transform 0.4s ease;
}

/* Staggered transition delays for menu items */

/* ===== BOTTOM NAVIGATION/* Bottom Navigation - Now Top */
/* ===== BOTTOM NAVIGATION - Premium Corporate Overhaul ===== */
.bottom-nav {
  position: relative;
  /* top: 90px; Removed for static layout */
  left: 0;
  width: 100%;
  z-index: 90;
  /* Below modals, above content */
  background: transparent;
  padding: 20px 0;
  /* Increased padding for breathing room */
  /* pointer-events: none; Removed so it handles clicks naturally */
}

.nav-container {
  pointer-events: auto;
  /* Enable clicks on the pill itself */
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: fit-content;
  margin: 0 auto;
  gap: 4px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 6px;
  border-radius: 100px;
  border: 1.5px solid rgba(241, 245, 249, 0.8);
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.05),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
  border-color: #f1f5f9;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-item:hover {
  color: #0f172a;
  background: rgba(241, 245, 249, 0.5);
}

.nav-item.active {
  color: white;
  background: #0f172a;
  /* Dark corporate primary */
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
}

.nav-item::before {
  display: none;
  /* Remove old underline indicator */
}

/* Scroll adjustments for content - Nav is now in flow */
.main-content {
  margin-top: 0;
}

/* ===== VANIZZ INSIGHTS STYLES ===== */
.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.blog-skeleton-card {
  overflow: hidden;
  padding: 0 !important;
  margin-bottom: 40px;
}

.skeleton-img {
  height: 240px;
  background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
}

.skeleton-content {
  padding: 32px;
}

.skeleton-line {
  height: 16px;
  background: #f1f5f9;
  border-radius: 4px;
  margin-bottom: 16px;
  animation: skeletonPulse 1.5s infinite;
}

.skeleton-line.title {
  height: 28px;
  width: 70%;
  margin-bottom: 24px;
}

.skeleton-line.text.short {
  width: 40%;
}

.skeleton-footer {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.skeleton-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  animation: skeletonPulse 1.5s infinite;
}

.skeleton-line.meta {
  width: 100px;
  margin: 0;
}

@keyframes skeletonPulse {
  0% {
    opacity: 0.6;
    background-position: 200% 0;
  }

  100% {
    opacity: 1;
    background-position: -200% 0;
  }
}

.blog-coming-soon {
  text-align: center;
  padding: 60px 40px;
}

.coming-soon-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-primary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.blog-coming-soon h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.blog-coming-soon p {
  color: #64748b;
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.notify-btn-wrapper {
  display: flex;
  justify-content: center;
}

.btn-primary-pill.blog-notify {
  background: #0f172a;
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
}

.btn-primary-pill.blog-notify:hover {
  background: #1e293b;
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.4);
}

/* Insights Listing Redesign */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
}

.insight-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
}

.insight-image-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.insight-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.insight-card:hover .insight-image {
  transform: scale(1.05);
}

.insight-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.insight-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.meta-dot {
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.5;
}

.insight-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

.insight-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 25px;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-read-more {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.btn-read-more:hover {
  gap: 12px;
  color: #0369a1;
}

@media (max-width: 640px) {
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Foundational Modal & Overlay - Single Unified Source */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  z-index: 10000;
  /* Always on top */
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-content {
  background: white;
  border-radius: 24px;
  position: relative;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  color: #64748b;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 110;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Article Modal Premium Styles */
.article-modal-content {
  max-width: 800px !important;
  width: 95%;
  max-height: 90vh;
  padding: 0;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-modal-content::-webkit-scrollbar {
  width: 6px;
}

.article-modal-content::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 10px;
}

.article-modal-header {
  padding: 40px 40px 20px;
}

.article-modal-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 15px 0;
  letter-spacing: -0.03em;
}

.article-modal-hero {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.article-modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-modal-text {
  padding: 40px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #334155;
}

.article-modal-text p {
  margin-bottom: 24px;
}

.article-modal-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 32px 0 16px;
  letter-spacing: -0.02em;
}

.article-modal-text strong {
  color: #0f172a;
  font-weight: 700;
}

@media (max-width: 768px) {
  .article-modal-header {
    padding: 30px 20px 15px;
  }

  .article-modal-title {
    font-size: 1.75rem;
  }

  .article-modal-text {
    padding: 25px 20px;
    font-size: 1rem;
  }
}

/* Responsive Hide floating nav class - we use our new corporate one */
.floating-nav {
  /* This class stays but we overhauled the styles above */
  pointer-events: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    top: auto;
    bottom: 20px;
  }

  .nav-item span {
    display: none;
    /* Mobile clean look: icons only */
  }

  .nav-item {
    padding: 12px;
  }
}

/* ===== VANIZZ VIEW ===== */
.vanizz-info {
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.link-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius-2xl);
  margin: 0 auto var(--spacing-lg);
}

.link-icon svg {
  width: 40px;
  height: 40px;
  color: var(--accent-primary);
}

.vanizz-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.vanizz-info>p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 280px;
  margin: 0 auto var(--spacing-xl);
}

.vanizz-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* ===== SCAN VIEW ===== */
.scan-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.scan-option-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.scan-option-item:hover {
  border-color: var(--accent-primary);
  background: var(--accent-light);
}

.scan-option-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.scan-option-text h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.scan-option-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== TEXT VIEW ===== */
.text-share-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.text-share-form textarea {
  width: 100%;
  min-height: 160px;
  padding: var(--spacing-md);
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  color: var(--text-primary);
  resize: vertical;
  transition: all var(--transition-fast);
}

.text-share-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.text-share-form textarea::placeholder {
  color: var(--text-muted);
}

/* ===== MODALS ===== */
/* Selection Modal - Uses unified modal classes above */
.selection-modal {
  padding: var(--spacing-lg);
}

.selection-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.selection-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.selection-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.selection-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.selection-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.selection-option:hover {
  border-color: var(--accent-primary);
  background: var(--accent-light);
}

.selection-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.selection-icon.scan {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.selection-text h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.selection-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Pro Modal */
.pro-modal {
  text-align: center;
}

.pro-header {
  margin-bottom: var(--spacing-lg);
}

.pro-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: var(--radius-lg);
  margin: 0 auto var(--spacing-md);
}

.pro-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.pro-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pro-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pro-features {
  margin: var(--spacing-lg) 0;
  text-align: left;
}

.pro-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border-color);
}

.pro-feature:last-child {
  border-bottom: none;
}

.feat-icon {
  font-size: 1.5rem;
}

.feat-details strong {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.feat-details span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pro-price-card {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.price-val {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pro-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--spacing-md);
}

/* ===== SCANNER OVERLAY ===== */
.scanner-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 200;
  display: none;
}

.scanner-overlay.active {
  display: block;
}

.scanner-view {
  display: none;
  height: 100%;
  flex-direction: column;
}

.scanner-view.active {
  display: flex;
}

.camera-header,
.edit-header,
.pages-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(0, 0, 0, 0.5);
  color: white;
}

.camera-title,
.edit-title,
.pages-title {
  font-weight: 600;
}

.scanner-btn-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.scanner-btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
}

.scanner-btn-text {
  background: transparent;
  border: none;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: var(--spacing-sm) var(--spacing-md);
}

.scanner-btn-text.primary {
  color: var(--accent-primary);
  font-weight: 600;
}

.camera-preview-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

#cameraPreview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-frame {
  position: absolute;
  inset: 15%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
}

.frame-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: white;
  border-style: solid;
}

.frame-corner.top-left {
  top: -2px;
  left: -2px;
  border-width: 3px 0 0 3px;
  border-radius: 4px 0 0 0;
}

.frame-corner.top-right {
  top: -2px;
  right: -2px;
  border-width: 3px 3px 0 0;
  border-radius: 0 4px 0 0;
}

.frame-corner.bottom-left {
  bottom: -2px;
  left: -2px;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 4px;
}

.frame-corner.bottom-right {
  bottom: -2px;
  right: -2px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 4px 0;
}

.camera-controls {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: var(--spacing-xl);
  background: rgba(0, 0, 0, 0.5);
}

.capture-btn {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 4px solid white;
  border-radius: 50%;
  cursor: pointer;
  padding: 4px;
}

.capture-ring {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.capture-btn:active .capture-ring {
  transform: scale(0.85);
}

/* Crop Container */
.crop-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  padding: var(--spacing-md);
}

#cropImage {
  max-width: 100%;
  max-height: 100%;
}

.edit-toolbar {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-md);
  background: rgba(0, 0, 0, 0.5);
}

.filter-bar {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.5);
}

.filter-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--spacing-sm);
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  cursor: pointer;
  min-width: 60px;
}

.filter-btn.active {
  border-color: var(--accent-primary);
  color: white;
}

.filter-preview {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #666;
}

/* Pages View */
.pages-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  overflow-y: auto;
  background: #1a1a1a;
}

.add-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--accent-primary);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

/* Export Modal */
.export-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 210;
  align-items: flex-end;
}

.export-modal.active {
  display: flex;
}

.export-modal-content {
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding: var(--spacing-lg);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.export-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.export-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.export-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.export-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.export-option:hover {
  border-color: var(--accent-primary);
}

.export-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.export-icon.pdf {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.export-icon.image {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.export-icon.gallery {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

/* ===== TEXT VIEW - Saved Texts ===== */
.text-view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid #f1f5f9;
}

.text-view-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1;
}

.text-view-subtitle {
  color: #64748b;
  font-size: 1rem;
  font-weight: 500;
  margin: 8px 0 0 0;
}

.btn-primary-pill {
  display: flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--accent-primary, #06b6d4);
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: white;
  border: none;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
}

.btn-primary-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
  filter: brightness(1.05);
}

.btn-primary-pill:active {
  transform: translateY(0);
}

/* Compose Area */
.add-text-form-wrapper {
  margin-bottom: 48px;
  animation: slideFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.compose-card {
  background: white;
  border-radius: 24px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
}

.compose-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.compose-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.char-count {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 700;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 8px;
}

.compose-card textarea {
  width: 100%;
  padding: 20px;
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  font-size: 1.05rem;
  color: #1e293b;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  resize: vertical;
  background: #f8fafc;
  transition: all 0.3s ease;
  margin-bottom: 24px;
}

.compose-card textarea:focus {
  outline: none;
  background: white;
  border-color: var(--accent-primary, #06b6d4);
  box-shadow: 0 0 0 6px rgba(6, 182, 212, 0.12);
}

.compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.btn-cancel-text {
  padding: 12px 24px;
  background: #f1f5f9;
  color: #64748b;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel-text:hover {
  background: #e2e8f0;
  color: #334155;
}

.btn-save-text {
  display: flex;
  align-items: center;
  padding: 12px 28px;
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-save-text:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(1);
}

.btn-save-text:not(:disabled):hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.2);
}

/* Saved Texts Grid */
.saved-texts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.text-card-item {
  background: white;
  border-radius: 24px;
  padding: 28px;
  border: 1.5px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.text-card-item:hover {
  transform: translateY(-6px);
  border-color: #e2e8f0;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
}

.text-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, transparent 50%, rgba(6, 182, 212, 0.05) 50%);
  border-radius: 0 0 0 100%;
}

.text-card-content {
  font-size: 1rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 28px;
  white-space: pre-wrap;
  word-wrap: break-word;
  flex: 1;
}

.text-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1.5px solid #f8fafc;
}

.text-card-time {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.text-card-actions {
  display: flex;
  gap: 8px;
}

.text-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #f1f5f9;
  background: white;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.text-action-btn:hover {
  background: #f8fafc;
  color: var(--accent-primary, #06b6d4);
  border-color: #e2e8f0;
  transform: scale(1.05);
}

.text-action-btn.delete:hover {
  color: #ef4444;
  border-color: #fee2e2;
  background: #fff5f5;
}

.text-action-btn svg {
  width: 18px;
  height: 18px;
}

/* Empty State */
.text-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 100px 40px;
  background: white;
  border-radius: 32px;
  border: 2px dashed #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.8s ease;
}

.empty-text-illustration {
  margin-bottom: 24px;
  padding: 24px;
  background: #f8fafc;
  border-radius: 50%;
  color: #cbd5e1;
}

.text-empty-state h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.text-empty-state p {
  color: #64748b;
  font-size: 1.05rem;
  max-width: 360px;
  line-height: 1.6;
}

/* Compatibility/Safety */
#textView .empty-state {
  display: none !important;
}

.text-view-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 24px 40px;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 380px) {
  .container {
    padding: var(--spacing-sm);
  }

  .setup-card {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .stats-grid {
    gap: var(--spacing-sm);
  }

  .stat-item {
    flex-direction: column;
  }
}

/* Main Content - Full Width */
.main-content {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Redesigned Session Card */
.session-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  /* Force full width */
  max-width: 100%;
  margin: 0 auto;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.status-card-cloud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: #f8fafc;
  /* Sleek gray for default */
  border-bottom: 1px solid var(--border-color);
  /* Separator line */
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  /* Top corners only */
  width: calc(100% + 48px);
  /* Stretch to edges */
  margin: -24px -24px 24px -24px;
  /* Flush top and sides */
  transition: all 0.3s ease;
}

.status-card-cloud.connected {
  background: #f0fdf4;
  /* Green background when connected */
}

.status-left {
  display: flex;
  align-items: center;
  gap: 20px;
  /* Increased gap */
}

.status-icon-wifi {
  width: 56px;
  /* Increased size */
  height: 56px;
  /* Increased size */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 50%;
  color: #ef4444 !important;
  /* Explicitly red by default */
  stroke: #ef4444 !important;
  transition: all 0.3s ease;
}

.status-card-cloud.connected .status-icon-wifi {
  color: #22c55e !important;
  /* Green color when other users are connected */
  stroke: #22c55e !important;
}

.status-icon-wifi svg {
  transition: color 0.3s ease, stroke 0.3s ease;
}

.status-card-cloud.connected .status-icon-wifi svg {
  stroke: #22c55e !important;
  /* Green stroke when connected */
}

.status-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 1.15rem;
  /* Increased font size */
}

.status-title span {
  color: #0f172a;
}

.status-subtitle {
  font-size: 0.9rem;
  /* Increased font size */
  color: #94a3b8;
  margin-top: 2px;
}

.user-pill-small {
  padding: 4px 12px;
  background: #ffe4e6;
  border-radius: var(--radius-full);
  color: #e11d48;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.status-card-cloud.connected .user-pill-small {
  background: #dcfce7;
  color: #15803d;
}

.storage-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: -12px;
}

.expiry-label {
  font-size: 0.85rem;
  color: #94a3b8;
}

.expiry-timer {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.capacity-section-minimal {
  width: 100%;
}

.capacity-bar-minimal {
  height: 6px;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 12px 0;
}

.capacity-fill-minimal {
  height: 100%;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.capacity-labels-minimal {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.files-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.files-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.refresh-btn-minimal {
  background: transparent;
  border: none;
  color: var(--accent-primary);
  cursor: pointer;
  padding: 4px;
  transition: transform 0.3s ease;
}

.refresh-btn-minimal:hover {
  transform: rotate(180deg);
}

.files-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  gap: 16px;
}

.empty-icon-folder {
  opacity: 0.5;
}

.files-empty-state p {
  color: #94a3b8;
  font-size: 0.9rem;
}

.btn-end-session-large {
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 1px solid #fee2e2;
  border-radius: var(--radius-lg);
  color: var(--error);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-end-session-large:hover {
  background: #fff1f2;
  border-color: var(--error);
}

.fab-add {
  width: 60px;
  height: 60px;
  background: var(--accent-primary);
  border-radius: 50%;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-add:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 15px 30px rgba(6, 182, 212, 0.5);
}

/* Unified Confirmation Modal System */
.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none !important;
  /* Managed by .active */
  align-items: center;
  justify-content: center;
  z-index: 20000;
  /* Ensure it's above everything */
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.confirm-modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.confirm-modal {
  background: white;
  border-radius: 24px;
  padding: 32px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.confirm-modal-overlay.active .confirm-modal {
  transform: scale(1) translateY(0);
}

.confirm-modal h3 {
  font-size: 1.25rem;
  font-weight: 700;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.confirm-modal p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 28px;
}


.confirm-modal-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #f59e0b;
}

.confirm-modal-icon.danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #ef4444;
}

.confirm-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.confirm-modal-message {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 28px;
}

.confirm-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.confirm-btn-cancel {
  flex: 1;
  padding: 14px 20px;
  background: #f1f5f9;
  border: none;
  border-radius: 12px;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Button styles are handled by subsequent chunks */

.confirm-btn-cancel {
  flex: 1;
  padding: 14px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.confirm-btn-cancel:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
  transform: translateY(-1px);
}

/* Clean up duplicate styles */

.confirm-btn-confirm {
  flex: 1;
  padding: 14px 20px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.confirm-btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.4);
  filter: brightness(1.05);
}

.confirm-btn-confirm.primary {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.confirm-btn-confirm.primary:hover {
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

/* ===== VANIZZ CARD REDESIGN ===== */
.vanizz-card {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.vanizz-icon-container {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.vanizz-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.vanizz-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.5;
}

.vanizz-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: var(--spacing-sm);
}

.vanizz-link-section {
  margin-bottom: var(--spacing-lg);
}

.vanizz-link-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 14px 20px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.vanizz-link-box:hover {
  border-color: var(--accent-primary);
  background: var(--accent-light);
}

.vanizz-link-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-secondary);
}

.vanizz-link-box svg {
  color: var(--accent-secondary);
}

.vanizz-key-section {
  margin-bottom: var(--spacing-xl);
}

.vanizz-key-box {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent-light);
  border-radius: var(--radius-lg);
}

.vanizz-key-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: 6px;
  font-family: 'Courier New', monospace;
}

.vanizz-qr-section {
  margin-bottom: var(--spacing-xl);
}

.vanizz-qr-container {
  display: inline-block;
  padding: var(--spacing-lg);
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.vanizz-guide {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  text-align: left;
  border: 1px solid var(--border-color);
}

.vanizz-guide-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.vanizz-guide-steps {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.vanizz-guide-step {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.step-number {
  width: 22px;
  height: 22px;
  background: var(--accent-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.vanizz-share-btn {
  margin-bottom: var(--spacing-lg);
}

.vanizz-join-section {
  margin-top: var(--spacing-md);
}

.vanizz-end-section {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.vanizz-end-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===== SETTINGS MODAL ===== */
.settings-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: none;
  /* Changed from flex to none by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.settings-modal-overlay.active {
  display: flex;
  /* Ensure it's flex when active */
  opacity: 1;
  visibility: visible;
}

.settings-modal {
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}

.settings-modal-overlay.active .settings-modal {
  transform: translateY(0) scale(1);
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}

.settings-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.settings-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.settings-close-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.settings-content {
  padding: var(--spacing-md);
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}

.settings-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: var(--spacing-xs);
}

.settings-item:hover {
  background: var(--bg-primary);
}

.settings-item-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.settings-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

.settings-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.settings-item>svg {
  color: var(--bg-tertiary);
}

.settings-item-danger {
  margin-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  padding-top: calc(var(--spacing-md) + var(--spacing-sm));
}

.settings-item-danger .settings-label {
  color: #ef4444;
  font-weight: 600;
}

.settings-icon-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.settings-footer {
  padding: var(--spacing-xl);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.settings-footer .version-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Global Back Link */
.back-link {
  display: block;
  text-align: center;
  margin-top: 40px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--accent-primary);
}

/* ===== SITE FOOTER ===== */
.site-footer {
  margin-top: 80px;
  padding: 40px var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  background: var(--bg-tertiary);
  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 500;
}

/* Footer Links Row - Corporate Style */
.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  font-size: 0.9rem;
}

.footer-links-row a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-links-row a:hover {
  color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.05);
}

/* Separator dots (pseudo-elements) */
.footer-links-row a:not(:last-child):not(.footer-contact-btn) {
  position: relative;
}

.footer-links-row a:not(:last-child):not(.footer-contact-btn)::after {
  content: "•";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.8em;
  opacity: 0.5;
  pointer-events: none;
}

/* Remove dot for the item before the button */
.footer-links-row a:nth-last-child(2)::after {
  display: none;
}

/* Contact Us Button distinct style */
.footer-contact-btn {
  background: transparent;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
  padding: 8px 16px !important;
  border: 1px solid transparent;
  margin-left: 0;
  border-radius: var(--radius-sm);
}

.footer-contact-btn:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: var(--text-primary) !important;
  transform: none;
  box-shadow: none;
}

/* User Role Badge */
.user-role-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 8px;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Full Screen Scanner Overlay */
.scanner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 9999;
  display: none;
  flex-direction: column;
}

.scanner-overlay.active {
  display: flex;
}

.scanner-view {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.camera-preview-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#cameraPreview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-frame {
  position: absolute;
  width: 70%;
  height: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.camera-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.camera-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  z-index: 10;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.scanner-btn-icon {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

#captureBtn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: white;
  border: 4px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.2s;
}

#captureBtn:active {
  transform: scale(0.9);
}

/* Comment Thread Styles */
.comment-item {
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.comment-sender {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent-primary);
  margin-bottom: 2px;
}

.comment-text {
  color: var(--text-primary);
}

/* User Role Badge - Matches the Yellow/Orange Pill design */
.user-role-badge {
  background: #fbbf24;
  /* Amber-400 */
  color: white !important;
  /* Override inline style if any */
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

/* Ensure it overrides inline style color */
#userRoleBadge {
  color: white !important;
}

/* =========================================
   CORPORATE SETTINGS DROPDOWN (Redesign)
   ========================================= */

.settings-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  /* Transparent for dropdown feel */
  z-index: 9998;
  /* Below modal but above page */
  display: none;
}

.settings-modal-overlay.active {
  display: block;
}

.settings-modal {
  position: absolute;
  /* Floating dropdown */
  top: 70px;
  /* Below header */
  right: 20px;
  /* Aligned with button */
  width: 320px;
  /* Compact width */
  max-width: 90vw;
  background: #ffffff;
  /* Clean white */
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  transform-origin: top right;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
  z-index: 9999;
}

/* Specific selector to ensure display: block override works */
.settings-modal-overlay.active .settings-modal {
  display: block;
  transform: scale(1);
  opacity: 1;
}

.settings-header {
  display: none;
  /* Hide header for compact dropdown look, or keep minimal */
}

/* Force Grid Layout */
.settings-info-group {
  display: flex !important;
  /* Stack vertically for dropdown */
  flex-direction: column !important;
  gap: 8px;
  padding: 8px;
  margin-bottom: 8px;
}

/* Compact Item Styling */
.settings-info-item {
  display: flex;
  flex-direction: row;
  /* Horizontal layout */
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  background: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  box-shadow: none;
  transition: background 0.2s ease;
  height: auto;
  min-height: auto;
}

.settings-info-item:hover {
  background: var(--bg-tertiary);
  transform: none;
  box-shadow: none;
}

/* Icon Styling */
.settings-icon-simple {
  margin-right: 12px;
  margin-bottom: 0;
  min-width: 36px;
  /* Slightly larger touch target */
  height: 36px;
  display: flex;
  /* Critical for centering */
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.1);
  /* Light cyan Tint */
  border-radius: 50%;
  color: var(--accent-primary, #06b6d4);
  /* Use App Theme Color */
  transition: all 0.2s ease;
}

/* Hover effect for row triggers icon glow */
.settings-info-item:hover .settings-icon-simple {
  background: var(--accent-primary, #06b6d4);
  color: white;
  box-shadow: 0 4px 10px -2px rgba(6, 182, 212, 0.4);
}

/* Text Layout */
.settings-info-text {
  display: flex;
  flex-direction: column;
  /* Label on top */
  gap: 2px;
}

/* Label Styling */
.settings-info-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  order: -1;
  /* Ensure label is first */
}

/* Value Styling */
.settings-info-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

/* End Session Button override */
.settings-item-danger.full-width-danger {
  width: 100%;
  margin-top: 10px;
  border: none;
  padding: 16px;
  background-color: #ef4444;
  background-image: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2);
  transition: all 0.2s ease;
}

.settings-item-danger.full-width-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
  filter: brightness(1.05);
  background-color: #dc2626;
}

.settings-item-danger .settings-label {
  color: white;
  font-size: 1rem;
  font-weight: 600;
}

/* Shared File Item - Inline Editing */
.shared-file-name.is-editing {
  background: white;
  border: 2px solid var(--accent-primary, #06b6d4);
  border-radius: 6px;
  padding: 4px 8px;
  margin: -6px -10px;
  outline: none;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
  z-index: 10;
  position: relative;
  min-width: 120px;
  color: #0f172a;
  font-weight: 600;
}

[contenteditable="true"] {
  cursor: text;
}

/* ==================== CONFIRM MODAL ==================== */



.confirm-modal-icon {
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--text-primary);
}

.confirm-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.confirm-modal-message {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.confirm-modal-actions {
  display: flex;
  gap: 12px;
}

.confirm-btn-cancel,
.confirm-btn-confirm {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.confirm-btn-cancel {
  background: #f1f5f9;
  color: var(--text-secondary);
}

.confirm-btn-cancel:hover {
  background: #e2e8f0;
}

.confirm-btn-confirm {
  .detail-value-box:hover .btn-copy-icon {
    background: var(--accent-primary);
    color: white;
  }

  .confirm-btn-confirm:hover {
    filter: brightness(1.1);
  }

  /* Spinner Animation */
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }

  .spinning {
    animation: spin 1s linear infinite;
    cursor: wait;
  }

  /* Header Countdown */
  .header-countdown {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    background: white;
    padding: 6px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    min-width: 80px;
    transition: all var(--transition-normal);
  }

  .header-countdown.alarm {
    color: #ef4444;
    background: #fff5f5;
    border-color: #fecaca;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
    animation: pulseAlarm 2s infinite;
  }

  @keyframes pulseAlarm {
    0% {
      box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
      box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
      box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
  }

  /* Header End Session Button */
  #headerEndSessionBtn {
    color: #ef4444;
    transition: all var(--transition-normal);
  }

  #headerEndSessionBtn:hover {
    background: #fef2f2;
    transform: translateY(-1px);
  }

  /* Shared Files List Grid (Re-applied) */
  .shared-files-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    width: 100%;
    padding-bottom: 24px;
  }

  .files-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
  }

  .add-file-tile {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 80px;
    height: 100%;
  }

  .add-file-tile:hover {
    background: rgba(6, 182, 212, 0.05);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
  }

  .shared-file-item {
    height: 100%;
  }





}

/* Safety closing brace for any previous unclosed block */

/* ===== CORPORATE VANIZZ DUAL LAYOUT (ROBUST) ===== */
.corporate-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.vanizz-header {
  margin-bottom: 40px;
  text-align: center;
}

.vanizz-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #0f172a;
  /* Fallback */
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.vanizz-subtitle {
  color: #64748b;
  font-size: 1.05rem;
}

.corporate-split-grid {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 32px;
  width: 100%;
}

.corporate-panel {
  flex: 1 1 320px;
  min-width: 300px;
  border-radius: 20px;
  padding: 32px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Panel Variations */
.join-panel {
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.join-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.app-panel {
  background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
}

.app-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(14, 165, 233, 0.15);
}

.panel-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  width: 100%;
}

.panel-icon {
  background: #f1f5f9;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  flex-shrink: 0;
}

.app-icon {
  background: #fff;
  color: #0284c7;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.panel-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* Main QR Display Box (Tighter Fit) */
.qr-display-box.main-qr {
  background: white;
  padding: 8px;
  /* Reduced from 12px */
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  /* Very subtle */
  border: 1px solid #e2e8f0;
  width: auto;
  min-width: 180px;
  max-width: 200px;
  /* Constrain max width further */
  height: auto;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Generic QR Box */
.qr-display-box {
  background: white;
  padding: 8px;
  /* Reduced from 16px */
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  margin-bottom: 20px;
  text-align: center;
  width: auto;
  min-width: 140px;
  max-width: 160px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.vanizz-qr-container {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  /* Ensure no spill */
}

.vanizz-qr-container img,
.vanizz-qr-container canvas {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  border-radius: 4px;
  /* Slight radius on the code itself */
  display: block;
  /* Remove bottom whitespace */
}

.qr-caption {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 700;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Code Display */
.code-display-block {
  width: 100%;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 16px;
  border: 2px dashed #cbd5e1;
  transition: all 0.2s;
}

.code-display-block:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.code-display-block label {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#vanizzKeyDisplay {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #0f172a;
  letter-spacing: 3px;
}

.btn-icon-sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: white;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-sm:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  transform: scale(1.05);
}

/* App Info Steps */
.app-info-block p {
  font-size: 0.95rem;
  color: #334155;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

.steps-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  background: rgba(255, 255, 255, 0.6);
  padding: 8px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #0f172a;
  font-weight: 600;
}

.step-dot {
  width: 24px;
  height: 24px;
  background: #0ea5e9;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
}