* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI';
}

:root {
    --btn-bg: #33CC00;
    --btn-text: #000;
    --highlight-bg: #33CC00;

    --ui-bg: #fff;
    --ui-text: #000;
    --ui-muted: #666;
    --ui-surface: #f0f0f0;
    --ui-surface-2: #f5f5f5;
    --ui-border: #ddd;
    --ui-border-2: #eee;
    --ui-row-hover: #f5f5f5;
}

:root[data-theme="dark"] {
    --ui-bg: #111;
    --ui-text: #f5f5f5;
    --ui-muted: #aaa;
    --ui-surface: #1e1e1e;
    --ui-surface-2: #181818;
    --ui-border: #333;
    --ui-border-2: #2a2a2a;
    --ui-row-hover: #1a1a1a;

    --btn-text: #fff;
}

html,
body {
    height: 100%;
}

body {
    background: var(--ui-bg, #fff);
    color: var(--ui-text, #000);
    height: 100vh;
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* Sidebar (copied from app look/feel) */
.sidebar {
    width: 180px;
    min-width: 180px;
    flex: 0 0 180px;
    background: var(--ui-surface-2, #f5f5f5);
    border-right: 1px solid var(--ui-border, #ddd);
    color: var(--ui-text, #000);
    display: flex;
    flex-direction: column;
}

.logo-section {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid var(--ui-border, #ddd);
    font-weight: 600;
    font-size: 18px;
    color: var(--ui-text, #000);
    cursor: pointer;
}

.logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
}

.logo-section span {
    font-weight: 700;
}

.menu-button {
    width: 100%;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--ui-text, #000);
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--ui-border-2, #eee);
    overflow: hidden;
}

.menu-label {
    white-space: nowrap;
}

.menu-button:hover {
    background: var(--ui-row-hover, #f5f5f5);
}

.menu-button.active {
    background: var(--highlight-bg, #33CC00);
    color: var(--ui-text, #000);
}

.sidebar-divider {
    height: 1px;
    background: var(--ui-border, #ddd);
    margin: 10px 0;
}

.sidebar-status {
    margin-top: auto;
    padding: 10px;
    border-top: 1px solid var(--ui-border, #ddd);
    font-size: 12px;
    color: var(--ui-muted, #666);
}

.sidebar-status-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.sidebar-status-value {
    color: var(--ui-text, #000);
    font-weight: 700;
    white-space: nowrap;
}

.sidebar-status-links {
    margin-top: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sidebar-status-links a {
    text-decoration: underline;
    color: var(--ui-muted, #666);
    font-weight: 600;
}

.menu-icon {
    display: block;
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex: 0 0 20px;
    fill: currentColor;
}

:root[data-theme="dark"] .sidebar .logo-img {
    filter: invert(1);
}

/* Main content */
.main-content {
    flex: 1;
    min-width: 0;
    overflow: auto;
    padding: 24px;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    align-items: start;
    padding: 18px;
    background: var(--ui-surface-2, #f5f5f5);
    border: 1px solid var(--ui-border, #ddd);
    border-radius: 10px;
}

.hero h1 {
    font-size: 34px;
    line-height: 1.1;
}

.hero-subtitle {
    margin-top: 10px;
    font-size: 15px;
    color: var(--ui-muted, #666);
    font-weight: 600;
    max-width: 62ch;
}

.hero-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-bullets {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-bullet {
    padding: 6px 10px;
    border: 1px solid var(--ui-border, #ddd);
    border-radius: 999px;
    background: var(--ui-bg, #fff);
    font-size: 12px;
    font-weight: 700;
}

.hero-panel {
    padding: 14px;
    background: var(--ui-bg, #fff);
    border: 1px solid var(--ui-border, #ddd);
    border-radius: 8px;
}

.hero-panel-title {
    font-weight: 800;
    margin-bottom: 8px;
}

.hero-panel ul {
    padding-left: 18px;
    margin: 8px 0;
}

.hero-panel li {
    margin: 6px 0;
    color: var(--ui-text, #000);
    font-weight: 600;
    font-size: 13px;
}

.hero-panel-note {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ui-muted, #666);
}

.section {
    margin-top: 18px;
    padding: 18px;
    background: var(--ui-bg, #fff);
    border: 1px solid var(--ui-border, #ddd);
    border-radius: 10px;
}

.section h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.section p {
    color: var(--ui-text, #000);
    font-weight: 600;
    line-height: 1.5;
}

.get-started-list {
    padding-left: 18px;
    margin: 8px 0 0;
}

.get-started-list li {
    margin: 6px 0;
    color: var(--ui-text, #000);
    font-weight: 600;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.card {
    padding: 14px;
    border: 1px solid var(--ui-border, #ddd);
    background: var(--ui-surface-2, #f5f5f5);
    border-radius: 8px;
}

.card-media {
    display: block;
    border: 1px solid var(--ui-border, #ddd);
    border-radius: 6px;
    overflow: hidden;
    background: var(--ui-bg, #fff);
    margin-bottom: 10px;
    cursor: zoom-in;
}

.card-img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: left top;
}

/* Features carousel (soloadmin.com homepage) */
.feature-carousel-controls {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-carousel-status {
    font-weight: 800;
    font-size: 13px;
}

.cards.feature-carousel {
    display: block;
}

.cards.feature-carousel [hidden] {
    display: none !important;
}

.cards.feature-carousel .card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
}

.cards.feature-carousel .card-media {
    margin-bottom: 0;
}

.cards.feature-carousel .card-img {
    height: auto;
    max-height: 520px;
    object-fit: contain;
}

.cards.feature-carousel .feature-carousel-copy {
    margin-top: -4px;
}

/* Lightbox for screenshot previews */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.lightbox-dialog {
    position: absolute;
    inset: 24px;
    margin: auto;
    max-width: 1100px;
    max-height: calc(100vh - 48px);
    background: var(--ui-bg, #fff);
    border: 1px solid var(--ui-border, #ddd);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.lightbox-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.lightbox-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid var(--ui-border, #ddd);
    background: var(--ui-bg, #fff);
    color: var(--ui-text, #000);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover {
    background: var(--ui-surface-2, #f5f5f5);
}

.lightbox-close:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .lightbox-dialog {
        inset: 12px;
        max-height: calc(100vh - 24px);
    }
}

.card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.card p {
    font-size: 13px;
    color: var(--ui-muted, #666);
}

.price {
    font-size: 22px;
    font-weight: 900;
    color: var(--ui-text, #000);
    margin-top: 6px;
    margin-bottom: 6px;
}

.muted {
    color: var(--ui-muted, #666);
}

.btn {
    background: var(--btn-bg, #33CC00);
    color: var(--btn-text, #000);
    border: 2px solid #000;
    padding: 6px 15px;
    cursor: pointer;
    font-weight: 700;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn:hover {
    filter: brightness(0.98);
}

.btn:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.btn-secondary {
    background: transparent;
    color: var(--ui-text, #000);
}

.footer {
    margin-top: 18px;
    padding: 12px;
    border-top: 1px solid var(--ui-border, #ddd);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Embedded form */
.form-embed {
    margin-top: 12px;
    border: 1px solid var(--ui-border, #ddd);
    border-radius: 10px;
    overflow: hidden;
    background: var(--ui-bg, #fff);
}

.form-embed-iframe {
    display: block;
    width: 100%;
    height: 780px;
    border: 0;
    background: transparent;
}

/* Contact form */
.contact-form {
    margin-top: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field-span-2 {
    grid-column: 1 / -1;
}

.form-choice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--ui-border, #ddd);
    border-radius: 6px;
    background: var(--ui-bg, #fff);
    font-weight: 600;
}

.form-choice input[type="radio"] {
    flex: 0 0 auto;
}

.form-label {
    font-weight: 800;
    font-size: 13px;
}

.form-input {
    width: 100%;
    padding: 10px 10px;
    border-radius: 6px;
    border: 1px solid var(--ui-border, #ddd);
    background: var(--ui-bg, #fff);
    color: var(--ui-text, #000);
    font-weight: 600;
}

.form-input::placeholder {
    color: var(--ui-muted, #666);
    font-weight: 600;
}

.form-input:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.form-textarea {
    resize: vertical;
}

.form-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.form-status {
    font-weight: 700;
    min-height: 18px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.turnstile {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--ui-border, #ddd);
    background: var(--ui-surface-2, #f5f5f5);
}

@media (max-width: 980px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}
