/* ==========================================================================
   Magic Voice Writer - Premium Web & iOS Design System
   ========================================================================== */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111726;
  --bg-surface: #161e30;
  --bg-surface-elevated: #1e2942;
  --bg-card: rgba(22, 30, 48, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --border-active: rgba(14, 165, 233, 0.5);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-purple: #8b5cf6;
  --accent-violet: #7c3aed;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-sparkle: #fbbf24;
  --accent-emerald: #10b981;
  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.45);

  --gradient-magic: linear-gradient(135deg, #7c3aed 0%, #3b82f6 50%, #06b6d4 100%);
  --gradient-recording: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  --gradient-processing: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #fbbf24 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));

  --font-family: 'Hind Siliguri', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-glow-purple: 0 0 25px rgba(139, 92, 246, 0.35);
  --shadow-glow-red: 0 0 30px rgba(239, 68, 68, 0.45);
  --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 16px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.15), transparent 45%),
    radial-gradient(circle at 100% 30%, rgba(6, 182, 212, 0.08), transparent 35%);
  background-attachment: fixed;
}

#app-root {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 14, 23, 0.75);
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-focus);
}

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

.header-btn-icon {
  padding: 8px;
  border-radius: 50%;
}

.header-btn .icon {
  width: 18px;
  height: 18px;
}

.btn-label-desktop {
  font-size: 0.8rem;
}

@media (max-width: 480px) {
  .btn-label-desktop {
    display: none;
  }
  .header-btn {
    padding: 8px;
    border-radius: 50%;
  }
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.app-main {
  flex: 1;
  padding: 16px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Status Pill */
.status-pill-container {
  display: flex;
  justify-content: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(22, 30, 48, 0.9);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.status-ready .status-indicator {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.status-recording {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(45, 15, 20, 0.9);
  color: #fca5a5;
}

.status-recording .status-indicator {
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
  animation: pulse-dot 1s infinite alternate;
}

.status-processing {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(45, 35, 15, 0.9);
  color: #fde68a;
}

.status-processing .status-indicator {
  background: var(--accent-sparkle);
  box-shadow: 0 0 10px var(--accent-sparkle);
  animation: pulse-dot 0.6s infinite alternate;
}

.recording-timer {
  font-variant-numeric: tabular-nums;
  color: var(--accent-red);
  font-weight: 700;
  padding-left: 4px;
}

.hidden {
  display: none !important;
}

@keyframes pulse-dot {
  from { opacity: 0.4; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.2); }
}

/* ==========================================================================
   Hero Voice Bubble (72px Smart Magic Bubble)
   ========================================================================== */
.bubble-hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0 16px;
  position: relative;
}

.bubble-aura {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.aura-idle {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, rgba(59, 130, 246, 0.15) 50%, transparent 70%);
  transform: scale(0.95);
  animation: aura-idle-pulse 3s infinite ease-in-out;
}

.aura-recording {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.8) 0%, rgba(239, 68, 68, 0.25) 50%, transparent 75%);
  transform: scale(1.15);
  animation: aura-recording-pulse 0.7s infinite alternate ease-in-out;
}

.aura-processing {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.7) 0%, rgba(139, 92, 246, 0.3) 50%, transparent 75%);
  transform: scale(1.08);
  animation: aura-processing-spin 2s infinite linear;
}

@keyframes aura-idle-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes aura-recording-pulse {
  0% { transform: scale(1.05); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 1; }
}

/* The Core 72px Floating Bubble */
.magic-bubble-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  outline: none;
}

.magic-bubble-btn:active {
  transform: scale(0.92);
}

.magic-bubble-btn.state-idle {
  background: var(--gradient-magic);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
}

.magic-bubble-btn.state-recording {
  background: var(--gradient-recording);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.65);
  border-color: #ffffff;
  animation: bubble-record-heartbeat 1.2s infinite ease-in-out;
}

.magic-bubble-btn.state-processing {
  background: var(--gradient-processing);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.65);
}

@keyframes bubble-record-heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Bubble Layers */
.bubble-icon-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mic-svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.sparkle-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  color: var(--accent-sparkle);
  font-size: 12px;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.8));
}

/* 5 Equalizer Bars inside Bubble */
.bubble-equalizer-layer {
  display: none;
  align-items: center;
  gap: 3.5px;
  height: 32px;
}

.eq-bar {
  width: 3.5px;
  background: #ffffff;
  border-radius: 4px;
  height: 6px;
  transition: height 0.08s ease;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.magic-bubble-btn.state-recording .bubble-icon-layer {
  display: none;
}

.magic-bubble-btn.state-recording .bubble-equalizer-layer {
  display: flex;
}

/* Spinner Layer */
.bubble-spinner-layer {
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 44px;
  height: 44px;
}

.spinner-svg {
  width: 44px;
  height: 44px;
  animation: spinner-rotate 1s linear infinite;
}

.spinner-track {
  stroke: rgba(255, 255, 255, 0.2);
}

.spinner-head {
  stroke: #ffffff;
  stroke-dasharray: 80;
  stroke-dashoffset: 40;
  stroke-linecap: round;
}

.spinner-sparkle {
  position: absolute;
  color: var(--accent-sparkle);
  font-size: 16px;
  animation: sparkle-pulse 0.8s infinite alternate ease-in-out;
}

.magic-bubble-btn.state-processing .bubble-icon-layer,
.magic-bubble-btn.state-processing .bubble-equalizer-layer {
  display: none;
}

.magic-bubble-btn.state-processing .bubble-spinner-layer {
  display: flex;
}

@keyframes spinner-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes sparkle-pulse {
  from { transform: scale(0.8); opacity: 0.7; }
  to { transform: scale(1.2); opacity: 1; }
}

.bubble-hint {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

/* ==========================================================================
   Controls: Writing Modes & Languages
   ========================================================================== */
.control-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 2px;
}

.mode-pills-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mode-pills-scroll::-webkit-scrollbar {
  display: none;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-pill:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.mode-pill.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(6, 182, 212, 0.25));
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.lang-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.lang-pill {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-pill:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.lang-pill.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
  color: #ffffff;
}

/* ==========================================================================
   Cards: Live Speech & Polished Result
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: pulse-dot 0.8s infinite alternate;
}

.live-speech-card {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(26, 18, 24, 0.9);
}

.live-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
}

.live-speech-content {
  font-size: 0.95rem;
  color: #fca5a5;
  line-height: 1.5;
  font-style: italic;
  min-height: 38px;
}

.result-card {
  border-color: rgba(124, 58, 237, 0.35);
}

.char-count {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.result-textarea {
  width: 100%;
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 1.05rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 120px;
  outline: none;
  transition: border-color 0.2s;
}

.result-textarea:focus {
  border-color: var(--accent-purple);
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

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

.btn-primary {
  background: var(--gradient-magic);
  color: #ffffff;
  flex: 1;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-focus);
}

.btn-icon-only {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
  padding: 10px;
  border-radius: var(--radius-md);
}

.btn-icon-only:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* History */
.history-card {
  padding: 14px 16px;
}

.text-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 600;
}

.text-btn:hover {
  color: var(--accent-red);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.empty-history-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 10px 0;
}

.history-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.history-item:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-focus);
}

.history-item-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.history-item-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Info Card / PWA Banner */
.info-card {
  background: linear-gradient(135deg, rgba(30, 41, 66, 0.7), rgba(20, 26, 42, 0.7));
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-card-icon {
  font-size: 1.5rem;
}

.info-card-content h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.info-card-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   Draggable Web Floating Widget Overlay
   ========================================================================== */
.web-floating-widget {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  touch-action: none;
  user-select: none;
}

.floating-bubble-handle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-magic);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(124, 58, 237, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  position: relative;
  transition: transform 0.15s;
}

.floating-bubble-handle:active {
  cursor: grabbing;
  transform: scale(0.95);
}

.flc-mic-svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

.floating-live-card {
  background: rgba(18, 23, 34, 0.95);
  border: 1.5px solid var(--accent-red);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  min-width: 170px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fca5a5;
}

.flc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  animation: pulse-dot 0.6s infinite alternate;
}

.flc-timer {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.flc-body {
  font-size: 0.85rem;
  color: #ffffff;
  max-height: 70px;
  overflow-y: auto;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(16, 185, 129, 0.95);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  z-index: 200;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.hidden {
  transform: translateX(-50%) translateY(50px);
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Modal Dialog (Settings)
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  z-index: 2;
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
}

.label-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.78rem;
}

.label-link:hover {
  text-decoration: underline;
}

.password-input-wrapper {
  position: relative;
  display: flex;
}

.form-input, .form-select {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  outline: none;
}

.password-input-wrapper .form-input {
  padding-right: 40px;
}

.toggle-vis-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-primary);
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-purple);
}

.info-box {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.info-box-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.info-box-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
