﻿:root {
  --tz-primary: #0f766e;
  --tz-secondary: #0ea5a4;
  --tz-accent: #0891b2;
  --tz-ink: #0f172a;
  --tz-bg: #f5f8fb;
  --tz-card: #ffffff;
}

html, body {
  font-family: 'Manrope', sans-serif;
  background: radial-gradient(circle at 20% 10%, #dff6f3, #f7fbff 48%, #f8fafc);
  color: var(--tz-ink);
  min-height: 100%;
}

.tz-body { display: flex; flex-direction: column; }
.tz-main { flex: 1; }

.tz-header {
  background: linear-gradient(120deg, rgba(15, 23, 42, .92), rgba(15, 118, 110, .88));
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .24);
  border-bottom: 1px solid rgba(148, 163, 184, .24);
}
.tz-navbar .nav-link, .brand-word { color: #fff !important; }
.tz-navbar .nav-link {
  font-weight: 600;
  opacity: .88;
  transition: opacity .2s ease, transform .2s ease;
}
.tz-navbar .nav-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.tz-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, .38);
}
.tz-navbar .navbar-toggler-icon {
  filter: invert(1) brightness(1.8);
}
.brand-word { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: .2px; }
.tz-main-logo {
  width: 272px;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(2, 6, 23, .38));
}
.tz-auth-logo {
  width: 242px;
  max-width: 100%;
  height: auto;
  display: block;
}
.tz-auth-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .85rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #155e75 100%);
  border: 1px solid rgba(148, 163, 184, .35);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .2);
}

.hero-wrap {
  background: linear-gradient(120deg, #0b1226 0%, #0f766e 48%, #0ea5a4 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-wrap::after {
  content: '';
  position: absolute;
  inset: auto -120px -120px auto;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
}
.hero-wrap::before {
  content: '';
  position: absolute;
  inset: 12% auto auto -100px;
  width: 260px;
  height: 260px;
  background: rgba(6, 182, 212, .16);
  filter: blur(8px);
  border-radius: 50%;
}
.hero-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; }
.hero-sub { color: rgba(255, 255, 255, .88); font-size: 1.05rem; max-width: 56ch; }
.tz-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .3px;
  border-radius: 999px;
  padding: .4rem .8rem;
}
.hero-showcase {
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 20px;
  padding: 1.3rem;
  backdrop-filter: blur(8px);
}
.showcase-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.showcase-row small { color: rgba(255, 255, 255, .7); }
.showcase-row h4 { margin-bottom: 0; }
.showcase-chart {
  height: 110px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.05));
}
.showcase-note { font-size: .82rem; color: rgba(255, 255, 255, .75); }
.tz-kicker {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0f766e;
}
.tz-kicker::before {
  content: '';
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5a4, #0891b2);
}
.tz-trust-strip {
  background: #f8fbff;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  padding: 1rem 1.2rem;
}
.tz-trust-item {
  border: 1px solid #e4ecf7;
  border-radius: 999px;
  background: #fff;
  padding: .5rem .9rem;
  font-size: .82rem;
  font-weight: 700;
  color: #334155;
}
.tz-feature-pill {
  display: inline-flex;
  align-items: center;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid #d8e5f5;
  background: #f8fbff;
  color: #0f172a;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.tz-grid-card {
  position: relative;
  overflow: hidden;
}
.tz-grid-card::after {
  content: '';
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(120deg, rgba(15, 118, 110, .14), rgba(8, 145, 178, .06));
}
.tz-panel-card {
  background: linear-gradient(150deg, #0b1226, #1e293b);
  color: #e2e8f0;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, .24);
  padding: 1.2rem;
}
.tz-panel-card h5,
.tz-panel-card h6 {
  color: #fff;
}
.tz-quote {
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 16px;
  padding: 1.1rem;
}
.tz-quote p {
  font-size: .95rem;
  color: #1e293b;
}
.tz-quote span {
  font-size: .82rem;
  color: #64748b;
  font-weight: 700;
}
.tz-hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.tz-plan {
  border: 1px solid #dce6f4;
  border-radius: 18px;
  background: #fff;
  padding: 1.25rem;
  height: 100%;
}
.tz-plan.highlight {
  background: linear-gradient(165deg, #0b1226, #0f766e);
  color: #fff;
  border-color: rgba(148, 163, 184, .38);
}
.tz-plan.highlight .text-muted,
.tz-plan.highlight .text-secondary {
  color: rgba(255, 255, 255, .78) !important;
}

.tz-card, .tz-stat {
  background: var(--tz-card);
  border-radius: 18px;
  border: 1px solid #e4e8ef;
  padding: 1.2rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tz-card:hover, .tz-stat:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(15, 23, 42, .11); }
.tz-stat small { color: #64748b; text-transform: uppercase; letter-spacing: .4px; font-weight: 700; }
.tz-stat h3 { margin: .35rem 0 0; font-weight: 800; }

.tz-step {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem;
  min-height: 220px;
}
.tz-step span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #0f766e;
  color: #fff;
  margin-bottom: .8rem;
  font-weight: 700;
}

.tz-cta {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.tz-footer {
  background: linear-gradient(120deg, #0f172a, #111827);
  color: #fff;
}
.tz-footer-link {
  color: #67e8f9;
  font-weight: 700;
  text-decoration: none;
}
.tz-footer-link:hover {
  color: #a5f3fc;
}
.tz-footer-list a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}
.tz-footer-list a:hover {
  color: #fff;
}

.tz-alert { border-radius: 14px; }

.tz-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  border-radius: 999px;
  padding: .28rem .62rem;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid transparent;
  letter-spacing: .01em;
}

.tz-status-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: .85;
}

.tz-status-pill--subscribed {
  color: #14532d;
  background: #dcfce7;
  border-color: #86efac;
}

.tz-status-pill--unsubscribed {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fdba74;
}

.table .tz-subscription-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .32rem .68rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.table .tz-subscription-badge,
.table .tz-subscription-badge * {
  color: inherit !important;
}

.table .tz-subscription-badge .tz-subscription-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  opacity: .92;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .45);
}

.table .tz-subscription-badge.is-subscribed {
  color: #14532d !important;
  background: linear-gradient(180deg, #ecfdf5 0%, #dcfce7 100%);
  border-color: #86efac;
}

.table .tz-subscription-badge.is-unsubscribed {
  color: #9a3412 !important;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fdba74;
}

.tz-global-loader {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.tz-global-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.tz-global-loader-card {
  min-width: 220px;
  max-width: 92vw;
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(148, 163, 184, .35);
  box-shadow: 0 22px 40px rgba(15, 23, 42, .24);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  text-align: center;
  color: #0f172a;
  font-weight: 600;
}

.tz-global-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(15, 118, 110, .22);
  border-top-color: #0f766e;
  border-radius: 50%;
  animation: tz-spin .8s linear infinite;
}

@keyframes tz-spin {
  to { transform: rotate(360deg); }
}

.tz-auth-bg {
  background: linear-gradient(145deg, #e6fffa, #f8fafc 45%, #dff4ff);
  min-height: 100vh;
}

.form-control, .form-select {
  border-radius: 12px;
  border-color: #cbd5e1;
  padding: .65rem .85rem;
}
.form-control:focus, .form-select:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .18);
}

.btn { transition: all .2s ease; }
.btn:hover { transform: translateY(-1px); }

@media (max-width: 992px) {
  .showcase-row { grid-template-columns: 1fr; }
}

.tz-app-bg {
  background: #f3f6fb;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.app-sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #17223b 100%);
  color: #e2e8f0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.app-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 16px;
  background: rgba(15, 23, 42, .36);
  padding: .85rem .9rem;
}
.app-brand-logo {
  width: 258px;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(2, 6, 23, .45));
}

.app-brand small {
  display: block;
  color: #bfdbfe;
  font-size: .75rem;
  letter-spacing: .02em;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-top: .25rem;
}

.app-nav-title {
  margin: .4rem 0 .2rem;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #94a3b8;
  font-weight: 700;
}

.app-link {
  text-decoration: none;
  color: #cbd5e1;
  padding: .6rem .8rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s ease;
}

.app-link:hover {
  color: #fff;
  background: rgba(148, 163, 184, .16);
}

.app-link.active {
  color: #fff;
  background: linear-gradient(90deg, #0f766e, #0891b2);
  box-shadow: 0 8px 22px rgba(8, 145, 178, .35);
}

.app-side-footer {
  margin-top: auto;
}

.app-content-wrap {
  min-width: 0;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: .9rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-user {
  font-size: .9rem;
  color: #475569;
  font-weight: 600;
}

.app-content {
  padding: 1.2rem 1.5rem 2rem;
}

.tz-app-bg .app-content .container,
.tz-app-bg .app-content .container-sm,
.tz-app-bg .app-content .container-md,
.tz-app-bg .app-content .container-lg,
.tz-app-bg .app-content .container-xl,
.tz-app-bg .app-content .container-xxl,
.tz-app-bg .app-content .container-fluid {
  max-width: 100% !important;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.designer-shell {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1rem;
}

.designer-sidebar {
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.designer-editor-wrap {
  border: 1px solid #dbe2ec;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.designer-editor-head {
  padding: .75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tz-designer-box {
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: .75rem;
  background: #f8fafc;
}

#gjs {
  border: 0;
  min-height: calc(100vh - 260px);
}

@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: static;
    height: auto;
  }
  .designer-shell {
    grid-template-columns: 1fr;
  }
  .designer-sidebar {
    max-height: none;
  }
}

@media (max-width: 576px) {
  .tz-main-logo { width: 226px; }
  .app-brand-logo { width: 220px; }
  .tz-auth-logo { width: 208px; }
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  min-height: 36px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 999px !important;
}
