    :root {
      --bg-color: #0a0a0c;
      --panel-bg: #141419;
      --border-color: #2a2a35;
      --accent-primary: #00ff9d;
      /* Matrix Green */
      --accent-secondary: #00b8ff;
      /* Cyber Blue */
      --accent-danger: #ff2a6d;
      /* Alert Red */
      --accent-warning: #ffbd00;
      /* Warning Yellow */
      --text-main: #e0e0e0;
      --text-muted: #6c757d;
      --font-mono: 'Fira Code', 'Courier New', monospace;
      --font-display: 'Rajdhani', sans-serif;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background-color: var(--bg-color);
      color: var(--text-main);
      font-family: var(--font-mono);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      overflow-x: hidden;
      background-image:
        linear-gradient(rgba(0, 255, 157, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 157, 0.03) 1px, transparent 1px);
      background-size: 40px 40px;
      padding: 20px 0;
    }

    /* --- Scanline Effect --- */
    body::after {
      content: " ";
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
      z-index: 0;
      background-size: 100% 2px, 3px 100%;
      pointer-events: none;
    }

    /* --- Main Layout --- */
    .terminal-container {
      width: 95%;
      max-width: 1200px;
      height: 90vh;
      background: var(--panel-bg);
      border: 1px solid var(--border-color);
      border-radius: 4px;
      box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
      display: grid;
      grid-template-rows: 60px 1fr auto;
      position: relative;
      z-index: 10;
      overflow: hidden;
      /* Prevents double scrollbars */
    }

    /* --- Header --- */
    .terminal-header {
      border-bottom: 1px solid var(--border-color);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 20px;
      background: rgba(20, 20, 25, 0.95);
      flex-shrink: 0;
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .logo {
      font-family: var(--font-display);
      font-size: 1.8rem;
      font-weight: 700;
      color: var(--text-main);
      letter-spacing: 2px;
      text-transform: uppercase;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .logo span {
      color: var(--accent-primary);
    }

    .brand-version {
      font-size: 0.7rem;
      color: var(--text-muted);
      margin-left: 5px;
      background: rgba(255, 255, 255, 0.1);
      padding: 2px 6px;
      border-radius: 3px;
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .info-btn {
      background: transparent;
      border: 1px solid var(--border-color);
      color: var(--text-muted);
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s;
    }

    .info-btn:hover {
      color: var(--accent-secondary);
      border-color: var(--accent-secondary);
      box-shadow: 0 0 10px rgba(0, 184, 255, 0.2);
    }

    .status-bar {
      display: flex;
      gap: 15px;
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    .status-indicator {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: var(--accent-primary);
      box-shadow: 0 0 5px var(--accent-primary);
      animation: pulse 2s infinite;
    }

    /* --- Main Content Grid --- */
    .terminal-body {
      display: grid;
      grid-template-columns: 350px 1fr 300px;
      gap: 1px;
      background-color: var(--border-color);
      overflow: hidden;
      min-height: 0;
    }

    .panel {
      background-color: var(--panel-bg);
      padding: 20px;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      min-height: 0;
    }

    /* --- Scrollbar --- */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    ::-webkit-scrollbar-track {
      background: #0a0a0c;
    }

    ::-webkit-scrollbar-thumb {
      background: #2a2a35;
      border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: var(--accent-secondary);
    }

    /* --- Input Groups --- */
    .input-group {
      margin-bottom: 15px;
      position: relative;
    }

    label {
      display: block;
      font-size: 0.75rem;
      color: var(--accent-secondary);
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    label::before {
      content: ">_";
      margin-right: 5px;
      opacity: 0.5;
    }

    input,
    select {
      width: 100%;
      background: rgba(0, 0, 0, 0.3);
      border: 1px solid var(--border-color);
      color: var(--text-main);
      padding: 12px;
      font-family: var(--font-mono);
      font-size: 0.9rem;
      outline: none;
      transition: all 0.2s;
      border-radius: 2px;
    }

    input:focus,
    select:focus {
      border-color: var(--accent-primary);
      box-shadow: 0 0 10px rgba(0, 255, 157, 0.1);
    }

    /* --- Buttons --- */
    .btn {
      background: transparent;
      border: 1px solid var(--accent-primary);
      color: var(--accent-primary);
      padding: 12px;
      font-family: var(--font-mono);
      font-weight: 600;
      cursor: pointer;
      text-transform: uppercase;
      transition: all 0.2s;
      width: 100%;
      margin-top: 10px;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .btn:hover {
      background: var(--accent-primary);
      color: #000;
      box-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
    }

    .btn-danger {
      border-color: var(--accent-danger);
      color: var(--accent-danger);
    }

    .btn-danger:hover {
      background: var(--accent-danger);
      color: #fff;
      box-shadow: 0 0 15px rgba(255, 42, 109, 0.4);
    }

    .btn-sm {
      width: auto;
      padding: 5px 10px;
      font-size: 0.7rem;
      margin-top: 0;
    }

    /* --- Dashboard (Middle Panel) --- */
    .dashboard-panel {
      position: relative;
      overflow-y: auto;
      justify-content: center;
    }

    .bac-display {
      text-align: center;
      margin-bottom: 30px;
      padding: 30px;
      border: 1px solid var(--border-color);
      background: rgba(0, 0, 0, 0.2);
      border-radius: 4px;
    }

    .bac-value {
      font-size: clamp(3rem, 5vw, 4rem);
      font-weight: 700;
      color: var(--text-main);
      text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
      line-height: 1.2;
    }

    .bac-label {
      font-size: 0.8rem;
      color: var(--text-muted);
      letter-spacing: 2px;
      margin-bottom: 10px;
      text-transform: uppercase;
    }

    .bac-status {
      font-size: 1.2rem;
      font-weight: 600;
      margin-top: 10px;
      font-family: var(--font-display);
    }

    /* --- Visual Meter --- */
    .meter-container {
      height: 20px;
      background: #1a1a20;
      border-radius: 10px;
      overflow: hidden;
      position: relative;
      margin: 20px 0;
      border: 1px solid var(--border-color);
    }

    .meter-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--accent-primary), var(--accent-warning), var(--accent-danger));
      transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .meter-markers {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: space-between;
      padding: 0 5px;
      align-items: center;
      pointer-events: none;
    }

    .meter-marker {
      width: 1px;
      height: 100%;
      background: rgba(255, 255, 255, 0.2);
    }

    /* --- Drink List --- */
    .drink-list-container {
      flex-grow: 1;
      overflow-y: auto;
      margin-top: 10px;
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 4px;
      padding: 5px;
      min-height: 150px;
      max-height: 300px;
      /* Limit height on desktop */
    }

    .drink-list {
      list-style: none;
    }

    .drink-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      font-size: 0.85rem;
      animation: slideIn 0.3s ease;
    }

    .drink-item:last-child {
      border-bottom: none;
    }

    .drink-info {
      display: flex;
      flex-direction: column;
    }

    .drink-name {
      color: var(--text-main);
      font-weight: 600;
    }

    .drink-meta {
      color: var(--text-muted);
      font-size: 0.7rem;
    }

    /* --- Right Panel --- */
    .summary-panel {
      border-left: 1px solid var(--border-color);
    }

    .stat-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 15px;
      padding-bottom: 15px;
      border-bottom: 1px solid var(--border-color);
    }

    .stat-val {
      color: var(--accent-secondary);
      font-weight: 600;
    }

    /* --- Footer / Logs --- */
    .terminal-footer {
      border-top: 1px solid var(--border-color);
      background: #0d0d12;
      padding: 10px 20px;
      font-size: 0.75rem;
      color: var(--text-muted);
      display: flex;
      flex-direction: column;
      max-height: 25vh;
      flex-shrink: 0;
    }

    .log-header {
      margin-bottom: 5px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--accent-secondary);
      font-size: 0.65rem;
    }

    .log-entries {
      flex-grow: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }

    .log-entry {
      margin-bottom: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .log-entry span {
      color: var(--accent-secondary);
    }

    /* --- Animations --- */
    @keyframes pulse {
      0% {
        opacity: 1;
      }

      50% {
        opacity: 0.4;
      }

      100% {
        opacity: 1;
      }
    }

    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateX(-10px);
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    /* --- Modal --- */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(5px);
      z-index: 1000;
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }

    .modal-overlay.active {
      opacity: 1;
      pointer-events: all;
    }

    .modal-content {
      background: var(--panel-bg);
      border: 1px solid var(--accent-primary);
      padding: 40px;
      max-width: 500px;
      width: 90%;
      text-align: center;
      box-shadow: 0 0 50px rgba(0, 255, 157, 0.2);
      transform: scale(0.9);
      transition: transform 0.3s;
    }

    .modal-overlay.active .modal-content {
      transform: scale(1);
    }

    .modal-title {
      font-size: 1.5rem;
      color: var(--accent-primary);
      margin-bottom: 20px;
      font-family: var(--font-display);
    }

    .modal-text {
      margin-bottom: 30px;
      line-height: 1.6;
      color: #ccc;
    }

    /* --- Footer --- */
    .site-footer {
      margin-top: 20px;
      width: 95%;
      max-width: 1200px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.7rem;
      color: var(--text-muted);
      z-index: 10;
      opacity: 0.7;
    }

    .site-footer .brand-mark {
      color: var(--accent-secondary);
      font-weight: bold;
    }

    /* AnyCoder Link */
    .anycoder-link {
      position: absolute;
      top: 15px;
      right: 20px;
      font-size: 0.7rem;
      color: var(--text-muted);
      text-decoration: none;
      border: 1px solid var(--border-color);
      padding: 4px 8px;
      border-radius: 4px;
      transition: 0.3s;
      z-index: 200;
    }

    .anycoder-link:hover {
      color: var(--accent-primary);
      border-color: var(--accent-primary);
    }

    /* --- RESPONSIVE OPTIMIZATION --- */
    @media (max-width: 900px) {
      body {
        padding: 10px;
        align-items: flex-start;
        /* Allow scrolling */
      }

      .terminal-container {
        height: auto;
        width: 100%;
        border: none;
        box-shadow: none;
        /* Allow the container to grow naturally */
        display: flex;
        flex-direction: column;
        max-height: none;
      }

      .terminal-body {
        display: flex;
        flex-direction: column;
        overflow: visible;
      }

      .panel {
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0;
        min-height: auto;
        max-height: none;
        /* Remove limit on mobile */
        overflow: visible;
      }

      .drink-list-container {
        max-height: 200px;
        /* Keep list contained */
      }

      .dashboard-panel {
        order: -1;
        /* Move dashboard to top on mobile */
        background: linear-gradient(180deg, rgba(0, 255, 157, 0.05) 0%, var(--panel-bg) 100%);
        border-bottom: 1px solid var(--border-color);
        padding: 30px 20px;
      }

      .summary-panel {
        border-left: none;
        border-top: 1px solid var(--border-color);
      }

      .terminal-footer {
        max-height: 150px;
      }

      /* Logo adjustments */
      .logo {
        font-size: 1.4rem;
      }

      .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
      }

      .brand-version {
        display: none;
        /* Save space on small screens */
      }
    }