.admin-dashboard {
    margin: 20px 0;
    background: linear-gradient(135deg, #fffefb 0%, #fff7ea 100%);
    border: 1px solid #ead9b4;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(139, 103, 47, 0.12);
}

#userDashboardWrap {
    margin: 0 0 12px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
}

#toggleUserDashboardBtn {
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid rgba(181, 138, 71, 0.45);
    background: linear-gradient(160deg, #fffdf8 0%, #f6e7c8 100%);
    color: #6b4e1f;
    box-shadow: 0 6px 16px rgba(139, 103, 47, 0.14);
}

#toggleUserDashboardBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(139, 103, 47, 0.18);
}

#toggleUserDashboardBtn:focus-visible {
    outline: 2px solid rgba(182, 143, 78, 0.55);
    outline-offset: 2px;
}

.admin-dashboard summary {
    cursor: pointer;
    font-weight: 700;
    color: #5d4318;
}

.admin-dashboard-body {
    margin-top: 14px;
}

.admin-hero-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.admin-hero-card {
    background: linear-gradient(160deg, #fffdf7 0%, #fdf2dd 100%);
    border: 1px solid #eddcb7;
    border-radius: 12px;
    padding: 12px;
}

.admin-hero-label {
    margin: 0 0 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8b6c35;
    font-weight: 700;
}

.admin-hero-value {
    margin: 0;
    font-size: 1.35rem;
    color: #46300c;
    font-weight: 800;
}

.admin-hero-sub {
    color: #80663a;
}

.admin-progress-wrap {
    border: 1px solid #ecdcb9;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fffaf0;
    margin-bottom: 14px;
}

.admin-progress-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #7c6131;
    margin-bottom: 8px;
}

.admin-progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #f1e0be;
    overflow: hidden;
}

.admin-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #d8b26f 0%, #b58742 100%);
    transition: width 0.3s ease;
}

.admin-dashboard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.admin-metric-card {
    border: 1px solid #e7d8b8;
    border-radius: 12px;
    background: #fff8ea;
    padding: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold-1: #c8a96b;
    --gold-2: #b68f4e;
    --gold-3: #8b672f;
    --ivory-1: #fffaf2;
    --ivory-2: #fffdf8;
    --sand-1: #f7efdf;
    --sand-2: #eadcc0;
    --text-main: #2f2618;
    --text-muted: #6f624b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #efe0c5 0%, #e6d1ac 48%, #dcc090 100%);
    min-height: 100vh;
    padding: 28px 20px;
    color: var(--text-main);
    overflow-x: hidden;
}

body[data-user-mode="simple"] .advanced-only {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--ivory-1);
    border-radius: 24px;
    box-shadow: 0 22px 58px rgba(119, 91, 45, 0.2);
    overflow: hidden;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(145deg, #d8bd8a 0%, #c5a26a 52%, #b68f4e 100%);
    color: #fffaf0;
    padding: 74px 34px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main hero text + sign-in: mobile = stacked; desktop = side-by-side grid (no overlap) */
.hero-main {
    width: 100%;
    max-width: 720px;
}

/* Sign-in card */
.auth-card-wrap {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
    order: -1;
    position: relative;
    z-index: 3;
}

.auth-card {
    text-align: left;
    background: rgba(255, 250, 240, 0.97);
    border: 1px solid rgba(200, 169, 107, 0.45);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 12px 32px rgba(47, 38, 24, 0.12);
    color: var(--text-main);
}

.auth-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-3);
    margin: 0 0 6px 0;
}

.auth-card-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.auth-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #5c4a32;
    margin-bottom: 6px;
}

.auth-input {
    width: 100%;
    padding: 11px 12px;
    border: 2px solid #e8dcc4;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--gold-2);
    box-shadow: 0 0 0 3px rgba(182, 143, 78, 0.2);
}

.auth-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 6px 0 12px 0;
}

.auth-btn-full {
    width: 100%;
    flex: none;
    min-width: 0;
}

.auth-otp-caption {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 8px 0;
}

.auth-otp-box {
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-align: center;
    padding: 14px 12px;
    margin-bottom: 14px;
    background: linear-gradient(145deg, #fff8ea 0%, #fffdf8 100%);
    border: 2px dashed var(--gold-2);
    border-radius: 12px;
    color: var(--gold-3);
    user-select: all;
}

.auth-otp-input {
    text-align: center;
    letter-spacing: 0.2em;
    font-variant-numeric: tabular-nums;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.auth-actions .btn {
    flex: none;
    min-width: 0;
}

.auth-welcome {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold-3);
    margin: 0 0 12px 0;
    text-align: center;
}

.auth-step.hidden {
    display: none;
}

@media (min-width: 900px) {
    .hero-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
        gap: 24px 32px;
        align-items: start;
        max-width: 1000px;
    }

    .auth-card-wrap {
        grid-column: 2;
        grid-row: 1;
        order: 0;
        max-width: 320px;
        width: 100%;
        margin: 0;
        justify-self: end;
    }

    .hero-main {
        grid-column: 1;
        grid-row: 1;
        max-width: none;
        min-width: 0;
    }
}

/* Logo Styling */
.logo-container {
    margin-bottom: 20px;
}

.logo-text {
    font-size: 3.2em;
    font-weight: 700;
    margin: 0;
    animation: fadeInUp 1s ease-out;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

/* Caption Styling */
.hero-caption {
    margin: 0 0 15px 0;
}

.caption-line {
    font-size: 1.35em;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.05em;
    margin-bottom: 10px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.language-switcher {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 8px 12px;
}

.language-switcher label {
    font-size: 0.85rem;
    opacity: 0.95;
}

.language-switcher select {
    border: none;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.85rem;
}

.trust-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 18px;
    background: #fff8ea;
    border-bottom: 1px solid #ecdab5;
}

.trust-strip span {
    background: #fff;
    color: #74571f;
    border: 1px solid #e7d3a8;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
}

.occasion-section {
    padding: 14px 24px 10px;
    background: #fff;
    border-bottom: 1px solid #eee7d5;
}

.occasion-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #6a501b;
    margin-bottom: 8px;
}

.occasion-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.occasion-chip {
    border: 1px solid #dfcd9f;
    background: #fff8ea;
    color: #6b521d;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.occasion-chip.active {
    background: #c8a96b;
    color: #fff;
    border-color: #c8a96b;
}

/* Removed hero-features, feature-badge styles - no longer needed */

.animated-badge {
    animation: float 3s ease-in-out infinite;
}

.animated-badge:nth-child(2) {
    animation-delay: 0.5s;
}

.animated-badge:nth-child(3) {
    animation-delay: 1s;
}

/* Hero Animation Area */
.hero-animation {
    position: relative;
    height: 300px;
    margin-top: 40px;
    z-index: 1;
}

.jewelry-showcase {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.jewelry-item {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: jewelryFloat 4s ease-in-out infinite;
}

.jewelry-item:nth-child(1) {
    animation-delay: 0s;
}

.jewelry-item:nth-child(2) {
    animation-delay: 0.5s;
}

.jewelry-item:nth-child(3) {
    animation-delay: 1s;
}

.jewelry-item:nth-child(4) {
    animation-delay: 1.5s;
}

.jewelry-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
}

.jewelry-placeholder {
    width: 100px;
    height: 100px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    animation: jewelryRotate 8s linear infinite;
}

.jewelry-label {
    margin-top: 10px;
    font-size: 0.9em;
    font-weight: 600;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

/* Animation Particles */
.animation-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 3s;
}

/* Features Showcase */
.features-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 46px 32px;
    background: var(--ivory-1);
    border-bottom: 2px solid var(--sand-2);
    overflow: visible;
    position: relative;
}

.feature-card {
    background: linear-gradient(135deg, #fff9ee 0%, #fffdf8 100%);
    padding: 30px;
    border-radius: 18px;
    border: 2px solid var(--sand-2);
    transition: all 0.22s ease;
    position: relative;
    overflow: visible;
    animation: fadeInUp 0.8s ease-out both;
    z-index: 1;
}

.landing-option {
    text-align: left;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

.landing-option:focus-visible {
    outline: 3px solid var(--gold-2);
    outline-offset: 2px;
}

.feature-card:hover {
    z-index: 5;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(182, 143, 78, 0.14), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(143, 106, 45, 0.22);
    border-color: var(--gold-2);
}

.landing-option.active {
    border-color: var(--gold-2);
    box-shadow: 0 8px 24px rgba(143, 106, 45, 0.25);
}

.feature-card-1 {
    animation-delay: 0.1s;
}

.feature-card-2 {
    animation-delay: 0.2s;
}

.feature-card-3 {
    animation-delay: 0.3s;
}

/* Removed feature-icon styles - no longer needed */

.feature-card h3 {
    color: var(--gold-3);
    margin-bottom: 8px;
    font-size: 1.25em;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-card .best-for {
    margin-bottom: 8px;
    font-size: 0.9em;
    font-weight: 600;
    color: #5f4d31;
}

.option-cta {
    display: inline-flex;
    margin-top: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(182, 143, 78, 0.14);
    color: #74592a;
    font-weight: 600;
    font-size: 0.9em;
}

/* Feature Image Container with Zoom Out Animation */
.feature-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    margin-top: 20px;
    border-radius: 12px;
    overflow: visible;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(143, 106, 45, 0.3);
    z-index: 10;
}

.feature-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    border-radius: 12px;
}

.feature-image-container:hover .feature-image {
    transform: scale(1.03);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
}

/* Hide overlay - no text needed */
.feature-overlay {
    display: none;
}


.jewelry-transform {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.transform-before,
.transform-after {
    flex: 1;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    position: relative;
    overflow: hidden;
}

.transform-before {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    animation: transformBefore 3s ease-in-out infinite;
}

.transform-after {
    background: linear-gradient(135deg, #c8a96b 0%, #b68f4e 100%);
    animation: transformAfter 3s ease-in-out infinite;
}

.transform-arrow {
    font-size: 1.5em;
    color: var(--gold-2);
    animation: arrowPulse 2s ease-in-out infinite;
}

.try-on-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8a96b 0%, #b68f4e 100%);
    position: relative;
    animation: previewPulse 2s ease-in-out infinite;
}

.preview-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: previewInner 2s ease-in-out infinite;
}

.reference-merge {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.merge-item {
    flex: 1;
    height: 50px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.merge-1 {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    animation: mergeItem1 3s ease-in-out infinite;
}

.merge-2 {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    animation: mergeItem2 3s ease-in-out infinite;
}

.merge-result {
    background: linear-gradient(135deg, #c8a96b 0%, #b68f4e 100%);
    animation: mergeResult 3s ease-in-out infinite;
}

.merge-plus,
.merge-equals {
    font-size: 1.2em;
    color: var(--gold-2);
    font-weight: bold;
    animation: symbolPulse 2s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes jewelryFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-25px) rotate(3deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

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

@keyframes particleFloat {
    0% {
        transform: translateY(100%) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100%) translateX(50px);
        opacity: 0;
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes transformBefore {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.9);
        opacity: 0.8;
    }
}

@keyframes transformAfter {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes arrowPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes previewPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(182, 143, 78, 0.65);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 20px rgba(182, 143, 78, 0);
    }
}

@keyframes previewInner {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes mergeItem1 {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

@keyframes mergeItem2 {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-10px);
    }
}

@keyframes mergeResult {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes symbolPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

header {
    background: linear-gradient(135deg, #c8a96b 0%, #b68f4e 100%);
    color: white;
    padding: 30px;
    text-align: center;
    display: none; /* Hide duplicate header */
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Tabs */
.tabs {
    display: flex;
    background: #f9f0df;
    border-bottom: 2px solid var(--sand-2);
    padding: 0 30px;
}

.flow-nav {
    padding: 18px 30px 0;
}

.container.flow-active .features-showcase,
.container.flow-active .tabs,
.container.flow-active .example-section {
    display: none;
}

.container.logged-out .trust-strip,
.container.logged-out .occasion-section,
.container.logged-out .features-showcase,
.container.logged-out .tabs,
.container.logged-out .flow-nav,
.container.logged-out .tab-content,
.container.logged-out .example-section,
.container.logged-out .mobile-sticky-cta {
    display: none !important;
}

.tab-btn {
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 600;
    color: #7c6a4d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    top: 2px;
}

.tab-btn:hover {
    color: var(--gold-3);
    background: rgba(182, 143, 78, 0.08);
}

.tab-btn.active {
    color: var(--gold-3);
    border-bottom-color: var(--gold-2);
    background: var(--ivory-1);
}

.tab-content {
    display: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.subtitle {
    color: #6c757d;
    font-size: 0.95em;
    margin-bottom: 20px;
    font-style: italic;
}

.mode-toggle {
    display: inline-flex;
    border: 1px solid var(--sand-2);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
}

.mode-btn {
    border: none;
    background: #fff4de;
    color: #73582a;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
}

.mode-btn.active {
    background: var(--gold-2);
    color: #fff;
}

.ai-expectation-box {
    background: #fff8ea;
    border: 1px solid #ecdab5;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.ai-expectation-box p {
    margin: 0;
    color: #584112;
    font-size: 0.9rem;
}

.step-title {
    margin: 8px 0 12px;
    color: #495057;
    font-size: 1rem;
}

.prompt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 16px;
}

.prompt-chip {
    border: 1px solid #dfcd9f;
    background: #fff8ea;
    color: #6b521d;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prompt-chip:hover {
    background: #f8ecd6;
    border-color: #c8a96b;
}

.form-section, .result-section {
    background: var(--ivory-2);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid var(--sand-2);
}

.form-section h2, .result-section h2 {
    color: var(--gold-3);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-2);
    box-shadow: 0 0 0 3px rgba(182, 143, 78, 0.16);
}

.form-group input[type="file"] {
    padding: 8px;
    cursor: pointer;
}

.image-preview {
    margin-top: 10px;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: none;
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.image-preview.show {
    display: block;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #c8a96b 0%, #b68f4e 100%);
    color: #fffdf6;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(151, 114, 53, 0.35);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #8e7a5a;
    color: white;
}

.btn-secondary:hover {
    background: #786548;
    transform: translateY(-2px);
}

.btn-download {
    background: #28a745;
    color: white;
    margin-top: 15px;
    width: 100%;
}

.btn-download:hover {
    background: #218838;
    transform: translateY(-2px);
}

.result {
    text-align: center;
}

.compare-section {
    margin-bottom: 16px;
    text-align: left;
}

.compare-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.compare-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dfe3f0;
}

.compare-frame img {
    width: 100%;
    display: block;
    margin: 0;
}

#compareAfter {
    position: absolute;
    inset: 0;
    clip-path: inset(0 50% 0 0);
}

#compareSlider {
    width: 100%;
}

.result img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.share-container {
    margin-top: 12px;
}

.share-title {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.share-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.share-link {
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid #dfcd9f;
    background: #fff8ea;
    color: #6b521d;
    font-size: 0.82rem;
    text-decoration: none;
}

.loading {
    text-align: center;
    padding: 40px;
}

.loading-hint {
    display: block;
    margin-top: 8px;
    color: #6c757d;
}

.loading-hint.fact-rotator {
    color: #8b672f;
    font-weight: 600;
    font-style: italic;
}

.advanced-settings {
    margin: 14px 0 18px;
    border: 1px solid var(--sand-2);
    border-radius: 10px;
    background: #fffbf4;
    overflow: hidden;
}

.advanced-settings summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    font-weight: 600;
    color: #495057;
}

.advanced-settings summary::-webkit-details-marker {
    display: none;
}

.advanced-settings summary::after {
    content: '+';
    float: right;
    color: var(--gold-2);
}

.advanced-settings[open] summary::after {
    content: '-';
}

.advanced-settings-body {
    border-top: 1px solid var(--sand-2);
    padding: 14px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--gold-2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-bottom: 15px;
}

.placeholder {
    text-align: center;
    padding: 40px;
    color: #7a6b52;
    font-style: italic;
}

.hidden {
    display: none;
}

.example-section {
    background: #fff3cd;
    border-top: 3px solid #ffc107;
    padding: 25px 30px;
    margin: 0;
}

.example-section h3 {
    color: #856404;
    margin-bottom: 15px;
}

.example-section ul {
    margin-left: 20px;
    margin-top: 10px;
    line-height: 1.8;
}

.example-section li {
    margin-bottom: 8px;
    color: #856404;
}

.example-section .note {
    margin-top: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

/* Annotation Interface Styles */
.annotation-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.btn-annotation {
    padding: 8px 16px;
    border: 2px solid var(--gold-2);
    border-radius: 6px;
    background: white;
    color: var(--gold-3);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-annotation:hover {
    background: var(--gold-2);
    color: white;
}

.btn-annotation.active {
    background: var(--gold-2);
    color: white;
}

.btn-annotation.btn-clear {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-annotation.btn-clear:hover {
    background: #dc3545;
    color: white;
}

.canvas-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: auto;
    background: #f8f9fa;
    margin-top: 10px;
}

.canvas-container canvas {
    display: block;
    max-width: 100%;
    height: auto;
    cursor: crosshair;
}

.image-container {
    display: none;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: var(--gold-2);
    background: rgba(182, 143, 78, 0.08);
}

.radio-label input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.radio-label input[type="radio"]:checked + span {
    color: var(--gold-3);
    font-weight: 600;
}

.tryme-source-picker .radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.tryme-source-card {
    background: linear-gradient(145deg, #fffdf8, #f9f0df);
    border: 1px solid #e7d8b8;
    border-radius: 12px;
    padding: 14px 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tryme-source-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 103, 47, 0.14);
}

.tryme-source-card.active {
    border-color: #bf914e;
    box-shadow: 0 0 0 2px rgba(191, 145, 78, 0.24);
}

.tryme-source-card input[type="radio"] {
    accent-color: #b68645;
}

.tryme-upload-block,
.tryme-camera-block {
    border: 1px solid #ead9b4;
    border-radius: 12px;
    padding: 12px;
    background: #fffcf5;
}

.tryme-preview-card {
    min-height: 150px;
    border: 1px dashed #d4b981;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff9ee 0%, #fffefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.tryme-preview-card img {
    max-height: 280px;
    object-fit: contain;
    border-radius: 8px;
}

.tryme-preview-empty {
    margin: 0;
    text-align: center;
    color: #8a7142;
    font-size: 0.9rem;
}

.camera-permission-hint {
    margin-top: 10px;
    color: #7b6337;
    font-size: 0.84rem;
    line-height: 1.45;
}

.camera-permission-hint.error {
    color: #b0302f;
}

.camera-permission-hint.success {
    color: #2f7d32;
}

.tryme-ready-strip {
    border: 1px solid #ead9b4;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdf8 0%, #fff8ea 100%);
    padding: 12px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 10px;
}

.tryme-ready-item {
    background: #fffefc;
    border: 1px solid #f0e1c1;
    border-radius: 10px;
    padding: 8px;
}

.tryme-ready-label {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #7b6032;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tryme-ready-thumb {
    height: 92px;
    border-radius: 8px;
    border: 1px dashed #d8be8d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a7142;
    font-size: 0.84rem;
    background: #fffaf1;
    overflow: hidden;
}

.tryme-ready-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tryme-ready-status {
    grid-column: 1 / -1;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff4dc;
    color: #7b5d27;
    font-size: 0.88rem;
    font-weight: 600;
}

.instruction-box {
    background: #fff8ea;
    border: 2px solid var(--gold-2);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.instruction-box p {
    margin: 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid #e9ecef;
}

.modal-header h2 {
    color: var(--gold-3);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.modal-body {
    padding: 30px;
}

/* Variation Controls */
.variation-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.btn-variation {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold-2);
    border-radius: 8px;
    background: white;
    color: var(--gold-3);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-variation:hover {
    background: var(--gold-2);
    color: white;
    transform: translateY(-2px);
}

.btn-variation:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.variation-controls input[type="number"] {
    width: 80px;
    text-align: center;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--gold-3);
    background: #f8f9fa;
}

/* Images Grid */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.quote-cards {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.quote-card {
    border: 1px solid #e7d8b8;
    border-radius: 10px;
    background: #fff8ea;
    padding: 10px;
    text-align: left;
}

.quote-label {
    margin: 0 0 6px;
    font-size: 0.8rem;
    color: #7a6330;
}

.quote-value {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #4e3b14;
}

.mobile-sticky-cta {
    display: none;
}

.image-item {
    position: relative;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.image-item .image-label {
    padding: 10px;
    background: #f8f9fa;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border-top: 1px solid #dee2e6;
}

.image-item .download-btn-item {
    width: 100%;
    margin-top: 0;
    border-radius: 0;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.image-item .download-btn-item:hover {
    background: #218838;
}

/* Speech-to-Text Styles */
.input-with-mic {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-mic input,
.input-with-mic textarea {
    flex: 1;
    padding-right: 50px;
}

.mic-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gold-2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mic-btn:hover {
    background: #a57d41;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.mic-btn.recording {
    background: #dc3545;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.15);
    }
}

.input-with-mic textarea + .mic-btn {
    top: 20px;
    transform: none;
}

.input-with-mic textarea + .mic-btn:hover {
    transform: scale(1.1);
}

.input-with-mic textarea + .mic-btn.recording {
    animation: pulse-textarea 1.5s ease-in-out infinite;
}

@keyframes pulse-textarea {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.language-selector {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector:focus {
    outline: none;
    border-color: var(--gold-2);
    box-shadow: 0 0 0 3px rgba(182, 143, 78, 0.16);
}

.recording-indicator {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

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

/* Camera Interface Styles */
#cameraContainer {
    position: relative;
}

#cameraVideo {
    background: #000;
    border: 2px solid #dee2e6;
}

#cameraCanvas {
    display: none;
}

.camera-preview-container {
    position: relative;
    margin-top: 10px;
}

.camera-preview-container img {
    max-width: 100%;
    border-radius: 8px;
    border: 2px solid var(--gold-2);
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .title-line {
        font-size: 2.5em;
    }
    
    .title-subtitle {
        font-size: 1.2em;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-animation {
        height: 250px;
    }
    
    .jewelry-showcase {
        gap: 20px;
    }
    
    .jewelry-item {
        width: 80px;
        height: 80px;
    }
    
    .jewelry-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .features-showcase {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .tab-content.active {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .annotation-controls {
        flex-direction: column;
    }
    
    .btn-annotation {
        width: 100%;
    }
    
    .images-grid {
        grid-template-columns: 1fr;
    }
    
    .mic-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .trust-strip {
        justify-content: flex-start;
        padding: 10px 14px;
    }

    .occasion-section {
        padding: 12px 14px 8px;
    }

    .mobile-sticky-cta {
        display: block;
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        border-top: 1px solid #e4e7f5;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        z-index: 20;
    }

    .mobile-sticky-cta .btn {
        width: 100%;
        margin: 0;
    }

    .admin-dashboard {
        margin: 14px 10px;
        padding: 12px;
    }

    .admin-hero-row {
        grid-template-columns: 1fr;
    }

    .admin-hero-card {
        padding: 10px;
    }

    .admin-dashboard-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .admin-dashboard-actions .btn {
        width: 100%;
    }

    .admin-metrics-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .tryme-source-picker .radio-group {
        grid-template-columns: 1fr;
    }

    .tryme-upload-block,
    .tryme-camera-block {
        padding: 10px;
    }

    .tryme-preview-card {
        min-height: 130px;
    }

    .tryme-preview-card img {
        max-height: 220px;
    }

    .tryme-ready-strip {
        grid-template-columns: 1fr;
    }

    .tryme-ready-thumb {
        height: 82px;
    }

    #cameraContainer.tryme-camera-container {
        margin-top: 8px !important;
    }

    #cameraControls {
        gap: 8px !important;
    }

    #cameraControls .btn {
        flex: 1 1 calc(50% - 8px);
        min-width: 130px;
    }

    #cameraVideo {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    body {
        padding: 16px 10px;
    }

    .container {
        border-radius: 16px;
    }

    .hero-section {
        padding: 30px 14px;
    }

    .form-section,
    .result-section {
        padding: 14px;
    }

    .tab-content.active {
        padding: 14px;
    }

    .admin-dashboard {
        margin: 12px 6px;
        padding: 10px;
    }

    .admin-metrics-grid {
        grid-template-columns: 1fr;
    }

    .admin-hero-value {
        font-size: 1.15rem;
    }

    .admin-progress-head {
        font-size: 0.76rem;
    }

    .tryme-source-card {
        padding: 12px 10px;
    }

    .tryme-ready-strip {
        padding: 10px;
        gap: 8px;
    }

    .tryme-ready-thumb {
        height: 74px;
    }

    .tryme-ready-status {
        font-size: 0.82rem;
    }

    #cameraControls .btn {
        flex: 1 1 100%;
        min-width: 0;
    }

    .mobile-sticky-cta {
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    }
}


