/* InfluMatch - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&display=swap');

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

:root {
  --primary:       #1a73e8;
  --primary-light: #e8f0fe;
  --primary-dark:  #1557b0;
  --success:       #34a853;
  --success-bg:    #e6f4ea;
  --warning:       #f9ab00;
  --warning-bg:    #fef7e0;
  --error:         #ea4335;
  --error-bg:      #fce8e6;
  --info-bg:       #e8f0fe;
  --purple:        #7c4dff;
  --surface:       #ffffff;
  --surface-2:     #f8f9fa;
  --surface-3:     #f1f3f4;
  --text:          #202124;
  --text-2:        #5f6368;
  --text-3:        #9aa0a6;
  --border:        #e0e0e0;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.05);
  --shadow-md:     0 4px 12px rgba(0,0,0,.08);
  --ff:            'DM Sans', sans-serif;
  --ff-serif:      'DM Serif Display', serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--ff); color: var(--text); background: var(--surface-2); font-size: 15px; line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { opacity: .85; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: var(--ff); }

/* ── NAVBAR ────────────────────────────────────── */
.navbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 200; }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 16px; }
.nav-logo { font-family: var(--ff-serif); font-size: 22px; color: var(--primary); text-decoration: none; }
.nav-logo span { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: background .15s; }
.nav-link:hover { background: var(--surface-2); color: var(--text); opacity: 1; }
.nav-btn { padding: 8px 18px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .15s; }
.nav-btn:hover { background: var(--primary-dark); opacity: 1; }
.nav-user { padding: 6px 12px; border-radius: 20px; background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 600; }
.nav-hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; margin-left: auto; }
.nav-mobile { display: none; flex-direction: column; padding: 8px 24px 16px; border-top: 1px solid var(--border); }
.nav-mobile a { padding: 10px 0; font-size: 15px; color: var(--text); border-bottom: 1px solid var(--border); }
.nav-mobile.open { display: flex; }

/* ── FLASH ─────────────────────────────────────── */
.flash { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; font-size: 14px; font-weight: 500; }
.flash button { background: none; border: none; cursor: pointer; font-size: 16px; opacity: .6; }
.flash-success { background: var(--success-bg); color: #137333; border-bottom: 1px solid #a8d5b5; }
.flash-error   { background: var(--error-bg); color: #c5221f; border-bottom: 1px solid #f5c6c4; }
.flash-info    { background: var(--info-bg); color: var(--primary); border-bottom: 1px solid #bad2f5; }
.flash-warning { background: var(--warning-bg); color: #7b5800; border-bottom: 1px solid #fdd68a; }

/* ── LAYOUT ────────────────────────────────────── */
.container  { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 56px 0; }
.section-sm { padding: 32px 0; }
.page-wrap  { max-width: 1180px; margin: 0 auto; padding: 32px 24px; }

/* ── HERO ──────────────────────────────────────── */
.hero { background: linear-gradient(150deg,#f0f4ff 0%,#fff 55%); border-bottom: 1px solid var(--border); padding: 80px 24px 64px; text-align: center; }
.hero-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; background: var(--primary-light); color: var(--primary); font-size: 12px; font-weight: 600; margin-bottom: 20px; letter-spacing: .3px; }
.hero h1 { font-family: var(--ff-serif); font-size: 52px; line-height: 1.08; font-weight: 400; max-width: 640px; margin: 0 auto 16px; }
.hero h1 em { color: var(--primary); font-style: italic; }
.hero p { font-size: 17px; color: var(--text-2); max-width: 480px; margin: 0 auto 32px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── STATS ROW ─────────────────────────────────── */
.stats-row { display: flex; justify-content: center; gap: 56px; padding: 36px 24px; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num  { font-family: var(--ff-serif); font-size: 34px; color: var(--primary); display: block; }
.stat-label { font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* ── BUTTONS ───────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 11px 22px; border-radius: 10px; font-size: 14px; font-weight: 500; border: none; cursor: pointer; transition: all .15s; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); opacity: 1; color: #fff; }
.btn-outline { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); opacity: 1; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #2d9249; opacity: 1; color: #fff; }
.btn-danger  { background: var(--error); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ── CARDS ─────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: box-shadow .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow-md); border-color: rgba(26,115,232,.2); }
.card-body { padding: 20px; }

/* ── GRID ──────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }

/* ── INFLUENCER CARD ───────────────────────────── */
.inf-card { text-align: center; padding: 24px 16px; cursor: pointer; }
.inf-avatar { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--ff-serif); font-size: 22px; font-weight: 600; margin: 0 auto 12px; }
.inf-name  { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.inf-handle { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.inf-tags  { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.inf-stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 10px; }
.inf-stat-val { font-size: 15px; font-weight: 600; }
.inf-stat-lbl { font-size: 11px; color: var(--text-2); }
.inf-price { font-size: 18px; font-weight: 700; color: var(--primary); }
.inf-price span { font-size: 12px; font-weight: 400; color: var(--text-2); }

/* ── TAGS / BADGES ─────────────────────────────── */
.tag { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; display: inline-block; }
.tag-primary  { background: var(--primary-light); color: var(--primary); }
.tag-success  { background: var(--success-bg); color: #137333; }
.tag-warning  { background: var(--warning-bg); color: #7b5800; }
.tag-error    { background: var(--error-bg); color: #c5221f; }
.tag-info     { background: var(--info-bg); color: var(--primary); }
.tag-purple   { background: #f3e8ff; color: var(--purple); }
.tag-gray     { background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); }

/* ── FORMS ─────────────────────────────────────── */
.form-group   { margin-bottom: 18px; }
.form-label   { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,.12); }
.form-control.is-error { border-color: var(--error); }
.form-error   { font-size: 12px; color: var(--error); margin-top: 4px; }
.form-hint    { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.form-row     { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control   { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235f6368' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; max-width: 520px; margin: 40px auto; }
.form-title { font-family: var(--ff-serif); font-size: 28px; font-weight: 400; margin-bottom: 6px; }
.form-sub   { font-size: 14px; color: var(--text-2); margin-bottom: 24px; }
.form-footer { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 16px; }
.form-footer a { color: var(--primary); font-weight: 500; }

.type-toggle { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 22px; }
.type-btn { flex: 1; padding: 11px; text-align: center; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text-2); background: var(--surface); border: none; transition: all .15s; }
.type-btn:first-child { border-right: 1px solid var(--border); }
.type-btn.active { background: var(--primary); color: #fff; }

/* ── DASHBOARD ─────────────────────────────────── */
.dash-layout  { display: flex; min-height: calc(100vh - 60px); }
.dash-sidebar { width: 230px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border); padding: 20px 12px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.dash-content { flex: 1; padding: 28px 32px; overflow-x: hidden; }
.sidebar-section { font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: .8px; text-transform: uppercase; padding: 0 12px; margin: 16px 0 6px; }
.sidebar-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: all .15s; margin-bottom: 2px; }
.sidebar-item:hover { background: var(--surface-2); color: var(--text); opacity: 1; }
.sidebar-item.active { background: var(--primary-light); color: var(--primary); }
.sidebar-icon { font-size: 16px; width: 20px; text-align: center; }
.sidebar-badge { margin-left: auto; background: var(--error); color: #fff; border-radius: 20px; font-size: 10px; padding: 2px 7px; font-weight: 700; }
.dash-title { font-family: var(--ff-serif); font-size: 26px; font-weight: 400; margin-bottom: 24px; }
.dash-subtitle { font-size: 15px; color: var(--text-2); margin-bottom: 24px; }

/* ── METRICS ───────────────────────────────────── */
.metrics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 24px; }
.metric-card  { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.metric-label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.metric-value { font-size: 26px; font-weight: 600; color: var(--text); line-height: 1; }
.metric-change { font-size: 12px; margin-top: 6px; }
.metric-up   { color: var(--success); }
.metric-down { color: var(--error); }

/* ── TABLE ─────────────────────────────────────── */
.data-table   { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 11px 14px; text-align: left; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-2); }
.table-wrap   { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* ── FILTERS / CHIPS ───────────────────────────── */
.filters { display: flex; align-items: center; gap: 8px; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; position: sticky; top: 60px; z-index: 50; }
.chip { padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: all .15s; color: var(--text-2); }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.search-box { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 36px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface-2); flex: 1; max-width: 280px; }
.search-box input { border: none; background: transparent; outline: none; font-size: 13px; color: var(--text); width: 100%; }

/* ── PROFILE PAGE ──────────────────────────────── */
.profile-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 32px 0; }
.profile-header-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; gap: 28px; align-items: flex-start; }
.profile-avatar-lg { width: 104px; height: 104px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--ff-serif); font-size: 32px; font-weight: 700; flex-shrink: 0; }
.profile-name  { font-family: var(--ff-serif); font-size: 30px; font-weight: 400; margin-bottom: 4px; }
.profile-bio   { font-size: 14px; color: var(--text-2); line-height: 1.7; margin: 8px 0 14px; max-width: 560px; }
.profile-meta  { display: flex; gap: 20px; flex-wrap: wrap; }
.meta-item     { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.price-box     { background: var(--primary-light); border: 1px solid rgba(26,115,232,.25); border-radius: var(--radius); padding: 22px; min-width: 230px; text-align: center; }
.price-big     { font-size: 34px; font-weight: 700; color: var(--primary); }
.price-note    { font-size: 12px; color: var(--primary); opacity: .7; margin-bottom: 14px; }
.pkg-item { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 8px; cursor: pointer; transition: border-color .15s; text-align: left; }
.pkg-item:hover { border-color: var(--primary); }
.pkg-item.selected { border-color: var(--primary); background: var(--primary-light); }
.pkg-name  { font-size: 13px; font-weight: 600; }
.pkg-price { font-size: 14px; color: var(--primary); font-weight: 700; }
.pkg-desc  { font-size: 12px; color: var(--text-2); }

/* ── MESSAGING ─────────────────────────────────── */
.chat-layout { display: flex; height: 460px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.chat-sidebar { width: 220px; border-right: 1px solid var(--border); overflow-y: auto; }
.chat-thread { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background .1s; }
.chat-thread:hover, .chat-thread.active { background: var(--primary-light); }
.chat-thread-name { font-size: 13px; font-weight: 600; }
.chat-thread-last { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main { flex: 1; display: flex; flex-direction: column; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-bubble { padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; max-width: 80%; }
.chat-bubble.sent { background: var(--primary); color: #fff; border-radius: 12px 12px 2px 12px; align-self: flex-end; }
.chat-bubble.recv { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px 12px 12px 2px; align-self: flex-start; }
.chat-input-row { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.chat-input-row .form-control { flex: 1; }

/* ── RATINGS ───────────────────────────────────── */
.stars { color: var(--warning); }
.rating-row { display: flex; align-items: center; gap: 6px; }

/* ── SECTION HEADER ────────────────────────────── */
.sec-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sec-header h3 { font-size: 16px; font-weight: 600; }

/* ── HOW IT WORKS ──────────────────────────────── */
.how-step { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--border); }
.how-step:last-child { border-bottom: none; }
.how-num { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.how-text h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.how-text p  { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ── FOOTER ────────────────────────────────────── */
.footer { background: var(--text); color: rgba(255,255,255,.8); padding: 56px 24px 0; margin-top: 64px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; gap: 48px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { flex: 1.5; }
.footer-logo { font-family: var(--ff-serif); font-size: 24px; color: #fff; margin-bottom: 10px; }
.footer-logo span { color: rgba(255,255,255,.5); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links > div { display: flex; flex-direction: column; gap: 8px; }
.footer-heading { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.65); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding: 16px 0; font-size: 13px; color: rgba(255,255,255,.4); }

/* ── REVIEW CARD ───────────────────────────────── */
.review-card .reviewer { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rev-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.rev-name { font-size: 13px; font-weight: 600; }
.rev-date { font-size: 11px; color: var(--text-2); }
.rev-text { font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* ── CATEGORY PILLS ────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.cat-pill { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-2); transition: all .15s; text-decoration: none; }
.cat-pill:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); opacity: 1; }
.cat-icon { font-size: 18px; }

/* ── NOTIFICATION DOT ──────────────────────────── */
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--error); display: inline-block; }

/* ── EMPTY STATE ───────────────────────────────── */
.empty-state { text-align: center; padding: 56px 24px; color: var(--text-2); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }

/* ── BACK LINK ─────────────────────────────────── */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 13px; font-weight: 500; text-decoration: none; padding: 8px 0; margin-bottom: 16px; }
.back-link:hover { opacity: .8; }

/* ── DIVIDER ───────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ── PROGRESS ──────────────────────────────────── */
.progress-bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: var(--primary); transition: width .4s; }

/* ── PORTFOLIO GRID ────────────────────────────── */
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.port-item { aspect-ratio: 1; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.port-item img { width: 100%; height: 100%; object-fit: cover; }
.port-item:hover { opacity: .85; }

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1024px) {
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .cat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .hero h1 { font-size: 36px; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .dash-sidebar { display: none; }
  .dash-content { padding: 20px 16px; }
  .profile-header-inner { flex-direction: column; }
  .form-row { flex-direction: column; }
  .stats-row { gap: 28px; }
}
@media (max-width: 520px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
}
