    :root {
      --bg-dark: #0A0A0A;
      --bg-card: #141414;
      --bg-card-hover: #1A1A1A;
      --text-primary: #E8E3DB;
      --text-secondary: #8A8A8A;
      --text-muted: #5A5A5A;
      --accent-gold: #C4A265;
      --accent-warm: #D4A76A;
      --border-subtle: #2A2A2A;
      --border-strong: #444;
      --ambient-1: #C4A265;
      --ambient-2: #8B7355;
      --accent-color: #C4A265;
      --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      --shadow-soft: 0 8px 32px rgba(0,0,0,0.4);
      --shadow-glow: 0 0 60px rgba(196, 162, 101, 0.15);
      --glass-bg: rgba(20, 20, 20, 0.85);
      --glass-border: rgba(255, 255, 255, 0.1);
      --glass-blur: 20px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg-dark);
      color: var(--text-primary);
      line-height: 1.7;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ===== DYNAMIC BACKGROUND ===== */
    #ambient {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      pointer-events: none;
      background: 
        radial-gradient(1200px 600px at 80% 10%, var(--ambient-1)08, transparent 60%),
        radial-gradient(800px 800px at 20% 80%, var(--ambient-2)06, transparent 50%),
        var(--bg-dark);
      transition: var(--transition-smooth);
    }

    .ambient-orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      opacity: 0.15;
      animation: float 20s ease-in-out infinite;
    }

    .orb-1 {
      width: 500px;
      height: 500px;
      background: var(--ambient-1);
      top: -100px;
      right: -100px;
      animation-delay: 0s;
    }

    .orb-2 {
      width: 400px;
      height: 400px;
      background: var(--ambient-2);
      bottom: -50px;
      left: -50px;
      animation-delay: -10s;
    }

    @keyframes float {
      0%, 100% { transform: translate(0, 0) scale(1); }
      25% { transform: translate(30px, -30px) scale(1.05); }
      50% { transform: translate(-20px, 20px) scale(0.95); }
      75% { transform: translate(20px, 40px) scale(1.02); }
    }

    /* ===== MOBILE MENU TOGGLE ===== */
    #mobile-menu-toggle {
      display: none;
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1002;
      width: 50px;
      height: 50px;
      background: var(--glass-bg);
      backdrop-filter: blur(var(--glass-blur));
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      cursor: pointer;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: var(--transition-smooth);
    }

    #mobile-menu-toggle:hover {
      border-color: var(--accent-gold);
      box-shadow: 0 0 20px rgba(196, 162, 101, 0.2);
    }

    .menu-line {
      width: 24px;
      height: 2px;
      background: var(--text-primary);
      border-radius: 1px;
      transition: var(--transition-smooth);
    }

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

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

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

    /* ===== SIDEBAR ===== */
    #sidebar {
      position: fixed;
      left: 0;
      top: 0;
      height: 100vh;
      width: 80px;
      background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
      border-right: 1px solid var(--border-subtle);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 30px 0;
      z-index: 1000;
      transition: var(--transition-smooth);
    }

    .sidebar-logo {
      width: 50px;
      height: 50px;
      background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Ibarra Real Nova', serif;
      font-weight: 700;
      font-size: 20px;
      color: var(--bg-dark);
      margin-bottom: 40px;
      box-shadow: 0 4px 20px rgba(196, 162, 101, 0.3);
    }

    .sidebar-nav {
      display: flex;
      flex-direction: column;
      gap: 20px;
      flex: 1;
    }

    .nav-item {
      width: 50px;
      height: 50px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      position: relative;
      transition: var(--transition-smooth);
      background: transparent;
    }

    .nav-item::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 3px;
      height: 0;
      background: var(--accent-gold);
      border-radius: 0 2px 2px 0;
      transition: var(--transition-smooth);
    }

    .nav-item.active::before { height: 60%; }
    .nav-item.active { background: var(--bg-card-hover); }
    .nav-item:hover { background: var(--bg-card-hover); }

    .nav-icon {
      font-size: 20px;
      transition: var(--transition-smooth);
    }

    .nav-item.active .nav-icon { transform: scale(1.1); }

    .nav-tooltip {
      position: absolute;
      left: 70px;
      background: var(--bg-card-hover);
      border: 1px solid var(--border-subtle);
      border-radius: 8px;
      padding: 8px 14px;
      font-size: 13px;
      white-space: nowrap;
      opacity: 0;
      visibility: hidden;
      transition: var(--transition-smooth);
      z-index: 100;
    }

    .nav-item:hover .nav-tooltip {
      opacity: 1;
      visibility: visible;
    }

    /* ===== MAIN CONTENT ===== */
    #main-container {
      margin-left: 80px;
      min-height: 100vh;
      transition: var(--transition-smooth);
    }

    .section {
      min-height: 100vh;
      padding: 60px 60px;
      display: flex;
      flex-direction: column;
      position: relative;
    }

    .section-content {
      max-width: 1400px;
      width: 100%;
      margin: 0 auto;
    }

    .section-header {
      text-align: center;
      margin-bottom: 60px;
    }

    .section-title {
      font-family: Noto Serif SC, serif;
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 600;
      margin-bottom: 15px;
      color: var(--text-primary);
      background: linear-gradient(135deg, var(--text-primary), var(--accent-gold));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      font-family: 'Noto Serif SC', serif;
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 600;
      margin-bottom: 15px;
      background: linear-gradient(135deg, var(--text-primary), var(--accent-gold));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .section-subtitle {
      font-family: 'Ibarra Real Nova', serif;
      font-style: italic;
      font-size: 1.1rem;
      color: var(--text-secondary);
      letter-spacing: 0.1em;
    }
    /* ===== GLASSMORPHISM MODAL ===== */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(5px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      padding: 20px;
    }

    .modal-overlay.visible {
      display: flex;
    }

    .modal-content {
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      border-radius: 24px;
      padding: 40px;
      max-width: 500px;
      width: 100%;
      backdrop-filter: blur(var(--glass-blur));
      box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
      position: relative;
      animation: modalSlideIn 0.3s ease;
    }

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

    .modal-close {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(231, 76, 60, 0.2);
      border: 2px solid rgba(231, 76, 60, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1.4rem;
      font-weight: 700;
      color: #e74c3c;
      transition: var(--transition-smooth);
    }

    .modal-close:hover {
      background: #e74c3c;
      border-color: #e74c3c;
      color: #fff;
    }

    .modal-header {
      text-align: center;
      margin-bottom: 30px;
    }

    .modal-icon {
      font-size: 3rem;
      margin-bottom: 15px;
    }

    .modal-title {
      font-family: 'Noto Serif SC', serif;
      font-size: 1.5rem;
      margin-bottom: 10px;
    }

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

    .modal-form {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .form-label {
      font-size: 0.9rem;
      color: var(--text-secondary);
    }

    .form-input,
    .form-textarea {
      padding: 14px 18px;
      background: var(--bg-dark);
      border: 1px solid var(--border-subtle);
      border-radius: 12px;
      color: var(--text-primary);
      font-family: inherit;
      font-size: 1rem;
      transition: var(--transition-smooth);
    }

    .form-input:focus,
    .form-textarea:focus {
      outline: none;
      border-color: var(--accent-gold);
      box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.1);
    }

    .form-textarea {
      resize: vertical;
      min-height: 100px;
    }

    .form-submit {
      padding: 15px;
      background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
      color: var(--bg-dark);
      border: none;
      border-radius: 12px;
      font-family: 'Noto Serif SC', serif;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition-smooth);
    }

    .form-submit:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 20px rgba(196, 162, 101, 0.4);
    }

    .modal-alternative {
      margin-top: 25px;
      padding-top: 25px;
      border-top: 1px dashed var(--border-subtle);
      text-align: center;
    }

    .modal-alt-label {
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-bottom: 15px;
    }

    .qr-placeholder {
      width: 150px;
      height: 150px;
      background: var(--bg-dark);
      border: 2px dashed var(--border-subtle);
      border-radius: 12px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
    }

    .qr-icon {
      font-size: 2.5rem;
      margin-bottom: 10px;
    }

    .qr-text {
      font-size: 0.8rem;
    }

    /* ===== TOAST NOTIFICATIONS ===== */
    .toast-container {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 3000;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .toast {
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      padding: 15px 20px;
      backdrop-filter: blur(var(--glass-blur));
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 300px;
      animation: toastSlideIn 0.3s ease;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    @keyframes toastSlideIn {
      from {
        opacity: 0;
        transform: translateX(100px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .toast-icon {
      font-size: 1.3rem;
    }

    .toast-message {
      flex: 1;
      font-size: 0.9rem;
    }

    .toast-close {
      background: none;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      font-size: 1rem;
      padding: 0;
    }

    .toast.success { border-left: 3px solid #4CAF50; }
    .toast.error { border-left: 3px solid #F44336; }
    .toast.warning { border-left: 3px solid #FFC107; }
    .toast.info { border-left: 3px solid #2196F3; }

    /* ===== SKELETON LOADING ===== */
    .skeleton {
      background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s infinite;
      border-radius: 8px;
    }

    @keyframes shimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    /* ===== RESPONSIVE DESIGN ===== */
    @media (max-width: 1024px) {
      #sidebar {
        transform: translateX(-100%);
        width: 280px;
      }

      #sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
      }

      #mobile-menu-toggle {
        display: flex;
      }

      #main-container {
        margin-left: 0;
      }

      .lab-container {
        grid-template-columns: 1fr;
      }

      .section {
        padding: 60px 30px;
      }

      .hero-roles {
        gap: 20px;
      }

      .role-item {
        padding: 15px 20px;
      }
    }

    @media (max-width: 768px) {
      .section {
        padding: 50px 20px;
      }

      .hero-roles {
        flex-direction: column;
        align-items: center;
      }

      .role-item {
        width: 100%;
        max-width: 280px;
      }

      .hero-cta {
        flex-direction: column;
        align-items: center;
      }

      .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
      }

      #ai-projects {
        grid-template-columns: 1fr;
      }

      #phone-grid {
        grid-template-columns: 1fr;
      }

      .est-cat-grid { grid-template-columns: 1fr; }
      .est-option-grid { gap: 8px; }
      .est-option-btn { min-width: 60px; padding: 10px 14px; font-size: 0.85rem; }

      .music-grid {
        grid-template-columns: 1fr;
      }

      #runners {
        grid-template-columns: 1fr;
      }

      .control-panel,
      #recipe-display {
        padding: 25px;
      }

      .upload-container {
        padding: 30px 20px;
      }

      .preview-container {
        flex-direction: column;
        text-align: center;
      }

      .modal-content {
        padding: 30px 25px;
        margin: 20px;
      }
    }

    @media (max-width: 480px) {
      .section-title {
      font-family: Noto Serif SC, serif;
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 600;
      margin-bottom: 15px;
      color: var(--text-primary);
      background: linear-gradient(135deg, var(--text-primary), var(--accent-gold));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
        font-size: 1.8rem;
      }

      .hero-title {
        font-size: 2rem;
      }

      .result-name {
        font-size: 1.5rem;
      }

      .match-percent {
        font-size: 1.4rem;
      }

      .contact-methods {
        flex-direction: column;
      }

      .contact-method {
        width: 100%;
      }
    }

    /* Mobile overlay when sidebar is open */
    @media (max-width: 1024px) {
      #sidebar.open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
      }
    }

  </style>