/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary colors based on logo #f89b8f */
    --primary-color: #f89b8f;
    --primary-dark: #e67a6c;
    --primary-light: #fabcb2;
    --primary-lighter: #fdeae8;
    
    /* Secondary colors based on #8fecf8 */
    --secondary-color: #8fecf8;
    --secondary-dark: #6ccfdd;
    --secondary-light: #b2f2fa;
    
    /* Accent colors */
    --accent-color: #8fecf8;
    --accent-dark: #6ccfdd;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --danger-color: #ff4d4f;
    
    /* Text colors */
    --text-dark: #2c3e50;
    --text-medium: #5a6c7d;
    --text-light: #8492a6;
    --text-muted: #a0aec0;
    
    /* Neutral colors */
    --white: #ffffff;
    --gray-25: #fdfdfe;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Layout */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Shadows */
    --shadow: 0 1px 3px 0 rgba(236, 158, 153, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(236, 158, 153, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(236, 158, 153, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(236, 158, 153, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    /* Layout constants */
    --navbar-height: 88px;
    --max-width: 1200px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--gray-25);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hidden {
    display: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: -0.02em;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    white-space: nowrap;
    min-height: 44px;
    box-sizing: border-box;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(248, 155, 143, 0.3);
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(143, 236, 248, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline:hover::before {
    width: 100%;
}

.btn-outline:hover {
    color: var(--white);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: var(--transition);
    height: var(--navbar-height);
    box-shadow: 0 1px 3px rgba(236, 158, 153, 0.1);
}

/* Unified Navbar - Dashboard Mode */
.navbar.navbar-dashboard {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(248, 155, 143, 0.1);
}

.navbar.navbar-dashboard .nav-menu .nav-link {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: var(--transition);
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.navbar.navbar-dashboard .nav-menu .nav-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(248, 155, 143, 0.3);
}

.navbar.navbar-dashboard .nav-menu .nav-link i {
    margin-right: 0.5rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--navbar-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-logo img {
    height: 88px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.nav-logo-text {
    display: none; /* Hide text since logo already contains text */
}

@media (min-width: 768px) {
    .nav-logo img {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        height: 56px;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-auth {
    display: flex;
    gap: 1rem;
    margin-left: 1rem;
}

.nav-auth .user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: calc(var(--navbar-height) + 60px) 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    color: var(--white);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(1px);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    filter: brightness(1.05) contrast(1.1);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.hero-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    opacity: 0.1;
    border-radius: var(--border-radius-xl);
    z-index: -1;
}

.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.decoration-1 {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.decoration-2 {
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    top: 60%;
    left: 15%;
    animation-delay: 2s;
}

.decoration-3 {
    width: 25px;
    height: 25px;
    background: linear-gradient(225deg, var(--primary-light), var(--secondary-light));
    bottom: 30%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(5deg);
    }
    66% {
        transform: translateY(-5px) rotate(-3deg);
    }
}

.hero-mockup {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.mockup-screen {
    background: var(--white);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg) rotateX(10deg);
}

.demo-image {
    width: 100%;
    border-radius: 12px;
    background: var(--gray-100);
    aspect-ratio: 16/10;
    object-fit: cover;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* Features Section */
.features {
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    z-index: -1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-lighter) 100%);
}

.pricing-card.popular::before {
    content: "Mais Popular";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-credits {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pricing-price::before {
    content: "🪙";
    font-size: 2rem;
    animation: coinSparkle 2s infinite;
}

@keyframes coinSparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-10deg); }
    50% { transform: scale(1.2) rotate(0deg); }
    75% { transform: scale(1.1) rotate(10deg); }
}

.pricing-description {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* How it Works Section */
.how-it-works {
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(248, 155, 143, 0.05) 50%, transparent 51%);
    z-index: 0;
}

.how-it-works .container {
    position: relative;
    z-index: 1;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-xl);
    text-align: center;
    box-shadow: 0 4px 20px rgba(248, 155, 143, 0.1);
    border: 2px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.step:hover::before {
    transform: scaleX(1);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(248, 155, 143, 0.15);
    border-color: var(--primary-light);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(248, 155, 143, 0.3);
}

.step-content h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-lighter);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.25rem;
    transition: var(--transition);
}

.step:hover .step-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.step-connector {
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    position: relative;
}

.step-connector::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--secondary-color);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* Responsive Design for How it Works */
@media (max-width: 1024px) {
    .steps-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 500px;
    }
    
    .step-connector {
        width: 3px;
        height: 60px;
        margin: 0 auto;
    }
    
    .step-connector::before {
        right: 50%;
        top: -8px;
        transform: translateX(50%);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 8px solid var(--secondary-color);
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .step {
        padding: 2rem 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-content h3 {
        font-size: 1.25rem;
    }
    
    .step-content p {
        font-size: 1rem;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .steps-container {
        gap: 2rem;
    }
    
    .step {
        padding: 1.5rem 1rem;
    }
    
    .step-connector {
        height: 40px;
    }
}

/* Contact Section */
.contact {
    background: var(--gray-50);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--gray-25);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(236, 158, 153, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 50%, #2b6cb0 100%);
    color: var(--white);
    padding: 4rem 0 1.5rem;
    border-top: 1px solid var(--primary-lighter);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.footer-logo img {
    height: 68px;
    filter: brightness(1.1) drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.footer-section h4 {
    margin-bottom: 1.25rem;
    color: var(--primary-light);
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--gray-700);
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    width: 95%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid var(--gray-200);
}

@media (min-width: 640px) {
    .modal-content {
        width: 90%;
        max-width: 520px;
    }
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(248, 155, 143, 0.08), rgba(143, 236, 248, 0.08));
    border-bottom: 1px solid rgba(248, 155, 143, 0.15);
    border-radius: 12px 12px 0 0;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header h3 i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.modal-close {
    background: rgba(248, 155, 143, 0.1);
    border: 2px solid rgba(248, 155, 143, 0.2);
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 600;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(248, 155, 143, 0.3);
}

#auth-content {
    padding: 1.5rem;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-buttons .btn {
    flex: 1;
}

.modal-body {
    padding: 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-light);
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard {
    min-height: 100vh;
    background: var(--gray-50);
    padding-top: 0; /* Remove padding since dashboard header is now sticky */
}

.dashboard-header {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 1rem 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.dashboard-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    min-height: 60px;
    flex-shrink: 0;
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
    margin-right: 1rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.card-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.dashboard-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-body {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 1rem;
}

.card-actions .btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--navbar-height);
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        border-top: 1px solid var(--gray-200);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-auth {
        flex-direction: column;
        margin-left: 0;
        margin-top: 1rem;
        gap: 0.75rem;
    }

    .nav-auth .btn {
        width: 200px;
        justify-content: center;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dashboard-card {
        padding: 1rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .card-value {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
        min-height: 40px;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .nav-container {
        padding: 0 0.75rem;
    }

    .dashboard-content {
        padding: 0 0.75rem;
    }

    .dashboard-card {
        padding: 0.875rem;
    }

    .modal-content {
        width: 98%;
        max-width: none;
        margin: 0.5rem;
        border-radius: var(--border-radius);
    }

    .nav-logo img {
        height: 28px;
    }
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-200);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Generate Interface Styles */
.generate-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
    overflow: hidden;
}

.generate-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.close-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.close-btn:active {
    transform: scale(0.95);
}

.generate-header h2 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.generate-header p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.credits-info {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Credits button completely removed from system */

/* Packages page styles */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.package-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.package-header {
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-lighter), var(--secondary-light));
}

.package-header h3 {
    margin: 0 0 0.5rem;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 700;
}

.package-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.package-body {
    padding: 1.5rem;
    text-align: center;
}

.package-credits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
}

.package-credits i {
    font-size: 1.25rem;
}

.package-value {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-weight: 500;
}

.package-description {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.package-footer {
    padding: 0 1.5rem 1.5rem;
}

.package-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .package-card {
        margin: 0 0.5rem;
    }
}

/* All credits button styles completely removed */

/* Removed gradient animations for static look */

.generate-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
}

.form-section h3 i {
    color: var(--primary-color);
}

/* Upload Area */
.upload-area {
    position: relative;
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-50);
}

.upload-area:hover, .upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.upload-area input[type="file"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.upload-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.upload-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.upload-content span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.image-preview {
    position: relative;
    display: inline-block;
}

.image-preview img {
    max-width: 300px;
    max-height: 200px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.btn-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: var(--transition);
}

.btn-remove:hover {
    background: #be185d;
    transform: scale(1.1);
}

/* Characteristics Grid */
.characteristics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group select,
.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Advanced Settings */
.advanced-settings {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.settings-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: end;
}

.form-group input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--gray-200);
    outline: none;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.form-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.range-value {
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 0.5rem;
}

.btn-small {
    padding: 0.5rem;
    background: var(--gray-200);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
    margin-left: 0.5rem;
}

.btn-small:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

/* Generation Progress */
.generation-progress {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--gray-50);
}

.progress-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.progress-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.progress-animation {
    margin-bottom: 2rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.progress-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    background: var(--white);
    min-width: 120px;
    transition: var(--transition);
}

.progress-steps .step i {
    font-size: 1.5rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.progress-steps .step span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.progress-steps .step.active {
    background: var(--accent-color);
    color: var(--white);
}

.progress-steps .step.active i,
.progress-steps .step.active span {
    color: var(--white);
}

.progress-steps .step.processing {
    background: var(--primary-color);
    color: var(--white);
    animation: pulse 2s infinite;
}

.progress-steps .step.processing i,
.progress-steps .step.processing span {
    color: var(--white);
}

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

/* Generation Result */
.generation-result {
    padding: 2rem;
    background: var(--gray-50);
}

.result-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.result-header h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.result-header p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.result-image {
    margin-bottom: 2rem;
}

.generated-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
}

.image-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.result-metadata {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: left;
}

.result-metadata h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.metadata-item {
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 0.9rem;
}

.metadata-item strong {
    color: var(--primary-color);
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* User Images */
.user-images-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.image-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.image-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.image-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.image-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    cursor: pointer;
}

.image-thumbnail:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.image-thumbnail:hover .image-overlay {
    opacity: 1;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.image-info {
    padding: 1rem;
}

.image-metadata {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ethnicity {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.date {
    color: var(--text-light);
    font-size: 0.8rem;
}

.image-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.image-status.completed {
    background: #d1fae5;
    color: #047857;
}

.image-status.processing {
    background: #fef3cd;
    color: #92400e;
}

.image-status.failed {
    background: #fee2e2;
    color: #dc2626;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.empty-state p {
    margin-bottom: 2rem;
}

/* Responsive Design for Generate Interface */
@media (max-width: 768px) {
    .generate-form {
        padding: 1rem;
    }
    
    .characteristics-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-steps .step {
        flex-direction: row;
        min-width: auto;
        width: 100%;
    }
    
    .image-actions {
        flex-direction: column;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .user-images-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .images-grid {
        grid-template-columns: 1fr;
    }
    
    .metadata-grid {
        grid-template-columns: 1fr;
    }
}

/* Image Details Modal */
.image-details-modal .modal-content {
    max-width: 600px;
}

/* Mobile App Optimizations */
@media (max-width: 768px) and (orientation: portrait) {
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .btn, .modal-close, .btn-icon {
        min-height: 44px;
        min-width: 44px;
    }

    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .dashboard {
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }

    .modal {
        padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
    }
}

.image-details-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.image-details-header i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.image-details-preview {
    text-align: center;
    margin-bottom: 2rem;
}

.image-details-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.image-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.detail-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.detail-item span {
    color: var(--text-dark);
    font-size: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.modal-actions .btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-success {
    background: var(--accent-color);
    color: var(--white);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive adjustments for image modal */
@media (max-width: 768px) {
    .image-details-modal .modal-content {
        max-width: 95%;
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .image-details-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

/* Image Cropper Styles */
.crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.crop-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.crop-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
}

.crop-header h3 {
    margin: 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.crop-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.crop-instructions {
    background: linear-gradient(135deg, var(--primary-lighter), var(--accent-color));
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.crop-instructions h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.crop-instructions p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.4;
}

.crop-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 2px dashed var(--gray-300);
    position: relative;
}

.crop-area img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.example-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 120px;
    height: 80px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    background: var(--white);
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.example-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.example-overlay::before {
    content: "Exemplo";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.crop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    gap: 1rem;
}

.crop-controls .control-group {
    display: flex;
    gap: 0.5rem;
}

.crop-actions {
    display: flex;
    gap: 1rem;
}

.btn-crop {
    padding: 0.5rem;
    background: var(--gray-200);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-crop:hover {
    background: var(--primary-color);
    color: var(--white);
}

.crop-footer {
    padding: 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.crop-footer .btn {
    min-width: 120px;
}

/* Responsive Crop Modal */
@media (max-width: 768px) {
    .crop-modal {
        padding: 1rem;
    }
    
    .crop-container {
        width: 100%;
        max-width: none;
        max-height: 95vh;
    }
    
    .crop-header,
    .crop-body,
    .crop-footer {
        padding: 1rem;
    }
    
    .crop-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .crop-footer {
        flex-direction: column;
    }
    
    .crop-footer .btn {
        width: 100%;
    }
    
    .example-overlay {
        position: static;
        width: 100%;
        height: 60px;
        margin-bottom: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
/* Payment History Table Styles */
.payments-table {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr 1fr 1fr 80px;
    gap: 1rem;
    background: var(--gray-50);
    padding: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid var(--gray-200);
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr 1fr 1fr 80px;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.2s;
}

.table-row:hover {
    background: var(--gray-50);
}

.table-row:last-child {
    border-bottom: none;
}

.payment-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.payment-date i {
    color: var(--primary-color);
}

.payment-description strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.payment-description small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.payment-method .method-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--gray-100);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
}

.payment-price .price-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.payment-amount .credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.payment-status .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.approved {
    background: var(--success-color);
    color: white;
}

.status-badge.pending {
    background: var(--warning-color);
    color: white;
}

.status-badge.rejected {
    background: var(--danger-color);
    color: white;
}

.status-badge.cancelled {
    background: var(--gray-500);
    color: white;
}

.payment-actions {
    justify-content: center;
    align-items: center;
    height: 100%;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    line-height: 1;
    min-height: auto;
}

.text-muted {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Mobile responsiveness for payment table */
@media (max-width: 768px) {
    .table-header {
        display: none;
    }
    
    .table-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1.5rem 1rem;
    }
    
    .table-row > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .table-row > div::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-dark);
    }
    
    .payment-date::before {
        content: "Data:";
    }
    
    .payment-description::before {
        content: "Descrição:";
    }
    
    .payment-method::before {
        content: "Método:";
    }
    
    .payment-price::before {
        content: "Preço:";
    }
    
    .payment-amount::before {
        content: "Créditos:";
    }
    
    .payment-status::before {
        content: "Status:";
    }
    
    .payment-actions::before {
        content: "Ações:";
    }
    
    .payment-actions {
        justify-content: center !important;
    }
}

/* Terms and Privacy Policy Checkbox Styling */
.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
    margin-bottom: 1rem;
}

.terms-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.terms-text {
    color: var(--text-medium);
    line-height: 1.6;
}

.terms-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-text a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Legal Modal Styles */
.legal-modal {
    z-index: 2100;
}

.legal-modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
}

.legal-modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-medium);
}

.legal-modal-body h1,
.legal-modal-body h2,
.legal-modal-body h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.legal-modal-body h1:first-child,
.legal-modal-body h2:first-child,
.legal-modal-body h3:first-child {
    margin-top: 0;
}

.legal-modal-body p {
    margin-bottom: 1rem;
}

.legal-modal-body ul,
.legal-modal-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-modal-body li {
    margin-bottom: 0.5rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .legal-modal-content {
        width: 98%;
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .legal-modal-body {
        padding: 1.5rem;
        font-size: 0.9rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
    }
}

/* Pagination Styles */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-btn,
.pagination-number {
    min-width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.pagination-number {
    min-width: 40px;
    justify-content: center;
}

.pagination-dots {
    color: var(--text-light);
    font-weight: 600;
    padding: 0 0.5rem;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Mobile pagination styles */
@media (max-width: 768px) {
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .pagination-numbers {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination-btn {
        width: 100%;
        max-width: 140px;
    }
    
    .pagination-info {
        text-align: center;
    }
}

/* PIX Code Styles */
.pix-code {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
}

.pix-code textarea {
    flex: 1;
    padding: 1rem;
    font-size: 0.875rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: var(--gray-50);
    color: var(--text-dark);
    word-break: break-all;
    line-height: 1.4;
    min-height: 180px;
    resize: vertical;
}

.pix-code textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.pix-code button {
    min-width: 120px;
    align-self: stretch;
}

.pix-qr-container {
    text-align: center;
    padding: 2rem;
}

.pix-qr-container h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.pix-qr-container p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.qr-code-display {
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--gray-200);
    display: inline-block;
}

.pix-copy-paste {
    margin-top: 2rem;
}

.pix-copy-paste p {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Mobile PIX styles */
@media (max-width: 768px) {
    .pix-code {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pix-code textarea {
        min-height: 180px;
        font-size: 0.8rem;
    }
    
    .pix-code button {
        width: 100%;
        min-width: auto;
    }
}