/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Pacifico:wght@400&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    margin: 0;
    background-color: #030303;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

#root {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero container */
.hero-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.hero-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, transparent 50%, rgba(244, 63, 94, 0.05) 100%);
    filter: blur(120px);
    z-index: 1;
}

.hero-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #030303 0%, transparent 50%, rgba(3, 3, 3, 0.8) 100%);
    pointer-events: none;
    z-index: 10;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 15;
    text-align: center;
    max-width: 1000px;
    width: 100%;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    letter-spacing: 0.08em;
    animation: fadeInUp 1s ease-out 0.7s both;
    backdrop-filter: blur(8px);
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* Hero titles */
.hero-title1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0.8));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-title2 {
    font-family: 'Pacifico', cursive;
    font-size: clamp(2.917rem, 10vw, 4.917rem);
    font-weight: 400;
    margin-bottom: 32px;
    background: linear-gradient(to right, #a5b4fc, rgba(255, 255, 255, 0.9), #fca5a5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.6;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease-out 1.1s both;
}

/* Hero subtitle */
.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.02em;
    animation: fadeInUp 1s ease-out 1.3s both;
}

.hero-subtitle span {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(244, 63, 94, 0.9), rgba(99, 102, 241, 0.9));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero button */
.hero-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.5s ease;
    backdrop-filter: blur(8px);
    letter-spacing: 0.02em;
    animation: fadeInUp 1s ease-out 1.5s both;
    overflow: hidden;
}

.hero-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.1), rgba(244, 63, 94, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 50px;
}

.hero-button:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-button:hover::before {
    opacity: 1;
}

.hero-button span {
    position: relative;
    z-index: 2;
}

.hero-button-icon {
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(to right, #6366f1, #f43f5e);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.hero-button:hover .hero-button-icon {
    transform: scale(1.1);
}

/* ===== HOW IT WORKS PAGE STYLES ===== */

.how-it-works-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-color: #030303;
    overflow: hidden;
    color: #ffffff;
}

.how-it-works-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, transparent 50%, rgba(244, 63, 94, 0.04) 100%);
    filter: blur(120px);
    z-index: 1;
}

.how-it-works-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #030303 0%, transparent 50%, rgba(3, 3, 3, 0.6) 100%);
    pointer-events: none;
    z-index: 10;
}

/* Fixed CTA Button */
.how-it-works-cta {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    animation: fadeInUp 1s ease-out 1s both;
}

.how-it-works-cta-button {
    position: relative;
    width: 100%;
    max-width: 24rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.5s ease;
    overflow: hidden;
}

.how-it-works-cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.1), rgba(244, 63, 94, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 50px;
}

.how-it-works-cta-button:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

.how-it-works-cta-button:hover::before {
    opacity: 1;
}

.how-it-works-cta-icon {
    position: relative;
    z-index: 10;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(to right, #6366f1, #f43f5e);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.how-it-works-cta-button:hover .how-it-works-cta-icon {
    transform: scale(1.1);
}

/* Content wrapper */
.how-it-works-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 16px 100px;
}

@media (min-width: 640px) {
    .how-it-works-content {
        padding: 24px 24px 120px;
    }
}

@media (min-width: 768px) {
    .how-it-works-content {
        padding: 32px 24px 80px;
    }
}

/* Header */
.how-it-works-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@media (min-width: 640px) {
    .how-it-works-header {
        margin-bottom: 24px;
    }
}

.how-it-works-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.08em;
    backdrop-filter: blur(8px);
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.how-it-works-logo:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Hero Section */
.how-it-works-hero {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

@media (min-width: 640px) {
    .how-it-works-hero {
        margin-bottom: 24px;
    }
}

@media (min-width: 768px) {
    .how-it-works-hero {
        margin-bottom: 16px;
    }
}

.how-it-works-title {
    font-family: 'Pacifico', cursive;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(to right, #a5b4fc, rgba(255, 255, 255, 0.95), #fca5a5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.8;
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .how-it-works-title {
        font-size: clamp(2.5rem, 6vw, 4.5rem);
        margin-bottom: 24px;
    }
}

@media (min-width: 1024px) {
    .how-it-works-title {
        font-size: clamp(3rem, 6vw, 6rem);
    }
}

.how-it-works-subtitle {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0.8));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .how-it-works-subtitle {
        font-size: clamp(1.5rem, 4vw, 3rem);
        margin-bottom: 32px;
    }
}

.how-it-works-description {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 35rem;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.02em;
    padding: 0 8px;
}

@media (min-width: 640px) {
    .how-it-works-description {
        font-size: clamp(1.125rem, 3vw, 1.25rem);
        padding: 0;
    }
}

/* Steps Section */
.how-it-works-steps {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .how-it-works-steps {
        flex-direction: row;
        gap: 24px;
        align-items: flex-start;
    }
}

@media (min-width: 1024px) {
    .how-it-works-steps {
        gap: 32px;
    }
}

.how-it-works-step {
    position: relative;
    animation: fadeInUp 1s ease-out both;
    flex: 1;
    min-width: 0;
}

@media (min-width: 768px) {
    .how-it-works-step {
        max-width: 360px;
    }
}

.how-it-works-step:nth-child(1) {
    animation-delay: 0.6s;
}

.how-it-works-step:nth-child(2) {
    animation-delay: 0.7s;
}

.how-it-works-step:nth-child(3) {
    animation-delay: 0.8s;
}

.how-it-works-step-card {
    background-color: #0A0A0F;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
}

.how-it-works-step-content {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

@media (min-width: 640px) and (max-width: 767px) {
    .how-it-works-step-content {
        aspect-ratio: 21/9;
    }
}

@media (min-width: 768px) {
    .how-it-works-step-content {
        aspect-ratio: 4/3;
    }
}

.how-it-works-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 20;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.how-it-works-step:nth-child(1) .how-it-works-badge {
    background: linear-gradient(to right, #6366f1, #8b5cf6);
}

.how-it-works-step:nth-child(2) .how-it-works-badge {
    background: linear-gradient(to right, #f43f5e, #ec4899);
}

.how-it-works-step:nth-child(3) .how-it-works-badge {
    background: linear-gradient(to right, #8b5cf6, #6366f1);
}

.how-it-works-step-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-it-works-step-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f172a 100%);
    z-index: 0;
}

.how-it-works-step-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.how-it-works-step-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    position: relative;
    z-index: 3;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

/* Loaded image with fade-in animation */
.loaded-image {
    animation: fadeInImage 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInImage {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading skeleton */
.image-loading-skeleton {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.image-loading-skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: shimmer 1.8s infinite;
}

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

.skeleton-content {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.3;
    z-index: 2;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Error placeholder */
.image-error-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a1a1a 0%, #1a1a1a 50%, #1a1616 100%);
    font-size: 2rem;
    opacity: 0.5;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.how-it-works-step-card:hover .how-it-works-step-image img {
    transform: scale(1.02);
}

.how-it-works-step-title {
    padding: 16px;
    text-align: center;
}

.how-it-works-step-title h3 {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.02em;
    margin: 0;
}

@media (min-width: 640px) {
    .how-it-works-step-title h3 {
        font-size: clamp(1.125rem, 3vw, 1.5rem);
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .how-it-works-container {
        padding-bottom: 100px;
    }
    
    .how-it-works-cta {
        padding: 0 12px;
    }
    
    .how-it-works-cta-button {
        padding: 14px 24px;
        font-size: 0.9rem;
        border-color: rgba(255, 255, 255, 0.25);
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .how-it-works-badge {
        top: 12px;
        left: 12px;
    }
}

/* Ensure steps fit nicely in horizontal layout */
@media (min-width: 768px) and (max-width: 1023px) {
    .how-it-works-step-title h3 {
        font-size: 1rem;
    }
    
    .how-it-works-badge {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
        top: 12px;
        left: 12px;
    }
}

/* Large desktop optimizations */
@media (min-width: 1024px) {
    .how-it-works-steps {
        max-width: 1000px;
    }
    
    .how-it-works-step {
        max-width: 300px;
    }
}

/* ===== CAPTURE PHOTO PAGE STYLES ===== */

.capture-photo-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-color: #030303;
    overflow: hidden;
    color: #ffffff;
}

/* Background gradient overlay */
.capture-photo-gradient-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, transparent 50%, rgba(244, 63, 94, 0.03) 100%);
    filter: blur(3rem);
    z-index: 1;
}

/* Floating shapes */
.capture-floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05), transparent);
    backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px 0 rgba(255, 255, 255, 0.05);
    animation: float 8s ease-in-out infinite;
}

.floating-shape-1 {
    left: 5%;
    top: 10%;
    width: 150px;
    height: 40px;
    transform: rotate(15deg);
    background: linear-gradient(to right, rgba(99, 102, 241, 0.08), transparent);
    animation-delay: 0.2s;
}

.floating-shape-2 {
    right: 8%;
    top: 20%;
    width: 120px;
    height: 35px;
    transform: rotate(-20deg);
    background: linear-gradient(to right, rgba(244, 63, 94, 0.08), transparent);
    animation-delay: 0.4s;
}

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

/* Main container */
.capture-photo-main {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.capture-photo-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.capture-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.capture-back-button {
    padding: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 8px;
}

.capture-back-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.back-arrow {
    font-size: 18px;
}

.capture-photo-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.capture-photo-logo:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.logo-icon {
    font-size: 16px;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* Main content */
.capture-photo-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Hero section */
.capture-hero-section {
    text-align: center;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.capture-photo-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 16px;
    line-height: 1.8;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #a5b4fc, rgba(255, 255, 255, 0.9), #fca5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Pacifico', cursive;
}

@media (min-width: 640px) {
    .capture-photo-title {
        font-size: 4rem;
    }
}

@media (min-width: 768px) {
    .capture-photo-title {
        font-size: 5rem;
    }
}

.capture-photo-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Photography tips */
.capture-tips-section {
    margin-bottom: 8px;
}

.capture-tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .capture-tips-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.capture-tip-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out both;
}

.capture-tip-card:nth-child(1) { animation-delay: 0.6s; }
.capture-tip-card:nth-child(2) { animation-delay: 0.7s; }
.capture-tip-card:nth-child(3) { animation-delay: 0.8s; }

.capture-tip-card:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tip-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.lightbulb-icon {
    color: #fbbf24;
}

.user-icon {
    color: #a5b4fc;
}

.camera-icon {
    color: #fca5a5;
}

.tip-title {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.tip-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* Action buttons */
.capture-actions-section {
    margin-top: auto;
    padding-top: 1.25rem; /* 20px equivalent, but more responsive */
}

.capture-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .capture-action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

.capture-action-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.5s ease;
    backdrop-filter: blur(8px);
    letter-spacing: 0.02em;
    animation: fadeInUp 1s ease-out both;
    overflow: hidden;
    justify-content: center;
}

.camera-button { animation-delay: 0.9s; }
.upload-button { animation-delay: 1.0s; }

.capture-action-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.1), rgba(244, 63, 94, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 50px;
}

.capture-action-button:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.capture-action-button:hover::before {
    opacity: 1;
}

.action-button-icon {
    position: relative;
    z-index: 2;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.capture-action-button:hover .action-button-icon {
    transform: scale(1.1);
}

.action-button-text {
    position: relative;
    z-index: 2;
}

.action-button-arrow {
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(to right, #6366f1, #f43f5e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.capture-action-button:hover .action-button-arrow {
    transform: scale(1.1);
}

/* ===== CAMERA INTERFACE STYLES ===== */

/* Loading state */
.camera-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    animation: fadeInUp 1s ease-out both;
}

.loading-spinner {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.loading-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Error state */
.camera-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    animation: fadeInUp 1s ease-out both;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
}

.error-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    max-width: 400px;
}

.retry-button {
    padding: 12px 24px;
    border-radius: 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.retry-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Camera view container */
.camera-view-container {
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    animation: fadeInUp 1s ease-out both;
}

.camera-viewport {
    position: relative;
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.camera-video-mirrored {
    transform: scaleX(-1);
}

/* Camera controls overlay */
.camera-controls-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        transparent 20%,
        transparent 80%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.camera-switch-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-switch-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.camera-capture-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
}

.camera-capture-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 4px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.camera-capture-button:hover {
    background-color: white;
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.camera-capture-button:active {
    transform: scale(0.95);
}

.capture-button-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #ddd;
}

.capture-instruction {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Photo preview container */
.photo-preview-container {
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    animation: fadeInUp 1s ease-out both;
}

.photo-preview-viewport {
    position: relative;
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.captured-photo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

/* Photo actions */
.photo-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 24px 0;
}

.photo-action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.photo-action-button:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
}

.retake-button {
    border-color: rgba(244, 63, 94, 0.3);
}

.retake-button:hover {
    background-color: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.5);
}

.continue-button {
    border-color: rgba(34, 197, 94, 0.3);
}

.continue-button:hover {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.5);
}

.action-icon {
    font-size: 16px;
}

/* Hidden canvas */
.hidden-canvas {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .camera-viewport,
    .photo-preview-viewport {
        border-radius: 16px;
        margin: 0 8px;
    }
    
    .camera-controls-overlay {
        padding: 16px;
    }
    
    .camera-capture-button {
        width: 70px;
        height: 70px;
    }
    
    .capture-button-inner {
        width: 50px;
        height: 50px;
    }
    
    .camera-switch-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
        top: 16px;
        right: 16px;
    }
    
    .photo-actions {
        flex-direction: column;
        padding: 20px 16px;
    }
    
    .photo-action-button {
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .camera-view-container,
    .photo-preview-container {
        padding: 0 24px;
    }
    
    .camera-viewport,
    .photo-preview-viewport {
        max-height: 70vh;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Bottom gradient overlay */
.capture-photo-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #030303 0%, transparent 50%, rgba(3, 3, 3, 0.5) 100%);
    pointer-events: none;
    z-index: 5;
}

/* Utility classes */
.flex-1 { flex: 1; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.text-center { text-align: center; }
.mb-6 { margin-bottom: 24px; }
.mt-auto { margin-top: auto; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.bg-black { background-color: #000000; } 