/* =========================================================
   SCComp Infrastructure LLC - Main Stylesheet
   Clean responsive layout, accessible nav, cards, forms, tables
   ========================================================= */

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

:root {
    color-scheme: light dark;

    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #eef4ff;
    --surface-soft-2: #f8fbff;
    --text: #1f2937;
    --text-strong: #0f172a;
    --text-muted: #64748b;

    --primary: #0056b3;
    --primary-strong: #004494;
    --primary-dark: #003f7f;
    --primary-hover: #002a5c;
    --primary-soft: #dbeafe;

    --border: #cbd5e1;
    --border-soft: #e5e7eb;

    --header-bg: linear-gradient(180deg, #0056b3 0%, #004494 100%);
    --nav-bg: #003f7f;
    --nav-hover: #002a5c;

    --link: #0056b3;
    --link-hover: #003f7f;

    --dropdown-bg: #ffffff;
    --dropdown-link: #0f172a;
    --dropdown-hover: #eef4ff;

    --button-bg: #0056b3;
    --button-hover: #003f7f;
    --button-text: #ffffff;

    --danger: #b91c1c;
    --danger-hover: #991b1b;

    --success-bg: #ecfdf3;
    --success-text: #166534;
    --success-border: #bbf7d0;
    --error-bg: #fef2f2;
    --error-text: #991b1b;
    --error-border: #fecaca;
    --warning-bg: #fffbeb;
    --warning-text: #92400e;
    --warning-border: #fde68a;
    --info-bg: #eff6ff;
    --info-text: #1d4ed8;
    --info-border: #bfdbfe;

    --hero-accent: linear-gradient(135deg, rgba(0, 86, 179, 0.12), rgba(0, 74, 173, 0.04));
    --footer-bg: #0f172a;
    --footer-text: #e5e7eb;
    --footer-link: #93c5fd;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.12);
    --shadow-md: 0 8px 22px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 18px 42px rgba(15, 23, 42, 0.18);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --container: 1200px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b1220;
        --surface: #111827;
        --surface-soft: #172036;
        --surface-soft-2: #162033;
        --text: #e5e7eb;
        --text-strong: #f8fafc;
        --text-muted: #94a3b8;

        --primary: #60a5fa;
        --primary-strong: #3b82f6;
        --primary-dark: #2563eb;
        --primary-hover: #174a8b;
        --primary-soft: #172554;

        --border: #334155;
        --border-soft: #243041;

        --header-bg: linear-gradient(180deg, #0f3d75 0%, #0b2f5c 100%);
        --nav-bg: #0b2f5c;
        --nav-hover: #174a8b;

        --link: #93c5fd;
        --link-hover: #bfdbfe;

        --dropdown-bg: #111827;
        --dropdown-link: #e5e7eb;
        --dropdown-hover: #172036;

        --button-bg: #3b82f6;
        --button-hover: #2563eb;

        --footer-bg: #020617;
        --footer-text: #cbd5e1;

        --success-bg: #052e16;
        --success-text: #bbf7d0;
        --success-border: #166534;
        --error-bg: #450a0a;
        --error-text: #fecaca;
        --error-border: #991b1b;
        --warning-bg: #451a03;
        --warning-text: #fde68a;
        --warning-border: #92400e;
        --info-bg: #082f49;
        --info-text: #bfdbfe;
        --info-border: #1d4ed8;

        --hero-accent: linear-gradient(135deg, rgba(96, 165, 250, 0.14), rgba(147, 197, 253, 0.06));
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
        --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.28);
        --shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.4);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: var(--link);
    text-decoration: none;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

main {
    width: 100%;
    margin: 24px auto;
    padding: 0 16px 32px;
}

section {
    margin-bottom: 24px;
}

h1,
h2,
h3,
h4 {
    color: var(--text-strong);
    line-height: 1.2;
    margin-bottom: 12px;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

h3 {
    font-size: 1.15rem;
}

p {
    margin-bottom: 12px;
}

small,
.muted,
.text-muted {
    color: var(--text-muted);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

.narrow {
    max-width: 720px;
}

.prose {
    max-width: 760px;
}

.text-center {
    text-align: center;
}

.lead {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 1.12rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}

.section-header p {
    max-width: 720px;
}

.grid {
    display: grid;
    gap: 18px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.two-up {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.three-up {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* =========================================================
   Header and Navigation
   ========================================================= */

.site-header {
    position: relative;
    z-index: 100;
    background: var(--header-bg);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 66px;
    padding-block: 10px;
}

.brand {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
}

.brand:hover {
    color: #ffffff;
    text-decoration: none;
}

.brand img {
    flex: 0 0 auto;
    width: auto;
    height: 38px;
}

.brand span {
    min-width: 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
    white-space: nowrap;
}

.menu-btn {
    display: none;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-sm);
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
    padding: 8px 10px;
}

.menu-btn:hover,
.menu-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.site-nav {
    background: transparent;
}

.site-nav > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.site-nav li {
    position: relative;
}

.site-nav li > a,
.site-nav li > button,
.site-nav .link-btn {
    display: block;
    width: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    padding: 14px 16px;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.site-nav li > a:hover,
.site-nav li > button:hover,
.site-nav li.open > a,
.site-nav li.open > button,
.site-nav .link-btn:hover {
    background: var(--nav-hover);
    color: #ffffff;
    text-decoration: none;
}

.site-nav a.nav-cta {
    margin: 6px 0 6px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.12);
    padding: 10px 16px;
}

.site-nav a.nav-cta:hover {
    background: rgba(255, 255, 255, 0.2);
}

.has-dropdown > button {
    appearance: none;
}

.has-dropdown > button::after {
    content: " ▾";
    font-size: 0.9em;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 220px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-top: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: var(--dropdown-bg);
    box-shadow: var(--shadow-lg);
}

.dropdown li,
.dropdown li a {
    width: 100%;
}

.dropdown li a {
    display: block;
    margin: 0;
    background: var(--dropdown-bg);
    color: var(--dropdown-link);
    font-weight: 700;
    padding: 12px 14px;
    white-space: nowrap;
}

.dropdown li a:hover {
    background: var(--dropdown-hover);
    color: var(--link);
    text-decoration: none;
}

.has-dropdown.open > .dropdown {
    display: block;
}

@media (min-width: 769px) {
    .has-dropdown:hover > .dropdown {
        display: block;
    }
}

/* =========================================================
   Hero, Panels, Cards
   ========================================================= */

.hero,
.page-hero {
    margin-bottom: 24px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--hero-accent);
    box-shadow: var(--shadow-md);
    padding: 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.hero h1,
.page-hero h1 {
    margin-bottom: 14px;
}

.hero p,
.page-hero p {
    font-size: 1.05rem;
}

.card,
.panel,
.post,
.content-box {
    margin-bottom: 18px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    padding: 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover,
.panel:hover,
.post:hover {
    transform: translateY(-1px);
}

.hero-panel {
    border-radius: var(--radius-lg);
}

.muted-section {
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.panel-offset {
    margin-top: 10px;
}

.feature-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.feature-list.compact {
    gap: 7px;
}

.feature-list li {
    position: relative;
    padding-left: 18px;
}

.feature-list li::before {
    position: absolute;
    left: 0;
    color: var(--primary);
    content: "•";
    font-weight: 800;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}

.cta-row.center {
    justify-content: center;
}

.small-gap {
    gap: 8px;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.metric {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    padding: 14px;
}

.metric strong {
    display: block;
    color: var(--text-strong);
    font-size: 1.15rem;
}

.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 10px 0;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    padding: 16px;
}

.price-box strong {
    color: var(--text-strong);
    font-size: 1.35rem;
}

/* =========================================================
   Content Components
   ========================================================= */

.account-meta {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.meta-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.meta-label {
    min-width: 140px;
    color: var(--text-muted);
    font-weight: 700;
}

.meta-value {
    color: var(--text);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.server-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.server-card .btn,
.server-card form {
    margin-top: 8px;
}

.server-price {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 800;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
    margin: 18px 0 8px;
}

.spec-grid div,
.spec-grid strong,
.spec-grid span {
    display: block;
}

.spec-grid strong {
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.spec-grid span {
    color: var(--text);
    line-height: 1.45;
}

.staff-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.staff-role {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.timeline {
    display: grid;
    gap: 16px;
}

.timeline-item {
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    padding: 16px;
}

.timeline-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-strong);
    font-size: 1rem;
}

/* =========================================================
   Forms and Buttons
   ========================================================= */

form {
    margin-top: 10px;
}

.inline-form {
    display: inline;
    margin: 0;
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-strong);
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    max-width: 460px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-strong);
    padding: 10px 12px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.14);
}

select.input {
    border-color: var(--border-soft);
    background: var(--surface);
    color: var(--text);
    padding: 10px 12px;
}

button,
input[type="submit"],
.btn,
a.btn {
    display: inline-block;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--button-bg);
    color: var(--button-text);
    cursor: pointer;
    font-weight: 800;
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.08s ease, box-shadow 0.18s ease;
}

button:hover,
input[type="submit"]:hover,
.btn:hover,
a.btn:hover {
    background: var(--button-hover);
    color: var(--button-text);
    text-decoration: none;
}

button:active,
input[type="submit"]:active,
.btn:active,
a.btn:active {
    transform: translateY(1px);
}

.btn-secondary,
a.btn-secondary {
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

.btn-secondary:hover,
a.btn-secondary:hover {
    background: var(--surface-soft);
    color: var(--primary-hover);
}

.btn-danger,
a.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-danger:hover,
a.btn-danger:hover {
    background: var(--danger-hover);
    color: #ffffff;
}

.stack-form {
    display: grid;
    gap: 14px;
    margin-top: 10px;
}

.stack-form label {
    margin: 0;
}

.stack-form label input,
.stack-form label textarea,
.stack-form label select {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 8px;
    margin-bottom: 0;
}

.stack-form button {
    margin-top: 10px;
}

.stack-form + form {
    margin-top: 12px;
}

.auth-panel {
    max-width: 620px;
    margin-inline: auto;
    padding: 28px;
}

.check-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

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

/* =========================================================
   Alerts / Flash Messages
   ========================================================= */

.flash-stack {
    margin-bottom: 18px;
}

.flash {
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 14px;
}

.flash.success {
    border-color: var(--success-border);
    background: var(--success-bg);
    color: var(--success-text);
}

.flash.error {
    border-color: var(--error-border);
    background: var(--error-bg);
    color: var(--error-text);
}

.flash.warning {
    border-color: var(--warning-border);
    background: var(--warning-bg);
    color: var(--warning-text);
}

.flash.info {
    border-color: var(--info-border);
    background: var(--info-bg);
    color: var(--info-text);
}

.status-badge {
    display: inline-block;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 4px 9px;
}

.status-badge.pending {
    border: 1px solid var(--warning-border);
    background: var(--warning-bg);
    color: var(--warning-text);
}

.status-badge.approved,
.status-badge.active {
    border: 1px solid var(--success-border);
    background: var(--success-bg);
    color: var(--success-text);
}

.status-badge.rejected,
.status-badge.failed {
    border: 1px solid var(--error-border);
    background: var(--error-bg);
    color: var(--error-text);
}

/* =========================================================
   Tables
   ========================================================= */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border-soft);
    border-collapse: collapse;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

th,
td {
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--surface-soft);
    color: var(--text-strong);
    font-weight: 800;
}

tr:last-child td {
    border-bottom: 0;
}

/* =========================================================
   Posts / Comments / Badges
   ========================================================= */

.post-list {
    display: grid;
    gap: 16px;
}

.post-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-content {
    color: var(--text);
    line-height: 1.6;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 8px 0 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.user-badge {
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 3px 8px;
}

.user-badge.admin {
    background: #ff4d4f;
    color: #ffffff;
}

.user-badge.staff {
    background: #1890ff;
    color: #ffffff;
}

.user-badge.vip {
    background: #722ed1;
    color: #ffffff;
}

.user-badge.educator {
    background: #13c2c2;
    color: #ffffff;
}

.comments,
.comments-block {
    margin-top: 10px;
    border-top: 1px solid var(--border-soft);
    padding-top: 14px;
}

.comment-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.comment-card,
.comments .comment {
    border: 1px solid var(--border-soft);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    background: var(--surface-soft-2);
    padding: 12px;
}

.comment-card p,
.comments .comment p {
    margin-top: 6px;
}

.comment-form {
    margin-top: 12px;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    margin-top: 40px;
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 20px 16px;
}

.site-footer a {
    color: var(--footer-link);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.footer-grid h3,
.footer-grid h4 {
    color: #ffffff;
}

.footer-grid ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    text-align: center;
}

/* =========================================================
   Responsive Layout
   ========================================================= */

@media (max-width: 1100px) {
    .brand span {
        font-size: 0.95rem;
    }

    .site-nav li > a,
    .site-nav li > button,
    .site-nav .link-btn {
        padding-inline: 12px;
    }
}

@media (max-width: 900px) {
    .three-up {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-header {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    main {
        margin: 18px auto;
        padding: 0 12px 24px;
    }

    .container {
        padding-inline: 14px;
    }

    .header-inner {
        flex-wrap: wrap;
        min-height: 60px;
        gap: 10px;
        padding-block: 10px;
    }

    .brand {
        flex: 1 1 0;
        min-width: 0;
        gap: 8px;
    }

    .brand img {
        height: 34px;
    }

    .brand span {
        overflow: visible;
        max-width: none;
        color: #ffffff;
        font-size: clamp(0.78rem, 3.6vw, 0.95rem);
        line-height: 1.1;
        text-overflow: clip;
        white-space: normal;
        word-break: normal;
    }

    .menu-btn {
        display: block;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: var(--nav-bg);
    }

    #nav.open {
        display: block;
    }

    .site-nav > ul {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .site-nav li > a,
    .site-nav li > button,
    .site-nav .link-btn {
        width: 100%;
        margin: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0;
        padding: 14px 16px;
        text-align: left;
    }

    .site-nav a.nav-cta {
        margin: 0;
        border-radius: 0;
        background: transparent;
    }

    .dropdown {
        position: static;
        min-width: 100%;
        border: 0;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.08);
        box-shadow: none;
    }

    .has-dropdown > .dropdown {
        display: none;
    }

    .has-dropdown.open > .dropdown {
        display: block;
    }

    .dropdown li a {
        background: transparent;
        padding: 12px 16px 12px 28px;
        white-space: normal;
    }

    .hero,
    .page-hero {
        padding: 22px 18px;
    }

    .split,
    .grid,
    .hero-grid,
    .two-up,
    .three-up,
    .spec-grid,
    .metric-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        margin-bottom: 24px;
    }

    .section-header {
        margin-bottom: 14px;
    }

    .muted-section {
        padding: 18px;
    }

    .lead {
        font-size: 1.05rem;
    }

    .cta-row {
        align-items: stretch;
        flex-direction: column;
    }

    .cta-row .btn,
    .cta-row a.btn,
    .cta-row button,
    .cta-row select {
        width: 100%;
        text-align: center;
    }

    .price-box,
    .meta-row {
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
    }

    .meta-label {
        min-width: 0;
    }

    input,
    textarea,
    select {
        max-width: 100%;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        overflow: hidden;
        margin-bottom: 12px;
        border-radius: 10px;
        background: var(--surface);
        box-shadow: var(--shadow-md);
    }

    td {
        border: 0;
        border-bottom: 1px solid var(--border-soft);
    }

    td:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 480px) {
    .brand img {
        height: 32px;
    }

    .brand span {
        font-size: 0.78rem;
    }

    .menu-btn {
        padding: 7px 9px;
    }

    .hero,
    .page-hero,
    .card,
    .panel,
    .post,
    .content-box {
        padding: 16px;
    }

    .auth-panel {
        padding: 20px;
    }

    .post-meta span {
        white-space: normal;
    }
}

@media (max-width: 360px) {
    .brand span {
        font-size: 0.72rem;
    }

    .brand img {
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   Unified panel, tiers, tickets, and bot-protection helpers
   ========================================================= */

.four-up {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.tier-grid {
    align-items: stretch;
}

.tier-card {
    display: flex;
    flex-direction: column;
}

.tier-card form,
.tier-card .btn {
    margin-top: auto;
}

.tier-card .feature-list {
    margin-bottom: 14px;
}

.compact-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.bot-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ticket-thread {
    display: grid;
    gap: 12px;
}

.ticket-message {
    border: 1px solid var(--border-soft);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    background: var(--surface-soft-2);
    padding: 14px;
}

.ticket-message.internal {
    border-left-color: var(--warning-text);
    background: var(--warning-bg);
}

.ticket-message .message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.status-badge.open,
.status-badge.status-open,
.status-badge.awaiting-staff,
.status-badge.status-awaiting-staff {
    border: 1px solid var(--info-border);
    background: var(--info-bg);
    color: var(--info-text);
}

.status-badge.awaiting-customer,
.status-badge.status-awaiting-customer,
.status-badge.warning,
.status-badge.status-warning {
    border: 1px solid var(--warning-border);
    background: var(--warning-bg);
    color: var(--warning-text);
}

.status-badge.resolved,
.status-badge.status-resolved,
.status-badge.closed,
.status-badge.status-closed {
    border: 1px solid var(--success-border);
    background: var(--success-bg);
    color: var(--success-text);
}

.status-badge.cancelled,
.status-badge.status-cancelled {
    border: 1px solid var(--error-border);
    background: var(--error-bg);
    color: var(--error-text);
}

.mt-15 {
    margin-top: 15px;
}

@media (max-width: 1000px) {
    .four-up {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .four-up,
    .compact-specs {
        grid-template-columns: 1fr;
    }
}


.stock-badge {
    display: inline-block;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 4px 9px;
}

.stock-badge.in-stock {
    border: 1px solid var(--success-border);
    background: var(--success-bg);
    color: var(--success-text);
}

.stock-badge.out-of-stock {
    border: 1px solid var(--error-border);
    background: var(--error-bg);
    color: var(--error-text);
}

.tier-meta-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.small-text,
.stack-form small {
    font-size: 0.86rem;
}

.required-active::after {
    content: "Required";
    display: inline-block;
    margin-left: 8px;
    color: var(--warning-text);
    font-size: 0.8rem;
    font-weight: 800;
}

.compact-form {
    gap: 10px;
}

.admin-metrics {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.blog-body p {
    margin-bottom: 1rem;
}

.blog-body p:last-child {
    margin-bottom: 0;
}


/* Partner hosting pages */
.partner-hero-card {
    display: grid;
    gap: 12px;
}

.partner-meta {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.partner-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.partner-offering-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.partner-offering-list li {
    padding: 10px 12px;
    background: var(--surface-soft-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
}

.user-badge.partner {
    background: #ecfeff;
    color: #155e75;
    border: 1px solid #67e8f9;
}

@media (prefers-color-scheme: dark) {
    .user-badge.partner {
        background: #083344;
        color: #a5f3fc;
        border-color: #0e7490;
    }
}

/* =========================================================
   Legal pages and cookie notice
   ========================================================= */
.legal-doc h2 {
    margin-top: 1.6rem;
    margin-bottom: 0.55rem;
}

.legal-doc h2:first-child {
    margin-top: 0;
}

.legal-doc ul {
    margin: 0.6rem 0 1rem 1.35rem;
}

.legal-doc li {
    margin-bottom: 0.35rem;
}

.legal-effective,
.legal-inline {
    font-size: 0.92rem;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 1100px;
    margin-inline: auto;
    border: 1px solid var(--border-strong, var(--border-soft));
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-lg, var(--shadow-md));
    padding: 16px;
}

.cookie-banner p {
    margin: 4px 0 0;
    color: var(--text-muted);
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    min-width: max-content;
}

@media (max-width: 720px) {
    .cookie-banner {
        align-items: stretch;
        flex-direction: column;
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-actions {
        justify-content: stretch;
        min-width: 0;
    }

    .cookie-actions .btn {
        flex: 1 1 auto;
    }
}

