/* ========================================
   SHAHIN AUTO SERVICE - CUSTOM CSS
   World-Class Styling & Animations
   ======================================== */

/* ===== ROOT VARIABLES =====
   Theme color triplets live in tokens.css (:root + .dark).
   Brand vars below are derived from those tokens so component
   styles that use var(--shahin-*) theme automatically. */
:root {
    --shahin-yellow: rgb(var(--accent));
    --shahin-blue: rgb(var(--brand));
    --shahin-light-blue: rgb(var(--brand-light));
    --shahin-dark-blue: rgb(var(--brand-strong));
    --shahin-gold: rgb(var(--accent-strong));
    --shahin-silver: #C0C0C0;

    --font-vazir: 'Vazirmatn', 'Vazir', Tahoma, Arial, sans-serif;

    --shadow-shahin: 0 10px 25px -5px rgba(var(--shadow-color) / 0.12), 0 10px 10px -5px rgba(var(--shadow-color) / 0.05);
    --shadow-shahin-lg: 0 20px 25px -5px rgba(var(--shadow-color) / 0.14), 0 10px 10px -5px rgba(var(--shadow-color) / 0.05);
    --shadow-shahin-xl: 0 25px 50px -12px rgba(var(--shadow-color) / 0.28);
    --shadow-yellow-glow: 0 0 20px rgba(var(--accent) / 0.35);
    --shadow-blue-glow: 0 0 20px rgba(var(--brand) / 0.35);
}

/* Base Styles */
* {
    box-sizing: border-box;
    font-family: var(--font-vazir);
}

body {
    font-family: var(--font-vazir);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    letter-spacing: 0.5px;
    scroll-behavior: smooth;
}

/* RTL Support */
.rtl {
    direction: rtl;
    text-align: right;
}

.ltr {
    direction: ltr;
    text-align: left;
}

/* ===== CUSTOM ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeInDown {
    0% { 
        opacity: 0; 
        transform: translateY(-30px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    0% { 
        opacity: 0; 
        transform: scale(0.9); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

@keyframes glow {
    0% { 
        box-shadow: 0 0 5px var(--shahin-yellow), 0 0 10px var(--shahin-yellow), 0 0 15px var(--shahin-yellow); 
    }
    100% { 
        box-shadow: 0 0 10px var(--shahin-yellow), 0 0 20px var(--shahin-yellow), 0 0 30px var(--shahin-yellow); 
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== ANIMATION CLASSES ===== */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.animate-bounce-slow {
    animation: bounce 2s infinite;
}

.animate-pulse-slow {
    animation: pulse 3s infinite;
}

/* ===== TYPOGRAPHY ENHANCEMENTS ===== */
.font-vazir {
    font-family: var(--font-vazir) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--shahin-blue), var(--shahin-light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-yellow {
    background: linear-gradient(135deg, var(--shahin-yellow), var(--shahin-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== CUSTOM SHADOWS ===== */
.shadow-shahin {
    box-shadow: var(--shadow-shahin);
}

.shadow-shahin-lg {
    box-shadow: var(--shadow-shahin-lg);
}

.shadow-shahin-xl {
    box-shadow: var(--shadow-shahin-xl);
}

.shadow-yellow-glow {
    box-shadow: var(--shadow-yellow-glow);
}

.shadow-blue-glow {
    box-shadow: var(--shadow-blue-glow);
}

/* ===== GRADIENT BACKGROUNDS ===== */
.gradient-bg {
    background: linear-gradient(135deg, #FFD700 0%, #1E40AF 100%);
}

.gradient-bg-reverse {
    background: linear-gradient(135deg, #1E40AF 0%, #FFD700 100%);
}

.gradient-bg-shahin {
    background: linear-gradient(135deg, var(--shahin-yellow), var(--shahin-blue));
}

.gradient-bg-shahin-blue {
    background: linear-gradient(135deg, var(--shahin-blue), var(--shahin-light-blue));
}

.gradient-bg-shahin-yellow {
    background: linear-gradient(135deg, var(--shahin-yellow), var(--shahin-gold));
}

.gradient-text {
    background: linear-gradient(135deg, #FFD700, #1E40AF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== GLASSMORPHISM EFFECTS ===== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(8px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #1E40AF, #3B82F6);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1E3A8A, #2563EB);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #FFD700, #F59E0B);
    color: #1F2937;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1E40AF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.loading-spinner-sm {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1E40AF;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Text Shadow */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-shadow-lg {
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1E40AF, #3B82F6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1E3A8A, #2563EB);
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: #1E40AF;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
    resize: vertical;
    min-height: 120px;
}

.form-textarea:focus {
    outline: none;
    border-color: #1E40AF;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Hero Section */
.hero-bg {
    background: linear-gradient(rgba(30, 64, 175, 0.7), rgba(255, 215, 0, 0.3)), url('../images/hero.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Image Hover Effects */
.image-hover {
    transition: transform 0.3s ease;
    overflow: hidden;
}

.image-hover:hover img {
    transform: scale(1.1);
}

.image-hover img {
    transition: transform 0.3s ease;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
        min-height: 80vh;
    }
    
    .card-hover:hover {
        transform: translateY(-4px);
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-bg {
        min-height: 70vh;
    }
    
    .text-shadow {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .card-hover {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.focus-visible:focus {
    outline: 2px solid #1E40AF;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card-hover {
        border: 2px solid #000;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid #000;
    }
}

/* Appointment System Styles */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.service-card:hover::before {
    left: 100%;
}

.service-card.selected {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(30, 64, 175, 0.4);
    border: 2px solid var(--shahin-blue);
}

.time-slot {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.time-slot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.time-slot:hover::before {
    width: 100%;
    height: 100%;
}

.time-slot.selected {
    background: linear-gradient(135deg, var(--shahin-blue), var(--shahin-light-blue));
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

.step-indicator {
    position: relative;
    transition: all 0.3s ease;
}

.step-indicator.active {
    animation: pulse 2s infinite;
}

.step-indicator.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: none;
}

.step-indicator.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
}

/* Step Progress Animation */
@keyframes stepProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.step-progress-bar {
    animation: stepProgress 0.8s ease-out;
}

/* Form Field Focus Effects */
.form-field-group {
    position: relative;
    transition: all 0.3s ease;
}

.form-field-group:focus-within {
    transform: translateY(-2px);
}

.form-field-group:focus-within .form-label {
    color: var(--shahin-blue);
    transform: scale(0.95);
}

.form-label {
    transition: all 0.3s ease;
    transform-origin: right top;
}

/* Modal Animation */
.modal-enter {
    animation: modalEnter 0.3s ease-out;
}

@keyframes modalEnter {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-exit {
    animation: modalExit 0.2s ease-in;
}

@keyframes modalExit {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}

/* Success Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.success-checkmark circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark path {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4CAF50;
    }
}

/* Loading Spinner Enhancement */
.loading-spinner-enhanced {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--shahin-blue);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--shahin-blue), var(--shahin-light-blue));
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(30, 64, 175, 0.4);
}

.fab:active {
    transform: scale(0.95);
}

/* Notification Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    min-width: 300px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1001;
    border-right: 4px solid var(--shahin-blue);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-right-color: #10b981;
}

.toast.error {
    border-right-color: #ef4444;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1rem;
    }
    
    .time-slot {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .step-indicator {
        width: 8px;
        height: 8px;
        font-size: 12px;
    }
    
    .fab {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
    
    .toast {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* Header Navigation Enhancements */
header nav a {
    position: relative;
    overflow: hidden;
}

header nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 0;
    /* Decorative only — must never intercept clicks. The appointment link
       sets overflow:visible, so without this the shimmer parks over the
       neighbouring theme-toggle button and swallows its clicks. */
    pointer-events: none;
}

header nav a:hover::before {
    left: 100%;
}

/* Appointment Button Special Effects */
header nav a[href*="appointment"] {
    position: relative;
    overflow: visible;
}

header nav a[href*="appointment"]::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--shahin-yellow), var(--shahin-gold), var(--shahin-yellow));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

header nav a[href*="appointment"]:hover::after {
    opacity: 0.6;
}

/* Dark Mode Toggle Animation */
#dark-mode-toggle svg {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#dark-mode-toggle:hover svg {
    transform: rotate(180deg);
}

/* Mobile Menu Button Pulse Effect */
#mobile-menu-button::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--shahin-yellow), var(--shahin-blue));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

#mobile-menu-button:hover::before {
    opacity: 0.1;
    animation: pulse 2s infinite;
}

/* Mobile Menu Item Enhancements */
.mobile-menu nav a,
.mobile-menu nav button {
    position: relative;
    overflow: hidden;
}

.mobile-menu nav a::after,
.mobile-menu nav button::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--shahin-yellow), var(--shahin-blue));
    transform: translateY(-50%);
    transition: width 0.3s ease;
}

.mobile-menu nav a:hover::after,
.mobile-menu nav button:hover::after {
    width: 20px;
}

/* Icon Container Animation */
.mobile-menu nav a .w-10,
.mobile-menu nav button .w-10 {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu nav a:hover .w-10,
.mobile-menu nav button:hover .w-10 {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

/* Header Sticky Enhancement */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
}

/* Navigation Link Active State */
header nav a.active {
    color: var(--shahin-blue);
    background: linear-gradient(135deg, var(--shahin-blue)/10, var(--shahin-yellow)/10);
}

header nav a.active::before {
    left: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .service-card::before,
    .time-slot::before {
        display: none;
    }
    
    header nav a::before,
    #mobile-menu-button::before {
        display: none;
    }
}

/* ============================================================
   PREMIUM GLASSMORPHISM — service pages (theme-aware)
   Frosted panels + gold-accent interactions that read the same
   design tokens, so they stay correct in both light and dark.
   ============================================================ */

/* Frosted, elevated panel. Pairs with rounded-* + p-* utilities. */
.glass-panel {
    position: relative;
    background: linear-gradient(160deg, rgb(var(--surface) / 0.82), rgb(var(--surface) / 0.58));
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgb(var(--border) / 0.7);
    box-shadow: 0 14px 44px -16px rgba(var(--shadow-color) / 0.28);
}
.dark .glass-panel {
    background: linear-gradient(160deg, rgb(var(--surface) / 0.74), rgb(var(--surface-2) / 0.48));
    border-color: rgb(255 255 255 / 0.07);
    box-shadow: 0 20px 56px -20px rgba(0 0 0 / 0.72);
}

/* Translucent inner fill (info tiles, badges, inputs backdrop). */
.glass-soft {
    background: rgb(var(--surface-2) / 0.55);
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    border: 1px solid rgb(var(--border) / 0.65);
}
.dark .glass-soft {
    background: rgb(var(--surface-2) / 0.4);
    border-color: rgb(255 255 255 / 0.06);
}

/* Premium lift + gold glow on hover (use on the card root). */
.lift-gold {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.45s ease, border-color 0.45s ease;
}
.lift-gold:hover {
    transform: translateY(-6px);
    border-color: rgb(var(--accent) / 0.45);
    box-shadow: 0 28px 64px -22px rgba(0 0 0 / 0.5),
                0 0 0 1px rgb(var(--accent) / 0.18),
                0 0 46px -10px rgb(var(--accent) / 0.24);
}

/* Gold hairline that reveals along the top edge on hover. */
.gold-edge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgb(var(--accent)), rgb(var(--accent-strong)), transparent);
    opacity: 0;
    transition: opacity 0.45s ease;
    border-radius: inherit;
    z-index: 2;
    pointer-events: none;
}
.group:hover .gold-edge::after,
.gold-edge:hover::after { opacity: 1; }

/* Persistent gold halo for featured/standout elements. */
.ring-gold {
    box-shadow: 0 0 0 1px rgb(var(--accent) / 0.32), 0 0 34px -8px rgb(var(--accent) / 0.28);
}

/* Light sweep across an element on parent-hover. */
.shine { position: relative; overflow: hidden; }
.shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 75%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.22), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    pointer-events: none;
}
.group:hover .shine::after,
.shine:hover::after { left: 135%; }

/* Gold gradient text (premium headings, prices). */
.text-gold-gradient {
    background: linear-gradient(120deg, rgb(var(--accent)) 0%, rgb(var(--accent-strong)) 55%, rgb(var(--accent)) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Glass form control with gold focus glow. */
.glass-input {
    background: rgb(var(--surface-2) / 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgb(var(--border) / 0.8);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.glass-input:focus {
    outline: none;
    border-color: rgb(var(--accent) / 0.7);
    box-shadow: 0 0 0 3px rgb(var(--accent) / 0.16);
    background: rgb(var(--surface-2) / 0.85);
}

/* Slow gold drift for ambient background blobs. */
@keyframes auraDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(0, -18px, 0) scale(1.06); }
}
.aura { animation: auraDrift 9s ease-in-out infinite; }
.aura-slow { animation: auraDrift 13s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .aura, .aura-slow { animation: none; }
    .lift-gold:hover { transform: none; }
    .shine::after { display: none; }
}
