/* ============================================================
   InvestPro Platform — Frontend Stylesheet
   Design: Dark finance aesthetic with gold accents
   ============================================================ */

:root {
  --ip-primary:    #0f172a;
  --ip-accent:     #10b981;
  --ip-gold:       #c9a84c;
  --ip-gold-light: #e8c97a;
  --ip-surface:    #ffffff;
  --ip-surface-2:  #f8fafc;
  --ip-border:     #e2e8f0;
  --ip-text:       #0f172a;
  --ip-text-2:     #475569;
  --ip-text-3:     #94a3b8;
  --ip-green:      #15803d;
  --ip-green-bg:   #dcfce7;
  --ip-amber:      #b45309;
  --ip-amber-bg:   #fef3c7;
  --ip-red:        #b91c1c;
  --ip-red-bg:     #fee2e2;
  --ip-blue:       #1d4ed8;
  --ip-blue-bg:    #eff6ff;
  --ip-radius:     18px;
  --ip-radius-sm:  10px;
  --ip-shadow:     0 10px 40px rgba(15,23,42,0.08);
  --ip-font-display: 'Playfair Display', Georgia, serif;
  --ip-font-body:    'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.ip-platform {
  font-family: var(--ip-font-body);
  color: var(--ip-text);
  background: #f8fafc;
  line-height: 1.6;
}

/* ── Containers ─────────────────────────────────────────── */
.ip-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.ip-container--narrow { max-width: 860px; }

/* ── Typography ─────────────────────────────────────────── */
.ip-page-title {
  font-family: var(--ip-font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--ip-text);
  line-height: 1.15;
  margin-bottom: 12px;
}
.ip-page-sub {
  font-size: 17px;
  color: var(--ip-text-2);
  line-height: 1.7;
  max-width: 600px;
}

/* ── Badges ─────────────────────────────────────────────── */
.ip-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ip-badge--green  { background: var(--ip-green-bg); color: var(--ip-green); }
.ip-badge--amber  { background: var(--ip-amber-bg); color: var(--ip-amber); }
.ip-badge--red    { background: var(--ip-red-bg);   color: var(--ip-red); }
.ip-badge--blue   { background: var(--ip-blue-bg);  color: var(--ip-blue); }
.ip-badge--gray   { background: #f1f5f9; color: #475569; }

/* ── Buttons ─────────────────────────────────────────────── */
.ip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--ip-radius-sm);
  font-family: var(--ip-font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.ip-btn--primary {
  background: var(--ip-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(15,23,42,0.2);
}
.ip-btn--primary:hover { background: #1e293b; transform: translateY(-1px); color: #fff; }
.ip-btn--secondary { background: var(--ip-surface-2); color: var(--ip-text); border: 1px solid var(--ip-border); }
.ip-btn--secondary:hover { background: var(--ip-border); }
.ip-btn--outline { background: transparent; color: var(--ip-primary); border: 1.5px solid var(--ip-primary); }
.ip-btn--outline:hover { background: var(--ip-primary); color: #fff; }
.ip-btn--ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.ip-btn--ghost:hover { background: rgba(255,255,255,0.22); color: #fff; }
.ip-btn--sm { padding: 7px 14px; font-size: 13px; }
.ip-btn--lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }
.ip-btn--full { width: 100%; }
.ip-btn--disabled { opacity: 0.45; cursor: not-allowed; background: #94a3b8; color: #fff; pointer-events: none; }

/* ── Notices ─────────────────────────────────────────────── */
.ip-notice {
  padding: 14px 18px;
  border-radius: var(--ip-radius-sm);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.ip-notice--success { background: var(--ip-green-bg); color: var(--ip-green); border-color: #86efac; }
.ip-notice--error   { background: var(--ip-red-bg);   color: var(--ip-red);   border-color: #fecaca; }
.ip-notice--warning { background: var(--ip-amber-bg); color: var(--ip-amber); border-color: #fde68a; }
.ip-notice--info    { background: var(--ip-blue-bg);  color: var(--ip-blue);  border-color: #bfdbfe; }
.ip-notice a { color: inherit; font-weight: 700; }

/* ── Progress Bar ───────────────────────────────────────── */
.ip-pb-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.ip-pb-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ip-accent), #059669);
  transition: width 0.6s ease;
}
.ip-pb-track--lg { height: 12px; }

/* ── Forms ───────────────────────────────────────────────── */
.ip-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ip-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ip-form-row--full { grid-column: 1 / -1; }
.ip-form-row label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.ip-form-row input,
.ip-form-row select,
.ip-form-row textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--ip-border);
  border-radius: var(--ip-radius-sm);
  font-family: var(--ip-font-body);
  font-size: 14px;
  color: var(--ip-text);
  background: #fff;
  transition: border-color 0.2s;
  width: 100%;
}
.ip-form-row input:focus,
.ip-form-row select:focus,
.ip-form-row textarea:focus {
  outline: none;
  border-color: var(--ip-accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
.ip-form-row input[type="file"] {
  padding: 14px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  cursor: pointer;
}
.ip-form-row textarea { resize: vertical; min-height: 100px; }
.ip-form-section { background: #fff; border: 1px solid var(--ip-border); border-radius: var(--ip-radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--ip-shadow); }
.ip-form-section h3 { font-family: var(--ip-font-display); font-size: 18px; margin-bottom: 18px; color: var(--ip-text); }
.ip-form-submit-wrap { text-align: center; padding: 20px 0; }
.ip-submit-note { margin-top: 12px; font-size: 13px; color: var(--ip-text-3); }

/* ── Table ───────────────────────────────────────────────── */
.ip-table-wrap { overflow-x: auto; }
.ip-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ip-table th { background: var(--ip-surface-2); padding: 12px 14px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ip-text-2); border-bottom: 2px solid var(--ip-border); }
.ip-table td { padding: 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.ip-table tr:last-child td { border-bottom: none; }
.ip-table tr:hover td { background: #f8fafc; }
.ip-amt-credit { color: var(--ip-green); font-weight: 700; }
.ip-amt-debit  { color: var(--ip-red);   font-weight: 700; }

/* ── Transaction type badges ────────────────────────────── */
.ip-txn-type-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.ip-txn-type--deposit    { background: #dcfce7; color: #166534; }
.ip-txn-type--payback    { background: #eff6ff; color: #1d4ed8; }
.ip-txn-type--withdrawal { background: #fef3c7; color: #92400e; }
.ip-txn-type--fee        { background: #f1f5f9; color: #475569; }
.ip-txn-type--debit      { background: #fef2f2; color: #991b1b; }
.ip-txn-type--credit     { background: #f0fdf4; color: #15803d; }
.ip-txn-type--refund     { background: #f3e8ff; color: #7e22ce; }

/* ───────────────────────────────────────────────────────────
   NAVIGATION
   ─────────────────────────────────────────────────────────── */
.ip-nav {
  position: relative;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(11,17,32,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
}
.ip-nav--sticky { position: sticky; top: 0; }
.ip-nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ip-gold), var(--ip-gold-light), var(--ip-gold), transparent);
  opacity: 0.7;
}
.ip-nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.ip-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}
.ip-nav-logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--ip-gold), var(--ip-gold-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ip-font-display);
  font-size: 14px;
  font-weight: 700;
  color: #0b1120;
  flex-shrink: 0;
}
.ip-nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.ip-nav-brand-name { font-family: var(--ip-font-display); font-size: 17px; font-weight: 700; color: #fff; }
.ip-nav-brand-tag  { font-size: 10px; font-weight: 500; color: var(--ip-gold); text-transform: uppercase; letter-spacing: 0.1em; }
.ip-nav-logo-img { max-height: 40px; width: auto; }
.ip-nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.ip-nav-links li a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: all 0.2s;
}
.ip-nav-links li a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.ip-nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ip-nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.ip-nav-btn--ghost { color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.15); background: transparent; }
.ip-nav-btn--ghost:hover { color: #fff; background: rgba(255,255,255,0.08); }
.ip-nav-btn--primary { background: linear-gradient(135deg, var(--ip-gold), var(--ip-gold-light)); color: #0b1120; font-weight: 700; }
.ip-nav-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,0.35); }
.ip-nav-burger {
  display: none;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.ip-nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
/* Drawer */
.ip-nav-drawer { position: fixed; inset: 0; z-index: 999; pointer-events: none; }
.ip-drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); opacity: 0; transition: opacity 0.3s; }
.ip-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(340px, 92vw);
  background: #0f172a;
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.ip-nav-drawer.is-open { pointer-events: all; }
.ip-nav-drawer.is-open .ip-drawer-backdrop { opacity: 1; }
.ip-nav-drawer.is-open .ip-drawer-panel { transform: translateX(0); }
.ip-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ip-drawer-brand { font-family: var(--ip-font-display); font-size: 18px; font-weight: 700; color: #fff; }
.ip-drawer-close { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 20px; cursor: pointer; padding: 4px; }
.ip-drawer-close:hover { color: #fff; }
.ip-drawer-body { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.ip-drawer-link { display: block; padding: 13px 16px; border-radius: 10px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.7); text-decoration: none; transition: all 0.15s; }
.ip-drawer-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.ip-drawer-cta { padding: 16px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid rgba(255,255,255,0.08); }

/* ───────────────────────────────────────────────────────────
   HOMEPAGE
   ─────────────────────────────────────────────────────────── */
.ip-homepage { overflow-x: hidden; }

/* Hero */
.ip-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0b1120 0%, #0f2340 50%, #0b1120 100%);
  background-size: cover;
  background-position: center;
  padding: 100px 0 80px;
}
.ip-hero .ip-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ip-hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.12);
  color: var(--ip-gold-light);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.ip-hero-title {
  font-family: var(--ip-font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}
.ip-hero-sub { font-size: 17px; color: rgba(255,255,255,0.7); line-height: 1.75; margin-bottom: 32px; max-width: 520px; }
.ip-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.ip-hero-trust { display: flex; flex-wrap: wrap; gap: 10px; }
.ip-trust-pill { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; }

/* Dashboard mockup */
.ip-hero-visual { display: flex; align-items: center; justify-content: center; }
.ip-mockup-card {
  width: 100%;
  max-width: 420px;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: ipFloat 6s ease-in-out infinite;
}
@keyframes ipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.ip-mockup-header { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: #0f172a; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ip-mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.ip-mockup-dot--red    { background: #ff5f57; }
.ip-mockup-dot--yellow { background: #febc2e; }
.ip-mockup-dot--green  { background: #28c840; }
.ip-mockup-title { font-size: 12px; color: rgba(255,255,255,0.4); margin-left: 8px; }
.ip-mockup-body { padding: 20px 18px; }
.ip-mockup-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.ip-mockup-stat { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 12px 14px; }
.ip-mockup-stat-val { font-family: var(--ip-font-display); font-size: 20px; font-weight: 700; }
.ip-mockup-stat-lab { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.ip-color-green  { color: #34d399; }
.ip-color-accent { color: var(--ip-gold-light); }
.ip-mockup-bar-wrap { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.ip-mockup-bar-label { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.ip-mockup-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.ip-mockup-bar--full .ip-mockup-fill { background: linear-gradient(90deg, var(--ip-gold), var(--ip-gold-light)); }
.ip-mockup-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #10b981, #059669); }
.ip-mockup-badge { display: inline-block; background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; }

/* Stats bar */
.ip-stats-bar { background: var(--ip-primary); padding: 40px 0; }
.ip-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.06); border-radius: 16px; overflow: hidden; }
.ip-stats-item { padding: 24px 20px; text-align: center; background: rgba(255,255,255,0.03); }
.ip-stats-icon  { font-size: 28px; margin-bottom: 10px; }
.ip-stats-number { font-family: var(--ip-font-display); font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.ip-stats-label  { font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 500; }

/* Section shared */
.ip-section { padding: 80px 0; }
.ip-section--alt { background: #fff; }
.ip-section--dark { background: var(--ip-primary); }
.ip-section-head { text-align: center; margin-bottom: 48px; }
.ip-section-head--light { }
.ip-section-tag {
  display: inline-block;
  background: rgba(16,185,129,0.1);
  color: var(--ip-accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.ip-section-tag--light { background: rgba(201,168,76,0.15); color: var(--ip-gold-light); }
.ip-section-head h2 {
  font-family: var(--ip-font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--ip-text);
  line-height: 1.2;
}
.ip-section-cta { text-align: center; margin-top: 40px; }

/* How it works */
.ip-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ip-step-card {
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--ip-shadow);
  position: relative;
  transition: transform 0.25s;
}
.ip-step-card:hover { transform: translateY(-4px); }
.ip-step-num {
  position: absolute;
  top: -14px; left: 22px;
  width: 28px; height: 28px;
  background: var(--ip-accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.ip-step-icon  { font-size: 36px; margin-bottom: 14px; display: block; }
.ip-step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--ip-text); }
.ip-step-card p  { font-size: 14px; color: var(--ip-text-2); line-height: 1.6; }

/* Business listings */
.ip-listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ip-listing-card {
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  overflow: hidden;
  box-shadow: var(--ip-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.ip-listing-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(15,23,42,0.12); }
.ip-listing-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.ip-listing-img--placeholder { background: linear-gradient(135deg, #1e293b, #0f2340); display: flex; align-items: center; justify-content: center; }
.ip-listing-placeholder-icon { font-size: 48px; opacity: 0.4; }
.ip-fully-funded-badge, .ip-full-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--ip-primary);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.ip-listing-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.ip-listing-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ip-listing-name { font-family: var(--ip-font-display); font-size: 20px; font-weight: 700; color: var(--ip-text); }
.ip-listing-desc { font-size: 13px; color: var(--ip-text-2); line-height: 1.6; flex: 1; }
.ip-listing-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ip-ln-val { font-family: var(--ip-font-display); font-size: 14px; font-weight: 700; color: var(--ip-text); }
.ip-ln-lab { font-size: 11px; color: var(--ip-text-3); }
.ip-progress-wrap { }
.ip-progress-label, .ip-progress-info { font-size: 12px; color: var(--ip-text-3); margin-top: 5px; }
.ip-progress-info { display: flex; justify-content: space-between; }

/* Features */
.ip-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ip-feature-card {
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  padding: 26px;
  transition: transform 0.2s;
}
.ip-feature-card:hover { transform: translateY(-3px); }
.ip-feature-icon { font-size: 32px; margin-bottom: 14px; display: block; }
.ip-feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.ip-feature-card p  { font-size: 14px; color: var(--ip-text-2); line-height: 1.6; }

/* Testimonials */
.ip-testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ip-testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--ip-radius);
  padding: 26px;
}
.ip-t-stars { color: var(--ip-gold-light); font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.ip-t-text  { font-size: 15px; color: rgba(255,255,255,0.8); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.ip-t-name  { font-size: 13px; font-weight: 700; color: var(--ip-gold-light); }

/* FAQ */
.ip-faq-list { display: flex; flex-direction: column; gap: 12px; }
.ip-faq-item {
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
.ip-faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ip-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ip-faq-item summary::-webkit-details-marker { display: none; }
.ip-faq-item summary::after { content: '+'; font-size: 20px; color: var(--ip-accent); flex-shrink: 0; transition: transform 0.2s; }
.ip-faq-item[open] summary::after { transform: rotate(45deg); }
.ip-faq-answer { padding: 0 22px 18px; color: var(--ip-text-2); line-height: 1.7; font-size: 14px; }

/* CTA */
.ip-cta-section { padding: 80px 0; background: linear-gradient(135deg, #0b1120, #0f2340); }
.ip-cta-inner { text-align: center; }
.ip-cta-inner h2 { font-family: var(--ip-font-display); font-size: clamp(26px, 3.5vw, 40px); font-weight: 700; color: #fff; margin-bottom: 14px; }
.ip-cta-inner p { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.ip-cta-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Footer */
.ip-footer { background: #06090f; padding: 60px 0 24px; color: rgba(255,255,255,0.6); }
.ip-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: 40px; margin-bottom: 40px; }
.ip-footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ip-footer-logo-mark { width: 34px; height: 34px; background: linear-gradient(135deg, var(--ip-gold), var(--ip-gold-light)); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--ip-font-display); font-size: 13px; font-weight: 700; color: #0b1120; }
.ip-footer-logo span { font-family: var(--ip-font-display); font-size: 18px; font-weight: 700; color: #fff; }
.ip-footer-about { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.5); max-width: 280px; }
.ip-footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.ip-footer-link { display: block; font-size: 14px; color: rgba(255,255,255,0.5); text-decoration: none; margin-bottom: 8px; transition: color 0.2s; }
.ip-footer-link:hover { color: #fff; }
.ip-footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.3); }

/* ───────────────────────────────────────────────────────────
   DASHBOARD
   ─────────────────────────────────────────────────────────── */
.ip-dashboard-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 32px 24px 60px;
  box-sizing: border-box;
}
.ip-dashboard {
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.ip-dash-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  background: linear-gradient(135deg, var(--ip-primary), #1e3a5f);
  border-radius: var(--ip-radius);
  padding: 24px 28px;
  margin-bottom: 22px;
  color: #fff;
}
.ip-dash-greeting { display: flex; align-items: center; gap: 14px; }
.ip-dash-avatar { width: 50px; height: 50px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); object-fit: cover; }
.ip-dash-welcome { font-size: 12px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.07em; }
.ip-dash-name { font-family: var(--ip-font-display); font-size: 22px; font-weight: 700; color: #fff; }
.ip-level-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--level-color, #fff);
}
.ip-level-icon { font-size: 16px; }

/* Dashboard stats */
.ip-dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.ip-stat-card {
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  padding: 20px;
  box-shadow: var(--ip-shadow);
}
.ip-stat-card--earn { border-top: 3px solid var(--ip-accent); }
.ip-stat-val { font-family: var(--ip-font-display); font-size: clamp(16px,2vw,22px); font-weight: 700; color: var(--ip-text); margin-bottom: 4px; }
.ip-stat-lab { font-size: 12px; color: var(--ip-text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* KYC banner */
.ip-kyc-banner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 16px 20px;
  border-radius: var(--ip-radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
}
.ip-kyc-banner--not_submitted { background: var(--ip-blue-bg); color: var(--ip-blue); border: 1px solid #bfdbfe; }
.ip-kyc-banner--pending  { background: var(--ip-amber-bg); color: var(--ip-amber); border: 1px solid #fde68a; }
.ip-kyc-banner--rejected { background: var(--ip-red-bg); color: var(--ip-red); border: 1px solid #fecaca; }

/* Tabs */
.ip-dashboard-nav { position: relative; margin-bottom: 24px; }
.ip-tab-mobile-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius-sm);
  box-shadow: var(--ip-shadow);
  color: var(--ip-text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.ip-tab-mobile-icon { font-size: 14px; transition: transform 0.2s ease; }
.ip-tab-mobile-toggle[aria-expanded="true"] .ip-tab-mobile-icon { transform: rotate(180deg); }
.ip-tabs { display: flex; flex-wrap: wrap; gap: 4px; background: #fff; padding: 6px; border-radius: var(--ip-radius-sm); border: 1px solid var(--ip-border); }
.ip-tab-btn {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ip-text-2);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.ip-tab-btn.active, .ip-tab-btn:hover { background: var(--ip-primary); color: #fff; }
.ip-tab-panel { display: none; }
.ip-tab-panel.active { display: block; }
.ip-tab-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ip-tab-panel-header h3 { font-family: var(--ip-font-display); font-size: 22px; margin: 0; }

/* Panel cards */
.ip-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ip-panel-card { background: #fff; border: 1px solid var(--ip-border); border-radius: var(--ip-radius); padding: 22px; box-shadow: var(--ip-shadow); }
.ip-panel-card h3 { font-family: var(--ip-font-display); font-size: 18px; margin-bottom: 16px; }

/* Transactions */
.ip-txn-list { display: flex; flex-direction: column; gap: 4px; }
.ip-txn-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.ip-txn-row:last-child { border-bottom: none; }
.ip-txn-icon { font-size: 20px; width: 32px; text-align: center; flex-shrink: 0; }
.ip-txn-info { flex: 1; min-width: 0; }
.ip-txn-label { font-size: 13px; font-weight: 500; color: var(--ip-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-txn-date  { font-size: 11px; color: var(--ip-text-3); }
.ip-txn-amount { font-size: 13px; font-weight: 700; flex-shrink: 0; }
.ip-txn-credit { color: var(--ip-green); }
.ip-txn-debit  { color: var(--ip-red); }

/* Investment list */
.ip-inv-list { display: flex; flex-direction: column; gap: 12px; }
.ip-inv-row { padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.ip-inv-row:last-child { border-bottom: none; }
.ip-inv-name { font-size: 14px; font-weight: 600; color: var(--ip-text); margin-bottom: 4px; }
.ip-inv-meta { font-size: 12px; color: var(--ip-text-3); margin-bottom: 8px; }
.ip-inv-payback { display: flex; flex-direction: column; gap: 4px; }
.ip-inv-payback span { font-size: 11px; color: var(--ip-text-3); }

/* Investments grid */
.ip-investments-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ip-investment-card { background: #fff; border: 1px solid var(--ip-border); border-radius: var(--ip-radius); overflow: hidden; box-shadow: var(--ip-shadow); }
.ip-inv-card-img { height: 140px; background-size: cover; background-position: center; }
.ip-inv-card-body { padding: 18px; }
.ip-inv-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ip-inv-card-head h4 { font-family: var(--ip-font-display); font-size: 17px; margin: 0; color: var(--ip-text); }
.ip-inv-card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--ip-text-3); margin-bottom: 14px; }
.ip-payback-section { }
.ip-payback-header { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.ip-payback-calc { font-size: 12px; color: var(--ip-text-3); margin-top: 5px; }
.ip-history-details { margin-top: 14px; }
.ip-history-details summary { font-size: 13px; color: var(--ip-blue); cursor: pointer; }
.ip-history-list { margin-top: 8px; padding: 10px; background: #f8fafc; border-radius: 8px; }
.ip-history-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ip-text-2); padding: 4px 0; }
.ip-history-amount { color: var(--ip-green); font-weight: 600; }

/* Business cards in dashboard */
.ip-businesses-list { display: flex; flex-direction: column; gap: 20px; }
.ip-biz-card { background: #fff; border: 1px solid var(--ip-border); border-radius: var(--ip-radius); padding: 22px; box-shadow: var(--ip-shadow); }
.ip-biz-card-head { margin-bottom: 14px; }
.ip-biz-card-head h4 { font-family: var(--ip-font-display); font-size: 20px; margin: 0 0 8px; }
.ip-rejection-note { font-size: 13px; color: var(--ip-red); background: var(--ip-red-bg); padding: 8px 12px; border-radius: 8px; margin-top: 8px; }
.ip-biz-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.ip-biz-stat { text-align: center; background: #f8fafc; border: 1px solid var(--ip-border); border-radius: 10px; padding: 12px; }
.ip-biz-stat-val { font-family: var(--ip-font-display); font-size: 16px; font-weight: 700; color: var(--ip-text); margin-bottom: 4px; }
.ip-biz-stat-lab { font-size: 11px; color: var(--ip-text-3); }

/* Distribute form */
.ip-distribute-wrap summary { display: inline-flex; }
.ip-distribute-wrap summary { list-style: none; }
.ip-distribute-wrap summary::-webkit-details-marker { display: none; }
.ip-distribute-form-wrap { margin-top: 14px; padding: 16px; background: #f8fafc; border-radius: 10px; border: 1px solid var(--ip-border); }
.ip-balance-note { font-size: 13px; color: var(--ip-text-2); margin-bottom: 14px; }
.ip-distribute-form { display: flex; flex-direction: column; gap: 12px; }

/* Investors table */
.ip-investors-wrap { margin-top: 14px; }
.ip-investors-wrap summary { font-size: 13px; color: var(--ip-blue); cursor: pointer; }
.ip-investors-table-wrap { margin-top: 10px; overflow-x: auto; }
.ip-investors-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ip-investors-table th, .ip-investors-table td { padding: 9px 12px; border-bottom: 1px solid var(--ip-border); text-align: left; }
.ip-investors-table th { background: var(--ip-surface-2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ip-text-2); }

/* Wallet */
.ip-balance-display { font-size: 15px; font-weight: 600; margin-bottom: 16px; padding: 12px 14px; background: var(--ip-green-bg); border: 1px solid #86efac; border-radius: 8px; color: var(--ip-green); }
.ip-fee-preview { flex-direction: row; gap: 16px; font-size: 13px; color: var(--ip-text-2); background: #f8fafc; padding: 10px 14px; border-radius: 8px; }
.ip-withdraw-form { display: flex; flex-direction: column; gap: 14px; }
.ip-hint { font-size: 13px; color: var(--ip-text-3); margin-bottom: 16px; }

/* KYC section */
.ip-kyc-section { }
.ip-kyc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ip-kyc-header h3 { font-family: var(--ip-font-display); font-size: 22px; margin: 0; }
.ip-kyc-form { display: flex; flex-direction: column; gap: 16px; }
.ip-current-docs { font-size: 13px; margin: 8px 0; display: flex; gap: 16px; }
.ip-current-docs a { color: var(--ip-blue); text-decoration: none; font-weight: 600; }

/* Marketplace */
.ip-marketplace { max-width: 1200px; margin: 40px auto; padding: 0 32px 60px; }
.ip-marketplace-header { text-align: center; margin-bottom: 40px; }
.ip-marketplace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ip-biz-listing { background: #fff; border: 1px solid var(--ip-border); border-radius: var(--ip-radius); overflow: hidden; box-shadow: var(--ip-shadow); transition: transform 0.25s; display: flex; flex-direction: column; }
.ip-biz-listing:hover { transform: translateY(-4px); }
.ip-biz-listing--full { opacity: 0.92; }
.ip-biz-listing-img { height: 180px; background-size: cover; background-position: center; position: relative; }
.ip-biz-listing-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.ip-biz-listing-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ip-biz-listing-name { font-family: var(--ip-font-display); font-size: 20px; font-weight: 700; }
.ip-biz-listing-desc { font-size: 13px; color: var(--ip-text-2); flex: 1; }
.ip-biz-owner { display: flex; align-items: center; gap: 10px; padding: 10px; background: #f8fafc; border-radius: 8px; }
.ip-biz-owner-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.ip-biz-owner-name  { font-size: 13px; font-weight: 600; color: var(--ip-text); }
.ip-biz-owner-level { font-size: 11px; font-weight: 700; }
.ip-biz-listing-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ip-biz-stat-mini { text-align: center; }
.ip-biz-stat-v { font-family: var(--ip-font-display); font-size: 14px; font-weight: 700; color: var(--ip-text); }
.ip-biz-stat-l { font-size: 10px; color: var(--ip-text-3); }

/* Empty state */
.ip-empty { font-size: 14px; color: var(--ip-text-3); padding: 16px 0; }
.ip-empty-state { text-align: center; padding: 60px 20px; }
.ip-empty-icon { font-size: 52px; margin-bottom: 16px; }
.ip-empty-state h3 { font-family: var(--ip-font-display); font-size: 22px; margin-bottom: 10px; }
.ip-empty-state p  { color: var(--ip-text-2); }

/* Submit form */
.ip-submit-wrap { max-width: 900px; margin: 40px auto; padding: 0 24px 60px; }
.ip-submit-header { text-align: center; margin-bottom: 40px; }
.ip-submit-badge { display: inline-block; background: rgba(16,185,129,0.1); color: var(--ip-accent); padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.ip-submit-form { display: flex; flex-direction: column; gap: 0; }

/* Profile */
.ip-profile { max-width: 900px; margin: 40px auto; padding: 0 24px 60px; }
.ip-profile-hero { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 32px; padding: 28px; background: #fff; border: 1px solid var(--ip-border); border-radius: var(--ip-radius); box-shadow: var(--ip-shadow); }
.ip-profile-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ip-border); flex-shrink: 0; }
.ip-profile-info h1 { font-family: var(--ip-font-display); font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.ip-profile-level  { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.ip-profile-bio    { font-size: 14px; color: var(--ip-text-2); line-height: 1.7; margin: 10px 0; }
.ip-profile-joined { font-size: 12px; color: var(--ip-text-3); }
.ip-profile-stats  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.ip-profile-stat   { background: #fff; border: 1px solid var(--ip-border); border-radius: var(--ip-radius-sm); padding: 16px; text-align: center; }
.ip-profile-stat-val { font-family: var(--ip-font-display); font-size: 20px; font-weight: 700; color: var(--ip-text); margin-bottom: 4px; }
.ip-profile-stat-lab { font-size: 12px; color: var(--ip-text-3); }
.ip-profile-investments h3 { font-family: var(--ip-font-display); font-size: 22px; margin-bottom: 16px; }

/* Product card on WC page */
.ip-product-investment-card { margin: 20px 0; padding: 18px; background: #f8fafc; border: 1px solid var(--ip-border); border-radius: var(--ip-radius-sm); }
.ip-product-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ip-border); font-size: 14px; }
.ip-product-row:last-child { border-bottom: none; }
.ip-product-row span:first-child { color: var(--ip-text-2); }
.ip-progress-bar { margin-top: 10px; height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.ip-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ip-accent), #059669); }
.ip-progress-label { font-size: 12px; color: var(--ip-text-3); margin-top: 5px; }
.ip-product-mini  { margin: 8px 0; }
.ip-mini-bar { height: 5px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin: 6px 0 3px; }
.ip-mini-fill { height: 100%; background: var(--ip-accent); border-radius: 999px; }
.ip-mini-label { font-size: 11px; color: var(--ip-text-3); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ip-dashboard-shell { padding: 28px 18px 52px; }
  .ip-dash-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .ip-hero .ip-container { grid-template-columns: 1fr; }
  .ip-hero-visual { display: none; }
  .ip-steps-grid, .ip-features-grid, .ip-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-listing-grid, .ip-marketplace-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-panel-grid { grid-template-columns: 1fr; }
  .ip-investments-grid { grid-template-columns: 1fr; }
  .ip-nav-links { display: none; }
  .ip-nav-burger { display: flex; }
  .ip-nav-actions .ip-nav-btn { display: none; }
  .ip-nav-actions .ip-nav-burger { display: flex; }
}
@media (max-width: 700px) {
  .ip-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-steps-grid, .ip-features-grid, .ip-testimonials-grid { grid-template-columns: 1fr; }
  .ip-listing-grid, .ip-marketplace-grid { grid-template-columns: 1fr; }
  .ip-dash-stats { grid-template-columns: repeat(2, 1fr); }
  .ip-biz-stats, .ip-biz-listing-stats { grid-template-columns: repeat(2, 1fr); }
  .ip-form-grid { grid-template-columns: 1fr; }
  .ip-footer-grid { grid-template-columns: 1fr; }
  .ip-profile-hero { flex-direction: column; }
  .ip-profile-stats { grid-template-columns: repeat(2, 1fr); }
  .ip-dashboard-nav { margin-bottom: 20px; }
  .ip-tab-mobile-toggle { display: flex; }
  .ip-tabs {
    display: none;
    position: absolute;
    top: calc(100% - 8px);
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(15,23,42,0.14);
  }
  .ip-tabs.is-open { display: flex; }
  .ip-tab-btn {
    width: 100%;
    text-align: left;
    white-space: normal;
    padding: 12px 14px;
  }
}
@media (max-width: 480px) {
  .ip-dashboard-shell { padding: 24px 14px 44px; }
  .ip-dash-header, .ip-panel-card, .ip-biz-card { padding-left: 18px; padding-right: 18px; }
  .ip-dash-stats { grid-template-columns: 1fr; }
  .ip-hero-btns { flex-direction: column; }
  .ip-hero-btns .ip-btn { width: 100%; }
}

/* ── Avatar upload ────────────────────────────────────────── */
.ip-avatar-upload-wrap { text-align:center; }
.ip-avatar-upload-wrap img:hover { opacity:.85; border-color:#10b981 !important; }
#ip-avatar-file { display:none; }

/* ── Deposit form ─────────────────────────────────────────── */
#ip_dep_total { color:#10b981; }

/* ── Admin delete button ajax ─────────────────────────────── */
.ip-del-btn { cursor:pointer; }

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES — Full coverage
   ═══════════════════════════════════════════════════════════ */

/* Remove theme body padding on auth pages */
body.ip-hide-theme-chrome {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
body.ip-hide-theme-chrome #page,
body.ip-hide-theme-chrome .site,
body.ip-hide-theme-chrome main,
body.ip-hide-theme-chrome #main,
body.ip-hide-theme-chrome #primary,
body.ip-hide-theme-chrome .site-content,
body.ip-hide-theme-chrome #content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
body.ip-hide-theme-chrome article,
body.ip-hide-theme-chrome .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* Auth page takes full viewport */
.ip-auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    padding: 0;
    font-family: var(--ip-font-body, 'DM Sans', sans-serif);
}

/* On very wide screens, limit the auth card width */
@media (min-width: 1400px) {
    .ip-auth-page {
        grid-template-columns: minmax(500px, 650px) 1fr;
    }
}

/* ── Nav on auth pages ──────────────────────────────────── */
body.ip-hide-theme-chrome .ip-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}
/* Push all page content below the fixed nav */
body.ip-hide-theme-chrome .ip-dashboard,
body.ip-hide-theme-chrome .ip-marketplace,
body.ip-hide-theme-chrome .ip-submit-wrap,
body.ip-hide-theme-chrome .ip-profile {
    margin-top: 0;
    padding-top: 32px;
}
/* Guarantee side padding on marketplace is never zeroed by theme resets */
body.ip-hide-theme-chrome .ip-marketplace {
    padding-left: 32px !important;
    padding-right: 32px !important;
}
@media (max-width: 768px) {
    body.ip-hide-theme-chrome .ip-marketplace {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .ip-marketplace { padding-left: 16px; padding-right: 16px; }
}
/* Push auth content below nav */
body.ip-hide-theme-chrome .ip-auth-page {
    padding-top: 64px; /* nav height */
}
@media (max-width: 860px) {
    .ip-auth-page {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }
    body.ip-hide-theme-chrome .ip-auth-page {
        padding-top: 60px;
    }
}

/* ── Existing auth card padding tweak ───────────────────── */
.ip-auth-card {
    padding: 40px 40px 40px;
    overflow-y: auto;
    max-height: calc(100vh - 64px);
}
@media (max-width: 860px) {
    .ip-auth-card { max-height: none; padding: 28px 20px; }
}

/* ── Profile tab extras ─────────────────────────────────── */
.ip-avatar-upload-wrap img { transition: opacity .2s, border-color .2s; }
.ip-avatar-upload-wrap img:hover { opacity: .8; border-color: #10b981 !important; }

/* ── Deposit preview ────────────────────────────────────── */
.ip-dep-preview { 
    font-size:13px; color:#475569; 
    background:#f0fdf4; border:1px solid #86efac; 
    border-radius:8px; padding:9px 13px; margin-top:-6px;
}

/* ── Admin delete row animation ─────────────────────────── */
.ip-row-deleting { opacity: .4; pointer-events: none; transition: opacity .3s; }

/* ── Fix Astra's admin bar offset on frontend ───────────── */
body.admin-bar.ip-hide-theme-chrome #ip-nav {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar.ip-hide-theme-chrome #ip-nav { top: 46px; }
}

/* ── WC checkout on platform pages ─────────────────────── */
body.ip-hide-theme-chrome .woocommerce,
body.ip-hide-theme-chrome .woocommerce-page {
    padding: 40px 24px;
    max-width: 900px;
    margin: 0 auto;
}

/* ── Smooth tab transitions ─────────────────────────────── */
.ip-tab-panel {
    animation: ipTabIn .2s ease;
}
@keyframes ipTabIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile nav tweaks ──────────────────────────────────── */
@media (max-width: 960px) {
    .ip-nav-actions { gap: 6px; }
    .ip-nav-inner   { padding: 0 16px; }
}

/* ── KYC status colours on banner ───────────────────────── */
.ip-kyc-banner--approved { display: none; }

/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE — Modern sleek investment layout
   ═══════════════════════════════════════════════════════════ */

/* Video hero */
.ip-product-video-hero {
    margin-bottom: 28px;
}

/* Main wrapper */
.ip-product-detail-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
    padding: 0;
}

/* Overview card */
.ip-pd-overview {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.ip-pd-header { margin-bottom: 18px; }
.ip-pd-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Funding card */
.ip-pd-funding-card {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 18px;
    color: #fff;
}
.ip-pd-funding-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}
.ip-pd-funding-amount {
    font-size: 26px;
    font-weight: 800;
    color: #10b981;
    line-height: 1.1;
}
.ip-pd-funding-label {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    margin-top: 3px;
}
.ip-pd-funding-pct {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}
.ip-pd-progress-track {
    background: rgba(255,255,255,.15);
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}
.ip-pd-progress-fill {
    background: linear-gradient(90deg, #10b981, #34d399);
    height: 100%;
    border-radius: 99px;
    transition: width .5s ease;
}
.ip-pd-funding-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
}
.ip-pd-funding-meta strong { color: #fff; }

/* Key stats grid */
.ip-pd-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.ip-pd-stat {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
}
.ip-pd-stat-icon { font-size: 20px; margin-bottom: 6px; }
.ip-pd-stat-val { font-size: 15px; font-weight: 800; color: #0f172a; line-height: 1.2; }
.ip-pd-stat-lab { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }

/* Earn banner */
.ip-pd-earn-banner {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #15803d;
    margin-top: 4px;
}
.ip-pd-earn-banner strong { font-size: 18px; font-weight: 800; }

/* Owner card */
.ip-pd-owner-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.ip-pd-owner-header { display: flex; align-items: center; gap: 14px; }
.ip-pd-owner-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}
.ip-pd-owner-name { font-weight: 700; font-size: 15px; color: #0f172a; }
.ip-pd-owner-label { font-size: 12px; color: #94a3b8; margin-top: 1px; }
.ip-pd-owner-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

/* Rating badge in header */
.ip-pd-rating-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 13px;
    color: #92400e;
    font-weight: 600;
}

/* ── Stars ─────────────────────────────────────────────── */
.ip-stars { display: inline-flex; gap: 1px; }
.ip-star { font-size: 15px; }
.ip-star--full  { color: #f59e0b; }
.ip-star--half  { color: #f59e0b; opacity: .6; }
.ip-star--empty { color: #d1d5db; }

/* ── Reviews section ────────────────────────────────────── */
.ip-pd-reviews {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.ip-pd-reviews-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ip-pd-reviews-count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 99px;
}

/* Review form */
.ip-pd-review-form-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
}
.ip-pd-review-form-wrap h4 {
    font-size: 14px; font-weight: 700; color: #0f172a;
    margin: 0 0 12px;
}
.ip-review-stars-input {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.ip-review-stars-input span { font-size: 13px; color: #64748b; margin-right: 6px; }
.ip-review-stars-input input[type="radio"] { display: none; }
.ip-review-stars-input label {
    font-size: 28px;
    color: #d1d5db;
    cursor: pointer;
    transition: color .1s;
}
.ip-review-stars-input label:hover,
.ip-review-stars-input label:hover ~ label,
.ip-review-stars-input input[type="radio"]:checked ~ label { color: #f59e0b; }
.ip-review-textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 10px;
    font-family: inherit;
    box-sizing: border-box;
}
.ip-pd-review-blocked {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
}

/* Review list */
.ip-pd-reviews-list { display: flex; flex-direction: column; gap: 14px; }
.ip-pd-review-item {
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
}
.ip-pd-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.ip-pd-review-author { font-weight: 700; font-size: 14px; color: #0f172a; }
.ip-pd-review-rating { display: flex; gap: 1px; }
.ip-pd-review-date { font-size: 12px; color: #94a3b8; margin-left: auto; }
.ip-pd-review-text { font-size: 14px; color: #475569; margin: 0; line-height: 1.6; }
.ip-pd-no-reviews { font-size: 14px; color: #94a3b8; text-align: center; padding: 20px 0; margin: 0; }

/* ── Profile owner rating ───────────────────────────────── */
.ip-profile-owner-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
}

/* ── Business profile grid on public profile page ─────── */
.ip-biz-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
.ip-biz-profile-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
}

/* ── WC single product layout override for investments ── */
.single-product .woocommerce-product-gallery { display: none !important; }
.single-product .entry-summary { width: 100% !important; float: none !important; }
.single-product .product .summary { width: 100% !important; float: none !important; }
.single-product .woocommerce-product-gallery + .summary,
.single-product .product .woocommerce-product-gallery ~ .entry-summary {
    float: none !important;
    width: 100% !important;
}

/* WC single stock text */
.woocommerce .stock { font-weight: 700; color: #0f172a; }
.woocommerce .in-stock { color: #15803d; }
.woocommerce .out-of-stock { color: #b91c1c; }

/* WC add to cart button */
.single_add_to_cart_button,
.woocommerce .single_add_to_cart_button {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding: 14px 28px !important;
    letter-spacing: .02em !important;
    box-shadow: 0 4px 14px rgba(16,185,129,.3) !important;
    transition: all .2s !important;
}
.single_add_to_cart_button:hover,
.woocommerce .single_add_to_cart_button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(16,185,129,.4) !important;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .ip-pd-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ip-pd-funding-amount { font-size: 20px; }
    .ip-pd-funding-pct { font-size: 22px; }
    .ip-pd-earn-banner { flex-direction: column; gap: 4px; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   FULL INVESTMENT PRODUCT PAGE — v2.6
   ═══════════════════════════════════════════════════════════ */

.ip-invest-page {
    max-width: 1160px;
    margin: 0 auto;
    padding: 32px 24px 60px;
    font-family: 'DM Sans', sans-serif;
}

/* Breadcrumb */
.ip-invest-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 24px;
}
.ip-invest-breadcrumb a {
    color: var(--ip-accent, #10b981);
    text-decoration: none;
    font-weight: 500;
}
.ip-invest-breadcrumb a:hover { text-decoration: underline; }
.ip-invest-breadcrumb span { color: #94a3b8; }

/* Flash notice */
.ip-invest-notice { margin-bottom: 20px; }

/* ── Hero layout: left + right ──────────────────────────── */
.ip-invest-hero {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
    margin-bottom: 48px;
}

/* ── LEFT COLUMN ─────────────────────────────────────────── */
.ip-invest-left { display: flex; flex-direction: column; gap: 24px; }

/* Video */
.ip-invest-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    background: #000;
}
.ip-invest-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* Tags row */
.ip-invest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Rating chip */
.ip-invest-rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 13px;
    color: #92400e;
    font-weight: 600;
}

/* Title */
.ip-invest-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0;
}

/* Description */
.ip-invest-desc {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    background: #f8fafc;
    border-left: 3px solid var(--ip-accent, #10b981);
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
}

/* Stats strip */
.ip-invest-stats-strip {
    display: flex;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.ip-invest-stat {
    flex: 1;
    padding: 16px 12px;
    text-align: center;
    border-right: 1px solid #e2e8f0;
}
.ip-invest-stat:last-child { border-right: none; }
.ip-invest-stat-val {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    word-break: break-word;
}
.ip-invest-stat-lab {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 4px;
}

/* Earn banner */
.ip-invest-earn-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    border-radius: 14px;
    padding: 18px 22px;
}
.ip-invest-earn-label { font-size: 15px; font-weight: 700; color: #15803d; }
.ip-invest-earn-sub   { font-size: 12px; color: #4ade80; margin-top: 3px; }
.ip-invest-earn-amount { font-size: 24px; font-weight: 900; color: #15803d; }

/* Owner card */
.ip-invest-owner-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.ip-invest-owner-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}
.ip-invest-owner-info { flex: 1; min-width: 0; }
.ip-invest-owner-name {
    font-size: 15px; font-weight: 700; color: #0f172a;
    text-decoration: none; display: block;
}
.ip-invest-owner-name:hover { color: var(--ip-accent, #10b981); }
.ip-invest-owner-role { font-size: 12px; color: #94a3b8; margin-top: 1px; }
.ip-invest-owner-stars {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: #64748b; margin-top: 4px;
}
.ip-invest-owner-view {
    font-size: 13px; color: var(--ip-accent, #10b981);
    text-decoration: none; font-weight: 600; white-space: nowrap;
}
.ip-invest-owner-view:hover { text-decoration: underline; }

/* ── RIGHT COLUMN — sticky invest widget ────────────────── */
.ip-invest-right { position: sticky; top: 100px; }

.ip-invest-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* Funding progress inside widget */
.ip-iw-funding { margin-bottom: 20px; }
.ip-iw-raised {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}
.ip-iw-raised-sub {
    font-size: 13px; color: #94a3b8; margin-top: 4px; margin-bottom: 12px;
}
.ip-iw-progress-wrap {
    height: 10px;
    background: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 8px;
}
.ip-iw-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 99px;
    transition: width .6s cubic-bezier(.4,0,.2,1);
}
.ip-iw-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

/* Price row */
.ip-iw-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px;
}
.ip-iw-price-label { font-size: 13px; color: #64748b; }
.ip-iw-price { font-size: 20px; font-weight: 800; color: #0f172a; }

/* Qty control */
.ip-iw-qty-row { margin-bottom: 12px; }
.ip-iw-qty-label { font-size: 13px; color: #64748b; font-weight: 600; display: block; margin-bottom: 8px; }
.ip-iw-qty-ctrl {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.ip-iw-qty-btn {
    background: #f8fafc;
    border: none;
    width: 44px; height: 44px;
    font-size: 20px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}
.ip-iw-qty-btn:hover { background: #e2e8f0; color: #0f172a; }
.ip-iw-qty-ctrl input[type="number"] {
    flex: 1;
    border: none;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    -moz-appearance: textfield;
    outline: none;
    padding: 0;
    background: #fff;
}
.ip-iw-qty-ctrl input::-webkit-outer-spin-button,
.ip-iw-qty-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Total row */
.ip-iw-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #64748b;
}
.ip-iw-total-val { font-size: 18px; font-weight: 800; color: #0f172a; }

/* Invest button */
.ip-iw-invest-btn {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(16,185,129,.35);
    transition: all .2s;
    margin-bottom: 14px;
}
.ip-iw-invest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16,185,129,.45);
}
.ip-iw-invest-btn:active { transform: translateY(0); }

/* Fully funded */
.ip-iw-full-badge {
    text-align: center;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #86efac;
    border-radius: 14px;
    padding: 20px;
    font-size: 18px;
    font-weight: 800;
    color: #15803d;
    margin-bottom: 14px;
}

/* Availability */
.ip-iw-avail {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}
.ip-iw-avail-dot {
    width: 8px; height: 8px;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(16,185,129,.2);
}

/* Quick facts */
.ip-iw-facts { display: flex; flex-direction: column; gap: 8px; }
.ip-iw-fact {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
.ip-iw-fact span { color: #94a3b8; }
.ip-iw-fact strong { color: #0f172a; font-weight: 700; }

/* ── REVIEWS SECTION ─────────────────────────────────────── */
.ip-invest-reviews-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.ip-invest-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.ip-invest-reviews-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.ip-invest-avg-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 8px 16px;
}
.ip-invest-avg-num { font-size: 24px; font-weight: 900; color: #92400e; }
.ip-invest-avg-count { font-size: 13px; color: #92400e; }

/* Review form card */
.ip-invest-review-form-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
}
.ip-invest-review-form-card h3 {
    font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 16px;
}

/* Star input */
.ip-invest-stars-input { margin-bottom: 14px; }
.ip-invest-stars-label { font-size: 13px; color: #64748b; font-weight: 600; display: block; margin-bottom: 8px; }
.ip-invest-stars-row {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}
.ip-invest-stars-row input[type="radio"] { display: none; }
.ip-invest-stars-row label {
    font-size: 36px;
    color: #e2e8f0;
    cursor: pointer;
    transition: color .1s, transform .1s;
    line-height: 1;
}
.ip-invest-stars-row label:hover,
.ip-invest-stars-row label:hover ~ label,
.ip-invest-stars-row input[type="radio"]:checked ~ label {
    color: #f59e0b;
    transform: scale(1.1);
}

.ip-invest-review-textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 12px;
    box-sizing: border-box;
    outline: none;
    transition: border-color .15s;
}
.ip-invest-review-textarea:focus { border-color: var(--ip-accent, #10b981); }

.ip-invest-review-btn {
    background: var(--ip-primary, #0f172a);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.ip-invest-review-btn:hover { background: #1e293b; }

/* Locked notice */
.ip-invest-review-locked {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}
.ip-invest-review-lock-icon { font-size: 20px; flex-shrink: 0; }

/* Reviews list */
.ip-invest-reviews-list { display: flex; flex-direction: column; gap: 16px; }
.ip-invest-review-card {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 18px 20px;
    transition: box-shadow .15s;
}
.ip-invest-review-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.ip-invest-review-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.ip-invest-review-avatar {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--ip-primary,#0f172a), var(--ip-accent,#10b981));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}
.ip-invest-review-meta { flex: 1; }
.ip-invest-review-name { font-size: 14px; font-weight: 700; color: #0f172a; }
.ip-invest-review-date { font-size: 12px; color: #94a3b8; margin-top: 1px; }
.ip-invest-review-stars { margin-left: auto; }
.ip-invest-review-body {
    font-size: 14px; color: #475569; line-height: 1.7; margin: 0;
}
.ip-invest-no-reviews {
    text-align: center;
    padding: 32px 20px;
    font-size: 14px;
    color: #94a3b8;
    background: #f8fafc;
    border-radius: 14px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .ip-invest-hero {
        grid-template-columns: 1fr;
    }
    .ip-invest-right { position: static; }
    .ip-invest-stats-strip { flex-wrap: wrap; }
    .ip-invest-stat { min-width: calc(33% - 1px); }
}
@media (max-width: 600px) {
    .ip-invest-page { padding: 16px 14px 40px; }
    .ip-invest-title { font-size: 22px; }
    .ip-invest-widget { padding: 18px; }
    .ip-invest-earn-banner { flex-direction: column; gap: 8px; }
    .ip-invest-earn-amount { font-size: 20px; }
    .ip-invest-reviews-section { padding: 20px 16px; }
    .ip-invest-stat { min-width: calc(50% - 1px); }
}

/* ═══════════════════════════════════════════════════════════
   AVG PAYBACK BADGE — profile hero (prominent pill)
   ═══════════════════════════════════════════════════════════ */
.ip-avg-payback-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 99px;
    box-shadow: 0 4px 18px rgba(15,23,42,.28), 0 0 0 3px rgba(52,211,153,.18);
    border: 1px solid rgba(52,211,153,.25);
    text-decoration: none;
    transition: box-shadow .2s, transform .2s;
}
.ip-avg-payback-badge:hover {
    box-shadow: 0 6px 24px rgba(15,23,42,.35), 0 0 0 4px rgba(52,211,153,.28);
    transform: translateY(-1px);
}
.ip-avg-payback-badge__icon { font-size: 20px; flex-shrink: 0; }
.ip-avg-payback-badge__body {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.ip-avg-payback-badge__pct {
    font-size: 18px;
    font-weight: 900;
    color: #34d399;
    letter-spacing: -.01em;
}
.ip-avg-payback-badge__label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── Avg payback stat card (profile stats grid) ──────────── */
.ip-profile-stat--payback {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%) !important;
    border-color: rgba(52,211,153,.2) !important;
    box-shadow: 0 4px 16px rgba(15,23,42,.18), 0 0 0 2px rgba(52,211,153,.12) !important;
}
.ip-profile-stat-val--payback {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #34d399 !important;
}
.ip-profile-stat-lab--payback {
    color: #94a3b8 !important;
    font-weight: 600;
}

/* ── Owner payback chip — marketplace card & detail page ─── */
.ip-biz-owner-payback {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    background: linear-gradient(90deg, #0f172a, #1e3a5f);
    color: #34d399;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
    letter-spacing: .03em;
}

/* ── Owner payback row — business detail owner card ─────── */
.ip-invest-owner-payback {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #fff;
    padding: 5px 12px;
    border-radius: 99px;
    box-shadow: 0 2px 10px rgba(15,23,42,.2), 0 0 0 2px rgba(52,211,153,.15);
}
.ip-invest-owner-payback__icon { font-size: 14px; }
.ip-invest-owner-payback__val {
    font-size: 15px;
    font-weight: 900;
    color: #34d399;
}
.ip-invest-owner-payback__lab {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── No-review placeholder on fully funded businesses ───── */
.ip-invest-no-reviews {
    text-align: center;
    padding: 28px 20px;
    color: #64748b;
    font-size: 14px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
}

/* ── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 600px) {
    .ip-avg-payback-badge { padding: 8px 14px; gap: 8px; }
    .ip-avg-payback-badge__pct { font-size: 15px; }
    .ip-profile-stat-val--payback { font-size: 22px !important; }
}

/* ── Reviews Open badge ─────────────────────────────────── */
.ip-reviews-open-badge {
    display: inline-flex;
    align-items: center;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid #bbf7d0;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* ── Review CTA inside fully-funded invest widget ────────── */
.ip-iw-review-cta {
    display: block;
    margin-top: 14px;
    text-align: center;
    padding: 11px 16px;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #34d399;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    letter-spacing: .02em;
    transition: opacity .15s, transform .15s;
    box-shadow: 0 2px 10px rgba(15,23,42,.2);
}
.ip-iw-review-cta:hover {
    opacity: .9;
    transform: translateY(-1px);
    color: #6ee7b7;
    text-decoration: none;
}

/* ── Smooth scroll for the reviews anchor ───────────────── */
html { scroll-behavior: smooth; }
#ip-reviews-anchor { scroll-margin-top: 24px; }


.ip-invest-reviews-summary-grid {
  display:grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap:16px;
  margin: 0 0 18px;
}
.ip-invest-reviews-summary-card,
.ip-invest-reviews-breakdown-card {
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:16px;
}
.ip-invest-reviews-summary-card {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
}
.ip-invest-reviews-summary-score {
  font-size:34px;
  line-height:1;
  font-weight:800;
  color:#0f172a;
}
.ip-invest-reviews-summary-note {
  font-size:13px;
  color:#64748b;
}
.ip-invest-reviews-breakdown-row {
  display:grid;
  grid-template-columns:44px 1fr 28px;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.ip-invest-reviews-breakdown-row:last-child { margin-bottom:0; }
.ip-invest-reviews-breakdown-label,
.ip-invest-reviews-breakdown-count {
  font-size:13px;
  color:#475569;
  font-weight:600;
}
.ip-invest-reviews-breakdown-bar {
  height:10px;
  background:#e2e8f0;
  border-radius:999px;
  overflow:hidden;
  display:block;
}
.ip-invest-reviews-breakdown-bar span {
  display:block;
  height:100%;
  background:linear-gradient(90deg,#f59e0b,#fbbf24);
  border-radius:999px;
}
.ip-invest-verified-badge {
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-left:8px;
  padding:2px 8px;
  border-radius:999px;
  background:#ecfdf5;
  color:#047857;
  font-size:11px;
  font-weight:700;
  vertical-align:middle;
}
@media (max-width: 768px) {
  .ip-invest-reviews-summary-grid { grid-template-columns: 1fr; }
}


/* ── My Investments review panel ────────────────────────── */
.ip-invest-review-panel {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}
.ip-invest-review-panel__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.ip-invest-review-panel__title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}
.ip-invest-review-panel__sub {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}
.ip-invest-review-panel__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.ip-invest-review-panel__badge--open {
    background: #ecfdf5;
    color: #047857;
    border-color: #bbf7d0;
}
.ip-invest-review-panel__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.ip-invest-review-panel__note {
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}
@media (max-width: 600px) {
    .ip-invest-review-panel__actions .ip-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}


/* ── Countdown blocks ─────────────────────────────────── */
.ip-countdown-card{
    margin:12px 0 14px;
    padding:14px 16px;
    border:1px solid #dbeafe;
    border-radius:12px;
    background:linear-gradient(180deg,#f8fbff 0%,#eef6ff 100%);
}
.ip-countdown-card--compact{margin-top:14px;}
.ip-countdown-label{
    font-size:12px;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:#475569;
    margin-bottom:10px;
}
.ip-countdown{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
}
.ip-countdown__segment{
    min-width:64px;
    padding:10px 12px;
    border-radius:10px;
    background:#ffffff;
    border:1px solid #dbeafe;
    text-align:center;
    box-shadow:0 4px 14px rgba(15,23,42,.05);
}
.ip-countdown__segment strong{
    display:block;
    font-size:18px;
    line-height:1;
    color:#0f172a;
    margin-bottom:4px;
}
.ip-countdown__segment em{
    font-style:normal;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    color:#64748b;
}
.ip-countdown__value,
.ip-countdown__ended{
    font-size:14px;
    font-weight:700;
    color:#0f172a;
}
.ip-updates-wrap--locked summary::-webkit-details-marker{display:none;}
.ip-btn--muted{
    opacity:.55;
    filter:saturate(.6);
}
.ip-updates-locked-note{
    padding:12px 14px;
    border:1px dashed #cbd5e1;
    border-radius:10px;
    background:#f8fafc;
    color:#64748b;
    font-size:13px;
    font-weight:600;
}

/* ── Secondary Share Market ─────────────────────────────────── */
.ip-share-market { max-width: 1200px; margin: 40px auto; padding: 0 32px 60px; }
.ip-sm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 10px; }
.ip-sm-card { background: #fff; border: 1px solid var(--ip-border); border-radius: var(--ip-radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--ip-shadow); transition: transform .2s; }
.ip-sm-card:hover { transform: translateY(-3px); }
.ip-sm-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ip-sm-biz-name { font-family: var(--ip-font-display); font-size: 16px; font-weight: 700; color: var(--ip-text); }
.ip-sm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.ip-sm-stat-l { font-size: 10px; color: var(--ip-text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ip-sm-stat-v { font-size: 14px; font-weight: 700; color: var(--ip-text); margin-top: 2px; }
@media(max-width:900px){ .ip-sm-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px){ .ip-sm-grid { grid-template-columns: 1fr; } .ip-share-market { padding-left: 16px; padding-right: 16px; } }


/* ═══════════════════════════════════════════════════════════════
   HELP DESK / SUPPORT WIDGET
   ═══════════════════════════════════════════════════════════════ */

/* ── Page shell ──────────────────────────────────────────────── */
.ip-support-page {
    font-family: var(--ip-font-body, 'DM Sans', sans-serif);
}
.ip-support-shell {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

/* ── Header bar ──────────────────────────────────────────────── */
.ip-support-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    flex-wrap: wrap;
}
.ip-support-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ip-support-header-icon {
    font-size: 28px;
    line-height: 1;
}
.ip-support-header-text h3 {
    margin: 0 0 2px;
    font-family: var(--ip-font-display, 'Playfair Display', serif);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.ip-support-header-text p {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,.55);
}

/* ── Status chips ─────────────────────────────────────────────── */
.ip-support-header-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ip-support-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
.ip-support-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16,185,129,.35);
}

/* ── Two-column layout ───────────────────────────────────────── */
.ip-support-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 520px;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.ip-support-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-right: 1px solid #e2e8f0;
    background: #f8fafc;
    overflow-y: auto;
    padding: 0;
}
.ip-support-sidebar > div {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.ip-support-sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    margin-bottom: 10px;
}

/* ── Thread list ─────────────────────────────────────────────── */
.ip-support-thread-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ip-support-thread-item {
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s;
    font-family: inherit;
    font-size: 13px;
    color: #0f172a;
    display: block;
    text-decoration: none;
}
.ip-support-thread-item:hover {
    border-color: var(--ip-accent, #10b981);
    box-shadow: 0 2px 8px rgba(16,185,129,.12);
}
.ip-support-thread-item.is-active {
    border-color: var(--ip-primary, #0f172a);
    background: #f0f4ff;
    box-shadow: 0 2px 8px rgba(15,23,42,.10);
}
.ip-support-thread-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 12.5px;
    color: #1e293b;
    line-height: 1.35;
}
.ip-support-thread-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    gap: 8px;
}

/* ── Empty states ─────────────────────────────────────────────── */
.ip-support-empty-mini {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
    padding: 6px 0;
}
.ip-support-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 180px;
    color: #94a3b8;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    padding: 24px;
}

/* ── New ticket form (sidebar) ───────────────────────────────── */
.ip-support-create-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ip-support-create-form label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ip-support-create-form input[type="text"],
.ip-support-create-form select,
.ip-support-create-form textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s;
}
.ip-support-create-form input:focus,
.ip-support-create-form select:focus,
.ip-support-create-form textarea:focus {
    outline: none;
    border-color: var(--ip-accent, #10b981);
    box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}

/* ── Chat panel ──────────────────────────────────────────────── */
.ip-support-chatpanel {
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* ── Chat header ─────────────────────────────────────────────── */
.ip-support-chat-header {
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 54px;
}
.ip-support-chat-title {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    flex: 1;
}
.ip-support-chat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

/* ── Messages area ───────────────────────────────────────────── */
.ip-support-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 260px;
    max-height: 420px;
}
.ip-support-messages--admin {
    max-height: 560px;
}

/* ── Message bubbles ─────────────────────────────────────────── */
.ip-support-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
}
.ip-support-bubble.sender-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.ip-support-bubble.sender-admin {
    align-self: flex-start;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}
.ip-support-bubble.is-internal {
    background: #fff7ed;
    border: 1px dashed #fed7aa;
    color: #7c2d12;
    align-self: flex-start;
}
.ip-support-bubble-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    margin-bottom: 5px;
    opacity: .75;
    flex-wrap: wrap;
}
.ip-support-bubble.sender-user .ip-support-bubble-meta {
    opacity: .65;
    color: rgba(255,255,255,.85);
}
.ip-support-bubble-body p {
    margin: 0 0 6px;
}
.ip-support-bubble-body p:last-child {
    margin: 0;
}

/* ── Reply form ──────────────────────────────────────────────── */
.ip-support-reply-form {
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ip-support-reply-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13.5px;
    font-family: inherit;
    resize: vertical;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s;
}
.ip-support-reply-form textarea:focus {
    outline: none;
    border-color: var(--ip-accent, #10b981);
    box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.ip-support-reply-form.is-disabled textarea {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}
.ip-support-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.ip-support-form-feedback {
    font-size: 12px;
    color: #dc2626;
    font-weight: 500;
    flex: 1;
}

/* ── Status badges ───────────────────────────────────────────── */
.ip-support-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}
.ip-support-badge--open      { background: #d1fae5; color: #065f46; }
.ip-support-badge--pending   { background: #dbeafe; color: #1e40af; }
.ip-support-badge--resolved  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.ip-support-badge--closed    { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.ip-support-badge--priority-high   { background: #fff7ed; color: #c2410c; }
.ip-support-badge--priority-urgent { background: #fef2f2; color: #b91c1c; }
.ip-support-badge--priority-low    { background: #f8fafc; color: #94a3b8; border: 1px solid #e2e8f0; }
.ip-support-badge--priority-normal { background: #eff6ff; color: #1d4ed8; }

/* ── Note toggle ─────────────────────────────────────────────── */
.ip-support-note-toggle {
    font-size: 11px;
    color: #b45309;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
    font-family: inherit;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ip-support-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .ip-support-sidebar {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        max-height: 320px;
        overflow-y: auto;
    }
    .ip-support-messages {
        max-height: 300px;
    }
    .ip-support-header {
        padding: 16px;
        gap: 12px;
    }
    .ip-support-bubble {
        max-width: 90%;
    }
}
@media (max-width: 480px) {
    .ip-support-header-chips { gap: 6px; }
    .ip-support-chat-header  { padding: 10px 14px; }
    .ip-support-messages     { padding: 14px; }
    .ip-support-reply-form   { padding: 10px 14px; }
}
