/* ============================================================
   Coscada design system
   ============================================================ */

:root {
    --tenant-primary: #4f7cff;
    --tenant-secondary: #0b1220;

    --c-bg: #f4f6fb;
    --c-surface: #ffffff;
    --c-surface-alt: #f8f9fd;
    --c-border: #e4e7f0;
    --c-text: #1a1f36;
    --c-text-muted: #6b7280;
    --c-primary: var(--tenant-primary);
    --c-primary-hover: #3a63e0;
    --c-primary-soft: #eaf0ff;
    --c-danger: #e5484d;
    --c-danger-soft: #fdecec;
    --c-success: #22c55e;
    --c-success-soft: #eafbf0;
    --c-warning: #f59e0b;
    --c-warning-soft: #fef6e7;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);
    --sidebar-w: 240px;

    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--c-bg);
    color: var(--c-text);
}

h1, h2, h3 {
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--c-text);
}

h1 { font-size: 1.6rem; margin: 0 0 1.25rem; }
h2 { font-size: 1.15rem; margin: 0 0 0.75rem; color: var(--c-text); }
h3 { font-size: 0.95rem; margin: 0 0 0.5rem; color: var(--c-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

a {
    color: var(--c-primary);
}

/* ---------- App shells (tenant + superadmin) ---------- */

.tenant-shell, .superadmin-shell {
    display: flex;
    min-height: 100vh;
    background: var(--c-bg);
}

.tenant-sidebar, .superadmin-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--tenant-secondary, #0b1220);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1.25rem 1.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo {
    width: auto;
    max-width: 48px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-logo-fallback {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-brand .brand-name {
    color: white;
    font-weight: 650;
    font-size: 1.02rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sidebar-brand .brand-name small {
    color: #8b96ad;
    font-weight: 500;
    font-size: 0.68rem;
    text-transform: none;
}

.brand-by {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #8b96ad;
    font-weight: 500;
    font-size: 0.68rem;
}

.brand-by-mark {
    height: 13px;
    width: auto;
    background: white;
    border-radius: 2px;
    padding: 1px 3px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0.75rem;
    flex: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    color: #b8c2d6;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.12s ease, color 0.12s ease;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.06);
    color: white;
}

.sidebar-nav a.active {
    background: var(--c-primary);
    color: white;
}

.sidebar-icon {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-style: normal;
    opacity: 0.9;
}

.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-footer form {
    margin: 0;
}

.sidebar-footer button {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: #cbd5e1;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.12s ease;
}

.sidebar-footer button:hover {
    background: rgba(255,255,255,0.08);
}

.powered-by {
    display: block;
    margin-top: 0.6rem;
    text-align: center;
    font-size: 0.68rem;
    color: #6b7690;
}

.powered-by strong {
    color: #9aa7c7;
}

.tenant-content, .superadmin-content {
    flex: 1;
    min-width: 0;
    padding: 2rem 2.5rem;
    max-width: 1200px;
}

/* Legacy header-based shell selectors, kept as a fallback so older markup still renders reasonably. */
.tenant-header, .superadmin-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--tenant-secondary, #0b1220);
    color: white;
}

.tenant-header .brand, .superadmin-header .brand {
    font-weight: 650;
    font-size: 1.05rem;
}

.tenant-header nav, .superadmin-header nav {
    margin-left: auto;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.tenant-header nav a, .superadmin-header nav a {
    color: white;
    text-decoration: none;
}

.tenant-logo {
    height: 28px;
    border-radius: 6px;
}

.inline-form {
    display: inline;
}

/* ---------- Cards / sections ---------- */

.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ---------- Auth pages ---------- */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 20%, #1b2947 0%, var(--tenant-secondary, #0b1220) 55%);
    padding: 1.5rem;
}

.auth-card {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 2rem 1.75rem;
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.auth-card .auth-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--c-primary-soft);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.auth-card .auth-logo {
    height: 44px;
    margin-bottom: 1rem;
}

.auth-card h1 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--c-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-card p:not(.auth-subtitle) {
    margin-top: 1.25rem;
    font-size: 0.87rem;
    color: var(--c-text-muted);
    text-align: center;
}

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

.landing-page {
    min-height: 100vh;
    background: radial-gradient(circle at 15% 10%, #1b2947 0%, var(--tenant-secondary, #0b1220) 60%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.landing {
    max-width: 460px;
    width: 100%;
}

.landing-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.landing-hero .landing-mark {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--c-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-lg);
}

.landing-hero h1 {
    color: white;
    font-size: 1.9rem;
    margin-bottom: 0.4rem;
}

.landing-hero p {
    color: #9aa7c7;
    font-size: 0.95rem;
}

.landing-section {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    margin-top: 1.25rem;
}

.landing-section h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-text-muted);
    margin-bottom: 0.9rem;
}

.landing-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.landing-section li + li {
    margin-top: 0.4rem;
}

.landing-section li a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--c-text);
    font-weight: 500;
    transition: background 0.12s ease;
}

.landing-section li a:hover {
    background: var(--c-surface-alt);
}

/* ---------- Forms ---------- */

form label, .auth-card label {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 550;
    color: var(--c-text);
}

form label.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

form label.checkbox input {
    width: auto;
    margin: 0;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px var(--c-primary-soft);
}

.tag-multiselect {
    min-height: 110px;
}

button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: var(--c-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s ease, transform 0.05s ease;
}

button:hover, .btn:hover {
    background: var(--c-primary-hover);
}

button:active, .btn:active {
    transform: translateY(1px);
}

form > button[type="submit"], .auth-card form > button[type="submit"] {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.65rem;
}

.btn-secondary {
    background: var(--c-surface-alt);
    color: var(--c-text);
    border: 1px solid var(--c-border);
}

.btn-secondary:hover {
    background: var(--c-border);
}

.edit-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

table button {
    background: var(--c-surface-alt);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

table button:hover {
    background: var(--c-border);
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ---------- Tables ---------- */

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.75rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-text-muted);
    background: var(--c-surface-alt);
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--c-border);
}

.data-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--c-border);
    font-size: 0.88rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table .col-description {
    max-width: 220px;
    color: var(--c-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table tbody tr:hover {
    background: var(--c-surface-alt);
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 1.75rem;
    -webkit-overflow-scrolling: touch;
}

.table-scroll .data-table {
    margin-bottom: 0;
}

/* ---------- Badges ---------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-success { background: var(--c-success-soft); color: #15803d; }
.badge-danger { background: var(--c-danger-soft); color: #b91c1c; }
.badge-warning { background: var(--c-warning-soft); color: #b45309; }
.badge-neutral { background: var(--c-surface-alt); color: var(--c-text-muted); }
.badge-primary { background: var(--c-primary-soft); color: var(--c-primary-hover); }

/* ---------- Dashboard widgets ---------- */

.dashboard-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.9rem;
}

.dashboard-list li {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--c-text);
    font-weight: 600;
}

.dashboard-list li .row-actions {
    flex-wrap: wrap;
}

.widget-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.widget {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease;
}

.widget:hover {
    box-shadow: var(--shadow-md);
}

.widget h3 {
    margin-bottom: 0.6rem;
}

.widget-value {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--c-primary);
    line-height: 1.1;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.widget ul li {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px dashed var(--c-border);
}

.widget ul li:last-child {
    border-bottom: none;
}

.lamp {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px rgba(0,0,0,0.05);
}

.lamp-on {
    background: var(--c-success);
    box-shadow: 0 0 0 6px var(--c-success-soft);
}

.lamp-off {
    background: #cbd5e1;
}

/* ---------- Misc ---------- */

.text-danger {
    color: var(--c-danger);
    font-size: 0.85rem;
}

.hint {
    font-size: 0.82rem;
    color: var(--c-text-muted);
    background: var(--c-surface-alt);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
    margin-top: -0.75rem;
}

.hint code {
    background: rgba(0,0,0,0.06);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* ============================================================
   Marketing / landing page
   ============================================================ */

.marketing {
    background: var(--c-bg);
    color: var(--c-text);
}

.marketing-nav {
    background: var(--tenant-secondary, #0b1220);
    position: sticky;
    top: 0;
    z-index: 10;
}

.marketing-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.marketing-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 650;
    font-size: 1.05rem;
}

.marketing-brand-mark {
    height: 22px;
    width: auto;
}

.marketing-brand-cozaoc {
    height: 24px;
    width: auto;
    background: white;
    border-radius: 4px;
    padding: 2px 4px;
}

.marketing-brand small {
    color: #8b96ad;
    font-weight: 500;
    font-size: 0.72rem;
    margin-left: 0.15rem;
}

.landing-mark-sm {
    width: 30px;
    height: 30px;
    font-size: 1rem;
    margin: 0;
}

.marketing-nav nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.marketing-nav nav a {
    color: #b8c2d6;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 550;
}

.marketing-nav nav a:hover {
    color: white;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
    color: white !important;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.08);
}

.hero {
    background: radial-gradient(circle at 20% 0%, #1b2947 0%, var(--tenant-secondary, #0b1220) 65%);
    padding: 5rem 1.5rem 4.5rem;
    text-align: center;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    color: #9db4ff;
    background: rgba(79,124,255,0.15);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    margin-bottom: 1.25rem;
}

.hero h1 {
    color: white;
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 1.1rem;
}

.hero-sub {
    color: #b8c2d6;
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
}

.hero-cta .btn {
    padding: 0.75rem 1.4rem;
}

.marketing-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.marketing-section-alt {
    background: var(--c-surface);
    max-width: none;
}

.marketing-section-alt > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.marketing-section-narrow {
    max-width: 460px;
}

.section-title {
    font-size: 1.7rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-sub {
    text-align: center;
    color: var(--c-text-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--c-primary-soft);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
}

.feature-card h3 {
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
    color: var(--c-text);
    font-weight: 650;
    margin-bottom: 0.4rem;
}

.feature-card p {
    color: var(--c-text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.plan-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.plan-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.plan-name {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}

.plan-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-primary);
}

.plan-period {
    color: var(--c-text-muted);
    font-size: 0.85rem;
}

.plan-description {
    color: var(--c-text-muted);
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.plan-features li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--c-border);
    font-size: 0.85rem;
    color: var(--c-text);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-cta {
    width: 100%;
}

.marketing-footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--c-text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--c-border);
}

/* ---------- Responsive: tablet (<=900px) ---------- */

@media (max-width: 900px) {
    .tenant-shell, .superadmin-shell {
        flex-direction: column;
    }

    .tenant-sidebar, .superadmin-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 0.75rem 1rem;
    }

    .sidebar-brand {
        border-bottom: none;
        padding: 0;
        margin: 0;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0;
        margin-left: auto;
    }

    .sidebar-footer {
        border-top: none;
        padding: 0;
        margin-left: 0.5rem;
    }

    .tenant-content, .superadmin-content {
        padding: 1.5rem;
        max-width: 100%;
    }

    .widget-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid, .plans-grid {
        grid-template-columns: 1fr;
    }

    .marketing-nav-inner {
        flex-wrap: wrap;
        row-gap: 0.6rem;
    }

    .hero {
        padding: 3.5rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }
}

/* ---------- Responsive: mobile (<=600px) ---------- */

@media (max-width: 600px) {
    h1 {
        font-size: 1.3rem;
    }

    .tenant-sidebar, .superadmin-sidebar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .sidebar-brand {
        justify-content: center;
    }

    .sidebar-nav {
        justify-content: center;
        margin-left: 0;
    }

    .sidebar-footer {
        margin-left: 0;
    }

    .tenant-content, .superadmin-content {
        padding: 1rem;
    }

    .card {
        padding: 1.1rem;
    }

    .data-table th, .data-table td {
        padding: 0.55rem 0.7rem;
        font-size: 0.82rem;
    }

    .row-actions, .edit-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .row-actions button, .edit-actions button {
        width: 100%;
    }

    .widget-grid {
        grid-template-columns: 1fr;
    }

    .landing-page, .auth-page {
        padding: 2rem 1rem;
    }

    .landing-hero .landing-mark {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .landing-hero h1 {
        font-size: 1.5rem;
    }

    .auth-card {
        padding: 1.5rem 1.25rem;
    }

    .hero {
        padding: 2.5rem 1.25rem 2rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-eyebrow {
        font-size: 0.7rem;
    }

    .hero-sub {
        font-size: 0.9rem;
    }

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

    .marketing-section {
        padding: 2.5rem 1.25rem;
    }

    .marketing-nav-inner {
        padding: 0.75rem 1rem;
    }

    .marketing-nav nav {
        gap: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .plans-grid {
        gap: 1rem;
    }

    .dashboard-list {
        grid-template-columns: 1fr;
    }
}
