:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --gray: #888888;
    --light-gray: #eeeeee;
    --chg-blue: #207ceb;
}

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

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================================================
   Public page — themeable via body class
   ========================================================= */

body.public {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background: var(--page-bg);
    color: var(--page-text);
    position: relative;
}

.logo-top-left {
    width: auto;
    margin-bottom: 20px;
    opacity: 0.9;
}

.logo-top-left svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-bottom-right {
    align-self: flex-end;
    width: 80px;
    margin-top: 24px;
    opacity: 0.85;
}

.logo-bottom-right svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.theme-mono {
    --page-bg: #ffffff;
    --page-text: #0a0a0a;
    --page-muted: #767676;
    --pill-bg: #ffffff;
    --pill-border: #0a0a0a;
    --pill-text: #0a0a0a;
    --pill-icon: #f1f1f1;
    --card-bg: #ffffff;
    --card-border: #0a0a0a;
    --card-text: #0a0a0a;
    --frame-border: #e2e2e2;
    --social-bg: transparent;
    --social-border: #0a0a0a;
    --social-text: #0a0a0a;
    --avatar-ring: #e2e2e2;
    --pulse-color: rgba(10, 10, 10, 0.35);
}

.page {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

.theme-marble,
.theme-banner {
    --page-bg: linear-gradient(rgba(8, 8, 8, 0.62), rgba(8, 8, 8, 0.88)), url('/static/marble-bg.png') center/cover fixed;
    --page-text: #ffffff;
    --page-muted: #999999;
    --pill-bg: #111111;
    --pill-border: #2a2a2a;
    --pill-text: #ffffff;
    --pill-icon: #ffffff;
    --card-bg: #111111;
    --card-border: #2a2a2a;
    --card-text: #ffffff;
    --frame-border: #2a2a2a;
    --social-bg: transparent;
    --social-border: #2a2a2a;
    --social-text: #ffffff;
    --avatar-ring: #2a2a2a;
    --pulse-color: var(--chg-blue);
}

.theme-marble .profile h1,
.theme-banner .profile h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 32px;
}

.theme-marble .tagline,
.theme-banner .tagline {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #999999;
}

.theme-marble .built-different {
    font-family: 'Montserrat', sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: #ffffff;
}

.theme-marble .section-header,
.theme-banner .section-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 0.28em;
    color: #999999;
    text-align: left;
}

.theme-marble .link-button,
.theme-marble .featured-card,
.theme-banner .link-button,
.theme-banner .featured-card {
    border-radius: 0;
    border-width: 1px;
}

.theme-marble .link-button:hover,
.theme-marble .featured-card:hover,
.theme-banner .link-button:hover,
.theme-banner .featured-card:hover {
    border-color: var(--chg-blue);
    box-shadow: none;
}

.theme-marble .link-label,
.theme-banner .link-label {
    text-align: left;
    margin-right: 12px;
}

.theme-marble .dots,
.theme-banner .dots {
    color: var(--chg-blue);
    font-size: 22px;
}

/* --- Team hub (landing page) --- */

.hub-page {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 64px 20px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.hub-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    margin-bottom: 14px;
}

.hub-logo {
    width: auto;
    max-width: 380px;
    max-height: 190px;
    object-fit: contain;
    margin-bottom: 4px;
}

.hub-wordmark {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hub-footer-logo {
    width: 92px;
    object-fit: contain;
    margin-top: 30px;
}

.hub-tagline {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    font-size: 9.5px;
    letter-spacing: 0.3em;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 34px;
}

.hub-group {
    width: 100%;
}

.hub-group-label {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.28em;
    color: #999999;
    margin: 18px 2px 8px;
    text-transform: uppercase;
}

.hub-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border: 1px solid #2a2a2a;
    background: #111111;
    text-decoration: none;
    margin-bottom: 9px;
    transition: border-color 0.15s ease;
}

.hub-row:hover {
    border-color: var(--chg-blue);
}

.hub-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #2a2a2a;
}

.hub-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid #2a2a2a;
    background: linear-gradient(135deg, var(--chg-blue) 0%, #1a5fa0 100%);
}

.hub-row-body {
    flex: 1;
    min-width: 0;
}

.hub-row-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: #ffffff;
    line-height: 1.15;
}

.hub-row-sub {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    color: #999999;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-row-chevron {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--chg-blue);
    flex-shrink: 0;
}

.hub-search {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: #111111;
    border: 1px solid #2a2a2a;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    margin-bottom: 22px;
    outline: none;
}

.hub-search::placeholder {
    color: #666666;
}

.hub-search:focus {
    border-color: var(--chg-blue);
}

.hub-footer {
    margin-top: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 9.5px;
    letter-spacing: 0.14em;
    color: #777777;
    text-transform: uppercase;
}

.hub-agent-login {
    margin-top: 14px;
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    color: #555555;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.hub-agent-login:hover {
    color: #999999;
}

.hub-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999999;
    font-family: 'Open Sans', sans-serif;
}

.hub-empty h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 10px;
}

.banner-frame {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* On the banner theme the image bleeds to the page edges and fades into the gradient */
.theme-banner .banner-frame {
    width: calc(100% + 48px);
    margin: -48px -24px 0;
    border-radius: 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.banner-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.profile {
    text-align: center;
    margin-bottom: 32px;
}

.avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--black);
    margin: 0 auto 16px;
    border: 3px solid var(--avatar-ring);
}

.avatar-image {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--avatar-ring);
}

.theme-marble .avatar-image,
.theme-banner .avatar-image {
    width: 160px;
    height: 160px;
    border: 4px solid var(--avatar-ring);
    margin: 0 auto 24px;
}

.theme-marble .avatar-placeholder,
.theme-banner .avatar-placeholder {
    width: 160px;
    height: 160px;
    border: 4px solid var(--avatar-ring);
    margin: 0 auto 24px;
}

.profile h1 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 4px;
    color: var(--page-text);
}

.profile-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--page-muted);
    margin-bottom: 4px;
}

.tagline {
    color: var(--page-muted);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.built-different {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--page-text);
    margin-top: 20px;
    margin-bottom: 12px;
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--social-bg);
    border: 1.5px solid var(--social-border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--social-text);
    transition: transform 0.15s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.section-header {
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--page-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 8px 0 -4px;
}

.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 18px;
    background: var(--pill-bg);
    border: 1.5px solid var(--pill-border);
    color: var(--pill-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.link-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pill-icon);
    flex-shrink: 0;
    margin-right: 12px;
}

.link-label {
    flex: 1;
    text-align: center;
    margin-right: 28px; /* balances the icon so text stays visually centered */
}

.link-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 12px;
}

.link-sub {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--gray);
}

.dots {
    color: var(--page-muted);
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

/* --- Lead-capture gate page --- */

.gate-card {
    width: 100%;
    margin-top: 24px;
    border: 1.5px solid var(--card-border);
    border-radius: 20px;
    background: var(--card-bg);
    color: var(--card-text);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.gate-thumb {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid var(--frame-border);
}

.gate-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--card-text);
}

.gate-sub {
    font-size: 14px;
    color: var(--page-muted);
}

.gate-error {
    font-size: 14px;
    color: #cc3333;
    font-weight: 600;
}

.gate-form {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.gate-form input {
    padding: 12px 16px;
    border: 1.5px solid var(--pill-border);
    border-radius: 999px;
    font-size: 14px;
    font-family: inherit;
    background: var(--pill-bg);
    color: var(--pill-text);
    text-align: center;
}

.gate-form input:focus {
    outline: 2px solid var(--pill-border);
    outline-offset: 1px;
}

.gate-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--pill-text);
    color: var(--pill-bg);
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
}

.gate-back {
    margin-top: 8px;
    font-size: 13px;
    color: var(--page-muted);
    text-decoration: none;
}

.featured-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: var(--card-text);
    border: 1.5px solid var(--card-border);
    border-radius: 20px;
    padding: 16px 16px 12px;
    background: var(--card-bg);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.featured-eyebrow {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.featured-image-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--frame-border);
}

.featured-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.featured-image-placeholder {
    background: var(--pill-icon);
}

.featured-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    font-size: 15px;
    font-weight: 600;
}

@keyframes card-pulse {
    0% {
        box-shadow: 0 0 0 0 var(--pulse-color);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.link-button.pulse,
.featured-card.pulse {
    animation: card-pulse 2s ease-out infinite;
}

body.public footer {
    margin-top: 40px;
    color: var(--page-muted);
    font-size: 13px;
}

/* =========================================================
   Admin panel
   ========================================================= */

body.admin {
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
}

.admin-layout {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 920px) {
    .admin-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .preview-col {
        display: none;
    }
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

.admin-top h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logout-link {
    color: #888888;
    text-decoration: none;
    font-size: 14px;
}

.logout-link:hover {
    color: #ffffff;
}

.card {
    background: #141414;
    border: 1px solid #262626;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 16px;
}

details.collapse > summary {
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

details.collapse > summary::-webkit-details-marker {
    display: none;
}

details.collapse > summary::after {
    content: "\203A";
    font-size: 20px;
    color: #999;
    transform: rotate(90deg);
    transition: transform 0.15s ease;
}

details.collapse[open] > summary::after {
    transform: rotate(-90deg);
}

details.collapse[open] > summary {
    margin-bottom: 16px;
}

.stack-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stack-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #999999;
    font-weight: 600;
}

body.admin input[type="text"],
body.admin input[type="url"],
body.admin input[type="password"],
body.admin select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #1a1a1a;
    color: #ffffff;
    transition: border-color 0.15s ease, background 0.15s ease;
}

body.admin input:focus,
body.admin select:focus {
    outline: none;
    border-color: var(--chg-blue);
    background: #1f1f1f;
}

body.admin input[type="file"] {
    font-size: 13px;
    color: #999999;
}

body.admin input[type="file"]::file-selector-button {
    padding: 8px 16px;
    margin-right: 10px;
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.field-hint {
    font-size: 12px;
    color: #777777;
    font-weight: 400;
}

.pos-frame {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    cursor: grab;
    touch-action: none;
    background: #1a1a1a;
}

.pos-frame.dragging {
    cursor: grabbing;
    border-color: var(--chg-blue);
}

.pos-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.pos-frame.pos-avatar {
    width: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

.pick-frame {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
}

.pick-frame img {
    display: block;
    width: 100%;
    height: auto;
    cursor: crosshair;
    user-select: none;
    -webkit-user-drag: none;
}

body.admin input[type="color"] {
    width: 56px;
    height: 36px;
    padding: 2px;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    background: #1a1a1a;
    cursor: pointer;
}

.btn-primary {
    padding: 12px 24px;
    background: var(--chg-blue);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.15s ease;
}

.btn-primary:hover {
    background: #4796ef;
}

.btn-secondary {
    padding: 8px 18px;
    background: transparent;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.btn-secondary:hover {
    border-color: var(--chg-blue);
}

.check-row {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
    font-size: 13px;
    color: #999999;
    font-weight: 600;
}

.check-row input[type="checkbox"] {
    width: auto;
}

/* --- Link cards --- */

.link-card {
    display: flex;
    gap: 14px;
    align-items: stretch;
    padding: 18px 20px;
}

.link-card.is-off {
    opacity: 0.55;
}

.reorder-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

/* --- Team roster (Manage team) --- */

.team-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 12px;
    gap: 16px;
    padding: 16px 18px;
}

.team-row.is-suspended {
    opacity: 0.55;
}

.team-reorder {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.team-identity {
    flex: 1 1 160px;
    min-width: 160px;
}

.team-name {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 2px;
}

.team-handle {
    font-size: 12.5px;
    color: #999999;
}

.chg-tag {
    display: inline-flex;
    align-items: center;
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid #333333;
    background: #111111;
    color: #999999;
    white-space: nowrap;
}

.chg-tag.tag-accent {
    border-color: var(--chg-blue);
    color: var(--chg-blue);
}

.chg-tag.tag-danger {
    border-color: #c62828;
    color: #e57373;
}

.team-stats {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
    text-align: center;
}

.team-stat-num {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.team-stat-label {
    font-size: 9.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #777777;
    margin-top: 2px;
}

.team-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.team-actions form {
    display: inline;
}

.btn-tiny {
    padding: 6px 12px;
    background: transparent;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-tiny:hover {
    border-color: var(--chg-blue);
    color: var(--chg-blue);
}

.btn-tiny.tiny-danger:hover {
    border-color: #c62828;
    color: #e57373;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999999;
    transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
    background: #f1f1f1;
    color: #1a1a1a;
}

.icon-btn.danger:hover {
    background: #fdecec;
    color: #cc3333;
}

.link-fields {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.type-select {
    max-width: 150px;
    flex-shrink: 0;
}

.title-input {
    font-weight: 600;
}

.save-row {
    justify-content: flex-end;
}

.side-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding-left: 14px;
    border-left: 1px solid #f0f0f0;
}

.switch-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.switch-label {
    font-size: 11px;
    font-weight: 600;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: #d6d6d6;
    border-radius: 999px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .slider {
    background: #0a0a0a;
}

.switch input:checked + .slider::before {
    transform: translateX(16px);
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.leads-table th {
    text-align: left;
    color: #767676;
    font-weight: 600;
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
}

.leads-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.leads-table a {
    color: #1a1a1a;
}

/* --- Live preview phone --- */

.preview-col {
    position: sticky;
    top: 32px;
}

.phone-frame {
    width: 320px;
    height: 640px;
    border: 10px solid #0a0a0a;
    border-radius: 40px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    margin: 0 auto;
}

.phone-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Landing page --- */

.landing {
    max-width: 560px;
    margin: 0 auto;
    padding: 64px 24px;
    text-align: center;
}

.landing-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 16px;
}

.landing h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.landing-sub {
    color: #999999;
    font-size: 15px;
    margin: 6px 0 32px;
}

.agent-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.agent-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #ffffff;
    text-align: left;
    margin-bottom: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(32, 124, 235, 0.25);
    border-color: var(--chg-blue);
}

.agent-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.agent-avatar-placeholder {
    background: #262626;
}

.agent-name {
    font-size: 15px;
    font-weight: 600;
}

.agent-tagline {
    font-size: 13px;
    color: #999999;
}

.landing-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.landing-actions .btn-primary,
.landing-actions .btn-secondary {
    text-decoration: none;
    display: inline-block;
}

.page-url {
    font-size: 13px;
    color: #999999;
    text-decoration: none;
}

.page-url:hover {
    color: #ffffff;
}

/* --- Login --- */

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 360px;
}

.login-card h1 {
    font-size: 20px;
    margin-bottom: 16px;
}

.error {
    color: #cc3333;
    font-size: 14px;
    margin-bottom: 12px;
}
