:root{
  --bg0:#070b16;
  --bg1:#0b1220;
  --bg2:#0f1b33;

  --page:#f6f8fc;
  --card:#ffffff;

  --ink:#0f172a;
  --muted:#64748b;

  --line:#e8eef8;
  --line2:#eef2f7;

  --brand:#4f46e5;     /* Indigo */
  --brand2:#06b6d4;    /* Cyan */
  --good:#16a34a;
  --bad:#dc2626;

  --shadow: 0 12px 28px rgba(15,23,42,.08);
  --shadow2: 0 8px 20px rgba(2,6,23,.18);

  --radius: 16px;
  --radius2: 12px;
}

/* Page */
.app-bg{
  background:
    radial-gradient(1200px 700px at 25% -15%, rgba(79,70,229,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(6,182,212,.14), transparent 55%),
    var(--page);
  color: var(--ink);
}

/* Topbar */
.app-topbar{
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(79,70,229,.45), transparent 60%),
    radial-gradient(800px 400px at 85% -20%, rgba(6,182,212,.35), transparent 60%),
    linear-gradient(90deg, var(--bg0), var(--bg1) 55%, var(--bg2));
  color:#fff;
  box-shadow: var(--shadow2);
  margin-bottom: 38px;
}

.brand-mark{
  width: 10px;
  height: 30px;
  background: linear-gradient(180deg, var(--brand2), var(--brand));
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}

.brand-title{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 18px;
}
.brand-sub{ font-weight: 700; opacity:.9; }
.brand-meta{ font-size: 12px; opacity: .75; }
.brand-org{ font-weight: 700; font-size: 13px; opacity: .95; }
.brand-date{ font-size: 12px; opacity: .75; }

/* Controls card */
.controls-card{
  margin-top: -18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,23,42,.05);
}
.controls-card .card-body{ padding: 18px; }

.form-label{ margin-bottom: 6px; letter-spacing: .06em; }
.form-control, .form-select{
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: none !important;
}
.form-control:focus, .form-select:focus{
  border-color: rgba(79,70,229,.45);
  box-shadow: 0 0 0 .22rem rgba(79,70,229,.12) !important;
}

/* Buttons */
.btn-primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 18px rgba(79,70,229,.18);
}
.btn-primary:hover{
  filter: brightness(1.03);
}
.btn-outline-light{
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  color: var(--ink);
  background: #fff;
}
.btn-outline-light:hover{
  background: rgba(79,70,229,.06);
  border-color: rgba(79,70,229,.18);
}

/* Nav underline nicer */
.nav-underline .nav-link{
  color: #334155;
  font-weight: 800;
  padding-left: 2px;
  padding-right: 2px;
}
.nav-underline .nav-link.active{
  color: #0b1220;
  border-bottom-color: var(--brand);
}

/* Cards */
.card{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,23,42,.05);
}
.kpi{ border-radius: var(--radius); }
.kpi-title{
  font-size: 11px;
  letter-spacing: .10em;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}
.kpi-value{ font-size: 30px; font-weight: 950; }
.kpi-value-sm{ font-size: 18px; font-weight: 950; }
.kpi-delta{ font-size: 12px; font-weight: 900; }
.kpi-sub{ margin-top: 6px; font-size: 12px; color: var(--muted); }

.section-title{
  font-weight: 950;
  letter-spacing: .2px;
}
.section-sub{ font-size: 12px; color: var(--muted); }

.items-hint{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.hint-pill{
  display:inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(79,70,229,.10);
  color: rgba(79,70,229,1);
  font-weight: 900;
}

/* Charts */
.chart-box{
  position: relative;
  height: 340px;
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(79,70,229,.04), rgba(6,182,212,.03));
  border: 1px dashed rgba(15,23,42,.10);
  padding: 10px;
}
.chart-box-sm{ height: 220px; }
.chart-box canvas{ width: 100% !important; height: 100% !important; }


/* Tabulator - “Pro” look */
.tabulator{
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}
.tabulator .tabulator-header{
  background: linear-gradient(180deg, #f7f9ff, #f3f6ff);
  border-bottom: 1px solid var(--line);
}
.tabulator .tabulator-col,
.tabulator .tabulator-col-title{
  font-weight: 900;
  color: #0b1220;
  font-size: 12px;
  letter-spacing: .02em;
}
.tabulator .tabulator-row{
  border-bottom: 1px solid var(--line2);
}
.tabulator .tabulator-row:hover{
  background: rgba(79,70,229,.045);
}
.tabulator .tabulator-cell{
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Links in table */
.tabulator a{
  color: rgba(79,70,229,1);
  text-decoration: none;
  font-weight: 800;
}
.tabulator a:hover{ text-decoration: underline; }

/* Trend arrows + badges */
.trend-up{ color: var(--good); font-weight: 900; }
.trend-down{ color: var(--bad); font-weight: 900; }
.trend-flat{ color: var(--muted); font-weight: 800; }

.badge-source{
  display:inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  color: rgba(15,23,42,.75);
}
.badge-tiktok{ background: rgba(6,182,212,.10); border-color: rgba(6,182,212,.20); color: #0e7490; }
.badge-ebay{ background: rgba(79,70,229,.10); border-color: rgba(79,70,229,.20); color: #3730a3; }
.badge-geizhals{ background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.22); color: #92400e; }
.badge-google{ background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.20); color: #166534; }

/* Highlight */
.row-highlight{
  outline: 2px solid rgba(79,70,229,.22);
  box-shadow: 0 0 0 6px rgba(79,70,229,.10);
  border-radius: 12px;
}

.trend{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  line-height: 1;
}
.trend-up{
  color: #0f5132;
  background: #d1e7dd;
  border: 1px solid #badbcc;
}
.trend-down{
  color: #842029;
  background: #f8d7da;
  border: 1px solid #f5c2c7;
}