/* =================================================================
   Kontractz Investment Marketplace Styles
   Brand: #f47c20 (orange), white text, clean cards
   Prefix: ktz-inv-
================================================================= */

/* ── CSS VARIABLES ───────────────────────────────────────────────  */
:root {
  --ktz-orange:     #f47c20;
  --ktz-orange-dk:  #d4620e;
  --ktz-orange-lt:  #fff4ec;
  --ktz-navy:       #0f172a;
  --ktz-blue:       #1d4ed8;
  --ktz-text:       #1e293b;
  --ktz-muted:      #64748b;
  --ktz-border:     #e2e8f0;
  --ktz-bg:         #f8fafc;
  --ktz-white:      #ffffff;
  --ktz-radius:     10px;
  --ktz-shadow:     0 2px 12px rgba(0,0,0,.08);
  --ktz-shadow-lg:  0 8px 32px rgba(0,0,0,.14);
}

/* ── RESET ───────────────────────────────────────────────────────  */
.ktz-inv-wrap * { box-sizing: border-box; }
.ktz-inv-wrap { font-family: 'Segoe UI', system-ui, sans-serif; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ── HERO ────────────────────────────────────────────────────────  */
.ktz-inv-hero {
  background: var(--ktz-navy);
  color: #fff; padding: 3rem 2rem; border-radius: 16px; margin-bottom: 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.ktz-inv-hero::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse at 70% 50%, rgba(244,124,32,.35) 0%, transparent 65%);
  pointer-events:none;
}
.ktz-inv-hero h1 { font-size: 2.2rem; font-weight: 800; margin: 0 0 .5rem; position:relative; color:#fff; }
.ktz-inv-hero p  { font-size: 1.05rem; opacity: .85; margin: 0 0 1.5rem; position:relative; }

/* ── SEARCH BAR ──────────────────────────────────────────────────  */
.ktz-inv-search-bar { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; position:relative; }
.ktz-inv-search-bar input,
.ktz-inv-search-bar select {
  padding: .7rem 1rem; border: none; border-radius: 8px;
  font-size: .95rem; min-width: 160px; flex: 1; max-width: 300px;
  background: rgba(255,255,255,.95); color: var(--ktz-text);
}

/* ── STATS BAR ───────────────────────────────────────────────────  */
.ktz-inv-stats-bar { font-size: .9rem; color: var(--ktz-muted); margin-bottom: 1.2rem; }

/* ── OPENVC-STYLE TABLE LAYOUT (investors browse) ────────────────  */
.ktz-inv-table-wrap { background: var(--ktz-white); border: 1px solid var(--ktz-border); border-radius: 12px; overflow: hidden; }
.ktz-inv-table { width: 100%; border-collapse: collapse; }
.ktz-inv-table thead th {
  background: var(--ktz-bg); padding: .7rem 1rem; text-align: left;
  font-size: .75rem; font-weight: 700; color: var(--ktz-muted);
  text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ktz-border);
}
.ktz-inv-table tbody tr { border-bottom: 1px solid var(--ktz-border); transition: background .15s; cursor: pointer; }
.ktz-inv-table tbody tr:last-child { border-bottom: none; }
.ktz-inv-table tbody tr:hover { background: var(--ktz-orange-lt); }
.ktz-inv-table td { padding: .85rem 1rem; vertical-align: middle; }
.ktz-inv-td-name { display: flex; align-items: center; gap: .75rem; }
.ktz-inv-td-logo { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--ktz-bg); border: 1px solid var(--ktz-border); }
.ktz-inv-td-logo-ph {
  width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg,#f47c20,#d4620e);
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:1.1rem;
}
.ktz-inv-td-title { font-weight: 700; color: var(--ktz-text); font-size: .95rem; }
.ktz-inv-td-sub   { font-size: .78rem; color: var(--ktz-muted); margin-top: 1px; }
.ktz-inv-td-tags  { display: flex; flex-wrap: wrap; gap: .3rem; }
.ktz-inv-chip {
  background: var(--ktz-bg); border: 1px solid var(--ktz-border);
  border-radius: 999px; padding: .2em .65em; font-size: .75rem; color: var(--ktz-text); white-space: nowrap;
}
.ktz-inv-chip--more { background: var(--ktz-border); color: var(--ktz-muted); }
.ktz-inv-action-btn {
  background: var(--ktz-orange); color: #fff !important; border: none; border-radius: 8px;
  padding: .45rem 1rem; font-size: .82rem; font-weight: 700; cursor: pointer;
  text-decoration: none !important; display: inline-block; white-space: nowrap;
  transition: background .15s;
}
.ktz-inv-action-btn:hover { background: var(--ktz-orange-dk); }
.ktz-inv-view-link { font-size: .78rem; color: var(--ktz-muted); text-align: center; display: block; margin-top: .3rem; text-decoration: none; }
.ktz-inv-view-link:hover { color: var(--ktz-orange); }
.ktz-inv-active-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; margin-right: .3rem; }

/* ── GRID (startup cards) ────────────────────────────────────────  */
.ktz-inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }

/* ── STARTUP CARD ────────────────────────────────────────────────  */
.ktz-inv-card {
  background: var(--ktz-white); border-radius: 12px; overflow: hidden; cursor: pointer;
  box-shadow: var(--ktz-shadow); transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--ktz-border);
}
.ktz-inv-card:hover { transform: translateY(-4px); box-shadow: var(--ktz-shadow-lg); }
.ktz-inv-card-cover { height: 110px; background: linear-gradient(135deg,var(--ktz-navy),#1e3a5f); background-size: cover; background-position: center; }
.ktz-inv-card-body  { padding: 1rem; }
.ktz-inv-card-logo  { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; margin-top: -38px; background: var(--ktz-white); border: 3px solid var(--ktz-white); box-shadow: 0 2px 8px rgba(0,0,0,.15); margin-bottom: .6rem; }
.ktz-inv-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.ktz-inv-logo-placeholder { width: 52px; height: 52px; background: linear-gradient(135deg,var(--ktz-orange),var(--ktz-orange-dk)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; font-weight: 700; }
.ktz-inv-card-title    { font-size: 1.05rem; font-weight: 700; color: var(--ktz-text); margin: 0 0 .25rem; }
.ktz-inv-card-tagline  { font-size: .83rem; color: var(--ktz-muted); margin: 0 0 .6rem; line-height: 1.4; }
.ktz-inv-card-meta     { display: flex; gap: .6rem; flex-wrap: wrap; font-size: .78rem; color: var(--ktz-muted); margin-bottom: .75rem; }
.ktz-inv-card-footer   { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ktz-inv-card-views    { font-size: .75rem; color: #94a3b8; margin-top: .5rem; }
.ktz-inv-raise         { font-size: .85rem; color: var(--ktz-text); }
.ktz-inv-raise strong  { color: var(--ktz-orange); font-size: 1rem; }
.ktz-inv-featured-tag  { font-size: .72rem; background: #fff4ec; color: var(--ktz-orange); border-radius: 999px; padding: .2em .6em; font-weight: 700; border: 1px solid #fdd5b1; }

/* ── BADGES & TAGS ───────────────────────────────────────────────  */
.ktz-inv-badge { font-size: .75rem; padding: .25em .65em; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.ktz-inv-badge--orange { background: var(--ktz-orange-lt) !important; color: var(--ktz-orange) !important; border: 1px solid #fdd5b1 !important; }
.ktz-inv-badge--ind { background: #eff6ff !important; color: #1d4ed8 !important; border: 1px solid #bfdbfe !important; }
.ktz-inv-tag { font-size: .75rem; background: var(--ktz-bg); color: var(--ktz-muted); border-radius: 6px; padding: .2em .6em; }
.ktz-inv-tag--ind { background: #eff6ff; color: #2563eb; }
.ktz-inv-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0; align-items: center; }
.ktz-inv-verified { color: var(--ktz-orange); font-weight: 700; }
.ktz-inv-verified-badge { background: var(--ktz-orange-lt); color: var(--ktz-orange); border-radius: 999px; padding: .3em .9em; font-weight: 700; font-size: .85rem; }
.ktz-inv-active-badge { font-size: .8rem; color: #16a34a; font-weight: 600; margin-top: .4rem; }

/* ── BUTTONS ─────────────────────────────────────────────────────  */
.ktz-inv-btn-primary   { background: var(--ktz-orange); color: #fff !important; border: none; border-radius: 8px; padding: .6rem 1.2rem; font-size: .9rem; font-weight: 700; cursor: pointer; text-decoration: none !important; display: inline-block; transition: background .2s; }
.ktz-inv-btn-primary:hover { background: var(--ktz-orange-dk); }
.ktz-inv-btn-secondary { background: var(--ktz-navy); color: #fff !important; border: none; border-radius: 8px; padding: .6rem 1.2rem; font-size: .9rem; font-weight: 700; cursor: pointer; text-decoration: none !important; display: inline-block; }
.ktz-inv-btn-outline   { background: transparent; color: var(--ktz-orange) !important; border: 2px solid var(--ktz-orange); border-radius: 8px; padding: .55rem 1.1rem; font-size: .9rem; font-weight: 700; cursor: pointer; text-decoration: none !important; display: inline-block; transition: all .2s; }
.ktz-inv-btn-outline:hover { background: var(--ktz-orange); color: #fff !important; }
.ktz-inv-btn-full { display: block; width: 100%; text-align: center; }
.ktz-inv-btn-sm   { padding: .35rem .75rem; font-size: .8rem; border-radius: 6px; cursor: pointer; border: none; font-weight: 600; }
.ktz-inv-btn-success { background: #16a34a; color: #fff; }
.ktz-inv-btn-danger  { background: #dc2626; color: #fff; }
.ktz-inv-bm-active { background: var(--ktz-orange) !important; color: #fff !important; }

/* ── LOAD MORE ───────────────────────────────────────────────────  */
.ktz-inv-load-more { text-align: center; margin: 2rem 0; }

/* ── SINGLE STARTUP PAGE ─────────────────────────────────────────  */
.ktz-inv-single-hero { min-height: 260px; background: linear-gradient(135deg,var(--ktz-navy),#1e3a5f); background-size: cover; background-position: center; position: relative; border-radius: 16px; margin-bottom: 2rem; }
.ktz-inv-single-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 60%, transparent 100%); border-radius: 16px; display: flex; align-items: flex-end; padding: 2rem; }
.ktz-inv-single-header { display: flex; gap: 1.25rem; align-items: flex-end; }
.ktz-inv-single-logo { width: 80px; height: 80px; border-radius: 14px; object-fit: cover; border: 3px solid rgba(255,255,255,.3); flex-shrink: 0; }
.ktz-inv-logo-lg { width: 80px; height: 80px; border-radius: 14px; background: linear-gradient(135deg,var(--ktz-orange),var(--ktz-orange-dk)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; font-weight: 800; flex-shrink: 0; }
.ktz-inv-single-title-wrap h1 { color: #fff; font-size: 2rem; margin: 0 0 .3rem; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.ktz-inv-tagline { color: rgba(255,255,255,.85); font-size: 1rem; margin: 0 0 .6rem; }
.ktz-inv-single-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.ktz-inv-single-body { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; }

/* ── STAT CARDS ──────────────────────────────────────────────────  */
.ktz-inv-stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: .75rem; margin-bottom: 2rem; }
.ktz-inv-stat-card { background: var(--ktz-white); border: 1px solid var(--ktz-border); border-radius: 10px; padding: .9rem; text-align: center; }
.ktz-inv-stat-label { font-size: .72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: .3rem; }
.ktz-inv-stat-value { font-size: 1.25rem; font-weight: 800; color: var(--ktz-orange); }

/* ── FINANCIAL HIGHLIGHTS ────────────────────────────────────────  */
.ktz-inv-highlights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: .75rem; margin: .75rem 0; }
.ktz-inv-highlight-card { background: var(--ktz-orange-lt); border: 1px solid #fdd5b1; border-radius: 10px; padding: .85rem; text-align: center; }
.ktz-inv-highlight-label { font-size: .72rem; color: var(--ktz-orange-dk); text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: .3rem; font-weight: 700; }
.ktz-inv-highlight-val { font-size: 1.1rem; font-weight: 800; color: var(--ktz-text); }

/* ── SECTION ─────────────────────────────────────────────────────  */
.ktz-inv-section { margin-bottom: 2rem; }
.ktz-inv-section h2 { font-size: 1.15rem; font-weight: 700; color: var(--ktz-text); margin: 0 0 .75rem; border-bottom: 2px solid var(--ktz-border); padding-bottom: .5rem; }
.ktz-inv-prose { color: #334155; line-height: 1.75; font-size: .95rem; white-space: pre-line; }
.ktz-inv-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 10px; overflow: hidden; }
.ktz-inv-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── SIDEBAR ─────────────────────────────────────────────────────  */
.ktz-inv-single-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.ktz-inv-sidebar-box { background: var(--ktz-white); border: 1px solid var(--ktz-border); border-radius: 12px; padding: 1.25rem; }
.ktz-inv-sidebar-box h3 { font-size: 1rem; margin: 0 0 .75rem; color: var(--ktz-text); }
.ktz-inv-cta-box { background: var(--ktz-orange-lt); border-color: #fdd5b1; }
.ktz-inv-cta-box textarea { width: 100%; border: 1px solid var(--ktz-border); border-radius: 8px; padding: .6rem; font-size: .88rem; margin-bottom: .75rem; resize: vertical; box-sizing: border-box; }

/* ── HOME WIDGET ─────────────────────────────────────────────────  */
.ktz-inv-home-widget { background: var(--ktz-white); border: 1px solid var(--ktz-border); border-radius: 16px; padding: 2rem; margin: 2rem 0; }
.ktz-inv-hw-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.ktz-inv-hw-header h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 .25rem; color: var(--ktz-text); }
.ktz-inv-hw-header p  { color: var(--ktz-muted); margin: 0; font-size: .88rem; }
.ktz-inv-hw-actions   { display: flex; gap: .6rem; flex-wrap: wrap; }
.ktz-inv-hw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.ktz-inv-hw-card { background: var(--ktz-bg); border: 1px solid var(--ktz-border); border-radius: 12px; padding: 1rem; text-decoration: none !important; color: inherit; display: block; transition: box-shadow .2s, transform .15s; }
.ktz-inv-hw-card:hover { box-shadow: 0 6px 20px rgba(244,124,32,.15); transform: translateY(-2px); border-color: #fdd5b1; }
.ktz-inv-hw-card-top { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.ktz-inv-hw-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.ktz-inv-hw-logo-placeholder { width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(135deg,var(--ktz-orange),var(--ktz-orange-dk)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.ktz-inv-hw-card-top h4 { font-size: .95rem; font-weight: 700; margin: 0 0 .1rem; color: var(--ktz-text); }
.ktz-inv-hw-card-top p  { font-size: .8rem; color: var(--ktz-muted); margin: 0; line-height: 1.4; }
.ktz-inv-hw-star { color: var(--ktz-orange); }
.ktz-inv-hw-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem; }
.ktz-inv-hw-raise { font-size: .82rem; color: var(--ktz-orange); font-weight: 700; }
.ktz-inv-hw-footer { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── INVESTORS HOME WIDGET ───────────────────────────────────────  */
.ktz-inv-investors-widget { margin: 2rem 0; }
.ktz-inv-hw-inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.ktz-inv-hw-inv-card { background: var(--ktz-bg); border: 1px solid var(--ktz-border); border-radius: 12px; padding: 1.1rem; transition: box-shadow .2s, transform .15s; }
.ktz-inv-hw-inv-card:hover { box-shadow: 0 6px 20px rgba(244,124,32,.15); transform: translateY(-2px); border-color: #fdd5b1; }
.ktz-inv-hw-inv-top { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.ktz-inv-hw-inv-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ktz-inv-hw-inv-avatar--placeholder { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg,var(--ktz-orange),var(--ktz-orange-dk)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem; }
.ktz-inv-hw-inv-info h4 { font-size: .95rem; font-weight: 700; margin: 0 0 .1rem; color: var(--ktz-text); }
.ktz-inv-hw-inv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; background: var(--ktz-white); border-radius: 8px; padding: .6rem; font-size: .82rem; margin-top: .5rem; }
.ktz-inv-hw-inv-meta > div { display: flex; flex-direction: column; }
.ktz-inv-hw-inv-meta strong { color: var(--ktz-text); font-size: .88rem; }
.ktz-inv-meta-label { font-size: .7rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }

/* ── POPUP ───────────────────────────────────────────────────────  */
.ktz-inv-popup { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 99999; align-items: center; justify-content: center; }
.ktz-inv-popup-inner { background: var(--ktz-white); border-radius: 20px; padding: 2.5rem; max-width: 380px; text-align: center; position: relative; border-top: 4px solid var(--ktz-orange); }
.ktz-inv-popup-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #94a3b8; }
.ktz-inv-popup-icon { font-size: 3rem; margin-bottom: .75rem; }
.ktz-inv-popup-inner h3 { font-size: 1.4rem; font-weight: 800; margin: 0 0 .5rem; color: var(--ktz-text); }
.ktz-inv-popup-inner p  { color: var(--ktz-muted); margin: 0 0 1.5rem; }
.ktz-inv-popup-btns { display: flex; gap: .75rem; justify-content: center; margin-bottom: 1rem; }
.ktz-inv-popup-skip { font-size: .82rem; color: #94a3b8; text-decoration: none; }

/* ── DASHBOARD ───────────────────────────────────────────────────  */
.ktz-inv-dash { max-width: 1000px; margin: 0 auto; }
.ktz-inv-dash-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.ktz-inv-dash-header h1 { font-size: 1.8rem; font-weight: 800; margin: 0; }
.ktz-inv-dash-tab-wrap { width: 100%; }
.ktz-inv-subtabs { display: flex; gap: .4rem; flex-wrap: wrap; border-bottom: 2px solid var(--ktz-border); margin-bottom: 1.5rem; padding-bottom: .5rem; }
.ktz-inv-stab { padding: .45rem 1rem; border-radius: 8px 8px 0 0; font-size: .87rem; font-weight: 600; color: var(--ktz-muted) !important; text-decoration: none !important; white-space: nowrap; transition: all .15s; }
.ktz-inv-stab:hover { background: var(--ktz-orange-lt); color: var(--ktz-orange) !important; }
.ktz-inv-stab.active { background: var(--ktz-orange); color: #fff !important; }

/* ── OVERVIEW STATS ──────────────────────────────────────────────  */
.ktz-inv-overview-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.ktz-inv-ov-stat { background: var(--ktz-bg); border: 1px solid var(--ktz-border); border-radius: 12px; padding: 1.25rem; text-align: center; }
.ktz-inv-ov-num { display: block; font-size: 2rem; font-weight: 900; color: var(--ktz-orange); margin-bottom: .25rem; }
.ktz-inv-ov-stat span:last-child { font-size: .82rem; color: var(--ktz-muted); }
.ktz-inv-empty-state { text-align: center; padding: 3rem; color: var(--ktz-muted); }
.ktz-inv-empty-state h2 { font-size: 1.5rem; color: var(--ktz-text); margin-bottom: .5rem; }

/* ── STATUS BADGES ───────────────────────────────────────────────  */
.ktz-inv-status-badge { border-radius: 999px; padding: .3em .9em; font-size: .82rem; font-weight: 700; }
.ktz-inv-status-active    { background: #dcfce7; color: #16a34a; }
.ktz-inv-status-pending   { background: #fff4ec; color: var(--ktz-orange); }
.ktz-inv-status-rejected  { background: #fee2e2; color: #dc2626; }
.ktz-inv-status-suspended { background: var(--ktz-bg); color: var(--ktz-muted); }

/* ── INTERESTS / PIPELINE ────────────────────────────────────────  */
.ktz-inv-interests-list, .ktz-inv-pipeline-list { display: flex; flex-direction: column; gap: 1rem; }
.ktz-inv-interest-row, .ktz-inv-pipeline-row { display: flex; gap: 1rem; align-items: flex-start; background: var(--ktz-bg); border: 1px solid var(--ktz-border); border-radius: 10px; padding: 1rem; }
.ktz-inv-av-sm { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,var(--ktz-orange),var(--ktz-orange-dk)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1rem; }
.ktz-inv-interest-info { flex: 1; }
.ktz-inv-interest-info strong { font-size: .95rem; }
.ktz-inv-interest-msg { font-style: italic; color: var(--ktz-muted); font-size: .87rem; margin: .4rem 0 .25rem; }
.ktz-inv-interest-check { text-align: right; font-size: .85rem; }
.ktz-inv-pipeline-info { flex: 1; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ktz-inv-pipeline-info a { text-decoration: none !important; }
.ktz-inv-pipeline-status { text-align: right; display: flex; flex-direction: column; gap: .25rem; align-items: flex-end; }
.ktz-inv-logo-sm { width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(135deg,var(--ktz-orange),var(--ktz-orange-dk)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }

/* ── FORM ────────────────────────────────────────────────────────  */
.ktz-inv-form-wrap { background: var(--ktz-white); border: 1px solid var(--ktz-border); border-radius: 16px; padding: 2rem; }
.ktz-inv-form-wrap h2 { margin: 0 0 1.5rem; font-size: 1.3rem; }
.ktz-inv-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.ktz-inv-fg { display: flex; flex-direction: column; gap: .4rem; }
.ktz-inv-fg--full { grid-column: 1 / -1; }
.ktz-inv-fg label { font-size: .85rem; font-weight: 600; color: #374151; }
.ktz-inv-fg input, .ktz-inv-fg select, .ktz-inv-fg textarea { border: 1px solid #d1d5db; border-radius: 8px; padding: .6rem .85rem; font-size: .9rem; color: var(--ktz-text); width: 100%; box-sizing: border-box; }
.ktz-inv-fg input:focus, .ktz-inv-fg select:focus, .ktz-inv-fg textarea:focus { border-color: var(--ktz-orange); outline: 2px solid #fdd5b1; }

/* ── ADMIN ───────────────────────────────────────────────────────  */
.ktz-inv-admin { max-width: 1100px; margin: 0 auto; }
.ktz-inv-admin h1 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.ktz-inv-admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 2rem; }
.ktz-inv-admin-stat { background: var(--ktz-white); border: 1px solid var(--ktz-border); border-radius: 12px; padding: 1.25rem; text-align: center; }
.ktz-inv-admin-stat--alert .ktz-inv-ov-num { color: #dc2626; }
.ktz-inv-admin-section { background: var(--ktz-white); border: 1px solid var(--ktz-border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; overflow-x: auto; }
.ktz-inv-admin-section h2 { font-size: 1.1rem; margin: 0 0 1rem; }
.ktz-inv-admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ktz-inv-admin-table th { text-align: left; padding: .6rem .75rem; background: var(--ktz-bg); border-bottom: 2px solid var(--ktz-border); font-weight: 700; color: var(--ktz-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.ktz-inv-admin-table td { padding: .7rem .75rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.ktz-inv-admin-table tr:hover td { background: var(--ktz-orange-lt); }

/* ── NOTICES ─────────────────────────────────────────────────────  */
.ktz-inv-notice { padding: .85rem 1.1rem; border-radius: 8px; font-size: .9rem; margin-top: .75rem; background: var(--ktz-bg); color: var(--ktz-muted); }
.ktz-inv-notice--success { background: #dcfce7; color: #15803d; }
.ktz-inv-notice--error   { background: #fee2e2; color: #dc2626; }
.ktz-inv-notice--info    { background: #fff4ec; color: var(--ktz-orange); border: 1px solid #fdd5b1; }

/* ── LOADING / EMPTY ─────────────────────────────────────────────  */
.ktz-inv-loading { grid-column: 1/-1; text-align: center; padding: 3rem; color: #94a3b8; }
.ktz-inv-empty   { grid-column: 1/-1; text-align: center; padding: 3rem; color: #94a3b8; }

/* ── PITCH ───────────────────────────────────────────────────────  */
.ktz-inv-pitch-section { display: flex; flex-direction: column; gap: 1.5rem; }
.ktz-inv-pitch-item { background: var(--ktz-bg); border: 1px solid var(--ktz-border); border-radius: 10px; padding: 1.25rem; }
.ktz-inv-pitch-item h3 { margin: 0 0 .6rem; }

/* ── UPGRADE WIDGET ──────────────────────────────────────────────  */
.ktz-inv-upgrade-wrap { max-width: 900px; margin: 0 auto; }
.ktz-inv-upgrade-wrap h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 .4rem; }
.ktz-inv-upgrade-intro { color: var(--ktz-muted); margin: 0 0 1.5rem; }
.ktz-inv-upgrade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1rem; margin-top: 1rem; }
.ktz-inv-upgrade-card { background: var(--ktz-bg); border: 2px solid var(--ktz-border); border-radius: 14px; padding: 1.25rem 1rem; text-align: center; transition: box-shadow .2s, border-color .2s; }
.ktz-inv-upgrade-card:hover { box-shadow: var(--ktz-shadow); }
.ktz-inv-upgrade-card--active { border-color: var(--ktz-orange); background: var(--ktz-orange-lt); }
.ktz-inv-upgrade-card-icon { font-size: 2.2rem; margin-bottom: .5rem; }
.ktz-inv-upgrade-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .4rem; color: var(--ktz-text); }
.ktz-inv-upgrade-card p  { font-size: .83rem; color: var(--ktz-muted); margin: 0 0 .9rem; line-height: 1.4; }
.ktz-inv-upgrade-active-badge { font-size: .8rem; font-weight: 700; color: #16a34a; background: #dcfce7; border-radius: 999px; padding: .3em .8em; display: inline-block; }
.ktz-inv-upgrade-note { font-size: .8rem; color: #94a3b8; }

/* ── REGISTRATION 5-TYPE SELECTOR ───────────────────────────────  */
.ktz-auth-card--wide { max-width: 680px !important; }
.ktz-acct-types--5 { display: grid !important; grid-template-columns: repeat(5,1fr) !important; gap: .4rem !important; }
.ktz-acct-type--inv { border-color: #fdd5b1 !important; background: var(--ktz-orange-lt) !important; }
.ktz-acct-type--inv.active { border-color: var(--ktz-orange) !important; background: var(--ktz-orange) !important; color: #fff !important; }
.ktz-acct-type--inv.active strong, .ktz-acct-type--inv.active small { color: #fff !important; }
@media (max-width: 560px) { .ktz-acct-types--5 { grid-template-columns: repeat(3,1fr) !important; } }
@media (max-width: 380px) { .ktz-acct-types--5 { grid-template-columns: repeat(2,1fr) !important; } }

/* ── RESPONSIVE ──────────────────────────────────────────────────  */
@media (max-width: 768px) {
  .ktz-inv-single-body  { grid-template-columns: 1fr; }
  .ktz-inv-form-grid    { grid-template-columns: 1fr; }
  .ktz-inv-admin-stats  { grid-template-columns: 1fr 1fr; }
  .ktz-inv-hw-grid      { grid-template-columns: 1fr; }
  .ktz-inv-hero h1      { font-size: 1.6rem; }
  .ktz-inv-single-header { flex-direction: column; align-items: flex-start; }
  .ktz-inv-table { font-size: .8rem; }
  .ktz-inv-table th, .ktz-inv-table td { padding: .6rem .5rem; }
}
@media (max-width: 480px) {
  .ktz-inv-admin-stats { grid-template-columns: 1fr; }
  .ktz-inv-grid        { grid-template-columns: 1fr; }
  .ktz-inv-hw-inv-grid { grid-template-columns: 1fr; }
}

/* ── SINGLE INVESTOR PROFILE PAGE ───────────────────────────────── */
.ktz-inv-ifull { max-width: 1100px; margin: 0 auto; padding: 1rem; }

/* Header */
.ktz-inv-iprofile-header {
    display: flex; gap: 2rem; justify-content: space-between;
    background: var(--ktz-white); border: 1px solid var(--ktz-border);
    border-radius: 16px; padding: 2rem; margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.ktz-inv-iprofile-header-left { display: flex; gap: 1.5rem; align-items: flex-start; flex: 1; }
.ktz-inv-iprofile-avatar img,
.ktz-inv-iprofile-avatar-ph {
    width: 90px; height: 90px; border-radius: 16px; object-fit: cover; flex-shrink: 0;
}
.ktz-inv-iprofile-avatar-ph {
    background: linear-gradient(135deg,var(--ktz-orange),var(--ktz-orange-dk));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2.2rem; font-weight: 800;
}
.ktz-inv-iprofile-title h1 { font-size: 1.8rem; font-weight: 800; margin: 0 0 .2rem; color: var(--ktz-text); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ktz-inv-iverified { color: var(--ktz-orange); font-size: 1rem; }
.ktz-inv-ifirm { font-size: 1rem; color: var(--ktz-muted); margin: 0 0 .2rem; font-weight: 600; }
.ktz-inv-itype-tag { font-size: .85rem; color: var(--ktz-muted); margin: 0 0 .5rem; }
.ktz-inv-iactive-pill { display: inline-block; background: #dcfce7; color: #16a34a; border-radius: 999px; padding: .3em .9em; font-size: .82rem; font-weight: 700; margin-bottom: .6rem; }
.ktz-inv-isocials { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.ktz-inv-isocial-btn { background: var(--ktz-bg); border: 1px solid var(--ktz-border); border-radius: 8px; padding: .35rem .85rem; font-size: .82rem; font-weight: 600; color: var(--ktz-text) !important; text-decoration: none !important; transition: all .15s; }
.ktz-inv-isocial-btn:hover { border-color: var(--ktz-orange); color: var(--ktz-orange) !important; }

/* CTA box */
.ktz-inv-iprofile-cta { width: 240px; flex-shrink: 0; }
.ktz-inv-icta-note { font-size: .83rem; color: var(--ktz-muted); margin: 0 0 .75rem; }
.ktz-inv-submit-btn { font-size: .95rem; padding: .75rem 1.25rem; }
.ktz-inv-icta-meta { display: flex; flex-direction: column; gap: .3rem; margin-top: .75rem; font-size: .78rem; color: var(--ktz-muted); }
.ktz-inv-isubmission-note { background: var(--ktz-orange-lt); border: 1px solid #fdd5b1; border-radius: 8px; padding: .75rem; margin-top: .75rem; font-size: .82rem; }
.ktz-inv-isubmission-note strong { color: var(--ktz-orange); }
.ktz-inv-isubmission-note p { margin: .4rem 0 0; color: var(--ktz-text); line-height: 1.5; }

/* Stats row */
.ktz-inv-istat-row {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
    gap: .75rem; margin-bottom: 1.5rem;
}
.ktz-inv-istat { background: var(--ktz-white); border: 1px solid var(--ktz-border); border-radius: 10px; padding: .85rem 1rem; }
.ktz-inv-istat-label { display: block; font-size: .72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; }
.ktz-inv-istat-val { font-size: 1.05rem; font-weight: 800; color: var(--ktz-text); }

/* Body 2-col */
.ktz-inv-ibody { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; }
.ktz-inv-ibody-main {}
.ktz-inv-isection { background: var(--ktz-white); border: 1px solid var(--ktz-border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.25rem; }
.ktz-inv-isection h2 { font-size: 1rem; font-weight: 700; color: var(--ktz-text); margin: 0 0 .85rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ktz-border); text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; }

/* Portfolio grid */
.ktz-inv-iportfolio-grid { display: flex; flex-direction: column; gap: .6rem; }
.ktz-inv-iportfolio-card { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; background: var(--ktz-bg); border-radius: 8px; }
.ktz-inv-iportfolio-logo { width: 36px; height: 36px; border-radius: 7px; background: linear-gradient(135deg,var(--ktz-orange),var(--ktz-orange-dk)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .78rem; flex-shrink: 0; }
.ktz-inv-iportfolio-card strong { display: block; font-size: .9rem; color: var(--ktz-text); }
.ktz-inv-iportfolio-card span { font-size: .78rem; color: var(--ktz-muted); }

/* Sidebar boxes */
.ktz-inv-ibody-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.ktz-inv-isidebar-box { background: var(--ktz-white); border: 1px solid var(--ktz-border); border-radius: 12px; padding: 1.1rem; }
.ktz-inv-isidebar-box h3 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ktz-muted); margin: 0 0 .75rem; }
.ktz-inv-isidebar-box--meta { background: var(--ktz-bg); }
.ktz-inv-itag-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.ktz-inv-ichip { background: var(--ktz-bg); border: 1px solid var(--ktz-border); border-radius: 999px; padding: .25em .75em; font-size: .8rem; color: var(--ktz-text); }
.ktz-inv-imeta-row { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--ktz-border); font-size: .83rem; }
.ktz-inv-imeta-row:last-child { border-bottom: none; }
.ktz-inv-imeta-label { color: var(--ktz-muted); }

/* Form section titles */
.ktz-inv-form-section-title { font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ktz-orange); margin: 1.75rem 0 .75rem; padding-bottom: .4rem; border-bottom: 2px solid var(--ktz-orange-lt); }

/* Responsive */
@media (max-width: 768px) {
    .ktz-inv-iprofile-header { flex-direction: column; }
    .ktz-inv-iprofile-cta    { width: 100%; }
    .ktz-inv-ibody           { grid-template-columns: 1fr; }
    .ktz-inv-istat-row       { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 480px) {
    .ktz-inv-istat-row       { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE FIXES — pitch modal, forms, investor page
   ============================================================ */

/* Pitch modal — prevent text cutoff on mobile */
#ktz-pitch-modal > div {
    padding: 0 !important;
    max-height: 95vh;
    overflow-y: auto;
}
#ktz-pitch-modal .kipr2-modal-body {
    padding: 1rem !important;
}
@media (max-width: 640px) {
    #ktz-pitch-modal > div {
        width: 98% !important;
        border-radius: 12px !important;
    }
    #ktz-pitch-modal [style*="grid-template-columns:1fr 1fr"] {
        display: block !important;
    }
    #ktz-pitch-modal [style*="grid-template-columns:1fr 1fr"] > div {
        margin-bottom: .65rem;
    }
    #ktz-pitch-modal [style*="grid-template-columns:1fr 1fr;gap:.75rem"] {
        display: block !important;
    }
    #ktz-pitch-modal select,
    #ktz-pitch-modal input,
    #ktz-pitch-modal textarea {
        font-size: 16px !important; /* prevents iOS zoom */
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Header */
    #ktz-pitch-modal [style*="padding:1.5rem 2rem"] {
        padding: 1rem !important;
    }
    /* Body */
    #ktz-pitch-modal [style*="padding:1.75rem 2rem"] {
        padding: 1rem !important;
    }
}

/* Investor single page — mobile responsive */
@media (max-width: 700px) {
    .kipr2 [style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: 1fr 1fr !important;
    }
    .kipr2 [style*="display:flex;gap:1.5rem"] {
        flex-direction: column !important;
        gap: .75rem !important;
    }
    .kipr2 [style*="min-width:180px;flex-shrink:0"] {
        width: 100% !important;
    }
    .kipr2 [style*="grid-template-columns:repeat(auto-fill,minmax(200px"] {
        grid-template-columns: 1fr 1fr !important;
    }
    .kipr2 h1 { font-size: 1.35rem !important; }
    .kipr2-tab { padding: .4rem .7rem !important; font-size: .82rem !important; }
}

/* Startup single page — mobile */
@media (max-width: 720px) {
    .kss2 [style*="grid-template-columns:1fr 290px"] { display: block !important; }
    .kss2 [style*="grid-template-columns:1fr 290px"] > div:last-child { margin-top: 1rem; }
    .kss2 [style*="position:sticky"] { position: static !important; }
    .kss2 [style*="grid-template-columns:1fr 1fr"] { display: block !important; }
    .kss2 [style*="grid-template-columns:1fr 1fr"] > div { margin-bottom: .75rem; }
    .kss2 h1 { font-size: 1.3rem !important; }
    .kss2 [style*="height:220px"] { height: 160px !important; }
}

/* Dashboard startup form — prevent overflow on mobile */
@media (max-width: 640px) {
    .ktz-wrap.ktz-dashboard { flex-direction: column !important; }
    .ktz-dash-sidebar { width: 100% !important; }
    [style*="display:grid;grid-template-columns:1fr 1fr;gap:.85rem"] {
        display: block !important;
    }
    [style*="display:grid;grid-template-columns:1fr 1fr;gap:.85rem"] > div {
        margin-bottom: .65rem;
    }
    /* Form inputs full width */
    #ktz-sf2-company_name, #ktz-sf2-tagline, #ktz-sf2-logo,
    #ktz-sf2-cover_image, #ktz-sf2-website, #ktz-sf2-industry {
        font-size: 16px !important;
    }
}

/* OpenVC investor table — mobile */
@media (max-width: 820px) {
    .ktz-iw2-hdr { display: none !important; }
    .ktz-iw2-row {
        grid-template-columns: 46px 1fr auto !important;
        gap: .5rem !important;
    }
    .ktz-iw2-row > div:nth-child(3),
    .ktz-iw2-row > div:nth-child(4),
    .ktz-iw2-row > div:nth-child(5),
    .ktz-iw2-row > div:nth-child(6) { display: none !important; }
}

/* Browse investors page filters — stay inline */
@media (max-width: 640px) {
    .kib2-filter {
        flex-direction: column !important;
    }
    .kib2-filter input,
    .kib2-filter select,
    .kib2-filter button {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* General: prevent any input/select overflow */
.ktz-wrap input, .ktz-wrap select, .ktz-wrap textarea {
    max-width: 100%;
    word-break: break-word;
}
