.super-brand { gap: 10px; }
.super-brand span { padding: 4px 6px; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; color: #aaa7a2; font-size: 7px; font-weight: 850; letter-spacing: .12em; white-space: nowrap; }
.super-summary { padding: 11px; border: 1px solid #393735; border-radius: 9px; background: #222220; }
.super-summary strong, .super-summary span { display: block; }
.super-summary strong { font-size: 11px; }
.super-summary span { margin-top: 3px; color: #8f8b86; font-size: 9px; }
.setup-notice { margin-bottom: 18px; padding: 12px; border-radius: 9px; background: var(--warning-soft); color: var(--warning); font-size: 12px; line-height: 1.55; }
.setup-notice code { font-weight: 800; }

.super-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.super-toolbar > .search-field { flex: 1 1 260px; }
.search-field { position: relative; }
.search-field i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-field input { width: 100%; min-height: 42px; padding: 9px 12px 9px 39px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--text); }
.search-field input:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px rgba(255,75,56,.1); }
.super-filter { min-height: 42px; padding: 8px 34px 8px 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); }

.platform-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 28px; min-height: 190px; padding: 30px; border-radius: 16px; background: linear-gradient(135deg,#1c1b19,#312d28); color: #fff; }
.platform-hero::after { content:""; position:absolute; right:-60px; top:-90px; width:310px; height:310px; border-radius:50%; background:radial-gradient(circle,rgba(255,75,56,.36),transparent 67%); }
.platform-hero > * { position: relative; z-index: 1; }
.platform-hero small { color:#ff786a; font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
.platform-hero h2 { max-width: 660px; margin: 13px 0 9px; font-size: clamp(25px,3vw,42px); line-height:1.05; letter-spacing:-.045em; }
.platform-hero p { max-width: 650px; margin:0; color:rgba(255,255,255,.62); font-size:12px; line-height:1.7; }
.hero-mrr { min-width: 190px; padding:18px; border:1px solid rgba(255,255,255,.13); border-radius:13px; background:rgba(255,255,255,.06); backdrop-filter:blur(10px); }
.hero-mrr span,.hero-mrr strong { display:block; }
.hero-mrr span { color:rgba(255,255,255,.54); font-size:10px; }
.hero-mrr strong { margin-top:5px; font-size:26px; }

.company-grid { display:grid; grid-template-columns:repeat(3,minmax(240px,1fr)); gap:12px; }
.company-card { display:grid; gap:15px; padding:18px; border:1px solid var(--line); border-radius:14px; background:var(--surface); cursor:pointer; text-align:left; transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.company-card:hover { transform:translateY(-2px); border-color:rgba(255,75,56,.35); box-shadow:0 12px 30px rgba(76,59,46,.08); }
.company-card.is-selected { border-color:var(--accent); box-shadow:0 0 0 2px rgba(255,75,56,.1); }
.company-card-head { display:flex; align-items:center; gap:12px; }
.company-avatar { width:42px; height:42px; display:grid; place-items:center; flex:0 0 auto; border-radius:11px; background:var(--accent-soft); color:var(--accent); font-size:20px; }
.company-card-head > span:nth-child(2) { min-width:0; flex:1; }
.company-card-head strong,.company-card-head small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.company-card-head strong { font-size:13px; }
.company-card-head small { margin-top:3px; color:var(--text-muted); font-size:9px; }
.company-card-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.company-card-stats span { padding:9px; border-radius:8px; background:var(--surface-soft); }
.company-card-stats small,.company-card-stats strong { display:block; }
.company-card-stats small { color:var(--text-muted); font-size:8px; }
.company-card-stats strong { margin-top:3px; font-size:12px; }

.status-dot { display:inline-flex; align-items:center; gap:6px; padding:5px 8px; border-radius:999px; font-size:8px; font-weight:820; white-space:nowrap; }
.status-dot::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.status-dot.active,.status-dot.paid,.status-dot.connected,.status-dot.ready { background:var(--success-soft); color:var(--success); }
.status-dot.paused,.status-dot.pending,.status-dot.awaiting-payment,.status-dot.retrying { background:var(--warning-soft); color:var(--warning); }
.status-dot.blocked,.status-dot.overdue,.status-dot.failed,.status-dot.error { background:var(--danger-soft); color:var(--danger); }
.status-dot.cancelled,.status-dot.not-configured,.status-dot.disabled { background:var(--surface-soft); color:var(--text-muted); }

.section-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; }
.section-heading h2 { margin:0; font-size:17px; letter-spacing:-.025em; }
.section-heading p { margin:5px 0 0; color:var(--text-muted); font-size:10px; }
.company-overview { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(280px,.8fr); gap:14px; }
.detail-list { display:grid; }
.detail-row { min-height:54px; display:grid; grid-template-columns:minmax(130px,.55fr) minmax(0,1fr); gap:15px; align-items:center; padding:10px 0; border-bottom:1px solid var(--line); }
.detail-row:last-child { border-bottom:0; }
.detail-row > span { color:var(--text-muted); font-size:10px; }
.detail-row > strong,.detail-row > a { overflow-wrap:anywhere; font-size:11px; }
.detail-row > a { color:var(--accent-dark); }
.panel-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.form-actions-stack { display:grid; gap:9px; }
.status-neutral { background:var(--surface-soft); color:var(--text-muted); }
.table-action.danger { color:var(--danger); }

.content-cards { display:grid; grid-template-columns:repeat(3,minmax(240px,1fr)); gap:12px; }
.content-admin-card { overflow:hidden; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.content-admin-cover { height:130px; display:grid; place-items:center; overflow:hidden; background:linear-gradient(145deg,#282522,#ff4b38); color:#fff; font-size:30px; }
.content-admin-cover img { width:100%; height:100%; object-fit:cover; }
.content-admin-body { display:grid; gap:8px; padding:15px; }
.content-admin-body h3 { margin:0; font-size:13px; }
.content-admin-body p { min-height:34px; margin:0; color:var(--text-secondary); font-size:9px; line-height:1.55; }
.content-admin-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.content-admin-actions { display:flex; gap:6px; }

.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(280px,1fr)); gap:14px; }
.settings-card { padding:18px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.settings-card h2 { margin:0 0 4px; font-size:14px; }
.settings-card > p { margin:0 0 18px; color:var(--text-muted); font-size:9px; line-height:1.5; }
.credential-state { display:inline-flex; align-items:center; gap:5px; margin-left:6px; color:var(--success); font-size:8px; font-weight:800; }
.credential-state.missing { color:var(--warning); }

.form-section { margin-bottom:22px; }
.form-section:last-child { margin-bottom:0; }
.form-section-title { margin:0 0 12px; padding-bottom:8px; border-bottom:1px solid var(--line); font-size:12px; }
.form-grid-3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.file-picker { display:grid; gap:8px; padding:14px; border:1px dashed var(--line-strong); border-radius:10px; background:var(--surface-soft); }
.file-picker input { font-size:11px; }
.file-preview { max-height:180px; object-fit:cover; border-radius:8px; }
.color-field { display:grid; grid-template-columns:44px minmax(0,1fr); gap:8px; }
.color-field input[type=color] { width:44px; min-height:44px; padding:3px; }
.danger-zone { padding:15px; border:1px solid #f1c9c5; border-radius:11px; background:var(--danger-soft); }
.danger-zone h3 { margin:0 0 5px; color:var(--danger); font-size:12px; }
.danger-zone p { margin:0 0 12px; color:#86504b; font-size:9px; line-height:1.55; }

.super-modal { width:min(820px,calc(100vw - 28px)); }
.super-modal .modal-body { max-height:min(74dvh,760px); }
.empty-compact { min-height:180px; display:grid; place-items:center; color:var(--text-muted); font-size:11px; }
.table-actions { display:flex; justify-content:flex-end; gap:5px; }
.table-action-label { width:auto; min-width:34px; padding:0 9px; }
.mobile-card-list { display:none; }

@media (max-width:1120px) {
  .company-grid,.content-cards { grid-template-columns:repeat(2,minmax(230px,1fr)); }
  .company-overview { grid-template-columns:1fr; }
}

@media (max-width:760px) {
  .topbar .date-button span { display:none; }
  .topbar .date-button { width:38px; justify-content:center; padding:0; }
  .company-grid,.content-cards,.settings-grid { grid-template-columns:1fr; }
  .platform-hero { grid-template-columns:1fr; padding:22px; }
  .hero-mrr { min-width:0; }
  .form-grid-3 { grid-template-columns:1fr; }
  .section-heading { align-items:flex-start; flex-direction:column; }
  .section-heading .button { width:100%; }
  .desktop-table { display:none; }
  .mobile-card-list { display:grid; gap:10px; }
  .mobile-record { display:grid; gap:11px; padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
  .mobile-record-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
  .mobile-record-head strong { font-size:12px; }
  .mobile-record-meta { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
  .mobile-record-meta span { padding:8px; border-radius:8px; background:var(--surface-soft); color:var(--text-muted); font-size:8px; }
  .mobile-record-meta b { display:block; margin-top:3px; color:var(--text); font-size:10px; }
  .mobile-record .panel-actions .button { flex:1; }
}

@media (max-width:480px) {
  .company-card-stats { grid-template-columns:1fr 1fr; }
  .detail-row { grid-template-columns:1fr; gap:4px; }
  .super-toolbar > * { width:100%; }
}
