:root {
    --bg-color: #F4F4FB;
    --primary-color: #8B5CFF;
    --primary-dark: #7340e6;
    --secondary-color: #111827;
    --accent-color: #FF7BB0;
    --text-color: #374151;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: #0a0a0f;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* For canvas positioning */
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Buttons */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out, color 0.15s ease-out;
    white-space: nowrap;
    text-decoration: none;
    /* Garantir que links pareçam botões */
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cff, #f973b8);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(139, 92, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 14px 32px rgba(139, 92, 255, 0.5);
    background: linear-gradient(135deg, #7c4dff, #ec4899);
    /* Leve ajuste no hover */
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 1px solid #8b5cff;
    color: #8b5cff;
}

.btn-outline:hover {
    background: rgba(139, 92, 255, 0.06);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: #4b5563;
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
}

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

/* Dark mode ajustes básicos para botões */
.member-page.member-dark .btn-outline {
    border-color: #c4b5fd;
    color: #e5e7eb;
}

.member-page.member-dark .btn-ghost {
    color: #e5e7eb;
}

.member-page.member-dark .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(244, 244, 251, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-links {
    display: none;
}

.nav-links a {
    margin: 0 1rem;
    font-weight: 500;
    color: var(--secondary-color);
}

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

.nav-buttons {
    display: none;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    display: none;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    font-weight: 500;
    color: var(--secondary-color);
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-buttons {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.social-proof-badge {
    display: inline-block;
    background-color: rgba(255, 123, 176, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero-bullets {
    margin-bottom: 2rem;
}

.hero-bullets li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.hero-bullets i {
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-note {
    font-size: 0.75rem;
    color: #6b7280;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.app-mockup {
    background: var(--white);
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    width: 100%;
    max-width: 350px;
    border: 8px solid var(--secondary-color);
    position: relative;
}

.mockup-screen {
    background: #f9fafb;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 50%;
}

.mockup-body {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.mockup-user-photo,
.mockup-clothing-print {
    width: 60px;
    height: 80px;
    background: var(--gray-200);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
}

.mockup-arrow {
    color: var(--primary-color);
}

.mockup-result {
    flex: 1;
    background: var(--secondary-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
}

.play-icon {
    font-size: 3rem;
    opacity: 0.8;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-buttons {
        flex-direction: row;
    }
}

/* Partners */
.partners {
    padding: 2rem 0;
    background-color: var(--white);
    text-align: center;
}

.partners-title {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.partners-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.partner-placeholder {
    width: 100px;
    height: 40px;
    background-color: var(--gray-200);
    border-radius: var(--radius-md);
    opacity: 0.5;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

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

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

/* Benefits */
.benefits {
    padding: 5rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.benefit-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(139, 92, 255, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

    .benefit-card:last-child {
        grid-column: span 2;
        max-width: 600px;
        margin: 0 auto;
    }
}

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

    .benefit-card:last-child {
        grid-column: auto;
        margin: 0;
    }
}

/* How it Works */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--white);
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-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;
    font-family: var(--font-heading);
}

.step-card h3 {
    margin-bottom: 1rem;
}

.step-card p {
    line-height: 1.7;
}

/* Prevent awkward text breaking on mobile */
.no-break {
    display: inline-block;
    white-space: nowrap;
}

/* On very small screens, allow breaking but keep words together */
@media (max-width: 480px) {
    .no-break {
        white-space: normal;
        word-break: keep-all;
    }
}

.cta-mini {
    text-align: center;
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 0 auto;
}

.cta-mini p {
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Video Tutorial Placeholder */
.video-placeholder-container {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.video-placeholder {
    background: linear-gradient(135deg, rgba(139, 92, 255, 0.1) 0%, rgba(255, 123, 176, 0.1) 100%);
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, rgba(139, 92, 255, 0.15) 0%, rgba(255, 123, 176, 0.15) 100%);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.video-placeholder p {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.video-placeholder span {
    font-size: 0.9rem;
    color: var(--text-color);
}

@media (min-width: 768px) {
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Pricing */
.pricing {
    padding: 5rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
}

.plan-desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 2rem;
    min-height: 42px;
}

.plan-features {
    margin-bottom: 2rem;
}

.plan-features li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.plan-features i {
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.pricing-card button {
    width: 100%;
}

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

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.author {
    font-weight: 600;
    color: var(--secondary-color);
}

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

/* FAQ */
.faq {
    padding: 5rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding-bottom: 1.5rem;
    max-height: 500px;
    /* Arbitrary large height */
}

/* Final CTA */
.final-cta {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, #e0d4fc 100%);
}

.final-cta h2 {
    margin-bottom: 1rem;
}

.final-cta p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.footer-copy {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 460px;
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    /* Cor de texto forçada para leitura no fundo branco */
    color: #1e293b;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #9ca3af;
}

.modal-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.modal-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-step h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #111827;
}

.modal-container h2 {
    color: #111827;
}

.modal-container p {
    color: #4b5563;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid #cbd5e1; /* Cor de borda mais visível */
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #f8fafc; /* Leve fundo cinza para destacar do modal branco */
    color: #1e293b;
    transition: all 0.2s;
}

.form-group input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 255, 0.1);
}

/* Prevent browser autofill styling */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f8fafc inset !important;
    -webkit-text-fill-color: #1e293b !important;
    transition: background-color 5000s ease-in-out 0s;
}

.file-upload {
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
    position: relative;
}

.file-upload:hover {
    border-color: var(--primary-color);
}

.file-upload input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.file-upload span {
    font-size: 0.9rem;
    color: #6b7280;
}

.modal-note {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 1rem;
}

/* ---- Responsive modal para telas pequenas ---- */
@media (max-height: 700px) {
    .modal-container {
        padding: 1.5rem 1.25rem;
    }

    .modal-step h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

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

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="password"] {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-height: 580px) {
    .modal-container {
        padding: 1rem;
    }

    .modal-step h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

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

    .form-group label {
        margin-bottom: 0.25rem;
        font-size: 0.8rem;
    }

    .google-auth-divider {
        margin: 0.75rem 0;
    }
}

/* Google Auth Divider */
.google-auth-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    gap: 1rem;
}

.google-auth-divider::before,
.google-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.google-auth-divider span {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Google Auth Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-google::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.04), rgba(234, 67, 53, 0.04));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.btn-google:hover {
    border-color: #c7d2e0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08),
        0 0 0 3px rgba(66, 133, 244, 0.08);
    transform: translateY(-1px);
}

.btn-google:hover::before {
    opacity: 1;
}

.btn-google:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.btn-google .google-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

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

.loading-state {
    text-align: center;
    padding: 2rem 0;
}

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

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

    100% {
        transform: rotate(360deg);
    }
}

.result-preview {
    background-color: var(--secondary-color);
    border-radius: var(--radius-md);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.video-placeholder {
    text-align: center;
}

.video-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.result-text {
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* File Upload Preview */
.file-preview {
    margin-top: 1rem;
    width: 100%;
    height: 150px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: none;
    /* Hidden by default */
    background-color: #f3f4f6;
    position: relative;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview.active {
    display: block;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {

    .fade-up,
    .fade-in,
    .slide-in-right,
    .scale-in {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================================
   MEMBER AREA STYLES (Restored)
   ========================================= */

body.member-page {
    background: var(--bg-color);
    font-family: var(--font-body);
    color: var(--secondary-color);
    min-height: 100vh;
}

.member-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 40;
}

.member-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.member-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-color);
    text-decoration: none;
}

.member-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.member-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    padding-bottom: 5rem;
    /* Space for bottom nav */
}

.member-layout {
    display: flex;
    gap: 2rem;
}

/* Sidebar (Desktop) */
.member-sidebar {
    display: none;
    /* Hidden on mobile by default */
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: #6b7280;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.sidebar-item:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.sidebar-item.active {
    background: rgba(139, 92, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-item i {
    width: 20px;
    text-align: center;
}

/* Content Area */
.member-content {
    flex: 1;
    width: 100%;
}

.member-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.member-section.active {
    display: block;
}

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

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

/* Generic Member Cards */
.member-card,
.card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.member-page .card h1,
.member-page .card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.member-page .card p.muted {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Grid Layouts for Dashboard */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

    .member-sidebar {
        display: block;
    }

    .member-main {
        padding-bottom: 2rem;
    }
}

/* Bottom Nav (Mobile) */
.member-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 50;
    border-top: 1px solid var(--gray-200);
}

.bottom-nav-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

/* Support Options Grid */
.support-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.support-item {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.support-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.plan-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Dark Mode Overrides */
.member-page.member-dark {
    --bg-color: #0f172a;
    --text-color: #f3f4f6;
    --secondary-color: #ffffff;
}

.member-page.member-dark .member-header,
.member-page.member-dark .member-bottom-nav,
.member-page.member-dark .member-card,
.member-page.member-dark .card {
    background: #1e293b;
    border-color: #334155;
    color: #f3f4f6;
}

.member-page.member-dark .sidebar-item:hover {
    background: #334155;
}

/* --- Member: Criar look --- */
.member-create-card {
    max-width: 420px;
    margin: 0 auto 24px;
}

.member-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.member-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 16px;
}

.member-step {
    margin-bottom: 16px;
}

.member-step-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.member-step-text {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.upload-box {
    position: relative;
    border-radius: 16px;
    border: 1.5px dashed rgba(139, 92, 255, 0.4);
    background: rgba(255, 255, 255, 0.8);
    padding: 12px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
}

.member-page.member-dark .upload-box {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(139, 92, 255, 0.7);
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

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

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.upload-placeholder {
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
}

.member-select {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 10px 16px;
    font-size: 0.9rem;
    background: var(--white);
    color: var(--text-color);
}

.form-error {
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #b91c1c;
}

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

.member-helper-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 8px;
}

/* Resultado */
.result-card {
    max-width: 420px;
    margin: 0 auto 80px;
    text-align: center;
}

.member-result-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.member-result-empty {
    font-size: 0.85rem;
    color: #9ca3af;
}

.generated-look-image {
    width: 100%;
    border-radius: 20px;
    margin-top: 8px;
    box-shadow: var(--shadow-md);
}

.member-result-badge {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Estado de loading no botão */
.btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

@media (min-width: 768px) {

    .member-create-card,
    .result-card {
        max-width: 520px;
    }
}

/* --- Dark Mode Header Fixes --- */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at top, #facc15 0%, #f97316 45%, #b453ff 100%);
    color: #111827;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
}

.theme-icon {
    font-size: 1rem;
    line-height: 1;
}

/* Ensure icon stays visible in dark mode */
.member-page.member-dark .theme-toggle-btn,
.member-page.member-dark .theme-icon {
    color: #020617;
    filter: none !important;
    background: radial-gradient(circle at top, #facc15 0%, #f97316 45%, #a855f7 100%);
}

/* --- Garment Type Grid (Mobile First) --- */
.garment-type-grid {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    scrollbar-width: none;
    /* Firefox */
}

.garment-type-grid::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.garment-type-btn {
    min-width: 110px;
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.02);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease-out;
    font-family: var(--font-body);
}

.garment-type-btn .garment-type-icon {
    font-size: 1.1rem;
}

.garment-type-btn.is-selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 255, 0.25);
}

.garment-type-btn:hover:not(.is-selected) {
    border-color: rgba(139, 92, 255, 0.6);
    background: rgba(139, 92, 255, 0.05);
}

/* Dark mode adjustments for grid */
.member-page.member-dark .garment-type-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.member-page.member-dark .garment-type-btn.is-selected {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));

}

/* ===== PLANO & TOKENS – CARD GAMIFICADO ===== */

.tokens-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tokens-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tokens-current {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tokens-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6b7280;
}

.tokens-label {
    font-weight: 500;
}

.tokens-counter {
    font-weight: 600;
    color: #111827;
}

.tokens-progress-track {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
}

.tokens-progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b5cff, #f973b8);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: width 0.35s ease-out;
}

.tokens-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.tokens-plan-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(129, 140, 248, 0.08);
    color: #4b5563;
    border: 1px solid rgba(129, 140, 248, 0.35);
}

.tokens-gamified-text {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Card de planos embaixo */

.tokens-plans-card {
    margin-top: 16px;
}

.tokens-plan-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: #4b5563;
}

/* Dark mode */

.member-page.member-dark .tokens-counter {
    color: #e5e7eb;
}

.member-page.member-dark .tokens-plan-pill {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(129, 140, 248, 0.65);
    color: #e5e7eb;
}

.member-page.member-dark .tokens-gamified-text {
    color: #9ca3af;
}

.member-page.member-dark .tokens-progress-track {
    background: rgba(31, 41, 55, 0.9);
}

/* FIX: Header Alignment Global (index.html consistency) */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

/* FIX: Site Header Standardisation (User Request) */
.site-header {
    background: rgba(244, 244, 251, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}



/* FIX: Support Section Visibility in Dark Mode */
.member-page.member-dark .support-item {
    background: rgba(255, 255, 255, 0.05);
    /* Dark background instead of light */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
    /* Ensure text is light */
}

.member-page.member-dark .support-item h3 {
    color: #ffffff;
}

.member-page.member-dark .support-item p {
    color: #cbd5e1;
}

/* ========= PROFILE HERO / OVERVIEW ========= */

.profile-hero-card {
    background: linear-gradient(135deg, #0f172a, #020617);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.profile-hero-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent 70%);
    pointer-events: none;
}

.profile-hero-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar-badge {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: radial-gradient(circle at top, #f97316, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
}

.profile-avatar-badge span {
    font-size: 22px;
}

.profile-hero-text .profile-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f9fafb;
    margin: 0 0 2px;
}

.profile-hero-text .profile-subtitle {
    font-size: 0.85rem;
    color: #cbd5f5;
    margin: 0;
}

.profile-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.profile-stat {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 16px;
    padding: 10px 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 62px;
    transition: transform 0.2s ease;
}

.profile-stat-label {
    display: block;
    font-size: 0.65rem;
    color: #94a3b8;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.profile-stat-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Specific fix for plan name wrapping */
#statsCurrentPlan {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Layout abaixo do hero */
.profile-main-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ========= PROFILE CARDS ========= */

.profile-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 24px;
    padding: 16px 16px 18px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.profile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.profile-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f9fafb;
    margin: 0 0 4px;
}

.profile-card-subtitle {
    font-size: 0.8rem;
    color: #cbd5f5;
    margin: 0;
}

.profile-pill-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.16);
    color: #e0f2fe;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* ========= CLOSET LIST ========= */

.closet-empty-state {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 16px;
    padding: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    font-size: 0.78rem;
    color: #e5e7eb;
}

.closet-empty-state p {
    margin: 0 0 4px;
}

.closet-empty-state p:last-child {
    margin-bottom: 0;
}

.closet-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.closet-item-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: radial-gradient(circle at top left, rgba(168, 85, 247, 0.2), rgba(15, 23, 42, 0.95));
    border-radius: 16px;
    padding: 10px 11px;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.closet-item-thumb {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.closet-item-info {
    flex: 1;
}

.closet-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f9fafb;
    margin: 0 0 2px;
}

.closet-item-meta {
    font-size: 0.72rem;
    color: #cbd5f5;
}

.closet-item-meta span {
    display: block;
}

.closet-item-link {
    margin-top: 4px;
    font-size: 0.72rem;
    color: #a5b4fc;
    text-decoration: underline;
}

.profile-tips-list {
    padding-left: 18px;
    margin: 0;
    font-size: 0.8rem;
    color: #e5e7eb;
}

.profile-tips-list li+li {
    margin-top: 4px;
}

/* ========= MODAL DO CLOSET ========= */

/* ========= CLOSET MODAL (NEW) ========= */

.closet-modal {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: none;
}

.closet-modal.active {
    display: block;
}

.closet-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
}

.closet-modal-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, 92vw);
    background: #0f172a;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.closet-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.closet-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.closet-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.closet-input {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 10px 14px;
    color: #f8fafc;
    font-size: 0.9rem;
    outline: none;
}

.closet-input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.closet-preview-box {
    width: 100%;
    height: 140px;
    background: rgba(2, 6, 23, 0.3);
    border-radius: 16px;
    border: 2px dashed rgba(148, 163, 184, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 4px;
}

#closetPreviewImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#closetPreviewPlaceholder {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    padding: 0 20px;
}

/* Em telas maiores, colocar os cards lado a lado */
@media (min-width: 900px) {
    .profile-main-grid {
        flex-direction: row;
        align-items: flex-start;
    }

    .profile-card-closet {
        flex: 2;
    }

    .profile-card-tips {
        flex: 1;
    }
}

/* ================= HOME / CLOSET (IN�CIO) ================= */

.member-home {
    padding: 1.2rem 1rem 6rem;
}

/* HERO */

.member-home .home-hero {
    background:
        radial-gradient(circle at top left, #3b82f6 0, transparent 55%),
        radial-gradient(circle at top right, #ec4899 0, transparent 55%),
        #020617;
    border-radius: 22px;
    padding: 1.1rem 1rem 1.2rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
    margin-bottom: 1.4rem;
}

.member-home .home-hero-header {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}

.member-home .home-hero-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(248, 250, 252, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-home .avatar-initial {
    font-weight: 600;
    color: #f9fafb;
}

.member-home .home-hero-copy {
    flex: 1;
}

.member-home .home-hello {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 0.15rem;
}

.member-home .home-sub {
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.9);
}

/* STATS */

.member-home .home-stats {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.member-home .stat-pill {
    flex: 1;
    border-radius: 16px;
    padding: 0.5rem 0.6rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.28);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.member-home .stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(148, 163, 184, 0.9);
}

.member-home .stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #f9fafb;
}

.member-home .stat-pill-plan .stat-plan-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #c4b5fd;
}

/* HEADER DO CLOSET */

.member-home .closet-section {
    margin-top: 1.2rem;
}

.member-home .section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.member-home .section-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.2rem;
}

.member-home .section-header p {
    font-size: 0.78rem;
    color: #9ca3af;
}

.member-home .btn-ghost-chip {
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.75);
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    font-size: 0.78rem;
    padding: 0.35rem 0.9rem;
    white-space: nowrap;
}

/* GRID DE PE�AS */

.member-home .closet-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .member-home .closet-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.member-home .closet-card {
    background: #020617;
    border-radius: 16px;
    padding: 0.45rem;
    border: 1px solid rgba(30, 64, 175, 0.6);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
}

.member-home .closet-thumb {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: #020617;
    margin-bottom: 0.45rem;
}

.member-home .closet-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-home .closet-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 0.15rem;
}

.member-home .closet-meta {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

.member-home .closet-meta span+span::before {
    content: " • ";
    margin: 0 0.25rem;
}

.member-home .closet-link {
    font-size: 0.72rem;
    color: #a855f7;
    text-decoration: none;
}

.member-home .closet-link:hover {
    text-decoration: underline;
}

/* EMPTY STATE */

.member-home .closet-empty {
    margin-top: 1rem;
    padding: 1rem 0.8rem 1.1rem;
    border-radius: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
    text-align: left;
}

.member-home .closet-empty-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.25rem;
}

.member-home .closet-empty-sub {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-bottom: 0.8rem;
}

.member-home .btn-primary.full {
    width: 100%;
}

/* DICAS */

.member-home .tips-section {
    margin-top: 1.6rem;
}

.member-home .tips-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.45rem;
}

.member-home .tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.member-home .tips-list li {
    font-size: 0.78rem;
    color: #9ca3af;
}

/* Centralizar tudo em mobile/desktop */
@media (min-width: 768px) {
    .member-home {
        max-width: 480px;
        margin: 0 auto;
    }
}


/* === REFINED MEMBER HUB STYLES (Mobile First) === */

/* HOME & HERO */
.home-hero {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.15), transparent 60%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.15), transparent 60%);
    background-color: rgba(15, 23, 42, 0.5);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.member-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.member-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.member-page.member-dark .member-stat-card {
    background: rgba(15, 23, 42, 0.95);
}

.member-stat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: #94a3b8;
}

.member-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

/* CLOSET HEADER CARD */
.closet-section {
    margin-top: 20px;
}

.closet-header-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 24px;
    padding: 16px 18px;
    margin-bottom: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.closet-header-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.closet-header-card p {
    font-size: 13px;
    opacity: 0.85;
    color: #94a3b8;
}

.closet-header-card .closet-new-item-btn {
    align-self: center;
    margin-top: 6px;
}

/* CLOSET CAROUSEL */
#closetItemsContainer {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 16px 2px;
    scroll-snap-type: x mandatory;
}

#closetItemsContainer::-webkit-scrollbar {
    height: 4px;
}

#closetItemsContainer::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
}

/* Closet Item Card */
.closet-card,
.closet-item-card {
    flex: 0 0 70%;
    max-width: 260px;
    scroll-snap-align: start;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.95);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.closet-card .closet-thumb,
.closet-item-card .closet-thumb {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 8px;
    background: #1e293b;
}

.closet-card img,
.closet-item-card img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

.closet-card .closet-info,
.closet-item-card .closet-info {
    padding: 0 4px 4px;
}

.closet-card .closet-name,
.closet-item-card .closet-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.closet-card .closet-meta,
.closet-item-card .closet-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.closet-card .closet-link,
.closet-item-card .closet-link {
    font-size: 0.75rem;
    color: #a855f7;
    text-decoration: none;
    font-weight: 600;
}

/* TIPS CARD */
.tips-section {
    margin-top: 24px;
    margin-bottom: 80px;
}

.tips-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 24px;
    padding: 16px 18px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tips-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.tips-card p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 6px;
    color: #94a3b8;
}

/* BOTTOM NAV HIGHLIGHT */
.member-bottom-nav {
    align-items: center;
    justify-content: space-between;
    background: #020617;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    padding: 0 !important;
}

.member-bottom-nav .nav-item,
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #94a3b8;
    background: transparent;
    border: none;
    padding: 8px 0;
}

.member-bottom-nav .nav-item.active,
.bottom-nav-item.active {
    color: #f3f4f6;
}

/* Botão "Criar" destacado */
.member-bottom-nav .nav-item-create {
    position: relative;
    top: -10px;
    min-width: 64px;
    min-height: 64px;
    border-radius: 999px;
    padding: 0 !important;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.45);
    z-index: 100;
    flex: 0 0 64px !important;
}

.member-bottom-nav .nav-item-create span,
.member-bottom-nav .nav-item-create i {
    color: #fff !important;
}

/* === NEW UI ENHANCEMENTS === */

/* Create Look - 2x2 Grid */
.garment-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.garment-type-btn {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* Plan Actions - Center Content */
.tokens-meta-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.tokens-plan-pill {
    margin-bottom: 0.5rem;
}

/* Plan Action Buttons - Ensure centered width if needed */
.tokens-meta-row .btn {
    max-width: 280px;
    width: 100%;
}

/* PLANO COLORS */
.tokens-plan-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plan-card {
    padding: 1.2rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    transition: transform 0.2s;
}

.plan-card:hover {
    transform: translateY(-2px);
}

.plan-card strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

/* Basic */
.plan-card-basic {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.05);
}

.plan-card-basic strong {
    color: #60a5fa;
}

/* Premium */
.plan-card-premium {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.1);
}

.plan-card-premium strong {
    color: #f472b6;
}

/* Diamond */
.plan-card-diamond {
    border-color: rgba(226, 232, 240, 0.6);
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.05), rgba(15, 23, 42, 0.8));
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.plan-card-diamond strong {
    color: #f8fafc;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* === FINAL HERO REFINEMENTS (Larger Header, Compact Stats) === */

.home-hero-header {
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Aumentar Avatar */
.home-hero-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
    border-width: 3px;
    flex-shrink: 0;
}

/* Aumentar Saudação */
.home-hello {
    font-size: 1.4rem;
    /* Bem maior */
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.home-sub {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Diminuir Cards de Estatísticas (Compact Mode) */
.member-stats-row {
    gap: 8px;
    /* Menor gap */
}

.member-stat-card {
    padding: 8px 4px;
    /* Padding reduzido */
    border-radius: 14px;
}

.member-stat-label {
    font-size: 9px;
    /* Texto menor */
    margin-bottom: 2px;
    opacity: 0.8;
}

.member-stat-value {
    font-size: 15px;
    /* Valor um pouco menor para não estourar */
    font-weight: 700;
}

/* === THEME & ACCESSIBILITY FIXES === */

/* LIGHT MODE OVERRIDES - Plan Cards */
/* Ensure background is light and text is dark for readability */
.member-page:not(.member-dark) .plan-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: #475569;
    /* Slate 600 - Readable dark gray */
}

/* Ensure strong titles retain their colors but might need slight adjustment if too light */


/* DARK MODE OVERRIDES */
/* Ensure description text is WHITE as requested */
.member-page.member-dark .plan-card {
    color: #ffffff !important;
}

/* Ensure Titles are kept as is (they are already specific colors) */
/* The previous rules for .plan-card-basic strong etc will apply */
/* === MEUS LOOKS (HISTORY) STYLES === */

/* Container da seção */
.looks-header-card,
.looks-grid-card,
.looks-empty-card {
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.25rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Header */
.looks-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.looks-count-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: linear-gradient(90deg, #a855ff, #ec4899);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
}

/* Filtros */
.looks-filters {
    margin-top: 1rem;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    /* espaço para scrollbar */
}

.looks-filters::-webkit-scrollbar {
    height: 3px;
}

.looks-filters::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

.look-filter-pill {
    white-space: nowrap;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: transparent;
    font-size: 0.75rem;
    padding: 6px 14px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
}

.look-filter-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.look-filter-pill.is-active {
    border-color: transparent;
    background: linear-gradient(90deg, #a855ff, #ec4899);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* Estado vazio */
.looks-empty-card {
    text-align: center;
    margin-top: 1rem;
    padding: 2rem 1.5rem;
}

.looks-empty-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.looks-empty-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

/* Grid */
.looks-grid-card {
    padding: 0;
    /* Grid já tem gap, não precisa padding extra no card container */
    background: transparent;
    box-shadow: none;
    border: none;
}

.looks-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* Card de look individual */
.look-card {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
}

.look-card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    /* Proporção portait */
    overflow: hidden;
    background: #1e293b;
}

.look-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.look-card:hover .look-card-img-wrapper img {
    transform: scale(1.05);
}

.look-card-meta {
    padding: 10px;
}

.look-card-type {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.look-card-date {
    font-size: 0.7rem;
    color: #94a3b8;
}

@media (min-width: 640px) {
    .looks-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

/* === MY LOOKS EVOLUTION (Grid & Modal) === */

/* Grid de looks */
.looks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.look-card {
    position: relative;
    background: #050816;
    /* fundo escuro */
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 255, 0.15);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.8);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.look-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.9);
}

.look-card-image-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: radial-gradient(circle at top, #1f2937, #020617);
    overflow: hidden;
}

.look-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.look-card-info {
    padding: 8px 10px 10px;
}

.look-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 4px;
}

.look-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    color: #9ca3af;
}

/* === COMPARE MODE UX === */
.look-compare-check {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.6);
    z-index: 10;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0;
    margin: 0;
}

.look-card.is-compare .look-compare-check {
    display: flex;
}

.look-compare-check-inner {
    color: transparent;
    font-size: 16px;
    font-weight: 800;
}

.look-card.is-selected .look-compare-check {
    background: #a855f7;
    border-color: #a855f7;
}

.look-card.is-selected .look-compare-check-inner {
    color: #fff;
}

.look-card.is-compare {
    border-color: rgba(148, 163, 255, 0.3);
}

.look-card.is-selected {
    border-color: #a855f7;
    box-shadow: 0 0 0 2px #a855f7, 0 14px 40px rgba(168, 85, 247, 0.25);
}

.look-viewer-modal.is-compare .look-viewer-badges,
.look-viewer-modal.is-compare .look-viewer-actions {
    display: none !important;
}

/* === CAROUSEL COMPARE MODE FF2 === */
.ff2-viewer-compare {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    /* safe space */
}

.ff2-viewer-compare::-webkit-scrollbar {
    display: none;
}

.ff2-compare-col {
    flex: 0 0 100%;
    position: relative;
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    background: #020617;
}

@media (min-width: 640px) {
    .ff2-viewer-compare {
        overflow-x: hidden;
    }

    .ff2-compare-col {
        flex: 1;
    }
}

.ff2-compare-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ff2-compare-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.7);
    color: #f8fafc;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


.look-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.63rem;
    font-weight: 600;
    background: rgba(79, 70, 229, 0.15);
    color: #c4b5fd;
}

.look-badge-mock {
    background: rgba(248, 250, 252, 0.06);
    color: #fbbf24;
}

/* Estado vazio */
.looks-empty-state {
    text-align: left;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #9ca3af;
    display: none;
    /* Controlado via JS */
}

.looks-empty-state p {
    margin-bottom: 8px;
}

/* Modal de visualização */
.look-viewer-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.look-viewer-modal.active {
    display: flex !important;
    /* Força display flex quando ativo */
}

.look-viewer-backdrop {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.8);
}

.look-viewer-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 16px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: radial-gradient(circle at top, #111827, #020617);
    border-radius: 24px;
    padding: 16px 16px 14px;
    border: 1px solid rgba(148, 163, 255, 0.25);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 1);
    z-index: 1000;
}

.look-viewer-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 1001;
}

.look-viewer-image-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at top, #1f2937, #020617);
    margin-bottom: 10px;
}

.look-viewer-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.look-viewer-meta {
    margin-bottom: 8px;
}

.look-viewer-meta p {
    font-size: 0.82rem;
    color: #e5e7eb;
    margin-bottom: 6px;
}

.look-viewer-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.look-viewer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.look-viewer-actions button {
    flex: 1 1 auto;
    padding: 10px 14px;
    min-width: calc(33.333% - 8px);
}

/* botão de excluir */
.btn-danger {
    background: linear-gradient(90deg, #ef4444, #f97316);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ajuste mobile */
@media (max-width: 480px) {
    .looks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* === VIEWER IMPROVEMENTS (Uncropped + Fullscreen) === */

/* Ensure image is not cropped in modal */
.look-viewer-image-wrap img {
    object-fit: contain !important;
    background: #000;
    /* Preenche espaço vazio com preto */
}

/* Cursor de zoom para indicar clique */
.look-viewer-image-wrap {
    cursor: zoom-in;
}

/* Fullscreen Mode */
.look-viewer-image-wrap.is-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.look-viewer-image-wrap.is-fullscreen img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain !important;
    border-radius: 0;
}

/* === DEFAULT BODY PHOTO FEATURE === */

.default-body-photo-wrapper {
    margin-bottom: 16px;
}

.default-body-photo-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: radial-gradient(circle at top, #1f2937, #020617);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 255, 0.15);
    margin-bottom: 12px;
}

.default-body-photo-thumb {
    width: 80px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #111827;
    flex-shrink: 0;
}

.default-body-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.default-body-photo-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.default-body-photo-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0;
}

.default-body-photo-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.4;
}

.default-body-photo-info button {
    margin-top: auto;
    align-self: flex-start;
}

.save-default-body-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 12px;
    cursor: pointer;
    user-select: none;
}

.save-default-body-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.body-photo-options {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.body-photo-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-secondary-small {
    background: transparent;
    border: 1px solid var(--primary-color, #a855f7);
    color: var(--primary-color, #a855f7);
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    width: fit-content;
}

.btn-secondary-small:hover {
    background: var(--primary-color-alpha, rgba(168, 85, 247, 0.1));
}

.default-body-photo-preview {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.default-body-photo-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.default-body-photo-preview img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.plan-card.is-selected {
    outline: 2px solid rgba(191, 160, 93, 0.9);
    box-shadow: 0 0 0 6px rgba(191, 160, 93, 0.15);
    transform: translateY(-2px);
}

.mix-pose-panel {
    margin: 14px 0 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mix-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mix-left .section-hint {
    margin: 4px 0 0;
    opacity: 0.8;
}

.mix-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
}

.mix-toggle[aria-pressed="true"] .mix-toggle-pill {
    opacity: 1;
}

.mix-toggle-pill {
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    opacity: 0.9;
}

.pose-row {
    margin-top: 12px;
}

.pose-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.pose-chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
    font-weight: 600;
}

.pose-chip.is-selected {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.token-preview {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.95;
}

.token-preview-value {
    font-weight: 800;
}

.mix-upload-wrap {
    display: grid;
    gap: 12px;
}

.mix-upload-slot {
    border-radius: 16px;
}

.mix-slot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 2px 10px;
}

.mix-slot-title {
    font-weight: 700;
    font-size: 14px;
}

.mix-slot-badge {
    font-size: 12px;
    opacity: .8;
}

.is-hidden {
    display: none !important;
}

/* === MY LOOKS HINTS === */
.ff2-looks-hint,
.ff2-compare-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12.5px;
    font-weight: 600;
    color: #94a3b8;
}

.ff2-looks-hint i,
.ff2-compare-hint i {
    font-size: 16px;
    color: #a855f7;
}

.ff2-compare-hint {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    color: #f8fafc;
}

.ff2-compare-hint i {
    color: #d8b4fe;
}

/* Conteúdo principal */
.member-app {
    min-height: 100dvh;
    overflow-x: hidden;
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    height: var(--bottom-nav-height);
    background: linear-gradient(180deg, #0b1020, #070b17);
    border-top: 1px solid rgba(255, 255, 255, 0.08);

    display: flex;
    justify-content: space-around;
    align-items: center;

    z-index: 1000;
}

/* ================================
   Bottom nav: always stable
================================ */

/* Evita bugs de 100vh no mobile / emulador sem prender scroll */
html,
body {
    min-height: 100%;
}

body.member-page {
    min-height: 100dvh;
    /* mais correto que 100vh */
}

/* Bottom nav base */
.member-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 9999;
    width: 100%;

    /* garante que não "some" por layout */
    display: none;

    /* safe-area iOS */
    padding-bottom: env(safe-area-inset-bottom);
}

/* Liga a bottom nav em telas mobile */
@media (max-width: 900px) {
    .member-bottom-nav {
        display: flex;
    }

    /* esconde sidebar no mobile */
    .member-sidebar {
        display: none;
    }

    /* evita o conteúdo ficar por baixo da nav */
    .member-content {
        padding-bottom: calc(86px + env(safe-area-inset-bottom));
    }
}

/* Se algum pai tiver transform, fixed pode bugar.
   Isso ajuda a performance/estabilidade */
.member-bottom-nav {
    transform: translateZ(0);
    will-change: transform;
}

/* =========================================================
   FITFLICK — MOBILE DOCK NAV (REBRAND v1)
   Colar no FINAL do CSS (último bloco)
========================================================= */

:root {
    --dock-h: 74px;
    --dock-radius: 22px;
    --dock-gap: 10px;
}

/* Mobile padding somente no member */
body.member-page {
    padding-bottom: 0;
    /* zera heranças */
}

@media (max-width: 900px) {
    .member-main {
        padding-bottom: calc(var(--dock-h) + 22px + env(safe-area-inset-bottom));
    }
}

/* Desktop: sidebar on / dock off */
@media (min-width: 901px) {
    .member-bottom-nav {
        display: none !important;
    }

    .member-sidebar {
        display: block;
    }
}

/* Mobile: dock on / sidebar off */
@media (max-width: 900px) {
    .member-sidebar {
        display: none !important;
    }

    .member-bottom-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));

        height: var(--dock-h);
        border-radius: var(--dock-radius);

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--dock-gap);

        padding: 10px 12px;

        background: rgba(2, 6, 23, 0.72);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);

        border: 1px solid rgba(148, 163, 184, 0.16);
        box-shadow:
            0 18px 45px rgba(0, 0, 0, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);

        z-index: 9999;
        transform: translateZ(0);
        will-change: transform;
    }

    /* Itens */
    .member-bottom-nav .bottom-nav-item {
        flex: 1;
        min-width: 0;

        height: calc(var(--dock-h) - 20px);
        border-radius: 16px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;

        background: transparent;
        border: none;
        cursor: pointer;

        color: rgba(148, 163, 184, 0.9);
        font-size: 11px;
        font-weight: 600;

        transition: transform .18s ease, background .18s ease, color .18s ease;
    }

    .member-bottom-nav .bottom-nav-item i {
        font-size: 18px;
        transition: transform .18s ease, filter .18s ease;
    }

    .member-bottom-nav .bottom-nav-item:active {
        transform: scale(0.98);
    }

    /* Active = bubble */
    .member-bottom-nav .bottom-nav-item.active {
        background: rgba(168, 85, 247, 0.14);
        color: #f8fafc;
        box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.22);
    }

    .member-bottom-nav .bottom-nav-item.active i {
        transform: translateY(-1px) scale(1.04);
        filter: drop-shadow(0 10px 18px rgba(168, 85, 247, 0.35));
    }

    /* CREATE (FAB central) */
    .member-bottom-nav .nav-item-create {
        flex: 0 0 64px;
        height: 64px;
        border-radius: 999px;

        margin-top: -18px;

        background: linear-gradient(135deg, #a855f7, #ec4899);
        color: #fff !important;

        box-shadow:
            0 18px 40px rgba(236, 72, 153, 0.35),
            0 12px 30px rgba(168, 85, 247, 0.25);

        position: relative;
    }

    .member-bottom-nav .nav-item-create::after {
        content: "";
        position: absolute;
        inset: -10px;
        border-radius: 999px;
        background: radial-gradient(circle, rgba(236, 72, 153, 0.22), transparent 60%);
        z-index: -1;
    }

    .member-bottom-nav .nav-item-create i {
        font-size: 20px;
    }

    .member-bottom-nav .nav-item-create span {
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .02em;
    }
}

/* Acessibilidade: reduz motion */
@media (prefers-reduced-motion: reduce) {
    .member-bottom-nav * {
        transition: none !important;
    }
}

/* =========================================================
   HOME REBRAND v1 — FitFlick Member Hub
========================================================= */

.member-home {
    padding: 18px 14px 0;
    max-width: 520px;
    margin: 0 auto;
}

/* Background overlay suave (usa a textura que você vai gerar depois) */
.member-home::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 10%, rgba(168, 85, 247, .20), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(236, 72, 153, .16), transparent 40%),
        radial-gradient(circle at 40% 90%, rgba(59, 130, 246, .12), transparent 45%);
}

/* HERO */
.home-hero {
    position: relative;
    border-radius: 26px;
    padding: 16px 16px 14px;
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(2, 6, 23, .58);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    overflow: hidden;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(circle at 15% 0%, rgba(168, 85, 247, .20), transparent 55%),
        radial-gradient(circle at 100% 10%, rgba(236, 72, 153, .18), transparent 55%);
    pointer-events: none;
}

.home-hero-header {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.home-hero-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.avatar-initial {
    font-weight: 800;
    color: #f8fafc;
    font-size: 18px;
}

.home-hello {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: .01em;
}

.home-sub {
    margin: 0;
    font-size: 12.5px;
    color: rgba(226, 232, 240, .85);
    line-height: 1.35;
}

/* Stats compacto + glow */
.member-stats-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.member-stat-card {
    border-radius: 18px;
    padding: 10px 8px;
    background: rgba(2, 6, 23, .58);
    border: 1px solid rgba(148, 163, 184, .14);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}

.member-stat-label {
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, .9);
    margin-bottom: 4px;
    font-weight: 800;
}

.member-stat-value {
    font-size: 15px;
    font-weight: 900;
    color: #f8fafc;
}

/* QUICK ACTION (novo) */
.home-quick {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.home-quick .quick-card {
    flex: 1;
    border-radius: 22px;
    padding: 12px 12px;
    background: rgba(2, 6, 23, .55);
    border: 1px solid rgba(148, 163, 184, .14);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: transform .18s ease, border-color .18s ease;
}

.home-quick .quick-card:active {
    transform: scale(.99);
}

.quick-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quick-title {
    font-size: 13px;
    font-weight: 900;
    color: #f8fafc;
}

.quick-sub {
    font-size: 11.5px;
    color: rgba(148, 163, 184, .92);
}

.quick-chip {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: linear-gradient(135deg, rgba(168, 85, 247, .95), rgba(236, 72, 153, .95));
    color: #fff;
    font-weight: 900;
    font-size: 11px;
    white-space: nowrap;
    box-shadow: 0 14px 30px rgba(236, 72, 153, .20);
}

/* CLOSET HEADER */
.closet-section {
    margin-top: 14px;
}

.closet-header-card {
    border-radius: 26px;
    padding: 14px 14px;
    background: rgba(2, 6, 23, .50);
    border: 1px solid rgba(148, 163, 184, .14);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
    text-align: left;
}

.closet-header-card h2 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 900;
    color: #f8fafc;
}

.closet-header-card p {
    margin: 0 0 10px;
    font-size: 12px;
    color: rgba(148, 163, 184, .92);
}

.closet-header-card .btn {
    align-self: flex-start;
}

/* CLOSET CAROUSEL */
#closetItemsContainer {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 2px 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

#closetItemsContainer::-webkit-scrollbar {
    height: 4px;
}

#closetItemsContainer::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(168, 85, 247, .9), rgba(236, 72, 153, .9));
}

.closet-card {
    flex: 0 0 78%;
    max-width: 300px;
    scroll-snap-align: start;
    border-radius: 24px;
    padding: 10px;
    background: rgba(2, 6, 23, .58);
    border: 1px solid rgba(148, 163, 184, .14);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
    transition: transform .18s ease;
}

.closet-card:active {
    transform: scale(.99);
}

.closet-card .closet-thumb {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
}

.closet-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.closet-card .closet-name {
    font-size: 13px;
    font-weight: 900;
    color: #f8fafc;
    margin: 0 0 4px;
}

.closet-card .closet-meta {
    font-size: 11.5px;
    color: rgba(148, 163, 184, .92);
    margin: 0 0 10px;
}

.closet-card .btn {
    width: 100%;
}

/* TIPS vira “cards” */
.tips-section {
    margin-top: 14px;
    margin-bottom: 24px;
}

.tips-card {
    border-radius: 26px;
    padding: 14px;
    background: rgba(2, 6, 23, .50);
    border: 1px solid rgba(148, 163, 184, .14);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.tips-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 900;
    color: #f8fafc;
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.tip-mini {
    border-radius: 18px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.tip-ico {
    width: 34px;
    height: 34px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, .14);
    border: 1px solid rgba(168, 85, 247, .18);
    color: #f8fafc;
    flex-shrink: 0;
}

.tip-text {
    font-size: 12px;
    color: rgba(226, 232, 240, .88);
    line-height: 1.35;
}

/* entrance suave */
@keyframes ffPopIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.member-home .home-hero,
.member-home .closet-header-card,
.member-home #closetItemsContainer,
.member-home .tips-card {
    animation: ffPopIn .28s ease both;
}

/* =========================================================
   FitFlick Member Rebrand V2 (namespaced by .ff2)
========================================================= */

.ff2 {
    --ff2-bg: #050816;
    --ff2-card: rgba(2, 6, 23, 0.62);
    --ff2-card2: rgba(2, 6, 23, 0.78);
    --ff2-border: rgba(148, 163, 184, 0.16);
    --ff2-text: #e5e7eb;
    --ff2-muted: rgba(148, 163, 184, 0.92);
    --ff2-white: #fff;

    --ff2-p1: #a855f7;
    --ff2-p2: #ec4899;
    --ff2-p3: #3b82f6;

    --ff2-radius: 22px;
    --ff2-radius2: 26px;

    --ff2-dock-h: 82px;

    color: var(--ff2-text);
    background: var(--ff2-bg);
}

/* FIX FUNDAMENTAL: estabilidade de viewport em mobile/emulador */
html,
body {
    height: 100%;
}

body.ff2 {
    min-height: 100dvh;
    overflow-x: hidden;
    background: var(--ff2-bg) !important;
}

/* Garante que nada “empurre” o dock pra fora */
.ff2-shell {
    min-height: 100dvh;
    position: relative;
    padding-bottom: calc(var(--ff2-dock-h) + env(safe-area-inset-bottom));
}

/* Fundo com identidade (sem imagens por enquanto — depois plugamos o PNG tile) */
.ff2-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 12%, rgba(168, 85, 247, .18), transparent 45%),
        radial-gradient(circle at 86% 18%, rgba(236, 72, 153, .15), transparent 45%),
        radial-gradient(circle at 45% 88%, rgba(59, 130, 246, .12), transparent 50%),
        linear-gradient(180deg, rgba(2, 6, 23, .2), rgba(2, 6, 23, .85));
}

/* TOPBAR */
.ff2-topbar {
    position: sticky;
    top: 0;
    z-index: 2000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(2, 6, 23, 0.55);
    border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.ff2-topbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ff2-brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    text-decoration: none;
    color: var(--ff2-white);
}

.ff2-brand-mark {
    font-weight: 900;
    letter-spacing: .02em;
    font-size: 18px;
    background: linear-gradient(90deg, var(--ff2-p1), var(--ff2-p2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ff2-brand-tag {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: rgba(226, 232, 240, .85);
}

.ff2-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ff2-iconbtn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .05);
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease;
}

.ff2-iconbtn:active {
    transform: scale(.98);
}

.ff2-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .05);
    color: #f8fafc;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease;
    font-weight: 800;
    font-size: 12px;
}

.ff2-pill:active {
    transform: scale(.99);
}

.ff2-pill i {
    opacity: .95;
}

.ff2-pill-ghost {
    background: rgba(255, 255, 255, .04);
}

.ff2-pill-danger {
    border-color: rgba(239, 68, 68, .35);
    background: rgba(239, 68, 68, .16);
}

/* LAYOUT */
.ff2-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px;
}

.ff2-layout {
    display: flex;
    gap: 16px;
}

.ff2-side {
    display: none;
    width: 220px;
    flex-shrink: 0;
}

.ff2-side-card {
    position: sticky;
    top: 78px;
    border-radius: var(--ff2-radius2);
    border: 1px solid var(--ff2-border);
    background: rgba(2, 6, 23, .55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 10px;
}

.ff2-side-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 18px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(148, 163, 184, .92);
    cursor: pointer;
    font-weight: 800;
    text-align: left;
}

.ff2-side-item:hover {
    background: rgba(255, 255, 255, .04);
    color: #f8fafc;
}

.ff2-side-item.is-active {
    background: linear-gradient(135deg, rgba(168, 85, 247, .22), rgba(236, 72, 153, .16));
    border-color: rgba(255, 255, 255, .10);
    color: #fff;
}

.ff2-side-item i {
    width: 20px;
    text-align: center;
}

/* CONTENT */
.ff2-content {
    flex: 1;
    min-width: 0;
}

/* PAGES */
.ff2-page {
    animation: ff2In .18s ease both;
}

@keyframes ff2In {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

/* CARDS */
.ff2-card,
.ff2-block {
    border-radius: var(--ff2-radius2);
    border: 1px solid var(--ff2-border);
    background: var(--ff2-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
    margin-bottom: 14px;
}

.ff2-card-head,
.ff2-block-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ff2-h2 {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: .01em;
    color: #f8fafc;
}

.ff2-h3 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 950;
    color: #f8fafc;
}

.ff2-muted {
    margin: 0;
    font-size: 12px;
    color: var(--ff2-muted);
    line-height: 1.35;
}

/* BUTTONS */
.ff2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 14px;
    font-weight: 950;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .05);
    color: #fff;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.ff2-btn:active {
    transform: scale(.99);
}

.ff2-btn-primary {
    border: none;
    background: linear-gradient(135deg, var(--ff2-p1), var(--ff2-p2));
    box-shadow: 0 18px 40px rgba(236, 72, 153, .22);
}

.ff2-btn-primary:hover {
    box-shadow: 0 22px 55px rgba(236, 72, 153, .28);
}

.ff2-link {
    border: none;
    background: transparent;
    color: rgba(196, 181, 253, .95);
    font-weight: 900;
    cursor: pointer;
    padding: 6px 2px;
}

/* HERO */
.ff2-hero {
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, .16);
    background:
        radial-gradient(circle at 20% 0%, rgba(168, 85, 247, .22), transparent 55%),
        radial-gradient(circle at 100% 10%, rgba(236, 72, 153, .18), transparent 55%),
        rgba(2, 6, 23, .55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
    padding: 14px;
    margin-bottom: 14px;
}

.ff2-hero-top {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.ff2-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ff2-hello {
    margin: 0 0 2px;
    font-weight: 950;
    font-size: 15px;
    color: #f8fafc;
}

.ff2-sub {
    margin: 0;
    font-size: 12px;
    color: rgba(226, 232, 240, .85);
    line-height: 1.35;
}

.ff2-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.ff2-stat {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(2, 6, 23, .55);
    padding: 10px 10px;
}

.ff2-stat-k {
    font-size: 9px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, .9);
    font-weight: 950;
}

.ff2-stat-v {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 950;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* QUICK */
.ff2-quick {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.ff2-quick-card {
    width: 100%;
    border-radius: 22px;
    padding: 12px 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: transform .15s ease;
}

.ff2-quick-card:active {
    transform: scale(.99);
}

.ff2-quick-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ff2-quick-title {
    font-weight: 950;
    font-size: 13px;
}

.ff2-quick-sub {
    font-size: 11px;
    color: rgba(148, 163, 184, .92);
}

.ff2-quick-cta {
    padding: 10px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(168, 85, 247, .95), rgba(236, 72, 153, .95));
    font-weight: 950;
    font-size: 11px;
    box-shadow: 0 18px 40px rgba(236, 72, 153, .18);
}

.ff2-quick-alt .ff2-quick-cta {
    background: linear-gradient(135deg, rgba(59, 130, 246, .95), rgba(168, 85, 247, .92));
}

/* HOME tips */
.ff2-tips {
    display: grid;
    gap: 10px;
}

.ff2-tip {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ff2-tip-ico {
    width: 34px;
    height: 34px;
    border-radius: 14px;
    background: rgba(168, 85, 247, .14);
    border: 1px solid rgba(168, 85, 247, .18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ff2-tip-txt {
    font-size: 12px;
    color: rgba(226, 232, 240, .88);
    line-height: 1.35;
}

/* CREATE layout */
.ff2-create {
    max-width: 560px;
    margin: 0 auto;
}

.ff2-create-head {
    margin-bottom: 10px;
}

.ff2-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ff2-step-title {
    font-weight: 950;
    font-size: 13px;
    color: #fff;
}

.ff2-step-badge {
    font-size: 11px;
    font-weight: 950;
    color: rgba(226, 232, 240, .9);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
}

.ff2-step-badge-soft {
    color: rgba(196, 181, 253, .95);
}

.ff2-row-right {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Support grid */
.ff2-support {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.ff2-support-item {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    padding: 14px;
}

.ff2-support-ico {
    width: 44px;
    height: 44px;
    border-radius: 18px;
    background: rgba(59, 130, 246, .14);
    border: 1px solid rgba(59, 130, 246, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 10px;
}

.ff2-support-title {
    font-weight: 950;
    color: #fff;
    margin-bottom: 2px;
}

.ff2-support-sub {
    font-size: 12px;
    color: rgba(148, 163, 184, .92);
    margin-bottom: 10px;
}

/* RESULT */
.ff2-result .generated-look-image {
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}

/* ✅ DOCK V2 (mobile-first, FIXED estável) */
.ff2-dock {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    width: min(520px, calc(100% - 18px));
    height: var(--ff2-dock-h);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));

    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(2, 6, 23, .72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
    z-index: 99999;
    will-change: transform;
}

.ff2-dock-item {
    flex: 1;
    border: none;
    background: transparent;
    color: rgba(148, 163, 184, .92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    min-width: 0;
}

.ff2-dock-item i {
    font-size: 16px;
    opacity: .95;
}

.ff2-dock-item.is-active {
    color: #fff;
}

.ff2-dock-item.is-active i {
    filter: drop-shadow(0 8px 18px rgba(236, 72, 153, .22));
}

/* FAB criar */
.ff2-dock-fab {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--ff2-p1), var(--ff2-p2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 22px 60px rgba(236, 72, 153, .32);
    transform: translateY(-14px);
}

.ff2-dock-fab i {
    font-size: 18px;
}

.ff2-dock-fab:active {
    transform: translateY(-14px) scale(.99);
}

/* Desktop: mostra sidebar, dock pode ficar (ou ocultar se quiser) */
@media (min-width: 980px) {
    .ff2-side {
        display: block;
    }

    /* Se quiser esconder dock no desktop, descomenta:
  .ff2-dock{ display:none; }
  .ff2-shell{ padding-bottom: 0; }
  */
    .ff2-quick {
        grid-template-columns: 1fr 1fr;
    }

    .ff2-support {
        grid-template-columns: 1fr 1fr;
    }
}

/* Hard fix: se algum CSS legado esconder a nav antiga, não importa.
   O dock v2 é independente. */
.member-bottom-nav {
    display: none !important;
}

/* Dark mode do seu sistema (opcional): mantém legibilidade */
.member-page.member-dark.ff2 .ff2-shell::before {
    opacity: 1;
}