/* ==========================================================================
   CHILL AND CODE — RESPONSIVE SPLIT-VIEW & MULTI-LANGUAGE DESIGN SYSTEM
   Creator: Vishnu (@metvsk)
   ========================================================================== */

:root {
  --bg-main: #0a0c10;
  --bg-card: rgba(18, 22, 31, 0.75);
  --bg-card-hover: rgba(24, 30, 44, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(139, 92, 246, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --gradient-brand: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Ambient Lighting */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.14;
}

.glow-orb-1 {
  width: 500px;
  height: 500px;
  background: #8b5cf6;
  top: -100px;
  right: 0;
}

.glow-orb-2 {
  width: 550px;
  height: 550px;
  background: #06b6d4;
  bottom: 10%;
  left: -100px;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   NAVIGATION BAR & MULTI-LANGUAGE
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.brand-avatar-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(139, 92, 246, 0.45);
  background: var(--surface-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.brand:hover .brand-avatar-wrap {
  transform: scale(1.06);
  border-color: var(--accent-cyan);
}

.brand-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-name span {
  color: var(--accent-cyan);
}

.brand-author {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Language Switcher Bar */
.lang-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Quick English Reset Button */
.btn-lang-en {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
}

.btn-lang-en:hover,
.btn-lang-en.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  color: #fff;
}

.lang-dropdown {
  background: #111520;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: var(--font-heading);
  outline: none;
  cursor: pointer;
}

.lang-dropdown option {
  background: #111520;
  color: #fff;
}

/* Top Email Bar */
.top-contact-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 4px 6px 4px 12px;
  border-radius: var(--radius-full);
}

.top-email-text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-proceed-mini {
  background: var(--gradient-brand);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-proceed-mini:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  color: #fff;
}

.btn-copy-mini {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.btn-copy-mini:hover {
  color: var(--text-main);
}

/* ==========================================================================
   DYNAMIC RESPONSE TIME TICKER (Snapping 3-second cycle)
   ========================================================================== */
.ticker-banner {
  background: rgba(15, 20, 30, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  font-size: 0.82rem;
  overflow: hidden;
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
}

.ticker-slide {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  display: none;
}

.ticker-slide.active {
  display: inline-flex;
  opacity: 1;
  transform: translateY(0);
}

.ticker-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-day {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-night {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.ticker-text {
  color: var(--text-main);
  font-weight: 500;
}

/* ==========================================================================
   MAIN DYNAMIC SPLIT LAYOUT (Laptop / Tablet: Apps Left, Action Right)
   ========================================================================== */
.main-split-layout {
  display: flex;
  gap: 36px;
  padding-top: 36px;
  padding-bottom: 60px;
  align-items: flex-start;
}

/* Left Column: Apps Showcase & Bio */
.split-left-apps {
  flex: 1.18;
  min-width: 0; /* flex overflow fix */
}

/* Scrollable Container on Laptop / Desktop */
@media (min-width: 900px) {
  .split-left-apps {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
  }

  .split-left-apps::-webkit-scrollbar {
    width: 6px;
  }
  .split-left-apps::-webkit-scrollbar-track {
    background: transparent;
  }
  .split-left-apps::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
  }
  .split-left-apps::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
  }

  .split-right-action {
    flex: 0.82;
    position: sticky;
    top: 90px;
  }
}

/* Mobile & Small Screens Layout */
@media (max-width: 899px) {
  .main-split-layout {
    flex-direction: column;
    padding-top: 20px;
    gap: 28px;
  }

  .split-left-apps {
    width: 100%;
    order: 2; /* message action card comes first or right below hero */
  }

  .split-right-action {
    width: 100%;
    order: 1;
  }
}

/* Hero Content inside Left Column */
.hero-intro {
  margin-bottom: 28px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
}

.filter-chip:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.filter-chip.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Apps Grid */
.apps-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.app-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: all 0.25s ease;
}

.app-card:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.app-card-main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.app-icon-img {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  background: #1e2433;
  flex-shrink: 0;
}

.app-text-block {
  flex: 1;
}

.app-badge-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-bottom: 3px;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.app-title-line {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.app-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 4px;
}

.app-store-cta {
  flex-shrink: 0;
}

.btn-open-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-open-play:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* About Vishnu Box */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  line-height: 1.7;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.about-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.about-avatar-frame {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.25);
  flex-shrink: 0;
  background: var(--surface-card);
}

.about-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 3px 0;
}

.about-role-tag {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.about-card strong {
  color: var(--text-main);
}

.about-card p {
  margin-bottom: 12px;
}

.skills-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.skill-pill {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #ddd6fe;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   RIGHT SIDE ACTION / MESSAGE CARD
   ========================================================================== */
.sticky-action-card {
  background: rgba(18, 22, 32, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card), 0 0 30px rgba(139, 92, 246, 0.1);
  position: relative;
}

.action-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.action-status-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  flex-shrink: 0;
}

.action-header-text {
  flex: 1;
}

.action-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.action-card-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.draft-restored-tag {
  font-size: 0.7rem;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.draft-restored-tag.show {
  opacity: 1;
}

/* Message Textarea */
.textarea-wrapper {
  margin-bottom: 12px;
}

.textarea-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.message-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 12px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 150px;
}

.message-box:focus {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

/* Abuse Warning State */
.message-box.has-abuse {
  border-color: var(--accent-rose);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

.abuse-warning-banner {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fca5a5;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  line-height: 1.4;
  margin-bottom: 12px;
  display: none;
}

.abuse-warning-banner.show {
  display: block;
}

.action-buttons-row {
  display: flex;
  gap: 10px;
}

.btn-proceed-action {
  flex: 1;
  background: var(--gradient-brand);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
  border: none;
  cursor: pointer;
}

.btn-proceed-action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
  color: #fff;
}

.btn-proceed-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

.btn-copy-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-action:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.btn-alt-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-alt-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.btn-alt-action[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* Floating Music & Volume Control Dock */
.fab-audio-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 22, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  padding: 6px 14px 6px 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(139, 92, 246, 0.15);
  transition: all 0.25s ease;
}

.fab-audio-dock:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.65), 0 0 25px rgba(139, 92, 246, 0.25);
}

.btn-audio-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-audio-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.fab-audio-dock.is-playing .btn-audio-toggle {
  background: var(--gradient-brand);
  border-color: transparent;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.6);
}

.audio-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audio-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.audio-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.volume-level-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.volume-level-badge.warn {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.35);
}

.volume-level-badge.loud {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.35);
}

.volume-slider-wrap {
  display: flex;
  align-items: center;
}

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 86px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: none;
  box-shadow: 0 0 6px var(--accent-cyan);
  cursor: pointer;
}

@media (max-width: 600px) {
  .fab-audio-dock {
    bottom: 16px;
    right: 16px;
    padding: 5px 12px 5px 6px;
    gap: 8px;
  }
  .vol-slider {
    width: 72px;
  }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 96px;
  right: 24px;
  background: var(--accent-emerald);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
  z-index: 1000;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Direct Webmail Quick Links */
.quick-mail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.quick-mail-label {
  color: var(--text-faint);
  font-weight: 500;
}

.quick-mail-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.quick-mail-link:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

.btn-inline-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
}

.quick-mail-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
}

/* Mail Compose Selection Modal */
.mail-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mail-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mail-modal-card {
  background: #101420;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(139, 92, 246, 0.2);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
  position: relative;
}

.mail-modal-overlay.open .mail-modal-card {
  transform: translateY(0) scale(1);
}

.mail-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.mail-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.mail-modal-subtitle {
  font-size: 0.78rem;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

.mail-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mail-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.mail-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.mail-option-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.mail-option-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(139, 92, 246, 0.45);
  transform: translateX(4px);
}

.option-gmail:hover {
  border-color: rgba(234, 67, 53, 0.5);
  box-shadow: 0 4px 18px rgba(234, 67, 53, 0.18);
}

.option-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-main);
}

.option-gmail .option-icon {
  color: #ea4335;
  background: rgba(234, 67, 53, 0.12);
}

.option-default .option-icon {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
}

.option-outlook .option-icon {
  color: #0078d4;
  background: rgba(0, 120, 212, 0.12);
}

.option-content {
  flex: 1;
}

.option-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-recommended {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.option-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.option-arrow {
  font-size: 1.1rem;
  color: var(--text-faint);
  transition: transform 0.2s ease, color 0.2s ease;
}

.mail-option-item:hover .option-arrow {
  color: #fff;
  transform: translate(2px, -2px);
}

.mail-modal-footer {
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.btn-modal-copy {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 30px 0;
  background: #07080c;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
}
