/* Admin Console — same sea green family, deep forest sidebar so it never
   gets mistaken for an ISP's user panel. */
body.admin .sidebar { background: #0F2A1D; border-right-color: #0F2A1D; color: #CFE3D7; }
body.admin .side-brand { border-bottom-color: rgba(255, 255, 255, .08); }
body.admin .side-brand-text strong { color: #fff; }
body.admin .side-brand-text small { color: #7FB897; }
body.admin .nav-link { color: #CFE3D7; }
body.admin .nav-link svg { color: #7FB897; }
body.admin .nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
body.admin .nav-link.active { background: #3CB371; color: #0B2016; box-shadow: none; }
body.admin .nav-link.active svg { color: #0B2016; }
body.admin .nav-link .count { margin-left: auto; padding: 0 7px; border-radius: 99px; background: #E9A23B; color: #2A1A00; font-size: 11px; font-weight: 800; }
body.admin .side-foot { border-top-color: rgba(255, 255, 255, .08); }
body.admin .me { cursor: pointer; }
body.admin .me:hover { background: rgba(255, 255, 255, .06); }
body.admin .me-text strong { color: #fff; }
body.admin .me-text small { color: #7FB897; }
body.admin .avatar { background: #3CB371; color: #0B2016; }
body.admin .login-hero { background: linear-gradient(150deg, #0B2016 0%, #1F6E45 55%, #2E8B57 100%); }
.admin-foot { padding: 18px 28px 26px; color: var(--muted); font-size: 12px; }

.state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state.active { color: var(--success); }
.state.expiring { color: var(--warning); }
.state.expired, .state.suspended { color: var(--danger); }

.co-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.co-head h2 { margin: 0; font-size: 22px; }
.co-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; padding: 16px 18px; }
.feature {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--card);
}
.feature small { display: block; color: var(--muted); font-size: 12px; }
.feature .custom { color: var(--warning); font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; }
.switch { position: relative; flex: none; width: 42px; height: 24px; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--border-2); transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.secret { font: 700 18px var(--mono); padding: 10px 14px; border-radius: 8px; background: var(--card-alt); border: 1px dashed var(--border-2); user-select: all; }

/* Website page */
.site-bar { position: sticky; top: 64px; z-index: 5; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(10px); }
.site-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .site-sections { grid-template-columns: 1fr; } }
.media-box { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; }
@media (max-width: 560px) { .media-box { grid-template-columns: 1fr; } }
.media-prev { display: grid; place-items: center; min-height: 112px; border-radius: 12px; border: 1px dashed var(--border-2); background: var(--card-alt); overflow: hidden; text-align: center; padding: 8px; font-size: 13px; }
.media-prev video { width: 100%; max-height: 160px; border-radius: 8px; background: #000; }
.media-prev img { max-width: 100%; max-height: 110px; object-fit: contain; }
.media-prev.favicon img { width: 48px; height: 48px; }
.media-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.media-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-prog { height: 6px; border-radius: 9px; background: var(--card-alt); overflow: hidden; margin-top: 6px; }
.media-prog i { display: block; height: 100%; width: 0; background: var(--pill, var(--accent)); transition: width .15s; }

/* owner sign-in card (company page) */
.owner-card { margin-bottom: 16px; }
.owner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: center; }
@media (max-width: 1000px) { .owner-grid { grid-template-columns: 1fr; } }
.owner-grid > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); }
.owner-grid > div.ow-actions { background: none; border: 0; padding: 0; }
.owner-grid small { width: 100%; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.owner-grid b { font-size: 16px; margin-right: auto; word-break: break-all; }
