:root {
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --paper: #f6f9fc;
  --brand: #092a5e;
  --cyan: #12bde8;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --shadow: 0 24px 80px rgba(21, 94, 239, .12);
}
* { box-sizing: border-box; min-width: 0; }
html { overflow-x: hidden; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 44%, #ffffff 100%);
  color: var(--ink);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.topbar {
  width: min(1200px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 18px 60px rgba(15,23,42,.08);
  position: relative;
  z-index: 20;
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: white; }
.brand strong { font-family: "Syne", sans-serif; font-size: 18px; white-space: nowrap; }
.brand small { color: var(--muted); white-space: nowrap; }
.nav-shell { margin-left: auto; position: relative; }
.menu-toggle {
  width: 46px; height: 46px; border: 1px solid #dbeafe; border-radius: 14px; background: white;
  display: grid; place-content: center; gap: 5px; cursor: pointer; box-shadow: 0 12px 28px rgba(15,23,42,.08);
}
.menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 999px; background: var(--brand); }
.topbar nav {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 240px; display: none;
  grid-template-columns: 1fr; gap: 6px; padding: 10px; border: 1px solid #dbeafe; border-radius: 18px;
  background: rgba(255,255,255,.98); box-shadow: 0 24px 70px rgba(15,23,42,.16);
}
.topbar.menu-open nav, .nav-shell:hover nav, .nav-shell:focus-within nav { display: grid; }
.topbar nav a, .auth-links a {
  padding: 11px 12px; border-radius: 12px; color: #475467; font-weight: 800; font-size: 13px;
}
.topbar nav a:hover, .auth-links a:hover { background: #eaf2ff; color: var(--brand); }
.topbar nav a.active { background: linear-gradient(135deg, var(--brand), var(--cyan)); color: white; }
.page { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; overflow-x: clip; }
.hero {
  min-height: 240px;
  border-radius: 28px;
  padding: 42px;
  margin-bottom: 20px;
  background:
    linear-gradient(135deg, rgba(15,23,42,.96), rgba(21,94,239,.92) 56%, rgba(8,145,178,.88)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: white;
  box-shadow: 0 28px 90px rgba(21,94,239,.24);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.hero.slim { min-height: 180px; display: block; }
.hero h1 { font-family: "Syne", sans-serif; font-size: 46px; line-height: 1.04; margin: 0 0 12px; max-width: 760px; letter-spacing: 0; }
.hero p { color: rgba(255,255,255,.78); max-width: 720px; line-height: 1.55; }
.eyebrow { color: #a7f3d0; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; font-size: 12px; margin: 0 0 8px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags span, .pill, .plan {
  display: inline-flex; border-radius: 999px; padding: 6px 9px; font-size: 12px; font-weight: 900; text-transform: uppercase;
  background: #eaf2ff; color: var(--brand);
}
.hero-tags span { background: rgba(255,255,255,.16); color: white; border: 1px solid rgba(255,255,255,.25); }
.plan-badge.plan-ultra { background: #0e7490; color: white; border: 1px solid #155e75; }
.plan-badge.plan-premium { background: #3730a3; color: white; border: 1px solid #312e81; }
.plan-badge.plan-ultra-premium { background: #c2410c; color: white; border: 1px solid #9a3412; }
.hero-tags .plan-badge.plan-ultra,
.hero-tags .plan-badge.plan-premium,
.hero-tags .plan-badge.plan-ultra-premium { box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.profile-plan-ultra-premium { border-top: 5px solid #f97316; }
.profile-plan-ultra { border-top: 5px solid #06b6d4; }
.profile-plan-premium { border-top: 5px solid #6366f1; }
.primary, .secondary {
  border: 0; border-radius: 999px; min-height: 44px; padding: 12px 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; cursor: pointer;
}
.primary { background: linear-gradient(135deg, var(--brand), var(--cyan)); color: white; box-shadow: 0 14px 28px rgba(21,94,239,.24); }
.secondary { background: white; color: #173a8a; border: 1px solid rgba(21,94,239,.16); }
.danger-button {
  border: 1px solid #fecdd3; border-radius: 999px; min-height: 44px; padding: 12px 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; cursor: pointer; background: #fff1f2; color: #be123c;
}
.metrics, .platform-grid, .grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px;
}
.metrics article, .platform-card, .panel, .profile-card {
  background: rgba(255,255,255,.94); border: 1px solid rgba(21,94,239,.10); border-radius: 18px; box-shadow: var(--shadow);
}
.metrics article { padding: 18px; display: grid; gap: 8px; }
.metrics span, .metrics small { display: block; color: var(--muted); }
.metrics strong { display: block; font-family: "Syne", sans-serif; font-size: 30px; margin: 0; letter-spacing: 0; }
.metrics .risk strong, .low { color: var(--red); }
.metric-head { display: flex; align-items: center; gap: 10px; }
.metric-head > span:last-child { font-weight: 900; color: #344054; }
.stat-icon {
  width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center;
  background: #eaf2ff; color: var(--brand); flex: 0 0 auto;
}
.stat-icon svg, .stat-row svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.likes-icon { background: #fff1f2; color: #be123c; }
.views-icon { background: #ecfeff; color: #0e7490; }
.comments-icon { background: #f0fdf4; color: #15803d; }
.posts-icon { background: #eef2ff; color: #3730a3; }
.risk-icon { background: #fef2f2; color: var(--red); }
.platform-card { padding: 20px; }
.platform-card.youtube { border-top: 4px solid #dc2626; }
.platform-card.instagram { border-top: 4px solid #d946ef; }
.platform-card.x { border-top: 4px solid #111827; }
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.big-number { font-family: "Syne", sans-serif; font-size: 34px; font-weight: 700; margin: 16px 0 4px; letter-spacing: 0; }
.stat-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.stat-row span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 999px; background: #f8fafc; border: 1px solid #eef2f6; }
.mini-split { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-weight: 900; }
.pos { color: var(--green); } .neg { color: var(--red); } .neu { color: #64748b; } .mix { color: var(--amber); }
.dashboard-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.panel { padding: 20px; overflow: hidden; }
.panel-head { margin-bottom: 16px; }
.panel-head h2, .profile-card h2 { margin: 0; font-family: "Syne", sans-serif; letter-spacing: 0; }
.panel-head p, .profile-card p, .muted { color: var(--muted); }
.risk-list { display: grid; gap: 10px; }
.risk-list a { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.risk-list small, td small { display: block; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.profiles-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.profile-card { padding: 22px; display: grid; gap: 14px; }
.profile-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; color: var(--muted); font-size: 13px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.period-tabs { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; background: white; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.period-tabs a { padding: 10px 15px; border-radius: 999px; color: var(--muted); font-weight: 900; display: inline-flex; align-items: center; gap: 8px; }
.period-tabs a.active { background: var(--brand); color: white; }
.tab-icon { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: #eaf2ff; color: var(--brand); font-size: 12px; }
.period-tabs a.active .tab-icon { background: rgba(255,255,255,.18); color: white; }
.calendar-filter { display: flex; align-items: center; padding: 0 6px; }
.calendar-filter label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.calendar-filter input { min-height: 38px; padding: 8px 10px; border-radius: 999px; }
.ops-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ops-strip article { background: white; border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: 14px; padding: 14px; box-shadow: 0 14px 36px rgba(15,23,42,.06); }
.ops-strip article.risk { border-left-color: var(--red); }
.ops-strip article.warn { border-left-color: var(--amber); }
.ops-strip article.good { border-left-color: var(--green); }
.ops-strip strong, .ops-strip span { display: block; }
.ops-strip span { color: var(--muted); margin-top: 4px; font-size: 13px; line-height: 1.45; }
.table-panel { padding: 0; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.table-panel .panel-head { padding: 18px 18px 0; }
table { width: 100%; min-width: 980px; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; font-size: 14px; }
th { background: #f5f9ff; color: #475467; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
td a { color: #175cd3; font-weight: 900; }
.sentiment { display: inline-flex; border-radius: 999px; padding: 6px 9px; font-size: 12px; font-weight: 900; text-transform: capitalize; background: #eef2f6; color: #475467; }
.sentiment.positive { background: #dcfae6; color: #067647; }
.sentiment.negative { background: #fee4e2; color: #b42318; }
.sentiment.mixed { background: #fef0c7; color: #b54708; }
.sentiment.neutral { background: #e0f2fe; color: #026aa2; }
.form-panel, .form { display: grid; gap: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 240px; gap: 16px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 8px; color: #344054; font-weight: 900; }
input, textarea, select { width: 100%; border: 1px solid #d0d5dd; border-radius: 12px; padding: 11px 12px; background: white; color: var(--ink); }
textarea { resize: vertical; }
.inline-form, .review-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.review-form input { min-width: 180px; }
.flash-stack { display: grid; gap: 10px; margin-bottom: 18px; }
.flash, .notice { padding: 12px 14px; border-radius: 10px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-weight: 800; }
.notice.danger { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.auth-body {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    linear-gradient(135deg, rgba(15,23,42,.82), rgba(21,94,239,.78), rgba(8,145,178,.72)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.auth-card { width: min(480px, 100%); background: rgba(255,255,255,.96); border-radius: 24px; padding: 30px; box-shadow: 0 24px 80px rgba(6,18,30,.28); }
.auth-card h1 { font-family: "Syne", sans-serif; font-size: 34px; line-height: 1.05; margin-bottom: 10px; letter-spacing: 0; }
.auth-card p { color: var(--muted); line-height: 1.55; }
.auth-brand { margin-bottom: 24px; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.auth-links.single { justify-content: flex-end; }
.empty { text-align: center; color: var(--muted); padding: 34px; }
.landing-shell { width: min(1240px, 100%); margin: -22px auto 0; }
.landing-nav {
  min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  position: relative; z-index: 3;
}
.landing-brand img { width: 58px; height: 58px; }
.landing-brand strong { font-size: 22px; }
.landing-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.landing-links a { color: #475467; font-size: 13px; font-weight: 900; }
.landing-links a:hover { color: var(--brand); }
.login-link { min-width: 92px; }
.splash-hero {
  position: relative; min-height: min(760px, calc(100vh - 118px)); border-radius: 32px; overflow: hidden;
  display: grid; align-items: center; padding: clamp(28px, 6vw, 72px); color: white; box-shadow: 0 34px 100px rgba(9,42,94,.30);
  background: #061832;
}
.splash-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.splash-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,13,32,.88), rgba(3,13,32,.54) 48%, rgba(3,13,32,.16));
}
.splash-copy { position: relative; z-index: 1; max-width: 820px; }
.splash-copy h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: .94; margin: 10px 0 18px; letter-spacing: 0; max-width: 920px; }
.splash-copy p { color: rgba(255,255,255,.84); line-height: 1.65; font-size: 18px; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ghost-link {
  min-height: 44px; padding: 12px 16px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; color: white; border: 1px solid rgba(255,255,255,.34); font-weight: 900;
  background: rgba(255,255,255,.08);
}
.hero-proof {
  display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 12px; margin-top: 34px;
}
.hero-proof span {
  display: grid; gap: 2px; min-width: 150px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.72);
  backdrop-filter: blur(12px); font-size: 12px; font-weight: 800;
}
.hero-proof strong { color: white; font-size: 20px; }
.landing-section {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 26px; align-items: start;
  padding: 72px 0 30px;
}
.landing-section h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; margin: 8px 0 14px; }
.landing-section p { color: var(--muted); line-height: 1.65; }
.feature-grid, .landing-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-grid article, .landing-metrics article {
  background: white; border: 1px solid rgba(21,94,239,.10); border-radius: 18px; padding: 22px; box-shadow: var(--shadow);
}
.feature-grid strong, .feature-grid span, .landing-metrics strong, .landing-metrics span { display: block; }
.feature-grid span, .landing-metrics span { color: var(--muted); line-height: 1.5; margin-top: 8px; }
.feature-index {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px;
  background: #eaf2ff; color: var(--brand); font-size: 12px; font-weight: 900; margin-bottom: 18px;
}
.landing-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 24px 0 34px; }
.metric-icon {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--brand), var(--cyan)); color: white; font-weight: 900;
}
.workflow-band {
  margin-bottom: 58px; padding: 30px; border-radius: 24px; background: #071a36; color: white;
  display: grid; grid-template-columns: .7fr 1.3fr; gap: 24px; align-items: center;
  box-shadow: 0 28px 90px rgba(9,42,94,.22);
}
.workflow-band h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.05; }
.workflow-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.workflow-steps span {
  min-height: 76px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); font-weight: 900;
}
@media (max-width: 900px) {
  .topbar { align-items: center; gap: 12px; }
  .brand small { display: none; }
  .hero { flex-direction: column; align-items: flex-start; padding: 28px; border-radius: 22px; }
  .topbar nav { right: 0; left: auto; }
  .dashboard-grid, .two-col, .three-col, .landing-section, .feature-grid, .landing-metrics, .workflow-band, .workflow-steps { grid-template-columns: 1fr; }
  .profiles-grid { grid-template-columns: 1fr; }
  .profile-meta { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .period-tabs { border-radius: 18px; width: 100%; }
  .period-tabs a { flex: 1; justify-content: center; }
  .calendar-filter { width: 100%; padding: 4px; }
  .calendar-filter label { width: 100%; }
  table { min-width: 820px; }
  .splash-hero { min-height: 620px; padding: 28px; border-radius: 22px; }
  .splash-hero::after { background: linear-gradient(180deg, rgba(3,13,32,.32), rgba(3,13,32,.88)); }
  .landing-links { display: none; }
  .hero-proof { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .topbar, .page { width: min(100% - 20px, 1200px); }
  .topbar { margin-top: 10px; padding: 10px; border-radius: 16px; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 16px; }
  .nav-shell { margin-left: auto; }
  .topbar nav { width: min(280px, calc(100vw - 40px)); }
  .page { padding: 20px 0 42px; }
  .brand strong { max-width: 132px; overflow: hidden; text-overflow: ellipsis; }
  .menu-toggle { width: 42px; height: 42px; border-radius: 12px; }
  .hero { padding: 24px 20px; }
  .hero h1 { font-size: 30px; overflow-wrap: anywhere; }
  .card-actions, .inline-form, .review-form, .auth-links { display: grid; grid-template-columns: 1fr; }
  .primary, .secondary, .danger-button { width: 100%; }
  .metrics strong, .big-number { font-size: 26px; }
  .auth-card { padding: 22px; border-radius: 20px; }
  .auth-card h1 { font-size: 28px; }
  .landing-nav { padding: 0 2px; }
  .landing-brand img { width: 48px; height: 48px; }
  .splash-copy h1 { font-size: 38px; }
  .splash-copy p { font-size: 15px; }
  .splash-hero { min-height: 560px; padding: 22px; }
}
