/* SIDEBAR PANEL */
#zt-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 500px;
  height: 800px;
  max-height: 95vh;
  background: var(--zt-glass);
  background-image:
    radial-gradient(140px 90px at 8% 6%, rgba(14, 165, 233, 0.15), transparent 60%),
    radial-gradient(160px 100px at 92% 2%, rgba(34, 197, 94, 0.12), transparent 60%);
  backdrop-filter: var(--zt-blur);
  -webkit-backdrop-filter: var(--zt-blur);
  border: 1px solid var(--zt-glass-border);
  border-radius: var(--zt-radius);
  box-shadow: var(--zt-shadow);
  z-index: 2147483646;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --zt-panel-x: 0px;
  opacity: 0;
  transform: scale(0.96) translateY(12px) translateX(var(--zt-panel-x));
  pointer-events: none;
  overflow: hidden;
}
#zt-panel.open { opacity: 1; transform: scale(1) translateY(0) translateX(var(--zt-panel-x)); pointer-events: all; }
#zt-panel.fullscreen {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  --zt-panel-x: 0px;
}

/* HEADER */
.zt-header {
  padding: 20px 24px 0 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  z-index: 10;
  position: relative;
}
#zt-panel.fullscreen .zt-header-top,
#zt-panel.fullscreen .zt-tabs {
  width: 100%;
  margin: 0;
}
.zt-header-top { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 16px; }
.zt-title { font-size: 18px; font-weight: 700; letter-spacing: -0.4px; color: var(--zt-text); }
.zt-title strong { background: var(--zt-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.zt-logo { display: inline-flex; align-items: center; gap: 10px; }
.zt-logo-mark { width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18); overflow: hidden; background: #dbeafe; }
.zt-logo-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.zt-logo-text { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; color: var(--zt-text); }
.zt-header-actions { display: flex; gap: 8px; align-items: center; }

.zt-header-create {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  background: var(--zt-gradient);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.22);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.zt-header-create:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(14, 165, 233, 0.28);
  filter: brightness(1.05);
}

.zt-header-create:active {
  transform: translateY(0);
}

.zt-header-trial {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  background: rgba(14, 165, 233, 0.12);
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background 0.2s ease, border 0.2s ease, transform 0.15s ease;
}

.zt-header-trial:hover {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(14, 165, 233, 0.45);
  transform: translateY(-1px);
}

.zt-header-trial:active {
  transform: translateY(0);
}

.zt-header-buy {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background 0.2s ease, border 0.2s ease, transform 0.15s ease;
}

.zt-header-buy:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.25);
  transform: translateY(-1px);
}

.zt-header-buy:active {
  transform: translateY(0);
}

.zt-icon-btn, .zt-close {
  background: none; border: none; cursor: pointer; color: var(--zt-muted);
  transition: all 0.2s; display: flex; align-items: center; justify-content: center;
  padding: 6px; border-radius: 10px; width: 32px; height: 32px;
}
.zt-icon-btn:hover, .zt-close:hover { color: var(--zt-text); background: rgba(15, 23, 42, 0.06); }

/* TABS */
.zt-tabs { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 0; scrollbar-width: none; margin-bottom: -1px; }
.zt-tabs::-webkit-scrollbar { display: none; }
.zt-tab { padding: 10px 0; font-size: 12px; font-weight: 700; color: var(--zt-muted); background: none; border: none; cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; transition: all 0.2s; letter-spacing: 0.2px; text-transform: uppercase; }
.zt-tab:hover { color: var(--zt-text); }
.zt-tab.active { color: var(--zt-primary); border-bottom-color: var(--zt-primary); }

/* SETTINGS MENU */
.zt-settings-menu {
  position: absolute;
  top: 60px;
  right: 20px;
  background: var(--zt-surface-strong);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 6px;
  display: none;
  flex-direction: column;
  z-index: 100;
  width: 200px;
  animation: slideUpFade 0.2s;
}
.zt-settings-menu.show { display: flex; }
.zt-menu-section { padding: 6px; border-bottom: 1px solid rgba(15, 23, 42, 0.06); }
.zt-menu-section:last-child { border-bottom: none; }
.zt-menu-title { font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.6px; padding: 4px 8px 6px; }
.zt-menu-item { background: none; border: none; text-align: left; padding: 10px 12px; font-size: 13px; color: #475569; font-weight: 600; border-radius: 10px; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: background 0.1s; }
.zt-menu-item:hover { background: rgba(14, 165, 233, 0.08); color: var(--zt-primary-strong); }

/* CONTENT AREA */
.zt-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; min-height: 0; }

/* FOOTER */
.zt-footer { padding: 20px 24px; border-top: 1px solid rgba(15, 23, 42, 0.08); background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(10px); z-index: 10; }
.zt-btn-primary { width: 100%; padding: 14px; background: #0f172a; color: white; border: none; border-radius: 14px; font-weight: 600; font-size: 14px; cursor: pointer; transition: transform 0.1s, box-shadow 0.2s; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18); }
.zt-btn-primary:active { transform: scale(0.98); }
#zt-panel.fullscreen .zt-footer { display: flex; justify-content: center; }
#zt-panel.fullscreen .zt-btn-primary { max-width: 420px; }
