/* ================================
   CALL ORDERS V5 - ELEGANT REDESIGN
   Palette: Blanc + Noir Ardoise + Vert Émeraude
   Desktop + Mobile Responsive, Élégant, Moderne
   ================================ */

:root {
  /* Tech Premium Colors */
  --white: #FFFFFF;
  --slate-dark: #0f172a;
  --emerald: #10b981;
  
  /* Extended Variations */
  --slate-50: #f8fafc;
  --slate-100: #e2e8f0;
  --slate-200: #cbd5e1;
  --slate-300: #94a3b8;
  --slate-400: #64748b;
  --slate-500: #475569;
  --slate-600: #334155;
  --slate-700: #1e293b;
  --slate-800: #0f172a;
  --slate-900: #020617;
  
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  
  /* Enhanced Shadows & Effects */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.1), 0 1px 2px -1px rgba(15, 23, 42, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-600) 100%);
  --gradient-dark: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-900) 100%);
  --gradient-light: linear-gradient(135deg, var(--white) 0%, var(--slate-50) 100%);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

/* ================================
   RESET & BASE
   ================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  background: var(--gradient-light);
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* ================================
   LAYOUT CONTAINERS
   ================================ */

.app-container {
  min-height: 100vh;
  width: 100%;
  position: relative;
  background: var(--gradient-light);
  margin: 0;
  padding: 0;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: var(--shadow-xl);
}

/* Desktop Layout */
@media (min-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 320px 1fr;
    border-radius: var(--radius-2xl);
    margin: var(--space-lg);
    min-height: calc(100vh - 48px);
  }
}

/* ================================
   SIDEBAR (Desktop Only)
   ================================ */

.sidebar {
  background: var(--gradient-dark);
  color: var(--white);
  padding: var(--space-xl);
  display: none;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .sidebar {
    display: flex;
    border-radius: var(--radius-2xl) 0 0 var(--radius-2xl);
  }
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-xl);
}

.sidebar-logo {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
}

.sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-item:hover, .nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.nav-item.active {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-md);
}

.nav-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.sidebar-user {
  padding: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-xl);
}

.user-info-sidebar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.user-avatar-sidebar {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.user-details {
  flex: 1;
}

.user-name-sidebar {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.user-subscription {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ================================
   MAIN CONTENT AREA
   ================================ */

.main-content {
  padding: 0 var(--space-lg) var(--space-lg);
  overflow-y: auto;
  background: var(--white);
}

@media (min-width: 1024px) {
  .main-content {
    padding: var(--space-2xl);
    border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
  }
}

/* Mobile Header */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: var(--white);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  margin: 0 calc(-1 * var(--space-lg)) var(--space-2xl);
  margin-top: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  top: 0;
}

@media (min-width: 1024px) {
  .mobile-header {
    display: none;
  }
}



.mobile-user-info-centered {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  justify-content: center;
}

.mobile-user-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.mobile-nav-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

/* ================================
   PAGE CONTENT SECTIONS
   ================================ */

.page-header {
  margin-bottom: var(--space-2xl);
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--slate-800);
  margin-bottom: var(--space-sm);
}

.page-subtitle {
  font-size: 16px;
  color: var(--slate-500);
}

/* Content Grid */
.content-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: 2fr 1fr;
  }
}

@media (min-width: 1024px) {
  .content-grid {
    gap: var(--space-2xl);
  }
}

/* ================================
   ELEGANT CARDS
   ================================ */

.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-100);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--slate-100);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.card-icon {
  width: 24px;
  height: 24px;
  color: var(--emerald);
}

/* ================================
   CALL WORKFLOW - REDESIGNED
   ================================ */

.call-workflow-card {
  background: var(--gradient-light);
  border: 2px solid var(--slate-100);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-2xl);
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.workflow-step {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-100);
  transition: all 0.3s ease;
}

.workflow-step:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald);
}

.step-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-md);
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-800);
}

.step-description {
  font-size: 14px;
  color: var(--slate-500);
  margin-left: 44px;
  margin-top: calc(-1 * var(--space-md));
  margin-bottom: var(--space-lg);
}

/* Number Input Enhanced */
.number-input-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.number-display-elegant {
  font-size: 48px;
  font-weight: 800;
  color: var(--emerald);
  text-align: center;
  padding: var(--space-2xl);
  background: var(--emerald-50);
  border: 3px solid var(--emerald);
  border-radius: var(--radius-2xl);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  outline: none;
  position: relative;
}

.number-display-elegant:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.number-display-elegant.editable {
  cursor: text;
}

.number-display-elegant.editable:focus {
  border-color: var(--emerald-600);
  box-shadow: var(--shadow-xl), 0 0 0 4px rgba(16, 185, 129, 0.1);
  transform: scale(1.05);
}

.number-display-elegant.editable:empty:before {
  content: attr(data-placeholder);
  color: var(--emerald-500);
  opacity: 0.6;
}

/* Call Type Selector Enhanced */
.call-type-selector {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.form-select.elegant {
  width: 100%;
  padding: var(--space-lg);
  font-size: 16px;
  font-weight: 500;
  color: var(--slate-700);
  background: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 3rem;
}

.form-select.elegant:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-select.elegant:hover {
  border-color: var(--emerald-500);
}

/* Call Preview */
.call-preview {
  background: var(--slate-50);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.preview-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-500);
  margin-bottom: var(--space-sm);
}

.preview-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--slate-700);
  min-height: 1.5em;
}

.preview-text.no-type {
  color: var(--emerald-600);
}

/* Call Types Grid Enhanced (legacy - keep for existing functionality) */
.call-types-elegant {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* ================================
   ACTIVE CALLS STYLES
   ================================ */

.active-call-card {
  background: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  transition: all 0.3s ease;
}

.active-call-card:hover {
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-md);
}

.call-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.call-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--emerald-600);
}

.call-status {
  font-size: 20px;
}

.call-status.ready {
  opacity: 1;
}

.call-status.generating {
  animation: pulse 2s infinite;
}

.call-status.failed {
  opacity: 0.6;
}

.call-details {
  margin-bottom: var(--space-md);
}

.call-type {
  font-weight: 600;
  color: var(--slate-700);
  font-size: 14px;
}

.call-message {
  color: var(--slate-600);
  font-size: 13px;
  margin-top: var(--space-xs);
  font-style: italic;
}

.call-time {
  color: var(--slate-500);
  font-size: 12px;
  margin-top: var(--space-xs);
}

.call-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.btn-sm {
  padding: var(--space-xs) var(--space-sm);
  font-size: 12px;
  min-height: auto;
}

.btn-emerald {
  background: var(--emerald);
  color: white;
  border: 2px solid var(--emerald);
}

.btn-emerald:hover {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
}

.btn-gray {
  background: var(--slate-300);
  color: var(--slate-600);
  border: 2px solid var(--slate-300);
  cursor: not-allowed;
}

.btn-error {
  background: #ef4444;
  color: white;
  border: 2px solid #ef4444;
}

.btn-error:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.btn-outline {
  background: transparent;
  color: var(--slate-600);
  border: 2px solid var(--slate-300);
}

.btn-outline:hover {
  background: var(--slate-100);
  border-color: var(--slate-400);
}

/* History Items */
.history-item {
  padding: var(--space-md);
  border-bottom: 1px solid var(--slate-200);
}

.history-item:last-child {
  border-bottom: none;
}

.history-type {
  font-weight: 600;
  color: var(--slate-700);
  font-size: 14px;
}

.history-message {
  color: var(--slate-600);
  font-size: 13px;
  margin-top: var(--space-xs);
}

.history-time {
  color: var(--slate-500);
  font-size: 12px;
  margin-top: var(--space-xs);
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ================================
   CAST TOOL STYLES
   ================================ */

.upgrade-banner {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  color: white;
}

.upgrade-content {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.upgrade-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.upgrade-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 var(--space-sm) 0;
}

.upgrade-description {
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

.cast-interface {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.cast-create-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.active-session-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.session-info-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: center;
}

.session-code-container {
  text-align: center;
}

.session-code-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: var(--space-sm);
}

.session-code-display {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--emerald);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.3rem;
  padding: var(--space-lg);
  background: var(--emerald-50);
  border: 3px solid var(--emerald);
  border-radius: var(--radius-lg);
}

.session-qr-container {
  text-align: center;
}

.session-qr-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: var(--space-sm);
}

.qr-canvas {
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: white;
}

.session-url-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.url-input-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.url-input {
  flex: 1;
  min-width: 300px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.session-instructions {
  background: var(--slate-50);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.session-instructions h4 {
  margin: 0 0 var(--space-md) 0;
  color: var(--slate-700);
}

.session-instructions ol {
  margin: 0;
  padding-left: var(--space-lg);
  color: var(--slate-600);
  line-height: 1.6;
}

.session-instructions li {
  margin-bottom: var(--space-sm);
}

.session-history-item {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--slate-200);
  transition: all 0.3s ease;
}

.session-history-item:last-child {
  border-bottom: none;
}

.session-history-item.active {
  background: var(--emerald-50);
  border-left: 4px solid var(--emerald);
}

.session-history-item.inactive {
  opacity: 0.6;
}

.session-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.session-name {
  font-weight: 600;
  color: var(--slate-700);
  font-size: 16px;
}

.session-meta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.session-type,
.session-code {
  font-size: 14px;
  color: var(--slate-600);
}

.session-code {
  font-family: 'Courier New', monospace;
}

.session-status {
  font-size: 13px;
  color: var(--slate-500);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .session-info-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .upgrade-content {
    flex-direction: column;
    text-align: center;
  }
  
  .url-input-group {
    flex-direction: column;
  }
  
  .url-input {
    min-width: auto;
  }
}

.call-type-elegant {
  background: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  min-height: 100px;
}

.call-type-elegant:hover {
  border-color: var(--emerald);
  background: var(--emerald-50);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.call-type-elegant.selected {
  border-color: var(--emerald);
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-xl);
}

.call-type-icon-elegant {
  font-size: 24px;
}

.call-type-label-elegant {
  font-size: 14px;
  font-weight: 600;
}

/* ================================
   ENHANCED BUTTONS
   ================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: manipulation;
  min-height: 48px;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--slate-700);
  border: 2px solid var(--slate-200);
}

.btn-secondary:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
}

.btn-ghost:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
}

.btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 16px;
  min-height: 56px;
  border-radius: var(--radius-xl);
}

.btn-full {
  width: 100%;
}

/* Action Buttons Layout */
.action-buttons {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.action-buttons .btn {
  flex: 1;
}

@media (max-width: 640px) {
  .action-buttons {
    flex-direction: column;
  }
}

/* ================================
   ENHANCED INPUTS
   ================================ */

.form-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  font-size: 16px;
  background: var(--white);
  color: var(--slate-800);
  transition: all 0.3s ease;
  min-height: 48px;
  box-shadow: var(--shadow-sm);
}

.form-input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  transform: translateY(-1px);
}

.form-input::placeholder {
  color: var(--slate-400);
}

.input-large {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  padding: var(--space-lg) var(--space-xl);
  min-height: 64px;
}

/* ================================
   SIDEBAR CONTENT - CALL HISTORY & ACTIVE CALLS
   ================================ */

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.active-calls-section {
  background: var(--emerald-50);
  border: 2px solid var(--emerald-100);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.active-call-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--emerald);
}

.active-call-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.active-call-text {
  font-weight: 600;
  color: var(--slate-800);
}

.active-call-time {
  font-size: 12px;
  color: var(--slate-500);
}

.terminate-btn {
  background: #ef4444;
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.terminate-btn:hover {
  background: #dc2626;
  transform: scale(1.05);
}

/* Call History - Cartes encadrées vertes */
.history-card {
  background: white;
  border: 2px solid var(--emerald-300);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.history-card:hover {
  border-color: var(--emerald-400);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.history-card-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--emerald-600);
}

.history-card-time {
  font-size: 12px;
  color: var(--slate-500);
  background: var(--slate-100);
  padding: 2px 8px;
  border-radius: var(--radius-md);
}

.history-card-type {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: var(--space-xs);
}

.history-card-message {
  font-size: 14px;
  color: var(--slate-600);
  background: var(--slate-50);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--emerald-300);
}

/* ================================
   HISTORY PAGE STYLES
   ================================ */

/* Day sections */
.history-day-section {
  margin-bottom: var(--space-xl);
}

.history-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-lg);
  border-bottom: 2px solid var(--slate-200);
}

.history-day-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-800);
  margin: 0;
}

.history-day-count {
  font-size: 14px;
  color: var(--slate-500);
  background: var(--slate-100);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Day calls container */
.history-day-calls {
  display: grid;
  gap: var(--space-md);
}

/* Individual call cards in history page */
.history-call-card {
  background: white;
  border: 2px solid var(--emerald-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.history-call-card:hover {
  border-color: var(--emerald-300);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.history-call-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.history-call-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--emerald-600);
}

.history-call-time {
  font-size: 12px;
  color: var(--slate-500);
  background: var(--slate-100);
  padding: 4px 8px;
  border-radius: var(--radius-md);
}

.history-call-type {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: var(--space-sm);
}

.history-call-message {
  font-size: 14px;
  color: var(--slate-600);
  background: var(--emerald-50);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--emerald-300);
  margin-bottom: var(--space-sm);
}

.history-call-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--slate-100);
  font-size: 12px;
}

.history-call-status {
  color: var(--emerald-600);
  font-weight: 500;
}

.history-call-date {
  color: var(--slate-500);
}

/* ================================
   MOBILE OPTIMIZATIONS FOR HISTORY PAGE
   ================================ */

/* Container optimization for mobile */
@media (max-width: 768px) {
  /* History page container - more centered and compact */
  .content-area {
    max-width: 100%;
    padding: var(--space-sm) var(--space-md);
    margin: 0 auto;
  }

  /* Day sections - reduced spacing */
  .history-day-section {
    margin-bottom: var(--space-lg);
    max-width: 100%;
  }

  /* Day header - smaller and more compact */
  .history-day-header {
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
  }

  .history-day-header h3 {
    font-size: 18px; /* Reduced from 20px */
  }

  .history-day-count {
    font-size: 12px; /* Reduced from 14px */
    padding: 2px 8px; /* Reduced padding */
  }

  /* Call cards - much more compact and mobile-friendly */
  .history-call-card {
    padding: var(--space-md); /* Reduced from var(--space-lg) */
    margin-bottom: var(--space-sm);
    max-width: 100%;
    border-width: 1px; /* Thinner borders on mobile */
  }

  /* Call header - better mobile layout */
  .history-call-header {
    margin-bottom: var(--space-xs);
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  /* Call number - smaller but still prominent */
  .history-call-number {
    font-size: 18px; /* Reduced from 22px */
    font-weight: 600;
  }

  /* Call time - more compact */
  .history-call-time {
    font-size: 11px; /* Reduced from 12px */
    padding: 2px 6px; /* Reduced padding */
  }

  /* Call type - more readable on mobile */
  .history-call-type {
    font-size: 14px; /* Reduced from 16px */
    margin-bottom: var(--space-xs); /* Reduced spacing */
    line-height: 1.4;
  }

  /* Call message - more compact */
  .history-call-message {
    font-size: 13px; /* Reduced from 14px */
    padding: var(--space-xs) var(--space-sm); /* Reduced padding */
    line-height: 1.4;
    margin-bottom: var(--space-xs);
  }

  /* Call details - better mobile layout */
  .history-call-details {
    padding-top: var(--space-xs); /* Reduced spacing */
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .history-call-status {
    font-size: 12px;
  }

  .history-call-date {
    font-size: 11px;
  }

  /* Loading states - more centered */
  #historyLoading, #historyEmpty {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
  }

  /* Ensure proper centering for the entire history content */
  #historyContent {
    max-width: 100%;
    margin: 0 auto;
  }

  /* Grid layout for day calls - single column on mobile */
  .history-day-calls {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm); /* Reduced gap */
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .content-area {
    padding: var(--space-xs) var(--space-sm);
  }

  .history-call-card {
    padding: var(--space-sm);
  }

  .history-call-number {
    font-size: 16px;
  }

  .history-day-header h3 {
    font-size: 16px;
  }

  .history-call-type {
    font-size: 13px;
  }

  .history-call-message {
    font-size: 12px;
  }

  .active-call-card {
    padding: var(--space-sm);
  }

  .section-title {
    font-size: 18px;
  }
}

/* ================================
   ACTIVITIES PAGE - APPELS EN COURS + HISTORIQUE
   ================================ */

/* Activities sections layout */
.activities-section {
  margin-bottom: var(--space-3xl);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--slate-100);
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 24px;
  font-weight: 700;
  color: var(--slate-800);
  margin: 0;
}

.section-icon {
  font-size: 1.2em;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  background: var(--emerald);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
}

.section-separator {
  height: 2px;
  background: linear-gradient(90deg, var(--emerald-200) 0%, var(--emerald-100) 50%, var(--emerald-200) 100%);
  margin: var(--space-3xl) 0;
  border-radius: var(--radius-sm);
}

/* Active calls grid */
.active-calls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

/* Active call cards */
.active-call-card {
  background: linear-gradient(145deg, var(--white) 0%, #fafbfc 100%);
  border: 2px solid var(--emerald-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.active-call-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  animation: pulse-active 2s infinite;
}

@keyframes pulse-active {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.active-call-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-300);
  box-shadow: var(--shadow-xl);
}

.active-call-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.active-call-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--emerald-600);
}

.active-call-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald-600);
  background: white;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  border: 2px solid var(--emerald-500);
}

.active-call-type {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: var(--space-sm);
}

.active-call-message {
  font-size: 14px;
  color: var(--slate-600);
  background: var(--emerald-50);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  border-left: 3px solid var(--emerald-200);
}

.active-call-time {
  font-size: 12px;
  color: var(--slate-500);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.active-call-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.btn-action {
  flex: 1;
  min-width: 120px;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.btn-replay {
  background: var(--gradient-primary);
  color: white;
}

.btn-replay:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-next {
  background: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
}

.btn-next:hover {
  background: var(--slate-200);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.3);
}

.btn-terminate {
  background: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
}

.btn-terminate:hover {
  background: var(--slate-200);
  transform: translateY(-1px);
}

/* Loading and empty states for active calls */
#activeCallsLoading, #activeCallsEmpty {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--slate-600);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--slate-200);
  border-top: 4px solid var(--emerald);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-md);
}

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

.empty-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

/* Mobile responsive for activities */
@media (max-width: 768px) {
  .active-calls-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .section-title {
    font-size: 20px;
  }

  .active-call-actions {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .btn-action {
    min-width: auto;
    font-size: 13px;
    padding: var(--space-xs) var(--space-sm);
  }

  .activities-section {
    margin-bottom: var(--space-2xl);
  }
}

/* ================================
   CAST TOOL - SÉLECTION ICÔNES ET DÉTECTION
   ================================ */

/* Grid de sélection des types d'appareils */
.device-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.device-type-card {
  background: white;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.device-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.device-type-card:hover {
  border-color: var(--emerald-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.device-type-card.selected {
  border-color: var(--emerald-500);
  background: var(--emerald-50);
}

.device-type-card.selected::before {
  transform: scaleX(1);
}

.device-type-icon {
  font-size: 32px;
  margin-bottom: var(--space-sm);
}

.device-type-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: var(--space-xs);
}

.device-type-desc {
  font-size: 11px;
  color: var(--slate-500);
  line-height: 1.3;
}

/* Section de détection d'appareils */
.cast-detection-section {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
}

.detected-devices-list {
  margin-top: var(--space-lg);
}

.detection-loading {
  text-align: center;
  padding: var(--space-xl);
  color: var(--slate-600);
}

.detection-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.devices-grid {
  display: grid;
  gap: var(--space-sm);
}

.detected-device {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.detected-device.available {
  cursor: pointer;
}

.detected-device.available:hover {
  border-color: var(--emerald-300);
  background: var(--emerald-50);
}

.detected-device.selected {
  border-color: var(--emerald-500);
  background: var(--emerald-100);
}

.detected-device.unavailable {
  opacity: 0.6;
  cursor: not-allowed;
}

.device-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.device-info {
  flex: 1;
}

.device-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 2px;
}

.device-ip {
  font-size: 12px;
  color: var(--slate-500);
  font-family: monospace;
  margin-bottom: 4px;
}

.device-status {
  font-size: 11px;
  font-weight: 500;
}

.device-status.online {
  color: var(--emerald-600);
}

.device-status.offline {
  color: #dc2626;
}

/* État vide - aucun appareil */
.no-devices {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--slate-600);
}

.no-devices-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.7;
}

.no-devices-text {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.no-devices-help {
  font-size: 13px;
  color: var(--slate-500);
}

/* Erreur de détection */
.detection-error {
  text-align: center;
  padding: var(--space-xl);
  color: #dc2626;
}

.error-icon {
  font-size: 32px;
  margin-bottom: var(--space-sm);
}

.error-text {
  font-size: 14px;
  font-weight: 500;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .device-type-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  
  .device-type-card {
    padding: var(--space-md);
  }
  
  .device-type-icon {
    font-size: 24px;
  }
  
  .device-type-name {
    font-size: 13px;
  }
  
  .device-type-desc {
    font-size: 10px;
  }
  
  .detected-device {
    flex-direction: column;
    text-align: center;
    padding: var(--space-sm);
  }
  
  .cast-detection-section {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  .device-type-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================
   MOBILE HEADER & SIDEBAR TOGGLE
   ================================ */

/* Mobile Header */
.mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--slate-900);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mobile-user-info-centered {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  justify-content: center;
}

.mobile-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--emerald-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
}

.mobile-user-details {
  display: flex;
  flex-direction: column;
}

.mobile-user-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}

.mobile-user-plan {
  font-size: 10px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  background: none;
  border: 2px solid #ffffff;
  border-radius: var(--radius-md);
  padding: 8px;
  margin-right: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-sidebar-overlay.overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: var(--color-bg-primary);
  z-index: 999;
  transition: left 0.3s ease;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.mobile-sidebar.mobile-active {
  left: 0;
}

.mobile-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.mobile-sidebar-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.mobile-sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
}

.mobile-nav-item:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.mobile-nav-item.active {
  background: var(--color-primary);
  color: white;
}

.mobile-sidebar-user {
  padding: 1rem;
  border-top: 1px solid var(--color-border);
}

.logout-btn-mobile {
  width: 100%;
  padding: 8px 16px;
  background: var(--color-danger);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s ease;
}

.logout-btn-mobile:hover {
  background: #dc2626;
}

.mobile-sidebar-overlay.mobile-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Brand (replacement for toggle) */
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-brand-logo {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
}

.mobile-brand-name {
  font-weight: 600;
  font-size: 16px;
  color: white;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 12px;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.mobile-nav-item-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #64748b;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
  min-width: 60px;
}

.mobile-nav-item-bottom:hover {
  color: #1e40af;
  background: rgba(30, 64, 175, 0.1);
}

.mobile-nav-item-bottom.active {
  color: #1e40af;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
}

.mobile-nav-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.mobile-nav-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.mobile-nav-badge {
  background: #f59e0b;
  color: white;
  font-size: 8px;
  padding: 2px 4px;
  border-radius: 4px;
  position: absolute;
  top: -2px;
  right: -2px;
}

/* Body padding for mobile bottom nav */
@media (max-width: 1023px) {
  body {
    padding-bottom: 80px;
  }
  
  .main-content {
    padding-bottom: 20px;
  }
}

/* Hide on desktop */
@media (min-width: 1024px) {
  .mobile-bottom-nav {
    display: none;
  }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mobile-nav-item-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
  min-width: 60px;
}

.mobile-nav-item-bottom:hover,
.mobile-nav-item-bottom.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.mobile-nav-icon {
  font-size: 20px;
  margin-bottom: 4px;
  transition: transform 0.2s ease;
}

.mobile-nav-item-bottom:hover .mobile-nav-icon,
.mobile-nav-item-bottom.active .mobile-nav-icon {
  transform: scale(1.1);
}

.mobile-nav-label {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.mobile-nav-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 4px;
  min-width: 16px;
  text-align: center;
}

/* Add bottom padding to prevent content being hidden by bottom nav */
@media (max-width: 768px) {
  .main-content {
    padding-bottom: 80px;
  }
}

/* Mobile Sidebar Responsive */
@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100vh;
    width: 280px;
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
  }

  .sidebar.sidebar-open,
  .sidebar.mobile-active {
    left: 0;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  .dashboard-layout {
    flex-direction: column;
  }

  /* Prevent body scroll when sidebar is open */
  body.sidebar-open {
    overflow: hidden;
  }
}

/* ================================
   RESPONSIVE TYPOGRAPHY
   ================================ */

@media (max-width: 640px) {
  .page-title {
    font-size: 24px;
  }
  
  .card {
    padding: var(--space-lg);
  }
  
  .call-workflow-card {
    padding: var(--space-lg);
  }
  
  .workflow-step {
    padding: var(--space-lg);
  }
  
  .number-display-elegant {
    font-size: 36px;
    padding: var(--space-lg);
    min-width: 160px;
  }
}

/* ================================
   LOADING & ANIMATIONS
   ================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-slide-up {
  animation: slideInUp 0.4s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* ================================
   AUTH PAGES - ENHANCED
   ================================ */

.auth-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-2xl);
  background: var(--gradient-light);
}

.auth-card {
  background: var(--white);
  padding: var(--space-2xl) var(--space-xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid var(--slate-100);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.auth-logo {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  font-weight: 800;
  box-shadow: var(--shadow-lg);
}

.text-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--slate-800);
  margin-bottom: var(--space-sm);
}

.text-body {
  color: var(--slate-600);
}

.auth-form {
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: var(--space-sm);
}

.auth-footer {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--slate-100);
}

.text-caption {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: var(--space-sm);
}

.auth-link {
  color: var(--emerald);
  text-decoration: none;
  font-weight: 600;
}

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

/* ================================
   UTILITIES
   ================================ */

.hidden { display: none !important; }
.visible { display: block !important; }

.text-center { text-align: center; }
.text-emerald { color: var(--emerald) !important; }
.text-white { color: var(--white) !important; }

.mt-2 { margin-top: var(--space-sm); }
.mt-4 { margin-top: var(--space-md); }
.mt-6 { margin-top: var(--space-lg); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-4 { margin-bottom: var(--space-md); }
.mb-6 { margin-bottom: var(--space-lg); }

.p-4 { padding: var(--space-md); }
.p-6 { padding: var(--space-lg); }

/* Touch & Accessibility */
.touch-target {
  min-height: 44px;
  min-width: 44px;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

/* ================================
   AUDIO TOGGLE SWITCH
   ================================ */

.audio-preferences-section {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.toggle-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin: 0;
}

.toggle-text {
  font-weight: 600;
  color: var(--slate-700);
  font-size: 0.95rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--slate-300);
  transition: all 0.3s ease;
  border-radius: 28px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.toggle-input:checked + .toggle-slider {
  background-color: var(--emerald);
}

.toggle-input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-description {
  color: var(--slate-500);
  font-size: 0.85rem;
  line-height: 1.3;
  margin: 0;
}

.toggle-switch:hover .toggle-slider {
  box-shadow: var(--shadow-md);
}

.toggle-input:focus + .toggle-slider {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --slate-100: #d1d5db;
    --slate-200: #9ca3af;
  }
}

/* ================================
   ADDITIONAL PROFILE PAGE STYLES
   ================================ */

/* Profile Tabs Enhanced */
.profile-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--slate-200);
  padding-bottom: 0;
}

.tab-button {
  background: none;
  border: none;
  padding: var(--space-md) var(--space-lg);
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  top: 2px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.tab-button:hover:not(.active) {
  color: var(--slate-800);
  background: var(--slate-50);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.tab-button.active {
  color: var(--emerald-600);
  border-bottom-color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.05);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.tab-icon {
  font-size: 18px;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Premium Badge */
.premium-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form Grid Layout */
.form-grid {
  display: grid;
  gap: var(--space-lg);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-start;
  margin-top: var(--space-lg);
}

/* Button Icons */
.btn-icon {
  font-size: 16px;
}

/* Subscription Plans Grid */
.subscription-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .subscription-plans {
    grid-template-columns: 1fr 1fr;
  }
}

/* Subscription Card Enhanced */
.subscription-card {
  background: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all 0.3s ease;
  position: relative;
}

.subscription-card:hover {
  border-color: var(--emerald-400);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.subscription-card.active {
  border-color: var(--emerald-500);
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  box-shadow: var(--shadow-xl);
}

/* Plan Structure */
.plan-header {
  margin-bottom: var(--space-lg);
}

.plan-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: var(--space-sm);
}

.plan-description {
  color: var(--slate-600);
  font-size: 14px;
}

.plan-features {
  margin: var(--space-lg) 0;
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features li {
  padding: var(--space-sm) 0;
  font-size: 14px;
}

.feature-included {
  color: var(--emerald-700);
}

.feature-excluded {
  color: var(--slate-500);
}

.plan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-lg);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.plan-price .price {
  font-size: 24px;
  font-weight: 800;
  color: var(--emerald-600);
}

.plan-price .period {
  font-size: 14px;
  color: var(--slate-500);
  font-weight: 500;
}

.current-plan-badge {
  background: var(--emerald-100);
  color: var(--emerald-700);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--emerald-300);
}

/* Alert Styles */
.alert {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  border: 2px solid transparent;
}

.alert-success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: var(--emerald-700);
  border-color: var(--emerald-300);
}

.alert-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  border-color: #f59e0b;
}

.alert-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.alert-content h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.alert-content p {
  margin: 0;
  font-size: 14px;
}

/* Customization Sections */
.customization-section {
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: var(--space-sm);
}

.section-description {
  color: var(--slate-600);
  font-size: 14px;
  margin-bottom: var(--space-lg);
}

/* Voice Grid */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.voice-card {
  background: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.voice-card:hover {
  border-color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.05);
  transform: translateY(-2px);
}

.voice-card.selected {
  border-color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: var(--shadow-md);
}

/* Theme Grid */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.theme-card {
  background: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.theme-card:hover {
  border-color: var(--emerald-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.theme-card.selected {
  border-color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: var(--shadow-md);
}

/* Mobile Responsive for Profile */
@media (max-width: 768px) {
  .profile-tabs {
    flex-wrap: wrap;
    gap: var(--space-xs);
  }
  
  .tab-button {
    padding: var(--space-sm) var(--space-md);
    font-size: 14px;
  }
  
  .subscription-plans {
    grid-template-columns: 1fr;
  }
  
  .voice-grid {
    grid-template-columns: 1fr;
  }
  
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .plan-footer {
    flex-direction: column;
    gap: var(--space-md);
    align-items: stretch;
  }
  
  .form-actions {
    flex-direction: column;
  }
}

/* ================================
   PROFILE PAGE STYLES
   ================================ */

/* Profile Tabs Navigation */
.profile-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--slate-200);
  padding-bottom: var(--space-md);
}

.profile-tab-btn {
  background: none;
  border: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 16px;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.profile-tab-btn:hover {
  background: var(--slate-100);
  color: var(--slate-800);
}

.profile-tab-btn.active {
  background: var(--emerald-100);
  color: var(--emerald-700);
  border: 2px solid var(--emerald-300);
}

.profile-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--emerald-500);
  border-radius: 2px;
}

/* Profile Tab Content */
.profile-tab-content {
  display: none;
}

.profile-tab-content.active {
  display: block;
}

/* Profile Sections */
.profile-section {
  background: white;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.profile-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Profile Forms */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.profile-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.profile-field {
  display: flex;
  flex-direction: column;
}

.profile-field.full-width {
  grid-column: 1 / -1;
}

.profile-field label {
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: var(--space-sm);
  font-size: 14px;
}

.profile-field input,
.profile-field textarea {
  padding: var(--space-md);
  border: 2px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-size: 16px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.profile-field input:focus,
.profile-field textarea:focus {
  outline: none;
  border-color: var(--emerald-400);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.profile-field textarea {
  resize: vertical;
  min-height: 60px;
}

/* Profile Actions */
.profile-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-start;
  margin-top: var(--space-xl);
}

/* Subscription Styles */
.subscription-current {
  margin-bottom: var(--space-xl);
}

.current-plan {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--slate-300);
}

.current-plan.basic {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-color: var(--slate-400);
}

.current-plan.premium {
  background: linear-gradient(135deg, #fef3c7 0%, #fde047 100%);
  border-color: #d97706;
}

.current-plan-badge {
  font-weight: 700;
  font-size: 18px;
}

.current-plan-price {
  font-size: 16px;
  color: var(--slate-600);
  font-weight: 600;
}

/* Subscription Plans */
.subscription-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.plan-card {
  background: white;
  border: 2px solid var(--slate-300);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.3s ease;
  position: relative;
}

.plan-card:hover {
  border-color: var(--emerald-400);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.plan-card.current {
  border-color: var(--emerald-500);
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.plan-card.premium .plan-header {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  margin: calc(var(--space-xl) * -1) calc(var(--space-xl) * -1) var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.plan-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.plan-header.recommended::before {
  content: 'RECOMMANDÉ';
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ef4444;
  color: white;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.plan-header h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.plan-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--emerald-600);
}

.plan-card.premium .plan-price {
  color: white;
}

.plan-price span {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.7;
}

.plan-features {
  margin: var(--space-lg) 0;
}

.plan-features .feature {
  padding: var(--space-sm) 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.plan-features .feature.premium {
  color: var(--emerald-700);
  font-weight: 600;
}

.plan-current {
  background: var(--emerald-100);
  color: var(--emerald-700);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
  border: 2px solid var(--emerald-300);
}

.plan-current.premium {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  border-color: #6d28d9;
}

/* Voice Selection Styles */
.voice-languages {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.voice-language-section h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.voice-option {
  background: white;
  border: 2px solid var(--slate-300);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.voice-option:hover {
  border-color: var(--emerald-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.voice-option.active {
  border-color: var(--emerald-500);
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.voice-avatar {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 30px;
}

.voice-avatar.male {
  background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
}

.voice-avatar.female {
  background: linear-gradient(135deg, #fce7f3 0%, #f9a8d4 100%);
}

.voice-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--slate-800);
  margin-bottom: var(--space-xs);
}

.voice-description {
  font-size: 12px;
  color: var(--slate-600);
  margin-bottom: var(--space-md);
}

/* TV Styles Grid */
.tv-styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-lg);
}

.tv-style-option {
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.tv-style-option:hover {
  transform: translateY(-2px);
}

.tv-style-option.active .tv-style-preview {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.tv-style-preview {
  width: 100%;
  height: 100px;
  border: 3px solid var(--slate-300);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.preview-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* TV Style Themes */
.tv-style-preview.modern-blue {
  background: linear-gradient(135deg, #0f4c75 0%, #3282b8 100%);
}

.tv-style-preview.elegant-green {
  background: linear-gradient(135deg, #065f46 0%, #059669 100%);
}

.tv-style-preview.warm-orange {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}

.tv-style-preview.corporate-gray {
  background: linear-gradient(135deg, #374151 0%, #6b7280 100%);
}

.tv-style-preview.vibrant-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.tv-style-preview.classic-red {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.tv-style-preview.fresh-cyan {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}

.tv-style-preview.golden-yellow {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.tv-style-preview.dark-mode {
  background: linear-gradient(135deg, #111827 0%, #374151 100%);
}

.tv-style-preview.high-contrast {
  background: linear-gradient(135deg, #000000 0%, #ffffff 100%);
}

.tv-style-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-700);
}

/* Premium Feature Locked */
.premium-feature-locked {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.lock-icon {
  font-size: 48px;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.lock-text h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: var(--space-sm);
}

.lock-text p {
  color: var(--slate-600);
  margin-bottom: var(--space-lg);
}

/* Promo Videos Section */
.promo-videos-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.promo-video-upload {
  margin-bottom: var(--space-lg);
}

.upload-area {
  border: 2px dashed var(--slate-400);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--slate-50);
}

.upload-area:hover {
  border-color: var(--emerald-400);
  background: var(--emerald-50);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
  color: var(--slate-500);
}

.upload-text {
  font-weight: 600;
  color: var(--slate-700);
}

.upload-formats {
  font-size: 12px;
  color: var(--slate-500);
  margin-top: var(--space-xs);
}

.promo-video-settings {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: var(--slate-50);
  border-radius: var(--radius-md);
}

.setting-label {
  font-weight: 600;
  color: var(--slate-700);
}

.setting-control {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--slate-400);
  transition: 0.4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--emerald-500);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .profile-tabs {
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .profile-tab-btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 14px;
    text-align: left;
  }
  
  .profile-form-row {
    grid-template-columns: 1fr;
  }
  
  .subscription-plans {
    grid-template-columns: 1fr;
  }
  
  .voice-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .tv-styles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .profile-actions {
    flex-direction: column;
  }
}
/* ================================
   PROFILE SETTINGS ENHANCED STYLES
   ================================ */

/* Profile card subtitle */
.card-subtitle {
  color: var(--slate-600);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 400;
}

/* Form help text */
.form-help {
  display: block;
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* Current email display */
.current-email-display {
  background: var(--slate-50);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--emerald);
}

/* Warning button style */
.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-warning:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
}

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

/* Email confirmation page styles */
.confirmation-details {
  background: var(--slate-50);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.confirmation-details code {
  background: var(--slate-200);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}
