:root {
  --cobalt: #008CFF;
  --cobalt-deep: #0066CC;
  --cobalt-glow: rgba(0, 140, 255, 0.36);
  --glass: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --border: rgba(255, 255, 255, 0.94);
  --border-blue: rgba(0, 140, 255, 0.35);
  --ink: #0B192C;
  --ink-soft: #425A78;
  --arrow-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4 3l15 9-6.5 1.8L10.2 20 4 3z' fill='%23008CFF' stroke='%23FFFFFF' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, auto;
}
* { box-sizing: border-box; margin: 0; padding: 0; cursor: var(--arrow-cursor) !important; }
html, body {
  width: 100%; height: 100dvh; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Inter, sans-serif;
  background: linear-gradient(145deg, #27A4FF 0%, #008CFF 45%, #D9EEFF 100%);
  color: var(--ink);
  user-select: none; -webkit-tap-highlight-color: transparent;
}
#bgCanvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.desktop {
  position: relative; z-index: 1;
  width: 100%; height: 100dvh;
  display: grid;
  grid-template-rows: 62px 1fr 86px 24px;
  padding: 12px 18px 10px;
  gap: 10px;
  max-width: 1120px;
  margin: 0 auto;
}

/* LIQUID GLASS TOPBAR */
.topbar {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(165%); -webkit-backdrop-filter: blur(28px) saturate(165%);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 72, 148, 0.16), inset 0 1px 0 #FFFFFF;
  border-radius: 22px;
  padding: 0 14px;
  animation: glassFloatIn 0.5s cubic-bezier(.2,.8,.2,1) both;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-emblem {
  width: 38px; height: 38px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(0, 140, 255, 0.12);
  border: 1px solid rgba(0, 140, 255, 0.28);
  color: var(--cobalt);
}
.brand-emblem svg { width: 25px; height: 25px; }
.brand-name { font-weight: 800; font-size: 16.5px; letter-spacing: 0.16em; color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 8px; }

.lang-menu { position: relative; }
.lang-trigger {
  list-style: none;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.72); color: var(--ink);
  border: 1px solid var(--border); border-radius: 13px;
  padding: 7px 12px; font-size: 12.5px; font-weight: 700;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.lang-trigger::-webkit-details-marker { display: none; }
.lang-trigger:hover { background: #FFFFFF; box-shadow: 0 4px 14px rgba(0, 140, 255, 0.18); }
.lang-trigger svg { width: 14px; height: 14px; color: var(--cobalt); }

.lang-popover {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 220px; max-height: 290px; overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-blue);
  border-radius: 18px;
  padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 20px 48px rgba(0, 62, 128, 0.24);
  z-index: 40;
}
.lang-item {
  text-decoration: none; color: var(--ink);
  font-size: 13px; font-weight: 600;
  padding: 8px 11px; border-radius: 11px;
  transition: background 0.14s ease, color 0.14s ease;
}
.lang-item:hover { background: rgba(0, 140, 255, 0.12); color: var(--cobalt); }
.lang-item.active { background: var(--cobalt); color: #FFFFFF; }

.auth-icon-btn {
  width: 38px; height: 38px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--cobalt);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
  box-shadow: 0 6px 18px var(--cobalt-glow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.auth-icon-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 140, 255, 0.55); }
.auth-icon-btn svg { width: 18px; height: 18px; }

/* WORKSPACE & LIQUID GLASS TILES */
.workspace { display: flex; flex-direction: column; justify-content: center; min-height: 0; overflow: hidden; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}
.tile {
  position: relative; overflow: hidden;
  text-decoration: none; color: var(--ink);
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(165%); -webkit-backdrop-filter: blur(28px) saturate(165%);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 22px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 16px;
  box-shadow: 0 16px 36px rgba(0, 72, 148, 0.16), inset 0 1px 0 #FFFFFF;
  animation: glassFloatIn 0.55s cubic-bezier(.2,.8,.2,1) var(--delay, 0s) both;
  transition: transform 0.26s cubic-bezier(.2,.8,.2,1), background 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}
.glass-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.72) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.75s cubic-bezier(.2,.8,.2,1);
}
.tile:hover .glass-sheen { transform: translateX(130%); }
.tile:hover {
  transform: translateY(-5px) scale(1.01);
  background: rgba(255, 255, 255, 0.9);
  border-color: #FFFFFF;
  box-shadow: 0 24px 48px rgba(0, 82, 168, 0.24), inset 0 1px 0 #FFFFFF;
}
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile-icon {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #1AA0FF, var(--cobalt));
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(0, 140, 255, 0.32);
  transition: transform 0.25s ease;
}
.tile:hover .tile-icon { transform: scale(1.07) rotate(-3deg); }
.tile-icon svg { width: 22px; height: 22px; }
.tile-pill {
  font-size: 8.5px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--cobalt);
  background: rgba(0, 140, 255, 0.12);
  border: 1px solid rgba(0, 140, 255, 0.24);
  padding: 4px 10px; border-radius: 999px;
}
.tile-body h2 { font-size: 19.5px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.tile-body p { font-size: 13.5px; line-height: 1.48; color: var(--ink-soft); }
.tile-actions { display: flex; justify-content: flex-end; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 13px;
  display: grid; place-items: center;
  border: 1px solid rgba(0, 140, 255, 0.28);
  background: rgba(0, 140, 255, 0.12);
  color: var(--cobalt);
  transition: all 0.2s ease;
}
.icon-btn svg { width: 17px; height: 17px; }
.tile:hover .icon-btn { background: var(--cobalt); color: #FFFFFF; border-color: var(--cobalt); box-shadow: 0 6px 16px var(--cobalt-glow); }

.goid-wm { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; }
.goid-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--cobalt);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--cobalt-glow);
  flex-shrink: 0;
}
.goid-dot svg { width: 16px; height: 16px; display: block; }

/* SEAMLESS SPLIT-WING GLASS DOCK WITH CENTRAL CRADLE */
.dock-wrap { display: flex; align-items: flex-end; justify-content: center; width: 100%; }
.dock {
  position: relative;
  width: min(560px, 100%);
  height: 68px;
  display: grid;
  grid-template-columns: 1fr 76px 1fr;
  align-items: center;
  gap: 8px;
}
.dock-wing {
  height: 64px;
  background: var(--glass-strong);
  backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid #FFFFFF;
  box-shadow: 0 14px 34px rgba(0, 72, 148, 0.2), inset 0 1px 0 #FFFFFF;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}
.dock-left { border-radius: 24px 28px 28px 24px; }
.dock-right { border-radius: 28px 24px 24px 28px; }

.dock-item {
  min-width: 0;
  height: 50px;
  border-radius: 15px;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), color 0.2s ease, background 0.2s ease;
}
.dock-item svg { width: 19px; height: 19px; flex-shrink: 0; }
.dock-item span {
  display: block;
  max-width: 100%;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dock-item:hover {
  transform: translateY(-3px);
  color: var(--cobalt);
  background: rgba(0, 140, 255, 0.12);
}

.dock-core {
  position: relative;
  width: 62px; height: 62px;
  margin: 0 auto;
  transform: translateY(-8px);
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #22A6FF, var(--cobalt));
  border: 2.5px solid #FFFFFF;
  color: #FFFFFF;
  box-shadow: 0 12px 28px rgba(0, 140, 255, 0.48);
  animation: corePulse 3.5s ease-in-out infinite;
  transition: transform 0.22s cubic-bezier(.2,.8,.2,1);
}
.dock-core svg { width: 30px; height: 30px; }
.dock-core::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.85);
  animation: spinRing 14s linear infinite;
}
.dock-core:hover { transform: translateY(-12px) scale(1.07); }

@keyframes spinRing { to { transform: rotate(360deg); } }
@keyframes corePulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(0, 140, 255, 0.45); }
  50% { box-shadow: 0 14px 34px rgba(0, 140, 255, 0.72); }
}
@keyframes glassFloatIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 600; color: rgba(11, 25, 44, 0.74); padding: 0 6px;
}

@media (max-width: 780px) {
  .desktop { padding: 10px 12px 8px; grid-template-rows: 54px 1fr 78px 22px; gap: 8px; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .tile { flex-direction: row; align-items: center; padding: 14px 16px; border-radius: 22px; gap: 12px; }
  .tile-top { flex-shrink: 0; }
  .tile-pill { display: none; }
  .tile-icon { width: 42px; height: 42px; border-radius: 13px; }
  .tile-body { flex: 1; min-width: 0; }
  .tile-body h2 { font-size: 16px; margin-bottom: 2px; }
  .tile-body p { font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .icon-btn { width: 34px; height: 34px; border-radius: 11px; }

  .dock { grid-template-columns: 1fr 64px 1fr; gap: 6px; height: 62px; }
  .dock-wing { height: 58px; padding: 0 6px; gap: 4px; }
  .dock-item svg { width: 18px; height: 18px; }
  .dock-item span { font-size: 9.5px; }
  .dock-core { width: 54px; height: 54px; transform: translateY(-6px); }
  .dock-core svg { width: 26px; height: 26px; }
}
