/* ==========================================================================
   Wyterock SyncTime AI - Brand Design System & Core Stylesheet
   ========================================================================== */

:root {
  /* Color Palette - Custom Tailored HSL Hues */
  --bg-color: hsl(230, 25%, 7%);
  --panel-bg: rgba(17, 18, 30, 0.65);
  --panel-border: rgba(255, 255, 255, 0.07);
  --text-primary: hsl(0, 0%, 96%);
  --text-secondary: hsl(228, 12%, 65%);
  --text-muted: hsl(228, 8%, 45%);
  
  /* Brand Core Glow Colors */
  --primary: hsl(258, 90%, 66%);
  --primary-glow: rgba(139, 92, 246, 0.25);
  --secondary: hsl(189, 94%, 43%);
  --secondary-glow: rgba(6, 182, 212, 0.2);
  
  /* Status Color Codes */
  --status-green: hsl(150, 76%, 45%);
  --status-green-glow: rgba(16, 185, 129, 0.15);
  --status-yellow: hsl(38, 92%, 50%);
  --status-yellow-glow: rgba(245, 158, 11, 0.15);
  --status-red: hsl(342, 85%, 52%);
  --status-red-glow: rgba(236, 72, 153, 0.15);

  /* Rounded Borders */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Shadows & Blurs */
  --shadow-main: 0 12px 40px rgba(0, 0, 0, 0.4);
  --blur-main: 20px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Global Reset & Base Configurations
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Ambient Background Glow Elements
   ========================================================================== */
.glow-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: screen;
}

.glow-primary {
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -150px;
  right: -50px;
  animation: floatGlow 15s infinite alternate ease-in-out;
}

.glow-secondary {
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  bottom: -150px;
  left: -50px;
  animation: floatGlow 20s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

/* ==========================================================================
   Main Application Wrapper & Outer Grid
   ========================================================================== */
.app-container {
  width: 100vw;
  max-width: 480px;
  height: 100vh;
  min-height: auto;
  background: var(--panel-bg);
  backdrop-filter: blur(var(--blur-main));
  -webkit-backdrop-filter: blur(var(--blur-main));
  border-left: 1px solid var(--panel-border);
  border-right: 1px solid var(--panel-border);
  border-radius: 0;
  box-shadow: var(--shadow-main);
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   Top Header Navigation Bar
   ========================================================================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.logo-circle svg {
  width: 24px;
  height: 24px;
}

.brand-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-text h1 span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text .tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-green);
  box-shadow: 0 0 8px var(--status-green);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 12px var(--status-green); }
  100% { transform: scale(0.95); opacity: 0.6; }
}

.status-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--status-green);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Main Workspace Layout
   ========================================================================== */
.app-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Panel Abstraction */
.panel {
  background: rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-md);
  border: 1px solid var(--panel-border);
  padding: 1.5rem;
}

.panel-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.panel-title svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
}

.controls-panel {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  border: none;
  border-radius: 0;
}

/* Inputs & Form Controls */
.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

input[type="date"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition-fast);
}

input[type="date"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  background: rgba(255, 255, 255, 0.08);
}

/* Duration Select Pill Group */
.select-pill-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
}

.pill-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pill-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.pill-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Timezone Autocomplete Search Widget */
.search-wrapper {
  position: relative;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.search-icon svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

#timezone-search {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.75rem 1rem 0.75rem 2.25rem;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-fast);
}

#timezone-search:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 10px var(--secondary-glow);
  background: rgba(255, 255, 255, 0.08);
}

/* Autocomplete Results Dropdown */
.autocomplete-results {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  max-height: 220px;
  background: hsl(228, 25%, 10%);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  list-style: none;
  overflow-y: auto;
  z-index: 100;
  display: none; /* Block when visible */
}

.autocomplete-results li {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.autocomplete-results li:last-child {
  border-bottom: none;
}

.autocomplete-results li:hover {
  background: rgba(6, 182, 212, 0.15);
  color: var(--secondary);
  padding-left: 1.25rem;
}

.score-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
}

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

.score-header h3 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--status-green);
  font-family: 'Outfit', sans-serif;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
  transition: var(--transition-fast);
}

.score-bar-wrapper {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--status-yellow) 0%, var(--status-green) 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Bottom Action Buttons */
.export-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-normal);
  border: none;
  outline: none;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5);
  filter: brightness(1.1);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
}

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

/* ==========================================================================
   Right Panel Workspace Display Area
   ========================================================================== */
.workspace-display {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Timeline Panel */
.timeline-panel {
  background: rgba(18, 18, 30, 0.4);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.timeline-title-group .subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: -0.85rem;
  margin-bottom: 0.5rem;
}

.time-readout-pill {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--secondary);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
  width: 100%;
  text-align: center;
  margin-bottom: 0.75rem;
  display: block;
}

.time-readout-pill strong {
  font-family: 'Outfit', sans-serif;
  color: #fff;
  font-size: 0.92rem;
}

/* Custom Visual 24h Slider */
.slider-container {
  position: relative;
  width: 100%;
  padding-bottom: 0.5rem;
}

.slider-markers {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
}

.slider-markers span {
  width: 40px;
  text-align: center;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: visible; /* Allow handle tooltip labels to extend outward */
}

/* Beautiful daylight visualizer background */
.daylight-gradient-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    #0d1127 0%,   /* Midnight */
    #171946 20%,  /* Dawn */
    #fca5a5 30%,  /* Sunrise */
    #fed7aa 38%,  /* Morning */
    #93c5fd 50%,  /* Noon */
    #fdba74 65%,  /* Afternoon */
    #fca5a5 75%,  /* Sunset */
    #25295c 85%,  /* Dusk */
    #0d1127 100%  /* Midnight */
  );
  opacity: 0.55;
  pointer-events: none;
  border-radius: var(--radius-sm); /* Prevent gradient leak with overflow visible */
}

/* The Draggable Glowing Handle */
.slider-handle {
  position: absolute;
  top: -1px;
  left: 0;
  width: 15%; /* Default Width representing duration */
  height: calc(100% + 2px);
  background: rgba(139, 92, 246, 0.15);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  user-select: none;
  cursor: grab;
  transition: left 0.05s ease-out, width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px var(--primary-glow);
}

.slider-handle:active {
  cursor: grabbing;
}

.handle-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 12px rgba(139, 92, 246, 0.4);
  pointer-events: none;
}

.handle-bar {
  width: 2px;
  height: 10px;
  background: var(--primary);
  opacity: 0.7;
}

.handle-label {
  position: absolute;
  bottom: 120%;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  white-space: nowrap;
}

/* Participant Grid & Subtitle */
.participant-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.participant-section-title h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.tip-text {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.participant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* ==========================================================================
   Participant Card Design
   ========================================================================== */
.participant-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-normal);
  animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(15px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.participant-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Dynamic State Boarder Glows */
.participant-card.optimal {
  border-color: var(--status-green-glow);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.04);
}
.participant-card.optimal:hover {
  border-color: var(--status-green);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}

.participant-card.offhours {
  border-color: var(--status-yellow-glow);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.04);
}
.participant-card.offhours:hover {
  border-color: var(--status-yellow);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.1);
}

.participant-card.sleep {
  border-color: var(--status-red-glow);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.04);
}
.participant-card.sleep:hover {
  border-color: var(--status-red);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.1);
}

/* Remove button standard hidden, visible on hover */
.remove-participant-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: var(--transition-fast);
}

.participant-card:hover .remove-participant-btn {
  opacity: 1;
}

.remove-participant-btn:hover {
  background: var(--status-red);
  color: #fff;
  border-color: var(--status-red);
  box-shadow: 0 0 8px var(--status-red);
}

.remove-participant-btn svg {
  width: 14px;
  height: 14px;
}

/* Participant Flag & Name Header */
.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.flag-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.card-title-info {
  display: flex;
  flex-direction: column;
}

.p-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.p-timezone {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Time & Timezone Offset Section */
.card-time-display {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.card-local-time {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.card-local-ampm {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 0.25rem;
}

.card-offset {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Radial / Analog Day Indicator */
.card-indicator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.meeting-span-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.optimal {
  background: rgba(16, 185, 129, 0.08);
  color: var(--status-green);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-badge.offhours {
  background: rgba(245, 158, 11, 0.08);
  color: var(--status-yellow);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.status-badge.sleep {
  background: rgba(236, 72, 153, 0.08);
  color: var(--status-red);
  border: 1px solid rgba(236, 72, 153, 0.15);
}

/* ==========================================================================
   Golden Hour Smart Suggestions
   ========================================================================== */
.recommendation-panel {
  background: rgba(0, 0, 0, 0.08);
}

.panel-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.8px;
  margin-bottom: 0.75rem;
}

.recommendations-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.suggestion-pill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.suggestion-pill:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.suggestion-pill.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px var(--primary-glow);
}

.suggestion-icon {
  color: var(--status-green);
  display: flex;
  align-items: center;
}

.suggestion-icon svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Visual Popup Toast Notification
   ========================================================================== */
.toast {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: hsl(228, 25%, 12%);
  border: 1px solid var(--secondary);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--secondary-glow);
  pointer-events: none;
  z-index: 999;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  bottom: 30px;
}

/* ==========================================================================
   Video Conference Platform Selector & Link styles
   ========================================================================== */
.platform-picker {
  grid-template-columns: 1fr 1fr;
}

.input-link-container {
  display: flex;
  align-items: center;
}

#meeting-link-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-family: monospace;
  font-size: 0.75rem;
  outline: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  transition: var(--transition-fast);
  cursor: default;
}

#meeting-link-input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 10px var(--secondary-glow);
  background: rgba(255, 255, 255, 0.06);
}

.btn-icon-action {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
  padding: 4px;
  border-radius: 4px;
}

.btn-icon-action:hover {
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-icon-action svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Quick Share Actions Style
   ========================================================================== */
.share-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-share {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-normal);
  outline: none;
}

.btn-share svg {
  width: 16px;
  height: 16px;
}

.btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.3);
  color: #25d366;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.15);
}

.btn-gmail:hover {
  background: rgba(234, 67, 53, 0.08);
  border-color: rgba(234, 67, 53, 0.3);
  color: #ea4335;
  box-shadow: 0 0 10px rgba(234, 67, 53, 0.15);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .app-container {
    height: 98vh;
    width: 98vw;
  }
  .app-workspace {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .controls-panel {
    border-right: none;
    border-bottom: 1px solid var(--panel-border);
    overflow-y: visible;
  }
  .workspace-display {
    overflow-y: visible;
  }
}

/* ==========================================================================
   Premium Membership & Billing Modal Styles
   ========================================================================== */

/* Premium card in sidebar */
.premium-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px dashed rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.premium-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.premium-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.premium-badge.free {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--status-yellow);
}

.premium-badge.active {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--status-green);
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
  animation: premiumGlow 2s infinite alternate;
}

@keyframes premiumGlow {
  0% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.1); }
  100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
}

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

.btn-premium-action {
  background: linear-gradient(135deg, var(--status-yellow) 0%, #fca5a5 100%);
  color: hsl(230, 25%, 7%);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.6rem 1rem;
  border: none;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

.btn-premium-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-premium-action.active {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  box-shadow: none;
  pointer-events: none;
}

/* Modal Overlay & Transitions */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 12, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Card Glassmorphism */
.modal-card {
  width: 90%;
  max-width: 460px;
  background: rgba(17, 18, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 4px;
}

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

.modal-close-btn svg {
  width: 20px;
  height: 20px;
}

/* Modal Headers */
.modal-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-star-logo {
  font-size: 2.25rem;
  color: var(--status-yellow);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  margin-bottom: 0.25rem;
  animation: starFloat 3s infinite alternate ease-in-out;
}

@keyframes starFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, #fff 0%, #ffd7aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Features List */
.modal-features {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--panel-border);
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--status-green);
  color: var(--status-green);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-content h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.feature-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Modal Pricing Box */
.modal-pricing-box {
  text-align: center;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.15);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.price-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
}

.price-period {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.payout-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-weight: 500;
}

.btn-modal-subscribe {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45);
  transition: var(--transition-normal);
}

.btn-modal-subscribe:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.6);
}

/* Locked Overlay Badge for Free Tier Items */
.premium-locked-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, var(--status-yellow) 0%, #fdba74 100%);
  color: hsl(230, 25%, 7%);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  pointer-events: none;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.premium-locked-badge svg {
  width: 9px;
  height: 9px;
}

.locked-feature-dim {
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
