/* Larger, clearer login call-to-action */
.nav .button-small.button-ghost {
  min-height: 48px;
  padding: 0 21px;
  font-size: 12px;
  border-color: #4c5c43;
  color: #f3f7ee;
  box-shadow: 0 8px 30px rgb(0 0 0 / 28%);
}

.nav .button-small.button-ghost:hover {
  border-color: var(--lime);
  background: #1a2117;
}

.welcome-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  margin-bottom: 28px;
  border: 1px solid #35452f;
  background: linear-gradient(100deg, #182014, #111613 65%);
}

.welcome-banner > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.welcome-banner b { font-size: 12px; }
.welcome-banner small { color: var(--muted); font-size: 9px; }
.welcome-banner .btn { margin-left: auto; white-space: nowrap; }

.welcome-signal { display: flex; align-items: end; gap: 3px; width: 25px; height: 22px; }
.welcome-signal span { display: block; width: 5px; background: var(--lime); box-shadow: 0 0 8px rgb(168 255 62 / 40%); }
.welcome-signal span:nth-child(1) { height: 8px; }
.welcome-signal span:nth-child(2) { height: 14px; }
.welcome-signal span:nth-child(3) { height: 21px; }

@media (max-width: 620px) {
  .nav .button-small.button-ghost { min-height: 44px; }
  .welcome-banner { align-items: flex-start; flex-wrap: wrap; }
  .welcome-banner .btn { margin-left: 40px; width: calc(100% - 40px); justify-content: center; }
}

.tool-grid { display: grid; grid-template-columns: .8fr 1.1fr 1.1fr; gap: 14px; margin: 0 0 14px; }
.storage-body { padding: 18px; }
.storage-body b { font-size: 11px; }
.storage-body p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.storage-meter { height: 8px; margin-bottom: 16px; background: #202622; overflow: hidden; }
.storage-meter span { display: block; width: 0; height: 100%; background: var(--lime); box-shadow: 0 0 12px rgb(168 255 62 / 50%); transition: width .35s ease; }
.inline-form { padding: 14px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.inline-form select, .inline-form input { min-width: 0; height: 36px; border: 1px solid var(--line); background: #0b0e0d; color: var(--text); padding: 0 9px; font: 9px Manrope; outline: 0; }
.inline-form select:focus, .inline-form input:focus { border-color: var(--lime); }
.inline-form small { grid-column: 1 / -1; color: var(--muted); font-size: 8px; }
.inline-form small.success { color: var(--lime); }
.inline-form small.error { color: #ff9a9a; }
.backup-list { border-top: 1px solid var(--line); max-height: 155px; overflow: auto; }
.backup-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid #232825; }
.backup-row b { display: block; max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.backup-row small { display: block; color: var(--muted); font-size: 8px; margin-top: 3px; }
.backup-row a { color: var(--lime); text-decoration: none; font-size: 8px; font-weight: 800; }
.storage-input { width: 58px; height: 28px; margin-right: 5px; border: 1px solid var(--line); background: #0c0f0e; color: var(--text); padding: 0 6px; font: 9px Manrope; }
.alt-flag { display: block; margin-top: 5px; color: #ffae55; font: 7px "DM Mono", monospace; }

.live-status { border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #0d110e, #121a12, #0d110e); }
.live-status .wrap { min-height: 112px; display: grid; grid-template-columns: 1.45fr repeat(4, .72fr) auto; align-items: center; gap: 22px; }
.status-intro { display: flex; align-items: center; gap: 12px; }
.status-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px rgb(168 255 62 / 9%), 0 0 16px var(--lime); animation: statusPulse 2s infinite; }
.status-intro small, .status-metric small { display: block; font: 8px "DM Mono", monospace; letter-spacing: .12em; color: #788176; }
.status-intro b { display: block; margin-top: 5px; font-size: 12px; }
.status-metric { border-left: 1px solid #293028; padding-left: 17px; }
.status-metric b { display: block; margin: 7px 0 3px; font-size: 17px; color: var(--lime); }
.status-metric span { font-size: 8px; color: var(--muted); }
.status-link { color: var(--lime); text-decoration: none; white-space: nowrap; font-size: 10px; font-weight: 800; }
@keyframes statusPulse { 50% { box-shadow: 0 0 0 10px rgb(168 255 62 / 0%), 0 0 12px var(--lime); } }

.dashboard-premium .content { max-width: 1640px; padding: 48px 48px 70px; }
.dashboard-premium .topbar { height: 82px; padding: 0 48px; }
.dashboard-premium .page-head { margin: 8px 0 36px; }
.dashboard-premium .page-head h1 { font-size: clamp(34px, 3.4vw, 52px); letter-spacing: -.06em; }
.dashboard-premium .page-head p { font-size: 12px; }
.dashboard-premium .stats { gap: 16px; margin-bottom: 24px; }
.dashboard-premium .stat { min-height: 148px; padding: 27px; }
.dashboard-premium .stat strong { font-size: 36px; margin: 17px 0 8px; }
.dashboard-premium .panel-head { height: 62px; padding: 0 22px; }
.dashboard-premium .db-item { padding: 18px 8px; }
.dashboard-premium .welcome-banner { padding: 21px 23px; margin-bottom: 34px; }

/* Readability pass: keep the dashboard comfortable on regular desktop screens. */
.dashboard-premium { font-size: 15px; }
.dashboard-premium .sidebar { padding: 28px 18px; }
.dashboard-premium .brand { font-size: 14px; padding-bottom: 28px; }
.dashboard-premium .nav-group { padding-top: 28px; }
.dashboard-premium .nav-label { font-size: 10px; padding-bottom: 12px; }
.dashboard-premium .side-link { height: 48px; font-size: 13px; gap: 12px; }
.dashboard-premium .support-box { padding: 17px; }
.dashboard-premium .support-box b { font-size: 13px; }
.dashboard-premium .support-box p { font-size: 11px; }
.dashboard-premium .support-box a { padding: 11px; font-size: 11px; }
.dashboard-premium .crumb { font-size: 10px; }
.dashboard-premium .live-chip { font-size: 10px; padding: 9px 11px; }
.dashboard-premium .user-chip b { font-size: 12px; }
.dashboard-premium .user-chip small { font-size: 10px; }
.dashboard-premium .user-chip img { width: 36px; height: 36px; }
.dashboard-premium .eyebrow { font-size: 10px; }
.dashboard-premium .page-head p { font-size: 14px; }
.dashboard-premium .btn { min-height: 44px; padding: 11px 17px; font-size: 12px; }
.dashboard-premium .welcome-banner b { font-size: 15px; }
.dashboard-premium .welcome-banner small { font-size: 12px; }
.dashboard-premium .stat small { font-size: 10px; }
.dashboard-premium .stat span { font-size: 10px; }
.dashboard-premium .panel-head b { font-size: 13px; }
.dashboard-premium .panel-head span { font-size: 10px; }
.dashboard-premium .storage-body b { font-size: 14px; }
.dashboard-premium .storage-body p { font-size: 12px; }
.dashboard-premium .inline-form { padding: 17px; gap: 10px; }
.dashboard-premium .inline-form select,
.dashboard-premium .inline-form input { height: 44px; padding: 0 12px; font-size: 12px; }
.dashboard-premium .inline-form small { font-size: 10px; line-height: 1.55; }
.dashboard-premium .backup-row b { font-size: 12px; }
.dashboard-premium .backup-row small,
.dashboard-premium .backup-row a { font-size: 10px; }
.dashboard-premium .db-name b { font-size: 13px; }
.dashboard-premium .db-name small,
.dashboard-premium .db-meta small { font-size: 10px; }
.dashboard-premium .db-meta b { font-size: 11px; }
.dashboard-premium .status { font-size: 9px; }
.dashboard-premium .empty { font-size: 12px; }
.dashboard-premium .activity-item b { font-size: 12px; }
.dashboard-premium .activity-item small { font-size: 10px; }
.dashboard-premium .field label { font-size: 10px; }
.dashboard-premium .field input,
.dashboard-premium .field select { height: 46px; font-size: 12px; }
.dashboard-premium .form-note,
.dashboard-premium .alert,
.dashboard-premium .toast { font-size: 11px; }

@media (max-width: 900px) { .live-status .wrap { grid-template-columns: 1fr 1fr 1fr; padding: 22px 0; } .status-intro { grid-column: 1 / -1; } .status-link { display: none; } .dashboard-premium .content { padding: 28px 18px 50px; } .dashboard-premium .topbar { height: 72px; padding: 0 18px; } }
@media (max-width: 620px) { .live-status .wrap { grid-template-columns: 1fr 1fr; gap: 17px; } .status-metric { padding-left: 12px; } .status-metric b { font-size: 15px; } .dashboard-premium .stat { min-height: 122px; padding: 18px; } .dashboard-premium .stat strong { font-size: 26px; } }

/* Interactive cloud aura around the live cluster card */
.cloud-interactive { --cloud-x: 50%; --cloud-y: 50%; --card-x: -5deg; --card-y: 2deg; isolation: isolate; cursor: crosshair; }
.cloud-layer { position: absolute; inset: -10%; z-index: 0; overflow: hidden; pointer-events: none; }
.cloud-layer:before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle at var(--cloud-x) var(--cloud-y), rgb(168 255 62 / 19%), transparent 27%), radial-gradient(circle at 22% 78%, rgb(99 230 255 / 9%), transparent 29%); filter: blur(18px); transition: background .18s ease; }
.cloud { position: absolute; display: block; width: 180px; height: 72px; border-radius: 999px; background: radial-gradient(ellipse at 50% 45%, rgb(168 255 62 / 19%), rgb(82 128 48 / 7%) 47%, transparent 72%); filter: blur(14px); opacity: .66; animation: cloudDrift 11s ease-in-out infinite alternate; }
.cloud:before,.cloud:after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud:before { width: 87px; height: 87px; left: 35px; bottom: 7px; }.cloud:after { width: 70px; height: 70px; right: 28px; bottom: 4px; }
.cloud-a { top: 8%; left: -4%; animation-duration: 13s; }.cloud-b { right: -6%; top: 39%; width: 205px; opacity: .46; animation-delay: -5s; }.cloud-c { left: 4%; bottom: 6%; width: 240px; opacity: .55; animation-delay: -2s; }.cloud-d { right: 12%; bottom: 2%; width: 150px; opacity: .33; animation-duration: 16s; }
.cloud-spotlight { position: absolute; width: 270px; height: 270px; left: calc(var(--cloud-x) - 135px); top: calc(var(--cloud-y) - 135px); border-radius: 50%; background: radial-gradient(circle, rgb(168 255 62 / 13%), transparent 67%); filter: blur(5px); transition: left .09s linear, top .09s linear; }
.cloud-interactive .terminal-card { transform: perspective(1000px) rotateY(var(--card-x)) rotateX(var(--card-y)); transition: transform .18s ease-out, box-shadow .25s ease; }
.cloud-interactive:hover .terminal-card { box-shadow: 0 40px 100px #000c, 0 0 80px rgb(168 255 62 / 13%); }
.cloud-interactive .float-badge { transition: transform .22s ease-out, border-color .2s; }.cloud-interactive:hover .badge-mongo { transform: translate(7px,-5px); border-color: #89c551; }.cloud-interactive:hover .badge-mysql { transform: translate(-7px,5px); border-color: #4caebc; }
@keyframes cloudDrift { 0% { transform: translate3d(-16px, 4px, 0) scale(.92); } 100% { transform: translate3d(32px, -18px, 0) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .cloud,.cloud-interactive .terminal-card,.cloud-spotlight { animation: none; transition: none; } }
@media (max-width: 620px) { .cloud-interactive { cursor: default; } .cloud-layer { opacity: .7; } }

@media (max-width: 1100px) { .tool-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .inline-form { grid-template-columns: 1fr; } .inline-form .btn { justify-content: center; } }

/* Code Generator Panel */
.code-generator-panel { margin-bottom: 24px; border: 1px solid var(--line); background: var(--panel); }
.code-gen-body { padding: 22px; }
.code-gen-controls { display: grid; grid-template-columns: 1.1fr 1fr 1.6fr; gap: 16px; align-items: end; margin-bottom: 18px; }
.code-gen-controls label { display: block; font-family: "DM Mono", monospace; font-size: 9px; color: #8d958f; letter-spacing: .08em; margin-bottom: 7px; }
.code-gen-controls select, .code-gen-controls input { width: 100%; height: 44px; background: #0b0e0d; border: 1px solid #303632; color: var(--text); padding: 0 12px; font: 12px Manrope; outline: 0; }
.code-gen-controls select:focus, .code-gen-controls input:focus { border-color: var(--lime); }
.input-with-toggle { position: relative; display: flex; align-items: center; }
.input-with-toggle input { padding-right: 38px; }
.icon-toggle { position: absolute; right: 8px; background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; padding: 4px; }
.icon-toggle:hover { color: var(--lime); }
.lang-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.lang-tab { height: 44px; background: #151918; border: 1px solid var(--line); color: var(--muted); font: 700 11px "DM Mono", monospace; padding: 0 14px; cursor: pointer; transition: all .15s ease; border-radius: 2px; }
.lang-tab:hover { color: var(--text); border-color: #424e43; }
.lang-tab.active { background: #1a2417; border-color: var(--lime); color: var(--lime); }
.code-display-wrap { border: 1px solid #232a26; background: #070908; border-radius: 2px; overflow: hidden; }
.code-meta-bar { display: flex; justify-content: space-between; align-items: center; padding: 11px 18px; background: #0d120f; border-bottom: 1px solid #1c231e; }
.code-info { font-family: "DM Mono", monospace; font-size: 10px; color: var(--lime); }
.code-pre { margin: 0; padding: 20px; overflow-x: auto; font-family: "DM Mono", monospace; font-size: 12px; line-height: 1.7; color: #d4e0d6; white-space: pre; }
.btn-code { padding: 4px 10px; font-size: 10px; font-family: "DM Mono", monospace; background: #172017; border-color: #31422c; color: var(--lime); margin-right: 4px; }
.btn-code:hover { background: var(--lime); color: #0b0e0c; border-color: var(--lime); }
@media (max-width: 1050px) { .code-gen-controls { grid-template-columns: 1fr 1fr; } .code-gen-controls > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 650px) { .code-gen-controls { grid-template-columns: 1fr; } }

.db-actions { display: flex; align-items: center; gap: 5px; }
.btn-key { padding: 4px 8px; font-size: 10px; font-family: "DM Mono", monospace; background: #131d1a; border-color: #27453d; color: var(--blue); cursor: pointer; }
.btn-key:hover { background: var(--blue); color: #0b0e0d; border-color: var(--blue); }
.btn-trash { padding: 4px 8px; font-size: 11px; background: #201414; border-color: #4a2929; color: var(--red); cursor: pointer; }
.btn-trash:hover { background: var(--red); color: #fff; border-color: var(--red); }


