:root {
      --bg: #020617;
      --bg-secondary: #020b1f;
      --neon: #2bb4ff;
      --neon-soft: #54d6ff;
      --text-main: #e5f2ff;
    }

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

    body {
      font-family: "Poppins", system-ui, -apple-system, sans-serif;
      background: radial-gradient(circle at top, #04132d 0, var(--bg) 55%);
      color: var(--text-main);
      min-height: 100vh;
    }

    .wrapper {
      max-width: 1100px;
      margin: 0 auto;
      padding: 24px 16px 48px;
    }

    /* HEADER */

    header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 40px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .brand-logo {
      width: 52px;
      height: 52px;
      border-radius: 16px;
      background: radial-gradient(circle, var(--neon-soft), var(--neon));
      box-shadow: 0 0 20px rgba(43, 180, 255, 0.9);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .brand-logo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .brand-name {
      font-weight: 700;
      letter-spacing: 0.16em;
      font-size: 1rem;
      color: var(--text-main);
    }

    nav {
      display: flex;
      flex-direction: column;
      align-items: flex-end; /* Align to the right */
    }

    .nav-login-link {
      color: var(--neon-soft);
      font-size: 0.85rem;
      padding-bottom: 6px;
      margin-bottom: 6px;
      border-bottom: 1px solid rgba(43, 180, 255, 0.3);
      transition: color 0.2s ease;
      text-decoration: none;
    }
    .nav-login-link:hover {
      color: var(--neon);
    }

    .main-nav {
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .main-nav a {
      text-decoration: none;
      color: #9ca3c7;
      font-size: 0.9rem;
      transition: color 0.2s ease, text-shadow 0.2s ease;
    }

    .main-nav a:hover {
      color: var(--neon-soft);
      text-shadow: 0 0 8px rgba(84, 214, 255, 0.7);
    }
    
    .lang-switcher {
      display: flex;
      gap: 8px;
    }

    .lang-switcher button {
      background: none;
      border: none;
      color: #9ca3c7;
      cursor: pointer;
      font-family: inherit;
      font-size: 0.85rem;
      padding: 4px;
      border-radius: 4px;
      transition: all 0.2s ease;
    }
    
    .lang-switcher button:hover {
      color: var(--neon-soft);
      background: rgba(13, 40, 76, 0.9);
    }
    
    .lang-switcher button.active {
      color: var(--neon);
      font-weight: 700;
      text-shadow: 0 0 8px rgba(84, 214, 255, 0.7);
    }


    /* HERO */

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
      gap: 32px;
      align-items: center;
      margin-bottom: 52px;
    }

    @media (max-width: 800px) {
      .hero {
        grid-template-columns: 1fr;
      }
    }

    .hero-title {
      font-size: clamp(2rem, 3vw + 1rem, 3.2rem);
      font-weight: 700;
      line-height: 1.1;
      margin-bottom: 16px;
      text-shadow: 0 0 18px rgba(43, 180, 255, 0.75);
    }

    .hero-title span {
      color: var(--neon-soft);
    }

    .hero-subtitle {
      font-size: 0.98rem;
      color: #a5b0d0;
      margin-bottom: 24px;
      max-width: 460px;
    }

    .hero-cta {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 18px;
    }

    .btn-primary,
    .btn-ghost {
      border-radius: 999px;
      padding: 10px 20px;
      font-size: 0.95rem;
      cursor: pointer;
      border: 1px solid transparent;
      transition: all 0.2s ease;
    }

    .btn-primary {
      background: radial-gradient(circle at top, var(--neon-soft), var(--neon));
      color: #020617;
      font-weight: 600;
      box-shadow: 0 0 20px rgba(43, 180, 255, 0.9);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 0 26px rgba(43, 180, 255, 1);
    }

    .btn-ghost {
      background: transparent;
      color: var(--neon-soft);
      border-color: rgba(43, 180, 255, 0.5);
    }

    .btn-ghost:hover {
      background: rgba(13, 40, 76, 0.9);
      box-shadow: 0 0 16px rgba(43, 180, 255, 0.7);
    }

    .hero-note {
      font-size: 0.8rem;
      color: #7d86aa;
    }

    /* HERO VISUAL */

    .hero-card {
      background: radial-gradient(circle at top, #05162e, #020817);
      border-radius: 24px;
      padding: 22px 22px 20px;
      border: 1px solid rgba(43, 180, 255, 0.25);
      box-shadow:
        0 0 25px rgba(15, 23, 42, 1),
        0 0 30px rgba(43, 180, 255, 0.35);
      position: relative;
      overflow: hidden;
    }

    .hero-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 18px;
      font-size: 0.8rem;
      color: #9ca3c7;
    }

    .status-pill {
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 0.75rem;
      background: rgba(16, 185, 129, 0.15);
      color: #6ee7b7;
      border: 1px solid rgba(34, 197, 94, 0.4);
      box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
    }

    .monitor-graph {
      margin-top: 10px;
      height: 140px;
      border-radius: 18px;
      background: radial-gradient(circle at top, #071935, #020617);
      border: 1px solid rgba(43, 180, 255, 0.3);
      position: relative;
      overflow: hidden;
    }

    .wave {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(
          90deg,
          transparent 0%,
          rgba(43, 180, 255, 0.15) 50%,
          transparent 100%
        );
      mix-blend-mode: screen;
    }

    .wave-line {
      position: absolute;
      left: 4%;
      right: 4%;
      top: 50%;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--neon-soft), transparent);
      box-shadow: 0 0 10px rgba(84, 214, 255, 0.8);
    }

    .wave-points {
      position: absolute;
      inset: 0;
      background:
        url("data:image/svg+xml,%3Csvg width='260' height='80' viewBox='0 0 260 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline fill='none' stroke='%2354d6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' points='0,50 20,40 40,55 55,25 70,60 90,42 110,58 125,30 140,65 160,45 180,55 200,38 220,60 240,35 260,50'/%3E%3C/svg%3E")
          center/cover no-repeat;
      opacity: 0.85;
      filter: drop-shadow(0 0 8px rgba(84, 214, 255, 0.9));
    }
    
    .hero-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block; /* Remove extra space below image */
      border-radius: 20px; /* To match the card border-radius slightly */
    }

    .hero-card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 16px;
      font-size: 0.78rem;
      color: #9ca3c7;
    }

    .metric {
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--text-main);
    }

    .metric span {
      font-size: 0.75rem;
      color: #9ca3c7;
      margin-left: 4px;
    }

    /* SECTIONS */

    section {
      margin-bottom: 48px;
    }

    h2 {
      font-size: 1.4rem;
      margin-bottom: 12px;
    }

    .page-title {
        font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem);
        font-weight: 700;
        line-height: 1.1;
        margin-bottom: 24px;
        text-shadow: 0 0 18px rgba(43, 180, 255, 0.75);
        color: var(--neon-soft);
    }

    .section-subtitle {
      font-size: 0.9rem;
      color: #9ca3c7;
      margin-bottom: 22px;
    }

    .grid {
      display: grid;
      gap: 18px;
    }

    @media (min-width: 800px) {
      .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }
    
    @media (min-width: 600px) {
      .grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    .card {
      background: linear-gradient(145deg, #020818, #050f23);
      border-radius: 18px;
      padding: 16px 18px;
      border: 1px solid rgba(43, 180, 255, 0.18);
      box-shadow: 0 0 16px rgba(15, 23, 42, 1);
      font-size: 0.9rem;
      display: flex;
      flex-direction: column;
    }

    .card-title {
      font-size: 1rem;
      margin-bottom: 8px;
      color: var(--neon-soft);
    }

    .card p {
      color: #9fa9c9;
      font-size: 0.86rem;
      flex-grow: 1;
    }

    .card-icon {
        font-size: 2rem;
        margin-bottom: 12px;
        color: var(--neon);
        text-shadow: 0 0 12px rgba(43, 180, 255, 0.8);
    }

    /* CONTACT FORM */
    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        display: block;
        font-size: 0.85rem;
        color: #a5b0d0;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        background: #071935;
        border: 1px solid rgba(43, 180, 255, 0.3);
        border-radius: 8px;
        padding: 10px 12px;
        color: var(--text-main);
        font-family: inherit;
        font-size: 0.95rem;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--neon-soft);
        box-shadow: 0 0 10px rgba(84, 214, 255, 0.5);
    }
    
    #contact-form .btn-primary,
    #login-form .btn-primary {
        width: 100%;
    }
    
    #form-feedback {
        margin-top: 16px;
        padding: 12px;
        border-radius: 8px;
        text-align: center;
        display: none; /* Hidden by default */
    }

    #form-feedback.success {
        background: rgba(16, 185, 129, 0.15);
        color: #6ee7b7;
        border: 1px solid rgba(34, 197, 94, 0.4);
    }

    #form-feedback.error {
        background: rgba(248, 113, 113, 0.15);
        color: #fca5a5;
        border: 1px solid rgba(239, 68, 68, 0.4);
    }
    
    .contact-info {
        padding: 16px;
    }

    .contact-info h3 {
        color: var(--neon-soft);
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    .contact-info p {
        color: #a5b0d0;
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .contact-info p:not(:last-child) {
        margin-bottom: 12px;
    }

    /* LIGHTBOX */
    #lightbox {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 1000;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(5px);
    }

    #lightbox.active {
        display: flex;
    }

    #lightbox img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        border: 2px solid var(--neon-soft);
        border-radius: 12px;
        box-shadow: 0 0 40px rgba(43, 180, 255, 0.6);
    }

    .lightbox-close {
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 2.5rem;
        color: white;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0;
        line-height: 1;
        text-shadow: 0 0 10px rgba(43, 180, 255, 0.8);
        transition: color 0.2s ease, text-shadow 0.2s ease;
    }

    .lightbox-close:hover {
        color: var(--neon-soft);
        text-shadow: 0 0 15px rgba(84, 214, 255, 1);
    }

    /* FOOTER */

    footer {
      margin-top: 40px;
      border-top: 1px solid rgba(43, 180, 255, 0.15);
      padding-top: 24px;
      font-size: 0.85rem;
      color: #9ca3c7;
      text-align: center;
    }

    /* --- NEW CHAT WIDGET STYLES --- */
    @font-face{font-display:block;font-family:bootstrap-icons;src:url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/fonts/bootstrap-icons.woff2?dd67030699838ea613ee6dbda90effa6") format("woff2"),url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/fonts/bootstrap-icons.woff?dd67030699838ea613ee6dbda90effa6") format("woff")}.bi::before,[class*=" bi-"]::before,[class^=bi-]::before{display:inline-block;font-family:bootstrap-icons!important;font-style:normal;font-weight:400!important;font-variant:normal;text-transform:none;line-height:1;vertical-align:-.125em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

    .chat-fab {
        position: fixed;
        right: 20px;
        bottom: 20px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: radial-gradient(circle at top, var(--neon-soft), var(--neon));
        color: #020617;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 18px rgba(0,0,0,0.4);
        z-index: 1080;
        cursor: pointer;
        border: none;
        transition: transform 0.2s ease;
    }
    .chat-fab:hover {
        transform: scale(1.05);
    }
    .chat-fab img {
        width: 50%;
        height: 50%;
        object-fit: contain;
    }

    .chat-panel {
        position: fixed;
        right: 20px;
        bottom: 90px;
        width: 370px;
        max-width: 90vw;
        height: 70vh;
        max-height: 600px;
        background: #060e24;
        border: 1px solid rgba(43, 180, 255, 0.3);
        border-radius: 18px;
        box-shadow: 0 0 30px rgba(43, 180, 255, 0.4), 0 0 15px rgba(0, 0, 0, 0.7);
        z-index: 1080;
        display: flex;
        flex-direction: column;
        transform: translateY(20px) scale(0.95);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-out;
    }

    .chat-panel.open {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }
    
    .chat-header {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(43, 180, 255, 0.2);
        display:flex;
        align-items:center;
        justify-content:space-between;
        flex-shrink: 0;
    }
    .chat-title {
        font-weight: 600;
        color: var(--neon-soft);
    }
    .chat-config-toggle {
        background:none;
        border:none;
        color: #9ca3c7;
        cursor:pointer;
        padding: 4px;
    }
    .chat-config-toggle:hover {
        color: var(--neon-soft);
    }
    .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
    }

    .chat-config {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(43, 180, 255, 0.2);
        background: #02081a;
        font-size: 0.85rem;
    }
    .chat-config label {
      color: #a5b0d0;
      margin-bottom: 4px;
      display: block;
    }
    .chat-config input, .chat-config select {
        width:100%;
        margin-bottom:.5rem;
        background: #071935;
        border: 1px solid rgba(43, 180, 255, 0.3);
        border-radius: 6px;
        padding: 8px 10px;
        color: var(--text-main);
        font-size: 0.9rem;
    }
    .chat-config .btn {
      padding: 6px 12px;
      font-size: 0.8rem;
    }

    .chat-messages {
        padding: 16px;
        overflow-y: auto;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .message {
        padding: 10px 14px;
        border-radius: 12px;
        max-width: 85%;
        line-height: 1.5;
        word-wrap: break-word;
    }
    .message.user {
        background: var(--neon);
        color: #020617;
        align-self: flex-end;
        border-bottom-right-radius: 4px;
    }
    .message.ai {
        background: #1e293b;
        color: #e0e7ff;
        align-self: flex-start;
        border-bottom-left-radius: 4px;
    }

    .chat-input-area {
        display:flex;
        gap: 10px;
        padding: 12px 16px;
        border-top: 1px solid rgba(43, 180, 255, 0.2);
        flex-shrink: 0;
    }
    .chat-input-area textarea {
        flex: 1;
        background: #071935;
        border: 1px solid rgba(43, 180, 255, 0.3);
        border-radius: 12px;
        padding: 10px 12px;
        color: var(--text-main);
        font-family: inherit;
        resize: none;
        min-height: 44px;
        max-height: 150px;
    }
    .chat-input-area #chatSend {
        border-radius: 12px;
        flex-shrink: 0;
        align-self: flex-end;
    }
