:root {
    --ink: #14213d;
    --muted: #64748b;
    --line: #dbe4ee;
    --bg: #f6f8fb;
    --panel: #ffffff;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --teal: #0f766e;
    --amber: #b7791f;
    --rose: #be123c;
}

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

a {
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.public-shell {
    background: #fff;
}

.navbar-brand,
.brand {
    color: var(--ink);
    letter-spacing: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
}

.brand-mark img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.app-brand {
    color: #fff;
}

.app-brand img {
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 8px;
    padding: 2px;
}

.settings-logo-preview {
    max-width: 180px;
    max-height: 90px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: .5rem;
}

.hero {
    min-height: 78vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.8)),
        url("https://images.unsplash.com/photo-1503454537195-1dcabb73ffb9?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.subhero {
    min-height: 48vh;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(17,24,39,.88), rgba(17,24,39,.52)),
        url("https://images.unsplash.com/photo-1544776193-352d25ca82cd?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.about-hero {
    background:
        linear-gradient(90deg, rgba(17,24,39,.88), rgba(15,118,110,.54)),
        url("https://images.unsplash.com/photo-1503454537195-1dcabb73ffb9?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.services-hero {
    background:
        linear-gradient(90deg, rgba(17,24,39,.88), rgba(37,99,235,.48)),
        url("https://images.unsplash.com/photo-1587654780291-39c9404d746b?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.contact-hero {
    background:
        linear-gradient(90deg, rgba(17,24,39,.9), rgba(183,121,31,.5)),
        url("https://images.unsplash.com/photo-1567057419565-4349c49d8a04?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.subhero h1 {
    max-width: 920px;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.subhero .lead {
    color: #e5e7eb;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: .95;
    letter-spacing: 0;
    font-weight: 800;
}

.lead {
    max-width: 720px;
    color: #334155;
}

.eyebrow {
    color: var(--teal);
    font-size: .78rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .08rem;
    margin-bottom: .45rem;
}

.hero-panel,
.form-panel,
.login-card,
.feature-card,
.content-panel,
.stat-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.hero-panel {
    padding: 1.25rem;
}

.mini-stat {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
}

.mini-stat:last-child {
    border-bottom: 0;
}

.mini-stat span,
.stat-card span,
.activity-item span,
.notice-item span {
    display: block;
    color: var(--muted);
    font-size: .86rem;
}

.mini-stat strong,
.stat-card strong {
    font-size: 1.25rem;
}

.section-band {
    padding: 4rem 0;
    background: #eef6f4;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
}

.feature-card,
.form-panel,
.content-panel,
.login-card,
.pricing-card {
    padding: 1.35rem;
}

.feature-card h2,
.content-panel h2,
.panel-heading {
    font-size: 1.15rem;
    font-weight: 800;
}

.feature-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.pricing-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
}

.pricing-card strong {
    display: block;
    font-size: 1.6rem;
    margin: .4rem 0;
    color: var(--primary);
}

.pricing-card p,
.public-copy p {
    color: var(--muted);
}

.contact-strip,
.contact-card-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 0;
    border-top: 1px solid var(--line);
}

.contact-strip span,
.contact-card-line span {
    color: var(--muted);
    font-weight: 700;
}

.contact-strip a,
.contact-card-line a {
    color: var(--primary);
    font-weight: 800;
    overflow-wrap: anywhere;
    text-align: right;
}

.login-wrap {
    min-height: calc(100vh - 58px);
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background:
        linear-gradient(90deg, rgba(246,248,251,.92), rgba(246,248,251,.75)),
        url("https://images.unsplash.com/photo-1567057419565-4349c49d8a04?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.login-card {
    width: min(100%, 430px);
}

.login-card h1 {
    font-size: 2rem;
    font-weight: 800;
}

.app-shell {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: #111827;
    color: #fff;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.brand {
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.sidebar .nav-link {
    color: #cbd5e1;
    border-radius: 8px;
    margin-bottom: .25rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.1);
}

.sidebar-user {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.15);
}

.sidebar-user span {
    color: #cbd5e1;
    font-size: .86rem;
    display: block;
}

.main-panel {
    padding: 2rem;
    min-width: 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.page-header h1 {
    font-weight: 800;
    margin: 0;
}

.stat-card {
    padding: 1.2rem;
}

.stat-card strong {
    display: block;
    margin-top: .2rem;
    font-size: 1.8rem;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.workflow-grid a {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #f8fafc;
    font-weight: 700;
}

.activity-item,
.notice-item {
    border-top: 1px solid var(--line);
    padding: .9rem 0;
}

.notice-item p {
    color: #334155;
    margin: .5rem 0 0;
}

.badge {
    text-transform: capitalize;
}

.status-active,
.status-paid,
.status-present {
    background: #dcfce7;
    color: #166534;
}

.status-pending,
.status-waitlist,
.status-sent,
.status-draft,
.status-trial {
    background: #fef3c7;
    color: #92400e;
}

.status-overdue,
.status-inactive,
.status-suspended {
    background: #ffe4e6;
    color: #9f1239;
}

.inline-payment {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) auto;
    gap: .4rem;
}

.attendance-date-filter {
    display: flex;
    align-items: end;
    gap: .75rem;
    flex-wrap: wrap;
}

.attendance-actions {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.site-footer {
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
    background: #111827;
    color: #fff;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer span {
    display: block;
    color: #cbd5e1;
    font-size: .88rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #dbeafe;
}

.table {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .main-panel {
        padding: 1rem;
    }

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

    .contact-strip,
    .contact-card-line {
        display: block;
    }

    .contact-strip a,
    .contact-card-line a {
        display: block;
        text-align: left;
        margin-top: .25rem;
    }
}
