:root {
    --aldam-primary: #0f766e;
    --aldam-secondary: #0f172a;
    --aldam-accent: #38bdf8;
    --aldam-font-family: Inter, system-ui, sans-serif;
    --aldam-soft: color-mix(in srgb, var(--aldam-primary) 10%, white);
    --aldam-primary-hover: color-mix(in srgb, var(--aldam-primary) 82%, black);
}

html {
    scroll-behavior: smooth;
}

body {
    background: color-mix(in srgb, var(--aldam-primary) 4%, white);
    color: var(--aldam-secondary);
    font-family: var(--aldam-font-family);
}

.main-content {
    padding-top: 72px;
}

.bg-deep {
    background: var(--aldam-secondary);
}

.environment-badge {
    border-radius: .375rem;
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-left: .5rem;
    padding: .25rem .45rem;
}

.environment-badge--dev {
    background: #2563eb;
}

.environment-badge--uat {
    background: #d97706;
}

.btn-aqua {
    background: var(--aldam-primary);
    border-color: var(--aldam-primary);
    color: #fff;
}

.btn-aqua:hover,
.btn-aqua:focus {
    background: var(--aldam-primary-hover);
    border-color: var(--aldam-primary-hover);
    color: #fff;
}

.hero-section {
    background: radial-gradient(circle at top right, color-mix(in srgb, var(--aldam-accent) 24%, transparent), transparent 36%), linear-gradient(135deg, var(--aldam-soft) 0%, #ffffff 52%, color-mix(in srgb, var(--aldam-accent) 8%, white) 100%);
    border-bottom: 1px solid color-mix(in srgb, var(--aldam-accent) 24%, white);
}

.small-hero {
    min-height: 280px;
    display: flex;
    align-items: center;
}

.eyebrow {
    color: var(--aldam-primary);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .78rem;
}

.hero-card,
.cta-panel,
.metric-card {
    border-radius: 28px;
    padding: 2rem;
}

.hero-card {
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--aldam-primary) 22%, white);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
}

.stat-number {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--aldam-primary);
}

.stat-label {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
}

.content-band:nth-of-type(even) {
    background: #fff;
}

.service-card,
.video-card,
.card {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
}

.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--aldam-soft);
    color: var(--aldam-primary);
    font-weight: 800;
}

.admin-settings-tabs .nav-link {
    color: #475569;
}

.admin-settings-tabs .nav-link.active {
    background: var(--aldam-primary);
    color: #fff;
}

.admin-settings-page-options {
    border-left: 2px solid color-mix(in srgb, var(--aldam-primary) 18%, white);
    display: flex;
    flex-direction: column;
    margin: .4rem 0 0 1rem;
    padding: .25rem 0 .25rem .75rem;
}

.admin-settings-page-site {
    color: #64748b;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    padding: .45rem .6rem .25rem;
    text-transform: uppercase;
}

.admin-settings-page-link {
    border-radius: .45rem;
    color: #475569;
    font-size: .9rem;
    padding: .4rem .6rem;
    text-decoration: none;
}

.admin-settings-page-link:hover,
.admin-settings-page-link.active {
    background: var(--aldam-soft);
    color: var(--aldam-primary);
    font-weight: 700;
}

.theme-preview {
    background: color-mix(in srgb, var(--preview-primary) 8%, white);
    border: 1px solid color-mix(in srgb, var(--preview-primary) 24%, white);
    border-radius: 1rem;
    font-family: var(--preview-font);
    max-width: 640px;
    overflow: hidden;
}

.theme-preview__header {
    align-items: center;
    background: var(--preview-secondary);
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: .85rem 1rem;
}

.theme-preview__header span {
    color: color-mix(in srgb, var(--preview-accent) 75%, white);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.theme-preview__body {
    padding: 1.5rem;
}

.theme-preview__eyebrow {
    color: var(--preview-primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    margin-bottom: .5rem;
    text-transform: uppercase;
}

.theme-preview__button {
    background: var(--preview-primary);
    border-radius: .45rem;
    color: #fff;
    display: inline-block;
    font-weight: 700;
    padding: .55rem .85rem;
}

.theme-preview__palette {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: .6rem;
}

.theme-preview__palette span:nth-child(1) { background: var(--preview-primary); }
.theme-preview__palette span:nth-child(2) { background: var(--preview-secondary); }
.theme-preview__palette span:nth-child(3) { background: var(--preview-accent); }

.cta-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, var(--aldam-primary), var(--aldam-secondary));
    color: #fff;
}

.auth-container,
.member-container,
.admin-container {
    min-height: 70vh;
}

.video-card.locked {
    opacity: .72;
}

.video-card img {
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background: #e0f2fe;
}

.video-shell {
    background: #020617;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .20);
}

.metric-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}

.metric-card span {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--aldam-primary);
}

.metric-card p {
    margin: 0;
    color: #64748b;
}

.admin-shell {
    min-height: 70vh;
}

.admin-sidebar-column {
    background: #fff;
    border-right: 1px solid #e2e8f0;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 2rem 1rem;
    position: sticky;
    top: 72px;
}

.admin-nav-link {
    border-radius: .65rem;
    color: #334155;
    padding: .65rem .75rem;
    text-decoration: none;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: var(--aldam-soft);
    color: var(--aldam-primary);
    font-weight: 700;
}

.admin-nav-link--child {
    font-size: .92rem;
    padding-left: 1.25rem;
}

.admin-nav-heading {
    color: #0f172a;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    margin-top: .75rem;
    padding: .5rem .75rem .25rem;
    text-transform: uppercase;
}

.admin-nav-site,
.admin-nav-empty {
    color: #64748b;
    font-size: .75rem;
    font-weight: 700;
    padding: .35rem .75rem 0;
}

.admin-content-column {
    min-width: 0;
}

.admin-users-table th,
.admin-users-table td {
    white-space: nowrap;
}

.admin-users-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.footer a {
    color: #fff;
}

@media (max-width: 768px) {
    .cta-panel {
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 991.98px) {
    .admin-sidebar-column {
        border-bottom: 1px solid #e2e8f0;
        border-right: 0;
    }

    .admin-sidebar {
        position: static;
    }
}
