/* Anton Growth Studio — brand system derived from the public channels */
:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #f7f7fb;
  --ink: #171827;
  --muted: #6f7280;
  --soft: #a1a4b0;
  --line: #e7e7ee;
  --line-strong: #d8d8e2;
  --violet: #7147ef;
  --violet-soft: #f0ecff;
  --blue: #2987ed;
  --blue-soft: #eaf5ff;
  --green: #159b70;
  --green-soft: #e9f7f1;
  --coral: #e95e6c;
  --coral-soft: #fff0f2;
  --amber: #b98027;
  --amber-soft: #fff6df;
  --sidebar: #10111a;
  --sidebar-2: #191a26;
  --brand-gradient: linear-gradient(135deg, #218bf1 0%, #7047f1 52%, #d757dc 100%);
  --brand-dark: #11142a;
  --shadow: 0 18px 55px rgba(28, 25, 54, .08);
  --radius: 16px;
  --radius-sm: 11px;
  --display: "Segoe UI", Inter, Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg: #101118;
  --surface: #181923;
  --surface-2: #20212d;
  --ink: #f5f4fa;
  --muted: #a7a8b5;
  --soft: #747684;
  --line: #2c2d39;
  --line-strong: #3a3c49;
  --violet-soft: #2a2543;
  --blue-soft: #172a3d;
  --green-soft: #173229;
  --coral-soft: #3b2228;
  --amber-soft: #392e1a;
}

body {
  background:
    radial-gradient(circle at 75% -10%, rgba(113, 71, 239, .06), transparent 28%),
    var(--bg);
  letter-spacing: -.005em;
}

.app-shell { grid-template-columns: 230px minmax(0, 1fr); }
.sidebar {
  padding: 20px 14px 16px;
  background:
    linear-gradient(135deg, rgba(113, 71, 239, .09) 0 1px, transparent 1px 42px),
    linear-gradient(45deg, rgba(113, 71, 239, .05) 0 1px, transparent 1px 42px),
    var(--sidebar);
  background-size: 42px 42px;
}

.brand { gap: 10px; padding: 0 5px; }
.brand b { font-size: 14px; letter-spacing: -.02em; }
.brand small { color: #747786; font-size: 9px; letter-spacing: .045em; }
.brand-mark-chess {
  position: relative;
  overflow: hidden;
  background: var(--brand-gradient);
  letter-spacing: -.08em;
  box-shadow: 0 8px 26px rgba(113, 71, 239, .32);
}
.brand-mark-chess::after {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: inherit;
}

.workspace-card {
  margin: 22px 3px 14px;
  padding: 9px;
  border: 1px solid #292b38;
  background: rgba(31, 32, 45, .76);
  backdrop-filter: blur(10px);
}
.workspace-avatar { background: var(--brand-gradient); font-size: 15px; }
.workspace-card i { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: #292a38; color: #9a8df8; font-size: 8px; font-weight: 800; }

.modern-nav { gap: 3px; padding: 0 3px; overflow: visible; }
.modern-nav .nav-label { margin: 10px 9px 7px; color: #555969; font-size: 7px; }
.modern-nav .nav-item {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid transparent;
  font-size: 11px;
  color: #8d909d;
}
.modern-nav .nav-item:hover { background: #1b1c27; border-color: #252635; }
.modern-nav .nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(113,71,239,.2), rgba(113,71,239,.08));
  border-color: rgba(130, 105, 255, .22);
}
.modern-nav .nav-item.active::before { left: -4px; top: 11px; bottom: 11px; background: linear-gradient(#8f75ff, #cf59e4); }
.modern-nav .nav-icon { width: 25px; height: 25px; border-radius: 8px; background: #1d1e28; color: #85899a; font-size: 13px; }
.modern-nav .nav-item.active .nav-icon { background: rgba(116, 82, 238, .2); color: #a895ff; }
.modern-nav .nav-item em { background: rgba(113,71,239,.2); color: #b8aaff; }
.nav-more { margin-top: 1px; }
.nav-more summary {
  list-style: none;
  min-height: 42px;
  display: grid;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  color: #777b89;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary:hover { background: #1b1c27; color: #fff; }
.nav-more summary b { font-size: 9px; transition: transform .2s; }
.nav-more[open] summary b { transform: rotate(180deg); }
.nav-more-list { display: grid; gap: 2px; padding: 4px 0 2px 46px; }
.nav-more-list a { padding: 6px 7px; border-radius: 7px; color: #737786; text-decoration: none; font-size: 9px; }
.nav-more-list a:hover, .nav-more-list a.active { color: #fff; background: #1d1e29; }
.sidebar-foot { padding-top: 13px; }

.topbar { height: 82px; padding: 0 30px; }
.topbar h1 { font-family: var(--display); font-weight: 690; font-size: 24px; letter-spacing: -.035em; }
.topbar-title p, .eyebrow { font-size: 7px; color: #9699a8; }
.page { padding: 26px 30px 55px; max-width: 1600px; margin: 0 auto; }
.panel, .kpi-card, .channel-card, .integration-card, .asset-card, .creative-card { border-color: rgba(220, 220, 230, .85); box-shadow: 0 3px 18px rgba(28,25,54,.025); }
.panel-head h2, .section-head h2 { font-family: var(--display); font-weight: 720; letter-spacing: -.035em; }
.button { border-radius: 10px; font-weight: 750; }
.button.primary, .brand-button { background: var(--brand-gradient); border: 0; color: #fff; box-shadow: 0 9px 22px rgba(106, 70, 232, .2); }
.button.primary:hover, .brand-button:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(106, 70, 232, .28); }

/* Brand-led statistics hero */
.brand-dashboard-hero {
  min-height: 286px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr);
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 35px 38px;
  margin-bottom: 18px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 87% 4%, rgba(199, 92, 234, .35), transparent 26%),
    linear-gradient(125deg, #12152d 0%, #1b1b3c 57%, #35246e 100%);
  box-shadow: 0 22px 65px rgba(20,21,48,.19);
}
.brand-dashboard-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .09;
  background-image: linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%), linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%);
  background-size: 64px 64px; background-position: 0 0, 32px 32px;
  mask-image: linear-gradient(90deg, transparent 20%, #000);
}
.brand-hero-copy, .brand-proof-board { position: relative; z-index: 1; }
.brand-kicker { font-size: 8px; letter-spacing: .17em; font-weight: 850; color: #a9a4c9; }
.brand-kicker i { display: inline-block; width: 18px; height: 2px; margin-right: 8px; vertical-align: middle; background: #cf5ce3; }
.brand-hero-copy h2 { margin: 15px 0 12px; font: 720 clamp(34px, 4vw, 54px)/.98 var(--display); letter-spacing: -.06em; }
.brand-hero-copy h2 em { color: #bcabff; font-style: normal; }
.brand-hero-copy > p { max-width: 620px; color: #a9a9bc; font-size: 10px; line-height: 1.65; }
.brand-hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 23px; }
.brand-hero-actions > a:last-child { color: #a9a9bc; font-size: 8px; text-decoration: none; }
.brand-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 41px; padding: 0 15px; text-decoration: none; font-size: 9px; }
.brand-proof-board { min-height: 215px; display: grid; grid-template-columns: 108px 1fr; align-items: center; gap: 16px; padding: 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.065); backdrop-filter: blur(16px); }
.board-piece { width: 100px; height: 174px; display: grid; place-items: center; border-radius: 14px; font-size: 70px; background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.025)); color: #c5b9ff; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.proof-grid span { min-height: 78px; padding: 11px; border-radius: 11px; background: rgba(255,255,255,.055); }
.proof-grid b, .proof-grid small { display: block; }
.proof-grid b { font-size: 20px; letter-spacing: -.04em; }
.proof-grid small { margin-top: 4px; color: #9f9fb3; font-size: 7px; line-height: 1.4; }

/* Platform identity in post lists */
.data-table td:first-child { position: relative; }
.platform-icon {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  margin-right: 9px;
  border-radius: 10px;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  vertical-align: top;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.platform-telegram { background: linear-gradient(135deg, #44b8ed, #208bd3); font-size: 13px; }
.platform-vk, .platform-vk_ads { background: linear-gradient(135deg, #2787f5, #0867cf); }
.platform-instagram { background: linear-gradient(135deg, #f3a33c, #db3b83 48%, #7b47df); font-size: 15px; }
.platform-facebook { background: #1877f2; font-size: 14px; }
.platform-max { background: linear-gradient(135deg, #168cf4, #7047f1 55%, #d34fd9); font-size: 12px; }
.platform-meta_ads { background: #5d5ce2; }
.cell-main { display: inline-flex; flex-direction: column; vertical-align: top; max-width: calc(100% - 45px); }
.post-platform-name { color: var(--violet); font-size: 7px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px; }

/* Compact advertising workspace navigation */
.workspace-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.workspace-tabs a { min-width: 100px; padding: 8px 12px; border-radius: 8px; text-align: center; color: var(--muted); font-size: 8px; font-weight: 750; text-decoration: none; }
.workspace-tabs a.active { color: #fff; background: var(--brand-dark); }

/* Brand platform page */
.brand-profile-hero {
  min-height: 260px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(124deg, #12152d 0%, #242049 62%, #5531a1 100%);
}
.brand-profile-hero::after { content: "♟"; position: absolute; right: -20px; bottom: -130px; color: rgba(255,255,255,.035); font-size: 370px; line-height: 1; }
.profile-monogram { position: relative; z-index: 1; width: 165px; height: 190px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; background: rgba(255,255,255,.06); }
.profile-monogram span { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-gradient); font-size: 24px; font-weight: 850; letter-spacing: -.08em; box-shadow: 0 15px 35px rgba(88,53,206,.38); }
.profile-monogram i { position: absolute; right: 15px; bottom: 11px; color: #d1c8ff; font-size: 35px; font-style: normal; }
.profile-positioning { position: relative; z-index: 1; }
.profile-positioning h2 { max-width: 720px; margin: 7px 0 12px; font: 720 clamp(27px, 3.2vw, 43px)/1.04 var(--display); letter-spacing: -.055em; }
.profile-positioning > p:not(.eyebrow) { max-width: 680px; color: #aeaec0; font-size: 9px; line-height: 1.65; }
.profile-links { display: flex; gap: 15px; margin-top: 17px; }
.profile-links a { color: #c4b7ff; font-size: 8px; text-decoration: none; }
.profile-proof { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-proof span { min-height: 79px; padding: 13px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.07); }
.profile-proof b, .profile-proof small { display: block; }
.profile-proof b { font-size: 20px; }.profile-proof small { margin-top: 4px; color: #a9a9bd; font-size: 7px; }

.brand-social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.brand-social-card { min-height: 185px; position: relative; overflow: hidden; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.brand-social-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.brand-social-card > div { display: flex; justify-content: space-between; align-items: center; }
.social-glyph { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; color: #fff; font-size: 12px; font-weight: 900; }
.brand-social-card.telegram .social-glyph { background: #2aabee; }.brand-social-card.vk .social-glyph { background: #2787f5; }.brand-social-card.instagram .social-glyph { background: linear-gradient(135deg,#f3a33c,#d93586,#6d4be8); font-size: 17px; }.brand-social-card.max .social-glyph { background: var(--brand-gradient); }
.brand-social-card em { color: var(--green); font-size: 7px; font-style: normal; font-weight: 750; }
.brand-social-card h3 { margin: 18px 0 3px; font-size: 13px; }.brand-social-card > b { color: var(--violet); font-size: 8px; }.brand-social-card > p { min-height: 32px; color: var(--muted); font-size: 8px; line-height: 1.5; }.brand-social-card > i { color: var(--soft); font-size: 7px; font-style: normal; }

.brand-two-column { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .65fr); gap: 12px; margin-top: 13px; }
.brand-strategy-panel, .brand-funnel-panel { padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.strategy-chip { color: var(--violet); font-size: 7px; font-weight: 800; }
.audience-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 17px; }
.audience-row { min-height: 185px; display: flex; flex-direction: column; justify-content: space-between; padding: 15px; border-radius: 13px; background: var(--surface-2); }
.audience-row > span { color: var(--violet); font-size: 8px; font-weight: 850; }.audience-row h3 { font-size: 11px; margin: 22px 0 7px; }.audience-row p { color: var(--muted); font-size: 8px; line-height: 1.55; }.audience-row b { display: block; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-size: 7px; }
.brand-funnel-panel { color: #fff; background: var(--brand-dark); border-color: transparent; }.brand-funnel-panel h2 { font-size: 19px; margin: 4px 0 14px; }.brand-funnel-panel ol { list-style: none; padding: 0; margin: 0; }.brand-funnel-panel li { display: grid; grid-template-columns: 27px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }.brand-funnel-panel li > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: rgba(113,71,239,.26); color: #bdadff; font-size: 7px; font-weight: 850; }.brand-funnel-panel b { font-size: 9px; }.brand-funnel-panel p { margin: 3px 0 0; color: #9092a5; font-size: 7px; line-height: 1.45; }

.content-pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.content-pillar-grid article { position: relative; min-height: 215px; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.content-pillar-grid article > span { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 13px; color: var(--violet); background: var(--violet-soft); font-size: 24px; }.content-pillar-grid article > small { position: absolute; right: 16px; top: 16px; color: var(--soft); font-size: 8px; }.content-pillar-grid h3 { margin: 24px 0 7px; font-size: 12px; }.content-pillar-grid p { min-height: 48px; color: var(--muted); font-size: 8px; line-height: 1.55; }.content-pillar-grid b { display: block; padding-top: 11px; border-top: 1px solid var(--line); color: var(--violet); font-size: 7px; }
.lower-brand-grid { grid-template-columns: 1fr 1fr; }.voice-mark { color: var(--violet); font-size: 34px; }.voice-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; }.voice-rules span { padding: 12px; border-radius: 11px; background: var(--surface-2); }.voice-rules b, .voice-rules small { display: block; }.voice-rules b { font-size: 9px; }.voice-rules small { margin-top: 4px; color: var(--muted); font-size: 7px; line-height: 1.45; }.voice-warning { margin-top: 10px; padding: 11px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); font-size: 7px; line-height: 1.5; }
.live-posts { display: grid; margin-top: 12px; }.live-posts a { display: grid; grid-template-columns: 24px 1fr 16px; gap: 9px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }.live-posts a > span { color: var(--violet); font-size: 7px; font-weight: 850; }.live-posts b, .live-posts small { display: block; }.live-posts b { font-size: 8px; }.live-posts small { margin-top: 3px; color: var(--soft); font-size: 7px; }.live-posts i { color: var(--violet); font-style: normal; }
.brand-readiness-banner { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-top: 13px; padding: 25px; border-radius: 17px; color: #fff; background: linear-gradient(105deg, #16182f, #49328e); }.brand-readiness-banner span { color: #bcaeff; font-size: 7px; letter-spacing: .14em; font-weight: 850; }.brand-readiness-banner h2 { margin: 5px 0; font-size: 20px; }.brand-readiness-banner p { margin: 0; color: #a9a9ba; font-size: 8px; }

/* Login */
.login-showcase { background: linear-gradient(135deg, #11142a, #211b48 58%, #4b278e); }
.login-showcase::before { opacity: .8; }
.login-board { position: absolute; right: -80px; top: 8%; width: 56%; display: grid; grid-template-columns: repeat(3, 1fr); opacity: .075; transform: rotate(-8deg); }
.login-board span { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #fff; font-size: clamp(40px,7vw,105px); }
.showcase-content { max-width: 760px; }.showcase-content h1 { font-family: var(--display); font-weight: 730; }.login-manifesto { max-width: 620px; margin-top: 22px; color: #a9a8bb; font-size: 11px; line-height: 1.65; }.showcase-metrics small { max-width: 90px; }.login-panel { background: var(--surface); }.login-form h2 { font-family: var(--display); font-weight: 720; font-size: 31px; letter-spacing: -.04em; }

@media (max-width: 1180px) {
  .brand-dashboard-hero { grid-template-columns: 1fr; }.brand-proof-board { min-height: auto; grid-template-columns: 90px 1fr; }.board-piece { height: 120px; width: 82px; font-size: 52px; }
  .brand-profile-hero { grid-template-columns: 135px 1fr; }.profile-monogram { width: 130px; height: 170px; }.profile-proof { grid-column: 1 / 3; grid-template-columns: repeat(4,1fr); }
  .brand-social-grid, .content-pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-two-column, .lower-brand-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .app-shell { display: block; }.sidebar { width: 235px; }
  .page { padding: 20px 16px 45px; }.topbar { padding: 0 16px; }
  .brand-dashboard-hero { padding: 26px 22px; border-radius: 18px; }.brand-hero-copy h2 { font-size: 38px; }.brand-proof-board { grid-template-columns: 1fr; }.board-piece { display: none; }
  .brand-profile-hero { grid-template-columns: 1fr; padding: 23px; }.profile-monogram { width: 100%; height: 125px; }.profile-proof { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .audience-map { grid-template-columns: 1fr; }.audience-row { min-height: 145px; }
}

@media (max-width: 560px) {
  .brand-social-grid, .content-pillar-grid { grid-template-columns: 1fr; }
  .brand-hero-actions { align-items: flex-start; flex-direction: column; }.proof-grid { grid-template-columns: 1fr 1fr; }
  .profile-links { flex-direction: column; gap: 7px; }.voice-rules { grid-template-columns: 1fr; }
  .brand-readiness-banner { align-items: flex-start; flex-direction: column; }.brand-readiness-banner .button { width: 100%; }
  .workspace-tabs { width: 100%; }.workspace-tabs a { flex: 1; min-width: 0; }
}
