/*
Theme Name: The After Hours Society
Theme URI: https://www.theafterhourssociety.com
Description: A custom, premium dark-mode theme for The After Hours Society.
Author: Antigravity
Author URI: https://google.com
Version: 1.9
Text Domain: after-hours
*/

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400;1,600&family=Montserrat:wght@200;300;400&display=swap');

:root {
    --bg-color: #030305;
    /* Deepest midnight */
    --surface-color: #0f0f13;
    --surface-color-transparent: rgba(15, 15, 19, 0.85);

    /* More "Champagne" Gold, less "Brass" */
    --primary-color: #F2D0A4;
    --primary-accent: #bf955e;

    /* Deep sensual red/purple undertone */
    --secondary-color: #4a0404;

    --text-color: #EAEAEA;
    --text-muted: #9ca3af;

    /* New Fonts */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    --transition-speed: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);

    --glass-bg: rgba(20, 20, 25, 0.4);
    --glass-border: rgba(242, 208, 164, 0.15);
    --glass-blur: 15px;

    --glow-text: 0 0 15px rgba(242, 208, 164, 0.3);
    --glow-box: 0 0 30px rgba(0, 0, 0, 0.8);
}

/* =========================================
   CRITICAL HERO STYLES (Moved to Top)
   ========================================= */
.ahs-hero {
    position: relative;
    min-height: 100vh;
    padding: clamp(90px, 10vh, 130px) 20px 60px;
    /* Allow the hero to expand without clipping long copy or the login panel */
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    /* Fallback */
}

.ahs-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Keep the mask + lounge visible on wide screens */
    background-position: 72% 55%;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1 !important;
    /* Bottom */
    display: block !important;
    transform: translateZ(0);

    /* Lift the image out of the abyss — the overlay is already dark */
    filter: brightness(1.15) contrast(1.08) saturate(1.05);
    opacity: 0.95;
}

.ahs-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* The hero image is intentionally dark — keep the mood without blacking it out */
    background:
        radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.75) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.65));
    z-index: 2 !important;
    /* Middle */
    pointer-events: none;
}

.ahs-hero__inner {
    position: relative;
    z-index: 3 !important;
    /* Top */
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 40px;
}

.ahs-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin: 0 0 15px;
    color: #fff;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.ahs-hero__sub {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin: 0 0 50px;
    opacity: 0.9;
}

.ahs-hero__card {
    background: rgba(15, 15, 19, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    padding: clamp(24px, 3.2vw, 40px);
    max-width: 760px;
    margin: 0 auto 24px;
    border-radius: 4px;
    height: auto;
    max-height: none;
    overflow: visible;
}

.ahs-hero__card p {
    font-size: 1.0rem;
    line-height: 1.7;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.ahs-hero__card p:last-child {
    margin-bottom: 0;
}

.ahs-hero__features {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.ahs-hero__features img {
    mix-blend-mode: screen;
    opacity: 0.9;
    max-width: 280px;
    height: auto;
}


.ahs-hero__sigils{
    display:flex;
    gap:20px;
    justify-content:center;
    flex-wrap:wrap;
    border-top: 1px solid rgba(255,255,255,0.10);
    padding-top: 18px;
    margin-top: 18px;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary-color);
}
.ahs-hero__sigils span.sep{ opacity: 0.35; }
.ahs-hero__cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .ahs-hero {
        padding-top: 120px;
    }

    /* Mobile: keep composition balanced (avoid pinning too far right) */
    .ahs-hero__bg {
        background-position: 55% 75%;
    }

    .ahs-hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .ahs-hero__cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* END CRITICAL HERO STYLES */

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
    /* Lighter weight for elegance */
    line-height: 1.8;
    overflow-x: hidden;
    letter-spacing: 0.02em;
    width: 100%;
    /* Prevent horizontal shift */
    margin: 0;
}

/* WP Admin Bar Fix */
body.admin-bar .header {
    top: 32px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

h1 {
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
    text-shadow: var(--glow-text);
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn:hover {
    background: rgba(242, 208, 164, 0.1);
    box-shadow: 0 0 20px rgba(242, 208, 164, 0.2);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
    font-weight: 600;
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

/* Ghost button (keeps default but slightly brighter on dark hero) */
.btn-ghost {
    border-color: rgba(242, 208, 164, 0.9);
    color: rgba(242, 208, 164, 0.95);
}
.btn-ghost:hover {
    background: rgba(242, 208, 164, 0.12);
    color: #fff;
}

/* ============================================================
   ABOUT PAGE — Phase-0 polish (theme baked)
   ============================================================ */
.ahs-about-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ahs-about-hero__veil {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.78) 55%, rgba(0,0,0,0.92) 100%);
}

.ahs-about-hero__inner {
    position: relative;
    padding-top: 140px; /* clears fixed header */
    padding-bottom: 60px;
    max-width: 980px;
    text-align: left;
}

.ahs-about-hero__title {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4rem);
    letter-spacing: 2px;
}

.ahs-about-hero__subtitle {
    margin-top: 18px;
    max-width: 42rem;
    font-size: 1.15rem;
    color: rgba(255,255,255,0.78);
}

.ahs-about-hero__actions {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ahs-about-story {
    background: #000;
}

.ahs-about-story__wrap {
    max-width: 980px;
    margin: 0 auto;
}

.ahs-about-story__copy {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.78);
}

.ahs-about-story__copy p {
    margin-bottom: 18px;
}

.ahs-about-split {
    background: rgba(10,10,10,1);
}

.ahs-about-split__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.ahs-card {
    border: 1px solid rgba(242, 208, 164, 0.18);
    background: rgba(0,0,0,0.65);
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 0 40px rgba(0,0,0,0.35);
}

.ahs-card--muted {
    border-color: rgba(255,255,255,0.10);
}

.ahs-card h2 {
    margin-top: 0;
    margin-bottom: 14px;
}

.ahs-card ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}

.ahs-about-steps {
    background: #000;
}

.ahs-steps {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ahs-step {
    border: 1px solid rgba(242, 208, 164, 0.14);
    background: rgba(255,255,255,0.02);
    padding: 24px;
    border-radius: 14px;
}

.ahs-step__num {
    color: rgba(242, 208, 164, 0.9);
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.ahs-step__title {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.ahs-step__desc {
    color: rgba(255,255,255,0.70);
    line-height: 1.7;
}

.ahs-about-cta {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .ahs-about-split__grid {
        grid-template-columns: 1fr;
    }
    .ahs-steps {
        grid-template-columns: 1fr;
    }
    .ahs-about-hero__inner {
        text-align: center;
    }
    .ahs-about-hero__actions {
        justify-content: center;
    }
}

.section-padding {
    padding: 100px 0;
}

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

.gold-text {
    color: var(--primary-color);
    text-shadow: var(--glow-text);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    background: linear-gradient(to bottom, rgba(3, 3, 5, 0.95), rgba(3, 3, 5, 0));
    transition: background 0.5s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    color: #fff;
    text-transform: none;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links li a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

.nav-links li a.active,
.nav-links li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    opacity: 0.4;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-family: var(--font-heading);
    font-style: italic;
    margin-bottom: 50px;
    color: var(--primary-color);
    opacity: 0.9;
}

/* Login/Password Form Styles */
.password-form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(15, 15, 19, 0.9);
    border: 1px solid var(--glass-border);
    text-align: center;
}

.post-password-form label {
    display: block;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.post-password-form input[type="password"] {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.post-password-form input[type="submit"] {
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-password-form input[type="submit"]:hover {
    background: white;
    color: black;
}

/* Event List Styling */
.events-grid {
    display: grid;
    gap: 40px;
}

/* event-card styles consolidated below — see grid version */

.event-date {
    color: var(--primary-color);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: block;
}

/* Login Form Styles */
.login-container {
    max-width: 450px;
    margin: 40px auto 0;
    background: rgba(15, 15, 19, 0.95);
    padding: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glow-box);
}

.login-form p {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-body);
    transition: all 0.3s;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 15px rgba(242, 208, 164, 0.1);
}

.login-submit {
    margin-top: 30px;
}

.login-submit input[type="submit"] {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: #000;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.login-submit input[type="submit"]:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.login-remember {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
}

footer {
    background: #000;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    list-style: none;
    flex-wrap: wrap;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =========================================
   AHS Hero Layout Fixes (New Structure)
   ========================================= */
.ahs-hero {
    position: relative;
    min-height: 100vh;
    /* Ensures full height */
    padding: clamp(100px, 15vh, 150px) 20px 80px;
    /* Allow the hero to expand without clipping long copy or the login panel */
    overflow: visible;
    /* Contains the blur/overlay but allows scroll */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Wrapper */
.ahs-hero__bg {
    position: absolute;
    inset: 0;
    /* Keep the mask + lounge visible on wide screens */
    background-position: 70% 80%;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    transform: translateZ(0);
    /* Hardware accel to prevent seam tearing */

    /* Lift the image out of the abyss — the overlay is already dark */
    filter: brightness(1.15) contrast(1.08) saturate(1.05);
    opacity: 0.95;
}

/* Overlay Gradient */
.ahs-hero__overlay {
    position: absolute;
    inset: 0;
    /* The hero image is intentionally dark — keep the mood without blacking it out */
    background:
        radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.75) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.65));
    z-index: 1;
}

/* Inner Content Container */
.ahs-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    /* Centering Fix */
    text-align: center;
    padding-bottom: 40px;
}

/* Typography */
.ahs-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin: 0 0 15px;
    color: #fff;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.ahs-hero__sub {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--primary-color);
    /* Gold */
    margin: 0 0 50px;
    opacity: 0.9;
}

/* The Glass Card (No Clipping!) */
.ahs-hero__card {
    background: rgba(15, 15, 19, 0.6);
    /* Slightly more transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    padding: clamp(24px, 3.2vw, 40px);
    max-width: 760px;
    margin: 0 auto 24px;
    border-radius: 4px;

    /* Crucial layout fixes */
    height: auto;
    max-height: none;
    overflow: visible;
}

.ahs-hero__card p {
    font-size: 1.0rem;
    line-height: 1.7;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.ahs-hero__card p:last-child {
    margin-bottom: 0;
}

/* Features/Icons Row */
.ahs-hero__features {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.ahs-hero__features img {
    /* If the png has a black background, this blends it away */
    mix-blend-mode: screen;
    opacity: 0.9;
    max-width: 280px;
    height: auto;
}

/* CTA Buttons */
.ahs-hero__cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .ahs-hero {
        padding-top: 120px;
    }

    .ahs-hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .ahs-hero__cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* =========================
   Expansion Pages (Events / Rules / Reservation / About / Dashboard / Apply)
   ========================= */

.section-padding{ padding: 80px 0; }
.text-center{ text-align:center; }

.form-group{ margin-bottom: 18px; }
.form-label{ display:block; margin-bottom: 8px; font-size: 0.85rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.form-control{
  width:100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  outline: none;
}
.form-control:focus{
  border-color: rgba(242, 208, 164, 0.65);
  box-shadow: 0 0 0 2px rgba(242, 208, 164, 0.10);
}

.feature-card{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 26px;
}

.event-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  margin-bottom: 28px;
  overflow: hidden;
  transition: transform 0.3s;
}
.event-card:hover {
  transform: translateY(-2px);
}
.event-image {
  min-height: 320px;
  height: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.event-details {
  padding: 36px;
}
.event-date {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(242, 208, 164, 0.9);
  margin-bottom: 12px;
}

@media (max-width: 860px) {
  .event-card { grid-template-columns: 1fr; }
  .event-image { min-height: 260px; height: 260px; }
}

/* Reservation page */
.reservation-summary{
  background: rgba(255,255,255,0.03);
  padding: 30px;
  border: 1px solid rgba(242, 208, 164, 0.45);
  margin-bottom: 30px;
}
.ticket-option{
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.ticket-option:hover,
.ticket-option.selected{
  border-color: rgba(242, 208, 164, 0.75);
  background: rgba(242, 208, 164, 0.06);
}
.ticket-option h4{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 8px;
}
.ticket-option.pulse-attention{
  animation: ahsPulse 0.25s ease-in-out 0s 3;
}
@keyframes ahsPulse{
  0%{ transform: translateY(0); }
  50%{ transform: translateY(-2px); }
  100%{ transform: translateY(0); }
}

/* ================================
   WOOCOMMERCE VISIBILITY FIX
   Ensures My Account / Dashboard content isn't black-on-black
   ================================ */

.woocommerce,
.woocommerce-page {
    color: var(--text-color);
}

.woocommerce a,
.woocommerce-page a {
    color: var(--text-color);
}

.woocommerce a:hover,
.woocommerce-page a:hover {
    color: var(--primary-color);
}

.woocommerce p,
.woocommerce-page p,
.woocommerce li,
.woocommerce-page li,
.woocommerce table,
.woocommerce-page table,
.woocommerce .woocommerce-MyAccount-content,
.woocommerce-page .woocommerce-MyAccount-content {
    color: var(--text-color);
}

/* Make WC notices readable */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    background: rgba(15, 15, 19, 0.95);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
}

/* My Account navigation styling */
.woocommerce-MyAccount-navigation {
    background: rgba(15, 15, 19, 0.75);
    border: 1px solid var(--glass-border);
    padding: 18px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.woocommerce-MyAccount-navigation li.is-active a {
    color: var(--primary-color);
    text-shadow: var(--glow-text);
}

/* Inputs on dark background */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="password"],
.woocommerce textarea,
.woocommerce select {
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
}

.woocommerce label {
    color: var(--text-muted);
}

/* Buttons */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 18px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
    background: var(--primary-color);
    color: #000;
}

/* =====================================================
   AHS: Member Profile Page
   ===================================================== */

.ahs-profile-page { min-height: 100vh; }

/* ── Profile Header ─────────────────────────────────── */
.ahs-profile-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 72px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--glass-border);
}

@media (max-width: 640px) {
  .ahs-profile-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Photo */
.ahs-profile-photo-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .ahs-profile-photo-wrap { margin: 0 auto; }
}

.ahs-profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--glass-border);
  background-color: var(--surface-color);
}

.ahs-photo-upload-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity .2s;
}
.ahs-photo-upload-btn:hover { opacity: .8; }

/* Identity */
.ahs-profile-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-color);
  margin: 0 0 6px;
}

.ahs-profile-meta {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin: 0 0 16px;
}

.ahs-profile-bio {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 560px;
}

/* Inline editable fields */
.ahs-inline-edit {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-color);
  font-family: var(--font-heading);
  font-size: 2rem;
  width: 100%;
  max-width: 480px;
  padding: 4px 0;
  outline: none;
  transition: border-color .2s;
  display: block;
}
.ahs-inline-edit:focus { border-bottom-color: var(--primary-color); }

.ahs-bio-edit {
  font-family: var(--font-body);
  font-size: .9rem;
  resize: vertical;
  min-height: 80px;
  margin-top: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.ahs-inline-hint {
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .06em;
  opacity: .6;
  margin-top: 4px;
  display: block;
}

/* ── Spider Graph Section ───────────────────────────── */
.ahs-spider-section { margin-bottom: 80px; }

.ahs-spider-combined {
  display: flex;
  justify-content: center;
}

.ahs-spider-card--combined {
  width: 100%;
  max-width: 780px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Legend */
.ahs-spider-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}

.ahs-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ahs-legend-him { background: rgba(147, 197, 253, 0.95); }
.ahs-legend-her { background: rgba(249, 168, 212, 0.95); }

#spiderCombined {
  width: 100% !important;
  max-width: 420px;
  height: auto !important;
}

/* Sliders — two columns side by side */
.ahs-slider-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}

@media (max-width: 600px) {
  .ahs-slider-double { grid-template-columns: 1fr; }
}

.ahs-slider-group-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: .06em;
}

.ahs-him-label { color: rgba(147, 197, 253, 0.95); }
.ahs-her-label { color: rgba(249, 168, 212, 0.95); }

/* Sliders */
.ahs-slider-group { width: 100%; }

.ahs-slider-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ahs-slider-row label {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ahs-slider-him { accent-color: rgba(147, 197, 253, 0.95); cursor: pointer; width: 90px; }
.ahs-slider-her { accent-color: rgba(249, 168, 212, 0.95); cursor: pointer; width: 90px; }

.ahs-slider-val {
  font-size: .82rem;
  min-width: 14px;
  text-align: center;
  color: var(--text-muted);
}

/* =====================================================
   AHS: Member Dashboard
   ===================================================== */

.ahs-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--glass-border);
  gap: 20px;
  flex-wrap: wrap;
}

.ahs-dashboard-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.ahs-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 860px) {
  .ahs-dashboard-grid { grid-template-columns: 1fr; }
}

/* Cards */
.ahs-dash-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 28px;
}

.ahs-dash-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--primary-color);
  letter-spacing: .06em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

/* Ticket cards */
.ahs-ticket-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
}
.ahs-ticket-card:last-child { border-bottom: none; }

.ahs-ticket-img {
  width: 90px;
  height: 70px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.ahs-ticket-details h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 6px 0 0;
}

.ahs-ticket-badge {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6ee7b7;
  border: 1px solid rgba(110,231,183,.3);
  padding: 4px 10px;
}

/* Chat embed */
.ahs-chat-embed {
  min-height: 420px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
}

/* Attendee list */
.ahs-attendee-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ahs-attendee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 8px;
  transition: background .2s;
}
.ahs-attendee-item:hover {
  background: rgba(242,208,164,0.05);
}

.ahs-attendee-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-color);
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.ahs-attendee-name {
  font-size: .85rem;
  color: var(--text-color);
  letter-spacing: .04em;
}

/* Empty state */
.ahs-empty-state {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ── Chemistry Chart ───────────────────────────────────────── */
.ahs-spider-section {
  margin-top: 60px;
}
.ahs-spider-card--combined {
  background: linear-gradient(145deg, rgba(15,15,25,0.95), rgba(25,20,35,0.98));
  border: 1px solid rgba(242,208,164,0.15);
  border-radius: 16px;
  padding: 36px 32px 40px;
  box-shadow: 0 0 60px rgba(0,0,0,0.6), 0 0 30px rgba(147,197,253,0.04), inset 0 1px 0 rgba(255,255,255,0.05);
  max-width: 540px;
  margin: 0 auto;
}
.ahs-spider-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(220,220,220,0.7);
}
.ahs-legend-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
}
.ahs-legend-him { background: rgba(147,197,253,1); box-shadow: 0 0 8px rgba(147,197,253,0.8); }
.ahs-legend-her { background: rgba(249,168,212,1); box-shadow: 0 0 8px rgba(249,168,212,0.8); }

/* Toggle buttons */
.ahs-chart-toggles {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 24px;
}
.ahs-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(220,220,220,0.5);
  border-radius: 20px;
  padding: 5px 18px;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
  font-family: 'Montserrat', sans-serif;
}
.ahs-toggle:hover {
  border-color: rgba(242,208,164,0.4);
  color: rgba(242,208,164,0.7);
}
.ahs-toggle--him.active {
  background: rgba(147,197,253,0.15);
  border-color: rgba(147,197,253,0.6);
  color: rgba(147,197,253,1);
  box-shadow: 0 0 12px rgba(147,197,253,0.25);
}
.ahs-toggle--her.active {
  background: rgba(249,168,212,0.15);
  border-color: rgba(249,168,212,0.6);
  color: rgba(249,168,212,1);
  box-shadow: 0 0 12px rgba(249,168,212,0.25);
}
.ahs-toggle--both.active {
  background: rgba(242,208,164,0.12);
  border-color: rgba(242,208,164,0.5);
  color: rgba(242,208,164,1);
  box-shadow: 0 0 12px rgba(242,208,164,0.2);
}

/* Canvas glow wrapper */
#spiderCombined {
  filter: drop-shadow(0 0 8px rgba(147,197,253,0.15)) drop-shadow(0 0 4px rgba(249,168,212,0.1));
  max-width: 420px;
  margin: 0 auto;
  display: block;
}

/* -- Chemistry Chart ---------------------------------------- */
.ahs-spider-section { margin-top: 60px; }

.ahs-spider-card--combined {
  background: linear-gradient(145deg, rgba(15,15,25,0.95), rgba(25,20,35,0.98));
  border: 1px solid rgba(242,208,164,0.15);
  border-radius: 16px;
  padding: 36px 32px 40px;
  box-shadow: 0 0 60px rgba(0,0,0,0.6), 0 0 30px rgba(147,197,253,0.04), inset 0 1px 0 rgba(255,255,255,0.05);
  max-width: 540px;
  margin: 0 auto;
}

.ahs-spider-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(220,220,220,0.7);
}

.ahs-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.ahs-legend-him { background: rgba(147,197,253,1); box-shadow: 0 0 8px rgba(147,197,253,0.8); }
.ahs-legend-her { background: rgba(249,168,212,1); box-shadow: 0 0 8px rgba(249,168,212,0.8); }

.ahs-chart-toggles {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 24px;
}

.ahs-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(220,220,220,0.5);
  border-radius: 20px;
  padding: 5px 18px;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
  font-family: 'Montserrat', sans-serif;
}

.ahs-toggle:hover { border-color: rgba(242,208,164,0.4); color: rgba(242,208,164,0.7); }
.ahs-toggle--him.active { background: rgba(147,197,253,0.15); border-color: rgba(147,197,253,0.6); color: rgba(147,197,253,1); box-shadow: 0 0 12px rgba(147,197,253,0.25); }
.ahs-toggle--her.active { background: rgba(249,168,212,0.15); border-color: rgba(249,168,212,0.6); color: rgba(249,168,212,1); box-shadow: 0 0 12px rgba(249,168,212,0.25); }
.ahs-toggle--both.active { background: rgba(242,208,164,0.12); border-color: rgba(242,208,164,0.5); color: rgba(242,208,164,1); box-shadow: 0 0 12px rgba(242,208,164,0.2); }

#spiderCombined {
  filter: drop-shadow(0 0 8px rgba(147,197,253,0.15)) drop-shadow(0 0 4px rgba(249,168,212,0.1));
  max-width: 420px;
  margin: 0 auto;
  display: block;
}

/* ============================================================

/* ============================================================
   AHS: Chemistry Profile Key
   ============================================================ */
.ahs-chemistry-key {
    margin: 0 auto 40px;
    max-width: 900px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(242,208,164,0.12);
    border-radius: 12px;
    padding: 24px 28px;
}
.ahs-chemistry-key-title {
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(242,208,164,0.6);
    margin: 0 0 20px;
    text-align: center;
}
.ahs-chemistry-key-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 700px) {
    .ahs-chemistry-key-grid { grid-template-columns: 1fr; }
}
.ahs-chemistry-key-item {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 14px 16px;
}
.ahs-chemistry-key-label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(242,208,164,0.85);
    margin-bottom: 6px;
}
.ahs-chemistry-key-question {
    font-size: .78rem;
    color: rgba(220,220,220,0.6);
    margin-bottom: 10px;
    font-style: italic;
    line-height: 1.4;
}
.ahs-chemistry-key-scale {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ahs-chemistry-key-scale li {
    font-size: .72rem;
    color: rgba(220,220,220,0.65);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}
.ahs-key-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    background: rgba(242,208,164,0.12);
    border: 1px solid rgba(242,208,164,0.2);
    color: rgba(242,208,164,0.8);
    font-size: .65rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* ============================================================
   AHS: Chemistry Key Button & Modal
   ============================================================ */
.ahs-key-btn {
    background: transparent;
    border: 1px solid rgba(242,208,164,0.3);
    color: rgba(242,208,164,0.7);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: .65rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 180ms ease;
}
.ahs-key-btn:hover {
    background: rgba(242,208,164,0.1);
    color: rgba(242,208,164,1);
    border-color: rgba(242,208,164,0.5);
}
.ahs-key-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ahs-key-modal-overlay.open { display: flex; }
.ahs-key-modal-inner {
    background: #0f0f1a;
    border: 1px solid rgba(242,208,164,0.2);
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.ahs-key-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(242,208,164,0.12);
    flex-shrink: 0;
}
.ahs-key-modal-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: rgba(242,208,164,0.9);
    margin: 0;
    font-weight: 400;
    letter-spacing: .05em;
}
.ahs-key-modal-close {
    background: transparent;
    border: none;
    color: rgba(156,163,175,0.5);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}
.ahs-key-modal-close:hover { color: rgba(242,208,164,0.8); }
.ahs-key-modal-body {
    overflow-y: auto;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 600px) {
    .ahs-key-modal-body { grid-template-columns: 1fr; }
}
.ahs-key-modal-axis {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px 16px;
}
.ahs-key-modal-axis-name {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(242,208,164,0.85);
    margin-bottom: 5px;
}
.ahs-key-modal-axis-question {
    font-size: .76rem;
    color: rgba(220,220,220,0.55);
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.4;
}
.ahs-key-modal-scale {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ahs-key-modal-scale li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .73rem;
    color: rgba(220,220,220,0.7);
    line-height: 1.4;
}
.ahs-key-modal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: rgba(242,208,164,0.1);
    border: 1px solid rgba(242,208,164,0.2);
    color: rgba(242,208,164,0.8);
    font-size: .65rem;
    font-weight: 600;
    flex-shrink: 0;
}
/* Axis score cards below chart */
.ahs-axis-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 900px;
    margin: 28px auto 0;
}
@media (max-width: 700px) { .ahs-axis-cards { grid-template-columns: 1fr; } }
.ahs-axis-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px 16px;
}
.ahs-axis-card-name {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(242,208,164,0.8);
    margin-bottom: 4px;
}
.ahs-axis-card-question {
    font-size: .72rem;
    color: rgba(220,220,220,0.45);
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.4;
}
.ahs-axis-card-scores { display: flex; flex-direction: column; gap: 7px; }
.ahs-axis-score-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ahs-axis-who {
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    width: 26px;
    flex-shrink: 0;
}
.ahs-axis-who.him { color: rgba(147,197,253,0.8); }
.ahs-axis-who.her { color: rgba(249,168,212,0.8); }
.ahs-axis-pips { display: flex; gap: 3px; }
.ahs-axis-pip {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
}
.ahs-axis-pip.on-him { background: rgba(147,197,253,0.6); border-color: rgba(147,197,253,0.4); }
.ahs-axis-pip.on-her { background: rgba(249,168,212,0.6); border-color: rgba(249,168,212,0.4); }
.ahs-axis-score-desc {
    font-size: .68rem;
    color: rgba(220,220,220,0.6);
    line-height: 1.3;
    flex: 1;
}
.ahs-axis-no-score { color: rgba(156,163,175,0.3) !important; font-style: italic; }
/* Slider scale text helper */
.ahs-slider-scale-text {
    font-size: .7rem;
    color: rgba(220,220,220,0.45);
    font-style: italic;
    margin: -6px 0 10px 0;
    padding-left: 2px;
    min-height: 1.2em;
}

/* ============================================================
   AHS: Chemistry Compatibility Widget
   ============================================================ */
.ahs-compat-wrap {
    max-width: 700px;
    margin: 0 auto 36px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(242,208,164,0.15);
    border-radius: 14px;
    padding: 24px 28px;
}
.ahs-compat-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ahs-compat-score {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    color: rgba(242,208,164,1);
    line-height: 1;
    font-weight: 400;
    flex-shrink: 0;
}
.ahs-compat-score span {
    font-size: 1.5rem;
    color: rgba(242,208,164,0.6);
}
.ahs-compat-title {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(242,208,164,0.85);
    margin-bottom: 4px;
}
.ahs-compat-sub {
    font-size: .72rem;
    color: rgba(156,163,175,0.5);
    font-style: italic;
}
.ahs-compat-bars { display: flex; flex-direction: column; gap: 12px; }
.ahs-compat-bar-row {
    display: grid;
    grid-template-columns: 100px 1fr 44px;
    align-items: center;
    gap: 12px;
}
.ahs-compat-bar-label {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(220,220,220,0.7);
}
.ahs-compat-bar-tracks { display: flex; flex-direction: column; gap: 4px; }
.ahs-compat-bar-track { display: flex; align-items: center; gap: 8px; }
.ahs-compat-who {
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    width: 24px;
    flex-shrink: 0;
}
.ahs-compat-who.him { color: rgba(147,197,253,0.7); }
.ahs-compat-who.her { color: rgba(249,168,212,0.7); }
.ahs-compat-bar-bg {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}
.ahs-compat-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}
.ahs-compat-bar-fill.him.high { background: rgba(147,197,253,0.7); }
.ahs-compat-bar-fill.him.mid  { background: rgba(147,197,253,0.45); }
.ahs-compat-bar-fill.him.low  { background: rgba(147,197,253,0.2); }
.ahs-compat-bar-fill.her.high { background: rgba(249,168,212,0.7); }
.ahs-compat-bar-fill.her.mid  { background: rgba(249,168,212,0.45); }
.ahs-compat-bar-fill.her.low  { background: rgba(249,168,212,0.2); }
.ahs-compat-bar-pct {
    font-size: .72rem;
    font-weight: 600;
    text-align: right;
}
.ahs-compat-bar-pct.high { color: rgba(147,197,253,0.9); }
.ahs-compat-bar-pct.mid  { color: rgba(242,208,164,0.7); }
.ahs-compat-bar-pct.low  { color: rgba(156,163,175,0.4); }
.ahs-compat-note {
    font-size: .7rem;
    color: rgba(156,163,175,0.4);
    font-style: italic;
    margin-top: 16px;
    text-align: center;
}
.ahs-compat-empty {
    text-align: center;
    font-size: .78rem;
    color: rgba(156,163,175,0.4);
    font-style: italic;
    margin: 0 auto 32px;
    max-width: 500px;
}

/* ============================================================
   AHS: Chemistry Gauge Meter
   ============================================================ */
.ahs-compat-wrap {
    max-width: 600px;
    margin: 0 auto 36px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(242,208,164,0.15);
    border-radius: 14px;
    padding: 24px 28px;
}
.ahs-compat-title-row { text-align: center; margin-bottom: 8px; }
.ahs-compat-title {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(242,208,164,0.85);
    margin-bottom: 4px;
}
.ahs-compat-sub {
    font-size: .68rem;
    color: rgba(156,163,175,0.45);
    font-style: italic;
}
.ahs-gauge-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 20px;
}
.ahs-gauge {
    width: 220px;
    height: 130px;
    overflow: visible;
}

/* ============================================================
   AHS: Chemistry Gauge v2 — refined
   ============================================================ */
.ahs-compat-wrap {
    max-width: 580px;
    margin: 0 auto 36px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(242,208,164,0.15);
    border-radius: 16px;
    padding: 28px 32px;
}
.ahs-compat-title-row { text-align: center; margin-bottom: 4px; }
.ahs-compat-heading {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(242,208,164,0.8);
    margin-bottom: 4px;
}
.ahs-compat-sub {
    font-size: .68rem;
    color: rgba(156,163,175,0.4);
    font-style: italic;
}
.ahs-gauge-wrap { display: flex; justify-content: center; margin: 0; }
.ahs-gauge { width: 260px; height: 150px; }
.ahs-compat-verdict-sub {
    text-align: center;
    font-size: .78rem;
    color: rgba(220,220,220,0.55);
    font-style: italic;
    margin: 0 0 20px;
    line-height: 1.5;
}
.ahs-compat-takeaway {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    flex-wrap: wrap;
}
.ahs-takeaway-item {
    font-size: .72rem;
    color: rgba(220,220,220,0.6);
    display: flex;
    align-items: center;
    gap: 7px;
}
.ahs-takeaway-item strong { color: rgba(220,220,220,0.85); font-weight: 500; }
.ahs-takeaway-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ahs-takeaway-dot.high { background: rgba(42,122,90,0.9); }
.ahs-takeaway-dot.low  { background: rgba(139,32,32,0.7); }
.ahs-compat-bars { display: flex; flex-direction: column; gap: 10px; }
.ahs-compat-bar-row {
    display: grid;
    grid-template-columns: 90px 1fr 40px;
    align-items: center;
    gap: 12px;
}
.ahs-compat-bar-label {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(220,220,220,0.6);
}
.ahs-compat-bar-tracks { display: flex; flex-direction: column; gap: 4px; }
.ahs-compat-bar-track { display: flex; align-items: center; gap: 6px; }
.ahs-compat-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ahs-compat-dot.him { background: rgba(147,197,253,0.7); }
.ahs-compat-dot.her { background: rgba(249,168,212,0.7); }
.ahs-compat-bar-bg {
    flex: 1; height: 5px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px; overflow: hidden;
}
.ahs-compat-bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.ahs-compat-bar-fill.him.high { background: rgba(147,197,253,0.75); }
.ahs-compat-bar-fill.him.mid  { background: rgba(147,197,253,0.45); }
.ahs-compat-bar-fill.him.low  { background: rgba(147,197,253,0.2); }
.ahs-compat-bar-fill.her.high { background: rgba(249,168,212,0.75); }
.ahs-compat-bar-fill.her.mid  { background: rgba(249,168,212,0.45); }
.ahs-compat-bar-fill.her.low  { background: rgba(249,168,212,0.2); }
.ahs-compat-bar-pct { font-size: .7rem; font-weight: 600; text-align: right; }
.ahs-compat-bar-pct.high { color: rgba(147,197,253,0.9); }
.ahs-compat-bar-pct.mid  { color: rgba(242,208,164,0.7); }
.ahs-compat-bar-pct.low  { color: rgba(156,163,175,0.4); }
.ahs-compat-note {
    font-size: .68rem; color: rgba(156,163,175,0.35);
    font-style: italic; margin-top: 14px; text-align: center;
}
.ahs-compat-empty {
    text-align: center; font-size: .78rem;
    color: rgba(156,163,175,0.4); font-style: italic;
    margin: 0 auto 32px; max-width: 500px;
}

/* === Hide compat bars below gauge v3.3 === */
.ahs-compat-bars, .ahs-compat-note { display: none !important; }

/* === Gauge background image v3.3 === */
.ahs-gauge-wrap {
  background-image: url('/wp-content/themes/after-hours-fixed/images/gauge-bg.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  padding-top: 20px;
}
/* Hide SVG arc and tick marks — image provides those */
.ahs-gauge path,
.ahs-gauge line { display: none; }
/* Keep needle, pivot, score text */
.ahs-gauge polygon,
.ahs-gauge circle,
.ahs-gauge text { display: block; }
/* Scale SVG to sit over image correctly */
.ahs-gauge {
  background: transparent;
  margin-top: -10px;
}

/* === Gauge resize + cleanup v3.3 === */
.ahs-gauge-wrap {
  max-width: 600px;
  margin: 0 auto;
}
.ahs-gauge {
  width: 100%;
  height: auto;
}
/* Hide score number and Cold/Warm/Hot text — image provides context */
.ahs-gauge text { display: none !important; }

/* === Gauge title/pivot cleanup v3.3 === */
.ahs-compat-title-row { display: none !important; }
.ahs-gauge { margin-top: -8%; }


/* === Member directory v3.3 === */
.um-member-cover { height: 80px !important; background: transparent !important; border: none !important; box-shadow: none !important; }
.um-member img.um-avatar { border-radius: 50% !important; width: 90px !important; height: 90px !important; }
.um-member.badge-pink   .um-member-photo img.um-avatar { outline: 2.5px solid #A97C8A !important; outline-offset: 3px !important; box-shadow: 0 0 12px rgba(169,124,138,0.5), 0 0 24px rgba(169,124,138,0.2), 0 0 40px rgba(169,124,138,0.08) !important; }
.um-member.badge-bronze .um-member-photo img.um-avatar { outline: 2.5px solid #A0673A !important; outline-offset: 3px !important; box-shadow: 0 0 12px rgba(160,103,58,0.5), 0 0 24px rgba(160,103,58,0.22), 0 0 44px rgba(160,103,58,0.08) !important; }
.um-member.badge-silver .um-member-photo img.um-avatar { outline: 2.5px solid #A8ADB6 !important; outline-offset: 3px !important; box-shadow: 0 0 14px rgba(168,173,182,0.45), 0 0 28px rgba(168,173,182,0.2), 0 0 48px rgba(168,173,182,0.08) !important; }
.um-member.badge-gold   .um-member-photo img.um-avatar { outline: 3px solid #C9A84C !important; outline-offset: 3px !important; box-shadow: 0 0 14px rgba(201,168,76,0.5), 0 0 30px rgba(201,168,76,0.25), 0 0 50px rgba(201,168,76,0.1) !important; }
/* === Profile badge ring v3.3 === */
.ahs-profile-photo-wrap.badge-pink   .ahs-profile-photo { border: 4px solid #A97C8A !important; box-shadow: 0 0 16px rgba(169,124,138,0.7) !important; }
.ahs-profile-photo-wrap.badge-bronze .ahs-profile-photo { border: 4px solid #8C6A43 !important; box-shadow: 0 0 16px rgba(140,106,67,0.7) !important; }
.ahs-profile-photo-wrap.badge-silver .ahs-profile-photo { border: 4px solid #9EA4AE !important; box-shadow: 0 0 18px rgba(158,164,174,0.8) !important; }
.ahs-profile-photo-wrap.badge-gold   .ahs-profile-photo { border: 4px solid #B89A57 !important; box-shadow: 0 0 20px rgba(184,154,87,0.9) !important; }
/* === Attendee bubble rings v3.3 === */
.ahs-attendee-photo.badge-pink   { border: 3px solid #A97C8A !important; box-shadow: 0 0 10px rgba(169,124,138,0.6) !important; }
.ahs-attendee-photo.badge-bronze { border: 3px solid #8C6A43 !important; box-shadow: 0 0 10px rgba(140,106,67,0.6) !important; }
.ahs-attendee-photo.badge-silver { border: 3px solid #9EA4AE !important; box-shadow: 0 0 12px rgba(158,164,174,0.7) !important; }
.ahs-attendee-photo.badge-gold   { border: 3px solid #B89A57 !important; box-shadow: 0 0 14px rgba(184,154,87,0.8) !important; }
/* === Member directory v3.3 === */
.um-member-cover { height: 80px !important; background: transparent !important; border: none !important; }
.um-member img.um-avatar { border-radius: 50% !important; width: 90px !important; height: 90px !important; }
/* duplicate badge rules removed v3.7 */
.ahs-profile-photo-wrap.badge-pink .ahs-profile-photo { border: 4px solid #A97C8A !important; box-shadow: 0 0 16px rgba(169,124,138,0.7) !important; }
.ahs-profile-photo-wrap.badge-bronze .ahs-profile-photo { border: 4px solid #8C6A43 !important; box-shadow: 0 0 16px rgba(140,106,67,0.7) !important; }
.ahs-profile-photo-wrap.badge-silver .ahs-profile-photo { border: 4px solid #9EA4AE !important; box-shadow: 0 0 18px rgba(158,164,174,0.8) !important; }
.ahs-profile-photo-wrap.badge-gold .ahs-profile-photo { border: 4px solid #B89A57 !important; box-shadow: 0 0 20px rgba(184,154,87,0.9) !important; }
.ahs-attendee-photo.badge-pink { border: 3px solid #A97C8A !important; box-shadow: 0 0 10px rgba(169,124,138,0.6) !important; }
.ahs-attendee-photo.badge-bronze { border: 3px solid #8C6A43 !important; box-shadow: 0 0 10px rgba(140,106,67,0.6) !important; }
.ahs-attendee-photo.badge-silver { border: 3px solid #9EA4AE !important; box-shadow: 0 0 12px rgba(158,164,174,0.7) !important; }
.ahs-attendee-photo.badge-gold { border: 3px solid #B89A57 !important; box-shadow: 0 0 14px rgba(184,154,87,0.8) !important; }





.um-members-wrapper .um-member{min-height:220px!important;}

body .um-members-wrapper .um-member .um-member-photo img.um-avatar{box-sizing:border-box!important;}

.um .um-profile-photo img,.um-avatar img{border:none!important;}

/* === Member card background v3.5 === */
.um-members-wrapper .um-member {
    background: linear-gradient(rgba(6,5,12,0.72) 0%, rgba(6,5,12,0.86) 25%, rgba(6,5,12,0.90) 100%), url("https://theafterhourssociety.com/wp-content/themes/after-hours-fixed/images/member-card-bg.jpg") center/cover no-repeat !important;
    border: 1px solid rgba(184,154,87,0.15) !important;
    border-top: 1px solid rgba(184,154,87,0.25) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(184,154,87,0.10), inset 0 0 40px rgba(0,0,0,0.25) !important;
}

/* === Card hierarchy v3.5 === */
/* 3. Top frame bar — ceiling beam authority */
.um-member-cover {
    height: 80px !important;
    background: linear-gradient(180deg, rgba(184,154,87,0.10) 0%, rgba(6,5,12,0.2) 60%, transparent 100%) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
    border-bottom: 1px solid rgba(184,154,87,0.15) !important;
    border-top: 1px solid rgba(184,154,87,0.18) !important;
}

/* 4. Avatar throne — warm amber presence field */
.um-member .um-member-photo {
    position: relative !important;
}
.um-member .um-member-photo::before {
    content:  !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 160px !important;
    height: 160px !important;
    background: radial-gradient(circle, rgba(201,168,76,0.22) 0%, rgba(180,140,60,0.10) 35%, rgba(120,80,30,0.04) 55%, transparent 75%) !important;
    border-radius: 50% !important;
    filter: blur(12px) !important;
    z-index: 0 !important;
    pointer-events: none !important;
}
.um-member .um-member-photo img.um-avatar {
    position: relative !important;
    z-index: 1 !important;
}

/* 5. Hierarchy: name commands, button recedes */
.um-members-wrapper .um-member-name a {
    color: rgba(245,215,170,1) !important;
    text-shadow: 0 0 24px rgba(242,208,164,0.15) !important;
    letter-spacing: 0.04em !important;
}
.um-members-wrapper .um-member .um-members-button a {
    opacity: 0.7 !important;
    transition: opacity 0.2s !important;
}
.um-members-wrapper .um-member .um-members-button a:hover {
    opacity: 1 !important;
}

/* === No ring for unbadged members === */
.um-member .um-member-photo img.um-avatar {
    outline: none !important;
    border: none !important;
}

/* === Private Gallery v1.0 === */
.ahs-pgallery-section { margin: 48px 0; padding: 32px; background: rgba(255,255,255,0.02); border: 1px solid rgba(242,208,164,0.08); border-radius: 8px; }
.ahs-pgallery-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: rgba(242,208,164,0.9); margin: 0 0 4px; font-weight: 400; }
.ahs-pgallery-sub { font-size: .8rem; color: rgba(156,163,175,0.5); margin: 0 0 24px; }
.ahs-pgallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 12px; }
.ahs-pgallery-item { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; border: 1px solid rgba(242,208,164,0.1); }
.ahs-pgallery-item img { width: 100%; height: 100%; object-fit: cover; }
.ahs-pgallery-del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,0.7); color: #fff; border: none; font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s; display: flex; align-items: center; justify-content: center; }
.ahs-pgallery-item:hover .ahs-pgallery-del { opacity: 1; }
.ahs-pgallery-add { aspect-ratio: 1; border-radius: 6px; border: 2px dashed rgba(242,208,164,0.15); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s; }
.ahs-pgallery-add:hover { border-color: rgba(242,208,164,0.4); }
.ahs-pgallery-add span { font-size: 2rem; color: rgba(242,208,164,0.3); }
.ahs-pgallery-count { font-size: .7rem; color: rgba(156,163,175,0.4); letter-spacing: .1em; }
.ahs-pgallery-unlock-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(242,208,164,0.06); }
.ahs-pgallery-unlock-title { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: rgba(242,208,164,0.7); margin: 0 0 4px; font-weight: 400; }
.ahs-pgallery-unlock-sub { font-size: .75rem; color: rgba(156,163,175,0.4); margin: 0 0 16px; }
.ahs-pgallery-unlock-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; max-height: 240px; overflow-y: auto; }
.ahs-pgallery-unlock-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); border-radius: 4px; cursor: pointer; transition: background .2s; }
.ahs-pgallery-unlock-item:hover { background: rgba(242,208,164,0.04); }
.ahs-pgallery-unlock-item input[type=checkbox] { accent-color: #C9A84C; width: 16px; height: 16px; cursor: pointer; }
.ahs-pgallery-unlock-name { font-size: .82rem; color: rgba(220,220,220,0.8); flex: 1; }
.ahs-pgallery-unlock-status { font-size: .9rem; opacity: .4; transition: opacity .2s; }
.ahs-pgallery-unlock-status.unlocked { opacity: 1; }
.ahs-pgallery-carousel { position: relative; overflow: hidden; border-radius: 8px; border: 1px solid rgba(242,208,164,0.1); aspect-ratio: 16/9; max-height: 500px; background: #000; }
.ahs-pgallery-track { display: flex; transition: transform .5s ease; height: 100%; }
.ahs-pgallery-slide { min-width: 100%; height: 100%; }
.ahs-pgallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.ahs-pgallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: rgba(242,208,164,0.9); border: none; font-size: 2rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; z-index: 5; }
.ahs-pgallery-nav:hover { background: rgba(0,0,0,0.8); }
.ahs-pgallery-nav.prev { left: 12px; }
.ahs-pgallery-nav.next { right: 12px; }
.ahs-pgallery-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.ahs-pgallery-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(242,208,164,0.3); cursor: pointer; transition: background .2s; }
.ahs-pgallery-dot.active { background: rgba(242,208,164,0.9); }
.ahs-pgallery-locked { text-align: center; padding: 20px 0; }
.ahs-pgallery-locked-grid { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.ahs-pgallery-locked-thumb { width: 80px; height: 80px; border-radius: 6px; overflow: hidden; position: relative; }
.ahs-pgallery-locked-thumb img { width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(0.4); }
.ahs-pgallery-locked-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(8,8,15,0.5); }
.ahs-pgallery-locked-msg { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .82rem; color: rgba(156,163,175,0.5); margin-top: 8px; }
.ahs-pgallery-lock-icon { font-size: 1.2rem; }
@media (max-width: 640px) { .ahs-pgallery-grid { grid-template-columns: repeat(3, 1fr); } }

/* === Private Gallery Viewer v1.1 — circular === */
.ahs-pgv-wrap { text-align: center; padding: 16px 0; }
.ahs-pgv-featured { position: relative; width: 225px; height: 225px; margin: 0 auto 24px; }
.ahs-pgv-main { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.ahs-pgv-main.active { opacity: 1; }
.ahs-pgv-main img { width: 225px; height: 225px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(242,208,164,0.2); box-shadow: 0 0 20px rgba(242,208,164,0.1); }
.ahs-pgv-thumbs { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ahs-pgv-thumb { width: 65px; height: 65px; border-radius: 50%; overflow: hidden; cursor: pointer; border: 2px solid rgba(255,255,255,0.08); transition: border-color .2s, transform .2s; opacity: .5; transition: opacity .2s, border-color .2s, transform .2s; }
.ahs-pgv-thumb.active { border-color: rgba(242,208,164,0.5); opacity: 1; transform: scale(1.1); box-shadow: 0 0 10px rgba(242,208,164,0.15); }
.ahs-pgv-thumb:hover { opacity: .85; }
.ahs-pgv-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* === Gallery Unlock Flow v2 === */
.ahs-pgv-unlock-btn { display: inline-block; margin: 16px auto; padding: 12px 32px; background: rgba(242,208,164,0.08); border: 1px solid rgba(242,208,164,0.25); color: rgba(242,208,164,0.9); font-family: 'Cormorant Garamond', serif; font-size: 1rem; cursor: pointer; border-radius: 4px; transition: all .2s; letter-spacing: .04em; }
.ahs-pgv-unlock-btn:hover { background: rgba(242,208,164,0.15); border-color: rgba(242,208,164,0.4); }
.ahs-pgv-unlock-hint { font-size: .75rem; color: rgba(156,163,175,0.4); margin-top: 8px; }
.ahs-pgv-reciprocate { text-align: center; margin-top: 20px; padding: 16px; border-top: 1px solid rgba(242,208,164,0.06); }
.ahs-pgv-reciprocate p { font-size: .85rem; color: rgba(242,208,164,0.6); margin: 0 0 12px; }
.ahs-pgv-mutual-badge { text-align: center; margin-top: 16px; padding: 10px 20px; background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.15); border-radius: 4px; color: rgba(201,168,76,0.8); font-size: .85rem; }
.ahs-pgv-waiting { text-align: center; margin-top: 16px; padding: 10px 20px; color: rgba(156,163,175,0.5); font-size: .82rem; }
.ahs-pgallery-notifs { margin: 16px 0; }
.ahs-pgallery-notif { padding: 12px 16px; background: rgba(201,168,76,0.05); border: 1px solid rgba(201,168,76,0.12); border-radius: 4px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; font-size: .85rem; color: rgba(220,220,220,0.8); }
.ahs-pgallery-notif a { color: rgba(242,208,164,0.8); margin-left: auto; font-size: .8rem; }
.ahs-pgallery-notif-icon { font-size: 1.1rem; }
.ahs-pgallery-shared-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(242,208,164,0.06); }
.ahs-pgallery-shared-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ahs-pgallery-shared-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); border-radius: 4px; }
.ahs-pgallery-shared-name { font-size: .82rem; color: rgba(242,208,164,0.7); text-decoration: none; }
.ahs-pgallery-shared-name:hover { color: rgba(242,208,164,1); }
.ahs-pgallery-shared-status { font-size: .75rem; color: rgba(156,163,175,0.5); }

/* =========================================
   MOBILE MENU — Full Implementation
   ========================================= */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    padding: 8px 14px;
    min-width: 44px;
    min-height: 44px;
    text-align: center;
    line-height: 1;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    background: none;
    border: none;
    user-select: none;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(3, 3, 5, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 80px 20px 40px;
        z-index: 1000;
        margin: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        list-style: none;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .nav-links li a {
        font-size: 0.95rem;
        letter-spacing: 3px;
        padding: 14px 20px;
        display: block;
        color: rgba(255, 255, 255, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transition: color 0.3s, background 0.3s;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links li a:hover,
    .nav-links li a.active,
    .nav-links li.current-menu-item a {
        color: var(--primary-color);
        background: rgba(242, 208, 164, 0.05);
    }

    /* Logo shrink on mobile */
    .logo {
        font-size: 1.3rem;
    }

    /* Header solid on mobile always */
    header {
        background: rgba(3, 3, 5, 0.95) !important;
        padding: 15px 0 !important;
    }
}

/* Desktop nav touch targets */
@media (min-width: 769px) {
    .nav-links li a {
        padding: 8px 0;
    }
}

/* =========================================
   HERO — iOS Safari 100svh Fix
   ========================================= */
.ahs-hero {
    min-height: 100vh;
    min-height: 100svh;
}

/* =========================================
   NON-HOME HEADER — Solid Background
   ========================================= */
body:not(.home) header {
    background: rgba(3, 3, 5, 0.98) !important;
}

/* =========================================
   CTA BUTTONS — Mobile Override
   ========================================= */
@media (max-width: 768px) {
    .ahs-hero__cta .btn {
        min-width: 0 !important;
        width: 100%;
        max-width: 300px;
    }
}

/* =========================================
   FOOTER — Mobile Responsive
   ========================================= */
@media (max-width: 480px) {
    footer {
        padding: 40px 0 30px;
    }
    .footer-links {
        gap: 12px;
        flex-direction: column;
        align-items: center;
        margin-bottom: 24px;
    }
    .footer-links li a {
        padding: 8px 16px;
        display: block;
    }
    .copyright {
        font-size: 0.75rem;
        padding: 0 16px;
    }
}

/* =========================================
   COOKIE CONSENT — Dark Theme Override
   ========================================= */
.cookieadmin_consent_inside {
    background: rgba(15, 15, 19, 0.97) !important;
    border: 1px solid rgba(242, 208, 164, 0.15) !important;
    color: var(--text-color) !important;
    max-width: 90vw;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.cookieadmin_consent_inside p,
#cookieadmin_notice_title,
#cookieadmin_notice,
.cookieadmin_consent_inside * {
    color: var(--text-color) !important;
}
#cookieadmin_notice_title {
    color: var(--primary-color) !important;
}
.cookieadmin_btn {
    min-height: 44px;
    min-width: 44px;
    border-radius: 3px !important;
}
.cookieadmin_btn_accept {
    background: var(--primary-color) !important;
    color: var(--bg-color) !important;
    border: none !important;
}
.cookieadmin_btn_reject {
    background: transparent !important;
    color: var(--text-color) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

/* =========================================
   EVENT CARDS — Responsive Grid Fix
   ========================================= */
.event-card {
    grid-template-columns: minmax(200px, 380px) 1fr;
}
@media (max-width: 860px) {
    .event-card {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   UM MODAL — Mobile Overflow Fix
   ========================================= */
@media (max-width: 480px) {
    .um .um-modal {
        width: 95vw !important;
        max-width: 95vw !important;
        left: 2.5vw !important;
        margin-left: 0 !important;
    }
    .um .um-single-image-preview {
        max-width: 100%;
    }
    .select2-container {
        width: 100% !important;
    }
    .select2-dropdown {
        max-height: 60vh;
    }
}

/* =========================================
   PROFILE HEADER — Tablet Fix
   ========================================= */
@media (max-width: 768px) {
    .ahs-profile-header {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
}

/* =========================================
   HERO — Mobile Portrait Optimization
   ========================================= */
@media (max-width: 480px) {
    .ahs-hero__bg {
        background-position: 50% 60%;
    }
    .ahs-hero__card {
        padding: 20px 16px;
    }
    .ahs-hero__card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    .ahs-hero__title {
        font-size: 2.4rem;
    }
    .ahs-hero__sub {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
        margin-bottom: 30px;
    }
    .ahs-hero__sigils {
        font-size: 10px;
        gap: 12px;
    }
}
