﻿    /* --- DRAWER --- */
    .drawer { 
      position: fixed; inset: 0; display:none; z-index: 9999; 
      opacity: 0; visibility: hidden; pointer-events: none;
      transition: opacity 0.2s ease, visibility 0.2s ease;
      will-change: opacity;
    }
    .drawer.open { display:block; opacity: 1; visibility: visible; pointer-events: auto; }
    .backdrop { position:absolute; inset:0; background: rgba(5,8,15,.65); opacity: 0; transition: opacity 0.2s ease; }
    .drawer.open .backdrop { opacity: 1; }
    .panel { 
      position:absolute; left:0; right:0; top:0; bottom:0; width: 100vw; max-width: none;
      background: #151720; border-left: 0;
      overflow-y:auto; height: 100vh; z-index: 10000; padding: 24px 28px 24px;
      transform: translate3d(100%, 0, 0); transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
      will-change: transform;
    }
    .drawer.open .panel { transform: translate3d(0, 0, 0); }
    .drawer-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 34px;
    }
    .drawer-brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      color: var(--text);
      text-decoration: none;
    }
    .drawer-brand-badge {
      width: 40px;
      height: 40px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      filter: drop-shadow(0 10px 20px rgba(91,140,255,0.18));
    }
    .drawer-brand-badge img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }
    .drawer-brand-text {
      min-width: 0;
      font-size: 24px;
      line-height: 1;
      font-weight: 800;
      letter-spacing: -0.03em;
      background: linear-gradient(90deg, #6366f1 0%, #6366f1 50%, #a855f7 50%, #a855f7 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .drawer-head .close-btn {
      position: static;
      top: auto;
      right: auto;
      flex: 0 0 auto;
      width: 44px;
      height: 44px;
      border-radius: 14px !important;
      background:
        linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
        rgba(18,24,38,.92);
      box-shadow: 0 12px 28px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.05);
      font-size: 25px;
    }
    .drawer-head .close-btn:hover {
      transform: none;
      background:
        linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035)),
        rgba(23,31,49,.96);
    }
    .panel .group { margin-top: 12px; display:flex; flex-direction:column; gap: 10px; }
    .navlink { padding: 12px 14px; border-radius: 12px; border:1px solid var(--border); background: var(--surface); text-align:left; }
    .navlink:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.05); }
    .drawer-nav {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .drawer-menu {
      border: 0;
      border-bottom: 1px solid rgba(255,255,255,.04);
    }
    .drawer-menu summary {
      min-height: 74px;
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      color: #fff;
      cursor: pointer;
      font-size: 20px;
      font-weight: 600;
      letter-spacing: -0.01em;
    }
    .drawer-menu summary::-webkit-details-marker {
      display: none;
    }
    .drawer-menu-arrow {
      width: 20px;
      height: 20px;
      color: rgba(245,247,255,.9);
      flex: 0 0 auto;
      transition: transform .18s ease;
    }
    .drawer-menu[open] .drawer-menu-arrow {
      transform: rotate(180deg);
    }
    .drawer-subnav {
      display: grid;
      gap: 8px;
      padding: 0 0 18px;
    }
    .drawer-subnav a,
    .drawer-subnav button {
      min-height: 46px;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 12px;
      padding: 0 14px;
      color: rgba(245,247,255,.82);
      border-radius: 10px !important;
      background: rgba(255,255,255,.04);
      border: 0;
      font-size: 15px;
      font-weight: 500;
      font-family: inherit;
      text-align: left;
    }
    .drawer-subnav-disabled {
      cursor: default;
      opacity: .72;
    }
    .drawer-submenu {
      border: 0;
      border-radius: 10px !important;
      background: rgba(255,255,255,.04);
      overflow: hidden;
    }
    .drawer-submenu summary {
      min-height: 48px;
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 12px;
      padding: 0 14px;
      color: rgba(245,247,255,.9);
      cursor: pointer;
      font-size: 15px;
      font-weight: 500;
      line-height: 1.3;
    }
    .drawer-submenu summary::-webkit-details-marker {
      display: none;
    }
    .drawer-submenu-arrow {
      width: 17px;
      height: 17px;
      margin-left: auto;
      flex: 0 0 auto;
      color: rgba(245,247,255,.72);
      transition: transform .18s ease, color .18s ease;
    }
    .drawer-submenu[open] .drawer-submenu-arrow {
      transform: rotate(180deg);
      color: #22c55e;
    }
    .drawer-submenu-list {
      display: grid;
      gap: 6px;
      padding: 0 8px 8px;
    }
    .drawer-subnav .drawer-submenu-list a {
      min-height: 44px;
      padding: 0 12px;
      background: rgba(5,8,15,.28);
      color: rgba(245,247,255,.78);
      font-size: 14px;
      font-weight: 500;
      line-height: 1.28;
    }
    .drawer-subnav .nav-item-icon {
      width: 28px;
      height: 28px;
      flex-basis: 28px;
      border-radius: 8px !important;
    }
    .drawer-subnav .nav-item-icon svg {
      width: 17px;
      height: 17px;
    }
    .drawer-submenu[open] > summary .nav-item-icon,
    .drawer-subnav a:hover .nav-item-icon {
      color: #22c55e;
      background: rgba(34,197,94,.10);
      border-color: rgba(34,197,94,.18);
    }
    .drawer-item-copy {
      min-width: 0;
      flex: 1 1 auto;
      line-height: 1.28;
    }
    .drawer-menu-link {
      min-height: 74px;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      color: #fff;
      border-bottom: 1px solid rgba(255,255,255,.04);
      font-size: 20px;
      font-weight: 600;
      letter-spacing: -0.01em;
    }
    
    .drawer-lang-switch { display: flex; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
    .drawer-lang-btn {
        flex: 1; padding: 12px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px;
        color: var(--text); cursor: pointer; text-align: center; font-weight: 700;
    }
    .drawer-lang-btn.active { background: var(--grad-main); border-color: transparent; color: #fff; }

    .hero { position:relative; overflow:hidden; background: radial-gradient(1200px 420px at -10% -10%, rgba(91,140,255,.26), transparent 60%), radial-gradient(1200px 420px at 110% 30%, rgba(139,92,246,.22), transparent 60%), var(--bg); }
    .hero .cta { display:flex; gap:12px; flex-wrap:wrap; margin-top: 24px; }
    .stats { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 24px; }
    .stat { text-align:center; padding:16px; border-radius: 16px; border:1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-soft); }
    .stat .v { font-weight:700; font-size: 20px; }
    .stat .l { font-size: 12px; color: var(--text-dim); }
    .hero-exchange-cta {
      position: fixed;
      isolation: isolate;
      display: none;
      align-items: center;
      justify-content: center;
      gap: 7px;
      right: 0;
      top: calc(100vh - 72px);
      top: calc(100dvh - 72px);
      z-index: 450000;
      width: 168px;
      min-height: 42px;
      margin: 0;
      padding: 0 12px 0 14px;
      border: 1px solid rgba(255,255,255,.16);
      border-right: 0;
      border-radius: 999px 0 0 999px !important;
      color: #fff;
      text-decoration: none;
      font-size: 13px;
      font-weight: 900;
      line-height: 1;
      letter-spacing: -0.01em;
      background:
        radial-gradient(50px 28px at 18% 0%, rgba(255,255,255,.28), transparent 70%),
        linear-gradient(135deg, #5b8cff 0%, #724cff 48%, #b54cff 100%);
      box-shadow:
        0 14px 34px rgba(91,140,255,.26),
        0 8px 22px rgba(139,92,246,.22),
        inset 0 1px 0 rgba(255,255,255,.22);
      overflow: hidden;
      transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    }
    .hero-exchange-cta::before {
      content: "";
      position: absolute;
      inset: 1px;
      z-index: -1;
      border-radius: inherit;
      background: linear-gradient(180deg, rgba(255,255,255,.16), transparent 54%);
      pointer-events: none;
    }
    .hero-exchange-cta:hover {
      transform: translateX(-2px);
      filter: saturate(1.08);
      box-shadow:
        0 16px 40px rgba(91,140,255,.32),
        0 10px 26px rgba(139,92,246,.26),
        inset 0 1px 0 rgba(255,255,255,.26);
    }
    .hero-exchange-cta:active { transform: translateX(0) scale(.98); }
    .hero-exchange-cta__icon {
      display: grid;
      place-items: center;
      width: 17px;
      height: 17px;
      color: rgba(255,255,255,.94);
      flex: 0 0 auto;
    }
    .hero-exchange-cta__icon svg {
      width: 17px;
      height: 17px;
      display: block;
    }
    @media (max-width: 768px){
      .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .hero-exchange-cta {
        display: inline-flex;
      }
    }
    #cometCanvas { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:0; }
    .hero .container { position: relative; z-index: 1; }

