/* --- LIQUID GLASS DESIGN SYSTEM v2 --- */

:root {
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    --brand-gold: #D4AF37;
    --brand-gold-dim: rgba(212, 175, 55, 0.15);
}

body {
    background-color: #050505;
    background-image: 
        radial-gradient(at 0% 0%, rgba(212, 175, 55, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(50, 50, 50, 0.1) 0px, transparent 50%);
    color: #f0f0f0;
    overflow-x: hidden;
}

/* Base Layout Utilities */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- THE LIQUID CARD (Main Container) --- */
.liquid-shell {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 
        0 40px 80px -20px rgba(0, 0, 0, 0.8),
        inset 0 0 0 1px rgba(255,255,255,0.03);
    overflow: hidden;
    position: relative;
    transition: height 0.3s ease;
}

/* --- STEP VISIBILITY LOGIC (Crucial for preventing overlaps) --- */
.step-hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.step-visible {
    display: flex !important; /* Force flexbox layout */
    flex-direction: column;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: liquidFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes liquidFadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.99); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* --- UPLOAD ZONE (Step 1) --- */
.upload-zone {
    width: 100%;
    min-height: 400px;
    border: 2px dashed var(--glass-border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: radial-gradient(circle, rgba(255,255,255,0.01) 0%, transparent 60%);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-zone:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, transparent 60%);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    transform: translateY(-2px);
}

.upload-zone.dragover {
    border-color: var(--brand-gold);
    transform: scale(0.99);
    background: rgba(212,175,55,0.1);
}

/* --- CONFIGURATION GRID (Step 2 - The Fix) --- */
/* This grid prevents overlaps by physically separating the gallery and sidebar */
.config-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    height: 100%;
    align-items: start;
}

@media (min-width: 1024px) {
    .config-layout {
        grid-template-columns: 1fr 340px; /* Fixed width for sidebar on desktop */
    }
}

/* Left Side: Gallery */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

@media (min-width: 640px) {
    .gallery-container { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* Gallery Item */
.ws-file {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #000;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.ws-file:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    z-index: 10;
}

.ws-file__thumb {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    padding: 0;
    cursor: pointer;
}

.ws-file__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.3s;
}

.ws-file:hover .ws-file__img {
    filter: brightness(1.1);
}

.ws-file__actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.ws-file:hover .ws-file__actions {
    opacity: 1;
    transform: translateY(0);
}

.ws-file__btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.ws-file__btn:hover {
    background: var(--brand-gold);
    color: black;
    border-color: var(--brand-gold);
}

.ws-file__meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    pointer-events: none;
}

.ws-file__name {
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Add Button */
.ws-add {
    aspect-ratio: 1;
    border-radius: 16px;
    border: 1px dashed rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.ws-add:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    border-color: var(--brand-gold);
}

.ws-add__icon {
    color: var(--brand-gold);
    padding: 8px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(0,0,0,0.2);
}

.ws-add__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
    color: var(--brand-gold);
}

.ws-add__sub {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

/* Right Side: Floating/Sticky Panel */
.sidebar-panel {
    background: rgba(10, 10, 10, 0.95); /* Nearly opaque for readability */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 40;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Desktop: Sticky */
@media (min-width: 1024px) {
    .sidebar-panel {
        position: sticky;
        top: 2rem;
        background: rgba(15, 15, 15, 0.4); /* More transparent on desktop */
    }
}

/* Mobile: Fixed Bottom */
@media (max-width: 1023px) {
    .sidebar-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(212, 175, 55, 0.3);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.9);
        padding: 1.25rem 1.5rem max(1.5rem, env(safe-area-inset-bottom));
        animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* --- PAYMENT & RESULT CARDS --- */
.center-card-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    width: 100%;
}

.glass-box {
    background: linear-gradient(145deg, rgba(20,20,20,0.7), rgba(10,10,10,0.7));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.7),
        inset 0 0 0 1px rgba(255,255,255,0.02);
    overflow: hidden;
}

/* --- PROCESS (Cinematic) --- */
.ws-proc-shell {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.ws-proc-scene {
    width: min(600px, 92vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.ws-proc-artifact {
    position: relative;
    width: min(520px, 92vw);
    height: min(420px, 50vh);
    border-radius: 4px;
    background: #000;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08),
        0 30px 80px -20px rgba(0,0,0,1);
}

.ws-proc-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.ws-proc-img-old {
    z-index: 1;
    filter: blur(2px) contrast(1.5) brightness(0.8) sepia(0.5);
    transform: scale(1.02);
}

.ws-proc-img-new {
    z-index: 2;
    filter: invert(1) grayscale(1) contrast(1.1) brightness(1.05);
    clip-path: inset(0 0 100% 0);
    will-change: clip-path;
}

.ws-proc-beam {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #fff;
    box-shadow:
        0 0 10px #fff,
        0 0 20px rgba(212, 175, 55, 0.9),
        0 0 40px rgba(212, 175, 55, 0.7),
        0 0 80px rgba(212, 175, 55, 0.45);
    z-index: 10;
    top: 0;
    opacity: 0.9;
    pointer-events: none;
}

.ws-proc-beam::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background: linear-gradient(
        to bottom,
        rgba(255, 215, 0, 0.38) 0%,
        rgba(255, 215, 0, 0.14) 45%,
        transparent 100%
    );
    transform: translateY(100%);
}

.ws-proc-status {
    margin-top: 34px;
    text-align: center;
    width: 100%;
}

.ws-proc-title {
    font-size: clamp(24px, 3.2vw, 32px);
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.25);
    margin-bottom: 6px;
}

.ws-proc-log {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: 'Courier New', monospace;
    margin-bottom: 8px;
    transition: opacity 0.2s ease;
}

.ws-proc-percent {
    font-size: 12px;
    color: rgba(212, 175, 55, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: 'Courier New', monospace;
}

.ws-proc-progress-line {
    width: min(300px, 80vw);
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 18px auto 0;
    position: relative;
    overflow: hidden;
}

.ws-proc-progress-active {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: var(--brand-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
    transition: width 0.08s linear;
}

.ws-proc-spark {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
}

/* --- BUTTONS --- */
.btn-liquid {
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-top: 1px solid rgba(212, 175, 55, 0.7);
    color: #fff;
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.3),
        inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(212, 175, 55, 0.1));
    border-color: #D4AF37;
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.4),
        inset 0 0 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.btn-primary:active { transform: translateY(0); }

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

.btn-secondary:hover {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    background: rgba(255,255,255,0.05);
}

/* --- INPUTS --- */
.input-liquid {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    outline: none;
    transition: 0.3s;
}

.input-liquid:focus {
    border-color: var(--brand-gold);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, .font-serif { font-family: 'Cormorant Garamond', serif; }

/* --- RESULT SLIDER FIX --- */
.result-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .result-layout {
        grid-template-columns: 1fr 320px;
    }
}

.comparison-wrapper {
    width: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #000;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
    user-select: none;
    touch-action: none; /* Prevent scrolling while dragging */
}

/* Enhanced Slider Styles */
#result-compare-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    cursor: ew-resize;
}

#res-after, #res-before {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

#res-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
}

#res-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.8);
    z-index: 20;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    pointer-events: none; /* Let clicks pass through to container for better touch handling */
}

/* The circular knob */
#res-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--brand-gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m11 17-5-5 5-5'/%3E%3Cpath d='m13 17 5-5-5-5'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.comparison-wrapper:hover #res-handle::after {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #000;
}

/* Labels */
.compare-label {
    position: absolute;
    top: 16px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.8);
    pointer-events: none;
    z-index: 15;
    transition: opacity 0.3s;
}

.compare-label.label-before { left: 16px; }
.compare-label.label-after { right: 16px; color: var(--brand-gold); border-color: rgba(212, 175, 55, 0.3); }

/* --- PAYMENT BANNER REDESIGN --- */
#preview-banner,
#next-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(0,0,0,0.6));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

/* Shine effect */
#preview-banner::before,
#next-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

@media (min-width: 768px) {
    #preview-banner,
    #next-banner {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        padding: 32px;
    }
}

.pay-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: #fff;
    margin-bottom: 4px;
}

.pay-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
}

.btn-pay-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #F4CF57 100%);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 11px;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
    position: relative;
    z-index: 10;
    white-space: nowrap;
}

.btn-pay-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
    background: #fff;
}

/* --- STEPPER --- */
.ws-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 50px;
    border: 1px solid transparent;
    transition: all 0.3s;
    opacity: 0.5;
    flex-shrink: 0;
}

.ws-step.is-active {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    opacity: 1;
}

.ws-step.is-done {
    opacity: 0.7;
}

.ws-step__dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

.ws-step.is-active .ws-step__dot {
    background: var(--brand-gold);
    color: black;
    box-shadow: 0 0 10px var(--brand-gold);
}

.ws-step__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
}

/* --- SLIDER THUMB (New) --- */
input[type="range"] {
    -webkit-appearance: none;
    background: transparent;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #D4AF37;
    border: 2px solid #000;
    box-shadow: 0 0 10px rgba(212,175,55,0.5);
    margin-top: -6px; /* center on track */
}
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* --- SHARP DIAMOND GLASS BUTTONS v3 --- */
.btn-glass-base {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 0; /* Sharp as a diamond */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Crisper border */
    background: rgba(255, 255, 255, 0.01);
    -webkit-backdrop-filter: blur(16px) saturate(180%); /* Higher blur + saturation */
    backdrop-filter: blur(16px) saturate(180%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 11px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05); /* Inner rim */
    overflow: hidden;
}

.btn-glass-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right, 
        transparent, 
        rgba(255,255,255,0.1), 
        transparent
    );
    transform: skewX(-20deg);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.btn-glass-base:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(255, 255, 255, 0.1); /* Outer glow */
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.btn-glass-base:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Variant: Crystal (Frost) - Purest Glass */
.btn-glass-strong-crystal {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
}
.btn-glass-strong-crystal:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Variant: Gold (Amber) - Warm Glass */
.btn-glass-strong-gold {
    border-color: rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(0,0,0,0.2));
    color: #F4CF57;
}
.btn-glass-strong-gold:hover {
    border-color: #F4CF57;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(0,0,0,0.3));
    color: #fff;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(212, 175, 55, 0.2),
        0 0 30px rgba(212, 175, 55, 0.3);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

/* Variant: Obsidian (Smoked) - Dark Glass */
.btn-glass-strong-obsidian {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}
.btn-glass-strong-obsidian:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Remove old pseudo-elements */
.btn-glass-strong-gold::before { display: none; }

/* Enhanced Glass Card */
.glass-card {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.03);
    border-color: rgba(212, 175, 55, 0.4);
}

/* Animations */
.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.animate-pulse-custom {
    animation: pulseCustom 2s infinite;
}

@keyframes pulseCustom {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Compatibility aliases for older markup */
.btn-glass-gold { background: rgba(212, 175, 55, 0.14); border-color: rgba(212, 175, 55, 0.32); }
.btn-glass-gold:hover { background: rgba(212, 175, 55, 0.20); border-color: rgba(212, 175, 55, 0.50); }

.btn-glass-crystal { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.btn-glass-crystal:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.24); }

.btn-glass-deep { background: rgba(0, 0, 0, 0.42); border-color: rgba(255, 255, 255, 0.10); }
.btn-glass-deep:hover { background: rgba(0, 0, 0, 0.55); border-color: rgba(212, 175, 55, 0.30); }

.btn-glass-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.90); }
.btn-glass-ghost:hover { background: rgba(212, 175, 55, 0.10); border-color: rgba(212, 175, 55, 0.50); color: #D4AF37; }

/* Landing fallbacks (if landing.css isn't loaded for some reason) */
.hero-bg { background-image: url("images/hero.jpg"); }
@media (max-width: 768px) {
  .hero-bg { background-image: url("images/hero-960.jpg"); }
}

@keyframes restorePulse {
  0% { transform: scale(1) translate3d(0, 0, 0); filter: saturate(1) contrast(1); }
  100% { transform: scale(1.08) translate3d(0, -1%, 0); filter: saturate(1.05) contrast(1.05); }
}
.animate-restore-pulse {
  animation: restorePulse 18s ease-in-out infinite alternate;
  will-change: transform, filter;
  transform-origin: center;
}
.text-gold-gradient {
  background: linear-gradient(95deg, #f7e7b3 0%, #d4af37 35%, #fff2c6 55%, #b8841c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tracking-cinematic { letter-spacing: 0.015em; }

@media (prefers-reduced-motion: reduce) {
  .animate-restore-pulse { animation: none; }
}

/* Smooth Shimmer Effect (Premium Light Sweep) */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.0) 30%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.0) 70%, 
        transparent 100%
    );
    transform: translateX(-100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
}
.btn-shimmer:hover::after {
    opacity: 1;
    animation: btnShimmerSmooth 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes btnShimmerSmooth {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .btn-shimmer:hover::after {
        animation: none;
    }
}

/* Reveal Animation (Scroll) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    filter: blur(4px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* --- HERO TYPOGRAPHY IMPROVEMENTS --- */
#hero h1 {
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    letter-spacing: -0.02em;
}

#hero h1 span.italic {
    text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

#hero p.text-gray-200 {
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    opacity: 0.9;
}
