﻿    /* ==================== LOGIN & AUTH PAGES ==================== */
    .auth-container {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--background);
      z-index: 9000;
      overflow-y: auto;
    }

    .auth-container.active {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px 24px;
    }

    /* Split layout */
    .auth-split {
      display: flex;
      width: 100%;
      min-height: 100vh;
    }

    /* ---- Left brand panel ---- */
    .auth-brand-panel {
      position: relative;
      width: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: 48px;
    }

    .auth-brand-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
    }

    .auth-brand-gradient {
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, #0c1a2e 0%, #0a1628 30%, #0d1f35 60%, #0a0b14 100%);
    }

    .auth-brand-grid {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(34, 211, 187, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 187, 0.04) 1px, transparent 1px);
      background-size: 40px 40px;
    }

    .auth-brand-orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      opacity: 0.35;
    }

    .auth-brand-orb-1 {
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, #22d3bb 0%, transparent 70%);
      top: -100px;
      right: -100px;
      animation: authOrbFloat 8s ease-in-out infinite;
    }

    .auth-brand-orb-2 {
      width: 300px;
      height: 300px;
      background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
      bottom: -80px;
      left: -80px;
      animation: authOrbFloat 10s ease-in-out infinite reverse;
    }

    @keyframes authOrbFloat {
      0%, 100% { transform: translate(0, 0) scale(1); }
      50% { transform: translate(30px, -20px) scale(1.1); }
    }

    .auth-brand-content {
      position: relative;
      z-index: 1;
      max-width: 440px;
    }

    .auth-brand-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 40px;
    }

    .auth-brand-logo span {
      font-size: 22px;
      font-weight: 700;
      color: #fff;
    }

    .auth-brand-logo em {
      font-style: normal;
      background: linear-gradient(135deg, #22d3bb, #3b82f6);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .auth-brand-headline {
      font-size: 32px;
      font-weight: 800;
      line-height: 1.2;
      color: #fff;
      margin-bottom: 16px;
    }

    .auth-brand-desc {
      font-size: 15px;
      line-height: 1.6;
      color: rgba(255, 255, 255, 0.6);
      margin-bottom: 32px;
    }

    .auth-brand-features {
      display: flex;
      flex-direction: column;
      gap: 14px;
      margin-bottom: 40px;
    }

    .auth-brand-feature {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 14px;
      color: rgba(255, 255, 255, 0.8);
    }

    .auth-brand-feature svg {
      flex-shrink: 0;
    }

    .auth-brand-stats {
      display: flex;
      align-items: center;
      gap: 20px;
      padding: 20px 24px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      backdrop-filter: blur(8px);
    }

    .auth-brand-stat {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .auth-brand-stat strong {
      font-size: 20px;
      font-weight: 800;
      background: linear-gradient(135deg, #22d3bb, #60a5fa);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .auth-brand-stat span {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.5);
    }

    .auth-brand-stat-divider {
      width: 1px;
      height: 32px;
      background: rgba(255, 255, 255, 0.1);
    }

    /* ---- Right form panel ---- */
    .auth-form-panel {
      width: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 48px;
      background: var(--background);
    }

    .auth-box {
      width: 100%;
      max-width: 420px;
      animation: authSlideIn 0.5s ease-out;
    }

    @keyframes authSlideIn {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .auth-logo-mobile {
      display: none;
      margin-bottom: 24px;
    }

    /* Base layout only — sizing/spacing/colors are refined in index.css */
    .auth-logo {
      display: flex;
      align-items: center;
    }

    .auth-logo img {
      flex-shrink: 0;
    }

    .auth-header {
      margin-bottom: 32px;
    }

    .auth-title {
      font-size: 28px;
      font-weight: 800;
      margin-bottom: 8px;
      color: var(--foreground);
      letter-spacing: -0.02em;
    }

    .auth-subtitle {
      font-size: 15px;
      color: var(--muted);
      line-height: 1.5;
    }

    .auth-form {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .form-row-half {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .form-label {
      font-size: 13px;
      font-weight: 600;
      color: var(--foreground);
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .input-wrapper {
      position: relative;
      display: flex;
      align-items: center;
    }

    .input-icon {
      position: absolute;
      left: 14px;
      color: var(--muted);
      pointer-events: none;
      transition: color 0.2s ease;
      z-index: 1;
    }

    .input-wrapper:focus-within .input-icon {
      color: var(--primary);
    }

    .form-input {
      width: 100%;
      padding: 13px 16px;
      background: var(--secondary);
      border: 1.5px solid var(--border);
      border-radius: 10px;
      color: var(--foreground);
      font-size: 14px;
      font-family: inherit;
      transition: all 0.25s ease;
    }

    .form-input:focus {
      outline: none;
      border-color: var(--primary);
      background: var(--card);
      box-shadow: 0 0 0 4px rgba(34, 211, 187, 0.1), 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .form-input::placeholder {
      color: var(--muted);
    }

    /* Password toggle */
    .password-toggle {
      position: absolute;
      right: 12px;
      background: none;
      border: none;
      cursor: pointer;
      color: var(--muted);
      padding: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: color 0.2s ease;
      z-index: 1;
    }

    .password-toggle:hover {
      color: var(--foreground);
    }

    /* Password strength */
    .password-strength {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 6px;
    }

    .strength-bars {
      display: flex;
      gap: 4px;
      flex: 1;
    }

    .strength-bar {
      height: 3px;
      flex: 1;
      border-radius: 2px;
      background: var(--border);
      transition: background 0.3s ease;
    }

    .strength-bar.weak { background: #ef4444; }
    .strength-bar.fair { background: #f59e0b; }
    .strength-bar.good { background: #22d3bb; }
    .strength-bar.strong { background: #22d3bb; }

    .strength-text {
      font-size: 11px;
      color: var(--muted);
      white-space: nowrap;
      min-width: 100px;
      text-align: right;
    }

    /* Submit button */
    .auth-submit {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 14px 24px;
      background: linear-gradient(135deg, #22d3bb, #14b8a6);
      border: none;
      border-radius: 10px;
      color: #0a0b14;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-top: 4px;
      position: relative;
      overflow: hidden;
    }

    .auth-submit::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
      transform: translateX(-100%);
      transition: transform 0.5s ease;
    }

    .auth-submit:hover:not(:disabled)::before {
      transform: translateX(100%);
    }

    .auth-submit:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(34, 211, 187, 0.3), 0 2px 8px rgba(34, 211, 187, 0.15);
    }

    .auth-submit:active:not(:disabled) {
      transform: translateY(0);
    }

    .auth-submit:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .auth-submit svg {
      transition: transform 0.2s ease;
    }

    .auth-submit:hover:not(:disabled) svg {
      transform: translateX(3px);
    }

    /* Footer */
    .auth-footer {
      text-align: center;
      margin-top: 28px;
      font-size: 14px;
      color: var(--muted);
    }

    .auth-footer a {
      color: var(--primary);
      text-decoration: none;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.2s ease;
    }

    .auth-footer a:hover {
      color: var(--primary-dark);
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    /* ---- Auth responsive ---- */
    @media (max-width: 1024px) {
      .auth-brand-panel {
        width: 45%;
        padding: 32px;
      }
      .auth-form-panel {
        width: 55%;
        padding: 32px;
      }
      .auth-brand-headline {
        font-size: 26px;
      }
    }

    @media (max-width: 768px) {
      .auth-brand-panel {
        display: none;
      }
      .auth-form-panel {
        width: 100%;
        padding: 24px;
        min-height: 100vh;
      }
      .auth-logo-mobile {
        display: block;
      }
      .form-row-half {
        grid-template-columns: 1fr;
      }
      .auth-box {
        max-width: 100%;
      }
    }

    @media (max-width: 480px) {
      .auth-form-panel {
        padding: 20px 16px;
      }
      .auth-title {
        font-size: 24px;
      }
    }

    /* ==================== PLAN SELECTION ==================== */
    .plan-selection-container {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--background);
      z-index: 9000;
      align-items: center;
      justify-content: center;
      overflow-y: auto;
      padding: 20px;
    }

    .plan-selection-container.active {
      display: flex;
    }

    .plan-selection-box {
      width: 100%;
      max-width: 1200px;
      animation: slideInUp 0.4s ease-out;
    }

    .plan-header {
      text-align: center;
      margin-bottom: 40px;
    }

    .plan-title {
      font-size: 32px;
      font-weight: 700;
      margin-bottom: 12px;
      color: var(--foreground);
    }

    .plan-subtitle {
      font-size: 16px;
      color: var(--muted);
      max-width: 600px;
      margin: 0 auto;
    }

    .plans-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 24px;
      margin-bottom: 32px;
    }

    .plan-card {
      background: var(--card);
      border: 2px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 32px 24px;
      position: relative;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
    }

    .plan-card:hover {
      border-color: var(--primary);
      transform: translateY(-8px);
      box-shadow: 0 12px 30px rgba(34, 211, 187, 0.15);
    }

    .plan-card.selected {
      border-color: var(--primary);
      background: rgba(34, 211, 187, 0.05);
      box-shadow: 0 0 20px rgba(34, 211, 187, 0.2);
    }

    .plan-badge {
      position: absolute;
      top: -12px;
      left: 24px;
      background: var(--primary);
      color: var(--background);
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
    }

    .plan-card.selected .plan-badge {
      display: flex;
    }

    .plan-name {
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 8px;
      color: var(--foreground);
    }

    .plan-description {
      font-size: 14px;
      color: var(--muted);
      margin-bottom: 16px;
      flex: 1;
    }

    .plan-price {
      font-size: 24px;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 4px;
    }

    .plan-price-period {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 24px;
    }

    .plan-features {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 24px;
    }

    .plan-feature {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      color: var(--foreground);
    }

    .plan-feature svg {
      width: 16px;
      height: 16px;
      color: var(--primary);
      flex-shrink: 0;
    }

    .plan-select-btn {
      padding: 12px 24px;
      background: var(--secondary);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      color: var(--foreground);
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .plan-card.selected .plan-select-btn {
      background: var(--primary);
      border-color: var(--primary);
      color: var(--background);
    }

    .plan-select-btn:hover {
      background: var(--card-hover);
      border-color: var(--primary);
    }

    .plan-action-buttons {
      display: flex;
      gap: 16px;
      justify-content: center;
      margin-top: 32px;
    }

    .plan-action-btn {
      padding: 14px 32px;
      border: none;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .plan-action-btn.primary {
      background: var(--primary);
      color: var(--background);
    }

    .plan-action-btn.primary:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
    }

    .plan-action-btn.secondary {
      background: var(--secondary);
      border: 1px solid var(--border);
      color: var(--foreground);
    }

    .plan-action-btn.secondary:hover {
      border-color: var(--primary);
    }

    /* ==================== USER SELECTOR SEARCH ==================== */


    /* ==================== RESPONSIVE AUTH ==================== */
