﻿/* ============================================
   SUNS FIDELITY CARD - OPTIMIZED MOBILE-FIRST DESIGN
   Design System - Elegant & Responsive
   ============================================ */

/* ----------------------------------------
   FONTS
   ---------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* ----------------------------------------
   CSS VARIABLES - DARK MODE
   ---------------------------------------- */
:root,
[data-theme="dark"] {
    --bg-primary: #0A0A0A;
    --bg-card: #141414;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --border-color: #2A2A2A;
    --input-bg: #1A1A1A;
    --suns-orange: #FF5F19;
    --suns-black: #0A0A0A;
    --suns-white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    /* Valori ripetuti come variabili */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 12px;
    --border-radius-md: 14px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --border-radius-2xl: 24px;
}

/* ----------------------------------------
   CSS VARIABLES - LIGHT MODE
   ---------------------------------------- */
[data-theme="light"] {
    --bg-primary: #F5F5F5;
    --bg-card: #FFFFFF;
    --text-primary: #0A0A0A;
    --text-secondary: #606060;
    --border-color: #E0E0E0;
    --input-bg: #F8F8F8;
    --suns-orange: #FF5F19;
    --suns-black: #0A0A0A;
    --suns-white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* ----------------------------------------
   BASE & RESET
   ---------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Safe area insets per iOS */
@supports (padding: max(0px)) {
    body {
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }

    .main-container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* ----------------------------------------
   THEME TOGGLE
   ---------------------------------------- */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    border-color: var(--suns-orange);
    color: var(--suns-orange);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* ----------------------------------------
   MAIN CONTAINER
   ---------------------------------------- */
.main-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ----------------------------------------
   ANIMATIONS
   ---------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
}

@keyframes cardShine {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

@keyframes headerPulse {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-10%, -10%);
    }
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* ----------------------------------------
   CARD STYLES
   ---------------------------------------- */
.registration-card,
.success-card,
.card-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.registration-card {
    border-radius: var(--border-radius-xl);
    width: 100%;
    max-width: 500px;
    padding: 1.75rem;
}

.success-card {
    border-radius: var(--border-radius-xl);
    width: 100%;
    max-width: 500px;
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.card-wrapper {
    border-radius: var(--border-radius-xl);
    padding: 1.5rem;
}

/* ----------------------------------------
   LOGO & BRAND
   ---------------------------------------- */
.logo-container {
    text-align: center;
    margin-bottom: 0.5rem;
    background: transparent;
}

.logo-container img {
    height: 70px;
    width: auto;
}

[data-theme="dark"] .logo-container img {
    filter: invert(1) brightness(1.2);
}

.brand-accent-line {
    width: 160px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--suns-orange), transparent);
    margin: 1rem auto;
    border-radius: 2px;
}

.brand-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 1.75rem;
    font-weight: 500;
}

/* ----------------------------------------
   TYPOGRAPHY
   ---------------------------------------- */
.welcome-title,
.profile-title,
.section-title,
.success-title,
.error-title,
.modal-title {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.welcome-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    line-height: 1.2;
}

.welcome-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.welcome-text strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.profile-title {
    font-size: 1.75rem;
    color: white;
    margin: 0;
}

.profile-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
}

.section-title {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--suns-orange);
}

.success-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.error-title {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ----------------------------------------
   FORM ELEMENTS
   ---------------------------------------- */
.form-group {
    margin-bottom: 1rem;
}

/* Form Row - Mobile First */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Fix mobile spacing: remove margin bottom from groups inside row as gap handles it */
.form-row .form-group {
    margin-bottom: 0;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--suns-orange);
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(255, 95, 25, 0.12);
    caret-color: var(--suns-orange);
}

/* Fix for dark text on autofill/autocomplete */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ----------------------------------------
   PROFILE MODAL FIXES
   ---------------------------------------- */
.profile-modal .input-wrapper {
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
}

.profile-modal .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    font-size: 1.1rem;
    z-index: 10;
}

/* ----------------------------------------
   DATEPICKER ALIGNMENT FIXES
   ---------------------------------------- */
.datepicker-input-wrapper {
    position: relative;
    width: 100%;
}

.datepicker-input-wrapper .input-icon {
    position: absolute;
    left: 1rem;
    /* Specific left positioning for calendar icon */
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    font-size: 1.1rem;
    z-index: 10;
}

.clear-date-btn {
    position: absolute;
    right: 2.75rem;
    /* Position to the left of the validation icon (1rem) */
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    padding: 0;
}

/* Ensure valid state background (checkmark) is positioned correctly */
.datepicker-input-wrapper .form-control.is-valid {
    background-position: right 1rem center !important;
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Validation - Support standard Blazor classes */
.form-control.is-valid,
.form-control.modified.valid {
    border-color: #22C55E;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2322C55E' viewBox='0 0 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    padding-right: 3rem;
}

.form-control.is-invalid,
.form-control.modified.invalid {
    border-color: #EF4444;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23EF4444' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    padding-right: 3rem;
}

.input-wrapper,
.form-input-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper .form-control:focus~.input-icon {
    color: var(--suns-orange);
}

/* ----------------------------------------
   VALIDATION
   ---------------------------------------- */
.validation-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.validation-message.error {
    color: #EF4444;
}

.validation-spinner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--suns-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ----------------------------------------
   NEWSLETTER & CONSENT
   ---------------------------------------- */
.newsletter-section,
.newsletter-consent {
    background: var(--input-bg);
    border-radius: var(--border-radius-lg);
    padding: 1.125rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.newsletter-title {
    color: var(--suns-orange);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 0.75rem;
}

.newsletter-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: justify;
    margin-bottom: 1rem;
    line-height: 1.55;
}

.consent-options {
    display: flex;
    gap: 1rem;
}

.consent-option {
    flex: 1;
}

.consent-option input {
    display: none;
}

.consent-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
    font-size: 0.95rem;
}

.consent-option label:active {
    transform: scale(0.97);
}

/* Custom colors: YES = Green, NO = Red */
#newsletter-si:checked+label {
    border-color: #22C55E;
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

#newsletter-si:checked+label .consent-icon-yes {
    color: #22C55E;
}

#newsletter-no:checked+label {
    border-color: #EF4444;
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

#newsletter-no:checked+label .consent-icon-no {
    color: #EF4444;
}

.consent-option input:not(:checked)+label .consent-icon-no {
    color: var(--text-secondary);
    opacity: 0.5;
}

.consent-option label i {
    font-size: 1.25rem;
}

/* ----------------------------------------
   PRIVACY
   ---------------------------------------- */
.privacy-text,
.privacy-consent {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

.privacy-text a {
    color: var(--suns-orange);
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.privacy-text a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: var(--suns-orange);
    transition: width 0.3s ease;
}

.privacy-text a:hover::after {
    width: 100%;
}

/* ----------------------------------------
   BUTTONS
   ---------------------------------------- */
.btn,
.btn-primary,
.btn-secondary,
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary,
.btn-download {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--suns-orange) 0%, #E55A17 100%);
    color: white;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(255, 95, 25, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.btn-primary:hover:not(:disabled),
.btn-download:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 95, 25, 0.35);
}

.btn-primary:active:not(:disabled),
.btn-download:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 95, 25, 0.3);
}

.btn-primary:disabled,
.btn-download:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
}

.btn-secondary:hover {
    border-color: var(--suns-orange);
    color: var(--suns-orange);
    background: rgba(255, 95, 25, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.footer-link,
.registration-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-link a,
.registration-footer a {
    color: var(--suns-orange);
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.footer-link a::after,
.registration-footer a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: var(--suns-orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.footer-link a:hover::after,
.registration-footer a:hover::after {
    transform: scaleX(1);
}

/* ----------------------------------------
   TOAST NOTIFICATIONS
   ---------------------------------------- */
.toast-container,
.toast-container-custom {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast,
.toast-custom {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border-radius: var(--border-radius-md);
    width: 100%;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.toast.success,
.toast-custom.success {
    background: #065F46;
    color: white;
}

.toast.error,
.toast-custom.error {
    background: #991B1B;
    color: white;
}

.toast.warning,
.toast-custom.warning {
    background: #92400E;
    color: white;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-content h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-content p {
    font-size: 0.8rem;
    opacity: 0.95;
}

.toast-dismiss {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.toast-dismiss:hover,
.toast-dismiss:active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* ----------------------------------------
   SUCCESS ELEMENTS
   ---------------------------------------- */
.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.success-text {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.fidelity-code-box {
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.fidelity-code-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.fidelity-code {
    font-family: 'Courier New', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--suns-orange);
    letter-spacing: 4px;
}

/* ----------------------------------------
   MODAL
   ---------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 400px;
    padding: 1.75rem;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 95, 25, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: var(--suns-orange);
}

.modal-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.55;
}

.modal-close {
    width: 100%;
    padding: 0.875rem;
    background: var(--input-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    border-color: var(--suns-orange);
    color: var(--suns-orange);
    background: rgba(255, 95, 25, 0.05);
}

.modal-close:active {
    transform: scale(0.98);
}

/* ----------------------------------------
   DATE PICKER
   ---------------------------------------- */
.date-picker-wrapper,
.modern-datepicker {
    position: relative;
    width: 100%;
}

.datepicker-input-wrapper {
    position: relative;
    cursor: pointer;
}

.datepicker-input-wrapper .form-control {
    cursor: pointer;
    user-select: none;
}

/* Fix overlap between validation icon and clear button */
.datepicker-input-wrapper .form-control.is-valid,
.datepicker-input-wrapper .form-control.modified.valid {
    background-position: right 3rem center;
    padding-right: 4.5rem;
}

.clear-date-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
    border-radius: 6px;
}

.clear-date-btn:hover,
.clear-date-btn:active {
    color: var(--suns-orange);
    background: rgba(255, 95, 25, 0.1);
}

.clear-date-btn i {
    font-size: 0.875rem;
}

.datepicker-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.datepicker-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    width: calc(100% - 2rem);
    max-width: 400px;
    padding: 1rem;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.datepicker-dropdown.slide-out {
    animation: slideOut 0.2s ease;
}

.quick-dates-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.quick-date-btn {
    padding: 0.5rem;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.quick-date-btn:hover,
.quick-date-btn:active {
    background: var(--bg-primary);
    border-color: var(--suns-orange);
    color: var(--suns-orange);
    transform: translateY(-1px);
}

.quick-date-btn.today-btn {
    background: linear-gradient(135deg, var(--suns-orange) 0%, #E55A17 100%);
    border-color: var(--suns-orange);
    color: white;
}

.quick-date-btn.today-btn:hover,
.quick-date-btn.today-btn:active {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 95, 25, 0.3);
}

.datepicker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

.nav-btn:hover,
.nav-btn:active {
    background: var(--bg-primary);
    border-color: var(--suns-orange);
    color: var(--suns-orange);
    transform: scale(1.05);
}

.header-title {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.month-select,
.year-select {
    flex: 1;
    padding: 0.625rem;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.month-select:hover,
.year-select:hover {
    border-color: var(--suns-orange);
    background: var(--bg-primary);
}

.month-select:focus,
.year-select:focus {
    outline: none;
    border-color: var(--suns-orange);
    box-shadow: 0 0 0 4px rgba(255, 95, 25, 0.12);
}

.weekday-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.weekday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.day-cell {
    aspect-ratio: 1;
    background: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-smooth);
}

.day-cell:hover:not(:disabled) {
    background: var(--bg-primary);
    border-color: var(--suns-orange);
    transform: scale(1.08);
    z-index: 1;
}

.day-cell:active:not(:disabled) {
    transform: scale(1.02);
}

.day-cell:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.day-cell.other-month {
    opacity: 0.4;
}

.day-cell.today {
    border-color: var(--suns-orange);
    font-weight: 700;
}

.day-cell.selected {
    background: linear-gradient(135deg, var(--suns-orange) 0%, #E55A17 100%);
    border-color: var(--suns-orange);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 95, 25, 0.3);
}

.day-cell.selected:hover {
    transform: scale(1.12);
}

.today-dot {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--suns-orange);
    border-radius: 50%;
}

.day-cell.selected .today-dot {
    background: white;
}

.datepicker-footer {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-btn {
    flex: 1;
    padding: 0.875rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.footer-btn.clear {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.footer-btn.clear:hover,
.footer-btn.clear:active {
    background: var(--input-bg);
    border-color: var(--text-secondary);
    transform: translateY(-1px);
}

.footer-btn.confirm {
    background: linear-gradient(135deg, var(--suns-orange) 0%, #E55A17 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 95, 25, 0.25);
}

.footer-btn.confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 95, 25, 0.35);
}

.footer-btn.confirm:active:not(:disabled) {
    transform: translateY(0);
}

.footer-btn.confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ----------------------------------------
   PROFILE PAGE
   ---------------------------------------- */
.profile-container {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg-primary);
    padding-bottom: 2rem;
}

.profile-header {
    background: var(--suns-black);
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: headerPulse 8s ease-in-out infinite;
}

.profile-header-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.profile-welcome {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-badge {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.fidelity-card-container {
    margin-bottom: 1.5rem;
}

.card-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-image-wrapper:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.fidelity-card-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-lg);
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: cardShine 3s ease-in-out infinite;
}

.card-loading {
    background: var(--input-bg);
    border-radius: var(--border-radius-lg);
    padding: 4rem 2rem;
    text-align: center;
}

.spinner-lg {
    margin-bottom: 1rem;
}

.spinner-lg .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.card-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-card {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 95, 25, 0.15);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--suns-orange);
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.info-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.user-details-card {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem;
    background: var(--bg-card);
    border-radius: 10px;
    gap: 1rem;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-label i {
    color: var(--suns-orange);
    font-size: 1rem;
}

.detail-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.detail-code {
    font-family: 'Courier New', monospace;
    color: var(--suns-orange);
    font-size: 1rem;
    letter-spacing: 1px;
}

.error-state {
    max-width: 500px;
    margin: 4rem auto;
    padding: 2rem 1rem;
    text-align: center;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: #EF4444;
}

.error-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ----------------------------------------
   UTILITY CLASSES
   ---------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col,
.col-auto,
.col-12 {
    padding: 0 0.5rem;
}

.col-12 {
    width: 100%;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.fw-bold {
    font-weight: 700;
}

.mb-0 {
    margin-bottom: 0;
}

.text-muted {
    color: var(--text-secondary);
}

.text-center {
    text-align: center;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.mt-3 {
    margin-top: 1rem;
}

.btn {
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
}

.small {
    font-size: 0.85rem;
}

.mt-2 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.alert {
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.alert-light {
    background: var(--input-bg);
    color: var(--text-primary);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: #EF4444;
    color: var(--text-primary);
}

.border {
    border: 1px solid var(--border-color);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.d-inline-block {
    display: inline-block;
}

.text-start {
    text-align: left;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.me-3 {
    margin-right: 1rem;
}

.fs-4 {
    font-size: 1.5rem;
}

.text-suns {
    color: var(--suns-orange);
}

.alert-heading {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.py-5 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.hidden {
    display: none !important;
}

.show {
    display: flex !important;
}

.w-100 {
    width: 100%;
}

.cursor-pointer {
    cursor: pointer;
}

*:focus-visible {
    outline: 2px solid var(--suns-orange);
    outline-offset: 2px;
}

.skeleton {
    background: linear-gradient(90deg, var(--input-bg) 25%, var(--border-color) 50%, var(--input-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

.profile-skeleton {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.skeleton-header {
    height: 80px;
}

.skeleton-card {
    height: 300px;
}

.skeleton-info {
    height: 120px;
}

/* ----------------------------------------
   RESPONSIVE - MOBILE FIRST
   ---------------------------------------- */
@media (min-width: 640px) {
    .main-container {
        padding: 2rem 1.5rem;
    }

    .registration-card {
        border-radius: 28px;
        padding: 2.5rem;
        box-shadow: var(--shadow-lg);
    }

    .success-card {
        border-radius: 28px;
        padding: 3rem 2.5rem;
    }

    .card-wrapper {
        border-radius: var(--border-radius-2xl);
        padding: 2rem;
    }

    .logo-container img {
        height: 85px;
    }

    .brand-accent-line {
        width: 200px;
    }

    .brand-subtitle {
        font-size: 0.75rem;
        letter-spacing: 4px;
        margin-bottom: 2rem;
    }

    .welcome-title {
        font-size: 2.75rem;
        letter-spacing: 3px;
        margin-bottom: 0.75rem;
    }

    .welcome-text {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 2rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-row {
        flex-direction: row;
    }

    .form-row .form-group {
        flex: 1;
    }

    .form-control {
        padding: 1rem 1.125rem 1rem 2.875rem;
        border-radius: var(--border-radius-md);
        font-size: 1rem;
    }

    .input-icon {
        left: 1.125rem;
        font-size: 1.15rem;
    }

    .newsletter-section,
    .newsletter-consent {
        border-radius: 18px;
        padding: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .newsletter-title {
        font-size: 0.75rem;
        letter-spacing: 2.5px;
    }

    .newsletter-text {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .consent-options {
        gap: 1rem;
    }

    .consent-option label {
        padding: 1rem;
        border-radius: var(--border-radius-md);
    }

    .consent-option label i {
        font-size: 1.35rem;
    }

    .privacy-text,
    .privacy-consent {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .btn-primary,
    .btn-download {
        padding: 1.125rem 1.75rem;
        border-radius: var(--border-radius-lg);
        font-size: 1.05rem;
    }

    .btn-secondary {
        padding: 1.125rem 1.75rem;
        border-radius: var(--border-radius-lg);
    }

    .footer-link,
    .registration-footer {
        margin-top: 1.75rem;
        padding-top: 1.75rem;
    }

    .toast-container,
    .toast-container-custom {
        top: 1rem;
        right: 1rem;
        left: auto;
        max-width: 400px;
    }

    .toast,
    .toast-custom {
        padding: 1rem 1.25rem;
        border-radius: var(--border-radius-lg);
    }

    .success-icon {
        width: 90px;
        height: 90px;
        font-size: 2.75rem;
    }

    .success-title {
        font-size: 2.25rem;
        letter-spacing: 3px;
    }

    .success-text {
        margin-bottom: 2rem;
        font-size: 1rem;
    }

    .fidelity-code-box {
        border-radius: 18px;
        padding: 1.75rem;
    }

    .fidelity-code-label {
        font-size: 0.75rem;
        letter-spacing: 2.5px;
    }

    .fidelity-code {
        font-size: 2.25rem;
        letter-spacing: 6px;
    }

    .modal-card {
        border-radius: var(--border-radius-2xl);
        padding: 2rem;
    }

    .modal-icon {
        width: 72px;
        height: 72px;
        font-size: 2rem;
    }

    .modal-title {
        font-size: 1.75rem;
        letter-spacing: 1.5px;
    }

    .modal-close {
        padding: 1rem;
        border-radius: var(--border-radius-md);
    }

    .datepicker-dropdown {
        border-radius: var(--border-radius-xl);
        padding: 1.25rem;
        max-width: 420px;
    }

    .quick-date-btn {
        padding: 0.625rem;
        font-size: 0.875rem;
    }

    .weekday {
        font-size: 0.75rem;
    }

    .calendar-grid {
        gap: 0.375rem;
    }

    .footer-btn {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .py-4 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .mb-4 {
        margin-bottom: 2rem;
    }

    .mt-3 {
        margin-top: 1.25rem;
    }

    .mt-4 {
        margin-top: 2rem;
    }

    .btn {
        padding: 1rem 1.75rem;
        font-size: 1rem;
        border-radius: var(--border-radius-md);
    }

    .small {
        font-size: 0.875rem;
    }

    .alert {
        padding: 1.25rem;
        border-radius: var(--border-radius-md);
    }

    .alert-heading {
        font-size: 1.5rem;
    }

    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .profile-header {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2rem;
    }

    .welcome-badge {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
    }

    .profile-title {
        font-size: 2.25rem;
    }

    .profile-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    .card-image-wrapper,
    .fidelity-card-image {
        border-radius: var(--border-radius-xl);
    }

    .card-loading {
        border-radius: var(--border-radius-xl);
        padding: 5rem 2rem;
    }

    .btn-download {
        padding: 1.125rem 1.75rem;
        border-radius: var(--border-radius-lg);
    }

    .info-card {
        border-radius: var(--border-radius-lg);
        padding: 1.5rem;
    }

    .user-details-card {
        border-radius: var(--border-radius-lg);
        padding: 1.25rem;
        gap: 1rem;
    }

    .detail-row {
        padding: 1rem;
        border-radius: var(--border-radius-sm);
    }

    .error-icon {
        width: 96px;
        height: 96px;
        font-size: 3rem;
    }

    .error-title {
        font-size: 2rem;
    }

    .col-lg-6 img,
    .col-lg-8 img {
        border-radius: var(--border-radius-xl);
    }

    .col-lg-6 img:hover,
    .col-lg-8 img:hover {
        transform: scale(1.02);
    }
}

@media (min-width: 768px) {
    .registration-card {
        padding: 3rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .py-4 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

@media (min-width: 992px) {
    .col-lg-6 {
        width: 50%;
    }

    .col-lg-8 {
        width: 66.666667%;
    }
}

/* ----------------------------------------
   REGISTRATION SUCCESS FLIP CARD
   ---------------------------------------- */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.success-overlay.show {
    display: flex;
}

.success-card-container {
    text-align: center;
    animation: scaleIn 0.4s ease-out;
}

.flip-card-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.flip-card {
    width: 300px;
    height: 180px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card-inner.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 2px solid var(--suns-orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-face.front {
    background-color: #0A0A0A;
    /* Always black for the card front */
    color: white;
}

.card-face.back {
    background-color: #FFFFFF;
    /* Always white for the card back */
    transform: rotateY(180deg);
}

[data-theme="dark"] .card-face.back {
    background-color: #1A1A1A;
    /* Darker back in dark mode if preferred, but usually cards are physical */
    border-color: var(--suns-orange);
}

/* Ensure text colors on the card are correct */
.card-face.front .text-white {
    color: #FFFFFF !important;
}

.card-face.front .text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.card-face.back .text-dark {
    color: #0A0A0A !important;
}

[data-theme="dark"] .card-face.back .text-dark {
    color: #FFFFFF !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}