    :root {
      --primary: #4361ee;
      --primary-dark: #3a0ca3;
      --primary-light: #4cc9f0;
      --secondary: #7209b7;
      --success: #4caf50;
      --warning: #ff9800;
      --danger: #f44336;
      --light: #f8f9fa;
      --dark: #212529;
      --gray: #6c757d;
      --light-gray: #e9ecef;
      --border-radius: 12px;
      --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      --transition: all 0.3s ease;
      --gradient-primary: linear-gradient(135deg, #4361ee, #3a0ca3);
      --gradient-accent: linear-gradient(135deg, #4cc9f0, #3a0ca3);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Segoe UI', 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
      background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
      color: var(--dark);
      line-height: 1.6;
      min-height: 100vh;
      padding: 20px;
    }

    .container {
      max-width: 1100px;
      margin: 0 auto;
      background-color: white;
      border-radius: 20px;
      box-shadow: var(--box-shadow);
      overflow: hidden;
    }

    /* Header */
    header {
      background: var(--gradient-primary);
      color: white;
      padding: 30px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    header::before {
      content: "";
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
      background-size: 20px 20px;
      opacity: 0.3;
      z-index: 0;
    }

    .header-content {
      position: relative;
      z-index: 1;
    }

    h1 {
      font-size: 2.8rem;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 15px;
      flex-wrap: wrap;
    }

    .logo-icon {
      font-size: 2.5rem;
      background: rgba(255, 255, 255, 0.2);
      width: 70px;
      height: 70px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .subtitle {
      font-size: 1.2rem;
      opacity: 0.9;
      max-width: 700px;
      margin: 0 auto 20px;
    }

    .stats-bar {
      display: flex;
      justify-content: center;
      gap: 30px;
      margin-top: 25px;
      flex-wrap: wrap;
    }

    .stat-item {
      background: rgba(255, 255, 255, 0.15);
      padding: 10px 20px;
      border-radius: 50px;
      display: flex;
      align-items: center;
      gap: 10px;
      backdrop-filter: blur(5px);
    }

    /* Main Content */
    .main-content {
      padding: 30px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
    }

    @media (max-width: 900px) {
      .main-content {
        grid-template-columns: 1fr;
      }
    }

    .card {
      background: white;
      border-radius: var(--border-radius);
      padding: 25px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
      border: 1px solid var(--light-gray);
      transition: var(--transition);
      height: 100%;
    }

    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
      padding-bottom: 15px;
      border-bottom: 2px solid var(--light-gray);
    }

    .card-title {
      font-size: 1.4rem;
      color: var(--primary-dark);
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .card-title .flag {
      font-size: 1.8rem;
    }

    .language-label {
      display: inline-block;
      background: var(--light-gray);
      color: var(--dark);
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 600;
    }

    .language-label.es {
      background: #f0f8ff;
      color: var(--primary);
    }

    .language-label.en {
      background: #f0fff4;
      color: var(--success);
    }

    .textarea-container {
      position: relative;
      margin-bottom: 20px;
    }

    textarea {
      width: 100%;
      min-height: 180px;
      padding: 20px;
      font-size: 16px;
      border: 2px solid var(--light-gray);
      border-radius: 10px;
      resize: vertical;
      transition: var(--transition);
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      line-height: 1.5;
    }

    textarea:focus {
      outline: none;
      border-color: var(--primary-light);
      box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.2);
    }

    .char-count {
      position: absolute;
      bottom: 10px;
      right: 15px;
      background: rgba(0, 0, 0, 0.7);
      color: white;
      padding: 3px 8px;
      border-radius: 10px;
      font-size: 0.8rem;
    }

    .btn-group {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 20px;
    }

    .btn {
      padding: 12px 24px;
      font-size: 16px;
      font-weight: 600;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      transition: var(--transition);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      flex: 1;
      min-width: 140px;
    }

    .btn-primary {
      background: var(--gradient-primary);
      color: white;
    }

    .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 7px 15px rgba(67, 97, 238, 0.3);
    }

    .btn-secondary {
      background: var(--light-gray);
      color: var(--dark);
    }

    .btn-secondary:hover {
      background: #dde1e7;
      transform: translateY(-3px);
    }

    .btn-success {
      background: var(--success);
      color: white;
    }

    .btn-success:hover {
      background: #3d8b40;
      transform: translateY(-3px);
      box-shadow: 0 7px 15px rgba(76, 175, 80, 0.3);
    }

    .btn-warning {
      background: var(--warning);
      color: white;
    }

    .btn-warning:hover {
      background: #e68900;
      transform: translateY(-3px);
    }

    .btn-danger {
      background: var(--danger);
      color: white;
    }

    .btn-danger:hover {
      background: #d32f2f;
      transform: translateY(-3px);
    }

    /* Settings Panel */
    .settings-panel {
      grid-column: span 2;
      background: var(--light);
      border-radius: var(--border-radius);
      padding: 25px;
      margin-top: 20px;
    }

    @media (max-width: 900px) {
      .settings-panel {
        grid-column: span 1;
      }
    }

    .settings-title {
      font-size: 1.5rem;
      color: var(--primary-dark);
      margin-bottom: 25px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .settings-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
    }

    .setting-group {
      background: white;
      padding: 20px;
      border-radius: 10px;
      border: 1px solid var(--light-gray);
    }

    .setting-title {
      font-size: 1.1rem;
      margin-bottom: 15px;
      color: var(--dark);
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .slider-container {
      margin-bottom: 20px;
    }

    .slider-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }

    .slider-header label {
      font-weight: 600;
      color: var(--dark);
    }

    .slider-value {
      background: var(--primary);
      color: white;
      padding: 4px 12px;
      border-radius: 20px;
      font-weight: 600;
      font-size: 0.9rem;
      min-width: 50px;
      text-align: center;
    }

    .range-slider {
      width: 100%;
      height: 8px;
      border-radius: 4px;
      background: var(--light-gray);
      outline: none;
      -webkit-appearance: none;
    }

    .range-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--primary);
      cursor: pointer;
      box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    }

    .range-slider::-moz-range-thumb {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--primary);
      cursor: pointer;
      border: none;
      box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    }

    .voice-selector {
      margin-top: 15px;
    }

    select {
      width: 100%;
      padding: 12px 15px;
      border-radius: 10px;
      border: 2px solid var(--light-gray);
      font-size: 16px;
      background: white;
      cursor: pointer;
      transition: var(--transition);
    }

    select:focus {
      outline: none;
      border-color: var(--primary-light);
      box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.2);
    }

    /* Controls */
    .voice-controls {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 15px;
      margin-top: 30px;
      padding-top: 30px;
      border-top: 2px solid var(--light-gray);
    }

    .control-btn {
      padding: 15px 25px;
      font-size: 16px;
      font-weight: 600;
      border-radius: 12px;
      border: none;
      cursor: pointer;
      transition: var(--transition);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      min-width: 160px;
    }

    /* Speed Presets */
    .speed-presets {
      display: flex;
      gap: 10px;
      margin-top: 15px;
      flex-wrap: wrap;
    }

    .speed-preset-btn {
      padding: 8px 16px;
      background: var(--light-gray);
      border: none;
      border-radius: 20px;
      font-size: 0.9rem;
      cursor: pointer;
      transition: var(--transition);
    }

    .speed-preset-btn:hover {
      background: #dde1e7;
    }

    .speed-preset-btn.active {
      background: var(--primary);
      color: white;
    }

    /* Footer */
    footer {
      text-align: center;
      padding: 20px;
      color: var(--gray);
      font-size: 0.9rem;
      border-top: 1px solid var(--light-gray);
      margin-top: 30px;
    }

    /* Animation */
    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.05); }
      100% { transform: scale(1); }
    }

    .pulse {
      animation: pulse 2s infinite;
    }