    @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

    :root {
      --bg-primary: #0a0a12;
      --bg-secondary: #121225;
      --bg-glass: rgba(18, 18, 37, 0.7);
      --bg-glass-hover: rgba(26, 26, 54, 0.85);
      --border-color: rgba(255, 255, 255, 0.08);
      --border-glow: rgba(99, 102, 241, 0.2);
      
      --text-primary: #f8fafc;
      --text-secondary: #94a3b8;
      --text-muted: #64748b;
      
      --color-primary: #6366f1; /* Indigo */
      --color-primary-glow: rgba(99, 102, 241, 0.4);
      --color-secondary: #ec4899; /* Pink */
      --color-secondary-glow: rgba(236, 72, 153, 0.4);
      --color-tertiary: #14b8a6; /* Teal */
      
      --color-success: #10b981;
      --color-warning: #f59e0b;
      --color-danger: #ef4444;
      --color-info: #3b82f6;
      
      --font-sans: 'Plus Jakarta Sans', sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      
      --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
      --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
      
      --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    body {
      background-color: var(--bg-primary);
      color: var(--text-primary);
      font-family: var(--font-sans);
      overflow-x: hidden;
      line-height: 1.6;
    }

    /* Custom Scrollbar */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }
    ::-webkit-scrollbar-track {
      background: var(--bg-primary);
    }
    ::-webkit-scrollbar-thumb {
      background: var(--bg-secondary);
      border-radius: 4px;
      border: 2px solid var(--bg-primary);
    }
    ::-webkit-scrollbar-thumb:hover {
      background: var(--color-primary);
    }

    /* Background Gradients */
    .bg-glow-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      overflow: hidden;
      pointer-events: none;
    }

    .bg-glow-1 {
      position: absolute;
      top: -10%;
      right: -10%;
      width: 50vw;
      height: 50vw;
      border-radius: 50%;
      background: radial-gradient(circle, var(--color-primary-glow) 0%, rgba(99, 102, 241, 0) 70%);
      filter: blur(80px);
      animation: pulse-glow 15s infinite alternate;
    }

    .bg-glow-2 {
      position: absolute;
      bottom: -10%;
      left: -10%;
      width: 55vw;
      height: 55vw;
      border-radius: 50%;
      background: radial-gradient(circle, var(--color-secondary-glow) 0%, rgba(236, 72, 153, 0) 70%);
      filter: blur(100px);
      animation: pulse-glow 20s infinite alternate-reverse;
    }

    @keyframes pulse-glow {
      0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
      100% { transform: scale(1.1) translate(3%, 3%); opacity: 0.8; }
    }

    /* Layout Utilities */
    .glass-container {
      background: var(--bg-glass);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid var(--border-color);
      border-radius: 16px;
      box-shadow: var(--shadow-premium);
    }

    .glass-card {
      background: var(--bg-glass);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 1.5rem;
      transition: var(--transition-normal);
    }

    .glass-card:hover {
      border-color: rgba(99, 102, 241, 0.3);
      box-shadow: var(--shadow-premium), 0 0 25px rgba(99, 102, 241, 0.1);
      transform: translateY(-2px);
    }

    /* Typography & Visual Accents */
    .text-gradient {
      background: linear-gradient(135deg, #fff 30%, var(--text-secondary) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .text-gradient-primary {
      background: linear-gradient(135deg, #a5b4fc 0%, var(--color-primary) 50%, #4f46e5 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .text-gradient-accent {
      background: linear-gradient(135deg, #fbcfe8 0%, var(--color-secondary) 50%, #db2777 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    /* Navigation Header */
    .app-header {
      position: sticky;
      top: 0;
      z-index: 50;
      width: 100%;
      background: rgba(10, 10, 18, 0.75);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border-color);
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo-area {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      text-decoration: none;
      font-weight: 800;
      font-size: 1.5rem;
      letter-spacing: -0.025em;
    }

    .logo-badge {
      background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
      color: white;
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      font-weight: 900;
      box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .nav-link {
      background: transparent;
      border: none;
      color: var(--text-secondary);
      font-family: var(--font-sans);
      font-size: 0.95rem;
      font-weight: 600;
      padding: 0.5rem 1rem;
      border-radius: 8px;
      cursor: pointer;
      transition: var(--transition-fast);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .nav-link:hover {
      color: var(--text-primary);
      background: rgba(255, 255, 255, 0.05);
    }

    .nav-link.active {
      color: var(--text-primary);
      background: rgba(99, 102, 241, 0.15);
      border: 1px solid rgba(99, 102, 241, 0.25);
      box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
    }

    .lang-switcher {
      display: flex;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 2px;
      margin-left: 1rem;
    }

    .lang-btn {
      background: transparent;
      border: none;
      color: var(--text-secondary);
      font-family: var(--font-sans);
      font-weight: 700;
      font-size: 0.75rem;
      padding: 0.35rem 0.6rem;
      border-radius: 6px;
      cursor: pointer;
      transition: var(--transition-fast);
    }

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

    /* Button & Form Elements */
    .btn-primary {
      background: linear-gradient(135deg, var(--color-primary) 0%, #4f46e5 100%);
      color: white;
      border: none;
      padding: 0.75rem 1.5rem;
      font-weight: 600;
      border-radius: 8px;
      cursor: pointer;
      transition: var(--transition-fast);
      box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4), 0 0 10px rgba(99, 102, 241, 0.2);
    }

    .btn-secondary {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-primary);
      border: 1px solid var(--border-color);
      padding: 0.75rem 1.5rem;
      font-weight: 600;
      border-radius: 8px;
      cursor: pointer;
      transition: var(--transition-fast);
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

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

    .input-field {
      width: 100%;
      background: rgba(10, 10, 18, 0.5);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 0.75rem 1rem;
      color: var(--text-primary);
      font-family: var(--font-sans);
      font-size: 0.95rem;
      transition: var(--transition-fast);
    }

    .input-field:focus {
      outline: none;
      border-color: var(--color-primary);
      box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
    }

    /* Landing Page CSS */
    .landing-hero {
      min-height: calc(100vh - 73px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 4rem 2rem;
      text-align: center;
      max-width: 1000px;
      margin: 0 auto;
    }

    .hero-badge {
      background: rgba(99, 102, 241, 0.1);
      border: 1px solid rgba(99, 102, 241, 0.3);
      padding: 0.4rem 1rem;
      border-radius: 20px;
      font-size: 0.85rem;
      font-weight: 600;
      color: #a5b4fc;
      margin-bottom: 2rem;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    .hero-title {
      font-size: 3.5rem;
      font-weight: 800;
      line-height: 1.15;
      margin-bottom: 1.5rem;
      letter-spacing: -0.03em;
    }

    .hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 1.5rem auto 3rem;
  text-align: center;
}

    .hero-extended-text {
      text-align: justify;
      color: var(--text-secondary);
      margin-top: 1.5rem;
      font-size: 0.95rem;
      border-left: 3px solid var(--color-primary);
      padding-left: 1.5rem;
      margin-bottom: 2.5rem;
    }

    /* Info Grid */
    .info-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      width: 100%;
      padding: 2rem 0;
    }

    .info-card {
      text-align: left;
    }

    .info-card-icon {
      width: 3rem;
      height: 3rem;
      border-radius: 10px;
      background: rgba(99, 102, 241, 0.1);
      color: var(--color-primary);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.25rem;
      border: 1px solid rgba(99, 102, 241, 0.2);
    }

    .info-card-title {
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 0.75rem;
    }

    .info-card-desc {
      color: var(--text-secondary);
      font-size: 0.95rem;
    }

    /* Actuaries Grid & Blog CSS */
    .cards-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 4rem 2rem;
    }

    .section-header {
      margin-bottom: 3rem;
      text-align: center;
    }

    .section-title {
      font-size: 2.25rem;
      font-weight: 800;
      margin-bottom: 1rem;
    }

    .section-subtitle {
      color: var(--text-secondary);
      font-size: 1.1rem;
      max-width: 600px;
      margin: 0 auto;
    }

    .actuary-profile-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 2rem;
    }

    .profile-card {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      cursor: pointer;
    }

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

    .profile-avatar {
      width: 4rem;
      height: 4rem;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.5rem;
      font-weight: 700;
    }

    .profile-info h3 {
      font-size: 1.2rem;
      font-weight: 700;
    }

    .profile-info p {
      color: var(--color-primary);
      font-size: 0.85rem;
      font-weight: 600;
    }

    .profile-body {
      color: var(--text-secondary);
      font-size: 0.95rem;
      flex-grow: 1;
    }

    .profile-skills {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .skill-tag {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-color);
      padding: 0.25rem 0.6rem;
      border-radius: 6px;
      font-size: 0.75rem;
      color: var(--text-secondary);
    }

    /* Modal / Popup for CV */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(8px);
      z-index: 100;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 2rem;
    }

    .modal-content {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 16px;
      width: 100%;
      max-width: 800px;
      max-height: 90vh;
      overflow-y: auto;
      padding: 2.5rem;
      position: relative;
      box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    }

    .modal-close {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      background: transparent;
      border: none;
      color: var(--text-secondary);
      font-size: 1.5rem;
      cursor: pointer;
    }

    .modal-close:hover {
      color: white;
    }

    .cv-section-title {
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 0.5rem;
      margin-top: 1.5rem;
      margin-bottom: 1rem;
      color: var(--color-primary);
      font-weight: 700;
      font-size: 1.1rem;
    }

    .cv-item {
      margin-bottom: 1.25rem;
    }

    .cv-item-title {
      font-weight: 700;
      font-size: 1rem;
      display: flex;
      justify-content: space-between;
    }

    .cv-item-company {
      color: var(--color-tertiary);
      font-size: 0.9rem;
      margin-bottom: 0.35rem;
    }

    .cv-item-desc {
      color: var(--text-secondary);
      font-size: 0.88rem;
      list-style-type: disc;
      padding-left: 1.25rem;
      margin-top: 0.25rem;
    }

    .cv-item-desc li {
      margin-bottom: 0.25rem;
    }

    /* Blog Posts styling */
    .blog-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 2.5rem;
    }

    .blog-card {
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .blog-img-placeholder {
      height: 180px;
      border-radius: 8px;
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(236, 72, 153, 0.1) 100%);
      border: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-secondary);
      margin-bottom: 1.25rem;
      font-size: 1.5rem;
      position: relative;
      overflow: hidden;
    }

    .blog-img-placeholder::after {
      content: '';
      position: absolute;
      width: 150%;
      height: 150%;
      background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    }

    .blog-meta {
      display: flex;
      gap: 1rem;
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-bottom: 0.75rem;
    }

    .blog-title {
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 0.75rem;
      line-height: 1.3;
    }

    .blog-excerpt {
      color: var(--text-secondary);
      font-size: 0.9rem;
      margin-bottom: 1.25rem;
      flex-grow: 1;
    }

    .read-more-link {
      color: var(--color-primary);
      font-size: 0.85rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.25rem;
      text-decoration: none;
      cursor: pointer;
    }

    .read-more-link:hover {
      color: var(--color-secondary);
    }

    /* SOFTWARE SECTION LAYOUT */
    .software-container {
      display: flex;
      min-height: calc(100vh - 73px);
    }

    .software-sidebar {
      width: 280px;
      background: rgba(10, 10, 18, 0.5);
      border-right: 1px solid var(--border-color);
      padding: 1.5rem 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      flex-shrink: 0;
      transition: width var(--transition-normal), padding var(--transition-normal);
      overflow-x: hidden;
    }

    .software-sidebar.collapsed {
      width: 72px;
      padding: 1.5rem 0.5rem;
    }

    .sidebar-heading {
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      color: var(--text-muted);
      letter-spacing: 0.05em;
      padding: 0.5rem 0.75rem 0.25rem;
      margin-top: 1rem;
      transition: opacity var(--transition-fast);
    }

    .software-sidebar.collapsed .sidebar-heading {
      opacity: 0;
      height: 0;
      margin: 0;
      padding: 0;
      overflow: hidden;
    }

    .sidebar-btn {
      background: transparent;
      border: none;
      color: var(--text-secondary);
      font-family: var(--font-sans);
      font-size: 0.9rem;
      font-weight: 600;
      padding: 0.75rem 1rem;
      border-radius: 8px;
      cursor: pointer;
      transition: var(--transition-fast);
      display: flex;
      align-items: center;
      gap: 0.75rem;
      text-align: left;
      width: 100%;
    }

    .software-sidebar.collapsed .sidebar-btn {
      justify-content: center;
      padding: 0.75rem;
    }

    .software-sidebar.collapsed .sidebar-btn-text {
      display: none;
    }

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

    .sidebar-btn.active {
      color: var(--text-primary);
      background: rgba(99, 102, 241, 0.15);
      border-left: 3px solid var(--color-primary);
    }
    
    .sidebar-toggle-btn {
      background: transparent;
      border: none;
      color: var(--text-secondary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0.5rem;
      margin-bottom: 0.5rem;
      border-radius: 8px;
      align-self: flex-end;
    }
    .sidebar-toggle-btn:hover {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-primary);
    }
    .software-sidebar.collapsed .sidebar-toggle-btn {
      align-self: center;
    }

    .software-content {
      flex-grow: 1;
      padding: 2.5rem;
      overflow-y: auto;
      max-width: calc(100vw - 280px);
      transition: max-width var(--transition-normal);
    }
    .software-sidebar.collapsed ~ .software-content {
      max-width: calc(100vw - 72px);
    }

    @media (max-width: 768px) {
      .software-container {
        flex-direction: column;
      }
      .software-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
      }
      .software-sidebar.collapsed {
        height: 60px;
        flex-direction: row;
        align-items: center;
        padding: 0 1rem;
      }
      .software-sidebar.collapsed .sidebar-btn {
        display: none;
      }
      .software-sidebar.collapsed .sidebar-toggle-btn {
        margin: auto 0 auto auto;
      }
      .software-content {
        width: 100%; max-width: 100%;
        padding: 1.5rem;
      }
      .software-sidebar.collapsed ~ .software-content {
        width: 100%; max-width: 100%;
      }
      .kpi-grid {
        grid-template-columns: 1fr;
      }
      .form-grid {
        grid-template-columns: 1fr;
      }
      .profile-card {
        padding: 1.5rem;
      }
      .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 1rem;
        z-index: 1000;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.5);
      }
      .nav-links.mobile-open {
        display: flex;
      }
      .nav-links button, .nav-links a {
        width: 100%;
        justify-content: flex-start;
      }
      .header-container {
        padding: 0 1rem;
      }
    }

    /* KPI Dashboards & Widgets */
    .kpi-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2.5rem;
    }

    .kpi-card {
      padding: 1.5rem;
    }

    .kpi-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: var(--text-secondary);
      font-size: 0.85rem;
      font-weight: 600;
      margin-bottom: 0.75rem;
    }

    .kpi-value {
      font-size: 1.75rem;
      font-weight: 800;
      font-family: var(--font-mono);
    }

    .kpi-footer {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-top: 0.5rem;
      display: flex;
      align-items: center;
      gap: 0.25rem;
    }

    /* Table styles */
    .table-container {
      overflow-x: auto;
      margin-top: 1rem;
      border: 1px solid var(--border-color);
      border-radius: 8px;
    }

    .custom-table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      font-size: 0.9rem;
    }

    .custom-table th {
      background: rgba(255, 255, 255, 0.02);
      color: var(--text-secondary);
      font-weight: 600;
      padding: 1rem;
      border-bottom: 1px solid var(--border-color);
    }

    .custom-table td {
      padding: 1rem;
      border-bottom: 1px solid var(--border-color);
    }

    .custom-table tr:last-child td {
      border-bottom: none;
    }

    .custom-table tr:hover td {
      background: rgba(255, 255, 255, 0.01);
    }

    /* Forms layout */
    .form-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

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

    .select-field {
      width: 100%;
      background: rgba(10, 10, 18, 0.5);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 0.75rem 1rem;
      color: var(--text-primary);
      font-family: var(--font-sans);
      font-size: 0.95rem;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 1rem center;
      background-size: 1.25rem;
    }

    .select-field:focus {
      outline: none;
      border-color: var(--color-primary);
      box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
    }

    /* Commutation values displays */
    .commutation-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .commutation-box {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 1rem;
      text-align: center;
    }

    .comm-label {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--text-muted);
      margin-bottom: 0.25rem;
    }

    .comm-value {
      font-family: var(--font-mono);
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--color-primary);
    }

    /* Formula list */
    .formula-item {
      border-bottom: 1px solid var(--border-color);
      padding: 1.5rem 0;
    }

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

    .formula-title {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .formula-latex {
      background: rgba(255, 255, 255, 0.02);
      border-left: 4px solid var(--color-primary);
      padding: 1rem;
      border-radius: 0 8px 8px 0;
      font-family: var(--font-mono);
      font-size: 1rem;
      margin: 0.75rem 0;
      color: #a5b4fc;
    }

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

    /* File Upload Simulation Area */
    .upload-dropzone {
      border: 2px dashed rgba(99, 102, 241, 0.3);
      border-radius: 12px;
      padding: 3rem;
      text-align: center;
      cursor: pointer;
      transition: var(--transition-normal);
      background: rgba(99, 102, 241, 0.01);
    }

    .upload-dropzone:hover {
      border-color: var(--color-primary);
      background: rgba(99, 102, 241, 0.03);
    }

    .upload-icon {
      width: 4rem;
      height: 4rem;
      color: var(--text-secondary);
      margin: 0 auto 1.5rem;
    }

    /* Graph display mockup */
    .mock-chart-container {
      height: 300px;
      border: 1px solid var(--border-color);
      background: rgba(255, 255, 255, 0.01);
      border-radius: 8px;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      padding: 2rem;
      position: relative;
      overflow: hidden;
    }

    .chart-bar-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex-grow: 1;
      height: 100%;
      justify-content: flex-end;
      gap: 0.5rem;
    }

    .chart-bar {
      width: 40px;
      border-radius: 4px 4px 0 0;
      background: linear-gradient(to top, var(--color-primary) 0%, var(--color-secondary) 100%);
      transition: height 1s ease-in-out;
      box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
    }

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

    .chart-value {
      font-size: 0.7rem;
      color: var(--text-muted);
      font-family: var(--font-mono);
    }

    .badge {
      display: inline-flex;
      align-items: center;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: 600;
    }

    .badge-success {
      background: rgba(16, 185, 129, 0.1);
      color: var(--color-success);
      border: 1px solid rgba(16, 185, 129, 0.2);
    }

    .badge-warning {
      background: rgba(245, 158, 11, 0.1);
      color: var(--color-warning);
      border: 1px solid rgba(245, 158, 11, 0.2);
    }

    .badge-danger {
      background: rgba(239, 68, 68, 0.1);
      color: var(--color-danger);
      border: 1px solid rgba(239, 68, 68, 0.2);
    }
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    .spinner {
      border: 3px solid rgba(255, 255, 255, 0.1);
      border-top: 3px solid var(--color-primary);
      border-radius: 50%;
      width: 40px;
      height: 40px;
      margin: 0 auto;
      animation: spin 1s linear infinite;
    }
  </style>

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  /* Fix Typography and Spacing */
  h1, .hero-title { font-size: 2.5rem !important; }
  h2, .section-title { font-size: 2rem !important; }
  h3 { font-size: 1.5rem !important; }
  
  .glass-panel, .software-content, .dashboard-container {
    padding: 1rem !important;
  }
  
  /* Tables */
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Buttons */
  .btn-primary, .btn-secondary, .btn-glass, button {
    width: 100%;
    margin-bottom: 0.5rem;
    justify-content: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  /* Form and Filters */
  .filter-controls, .form-grid {
    flex-direction: column !important;
    gap: 1rem;
  }
  
  .form-group input, .form-group select {
    width: 100%;
  }
  
  /* Tabs */
  .nav-tabs {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .nav-tabs button {
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
    padding: 0.5rem;
  }

  /* Software Layout Specifics */
  .software-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .software-container {
    flex-direction: column;
  }
  .formula-latex {
    font-size: 12px;
    padding: 1rem;
    overflow-x: auto;
  }
  
  /* Modal */
  .modal-content {
    width: 95% !important;
    padding: 1rem !important;
    margin: 10px auto;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem !important; }
  .nav-tabs button { flex: 1 1 100%; }
}

/* Responsive Grid Classes for overriding inline styles */
.responsive-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.responsive-grid-1-5 {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
}
.responsive-grid-1-2-1 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .responsive-grid-2, .responsive-grid-1-5, .responsive-grid-1-2-1 {
    grid-template-columns: 1fr !important;
  }
}

  .mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
  }
  @media (max-width: 768px) {
    .mobile-menu-toggle {
      display: block;
      margin-left: auto;
    }
    .header-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
    }
  }

/* Global Horizontal Scroll Fix */
html, body {
  overflow-x: hidden !important;
  width: 100%;
  position: relative;
}
* {
  overflow-wrap: break-word;
}

/* Mobile Logo Hamburger Toggle */
.mobile-logo { display: none; }
.desktop-logo { display: inline-block; }
@media (max-width: 768px) {
  .mobile-logo { display: inline-flex; align-items: center; justify-content: center; }
  .desktop-logo { display: none; }
}

/* CV Modal Responsive Fixes */
.cv-header-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.cv-header-container .profile-avatar {
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cv-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: rgba(255,255,255,0.02);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}
.cv-contact-grid div {
  overflow-wrap: break-word;
  word-break: break-all;
}
@media (max-width: 480px) {
  .cv-contact-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.25rem;
  }
  .cv-contact-grid div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .cv-contact-grid div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .cv-header-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .cv-header-container .profile-avatar {
    width: 6rem;
    height: 6rem;
    font-size: 2.5rem;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
  }
  .cv-item-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

/* Sidebar Sub-Menu Styles */
.sidebar-submenu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
  transition: all var(--transition-fast) ease;
}

.software-sidebar.collapsed .sidebar-submenu {
  display: none;
}

.sidebar-sub-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  width: 100%;
}

.sidebar-sub-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-sub-btn.active {
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(99, 102, 241, 0.08);
  border-left: 2px solid var(--color-primary);
}

.sidebar-btn-chevron {
  margin-left: auto;
  transition: transform var(--transition-fast);
  display: flex;
  align-items: center;
}

.sidebar-btn-chevron.expanded {
  transform: rotate(90deg);
}

/* --- USER-FRIENDLY FORM INPUT STYLES --- */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-group .input-field {
  padding-right: 3.5rem;
}

.input-addon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  pointer-events: none;
  letter-spacing: 0.5px;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.form-label-row .form-label {
  margin-bottom: 0;
}

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

.preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.preset-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.preset-pill:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text-primary);
}

.preset-pill.active {
  background: linear-gradient(135deg, var(--color-primary) 0%, #4f46e5 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  margin-top: 0.4rem;
  font-weight: 500;
}

.segmented-control {
  display: flex;
  background: rgba(10, 10, 18, 0.6);
  border: 1px solid var(--border-color);
  padding: 3px;
  border-radius: 8px;
  gap: 4px;
}

.segmented-option {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.segmented-option:hover {
  color: var(--text-primary);
}

.segmented-option.active {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

/* Premium Schedule Table & View Mode Tabs UI/UX */
.view-mode-tabs {
  display: flex;
  background: rgba(10, 10, 18, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  backdrop-filter: blur(8px);
}

.view-mode-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-mode-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.view-mode-tab.active {
  background: linear-gradient(135deg, var(--color-primary) 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.schedule-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.schedule-kpi-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: var(--transition-fast);
}

.schedule-kpi-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.04);
}

.schedule-kpi-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.schedule-kpi-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.table-search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 320px;
}

.table-search-input {
  width: 100%;
  padding: 0.5rem 0.85rem 0.5rem 2.2rem;
  background: rgba(10, 10, 18, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.table-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

.table-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.export-btn {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.export-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.selected-schedule-row {
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.18) 0%, rgba(234, 179, 8, 0.04) 100%) !important;
  border-left: 4px solid #f59e0b !important;
}

.selected-schedule-row td {
  font-weight: 700 !important;
}

/* Responsive Mobile & Web Schedule UX Upgrades */
.display-format-pills {
  display: inline-flex;
  background: rgba(10, 10, 18, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.display-format-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.display-format-btn.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.mobile-schedule-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.mobile-schedule-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  transition: var(--transition-fast);
}

.mobile-schedule-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.mobile-schedule-card.selected-card {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(234, 179, 8, 0.03) 100%);
  border: 1.5px solid #f59e0b;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.mobile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mobile-card-header .month-num {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.mobile-card-header .month-date {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.mobile-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.mobile-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
}

.mobile-card-row.total-row {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-weight: 700;
  color: var(--text-primary);
}

.mobile-card-row .total-val {
  font-size: 1.05rem;
  color: #818cf8;
}

.selected-card .total-val {
  color: #f59e0b;
}

@media (max-width: 768px) {
  .glass-card {
    padding: 1rem !important;
    border-radius: 12px !important;
  }

  .schedule-kpi-grid {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }

  .table-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .table-search-box {
    max-width: 100% !important;
    width: 100% !important;
  }

  .export-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .view-mode-tabs {
    width: 100% !important;
  }

  .view-mode-tab {
    flex: 1 !important;
    justify-content: center !important;
    padding: 0.6rem 0.4rem !important;
    font-size: 0.78rem !important;
  }

  .custom-table th, .custom-table td {
    padding: 0.65rem 0.4rem !important;
    font-size: 0.76rem !important;
    white-space: nowrap;
  }
}

/* LIGHT MODE (WHITE THEME) SYSTEM OVERRIDES */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-glass-hover: rgba(241, 245, 249, 0.95);
  --border-color: rgba(203, 213, 225, 0.7);
  --border-glow: rgba(99, 102, 241, 0.3);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --color-primary: #4f46e5;
  --color-primary-glow: rgba(79, 70, 229, 0.15);
  --color-secondary: #db2777;
  --color-secondary-glow: rgba(219, 39, 119, 0.15);
  --color-tertiary: #0d9488;

  --shadow-premium: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.1);
}

[data-theme="light"] body {
  background-color: #f8fafc;
  color: #0f172a;
}

[data-theme="light"] .app-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .software-sidebar {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
}

[data-theme="light"] .sidebar-btn {
  color: #475569;
}

[data-theme="light"] .sidebar-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .sidebar-btn.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(79, 70, 229, 0.04) 100%);
  color: #4f46e5;
}

[data-theme="light"] .bg-glow-1 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 70%);
}

[data-theme="light"] .bg-glow-2 {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, rgba(236, 72, 153, 0) 70%);
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #0f172a 30%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .text-gradient-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .glass-container,
[data-theme="light"] .glass-card {
  background: #ffffff;
  border-color: rgba(203, 213, 225, 0.7);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .glass-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12);
}

[data-theme="light"] .input-field,
[data-theme="light"] .table-search-input {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

[data-theme="light"] .input-field:focus,
[data-theme="light"] .table-search-input:focus {
  background: #ffffff;
  border-color: #4f46e5;
}

[data-theme="light"] .custom-table th {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .custom-table td {
  color: #1e293b !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

[data-theme="light"] .custom-table tr:hover {
  background: #f8fafc !important;
}

[data-theme="light"] .selected-schedule-row {
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.18) 0%, rgba(234, 179, 8, 0.03) 100%) !important;
}

[data-theme="light"] .mobile-schedule-card {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .mobile-card-row {
  color: #475569;
}

[data-theme="light"] .mobile-card-row.total-row {
  color: #0f172a;
  border-top-color: #e2e8f0;
}

[data-theme="light"] .view-mode-tabs {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

[data-theme="light"] .view-mode-tab {
  color: #475569;
}

[data-theme="light"] .view-mode-tab.active {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: #ffffff;
}

[data-theme="light"] .schedule-kpi-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .commutation-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .comm-label {
  color: #64748b;
}

[data-theme="light"] .comm-value {
  color: #0f172a;
}

[data-theme="light"] .nav-link {
  color: #475569;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #4f46e5;
}

[data-theme="light"] .lang-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .lang-btn.active {
  background: #4f46e5;
  color: #ffffff;
}

/* Dual Top & Bottom Prominent Scrollbars */
.top-scrollbar-wrapper::-webkit-scrollbar,
.table-scroll-container::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.top-scrollbar-wrapper::-webkit-scrollbar-track,
.table-scroll-container::-webkit-scrollbar-track {
  background: rgba(10, 10, 18, 0.4);
  border-radius: 6px;
}

.top-scrollbar-wrapper::-webkit-scrollbar-thumb,
.table-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #6366f1 0%, #4f46e5 100%);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.top-scrollbar-wrapper::-webkit-scrollbar-thumb:hover,
.table-scroll-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #818cf8 0%, #6366f1 100%);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.8);
}

[data-theme="light"] .top-scrollbar-wrapper::-webkit-scrollbar-track,
[data-theme="light"] .table-scroll-container::-webkit-scrollbar-track {
  background: #e2e8f0;
}

[data-theme="light"] .top-scrollbar-wrapper::-webkit-scrollbar-thumb,
[data-theme="light"] .table-scroll-container::-webkit-scrollbar-thumb {
  background: #4f46e5;
  border: 1px solid #cbd5e1;
}


/* ---- Home: capabilities grid, footer, navigation polish ---- */
.nav-link { white-space: nowrap; }
.btn-primary, .btn-secondary { text-decoration: none; }
a.btn-primary { display: inline-flex; align-items: center; }

.feature-section { width: 100%; max-width: 1100px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: left;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  padding: 1.75rem !important;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-card:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.3);
}
.feature-icon svg { margin: 0 !important; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.55; flex: 1; }
.feature-more { color: var(--color-primary); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.2rem; }

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 5% 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.site-footer-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.2rem; margin-bottom: 0.5rem; }
.site-footer-brand .logo-badge { width: 32px; height: 32px; display: inline-grid; place-items: center; }
.site-footer p { color: var(--text-secondary); font-size: 0.95rem; max-width: 340px; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: flex-start; max-width: 520px; }
.site-footer-links a, .site-footer-links button {
  background: none;
  border: none;
  padding: 0.3rem 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
}
.site-footer-links a:hover, .site-footer-links button:hover { color: var(--color-primary); }
.site-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 5% 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
}

[data-theme="light"] .feature-card { background: #ffffff; border-color: #e2e8f0; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06); }
[data-theme="light"] .feature-card:hover { border-color: rgba(79, 70, 229, 0.35); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08); }
[data-theme="light"] .site-footer { background: #ffffff; border-color: #e2e8f0; }
[data-theme="light"] .site-footer-bottom { border-color: #e2e8f0; }
[data-theme="light"] .hero-badge { color: #4f46e5; }

@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
  .site-footer-inner { flex-direction: column; gap: 1.25rem; }
}
