/* 
   Shamanic Psychology Website Style System
   Theme: Mystical Dark (Twilight Forest) / Radiant Light (Morning Mist)
*/

/* Fonts loaded asynchronously via HTML link rel preconnect for instant CSS rendering */

:root {
    /* Fonts (Shared) */
    --font-header: 'Lora', serif;
    --font-body: 'Montserrat', sans-serif;
    --glass-blur: blur(12px);
    
    /* Dark Theme Palette (Default) */
    --color-bg-deep: #0b0e11;       /* hsl(210, 20%, 5%) */
    --color-bg-dark: #12181d;       /* hsl(205, 23%, 9%) */
    --color-bg-card: rgba(18, 24, 29, 0.7);
    --color-gold: #d4a359;          /* Shamanic Gold */
    --color-terracotta: #e06e30;    /* Sacred Fire */
    --color-terracotta-hover: #ff8547;
    --color-text-primary: #f0f2f5;
    --color-text-secondary: #a0aab5;
    --color-border: rgba(212, 163, 89, 0.15);
    --color-border-glow: rgba(224, 110, 48, 0.3);
    --glow-gold: 0 0 15px rgba(212, 163, 89, 0.3);
    --glow-terracotta: 0 0 20px rgba(224, 110, 48, 0.4);
    --canvas-opacity: 0.7;
    
    /* Theme specific gradients/fog colors */
    --fog-gradient-1: rgba(224, 110, 48, 0.05);
    --fog-gradient-2: rgba(212, 163, 89, 0.05);
    --mist-color: rgba(20, 32, 25, 0.1);
    --theme-btn-bg: rgba(255, 255, 255, 0.05);
    --theme-btn-border: rgba(255, 255, 255, 0.1);
    
    /* Elements visual chart accents - Dark */
    --color-bear: #d4a359;
    --color-wolf: #e06e30;
    --color-owl: #b0c4de;
    --color-stag: #20b2aa;
}

body.theme-light {
    /* Light Theme Overrides (Morning Dawn) */
    --color-bg-deep: #fbf9f5;
    --color-bg-dark: #f0ede6;
    --color-bg-card: rgba(240, 237, 230, 0.85);
    --color-gold: #a98040;
    --color-terracotta: #c85a32;
    --color-terracotta-hover: #e06e30;
    --color-text-primary: #1c2321;
    --color-text-secondary: #2f3a38;
    --color-border: rgba(169, 128, 64, 0.22);
    --color-border-glow: rgba(200, 90, 50, 0.25);
    --glow-gold: 0 0 12px rgba(169, 128, 64, 0.2);
    --glow-terracotta: 0 0 15px rgba(200, 90, 50, 0.2);
    --canvas-opacity: 0.25; /* Softer embers on light background */
    
    --fog-gradient-1: rgba(200, 90, 50, 0.04);
    --fog-gradient-2: rgba(169, 128, 64, 0.04);
    --mist-color: rgba(45, 90, 71, 0.05);
    --theme-btn-bg: rgba(0, 0, 0, 0.03);
    --theme-btn-border: rgba(0, 0, 0, 0.08);
    
    /* Elements visual chart accents - Light */
    --color-bear: #a98040;
    --color-wolf: #c85a32;
    --color-owl: #4682b4;
    --color-stag: #2d5a47;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    position: relative;
}

/* Background Canvas & Mystical Fog */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: var(--canvas-opacity);
    transition: opacity 0.3s;
}

.mist-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.mist {
    position: absolute;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, var(--mist-color) 0%, rgba(11, 14, 17, 0) 70%);
    opacity: 0.5;
    animation: drift 60s infinite linear;
}

@keyframes drift {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-25%, 5%, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* App Layout Wrapper */
.app-content {
    position: relative;
    z-index: 2;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-header);
    font-weight: 500;
    letter-spacing: 0.05em;
}

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

.highlight-text {
    color: var(--color-terracotta);
}

/* Header & Navigation */

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    text-shadow: var(--glow-gold);
}

.logo-sub {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--color-text-secondary);
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.3rem;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    box-shadow: var(--glow-gold);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--color-gold);
}

nav a:hover::after {
    width: 100%;
}

.nav-btn {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
}

.nav-btn:hover,
.nav-btn.active {
    color: var(--color-gold);
    background: transparent;
    box-shadow: none;
}

.nav-btn::after {
    display: none !important;
}

.mobile-menu-toggle {
    display: none;
}


/* Sections Base */
section {
    padding: 8rem 8% 6rem 8%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
    padding-top: 10rem;
    min-height: 100vh;
}

.hero-info {
    max-width: 650px;
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    display: inline-block;
    border-left: 2px solid var(--color-terracotta);
    padding-left: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-desc {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
    background: var(--color-terracotta);
    color: var(--color-text-primary);
    border: 1px solid var(--color-terracotta);
    box-shadow: 0 4px 15px rgba(224, 110, 48, 0.2);
}

.btn-primary:hover {
    background: var(--color-terracotta-hover);
    border-color: var(--color-terracotta-hover);
    box-shadow: var(--glow-terracotta);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.btn-secondary:hover {
    background: rgba(212, 163, 89, 0.08);
    box-shadow: var(--glow-gold);
    transform: translateY(-2px);
}

/* Portrait Block */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portrait-wrapper {
    position: relative;
    width: 100%;
    max-width: 384px; /* Matches the 4:5 aspect ratio of photo_1_fixed (384px / 480px) */
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-color: var(--color-bg-dark);
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills the container exactly since aspect ratios match */
    transform: scaleX(-1); /* Mirror horizontally */
    filter: brightness(0.95) contrast(1.05) saturate(0.95);
    transition: transform 0.5s ease;
}

.portrait-wrapper:hover .portrait-img {
    transform: scaleX(-1) scale(1.03);
}

.sacred-geometry-overlay {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    pointer-events: none;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='none' stroke='%23d4a359' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23d4a359' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='15' fill='none' stroke='%23d4a359' stroke-width='0.5'/%3E%3Cpath d='M50 5 L50 95 M5 50 L95 50 M18 18 L82 82 M18 82 L82 18' stroke='%23d4a359' stroke-width='0.3'/%3E%3Cpolygon points='50,5 95,50 50,95 5,50' fill='none' stroke='%23d4a359' stroke-width='0.4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    animation: rotateSlow 40s infinite linear;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.glow-back {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 110, 48, 0.2) 0%, rgba(224, 110, 48, 0) 70%);
    filter: blur(40px);
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 8s infinite alternate;
}

@keyframes glowPulse {
    from { opacity: 0.6; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Sections Headers */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '✦';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-gold);
    font-size: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: calc(50% - 60px);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* Requests Grid (Pathways) */
.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.requests-grid-6 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.requests-grid-6 .request-card {
    padding: 2.2rem 1.8rem;
    text-align: center;
}

@media (max-width: 900px) {
    .requests-grid-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .requests-grid-6 { grid-template-columns: 1fr; }
}

.request-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 3rem 2rem;
    border-radius: 12px;
    backdrop-filter: var(--glass-blur);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.request-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.request-card:hover {
    transform: translateY(-8px);
    border-color: rgba(224, 110, 48, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(224, 110, 48, 0.05);
}

.request-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 3.2rem;
    color: var(--color-gold);
    display: block;
    text-align: center;
    margin: 0 auto 1.6rem auto;
    text-shadow: 0 0 18px rgba(212, 163, 89, 0.5);
    transition: transform 0.4s ease, text-shadow 0.4s ease;
    font-family: var(--font-header);
    line-height: 1;
}

.request-card:hover .card-icon {
    text-shadow: 0 0 30px rgba(212, 163, 89, 0.8);
    transform: scale(1.1);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Services Layout */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover {
    border-color: rgba(212, 163, 89, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.service-image-box {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(18, 24, 29, 0.85);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.service-body {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    margin-top: auto;
}

.service-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.price-value {
    font-family: var(--font-header);
    font-size: 1.3rem;
    color: var(--color-gold);
    font-weight: 600;
}

/* Interactive Totem Test Section */
.test-section {
    background: radial-gradient(circle at 80% 50%, var(--fog-gradient-1) 0%, rgba(11, 14, 17, 0) 60%),
                radial-gradient(circle at 20% 50%, var(--fog-gradient-2) 0%, rgba(11, 14, 17, 0) 60%);
}

.test-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 4rem 3rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.test-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.test-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.progress-step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    
}

.progress-step.active {
    border-color: var(--color-gold);
    color: var(--color-gold);
    box-shadow: var(--glow-gold);
    background: var(--color-bg-deep);
}

.progress-step.completed {
    border-color: var(--color-terracotta);
    color: var(--color-terracotta);
    background: var(--color-bg-deep);
}

.question-block {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.question-block.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    text-align: center;
    line-height: 1.4;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.option-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.option-card:hover {
    border-color: var(--color-gold);
    background: rgba(212, 163, 89, 0.03);
    transform: scale(1.02);
}

.option-symbol {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--color-gold);
}

.option-text {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Test Results Screen */
.result-block {
    display: none;
    text-align: center;
    animation: fadeIn 0.8s ease forwards;
}

.result-block.active {
    display: block;
}

.result-totem-icon {
    font-size: 4rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
    animation: pulseGold 2s infinite alternate;
}

@keyframes pulseGold {
    from { transform: scale(1); filter: drop-shadow(0 0 5px rgba(212, 163, 89, 0.2)); }
    to { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(212, 163, 89, 0.6)); }
}

.result-totem-name {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

/* Element Distribution Chart */
.result-elements-chart {
    margin: 3rem 0;
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-title {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 0.05em;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chart-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bar-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 500;
}

.bar-label {
    color: var(--color-text-primary);
}

.bar-percent {
    color: var(--color-gold);
    font-weight: 600;
}

.bar-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 5px;
    transition: width 1.2s cubic-bezier(0.1, 0.8, 0.2, 1);
    position: relative;
}

/* Custom Element Colors & Glows */
.chart-bar-item[data-element="bear"] .bar-fill,
.chart-bar-item[data-element="earth"] .bar-fill {
    background: linear-gradient(90deg, var(--color-bg-dark), var(--color-bear));
    box-shadow: var(--glow-gold);
}

.chart-bar-item[data-element="wolf"] .bar-fill,
.chart-bar-item[data-element="fire"] .bar-fill {
    background: linear-gradient(90deg, var(--color-bg-dark), var(--color-wolf));
    box-shadow: var(--glow-terracotta);
}

.chart-bar-item[data-element="owl"] .bar-fill,
.chart-bar-item[data-element="air"] .bar-fill {
    background: linear-gradient(90deg, var(--color-bg-dark), var(--color-owl));
    box-shadow: 0 0 10px rgba(176, 196, 222, 0.4);
}

.chart-bar-item[data-element="stag"] .bar-fill,
.chart-bar-item[data-element="water"] .bar-fill {
    background: linear-gradient(90deg, var(--color-bg-dark), var(--color-stag));
    box-shadow: 0 0 10px rgba(32, 178, 170, 0.4);
}

/* Detailed result cards layout */
.result-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.result-detail-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
    backdrop-filter: var(--glass-blur);
}

.result-detail-card:hover {
    border-color: rgba(212, 163, 89, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.result-detail-card h4 {
    font-size: 1.25rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(212, 163, 89, 0.15);
    padding-bottom: 0.5rem;
}

.card-icon {
    font-size: 1.3rem;
    color: var(--color-terracotta);
}

.result-detail-card p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-line;
}

.result-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* About & Credentials */
.about-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.about-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: center;
}

.credential-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.badge-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.badge-icon {
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.badge-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.badge-desc {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Booking Section */
.booking-section {
    background: radial-gradient(circle at 10% 90%, rgba(212, 163, 89, 0.04) 0%, rgba(11, 14, 17, 0) 50%);
}

.booking-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 4rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.booking-calendar-box {
    width: 100%;
}

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

.calendar-nav-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.calendar-month {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.8rem;
    text-align: center;
}

.calendar-weekday {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    border-radius: 8px;
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.03);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:hover:not(.disabled) {
    border-color: var(--color-gold);
    background: rgba(212, 163, 89, 0.05);
}

.calendar-day.active {
    background: var(--color-gold);
    color: var(--color-bg-deep);
    font-weight: 600;
    box-shadow: var(--glow-gold);
    border-color: var(--color-gold);
}

.calendar-day.disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.time-slots {
    margin-top: 2.5rem;
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.time-slots.active {
    display: block;
}

.slots-title {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: var(--color-gold);
    letter-spacing: 0.05em;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.8rem;
}

.slot-btn {
    padding: 0.6rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--color-text-primary);
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.slot-btn:hover {
    border-color: var(--color-terracotta);
    color: var(--color-terracotta);
}

.slot-btn.active {
    background: var(--color-terracotta);
    border-color: var(--color-terracotta);
    box-shadow: var(--glow-terracotta);
    color: var(--color-text-primary);
    font-weight: 600;
}

.slot-btn:disabled,
.slot-btn.disabled {
    text-decoration: line-through !important;
    opacity: 0.45 !important;
    color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.01) !important;
    border-color: rgba(255, 255, 255, 0.02) !important;
    cursor: not-allowed !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.3) !important; /* iOS fix */
    -webkit-opacity: 0.45 !important; /* iOS fix */
}

.form-group-privacy {
    margin: 1.5rem 0 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    text-align: left;
}
.form-group-privacy input[type="checkbox"] {
    margin-top: 0.2rem !important;
    cursor: pointer !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    accent-color: var(--color-gold) !important;
}
.form-group-privacy label {
    cursor: pointer;
    user-select: none;
}

/* Booking Form */
.booking-form-box {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding-left: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.form-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-input {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.9rem 1.2rem;
    border-radius: 6px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255,255,255,0.04);
    box-shadow: 0 0 10px rgba(212, 163, 89, 0.05);
}

.form-input::placeholder {
    color: rgba(255,255,255,0.2);
}

.booking-summary {
    background: rgba(0,0,0,0.15);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 2px solid var(--color-terracotta);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-top: 1rem;
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.booking-summary.active {
    display: block;
}

.booking-summary span {
    color: var(--color-text-primary);
    font-weight: 600;
}


/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
}

.toast {
    background: var(--color-bg-dark);
    border-left: 4px solid var(--color-terracotta);
    border-right: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 1.2rem 2rem;
    border-radius: 4px;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: var(--glass-blur);
}

.toast.active {
    transform: translateX(0);
}

.toast-icon {
    color: var(--color-terracotta);
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: #07090b;
    border-top: 1px solid rgba(255,255,255,0.03);
    padding: 5rem 8% 3rem 8%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about {
    max-width: 400px;
}

.footer-desc {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 1.5rem;
}

.footer-title {
    font-size: 1.1rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-contact-icon {
    color: var(--color-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 2rem;
    color: rgba(255,255,255,0.15);
    font-size: 0.8rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--color-gold);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-deep);
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 163, 89, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 163, 89, 0.4);
}

/* Responsive Adaptation */
@media (max-width: 1024px) {
    header {
        padding: 1.5rem 5%;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 8rem;
        text-align: center;
    }
    
    .hero-info {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    

    
    .booking-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 3rem 2rem;
    }
    
    .booking-form-box {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 3rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 6rem 5% 4rem 5%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    nav ul {
        display: none; /* In a production app, we would add a mobile hamburger menu */
    }
    
    .test-container {
        padding: 2.5rem 1.5rem;
    }
    
    .result-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calendar-grid {
        gap: 0.4rem;
    }
}

/* =========================================================================
   Header & Navigation Panel
   ========================================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--color-bg-card);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: background 0.3s, border 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.nav-logo span {
    color: var(--color-gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

#nav-cabinet-item {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 2rem;
    display: flex;
    align-items: center;
}

.theme-light #nav-cabinet-item {
    border-left: 1px solid rgba(0, 0, 0, 0.15);
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    letter-spacing: 0.05em;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-gold);
}

/* Theme Switcher Toggle Button */
.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--theme-btn-bg);
    border: 1px solid var(--theme-btn-border);
    color: var(--color-gold);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    outline: none;
}

.theme-toggle-btn:hover {
    background: var(--color-gold);
    color: var(--color-bg-deep);
    transform: scale(1.05);
}

/* Offset for fixed header on content pages */
.page-container {
    padding-top: 120px;
    padding-bottom: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.page-title {
    font-size: 2.8rem;
    font-family: var(--font-header);
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.page-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Tests Portal Page Grid */
.tests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.test-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: var(--glass-blur);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.test-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: var(--glow-gold);
}

.test-card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-gold);
}

.test-card-title {
    font-size: 1.8rem;
    font-family: var(--font-header);
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.test-card-desc {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
    flex-grow: 1;
    border-top: 1px solid var(--color-border);
}

/* Diagnostic Tests and Methods (Consultations) */
.diag-tests-section {
    margin-top: 5rem;
    padding-top: 3rem;
}

.diag-category-title {
    font-family: var(--font-header);
    font-size: 1.8rem;
    color: var(--color-gold);
    margin-top: 4rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    scroll-margin-top: 120px;
}

.diag-category-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--color-border), transparent);
}

.diag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.diag-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2.2rem 2rem;
    backdrop-filter: var(--glass-blur);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.diag-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 163, 89, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.diag-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-gold);
    box-shadow: 0 12px 30px -10px rgba(212, 163, 89, 0.12), var(--glow-gold);
    background: rgba(255, 255, 255, 0.02);
}

.diag-card:hover::before {
    opacity: 1;
}

.diag-card:hover .diag-card-icon svg {
    transform: scale(1.08) rotate(3deg);
    filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.5));
}

.diag-card-icon {
    height: 60px;
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.diag-card-icon svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.diag-card-meta {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.meta-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.diag-card-title {
    font-size: 1.3rem;
    font-family: var(--font-header);
    margin-bottom: 0.8rem;
    color: var(--color-text-primary);
    line-height: 1.35;
}

.diag-card-desc {
    color: var(--color-text-secondary);
    line-height: 1.55;
    font-size: 0.92rem;
    margin-bottom: 1.8rem;
    flex-grow: 1;
}

/* Article Directory Cards Layout */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.article-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-gold);
    box-shadow: var(--glow-gold);
}

.article-card-banner {
    height: 200px;
    background: linear-gradient(135deg, var(--color-bg-dark), var(--color-bg-deep));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-gold);
}

.article-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 0.1em;
}

.article-title {
    font-family: var(--font-header);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.article-excerpt {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Single Inner Article Layout */
.article-inner-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    backdrop-filter: var(--glass-blur);
    overflow: hidden;
}

.article-inner-content {
    padding: 5rem 4rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-primary);
}

.article-body p {
    margin-bottom: 1.8rem;
}

.article-body a,
.article-full-content a,
.article-content a {
    color: var(--color-gold);
    text-decoration: underline;
    text-decoration-color: rgba(212, 163, 89, 0.4);
    text-underline-offset: 3px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.article-body a:hover,
.article-full-content a:hover,
.article-content a:hover {
    color: var(--color-terracotta-hover);
    text-decoration-color: var(--color-terracotta-hover);
    text-shadow: 0 0 8px rgba(224, 110, 48, 0.3);
}

.article-body blockquote {
    border-left: 3px solid var(--color-gold);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-primary);
    font-family: var(--font-header);
    font-size: 1.25rem;
}

/* Read Next Recommended Articles */
.read-next-section {
    margin-top: 5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 4rem;
}

.read-next-title {
    font-family: var(--font-header);
    font-size: 1.8rem;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

.read-next-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.read-next-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.read-next-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: var(--glow-gold);
}

.read-next-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.read-next-card .article-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    align-self: flex-start;
    margin-bottom: 0.8rem;
}

.read-next-card .article-title {
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: var(--color-text-primary);
    font-family: var(--font-header);
    transition: color 0.3s;
}

.read-next-card:hover .article-title {
    color: var(--color-gold);
}

.read-next-card .article-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.read-next-card .read-more-link {
    color: var(--color-gold);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s;
    text-align: left;
}

.read-next-card:hover .read-more-link {
    color: var(--color-terracotta);
}

/* Wheel of Life Balance Styles */
.wheel-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.sliders-container {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: var(--glass-blur);
}

.slider-group {
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 500;
}

.slider-label {
    color: var(--color-text-primary);
}

.slider-value {
    color: var(--color-gold);
    font-weight: 600;
}

.balance-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    outline: none;
    transition: background 0.3s;
}

body.theme-light .balance-slider {
    background: rgba(0, 0, 0, 0.08);
}

.balance-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-gold);
    cursor: pointer;
    box-shadow: var(--glow-gold);
    transition: transform 0.1s;
}

.balance-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.wheel-visual-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 120px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: var(--glass-blur);
}

.wheel-svg-container {
    width: 100%;
    max-width: 400px;
}

/* SVG Wheel Styles */
.wheel-grid-line {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
}

body.theme-light .wheel-grid-line {
    stroke: rgba(0, 0, 0, 0.08);
}

.wheel-axis-line {
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
}

body.theme-light .wheel-axis-line {
    stroke: rgba(0, 0, 0, 0.12);
}

.wheel-label-text {
    font-size: 11px;
    font-weight: 500;
    fill: var(--color-text-secondary);
    font-family: var(--font-body);
}

.wheel-sector-fill {
    fill-opacity: 0.25;
    stroke-width: 1.5;
    transition: all 0.5s ease;
}

body.theme-light .wheel-sector-fill {
    fill-opacity: 0.35;
}

.wheel-sector-fill[data-element="earth"] {
    fill: var(--color-bear);
    stroke: var(--color-bear);
}

.wheel-sector-fill[data-element="fire"] {
    fill: var(--color-wolf);
    stroke: var(--color-wolf);
}

.wheel-sector-fill[data-element="air"] {
    fill: var(--color-owl);
    stroke: var(--color-owl);
}

.wheel-sector-fill[data-element="water"] {
    fill: var(--color-stag);
    stroke: var(--color-stag);
}

/* Interactive SVG inner web */
.wheel-web-polygon {
    fill: rgba(212, 163, 89, 0.03);
    stroke: var(--color-gold);
    stroke-width: 2;
    transition: all 0.5s ease;
}

/* responsive adjust for multi-page elements */
@media (max-width: 968px) {
    .tests-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .wheel-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .wheel-visual-box {
        position: relative;
        top: 0;
    }
    
    .article-inner-content {
        padding: 3rem 2rem;
    }
}

/* Responsive Navigation Fixes to prevent overlapping */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 1.5rem !important;
    }
    #nav-cabinet-item {
        padding-left: 1.5rem !important;
    }
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem !important;
    }
    .nav-logo {
        font-size: 1.2rem !important;
    }
    .nav-menu {
        gap: 0.9rem !important;
    }
    .nav-menu a, .nav-btn {
        font-size: 0.82rem !important;
    }
    #nav-cabinet-item {
        padding-left: 0.9rem !important;
    }
}

@media (max-width: 880px) {
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 70px !important;
        padding: 0 !important;
        z-index: 1000 !important;
        background: var(--color-bg-card) !important;
        backdrop-filter: var(--glass-blur) !important;
        border-bottom: 1px solid var(--color-border) !important;
    }
    .nav-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 100% !important;
        padding: 0 1.5rem !important;
        gap: 0 !important;
    }
    .nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: var(--color-bg-deep) !important;
        background-color: rgba(11, 14, 17, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        justify-content: flex-start !important; /* Align from top, not center */
        align-items: center !important;
        gap: 0.8rem !important; /* Tighter gap */
        padding: 3rem 2rem 4rem 2rem !important; /* Generous top padding, bottom breathing room */
        margin: 0 !important;
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s !important;
        z-index: 999 !important;
        overflow-y: auto !important; /* Allow scroll on short screens */
        -webkit-overflow-scrolling: touch;
    }
    .theme-light .nav-menu {
        background-color: rgba(251, 249, 245, 0.98) !important;
    }
    .nav-menu.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    .nav-menu a, .nav-btn {
        font-size: 1.2rem !important; /* Slightly more compact font */
        display: block !important;
        padding: 0.5rem 0 !important; /* Tighter padding */
        color: var(--color-text-primary) !important;
        font-weight: 500 !important;
    }
    #nav-cabinet-item {
        border-left: none !important;
        padding-left: 0 !important;
        margin-top: 0.8rem;
        display: block !important;
        width: 100%;
        text-align: center;
    }
    #nav-cabinet-btn {
        display: inline-block !important;
        border: 1px solid var(--color-gold) !important;
        border-radius: 30px !important;
        padding: 0.6rem 2rem !important; /* Slightly more compact padding */
        color: var(--color-gold) !important;
        width: auto !important;
        margin: 0 auto !important;
    }
    .theme-toggle-btn {
        position: static !important;
        width: 40px !important;
        height: 40px !important;
        margin-left: 1rem !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.1rem !important;
        background: var(--theme-btn-bg) !important;
        border: 1px solid var(--theme-btn-border) !important;
        cursor: pointer !important;
        z-index: 1001 !important;
    }
    
    /* Hamburger button styles */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 28px;
        height: 18px;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        z-index: 1001 !important;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-gold);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        border-radius: 2px;
    }
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Adjust vertical spacing of sections due to fixed header */
    .hero-section {
        padding-top: 8rem !important;
    }
    .tests-portal-section,
    .test-section,
    .wheel-section,
    .articles-portal-section,
    .article-inner-section {
        padding-top: 8rem !important;
    }
}

/* Pagination Styling */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 7rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    width: 100%;
}

.pagination-btn {
    background: var(--color-bg-card, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--color-border, rgba(201, 169, 110, 0.15));
    color: var(--color-text-secondary, #b0907a);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: var(--glass-blur);
}

.pagination-btn.page-num {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    min-width: 54px;
    padding: 0;
    font-size: 1.15rem;
}

.pagination-btn.nav-prev,
.pagination-btn.nav-next {
    padding: 0.85rem 2.2rem;
    border-radius: 28px;
    min-width: 160px;
    gap: 0.6rem;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--color-terracotta, #e06e30);
    color: var(--color-terracotta, #e06e30);
    box-shadow: var(--glow-terracotta, 0 0 15px rgba(224, 110, 48, 0.45));
    transform: translateY(-2px);
    background: rgba(224, 110, 48, 0.08);
}

.pagination-btn.active {
    background: var(--color-terracotta, #e06e30);
    border-color: var(--color-terracotta, #e06e30);
    color: #ffffff !important;
    cursor: default;
    box-shadow: var(--glow-terracotta, 0 0 20px rgba(224, 110, 48, 0.6));
}

.pagination-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    box-shadow: none;
}




/* --- TERRA ANIMA LOGO --- */
.nav-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: transform 0.3s;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.nav-logo-wrap:hover {
    transform: scale(1.02);
}
.nav-logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nav-logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(201,169,110,0.4));
}
.nav-logo-text {
    display: flex;
    flex-direction: column;
}
.nav-logo-title {
    font-family: var(--font-title, 'Cormorant Garamond', serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0.1rem;
    white-space: nowrap !important;
}
.nav-logo-slogan {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    line-height: 1;
    white-space: nowrap !important;
}
.footer-logo-wrap {
    margin-bottom: 1.5rem;
    display: inline-flex;
}
.footer-logo-wrap .nav-logo-icon {
    width: 50px;
    height: 50px;
}
.footer-logo-wrap .nav-logo-title {
    font-size: 1.7rem;
}
.footer-logo-wrap .nav-logo-slogan {
    font-size: 0.75rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Practices section layout style */
.practices-intro-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    text-align: center;
    align-items: center;
}

/* Booking calendar box waitlist disabled styling */
.booking-calendar-box.waitlist-mode {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Dynamic dropdown option styling for both themes */
select.form-input {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
}

select.form-input option {
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
}

/* Light theme contrast improvements */
body.theme-light .form-input {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--color-text-primary);
}

body.theme-light .form-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

body.theme-light .form-input:focus {
    background: rgba(0, 0, 0, 0.04);
}

body.theme-light select.form-input {
    background-color: rgba(0, 0, 0, 0.02);
    color: var(--color-text-primary);
}

body.theme-light select.form-input option {
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
}

body.theme-light .booking-summary {
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-text-primary);
}

/* Emotion Tracker styles */
.tracker-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 900px) {
    .tracker-layout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.tracker-legend {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.tracker-form-card {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
    padding: 2.2rem;
    border-radius: 16px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}
.form-card-title {
    font-family: var(--font-header);
    font-size: 1.4rem;
    color: var(--color-gold);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
    margin-top: 0;
}

.element-slider-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}
.element-slider-group:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(201, 169, 110, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.slider-label {
    color: var(--color-text-primary);
    font-weight: 600;
    font-family: var(--font-header);
    letter-spacing: 0.5px;
}
.slider-value {
    font-weight: bold;
    font-family: var(--font-header);
    font-size: 1.2rem;
}
.slider-value.value-fire { color: #e06e30; }
.slider-value.value-water { color: #4a90e2; }
.slider-value.value-air { color: #c9a96e; }
.slider-value.value-earth { color: #5d9966; }

.element-note-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    margin-top: 0.8rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.element-note-input:focus {
    border-color: var(--color-gold);
    background: rgba(0, 0, 0, 0.35);
    outline: none;
    box-shadow: 0 0 10px rgba(201, 169, 110, 0.1);
}

/* Custom Range Slider Inputs */
.element-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin: 0.5rem 0;
}
.element-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
    border: 1.5px solid #fff;
}
.element-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.slider-fire::-webkit-slider-thumb { background: #e06e30; box-shadow: 0 0 8px rgba(224, 110, 48, 0.6); }
.slider-water::-webkit-slider-thumb { background: #4a90e2; box-shadow: 0 0 8px rgba(74, 144, 226, 0.6); }
.slider-air::-webkit-slider-thumb { background: #c9a96e; box-shadow: 0 0 8px rgba(201, 169, 110, 0.6); }
.slider-earth::-webkit-slider-thumb { background: #5d9966; box-shadow: 0 0 8px rgba(93, 153, 102, 0.6); }

/* For Firefox */
.element-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid #fff;
    transition: transform 0.1s;
}
.slider-fire::-moz-range-thumb { background: #e06e30; box-shadow: 0 0 8px rgba(224, 110, 48, 0.6); }
.slider-water::-moz-range-thumb { background: #4a90e2; box-shadow: 0 0 8px rgba(74, 144, 226, 0.6); }
.slider-air::-moz-range-thumb { background: #c9a96e; box-shadow: 0 0 8px rgba(201, 169, 110, 0.6); }
.slider-earth::-moz-range-thumb { background: #5d9966; box-shadow: 0 0 8px rgba(93, 153, 102, 0.6); }

.slider-hints {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    padding: 0 2px;
}

/* Calendar Day Sector Indicators */
.cal-day.tracker-day {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6px 0;
    height: 52px;
}
.cal-day.tracker-day span {
    line-height: 1.1;
    font-weight: 500;
}
.cal-day-indicator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    overflow: hidden;
    margin: 4px auto 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.indicator-quad {
    width: 100%;
    height: 100%;
    background: transparent;
}
.indicator-quad.quad-fire { background: #e06e30; }
.indicator-quad.quad-water { background: #4a90e2; }
.indicator-quad.quad-air { background: #c9a96e; }
.indicator-quad.quad-earth { background: #5d9966; }

/* SVG Graph */
.tracker-chart-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: 12px;
}
.chart-card-title {
    font-family: var(--font-header);
    font-size: 1.3rem;
    color: var(--color-gold);
}
.chart-container {
    position: relative;
    padding-top: 1rem;
    min-width: 600px;
}
.chart-tooltip {
    position: absolute;
    background: rgba(18, 24, 29, 0.95);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 10px 15px;
    color: #fff;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 100;
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    line-height: 1.5;
}

/* Light Theme Adaptations */
body.theme-light .tracker-legend {
    background: rgba(0, 0, 0, 0.02);
}
body.theme-light .tracker-form-card {
    background: rgba(0, 0, 0, 0.02);
}
body.theme-light .tracker-chart-card {
    background: rgba(0, 0, 0, 0.02);
}
body.theme-light .element-slider {
    background: rgba(0, 0, 0, 0.1);
}
body.theme-light .cal-day-indicator-grid {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}
body.theme-light .chart-tooltip {
    background: rgba(255, 255, 255, 0.98);
    color: #333;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
body.theme-light .element-slider-group {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
body.theme-light .element-slider-group:hover {
    background: rgba(0, 0, 0, 0.035);
    border-color: rgba(201, 169, 110, 0.35);
}
body.theme-light .element-note-input {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}
body.theme-light .element-note-input:focus {
    background: #fff;
    border-color: var(--color-gold);
}

.slider-desc-inline {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    font-style: italic;
    color: var(--color-gold) !important;
    display: inline-block;
    padding: 2px 8px;
    background: rgba(201, 169, 110, 0.08);
    border-radius: 4px;
    border: 1px solid rgba(201, 169, 110, 0.15);
    margin-left: 10px;
    vertical-align: middle;
}

body.theme-light .slider-desc-inline {
    background: rgba(201, 169, 110, 0.12);
    border-color: rgba(201, 169, 110, 0.25);
}

/* Redesigned Emotion Tracker Layout & Element Cards */
.tracker-calendar-bar {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    backdrop-filter: blur(10px);
}

body.theme-light .tracker-calendar-bar {
    background: rgba(0, 0, 0, 0.02);
}

.tracker-cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.tracker-cal-days-wrap {
    width: 100%;
    overflow-x: auto;
}

.tracker-cal-compact {
    max-width: 100%;
    margin: 0 auto;
}

.tracker-legend-inline {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

body.theme-light .tracker-legend-inline {
    border-top-color: rgba(0, 0, 0, 0.05);
}

.tracker-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.1);
    border: 1px dashed var(--color-border);
    border-radius: 16px;
    color: var(--color-text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

body.theme-light .tracker-empty-state {
    background: rgba(0, 0, 0, 0.01);
}

.tracker-empty-state span {
    font-size: 3.5rem;
    opacity: 0.6;
    display: block;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

.tracker-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.tracker-date-title {
    font-family: var(--font-header);
    font-size: 1.4rem;
    color: var(--color-gold);
    margin: 0;
    font-weight: 600;
}

.tracker-save-btn {
    box-shadow: var(--glow-gold);
}

/* 2x2 Grid for Element Cards */
.element-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .element-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

.element-card {
    position: relative;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.element-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 110, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

body.theme-light .element-card {
    background: rgba(0, 0, 0, 0.02);
}

body.theme-light .element-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.element-card-accent {
    width: 4px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.el-fire-accent { background: #e06e30; }
.el-water-accent { background: #4a90e2; }
.el-air-accent { background: #c9a96e; }
.el-earth-accent { background: #5d9966; }

.element-card-inner {
    flex-grow: 1;
    padding: 1.5rem 1.5rem 1.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.element-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.element-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.element-card:hover .element-icon-wrap {
    transform: scale(1.1);
}

.el-fire-bg {
    background: rgba(224, 110, 48, 0.12);
    color: #e06e30;
    border: 1px solid rgba(224, 110, 48, 0.2);
}
.el-water-bg {
    background: rgba(74, 144, 226, 0.12);
    color: #4a90e2;
    border: 1px solid rgba(74, 144, 226, 0.2);
}
.el-air-bg {
    background: rgba(201, 169, 110, 0.12);
    color: #c9a96e;
    border: 1px solid rgba(201, 169, 110, 0.2);
}
.el-earth-bg {
    background: rgba(93, 153, 102, 0.12);
    color: #5d9966;
    border: 1px solid rgba(93, 153, 102, 0.2);
}

.element-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.element-card-name {
    font-family: var(--font-header);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.element-card-sub {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.element-card-val {
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: bold;
    margin-left: auto;
}

.element-card-val.value-fire { color: #e06e30; }
.element-card-val.value-water { color: #4a90e2; }
.element-card-val.value-air { color: #c9a96e; }
.element-card-val.value-earth { color: #5d9966; }

.element-card-hints {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    padding: 0 2px;
}

.element-card-note {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.element-card-note:focus {
    border-color: var(--color-gold);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(201, 169, 110, 0.15);
}

body.theme-light .element-card-note {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

body.theme-light .element-card-note:focus {
    background: #fff;
    border-color: var(--color-gold);
}

/* General daily note redesigned */
.tracker-general-note-wrap {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.8rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    backdrop-filter: blur(10px);
}

body.theme-light .tracker-general-note-wrap {
    background: rgba(0, 0, 0, 0.02);
}

.tracker-general-note-label {
    font-family: var(--font-header);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tracker-general-note-input {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: var(--font-body);
}

.tracker-general-note-input:focus {
    border-color: var(--color-gold);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(201, 169, 110, 0.15);
}

body.theme-light .tracker-general-note-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

body.theme-light .tracker-general-note-input:focus {
    background: #fff;
    border-color: var(--color-gold);
}

/* Chart Layout improvements */
.tracker-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

@media (max-width: 768px) {
    .tracker-chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Clicked Day Details Card from Chart */
.tracker-chart-details-card {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.8rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.theme-light .tracker-chart-details-card {
    background: rgba(0, 0, 0, 0.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.tracker-chart-details-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 768px) {
    .tracker-chart-details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.details-summary-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.25);
    padding: 1.4rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

body.theme-light .details-summary-box {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.06);
}


/* =========================================================================
   Redesigned Premium Totem Test Results
   ========================================================================= */
.result-totem-hero {
    margin-bottom: 2.5rem;
    position: relative;
}

.result-totem-icon-container {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.15) 0%, rgba(201, 169, 110, 0) 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    border: 1px dashed rgba(201, 169, 110, 0.3);
    box-shadow: 0 0 25px rgba(201, 169, 110, 0.1);
    animation: pulseGold 3s infinite alternate;
}

.result-totem-icon-container span {
    font-size: 4.5rem;
}

.result-totem-group-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 50px;
    color: var(--color-gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

.result-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .result-details-grid {
        grid-template-columns: 1fr;
    }
}

.result-detail-card.full-width {
    grid-column: 1 / -1;
}

/* Custom styles for self-analysis */
.self-analysis-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 0 0;
}

.self-analysis-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.self-analysis-list li::before {
    content: "🔮";
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 1rem;
}

/* Red-glowing caution card styling */
.result-detail-card.caution-card {
    background: rgba(239, 83, 80, 0.02);
    border: 1px solid rgba(239, 83, 80, 0.15);
}

.result-detail-card.caution-card h4 {
    color: #ef5350;
    border-bottom-color: rgba(239, 83, 80, 0.15);
}

.result-detail-card.caution-card:hover {
    border-color: rgba(239, 83, 80, 0.35);
    background: rgba(239, 83, 80, 0.04);
}

/* Premium practices grid in results */
.result-practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.premium-practice-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
}

.premium-practice-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-practice-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 110, 0.4);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.premium-practice-card:hover::before {
    opacity: 1;
}

.premium-practice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.premium-practice-card-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-gold);
    font-weight: 600;
}

.premium-practice-card-icon {
    font-size: 1.5rem;
}

.premium-practice-card-title {
    font-family: var(--font-header);
    font-size: 1.15rem;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem 0;
}

.premium-practice-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.premium-practice-card-action {
    margin-top: 1.2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.premium-practice-card:hover .premium-practice-card-action {
    color: var(--color-text-primary);
}

/* Theme light adjustments for premium cards */
body.theme-light .premium-practice-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(169, 128, 64, 0.2);
}

body.theme-light .premium-practice-card:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(169, 128, 64, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* =========================================================================
   Mobile Optimization overrides (max-width: 768px and max-width: 480px)
   ========================================================================= */

@media (max-width: 768px) {
    /* Element results chart styling (symmetrical & padded correctly) */
    .result-elements-chart {
        padding: 1.2rem !important;
        margin: 2rem 0 !important;
    }
    
    .chart-title {
        text-align: center !important;
        font-size: 1.25rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Symmetrical padding for elements cards grid in Cabinet */
    .element-cards-grid {
        padding: 0 !important;
        gap: 1.5rem !important;
    }

    .element-card {
        padding: 1.5rem 1.2rem !important;
    }

    .element-card-header {
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center !important;
    }

    /* Stacking hero buttons vertically on mobile to prevent horizontal overflow */
    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 320px !important;
        gap: 1rem !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
        text-align: center !important;
    }

    /* 20 progress steps wrapping for mobile screen sizes */
    .test-progress {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        margin-bottom: 2rem !important;
    }

    .test-progress::before {
        display: none !important;
    }

    .progress-step {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }

    /* Test card mobile sizing optimizations */
    .test-card {
        padding: 2rem 1.5rem !important;
        min-height: auto !important;
    }

    .test-card-title {
        font-size: 1.5rem !important;
    }

    .test-card .btn {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    /* Booking calendar grid spacing optimization */
    .booking-container {
        padding: 1.5rem 1rem !important;
        gap: 2.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .booking-calendar-box {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .calendar-grid {
        gap: 0.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .calendar-day {
        font-size: 0.9rem !important;
        height: 38px !important;
        line-height: 38px !important;
    }

    .booking-form-box {
        padding: 1.5rem 1rem !important;
        margin-top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .slots-grid {
        gap: 0.4rem !important;
    }

    .slot-btn {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.8rem !important;
    }

    /* General responsive padding for standard sections */
    section {
        padding: 6rem 5% 4rem 5% !important;
    }

    /* Hero typography adjustments to prevent overflow of long words */
    .hero-title {
        font-size: 1.8rem !important;
    }

    .hero-desc {
        font-size: 0.95rem !important;
    }

    /* Test typography adjustments to prevent overflow of long words on mobile */
    .test-container h2,
    #test-intro h2,
    #test-main-container h2 {
        font-size: 1.6rem !important;
    }

    .section-subtitle {
        letter-spacing: 0.12em !important;
        font-size: 0.75rem !important;
    }
}

/* Helper classes for catalog back-links and close icons to prevent inline hover js issues */
.back-link {
    color: var(--color-gold) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 2rem !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    transition: color 0.3s !important;
}
.back-link:hover {
    color: var(--color-terracotta) !important;
}

.modal-close-btn {
    position: absolute !important;
    right: 20px !important;
    top: 15px !important;
    color: rgba(255,255,255,0.5) !important;
    font-size: 32px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    transition: 0.3s !important;
}
.modal-close-btn:hover {
    color: white !important;
}

/* =========================================================================
   Protection from copying
   ========================================================================= */
body.no-copy {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

body.no-copy input, 
body.no-copy textarea,
body.no-copy [contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Responsive mobile adjustments for results grids */
@media (max-width: 768px) {
    #diag-locked-wrapper > div,
    #totem-locked-wrapper > div {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Make buttons and links occupy full width on mobile screens for better touch target */
    .list-item-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .list-item-actions .btn {
        width: 100% !important;
        margin-right: 0 !important;
        text-align: center !important;
    }
    
    /* Expand content cards to take maximum available screen width on mobile */
    .report-section-card,
    .legend-card {
        padding: 1.25rem 1rem !important;
        border-radius: 12px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* =========================================================================
   Checkout modal & Paywall Mobile Optimization
   ========================================================================= */
#guest-checkout-modal {
    padding: 15px !important;
    overflow-y: auto !important;
    align-items: flex-start !important; /* Allow top alignment for scrolling */
}
#guest-checkout-modal > div {
    margin: 2rem auto !important; /* Dynamic centering with scroll support */
    padding: 1.5rem !important; /* Smaller padding on mobile */
    box-sizing: border-box !important;
}
@media (min-width: 480px) {
    #guest-checkout-modal {
        align-items: center !important;
    }
    #guest-checkout-modal > div {
        margin: auto !important;
        padding: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    #wheel-report-box {
        padding: 1.5rem 1rem !important;
        margin-top: 2rem !important;
    }
    #wheel-paywall {
        position: relative !important; /* Switch from absolute overlay to natural block flow on mobile */
        padding: 2rem 1rem !important;
        border-radius: 8px !important;
    }
    #wheel-paywall h3 {
        font-size: 1.3rem !important;
    }
    #wheel-paywall ul {
        margin-bottom: 1.5rem !important;
        gap: 0.5rem !important;
    }
    #wheel-paywall button {
        width: 100% !important;
        padding: 12px 20px !important;
    }
}

/* ========================================================== */
/*  PRINT STYLES FOR GENOGRAM PDF EXPORT                      */
/* ========================================================== */

/* Rules that apply when body has .printing class (both screen and print) */
body.printing header, 
body.printing footer,
body.printing .wizard-steps,
body.printing .wizard-footer,
body.printing #toast-container,
body.printing .sidebar,
body.printing .no-print,
body.printing .zoom-controls,
body.printing .genogram-header {
    display: none !important;
}

body.printing {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
}

body.printing .app-content {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.printing .content-wrapper,
body.printing .container,
body.printing .wizard-card.active {
    background: #ffffff !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    color: #000000 !important;
}

/* Override ALL inline text colors to be black/dark grey for printing */
body.printing * {
    color: #111111 !important;
    text-shadow: none !important;
}
body.printing h1, body.printing h2, body.printing h3, body.printing h4, body.printing h5 {
    color: #000000 !important;
}

/* Specific highlight colors inside report */
body.printing h5[style*="color: #ff6b6b"],
body.printing h5[style*="color:#ff6b6b"],
body.printing h5[style*="color: #ff8b8b"],
body.printing h5[style*="color:#ff8b8b"] {
    color: #d93838 !important; /* Retain red for somatic risks */
}
body.printing h5[style*="color: #4ab8b8"],
body.printing h5[style*="color:#4ab8b8"] {
    color: #2b8c8c !important; /* Retain green for stable/healthy nodes */
}
body.printing h5[style*="color: #c084fc"],
body.printing h5[style*="color:#c084fc"] {
    color: #7c3aed !important; /* Retain purple for addictions */
}
body.printing h5[style*="color: #fbbf24"],
body.printing h5[style*="color:#fbbf24"] {
    color: #b45309 !important; /* Retain amber for conflicts */
}

/* SVG overrides for print contrast */
body.printing svg {
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    min-width: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
}
body.printing svg text {
    fill: #000000 !important;
}
body.printing svg line,
body.printing svg path,
body.printing svg polyline {
    stroke: #333333 !important;
}
body.printing svg line[stroke="#ff4d4d"],
body.printing svg path[stroke="#ff4d4d"],
body.printing svg polyline[stroke="#ff4d4d"] {
    stroke: #d93838 !important; /* Slightly darker red for printer readability */
}
body.printing svg rect {
    stroke: #888888 !important;
}
body.printing svg rect[fill="#e9e3fa"] {
    fill: #f2edf9 !important;
    stroke: #888888 !important;
}
body.printing svg g {
    opacity: 1.0 !important;
}

/* Force page breaks if needed */
body.printing h3 {
    page-break-before: auto;
    page-break-inside: avoid;
}
body.printing .mac-card-block {
    page-break-inside: avoid;
}

/* Hide the non-result parts */
body.printing #wizard-card-1,
body.printing #wizard-card-2,
body.printing #wizard-card-3,
body.printing #wizard-card-4 {
    display: none !important;
}
body.printing #wizard-card-5 {
    display: block !important;
    width: 100% !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.printing a {
    text-decoration: none !important;
    color: #000000 !important;
}

/* Clear section centering and layout container issues in print mode */
body.printing section,
body.printing .genogram-section {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.printing .genogram-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    flex-grow: 0 !important;
    gap: 0 !important;
}

/* Clear grey backgrounds and borders on preview areas */
body.printing .preview-area,
body.printing .svg-canvas-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}

/* Hide blurred glow decorations in print mode to prevent ugly solid color blocks */
body.printing div[style*="filter: blur"],
body.printing div[style*="filter:blur"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Style cards for print */
body.printing .legend-card,
body.printing .report-section-card {
    background: #ffffff !important;
    border: 1px solid #e2dcd0 !important;
    box-shadow: none !important;
    color: #111111 !important;
    padding: 2rem !important;
    margin-bottom: 25px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
}

/* Set up professional book structure with page breaks */
body.printing .preview-area {
    page-break-after: always !important;
    break-after: page !important;
}

body.printing .legend-card {
    page-break-after: always !important;
    break-after: page !important;
}

body.printing .section-behavior,
body.printing .section-metaphor,
body.printing .section-protocol,
body.printing .section-recommendations {
    page-break-before: always !important;
    break-before: page !important;
}

/* Force metaphor columns to render side-by-side without wrapping in print mode */
body.printing .metaphor-flex-layout {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
}

/* Card overrides for printing to eliminate grey bands */
body.printing div[style*="background: rgba(25,25,25,0.6)"],
body.printing div[style*="background:rgba(25,25,25,0.6)"],
body.printing div[style*="background: rgba(25,25,25,0.2)"],
body.printing div[style*="background:rgba(25,25,25,0.2)"],
body.printing div[style*="background: rgba(25, 25, 25, 0.6)"],
body.printing div[style*="background:rgba(25, 25, 25, 0.6)"],
body.printing div[style*="background: rgba(25, 25, 25, 0.2)"],
body.printing div[style*="background:rgba(25, 25, 25, 0.2)"],
body.printing div[style*="background: rgba(19, 15, 35, 0.85)"],
body.printing div[style*="background:rgba(19, 15, 35, 0.85)"],
body.printing div[style*="background: rgba(20, 15, 35, 0.85)"],
body.printing div[style*="background:rgba(20, 15, 35, 0.85)"] {
    background: #ffffff !important;
    border: 1px solid #e2dcd0 !important;
    box-shadow: none !important;
    color: #111111 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin-bottom: 25px !important;
}

body.printing div[style*="background: rgba(255,255,255,0.02)"],
body.printing div[style*="background:rgba(255,255,255,0.02)"],
body.printing div[style*="background: rgba(255, 255, 255, 0.02)"],
body.printing div[style*="background:rgba(255, 255, 255, 0.02)"],
body.printing div[style*="background: rgba(255,107,107,0.03)"],
body.printing div[style*="background:rgba(255,107,107,0.03)"],
body.printing div[style*="background: rgba(255, 107, 107, 0.03)"],
body.printing div[style*="background:rgba(255, 107, 107, 0.03)"],
body.printing div[style*="background: rgba(74,184,184,0.03)"],
body.printing div[style*="background:rgba(74,184,184,0.03)"],
body.printing div[style*="background: rgba(74, 184, 184, 0.03)"],
body.printing div[style*="background:rgba(74, 184, 184, 0.03)"],
body.printing div[style*="background: rgba(168,85,247,0.03)"],
body.printing div[style*="background:rgba(168,85,247,0.03)"],
body.printing div[style*="background: rgba(168, 85, 247, 0.03)"],
body.printing div[style*="background:rgba(168, 85, 247, 0.03)"],
body.printing div[style*="background: rgba(251,191,36,0.03)"],
body.printing div[style*="background:rgba(251,191,36,0.03)"],
body.printing div[style*="background: rgba(251, 191, 36, 0.03)"],
body.printing div[style*="background:rgba(251, 191, 36, 0.03)"],
body.printing div[style*="background: rgba(212,175,55,0.03)"],
body.printing div[style*="background:rgba(212,175,55,0.03)"],
body.printing div[style*="background: rgba(212, 175, 55, 0.03)"],
body.printing div[style*="background:rgba(212, 175, 55, 0.03)"] {
    background: #fdfcf9 !important;
    border: 1px solid #e5e5e5 !important;
    color: #111111 !important;
}

/* Native @media print block for standard browser printing fallback */
@media print {
    body {
        background: #ffffff !important;
    }
}

/* ========================================================== */
/*  MOBILE ADAPTATION FOR GENOGRAM SVG                        */
/* ========================================================== */
.svg-canvas-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========================================================== */
/*  DROPDOWN MENU & MOBILE HAMBURGER                          */
/* ========================================================== */

/* Dropdown Base */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #e5e5e5;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-menu a:hover {
    color: var(--color-gold);
}

/* Dropdown Arrow */
.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}
.has-dropdown:hover > a .dropdown-arrow,
.has-dropdown.active > a .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Level 1 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg-deep);
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
}

.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu a {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dropdown-menu li:last-child > a {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: rgba(201,169,110,0.1);
    color: var(--color-gold);
}

/* Dropdown Level 2 (Submenu) */
.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: var(--color-bg-deep);
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1002;
    list-style: none;
}

.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Badges */
.badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}
.badge-paid {
    background: rgba(76, 175, 80, 0.1);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.4);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
    text-transform: none;
    display: inline-block;
    vertical-align: middle;
}
.badge-free {
    display: none !important;
}
.coming-soon {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 992px) {
    /* Mobile Dropdowns */
    .dropdown-menu, .submenu {
        position: static;
        width: 100%;
        background: transparent;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0 0 0 1.5rem;
        display: none; /* Hidden by default on mobile, toggled via JS */
    }
    
    .dropdown-menu a {
        font-size: 0.95rem;
        padding: 0.8rem 0;
        border-bottom: none;
    }
    
    .has-dropdown.active > .dropdown-menu,
    .has-submenu.active > .submenu {
        display: block;
        animation: fadeInDown 0.3s ease forwards;
    }
    
    /* Remove hover for mobile */
    .has-dropdown:hover > .dropdown-menu,
    .has-submenu:hover > .submenu {
        display: none; /* Let JS handle it */
    }
    .has-dropdown.active > .dropdown-menu,
    .has-submenu.active > .submenu {
        display: block;
    }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Perfect physical A4 Page Sheet configuration for reports (shared with Wheel of Balance and Genogram) */
.report-page-sheet {
    width: 210mm;
    height: 296mm;
    background-color: var(--color-bg-paper);
    color: var(--color-text-primary);
    box-sizing: border-box;
    padding: 22mm 20mm;
    margin-bottom: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    page-break-after: always;
    break-after: page;
    overflow: hidden;
    border: 1px solid rgba(212, 163, 89, 0.1);
}

/* Strict PDF compilation overrides to prevent blank pages */
body.printing .report-page-sheet {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    border: none !important;
    box-shadow: none !important;
    page-break-after: always !important;
    break-after: page !important;
}

/* Cover Page Styling (Page 1) */
.cover-page {
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 30mm 20mm;
}

.cover-header {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--color-gold);
    text-transform: uppercase;
}

.cover-title-group {
    margin: auto 0;
}

.cover-divider {
    width: 80px;
    height: 1px;
    background: var(--color-gold);
    margin: 2rem auto;
}

.cover-title {
    font-family: var(--font-header);
    font-size: 2.8rem;
    color: var(--color-gold-light);
    line-height: 1.2;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.cover-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cover-meta {
    background: rgba(19, 25, 26, 0.7);
    border: 1px solid rgba(212, 163, 89, 0.3);
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    text-align: left;
    margin-bottom: 2rem;
}

.cover-meta-item {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cover-meta-item strong {
    color: var(--color-gold);
    font-weight: 500;
}

.cover-footer {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    letter-spacing: 1px;
}

/* Generic Page Sheet elements */
.page-header-text {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(212, 163, 89, 0.15);
    padding-bottom: 0.8rem;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
}

.page-title {
    font-family: var(--font-header);
    font-size: 1.8rem;
    color: var(--color-gold-light);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.page-content {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #d1c7bd;
    overflow: hidden;
}

.page-content p {
    margin-bottom: 1.2rem;
}

.page-footer-text {
    border-top: 1px solid rgba(212, 163, 89, 0.15);
    padding-top: 0.8rem;
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 2rem;
}

/* Gold callout quote style */
.quote-block {
    border-left: 3px solid var(--color-gold);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-family: var(--font-header);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-gold-light);
    line-height: 1.6;
}

/* Responsive mobile adjustments for A4 document view */
@media screen and (max-width: 820px) {
    body:not(.printing) .report-page-sheet {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important; /* let height grow naturally on mobile so content is not cut off */
        padding: 25px 15px !important;
        margin-bottom: 15px !important;
        box-shadow: none !important;
        border-radius: 8px !important;
    }
}

/* ================================================================
   GENOGRAM PDF REPORT — styled after sample_wheel_report.html
   All classes prefixed with .pdf- to avoid collisions
   ================================================================ */

/* ── Container ── */
#genogram-book-report-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #2d3737;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

/* ── Individual A4 Page ── */
.pdf-page {
    width: 210mm;
    height: 296mm;
    margin: 20px auto;
    background: linear-gradient(145deg, #0a0f0f, #141c1c);
    padding: 22mm 20mm;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.55);
    position: relative;
    page-break-after: always;
    break-after: page;
    border: 1px solid rgba(212, 163, 89, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #e2e8e8;
    font-family: 'Montserrat', sans-serif;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* ── Header & Footer strips ── */
.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 163, 89, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 0.75rem;
    color: #d4a359;
    text-transform: uppercase;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.pdf-footer {
    border-top: 1px solid rgba(212, 163, 89, 0.12);
    padding-top: 10px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #8fa0a0;
    flex-shrink: 0;
}

/* ── Content area ── */
.pdf-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pdf-content h2 {
    font-family: 'Playfair Display', 'Cinzel', Georgia, serif;
    font-size: 1.7rem;
    color: #d4a359;
    margin: 0 0 16px 0;
    line-height: 1.25;
}

.pdf-content p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #d1c7bd;
    margin-bottom: 12px;
    text-align: justify;
}

/* ── Cover Page ── */
.pdf-cover {
    text-align: center;
    align-items: center;
    padding: 30mm 20mm;
    justify-content: space-between;
}

.pdf-cover-brand {
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #d4a359;
}

.pdf-cover-center { margin: 0 auto; }

.pdf-cover-title {
    font-family: 'Playfair Display', 'Cinzel', Georgia, serif;
    font-size: 2.6rem;
    color: #d4a359;
    margin: 28px 0 16px 0;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 2px;
}

.pdf-cover-sub {
    font-size: 0.95rem;
    color: #8fa0a0;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.pdf-gold-line {
    width: 80px;
    height: 2px;
    background: #d4a359;
    margin: 0 auto;
}

.pdf-cover-meta {
    background: rgba(212, 163, 89, 0.05);
    border: 1px solid rgba(212, 163, 89, 0.22);
    padding: 22px 28px;
    border-radius: 10px;
    max-width: 420px;
    width: 100%;
    text-align: left;
    margin: 32px auto;
}

.pdf-meta-row {
    font-size: 0.9rem;
    line-height: 1.9;
    color: #d1c7bd;
}

.pdf-meta-key {
    color: #d4a359;
    font-weight: 600;
}

.pdf-cover-city {
    font-size: 0.82rem;
    color: #8fa0a0;
    letter-spacing: 2px;
}

/* ── Blockquote ── */
.pdf-quote {
    border-left: 2px solid #d4a359;
    margin: 20px 0;
    padding-left: 18px;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1rem;
    color: #e6c594;
    line-height: 1.6;
}

/* ── Sphere Card ── */
.pdf-sphere-card {
    background: rgba(255,255,255,0.02);
    border-left: 3px solid #d4a359;
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 0.88rem;
}

.pdf-sphere-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    color: #d4a359;
    margin-bottom: 8px;
    font-weight: 600;
}

/* ── Alert boxes ── */
.pdf-alert {
    background: rgba(255,255,255,0.015);
    border-left: 3px solid #ff6b6b;
    border-radius: 0 6px 6px 0;
    padding: 10px 13px;
    margin: 8px 0;
}

.pdf-alert-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdf-alert p, .pdf-clean-box p {
    margin: 0;
    font-size: 0.82rem;
    color: #c8bfb5;
    line-height: 1.5;
    text-align: left;
}

.pdf-clean-box {
    background: rgba(74,184,184,0.04);
    border-left: 3px solid #4ab8b8;
    border-radius: 0 6px 6px 0;
    padding: 10px 13px;
    margin: 8px 0;
}

/* ── Practice box ── */
.pdf-practice-box {
    background: rgba(212, 163, 89, 0.03);
    border: 1px dashed rgba(212, 163, 89, 0.3);
    padding: 13px 16px;
    border-radius: 8px;
}

.pdf-practice-title {
    color: #d4a359;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Rec grid ── */
.pdf-rec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.pdf-rec-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 11px 13px;
    display: flex;
    flex-direction: column;
}

.pdf-rec-header {
    font-weight: 700;
    font-size: 0.83rem;
    margin-bottom: 5px;
}

.pdf-rec-text {
    font-size: 0.78rem;
    color: #a0b0b0;
    line-height: 1.44;
    flex: 1;
    margin: 0 0 7px 0;
}

.pdf-rec-links { display: flex; gap: 7px; margin-top: auto; }
.pdf-rec-links a {
    font-size: 0.73rem;
    color: #d4a359;
    border: 1px solid rgba(212,163,89,0.35);
    border-radius: 4px;
    padding: 3px 9px;
    text-decoration: none;
}
.pdf-rec-links a:hover { background: rgba(212,163,89,0.08); }

/* ── CTA Button ── */
.pdf-cta-btn {
    display: inline-block;
    background: #d4a359;
    color: #121919;
    padding: 10px 26px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-decoration: none;
}
.pdf-cta-btn:hover { opacity: 0.88; }

/* ── Print & Export ── */
body.exporting-pdf #genogram-book-report-container { background: none; padding: 0; width: 794px !important; max-width: 794px !important; margin: 0 auto; }
body.exporting-pdf .pdf-page {
    margin: 0;
    box-shadow: none;
    border: none;
    width: 210mm;
    height: 295mm;
    overflow: hidden;
    page-break-after: always;
    break-after: page;
}

/* Native @media print fallback for manual printing */
@media print {
    #genogram-book-report-container { background: none; padding: 0; }
    .pdf-page {
        margin: 0;
        box-shadow: none;
        border: none;
        width: 210mm;
        height: 297mm;
    }
}

/* ── Mobile responsive ── */
@media screen and (max-width: 820px) {
    #genogram-book-report-container { background: transparent; padding: 4px 0; }
    .pdf-page {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 18px 14px !important;
        margin: 0 0 10px 0 !important;
        box-shadow: none !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
    }
    .pdf-rec-grid { grid-template-columns: 1fr !important; }
    .pdf-cover-title { font-size: 1.8rem !important; }
    .pdf-cover { padding: 20px 14px !important; }
}

/* =========================================================================
   Methods Section in About
   ========================================================================= */
.methods-section {
    margin-top: 2rem;
    padding-top: 1rem;
}

.methods-title {
    font-family: var(--font-header);
    font-size: 1.8rem;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 1rem;
}

.methods-intro {
    text-align: center;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    font-size: 1rem;
    line-height: 1.6;
}

/* Interactive Tabs Layout for Methods */
.methods-tabs-container {
    display: flex;
    gap: 3rem;
    max-width: 900px;
    margin: 2rem auto;
    align-items: flex-start;
}

.methods-tabs-nav {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.method-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.method-tab-btn:hover {
    background: rgba(201, 169, 110, 0.1);
    color: var(--color-text-primary);
}

.method-tab-btn.active {
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.2), rgba(201, 169, 110, 0.05));
    border-color: rgba(201, 169, 110, 0.5);
    color: var(--color-gold);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.15);
}

body.theme-light .method-tab-btn {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

body.theme-light .method-tab-btn:hover {
    background: rgba(169, 128, 64, 0.1);
}

body.theme-light .method-tab-btn.active {
    background: rgba(169, 128, 64, 0.15);
    border-color: rgba(169, 128, 64, 0.4);
    color: var(--color-gold);
    box-shadow: 0 4px 20px rgba(169, 128, 64, 0.1);
}

.methods-tabs-content {
    flex: 1;
    background: linear-gradient(145deg, rgba(18, 24, 29, 0.8), rgba(10, 15, 20, 0.9));
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-top: 3px solid rgba(201, 169, 110, 0.8);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    min-height: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.theme-light .methods-tabs-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 245, 0.95));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.methods-tabs-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(201, 169, 110, 0.1), transparent 70%);
    pointer-events: none;
}

body.theme-light .methods-tabs-content::before {
    background: radial-gradient(circle at top right, rgba(169, 128, 64, 0.05), transparent 70%);
}

.method-pane {
    display: none;
    animation: fadeInTab 0.5s ease forwards;
}

.method-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.method-pane-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 2rem;
    fill: none;
    stroke: var(--color-gold);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(201, 169, 110, 0.4));
}

.method-pane-title {
    font-family: var(--font-header);
    font-size: 1.8rem;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.method-pane-desc {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .methods-tabs-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .methods-tabs-nav {
        flex: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        overflow-x: visible;
        padding-bottom: 0;
    }
    .method-tab-btn {
        flex: 0 1 auto;
        white-space: normal;
        text-align: center;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    .methods-tabs-content {
        width: 100%;
        padding: 1.5rem;
        min-height: auto;
        border-radius: 12px;
    }
    .method-pane-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    .method-pane-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1.2rem;
    }
    .method-pane-desc {
        font-size: 0.95rem;
    }
}

/* Responsive Atlas Lock Block */
@media (max-width: 768px) {
    .atlas-lock-wrapper {
        padding: 1.5rem 1rem !important;
        margin-top: 1.5rem !important;
    }
    .atlas-lock-icon {
        font-size: 2.5rem !important;
        margin-bottom: 0.8rem !important;
    }
    .atlas-lock-title {
        font-size: 1.35rem !important;
    }
    .atlas-lock-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    .atlas-lock-list {
        gap: 0.8rem !important;
        margin-bottom: 1.5rem !important;
    }
    .atlas-lock-list li {
        align-items: flex-start !important;
        line-height: 1.4 !important;
        font-size: 0.85rem !important;
    }
    .atlas-lock-list li span:first-child {
        font-size: 1rem !important;
        margin-top: 2px !important;
    }
    .atlas-lock-btn {
        width: 100% !important;
        padding: 14px 10px !important;
        font-size: 0.95rem !important;
    }
}

/* =========================================================================
   Floating MAX Messenger Widget
   ========================================================================= */
.max-floating-widget {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 14px;
    background: rgba(18, 24, 29, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 163, 89, 0.45);
    border-radius: 50px;
    color: var(--color-text-primary, #f0f2f5);
    text-decoration: none;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), 0 0 15px rgba(212, 163, 89, 0.2);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

.max-floating-widget:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--color-terracotta, #e06e30);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 25px rgba(224, 110, 48, 0.4);
    color: #ffffff;
}

.max-floating-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--color-gold, #d4a359);
    transition: transform 0.3s ease, color 0.3s ease;
}

.max-floating-widget:hover .max-floating-icon-box {
    color: var(--color-terracotta-hover, #ff8547);
    transform: rotate(-6deg) scale(1.12);
}

.max-chat-icon {
    width: 22px;
    height: 22px;
}

.max-floating-label {
    white-space: nowrap;
}

.max-online-badge {
    position: relative;
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 8px #2ecc71;
}

.max-online-badge::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 1.5px solid #2ecc71;
    opacity: 0.8;
    animation: maxBeaconPulse 2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes maxBeaconPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.9;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Light Theme */
body.theme-light .max-floating-widget {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(169, 128, 64, 0.4);
    color: #1c2321;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 0 12px rgba(169, 128, 64, 0.2);
}

body.theme-light .max-floating-widget:hover {
    border-color: var(--color-terracotta, #c85a32);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 0 20px rgba(200, 90, 50, 0.3);
    color: #000000;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .max-floating-widget {
        bottom: 18px;
        right: 16px;
        padding: 8px 14px 8px 12px;
        font-size: 0.82rem;
        gap: 8px;
    }
    .max-floating-icon-box {
        width: 22px;
        height: 22px;
    }
    .max-chat-icon {
        width: 18px;
        height: 18px;
    }
}

/* Reading Progress Bar & Article Read Time */
.reading-progress-container {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 3.5px;
    background: transparent;
    z-index: 1001;
    pointer-events: none;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d4a359, #e06e30, #ff8547);
    box-shadow: 0 0 10px rgba(224, 110, 48, 0.65);
    transition: width 0.1s ease-out;
}

.article-read-time {
    color: var(--color-gold);
    font-size: 0.82rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(212, 163, 89, 0.12);
    border: 1px solid rgba(212, 163, 89, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
}

/* =========================================================================
   Floating Day Card Widget & Modal
   ========================================================================= */
.day-card-floating-widget {
    position: fixed;
    bottom: 126px;
    right: 26px;
    z-index: 997;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 13px;
    background: rgba(18, 24, 29, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 163, 89, 0.45);
    border-radius: 50px;
    color: var(--color-text-primary, #f0f2f5);
    text-decoration: none;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), 0 0 15px rgba(212, 163, 89, 0.2);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

.day-card-floating-widget:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--color-gold, #d4a359);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 25px rgba(212, 163, 89, 0.4);
    color: #ffffff;
}

.day-card-widget-icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.day-card-floating-widget:hover .day-card-widget-icon {
    transform: rotate(10deg) scale(1.15);
}

/* Light Theme Floating Day Card */
body.theme-light .day-card-floating-widget {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(169, 128, 64, 0.4);
    color: #1c2321;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 0 12px rgba(169, 128, 64, 0.2);
}

body.theme-light .day-card-floating-widget:hover {
    border-color: var(--color-gold, #a98040);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 0 20px rgba(169, 128, 64, 0.3);
    color: #000000;
}

/* Floating Express Test Button */
.express-test-floating-widget {
    position: fixed;
    bottom: 76px;
    right: 26px;
    z-index: 998;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 13px;
    background: rgba(18, 24, 29, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 163, 89, 0.45);
    border-radius: 50px;
    color: var(--color-text-primary, #f0f2f5);
    text-decoration: none;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), 0 0 15px rgba(212, 163, 89, 0.2);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

.express-test-floating-widget:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--color-gold, #d4a359);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 25px rgba(212, 163, 89, 0.4);
    color: #ffffff;
}

.express-test-widget-icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.express-test-floating-widget:hover .express-test-widget-icon {
    transform: scale(1.2);
}

body.theme-light .express-test-floating-widget {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(169, 128, 64, 0.4);
    color: #1c2321;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 0 12px rgba(169, 128, 64, 0.2);
}

body.theme-light .express-test-floating-widget:hover {
    border-color: var(--color-gold, #a98040);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 0 20px rgba(169, 128, 64, 0.3);
    color: #000000;
}

@media (max-width: 600px) {
    .max-floating-widget {
        bottom: 18px;
        right: 14px;
    }
    .express-test-floating-widget {
        bottom: 60px;
        right: 14px;
        padding: 7px 13px 7px 11px;
        font-size: 0.8rem;
        gap: 6px;
    }
    .day-card-floating-widget {
        bottom: 102px;
        right: 14px;
        padding: 7px 13px 7px 11px;
        font-size: 0.8rem;
        gap: 6px;
    }
}

/* Express Test Modal Item Cards */
.express-tests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.express-test-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 163, 89, 0.25);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.25s ease;
}

.express-test-item-card:hover {
    background: rgba(212, 163, 89, 0.08);
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

.express-test-info-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.express-test-item-title {
    font-family: var(--font-header);
    font-size: 1.15rem;
    color: var(--color-text-primary);
    margin: 0 0 0.3rem 0;
}

.express-test-item-desc {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 600px) {
    .express-test-item-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .express-test-item-card .btn {
        width: 100%;
        text-align: center;
    }
}

/* Modal Overlay */
.day-card-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(4, 7, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.day-card-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.day-card-modal-box {
    background: var(--color-bg-card, rgba(18, 24, 29, 0.96));
    border: 1px solid var(--color-border, rgba(212, 163, 89, 0.3));
    border-radius: 16px;
    max-width: 860px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 2.2rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(212, 163, 89, 0.2);
    position: relative;
    transform: scale(0.94);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.day-card-modal-overlay.active .day-card-modal-box {
    transform: scale(1);
}

.day-card-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.day-card-modal-close:hover {
    color: var(--color-gold);
    transform: scale(1.15);
}

.day-card-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.day-card-modal-subtitle {
    color: var(--color-gold);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    display: block;
}

.day-card-modal-title {
    font-family: var(--font-header);
    font-size: 1.6rem;
    color: var(--color-text-primary);
    margin: 0;
}

.day-card-modal-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 0.6rem;
}

/* Deck Grid inside modal - Full 36 Cards Grid */
.day-card-modal-deck {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
    justify-content: center;
    margin: 1.5rem auto 2rem;
    max-width: 780px;
}

@media (max-width: 768px) {
    .day-card-modal-deck {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .day-card-modal-deck {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
}

.day-card-deck-item {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(212, 163, 89, 0.35);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    background-image: url('mac_back.webp');
    background-size: cover;
    background-position: center;
}

.day-card-deck-item:hover {
    transform: translateY(-5px) scale(1.08);
    border-color: var(--color-gold);
    box-shadow: 0 8px 20px rgba(212, 163, 89, 0.5);
}

/* Card Result Card inside modal */
.day-card-result-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
    animation: dayCardFadeIn 0.4s ease-out;
}

@keyframes dayCardFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.day-card-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 1.5rem;
}
