@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600;700&family=Azeret+Mono:wght@500;600&display=swap');

/* =========================================================
   thousandslink — Brand Partnerships Dashboard
   Design tokens
   ========================================================= */
:root {
  --ink: #141B29;
  /* deep navy — sidebar / headings */
  --ink-soft: #1D2739;
  /* sidebar hover surface */
  --porcelain: #EEF1F0;
  /* page background — cool, not cream */
  --card: #FFFFFF;
  --line: #E1E5E3;
  /* hairline borders */
  --slate: #5B6472;
  /* secondary text */
  --slate-2: #8A93A0;
  /* tertiary text */
  --teal: #0F6E5F;
  /* primary brand / actions */
  --teal-deep: #0B554A;
  --teal-tint: #E4F1EE;
  --dark-teal-deep: #E4F1EE;
  --dark-teal-tint: #0B554A;
  --amber: #F2A93B;
  /* signal accent — payouts / CTAs */
  --amber-deep: #C2811F;
  --amber-tint: #FDF1DD;
  --coral: #E85D4C;
  --coral-deep: #b91600;
  /* negative / alerts */
  --coral-tint: #FCE9E6;

  --font-display: "Poppins", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Azeret Mono", "SFMono-Regular", Menlo, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(20, 27, 41, .04), 0 8px 24px -12px rgba(20, 27, 41, .12);
  --shadow-pop: 0 12px 32px -8px rgba(20, 27, 41, .22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--porcelain);
  color: var(--ink);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: var(--font-display);
  letter-spacing: -.01em;
}

.font-mono {
  font-family: var(--font-mono);
}

a {
  text-decoration: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  height: 100vh;
  background: var(--ink);
  color: #C9D2DE;
  display: flex;
  flex-direction: column;
  padding: 26px 12px 20px;
  z-index: 40;
  transition: transform .25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 4px 10px 26px;
  color: #fff;
}

.sidebar-brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--amber), var(--amber-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
}

.sidebar-brand .name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.sidebar-brand .name .dot {
  color: var(--amber);
}

.sidebar-eyebrow {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5C6A82;
  padding: 14px 12px 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #AEB9C9;
  font-size: 12.6px;
  font-weight: 500;
  margin-bottom: 2px;
  cursor: pointer;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-link svg {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: .85;
}

.nav-link:hover {
  background: var(--ink-soft);
  color: #fff;
}

.nav-link.active {
  background: var(--ink-soft);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--amber);
}

.nav-link .chev {
  margin-left: auto;
  width: 14px;
  height: 14px;
  transition: transform .2s;
}

.nav-link[aria-expanded="true"] .chev {
  transform: rotate(90deg);
}

.nav-sub {
  padding-left: 30px;
  margin: 2px 0 8px;
}

.nav-sub a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #8D97A8;
}

.nav-sub a:hover {
  color: #fff;
}

.nav-sub a.active {
  color: #fff;
  font-weight: 600;
}

.nav-sub a.active::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.nav-sub a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #48536A;
  flex: none;
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px 12px;
  border-top: 1px solid #26314A;
}

.sidebar-foot .plan-card {
  background: var(--ink-soft);
  border-radius: 12px;
  padding: 14px;
  font-size: 12.5px;
  color: #9AA5B6;
}

.sidebar-foot .plan-card strong {
  color: #fff;
  display: block;
  font-size: 13.5px;
  margin-bottom: 2px;
}

.sidebar-close {
  display: none;
}

/* =========================================================
   MAIN / TOPBAR
   ========================================================= */
.app-main {
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(238, 241, 240, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-title {
  display: flex;
  flex-direction: column;
  margin-right: auto;
}

.topbar-title .eyebrow {
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-2);
}

.topbar-title h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 9px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  width: 230px;
  color: var(--slate-2);
  font-size: 13.5px;
}

.search-box svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.search-box input {
  border: 0;
  outline: 0;
  background: none;
  font-size: 13.5px;
  width: 100%;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  position: relative;
  flex: none;
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.icon-btn .dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  border: 1.5px solid var(--card);
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 6px 12px 6px 6px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--teal), var(--teal-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  flex: none;
}

.profile-btn .who {
  text-align: left;
  line-height: 1.2;
}

.profile-btn .who .name {
  font-size: 13px;
  font-weight: 600;
}

.profile-btn .who .role {
  font-size: 11px;
  color: var(--slate-2);
}

.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
  padding: 8px;
  min-width: 200px;
}

.dropdown-item {
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
  color: var(--slate-2);
}

.dropdown-item:hover {
  background: var(--porcelain);
}

.dropdown-item.danger {
  color: var(--coral);
}

.dropdown-item.danger svg {
  color: var(--coral);
}

.app-content {
  padding: 26px 24px 60px;
  flex: 1;
}

/* =========================================================
   CARDS
   ========================================================= */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.card-pad {
  padding: 22px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.section-head h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.section-head .sub {
  font-size: 12.5px;
  color: var(--slate-2);
  margin-top: 2px;
}

.link-more {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 4px;
}

.link-more svg {
  width: 13px;
  height: 13px;
}

.stat-card {
  padding: 20px;
}

.stat-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.stat-card .ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card .ico svg {
  width: 17px;
  height: 17px;
}

.stat-card .ico.teal {
  background: var(--teal-tint);
  color: var(--teal-deep);
}

.stat-card .ico.amber {
  background: var(--amber-tint);
  color: var(--amber-deep);
}

.stat-card .ico.coral {
  background: var(--coral-tint);
  color: var(--coral);
}

.stat-card .ico.ink {
  background: #EAEDF3;
  color: var(--ink);
}

.stat-card .value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card .label {
  font-size: 12.5px;
  color: var(--slate-2);
}

.delta {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 20px;
  font-family: var(--font-mono);
}

.delta.up {
  background: var(--teal-tint);
  color: var(--teal-deep);
}

.delta.down {
  background: var(--coral-tint);
  color: var(--coral);
}

.spark-card {
  padding: 18px;
}

.spark-card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.spark-card .label {
  font-size: 12px;
  color: var(--slate-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.spark-card .value {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 600;
  margin: 4px 0 8px;
}

.spark-card canvas {
  max-height: 46px;
}

/* Ticket motif — signature element for deal/payout summaries */
.ticket {
  position: relative;
  background: linear-gradient(155deg, var(--ink) 0%, #1B2438 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  overflow: hidden;
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--porcelain);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.ticket::before {
  left: -13px;
}

.ticket::after {
  right: -13px;
}

.ticket .perf {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 72%;
  border-left: 2px dashed rgba(255, 255, 255, .16);
}

.ticket .stub {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 28%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 14px;
}

.ticket .eyebrow {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #93A0B8;
  margin-bottom: 10px;
}

.ticket .headline {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 4px;
}

.ticket .sub {
  font-size: 12.5px;
  color: #93A0B8;
}

.ticket .stub .num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--amber);
}

.ticket .stub .cap {
  font-size: 10.5px;
  color: #93A0B8;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 2px;
}

/* Recent brand row */
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.brand-row:last-child {
  border-bottom: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

.brand-row .info {
  min-width: 0;
}

.brand-row .info .n {
  font-size: 13.5px;
  font-weight: 600;
}

.brand-row .info .m {
  font-size: 12px;
  color: var(--slate-2);
}

.brand-row .figs {
  margin-left: auto;
  text-align: right;
}

.brand-row .figs .v {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
}

.brand-row .figs .l {
  font-size: 11px;
  color: var(--slate-2);
}

/* Badges / tags */
.badge-soft {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .02em;
}

.badge-soft.teal {
  background: var(--teal-tint);
  color: var(--teal-deep);
  cursor: pointer;
}

.badge-soft.dark-teal {
  background: var(--dark-teal-tint);
  color: var(--dark-teal-deep);
  cursor: pointer;
}

.badge-soft.amber {
  background: var(--amber-tint);
  color: var(--amber-deep);
}

.badge-soft.coral {
  background: var(--coral-tint);
  color: var(--coral);
}

.badge-soft.slate {
  background: #EAEDF3;
  color: var(--slate);
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #232F45;
  color: #fff;
}

.btn-amber {
  background: var(--amber);
  color: var(--ink);
}

.btn-amber:hover {
  background: var(--amber-deep);
  color: #fff;
}

.btn-outline {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--porcelain);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 12.5px;
  border-radius: 8px;
}

/* Tabs (Brands sub-views) */
.tab-pills {
  display: flex;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px;
  width: max-content;
}

.tab-pills .nav-link {
  color: var(--slate);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  margin: 0;
}

.tab-pills .nav-link.active {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--slate-2);
  font-weight: 600;
  padding: 10px 14px 10px;
  border-bottom: 1px solid var(--line);
}

.table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: var(--porcelain);
}

/* Progress bar */
.progress-thin {
  height: 6px;
  border-radius: 20px;
  background: #E7EAE8;
  overflow: hidden;
}

.progress-thin>span {
  display: block;
  height: 100%;
  border-radius: 20px;
  background: var(--teal);
}

/* =========================================================
   AUTH SCREEN
   ========================================================= */
.auth-shell {
  min-height: 100vh;
  display: flex;
}

.auth-visual {
  flex: 1 1 46%;
  position: relative;
  background: linear-gradient(165deg, var(--ink) 0%, #1C2946 62%, var(--teal-deep) 130%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  overflow: hidden;
}

.auth-visual .vbrand {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.auth-visual .vbrand .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--amber), var(--amber-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.auth-visual .vbrand .name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.auth-visual .copy {
  position: relative;
  z-index: 2;
  max-width: 380px;
}

.auth-visual .copy .eyebrow {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.auth-visual .copy h2 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 14px;
}

.auth-visual .copy p {
  color: #B7C1D4;
  font-size: 14px;
  line-height: 1.6;
}

.auth-visual .proof {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 26px;
}

.auth-visual .proof .p-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.auth-visual .proof .p-lab {
  font-size: 11px;
  color: #8FA0BE;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* directional CTA graphic */
.cta-graphic {
  position: absolute;
  right: -40px;
  bottom: 60px;
  width: 340px;
  opacity: .95;
  z-index: 1;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .09) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: .5;
}

.auth-form-side {
  flex: 1 1 54%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--porcelain);
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-switch {
  display: flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 28px;
}

.auth-switch a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate);
}

.auth-switch a.active {
  background: var(--ink);
  color: #fff;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-control {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 11px 13px;
  font-size: 13.5px;
  background: var(--card);
}

.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-tint);
}

.form-control[readonly] {
    background: var(--porcelain);
    color: var(--slate-2);
}

.form-control[readonly]:focus {
    background: var(--porcelain) !important;
    color: var(--slate-2) !important;
}

.form-select {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 11px 36px 11px 13px;
  font-size: 13.5px;
}

.form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-tint);
}

.input-icon {
  position: relative;
}

.input-icon svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--slate-2);
}

.input-icon input {
  padding-left: 37px;
}

/* =========================================================
   SIGNUP STEPPER (static, no JS)
   ========================================================= */
.step-shell {
  min-height: 100vh;
  background: var(--porcelain);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 20px 60px;
}

.step-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
}

.step-brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--amber), var(--amber-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.step-brand .name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.stepper {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 560px;
  margin-bottom: 38px;
}

.stepper .seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.stepper .seg .circ {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--slate-2);
  position: relative;
  z-index: 2;
}

.stepper .seg .lab {
  font-size: 11px;
  margin-top: 8px;
  color: var(--slate-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
}

.stepper .bar {
  position: absolute;
  top: 17px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 1;
}

.stepper .seg:first-child .bar {
  display: none;
}

.stepper .seg.done .circ {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.stepper .seg.done .lab {
  color: var(--teal-deep);
}

.stepper .seg.done .bar {
  background: var(--teal);
}

.stepper .seg.current .circ {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 4px var(--teal-tint);
}

.stepper .seg.current .lab {
  color: var(--ink);
}

.stepper .seg.current .bar {
  background: var(--teal);
}

.step-card {
  width: 100%;
  max-width: 560px;
}

.step-card .card-pad {
  padding: 34px;
}

.step-card .kicker {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-deep);
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.step-card .desc {
  font-size: 13.5px;
  color: var(--slate-2);
  margin-bottom: 26px;
}

.step-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}

.step-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-2);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
}

.check-row .cbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 1px;
}

.check-row .cbox svg {
  width: 12px;
  height: 12px;
}

.check-row .t {
  font-size: 13.5px;
  font-weight: 600;
}

.check-row .d {
  font-size: 12px;
  color: var(--slate-2);
}

/* misc */
.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--slate-2);
  font-size: 12px;
  margin: 20px 0;
}

.divider-or::before,
.divider-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-row .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* =========================================================
   FILTER PANEL (Brands page)
   ========================================================= */
.filter-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.filter-card .fc-head {
  padding: 16px 18px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-card .fc-head h5 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.filter-card .fc-head h5 svg {
  width: 16px;
  height: 16px;
  color: var(--amber);
}

.filter-card .fc-head .fc-reset {
  font-size: 11.5px;
  color: #AEB9C9;
  font-weight: 600;
}

.filter-card .fc-head .fc-reset:hover {
  color: #fff;
}

.filter-card .fc-body {
  padding: 18px;
}

.filter-group {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-group:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group .fg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.filter-group .fg-head .t {
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.filter-group .fg-head .t svg {
  width: 14px;
  height: 14px;
  color: var(--slate-2);
}

.filter-group .fg-clear {
  font-size: 11px;
  color: var(--coral);
  font-weight: 700;
}

.filter-group .fg-clear:hover {
  text-decoration: underline;
}

.filter-group select[multiple] {
  min-height: 168px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 13px;
  padding: 6px;
  background: var(--card);
}

.filter-group select[multiple] option {
  padding: 7px 8px;
  border-radius: 6px;
  margin-bottom: 1px;
}

.filter-group select[multiple] option:checked {
  background: var(--teal-tint);
  color: var(--teal-deep);
}

.filter-hint {
  font-size: 11px;
  color: var(--slate-2);
  margin-top: 7px;
}

.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 2px;
  cursor: pointer;
}

.radio-row input {
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: none;
}

.radio-row .r-t {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.radio-row .r-d {
  font-size: 11.5px;
  color: var(--slate-2);
}

.filter-card .fc-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
}

.filter-card .fc-foot .btn {
  flex: 1;
}

/* =========================================================
   TOOLBAR: count chip + export menu
   ========================================================= */
.count-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.count-chip .n {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--amber);
}

.count-chip svg {
  width: 15px;
  height: 15px;
  color: var(--amber);
}

.export-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.export-btn svg {
  width: 15px;
  height: 15px;
}

.export-menu {
  min-width: 190px;
}

.export-menu .dropdown-item strong {
  display: block;
  font-size: 13px;
}

.export-menu .dropdown-item span.hint {
  display: block;
  font-size: 11px;
  color: var(--slate-2);
  font-weight: 400;
}

.export-menu .dropdown-item svg {
  color: var(--teal-deep);
}

/* =========================================================
   TABLE FOOTER + PAGINATION
   ========================================================= */
.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.table-foot .showing {
  font-size: 12.5px;
  color: var(--slate-2);
}

.table-foot .showing strong {
  color: var(--ink);
  font-weight: 700;
}

.pagination-clean {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination-clean .page-item .page-link {
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
}

.pagination-clean .page-item .page-link svg {
  width: 13px;
  height: 13px;
}

.pagination-clean .page-item .page-link:hover {
  background: var(--porcelain);
}

.pagination-clean .page-item.active .page-link {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pagination-clean .page-item.disabled .page-link {
  color: var(--slate-2);
  background: var(--porcelain);
  cursor: not-allowed;
}

.filter-sticky {
  position: sticky;
  top: 88px;
}

/* =========================================================
   AFFILIATE LINKS TABLE
   ========================================================= */
.url-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.url-cell .url-text {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--slate);
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 9px;
}

.copy-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-2);
  flex: none;
  position: relative;
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

.copy-btn:hover {
  background: var(--porcelain);
  color: var(--teal-deep);
  border-color: var(--teal);
}

.copy-btn .icon-check {
  display: none;
}

.copy-btn.copied {
  background: var(--teal-tint);
  color: var(--teal-deep);
  border-color: var(--teal);
}

.copy-btn.copied .icon-copy {
  display: none;
}

.copy-btn.copied .icon-check {
  display: flex;
}

.copy-btn .tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}

.copy-btn.copied .tip {
  opacity: 1;
}

/* =========================================================
   PERFORMANCE OVERVIEW — clickable metric tabs + linked chart
   ========================================================= */
.perf-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.perf-tab:hover {
  border-color: var(--teal);
}

.perf-tab.active {
  border-color: var(--ink);
  background: var(--ink);
}

.perf-tab.active .perf-tab-copy .l {
  color: #9AA5B6;
}

.perf-tab.active .perf-tab-copy .v {
  color: #fff;
}

.perf-tab-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.perf-tab-icon svg {
  width: 17px;
  height: 17px;
}

.perf-tab-icon.teal {
  background: var(--teal-tint);
  color: var(--teal-deep);
}

.perf-tab-icon.teal-solid {
  background: var(--teal);
  color: #fff;
}

.perf-tab-icon.amber {
  background: var(--amber-tint);
  color: var(--amber-deep);
}

.perf-tab-icon.amber-solid {
  background: var(--amber);
  color: var(--ink);
}

.perf-tab-icon.coral {
  background: var(--coral-tint);
  color: var(--coral);
}

.perf-tab-icon.ink {
  background: #EAEDF3;
  color: var(--ink);
}

.perf-tab-copy {
  min-width: 0;
}

.perf-tab-copy .l {
  font-size: 11px;
  color: var(--slate-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
}

.perf-tab-copy .v {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
}

.perf-tab-copy .v .d {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  font-family: var(--font-body);
}

.perf-tab-copy .v .d.up {
  background: var(--teal-tint);
  color: var(--teal-deep);
}

.perf-tab-copy .v .d.down {
  background: var(--coral-tint);
  color: var(--coral);
}

.perf-tab.active .perf-tab-copy .v .d.up {
  background: rgba(15, 110, 95, .28);
  color: #8FE0CC;
}

.perf-tab.active .perf-tab-copy .v .d.down {
  background: rgba(232, 93, 76, .28);
  color: #FFB3A7;
}

.chart-pane-title {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}

.legend-static {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.legend-static li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--slate);
  font-weight: 600;
}

.legend-static .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

/* =========================================================
   NOTIFICATIONS DROPDOWN
   ========================================================= */
.notif-menu {
  width: 320px;
  padding: 0;
  overflow: hidden;
}

.notif-menu .notif-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-menu .notif-head .badge-soft {
  font-size: 10px;
}

.notif-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.notif-item:hover {
  background: var(--porcelain);
}

.notif-item .dot-ico {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slate-2);
  margin-top: 6px;
  flex: none;
}

.notif-item.unread .dot-ico {
  background: var(--amber);
}

.notif-item .txt {
  min-width: 0;
}

.notif-item .txt .t {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.notif-item .txt .time {
  font-size: 11px;
  color: var(--slate-2);
  margin-top: 3px;
}

.notif-foot {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  text-align: center;
  background: var(--porcelain);
}

.notif-foot a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--teal-deep);
}

.notif-foot a:hover {
  text-decoration: underline;
}

/* =========================================================
   NOTIFICATIONS — main list (accordion) + detail view
   ========================================================= */
.month-heading {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 26px 0 12px;
}

.month-heading:first-child {
  margin-top: 0;
}

.notif-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.notif-panel .np-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
}

.notif-panel .np-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-panel .np-icon svg {
  width: 18px;
  height: 18px;
}

.notif-panel .np-icon.teal {
  background: var(--teal-tint);
  color: var(--teal-deep);
}

.notif-panel .np-icon.amber {
  background: var(--amber-tint);
  color: var(--amber-deep);
}

.notif-panel .np-icon.coral {
  background: var(--coral-tint);
  color: var(--coral);
}

.notif-panel .np-icon.ink {
  background: #EAEDF3;
  color: var(--ink);
}

.notif-panel .np-body {
  min-width: 0;
  flex: 1;
}

.notif-panel .np-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.notif-panel .np-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
}

.notif-panel .np-meta .time {
  font-size: 11.5px;
  color: var(--slate-2);
}

.notif-panel .np-unread {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

.notif-panel .np-read {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--slate-2);
  flex: none;
}

.notif-panel .np-chev {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-2);
  flex: none;
  transition: transform .2s, background .2s;
}

.notif-panel .np-chev svg {
  width: 13px;
  height: 13px;
}

.notif-panel .np-head[aria-expanded="true"] .np-chev {
  transform: rotate(180deg);
  background: var(--porcelain);
}

.np-content {
  padding: 0 18px 18px 68px;
  font-size: 13px;
  color: var(--slate);
  line-height: 1.75;
}

.np-content p {
  margin-bottom: 10px;
}

.np-content p:last-child {
  margin-bottom: 0;
}

.np-content a {
  color: var(--teal);
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 50px 24px;
}

.empty-state .ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--porcelain);
  color: var(--slate-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.empty-state .ico svg {
  width: 24px;
  height: 24px;
}

.empty-state h6 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.empty-state p {
  font-size: 12.5px;
  color: var(--slate-2);
  margin: 0;
}

/* single notification detail view */
.notif-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.notif-detail-head .np-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.notif-detail-head .np-icon svg {
  width: 22px;
  height: 22px;
}

.notif-detail-head h1 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.35;
}

.notif-detail-head .meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notif-detail-head .meta-row .time {
  font-size: 12.5px;
  color: var(--slate-2);
}

.notif-body-text {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.85;
}

.notif-body-text p {
  margin-bottom: 14px;
}

.notif-body-text p:last-child {
  margin-bottom: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 18px;
}

.back-link:hover {
  color: var(--ink);
}

.back-link svg {
  width: 14px;
  height: 14px;
}

.text-teal {
  color: var(--teal-deep)
}

.text-amber {
  color: var(--amber-deep)
}

.text-coral {
  color: var(--coral-deep)
}

.text-primary {
  color: var(--ink) !important;
}

.bg-teal {
  background-color: var(--teal-deep)
}

.bg-amber {
  background-color: var(--amber-deep)
}

.bg-coral {
  background-color: var(--coral-deep)
}

.bg-primary {
  background-color: var(--ink) !important;
}

/* =========================================================
   PROFILE PAGE — settings nav, form sections, method cards
   ========================================================= */
.profile-summary {
  text-align: center;
  padding: 22px;
}

.profile-summary .avatar {
  width: 64px;
  height: 64px;
  font-size: 21px;
  margin: 0 auto 12px;
  overflow: hidden;
  background: none;
}

.profile-summary .avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.profile-summary h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.profile-summary p {
  font-size: 12px;
  color: var(--slate-2);
  margin-bottom: 0px;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.settings-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate);
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
}

.settings-pill svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--slate-2);
}

.settings-pill:hover {
  background: var(--porcelain);
}

.settings-pill.active {
  background: var(--ink);
  color: #fff;
}

.settings-pill.active svg {
  color: var(--amber);
}

.form-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 3px;
}

.form-section-sub {
  font-size: 12.5px;
  color: var(--slate-2);
  margin-bottom: 22px;
}

.form-group-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 26px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-group-label:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.input-icon.text-prefix input {
  padding-left: 28px;
}

.input-icon.text-prefix .prefix {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-2);
  font-weight: 700;
  font-size: 13px;
}

/* payment method radio cards */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.method-card {
  position: relative;
  display: block;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 18px 14px;
  cursor: pointer;
  text-align: center;
}

.method-card input {
  position: absolute;
  top: 12px;
  right: 12px;
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
}

.method-card img {
  width: 80px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

.method-card:hover {
  border-color: var(--teal);
}

.method-card:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-tint);
}

.method-card:has(input:checked) .m-icon {
  background: var(--teal);
  color: #fff;
}

/* website row (name + url only, per spec) */
.site-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-cell .site-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.site-cell .site-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-2);
}

/* =========================================================
   MODAL theming
   ========================================================= */
.modal-content {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}

.modal-header {
  background: var(--ink);
  border-bottom: 0;
  padding: 18px 22px;
}

.modal-header .modal-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.modal-header .btn-close {
  filter: invert(1) brightness(2);
  opacity: .75;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 22px;
}

.modal-body select[multiple] {
  min-height: 110px;
  border-radius: 10px;
}

.modal-footer {
  border-top: 1px solid var(--line);
  padding: 16px 22px;
}

/* =========================================================
   APPLY TO PROGRAM MODAL — advertiser meta row
   ========================================================= */
.apply-modal-name{ font-size:16px; font-weight:600; color:var(--ink); margin-bottom:2px; }
.apply-modal-id{ font-size:12px; color:var(--slate-2); font-family:var(--font-mono); margin-bottom:14px; }
.apply-modal-tags{ display:flex; gap:8px; margin-bottom:20px; flex-wrap:wrap; }
.apply-modal-brief{ font-size:12.5px; font-weight:600; color:var(--ink); margin-bottom:10px; line-height:1.6; }

/* =========================================================
   SELECT2 — restyled to match theme + z-index fix for modals
   ========================================================= */
.select2-container{ font-family:var(--font-body); font-size:13.5px; }
.select2-container--default .select2-selection--multiple{
  border:1px solid var(--line) !important; border-radius:10px !important;
  min-height:44px; padding:4px 6px; background:var(--card);
}
.select2-container--default.select2-container--focus .select2-selection--multiple{
  border-color:var(--teal) !important; box-shadow:0 0 0 3px var(--teal-tint);
}
.select2-container--default .select2-selection--multiple .select2-selection__choice{
  background:var(--teal-tint); border:1px solid var(--teal) !important; color:var(--teal-deep);
  border-radius:7px; padding:2px 8px; font-size:12.5px; font-weight:600; margin-top:6px;
}
.select2-container--default .select2-selection__choice__remove{ color:var(--teal-deep); margin-right:6px; border:0; }
.select2-container--default .select2-selection__choice__remove:hover{ color:var(--coral); background:none; }
.select2-container--default .select2-search--inline .select2-search__field{ font-family:var(--font-body); font-size:13px; }
.select2-container--default .select2-selection--multiple .select2-selection__placeholder{ color:var(--slate-2); }

/* dropdown panel */
.select2-dropdown{
  border:1px solid var(--line) !important; border-radius:10px; overflow:hidden;
  box-shadow:var(--shadow-pop);
}
.select2-search--dropdown{ padding:8px; }
.select2-search--dropdown .select2-search__field{
  border-radius:8px; border:1px solid var(--line); padding:7px 10px; outline:0;
}
.select2-results__option{ font-size:13px; padding:8px 12px; }
.select2-container--default .select2-results__option--highlighted[aria-selected]{
  background:var(--ink) !important; color:#fff;
}
.select2-container--default .select2-results__option[aria-selected="true"]{
  background:var(--teal-tint); color:var(--teal-deep);
}


/* Fix: Select2's dropdown is appended to <body> by default, so its default
   z-index (1051) sits BELOW an open Bootstrap 5 modal (1055) and renders
   hidden behind it. We pair this with `dropdownParent` in the JS init
   (which attaches the dropdown inside the modal instead of body) and
   bump the z-index here as a belt-and-suspenders fix. */
.modal .select2-container--open,
.select2-container--open{ z-index:2000; }
.select2-dropdown{ z-index:2001; }

/* website form loader overlay */
.website-modal .modal-dialog{ position:relative; }
.loader-overlay{
  position:absolute; inset:0; background:rgba(255,255,255,.85); z-index:5;
  display:flex; align-items:center; justify-content:center; border-radius:var(--radius-lg);
}
.loader-overlay.display-hidden{ display:none; }
.atbd-spin-dots{ display:flex; gap:6px; }
.spin-dot{ width:9px; height:9px; border-radius:50%; background:var(--teal); animation:spinDot 1s infinite ease-in-out; }
.spin-dot:nth-child(2){ animation-delay:.15s; }
.spin-dot:nth-child(3){ animation-delay:.3s; }
.spin-dot:nth-child(4){ animation-delay:.45s; }
@keyframes spinDot{ 0%, 80%, 100%{ opacity:.25; transform:scale(.8); } 40%{ opacity:1; transform:scale(1); } }
/* current default payment method — summary shown above the method picker */
.default-method-card{
  display:flex; align-items:center; gap:14px;
  border:1px solid var(--line); border-radius:14px; padding:16px 18px;
  background:var(--porcelain);
}
.default-method-card .dm-icon{
  width:40px; height:40px; border-radius:10px; background:var(--teal); color:#fff; flex:none;
  display:flex; align-items:center; justify-content:center;
}
.default-method-card .dm-icon svg{ width:19px; height:19px; }
.default-method-card .dm-body{ min-width:0; flex:1; }
.default-method-card .dm-label{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--slate-2); margin-bottom:2px; }
.default-method-card .dm-value{ font-size:14px; font-weight:700; color:var(--ink); }
.default-method-card .dm-value .dm-sub{ font-size:12.5px; font-weight:500; color:var(--slate); font-family:var(--font-mono); }

/* method-specific form panel that swaps in based on the selected radio */
.method-form{ padding-top:2px; }

/* =========================================================
   ALERT — Bootstrap alert-primary, restyled to match theme
   ========================================================= */
.error{
  color: var(--coral);
}

.alert-primary{
  background: var(--teal-tint);
  color: var(--teal-deep);
  border-radius: var(--radius);
  padding: 14px 44px 14px 18px;
  font-size: 13px;
  font-family: var(--font-body);
  box-shadow: var(--shadow-card);
  position: relative;
}

.alert-danger{
  background: var(--coral-tint);
  color: var(--coral-deep);
  border-radius: var(--radius);
  padding: 14px 44px 14px 18px;
  font-size: 13px;
  font-family: var(--font-body);
  box-shadow: var(--shadow-card);
  position: relative;
}

.alert-warning{
  background: var(--amber-tint);
  color: var(--amber-deep);
  border-radius: var(--radius);
  padding: 14px 44px 14px 18px;
  font-size: 13px;
  font-family: var(--font-body);
  box-shadow: var(--shadow-card);
  position: relative;
}

.alert-content{
  line-height: 1.6;
}

/* dismiss (×) button */
.alert-dismissible{
  padding-right: 44px;
}
.alert-dismissible .btn-close{
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: .6;
}
.alert-dismissible .btn-close:hover{
  opacity: 1;
}
.alert-dismissible .btn-close::before{
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B554A' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* fade/show transition (mirrors Bootstrap's default behavior) */
.alert.fade{ transition: opacity .15s linear; }
.alert.fade:not(.show){ opacity: 0; }/* =========================================================
   INDEX PAGE — welcome header + date filter + sub-nav
   ========================================================= */
.welcome-head{
  display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap;
  gap:18px; margin-bottom:22px;
}
.welcome-head h2{ font-size:24px; font-weight:600; margin-bottom:4px; }
.welcome-head .sub{ font-size:13px; color:var(--slate); margin:0; }

.date-filter-row{ display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; }
.date-filter-row .field{ display:flex; flex-direction:column; gap:6px; }
.date-filter-row .field label{
  font-size:10.5px; font-weight:700; color:var(--slate-2); text-transform:uppercase; letter-spacing:.04em; margin:0;
}
.date-filter-row input[type="date"]{
  border-radius:10px; border:1px solid var(--line); padding:9px 12px; font-size:13px;
  background:var(--card); color:var(--ink); font-family:var(--font-body); min-width:150px;
}
.date-filter-row input[type="date"]:focus{ border-color:var(--teal); box-shadow:0 0 0 3px var(--teal-tint); outline:0; }
.date-filter-row .btn{ padding:10px 20px; }

.dash-subnav{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  gap:14px; padding-bottom:2px; border-bottom:1px solid var(--line); margin-bottom:24px;
}
.dash-subnav .tabs-left{ display:flex; gap:22px; }
.dash-subnav .tabs-left a{
  font-size:13.5px; font-weight:600; color:var(--slate-2); padding:11px 2px; position:relative;
}
.dash-subnav .tabs-left a.active{ color:var(--ink); }
.dash-subnav .tabs-left a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px;
  background:var(--teal); border-radius:2px 2px 0 0;
}
.dash-subnav .actions-right{ display:flex; align-items:center; gap:8px; padding-bottom:10px; }
.dash-subnav .actions-right a{
  display:flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; color:var(--slate);
  padding:8px 13px; border-radius:9px; border:1px solid var(--line); background:var(--card);
}
.dash-subnav .actions-right a:hover{ background:var(--porcelain); color:var(--ink); border-color:var(--teal); }
.dash-subnav .actions-right a svg{ width:14px; height:14px; }
.dash-subnav .actions-right a.icon-only{ padding:8px; }

/* =========================================================
   BRANDS STATUS SUMMARY — donut chart + progress legend
   ========================================================= */
.status-detail-item{ margin-bottom:16px; }
.status-detail-item:last-child{ margin-bottom:0; }
.status-detail-item .sdi-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:7px; }
.status-detail-item .sdi-row .lbl{ display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; color:var(--ink); }
.status-detail-item .sdi-row .lbl .swatch{ width:8px; height:8px; border-radius:50%; flex:none; }
.status-detail-item .sdi-row .val{ font-family:var(--font-mono); font-size:12.5px; font-weight:600; color:var(--ink); }
.status-detail-item .sdi-row .val .pct{ color:var(--slate-2); font-weight:500; margin-left:3px; }

.progress-thin.c-teal > span{ background:var(--teal); }
.progress-thin.c-amber > span{ background:var(--amber); }
.progress-thin.c-ink > span{ background:var(--ink); }
.progress-thin.c-coral > span{ background:var(--coral); }
.progress-thin.c-slate > span{ background:var(--slate-2); }

.donut-wrap{ position:relative; display:flex; align-items:center; justify-content:center; }
.donut-center{
  position:absolute; text-align:center; pointer-events:none;
}
.donut-center .n{ font-family:var(--font-mono); font-size:22px; font-weight:700; color:var(--ink); line-height:1; }
.donut-center .l{ font-size:10.5px; color:var(--slate-2); text-transform:uppercase; letter-spacing:.04em; margin-top:3px; }

/* =========================================================
   TRAFFIC & CONVERSION SUMMARY — metric tiles with mini bars
   ========================================================= */
.metric-tile{ display:flex; align-items:center; gap:12px; }
.metric-tile .mt-chart{
  width:44px; height:36px; border-radius:9px; flex:none;
  display:flex; align-items:flex-end; justify-content:center; gap:2.5px; padding:6px 5px;
}
.metric-tile .mt-chart.teal{ background:var(--teal); }
.metric-tile .mt-chart.ink{ background:var(--ink); }
.metric-tile .mt-chart.amber{ background:var(--amber); }
.metric-tile .mt-chart span{ width:3px; border-radius:2px; background:rgba(255,255,255,.85); display:block; }
.metric-tile .mt-body label{ display:block; font-size:13.8px; color:var(--slate-2); font-weight:600; margin-bottom:3px; }
.metric-tile .mt-body h4{ font-family:var(--font-mono); font-size:24px; font-weight:700; color:var(--ink); margin:0; }


/* =========================================================
   EMAIL VERIFICATION PAGE
   ========================================================= */
.verify-shell{ min-height:100vh; background:var(--porcelain); display:flex; flex-direction:column; }
.verify-topbar{ display:flex; justify-content:flex-end; padding:24px 32px 0; }
.verify-topbar form{ margin:0; }

.verify-main{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:30px 20px 70px; text-align:center;
}
.verify-card{ width:100%; max-width:480px; }
.verify-icon{
  width:60px; height:60px; border-radius:16px; background:var(--teal-tint); color:var(--teal-deep);
  display:flex; align-items:center; justify-content:center; margin:0 auto 22px;
}
.verify-icon svg{ width:28px; height:28px; }
.verify-main h1{ font-size:25px; font-weight:600; margin-bottom:12px; }
.verify-main .subtitle{ font-size:13.5px; color:var(--slate); line-height:1.75; margin-bottom:22px; }
.verify-main .alert{ text-align:left; margin-bottom:22px; }

/* =========================================================
   LANDING PAGE — choice cards (create account / sign in)
   ========================================================= */
.choice-grid{ display:flex; flex-direction:column; gap:14px; }
.choice-card{
  border:1px solid var(--line); border-radius:16px; padding:24px;
  display:flex; flex-direction:column; align-items:flex-start; gap:10px;
  transition:border-color .15s, box-shadow .15s, transform .15s; background:var(--card);
}
.choice-card:hover{ border-color:var(--teal); box-shadow:var(--shadow-card); transform:translateY(-1px); }
.choice-card .cc-icon{
  width:44px; height:44px; border-radius:12px; flex:none;
  display:flex; align-items:center; justify-content:center;
}
.choice-card .cc-icon svg{ width:20px; height:20px; }
.choice-card .cc-icon.teal{ background:var(--teal-tint); color:var(--teal-deep); }
.choice-card .cc-icon.amber{ background:var(--amber-tint); color:var(--amber-deep); }
.choice-card h3{ font-size:16px; font-weight:600; margin:0; color:var(--ink); }
.choice-card p{ font-size:12.5px; color:var(--slate); margin:0; line-height:1.65; }
.choice-card .btn{ margin-top:8px; align-self:stretch; text-align:center; }

/* Responsive */
@media (max-width: 1080px) {
  .auth-visual {
    display: none;
  }

  .auth-form-side {
    flex: 1 1 100%;
  }
}

@media (max-width: 991px) {
  .app-sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-pop);
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .app-main {
    margin-left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .search-box {
    display: none;
  }
}

@media (max-width: 560px) {
  .app-content {
    padding: 18px 16px 40px;
  }

  .app-topbar {
    padding: 14px 16px;
  }

  .ticket .stub {
    display: none;
  }

  .ticket .perf {
    display: none;
  }
}

/* ==== Notification / Toast Container ==== */
.atbd-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 350px;
    max-width: 90vw;
}

/* ==== Base Notification Box ==== */
.atbd-notification-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    padding: 14px 16px;
    margin-bottom: 12px;
    border-left: 4px solid #ccc;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Stack offset agar toastCount use ho raha ho (fallback, JS se bhi control ho sakta hai) */
.atbd-notification-box[class*="notification-"] {
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==== Content Layout ==== */
.atbd-notification-box__content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.atbd-notification-box__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.atbd-notification-box__icon svg,
.atbd-notification-box__icon [data-feather] {
    width: 18px;
    height: 18px;
}

.atbd-notification-box__text h6 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.atbd-notification-box__text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

/* ==== Close Button ==== */
.atbd-notification-box__close {
    margin-left: 10px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.atbd-notification-box__close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #111827;
}

.atbd-notification-box__close [data-feather] {
    width: 14px;
    height: 14px;
}

.notification-wrapper{
  position: fixed;
  top: 30px;
  right: 20px;
}

/* ==== Type Variants ==== */
.notification-success {
    border-left-color: #22c55e;
}
.notification-success .atbd-notification-box__icon {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.notification-danger {
    border-left-color: #ef4444;
}
.notification-danger .atbd-notification-box__icon {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.notification-warning {
    border-left-color: #f59e0b;
}
.notification-warning .atbd-notification-box__icon {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.notification-info {
    border-left-color: #3b82f6;
}
.notification-info .atbd-notification-box__icon {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}