/* Modern WebGL Template Styles */
body { 
    padding: 0; 
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

#unity-container { 
    position: absolute;
}

#unity-container.unity-desktop { 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%);
}

#unity-container.unity-mobile { 
    width: 100%; 
    height: 100%;
}

#unity-canvas { 
    background: #231F20;
    width: 100%; 
    height: 100%; 
    z-index: -98;
}

.unity-mobile #unity-canvas { 
    width: 100%; 
    height: 100%;
}

#unity-loading-bar { 
    position: absolute; 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%); 
    display: none;
    background: white;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#unity-logo { 
    width: 154px; 
    height: 130px; 
    background: url('unity-logo-light.png') no-repeat center;
    margin: 0 auto 2rem auto;
}

#unity-progress-bar-empty { 
    width: 350px; 
    height: 12px; 
    margin: 10px auto 0 auto; 
    background: rgba(44, 44, 44, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(44, 44, 44, 0.1);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

#unity-progress-bar-full { 
    width: 0%; 
    height: 12px; 
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--accent-color) 50%, 
        var(--gold-accent) 100%);
    border-radius: 8px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 
        0 2px 8px rgba(197, 39, 61, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#unity-progress-bar-full::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
    animation: luxuryShimmer 2.5s infinite;
    border-radius: 8px;
}

#unity-footer { 
    position: relative;
}

.unity-mobile #unity-footer { 
    display: none;
}

#unity-webgl-logo { 
    float: left; 
    width: 204px; 
    height: 38px; 
    background: url('webgl-logo.png') no-repeat center;
}

#unity-build-title { 
    float: right; 
    margin-right: 10px; 
    line-height: 38px; 
    font-family: arial; 
    font-size: 18px;
}

#unity-fullscreen-button { 
    float: right; 
    width: 38px; 
    height: 38px; 
    background: url('fullscreen-button.png') no-repeat center;
}

#unity-warning { 
    position: absolute; 
    left: 50%; 
    top: 5%; 
    transform: translate(-50%); 
    background: white; 
    padding: 10px; 
    display: none;
}

/* Video and Canvas Styles */
#webcam-video {
    width: 1px;
    position: absolute;
}

#video-canvas {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    position: absolute; 
    z-index: -99;
}

/* Camera Selector Styles */
#chooseCamSel {
    display: none;
}

/* Button and Modal Styles */
#startARButton {
    display: none;
}

#screenshotDiv {
    display: none;
}

#confirmUrlDiv {
    display: none;
}

#errorDiv {
    display: none;
    background: #aaa;
}

/* Screenshot Image */
.screenshot-image {
    width: 80vw; 
    height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Modal Button Layout */
.button-group {
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
    margin-top: 1.5rem;
}

/* Secondary Button Style */
.modern-button.secondary {
    background: #6b7280;
}

/* Error Title Style */
.error-title {
    color: #ef4444; 
    margin-bottom: 1rem;
}

/* Text Styles */
#errorText {
    text-align: center; 
}

#confirmUrlText {
    text-align: center; 
    width: 80%; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

/* =================== CUSTOM STYLES FROM INDEX.HTML =================== */

:root {
    --primary-color: #c5273d;
    --secondary-color: #9d1f2f;
    --accent-color: #e85566;
    --gold-accent: #d4af37;
    --silver-accent: #c0c0c0;
    --text-primary: #2c2c2c;
    --text-secondary: #666666;
    --text-muted: #999999;
    --background-primary: #ffffff;
    --background-secondary: #fafafa;
    --background-overlay: rgba(255, 255, 255, 0.95);
    --shadow-light: 0 4px 6px -1px rgba(44, 44, 44, 0.08);
    --shadow-medium: 0 10px 15px -3px rgba(44, 44, 44, 0.12);
    --shadow-heavy: 0 25px 50px -12px rgba(44, 44, 44, 0.2);
    --shadow-gold: 0 4px 15px rgba(212, 175, 55, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    height: -webkit-fill-available;
}

body {
    margin: 0;
    padding: 0;
    min-height: -webkit-fill-available;
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 30%, #cbd5e1 70%, #94a3b8 100%);
    background-attachment: fixed;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(197, 39, 61, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(192, 192, 192, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.ctaDiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(218, 33, 50, 0.95) 0%, rgba(185, 28, 44, 0.95) 100%); */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: white;
    z-index: 99;
    transition: var(--transition);
}

.logo-container {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 100;
}

.logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: shimmer 4s infinite;
    pointer-events: none;
}

.logo::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(212, 175, 55, 0.1) 100%);
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.loading-container {
    text-align: center;
    color: var(--text-primary);
    max-width: 500px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes gradientMove {
    0%,
    100% {
        background-position: 200% 0%;
    }

    50% {
        background-position: -200% 0%;
    }
}

.loading-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* background: linear-gradient(135deg, var(--primary-color), var(--gold-accent)); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    background-clip: text;
    letter-spacing: 2px;
    font-family: 'Inter', serif;
}

.loading-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modern-button {
    background: rgba(197, 39, 61, 0.2);
    color: var(--primary-color);
    border: 1px solid rgba(197, 39, 61, 0.3);
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow:
        0 8px 20px rgba(197, 39, 61, 0.15),
        0 3px 8px rgba(197, 39, 61, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.modern-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.modern-button:hover::after {
    width: 300px;
    height: 300px;
}

.modern-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(197, 39, 61, 0.3);
    border-color: rgba(197, 39, 61, 0.5);
    box-shadow:
        0 12px 30px rgba(197, 39, 61, 0.25),
        0 6px 12px rgba(197, 39, 61, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.modern-button:active {
    transform: translateY(0);
}

.modern-button::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;
}

.modern-button:hover::before {
    left: 100%;
}

/* Removed loading spinner and pulse dots - keeping only the progress bar for cleaner, more elegant loading */

.modal-content {
    background: rgba(255, 255, 255, 0.2);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(212, 175, 55, 0.1) 100%);
    pointer-events: none;
    border-radius: 24px;
}

.modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(212, 175, 55, 0.6) 50%,
            transparent 100%);
    border-radius: 24px 24px 0 0;
}

@keyframes modalShimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Decorative corner elements */
.decorative-corners {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--gold-accent);
    border-right: 2px solid var(--gold-accent);
}

.decorative-corners::before {
    content: '';
    position: absolute;
    bottom: -13px;
    left: -13px;
    width: 30px;
    height: 30px;
    border-bottom: 2px solid var(--gold-accent);
    border-left: 2px solid var(--gold-accent);
}

.modal-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    font-size: 1.5rem;
}

.modal-title.compact {
    margin-bottom: 1rem;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    transform: scale(1.1);
    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.error-message {
    color: var(--primary-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    font-size: 1rem;
    text-align: center;
    min-height: 40px; /* Prevents layout shift if text is empty */
}

.camera-selector {
    margin: 1rem 0;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--background-primary);
    transition: var(--transition);
}

.camera-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.progress-container {
    width: 100%;
    max-width: 350px;
    margin: 2rem auto;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(44, 44, 44, 0.15);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(44, 44, 44, 0.1);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--accent-color) 50%, 
        var(--gold-accent) 100%);
    border-radius: 8px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        0 2px 8px rgba(197, 39, 61, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
    animation: luxuryShimmer 2.5s infinite;
    border-radius: 8px;
}

@keyframes luxuryShimmer {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-button.secondary {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-accent);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow:
        0 8px 20px rgba(212, 175, 55, 0.15),
        0 3px 8px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.modern-button.secondary:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow:
        0 12px 30px rgba(212, 175, 55, 0.25),
        0 6px 12px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.error-title {
    color: #da2132;
    margin-bottom: 1rem;
}

/* Accessibility improvements */
.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;
}

/* App Footer */
#app-footer {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 100;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.8;
    transition: var(--transition);
    background: var(--background-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--gold-accent);
}

#app-footer:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .loading-container {
        padding: 1.5rem;
        margin: 0.5rem;
        max-width: calc(100vw - 2rem);
        border-radius: 15px;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
        max-width: calc(100vw - 2rem);
        border-radius: 15px;
    }

    .loading-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        letter-spacing: 1px;
    }

    .loading-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .modal-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .modern-button {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .logo-container {
        top: 0.8rem;
        left: 0.8rem;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .logo img {
        width: 35px;
        height: 35px;
    }

    .decorative-corners,
    .decorative-corners::before,
    .decorative-corners::after,
    .modal-content::after {
        width: 20px;
        height: 20px;
    }

    .decorative-corners {
        top: 10px;
        right: 10px;
    }

    .modal-content::after {
        top: 10px;
        left: 10px;
    }

    .decorative-corners::before {
        bottom: -8px;
        left: -8px;
    }

    .decorative-corners::after {
        bottom: -8px;
        right: -8px;
    }

    #app-footer {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        border-radius: 15px;
    }

    .button-group {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1rem;
    }

    .button-group .modern-button {
        width: 100%;
    }

    .camera-selector {
        padding: 0.8rem;
        font-size: 0.9rem;
        margin: 1rem 0;
    }

    .progress-container {
        max-width: 250px;
        margin: 1.5rem auto;
    }

    .screenshot-image {
        width: calc(100vw - 4rem);
        height: auto;
        max-height: 60vh;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .loading-container {
        padding: 1rem;
        margin: 0.25rem;
        max-width: calc(100vw - 1rem);
    }

    .modal-content {
        padding: 1rem;
        margin: 0.25rem;
        max-width: calc(100vw - 1rem);
    }

    .loading-title {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }

    .loading-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modern-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .logo img {
        width: 30px;
        height: 30px;
    }
}

/* New Layout Styles */
.main-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 2rem 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.logo-section {
    text-align: center;
    margin-top: 2rem;
}

.brand-logo {
    position: relative;
    max-width:300px;
    margin: 0 auto 1rem auto;
    width: 100%;
}
.brand-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.brand-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin: 0;
    color: var(--text-primary);
    font-family: 'Inter', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-subtitle {
    font-size: 1rem;
    margin: 0.5rem 0 0 0;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 1px;
}

.jewel-text {
    font-weight: 600;
    color: var(--primary-color);
}

.jewelry-showcase {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0 1rem 0;
}

.jewelry-image {
    max-width: 280px;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.jewelry-image:hover {
    transform: scale(1.02);
}

.loading-section {
    width: 100%;
    margin-bottom: 2rem;
}

.start-button {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    text-transform: none;
    letter-spacing: 0;
}

.start-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile adjustments for new layout */
@media (max-width: 768px) {
    .main-layout {
        padding: 1rem 0.5rem;
    }

    .brand-title {
        font-size: 2.5rem;
    }

    .jewelry-image {
        max-width: 220px;
        max-height: 280px;
    }

    .glass-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
}

/* =============================================================================
   LOADING OVERLAY STYLES
   ============================================================================= */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: white;
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.025em;
}

@media (max-width: 768px) {
    .loading-spinner {
        width: 48px;
        height: 48px;
        border-width: 3px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
}
