:root {
    --ah-gold-deep: #8f6b2a;
    --ah-gold-mid: #a67c2d;
    --ah-gold: #c9953b;
    --ah-gold-light: #e8b66a;
    --ah-cream: #f6e6c9;
    --ah-cream-soft: #fdf9f2;
    --ah-text: #3d2f1f;
    --ah-text-muted: #6b5a45;
    --ah-white: #ffffff;
    --ah-font-family: 'Cairo', sans-serif;
    --ah-font-size-base: 1rem;
    --ah-font-size-hero: clamp(2.5rem, 5.5vw, 3.75rem);
    --ah-font-size-heading: clamp(1.65rem, 3vw, 2rem);
    --ah-font-size-card-title: 1.25rem;
    --ah-line-height-body: 1.65;
    --ah-line-height-heading: 1.2;
    --ah-shadow: 0 0.5rem 1.5rem rgba(143, 107, 42, 0.12);
    --ah-shadow-lg: 0 1rem 2.5rem rgba(143, 107, 42, 0.18);
    --ah-shadow-auth: 0 1.25rem 3rem rgba(143, 107, 42, 0.2);
    --ah-focus-ring: 0 0 0 0.25rem rgba(201, 149, 59, 0.35);
}

/* Global typography */
body.abstracthub-body {
    background: linear-gradient(180deg, var(--ah-cream-soft) 0%, var(--ah-cream) 100%);
    color: var(--ah-text);
    font-family: var(--ah-font-family);
    font-size: var(--ah-font-size-base);
    font-weight: 400;
    line-height: var(--ah-line-height-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.ah-guest-body {
    background: linear-gradient(180deg, #fffdf8 0%, #faf3e6 55%, var(--ah-cream) 100%);
}

h1, h2, h3, h4, h5, h6,
.ah-section-title,
.ah-auth-title {
    font-family: var(--ah-font-family);
    line-height: var(--ah-line-height-heading);
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* Header */
.ah-navbar {
    background: var(--ah-white) !important;
    border-bottom: 2px solid var(--ah-cream) !important;
    box-shadow: var(--ah-shadow);
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.ah-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ah-navbar-brand-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.ah-navbar-brand-wrap .ah-brand-link {
    max-width: 100%;
}

.ah-navbar-actions {
    flex-shrink: 0;
}

.ah-brand-link {
    color: inherit;
}

.ah-brand-logo {
    height: 51px;
    width: auto;
    flex-shrink: 0;
}

.ah-brand-title {
    line-height: 1.2;
    min-width: 0;
}

.ah-brand-title .brand-name {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ah-gold-deep);
    letter-spacing: -0.02em;
}

.ah-brand-title .brand-tagline {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ah-gold-mid);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.1rem;
}

/* Buttons */
.ah-btn-gold,
.ah-btn-outline-gold,
.ah-btn-hero {
    font-family: var(--ah-font-family);
    font-weight: 600;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ah-btn-nav {
    min-height: 2.25rem;
    padding-inline: 1rem;
    border-radius: 0.5rem;
}

.ah-btn-nav-muted {
    background: transparent;
    border: 1px solid #d9d9d9;
    color: var(--ah-text-muted);
    font-weight: 600;
}

.ah-btn-nav-muted:hover {
    background: #f8f8f8;
    color: var(--ah-text);
}

.ah-btn-gold {
    background: linear-gradient(135deg, var(--ah-gold-mid), var(--ah-gold));
    border: none;
    color: var(--ah-white);
}

.ah-btn-gold:hover,
.ah-btn-gold:focus-visible {
    background: linear-gradient(135deg, var(--ah-gold-deep), var(--ah-gold-mid));
    color: var(--ah-white);
}

.ah-btn-outline-gold {
    border: 2px solid var(--ah-gold);
    color: var(--ah-gold-deep);
    background: transparent;
}

.ah-btn-outline-gold:hover,
.ah-btn-outline-gold:focus-visible {
    background: var(--ah-cream);
    border-color: var(--ah-gold-mid);
    color: var(--ah-gold-deep);
}

.ah-btn-gold:focus-visible,
.ah-btn-outline-gold:focus-visible,
.ah-btn-hero:focus-visible,
.ah-btn-nav:focus-visible {
    box-shadow: var(--ah-focus-ring);
    outline: none;
}

.ah-btn-hero {
    padding: 0.75rem 1.5rem;
    border-radius: 0.625rem;
}

.ah-btn-hero-light {
    background: var(--ah-white);
    color: var(--ah-gold-deep);
    border: none;
}

.ah-btn-hero-light:hover {
    background: var(--ah-cream);
    color: var(--ah-gold-deep);
}

.ah-btn-hero-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.88);
    color: var(--ah-white);
}

.ah-btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--ah-white);
    border-color: var(--ah-white);
}

/* Hero */
.ah-hero {
    background: linear-gradient(135deg, var(--ah-gold-deep) 0%, var(--ah-gold-mid) 30%, var(--ah-gold) 60%, var(--ah-gold-light) 100%);
    color: var(--ah-white);
    position: relative;
    overflow: hidden;
    padding-top: 4rem;
    padding-bottom: 4.5rem;
}

.ah-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(246, 230, 201, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.ah-hero .container {
    position: relative;
    z-index: 1;
}

.ah-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 2rem;
    padding: 0.4rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.ah-hero-title {
    font-size: var(--ah-font-size-hero);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 0.75rem;
}

.ah-hero-subtitle {
    font-size: clamp(1.2rem, 2.8vw, 1.65rem);
    font-weight: 600;
    opacity: 0.96;
    margin-bottom: 1.25rem;
}

.ah-hero-intro {
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.7;
    opacity: 0.92;
    max-width: 38rem;
    margin-bottom: 2rem;
}

.ah-hero-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.5rem;
}

.ah-hero-logo {
    max-height: clamp(115px, 20vw, 184px);
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.22));
}

/* Section & card typography */
.ah-section-title {
    color: var(--ah-gold-deep);
    font-size: var(--ah-font-size-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ah-section-lead {
    color: var(--ah-text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.ah-audience-card,
.ah-conference-card,
.ah-contact-section,
.ah-access-card {
    border: none;
    border-radius: 1rem;
    background: var(--ah-white);
    box-shadow: var(--ah-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ah-audience-card {
    height: 100%;
}

.ah-audience-card:hover,
.ah-conference-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ah-shadow-lg);
}

.ah-audience-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, var(--ah-cream), var(--ah-gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.15rem;
    color: var(--ah-gold-deep);
    font-weight: 700;
}

.ah-audience-card .card-title,
.ah-conference-card h3 {
    color: var(--ah-gold-deep);
    font-size: var(--ah-font-size-card-title);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ah-audience-card .card-text,
.ah-conference-card .text-muted {
    color: var(--ah-text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.ah-conference-card {
    height: 100%;
    overflow: hidden;
}

.ah-conference-logo-wrap {
    height: 76px;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.ah-conference-logo {
    max-height: 68px;
    max-width: 100%;
    object-fit: contain;
}

.ah-conference-logo-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, var(--ah-cream), var(--ah-gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ah-gold-deep);
    font-weight: 800;
    font-size: 1.25rem;
}

.ah-badge-open {
    background: linear-gradient(135deg, #2d6a4f, #40916c) !important;
    font-weight: 600;
}

.ah-badge-closed {
    background: var(--ah-text-muted) !important;
    font-weight: 600;
}

/* Contact */
.ah-contact-section {
    border-top: 4px solid var(--ah-gold);
    padding: 2rem 2.25rem;
}

.ah-contact-section a {
    color: var(--ah-gold-deep);
    text-decoration: none;
    font-weight: 600;
}

.ah-contact-section a:hover {
    color: var(--ah-gold-mid);
    text-decoration: underline;
}

/* Footer */
.ah-footer {
    background: linear-gradient(180deg, var(--ah-gold-deep) 0%, #6b5122 100%);
    color: var(--ah-cream);
    border-top: none;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.ah-footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ah-white);
    letter-spacing: -0.01em;
}

.ah-footer-message {
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 36rem;
    margin-inline: auto;
    line-height: 1.6;
}

.ah-footer-contact {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.7;
}

.ah-footer-contact a {
    color: var(--ah-gold-light);
    text-decoration: none;
    font-weight: 600;
}

.ah-footer-contact a:hover {
    color: var(--ah-white);
    text-decoration: underline;
}

.ah-footer-sep {
    margin-inline: 0.45rem;
    opacity: 0.65;
}

.ah-footer-copyright {
    margin-top: 2rem;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.65;
    opacity: 0.88;
}

.ah-footer-powered-by {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
    opacity: 0.92;
}

.ah-footer-divider {
    border-color: rgba(246, 230, 201, 0.25);
    margin-top: 1.75rem;
    margin-bottom: 1.75rem;
}

/* Auth */
.ah-auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ah-auth-brand-intro {
    padding-bottom: 0.25rem;
}

.ah-auth-brand-eyebrow {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ah-gold-deep);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.ah-auth-brand-tagline {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ah-text-muted);
    line-height: 1.5;
}

.ah-auth-brand-powered {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ah-gold-mid);
}

.ah-auth-card {
    border-radius: 1.125rem;
    box-shadow: var(--ah-shadow-auth);
    background: var(--ah-white);
}

.ah-auth-title {
    color: var(--ah-gold-deep);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.ah-auth-subtitle {
    color: var(--ah-text-muted);
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.55;
}

.ah-auth-text {
    color: var(--ah-text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.ah-form-label {
    color: var(--ah-gold-deep);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
}

.ah-form-control {
    border: 1.5px solid #ead9bc;
    border-radius: 0.625rem;
    padding: 0.75rem 0.95rem;
    color: var(--ah-text);
    font-family: var(--ah-font-family);
    font-size: 0.98rem;
    font-weight: 400;
    min-height: 2.875rem;
    background: #fffdfa;
}

.ah-form-control:focus {
    border-color: var(--ah-gold);
    box-shadow: var(--ah-focus-ring);
    background: var(--ah-white);
}

.ah-password-field .ah-form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

.ah-password-field .ah-form-control:focus {
    z-index: 3;
}

.ah-password-field .ah-form-control.is-invalid {
    z-index: 3;
}

.ah-password-toggle {
    border: 1.5px solid #ead9bc;
    border-left: 0;
    border-radius: 0 0.625rem 0.625rem 0;
    background: #fffdfa;
    color: var(--ah-gold-mid);
    padding: 0 0.85rem;
    min-height: 2.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ah-password-toggle:hover,
.ah-password-toggle:focus {
    background: var(--ah-white);
    color: var(--ah-gold-deep);
    border-color: #ead9bc;
}

.ah-password-toggle:focus-visible {
    box-shadow: var(--ah-focus-ring);
    z-index: 4;
}

.ah-password-field:focus-within .ah-password-toggle {
    border-color: var(--ah-gold);
}

.ah-form-check {
    min-height: 1.25rem;
}

.ah-form-check-input:focus {
    box-shadow: var(--ah-focus-ring);
    border-color: var(--ah-gold);
}

.ah-form-check-input:checked {
    background-color: var(--ah-gold);
    border-color: var(--ah-gold);
}

.ah-form-check-label {
    font-weight: 400;
    color: var(--ah-text-muted);
}

.ah-auth-link {
    color: var(--ah-gold-mid);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92rem;
}

.ah-auth-link:hover {
    color: var(--ah-gold-deep);
    text-decoration: underline;
}

.ah-auth-link:focus-visible {
    outline: 2px solid var(--ah-gold);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.ah-alert {
    border-radius: 0.625rem;
    border: none;
    background: rgba(201, 149, 59, 0.12);
    color: var(--ah-gold-deep);
    font-weight: 500;
    line-height: 1.55;
}

.ah-brand-lockup .ah-brand-logo {
    height: 58px;
}

.ah-conference-page .card {
    border-radius: 1rem;
    box-shadow: var(--ah-shadow);
}

.ah-access-card {
    border: 2px solid var(--ah-gold-light) !important;
    box-shadow: var(--ah-shadow-lg);
}

.ah-access-card h1,
.ah-access-card .ah-section-title {
    color: var(--ah-gold-deep);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 991.98px) {
    .ah-hero {
        padding-top: 3rem;
        padding-bottom: 3.5rem;
    }

    .ah-hero-logo-wrap {
        margin-top: 2rem;
    }

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

    .ah-hero-cta .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .ah-navbar-inner {
        gap: 0.65rem;
    }

    .ah-brand-logo {
        height: 44px;
    }

    .ah-brand-title .brand-name {
        font-size: 1.12rem;
    }

    .ah-brand-title .brand-tagline {
        font-size: 0.62rem;
        letter-spacing: 0.04em;
    }

    .ah-navbar-actions .ah-btn-nav {
        padding-inline: 0.75rem;
        font-size: 0.88rem;
    }

    .ah-auth-brand-eyebrow {
        font-size: 1.3rem;
    }

    .ah-footer-brand {
        font-size: 1.05rem;
    }
}

@media (max-width: 399.98px) {
    .ah-brand-title .brand-tagline {
        display: none;
    }
}
