@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #0a0a0c;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --accent-primary: #8b5cf6;
    /* Vibrant Purple */
    --accent-secondary: #06b6d4;
    /* Cyan */
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --error: #ef4444;

    /* Spacing & Sizes */
    --container-max: 1200px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glassmorphism Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

/* Common Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: var(--container-max);
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-accent {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-btn {
    position: relative;
    color: var(--text-main);
    padding: 0.5rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.login-btn {
    padding: 0.6rem 1.5rem;
    color: var(--text-main);
    font-weight: 600;
}

.login-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Hero */
.hero {
    padding: 12rem 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    color: var(--text-main);
}

.hero-circles .circle {
    position: absolute;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
    border-radius: 50%;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: -50px;
    left: -50px;
}

/* Features */
.features {
    padding: 4rem 0;
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.feature-card i {
    width: 60px;
    height: 60px;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

/* Products */
.products {
    padding: 8rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.filters {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card:hover {
    background: var(--bg-card-hover);
}

.product-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-primary);
    font-weight: 700;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
}

.product-features {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-features i {
    color: var(--success);
    width: 16px;
    height: 16px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    height: 100dvh;
    z-index: 2000;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qty-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.4rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    border-radius: 50%;
    font-weight: 800;
}

.qty-btn:hover {
    background: white;
    color: black;
}

.qty-value {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.remove-item {
    color: var(--error);
    opacity: 0.6;
}

.remove-item:hover {
    opacity: 1;
}

.cart-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 3rem;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: var(--radius-md);
    color: var(--text-main);
}

.pix-instructions {
    background: rgba(16, 185, 129, 0.1);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    text-align: center;
}

.w-full {
    width: 100%;
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .filters {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 1rem;
    }
}

/* Instagram Link in Nav */
.instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-main);
    transition: var(--transition);
}

.instagram-link:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 8rem 0;
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.05), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-content p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--accent-primary);
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.instagram-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
}

.about-image {
    position: relative;
    height: 400px;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
    opacity: 0.5;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    bottom: 20%;
    left: 40%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* FAQ Section */
.faq {
    padding: 8rem 0;
}

.section-header.center {
    text-align: center;
    flex-direction: column;
    margin-bottom: 4rem;
}

.section-header.center h2 {
    margin-bottom: 1rem;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    margin-bottom: 1rem;
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    pointer-events: none;
    /* Let click pass to parent */
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-dim);
}

.faq-item.active .faq-question {
    color: var(--accent-primary);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem;
    max-height: 500px;
}

/* Auth Elements */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
}

.user-profile i {
    color: var(--accent-primary);
}

.logout-btn {
    color: var(--error);
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.logout-btn:hover {
    text-decoration: underline;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.auth-switch a {
    color: var(--accent-primary);
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Profile Page Premium */
.profile-section {
    padding: 12rem 0 8rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 5rem;
}

.profile-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.profile-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3.5rem;
    align-items: start;
}

.profile-info {
    padding: 4rem 2.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.user-avatar-large {
    width: 140px;
    height: 140px;
    background: var(--accent-gradient);
    border-radius: 50%;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar-large i {
    width: 60px;
    height: 60px;
}

.avatar-edit {
    margin-bottom: 2.5rem;
}

#profile-username {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
}

#profile-email {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.profile-stats {
    width: 100%;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Order History */
.order-history {
    padding: 2.5rem;
}

.order-history h3 {
    margin-bottom: 2rem;
}

/* Order History Refinement */
.order-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: var(--transition-base);
}

.order-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.order-header {
    padding: 1.25rem 1.75rem;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.order-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.order-id {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent-secondary);
}

.order-date {
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-status {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-pendente {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.order-details {
    padding: 2rem 1.75rem;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.item-name {
    color: white;
    font-weight: 600;
}

.item-price {
    font-weight: 700;
}

.order-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.order-total-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.order-total-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.order-delivery {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.order-delivery i {
    color: var(--accent-secondary);
}

.order-pix-area {
    margin-top: 2rem;
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
}

.order-pix-area p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--accent-secondary);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pix-qr-container {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.pix-qr-container img {
    width: 200px;
    height: 200px;
}

.btn-primary.copy-pix {
    background: var(--accent-gradient);
    font-weight: 700;
    text-transform: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

/* Avatar Edit */
.avatar-edit {
    margin-top: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

/* Profile Sidebar Logout Button */
.btn-logout {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Order Section Headers */
.section-header {
    margin-bottom: 2rem;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Precise Order Card Adjustments */
.order-card {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.order-header {
    padding: 1rem 1.75rem;
    background: rgba(255, 255, 255, 0.02);
}

.order-id {
    font-size: 1rem;
    font-weight: 800;
}

.order-date {
    font-size: 0.85rem;
    font-weight: 600;
}

.order-status {
    border-radius: 6px;
    font-size: 0.65rem;
    padding: 0.4rem 1rem;
}

.order-details {
    padding: 1.5rem 1.75rem;
}

.order-item-row {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.item-name {
    font-weight: 700;
}

.order-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
    margin-bottom: 1rem;
}

.order-total-label {
    font-size: 1rem;
}

.order-total-value {
    font-size: 1.1rem;
}

.order-delivery {
    font-size: 0.85rem;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.order-pix-area {
    background: rgba(0, 0, 0, 0.3);
    padding: 2.5rem 1.5rem;
    margin-top: 0;
}

.pix-qr-container {
    padding: 1rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.pix-qr-container img {
    width: 160px;
    height: 160px;
}


.navbar-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-primary);
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.success-modal.active {
    opacity: 1;
    visibility: visible;
}

.success-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-modal.active .success-card {
    transform: translateY(0);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
    animation: scale-up 0.5s forwards;
}

.success-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.success-card p {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.redirect-notice {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@keyframes scale-up {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem;
    z-index: 1001;
    cursor: pointer;
}

/* Responsiveness Update */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 1000;
        padding: 2rem;
    }

    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease forwards;
    }

    .nav-links li a {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-info {
        position: static;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* FIX: Force Ranking Column on Mobile */
    .top-three,
    .prizes-grid,
    .ranking-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }

    /* Ensure elements don't get stuck hidden on mobile */
    .fade-in,
    .scale-in,
    .slide-in-left,
    .slide-in-right,
    .product-card,
    .rank-card,
    .list-item,
    .prize-card {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        visibility: visible !important;
    }

    .products,
    .ranking-section {
        display: block !important;
        opacity: 1 !important;
    }

    .nav-actions {
        display: flex;
        flex-direction: row;
        /* Keep in row */
        align-items: center;
        gap: 0.6rem;
        width: auto;
        margin-top: 0;
    }

    /* Hide socials on mobile to save space */
    .social-link {
        display: none;
    }

    /* Compact Login Button */
    .login-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Ensure login/profile buttons are visible */
    #auth-nav {
        display: flex;
        align-items: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .about-image {
        height: 250px;
    }

    .instagram-link {
        display: none;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .cart-sidebar {
        width: 100%;
        padding-bottom: 80px;
        /* Safe area for mobile toolbar */
    }

    .checkout-modal .modal-content,
    .login-modal .modal-content,
    .register-modal .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .success-card {
        padding: 2rem 1.5rem;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .order-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .order-total-value {
        font-size: 1.1rem;
    }
}

/* Promo Banner +18 */
.promo-banner-container {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    margin-bottom: 4rem;
}

.promo-banner {
    display: block;
    padding: 2.5rem;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
    text-decoration: none;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.promo-banner:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(139, 92, 246, 0.2));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    justify-content: space-between;
}

.promo-icon {
    width: 60px;
    height: 60px;
    color: #ef4444;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
}

.promo-text h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ff4d4d, #b366ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.promo-text p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Ranking Section */
.ranking-section {
    padding: 6rem 0;
    background: radial-gradient(circle at top, rgba(139, 92, 246, 0.05), transparent);
}

.reset-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    margin-top: 1rem;
}

.reset-timer i {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.ranking-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 4rem 0;
}

.top-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: flex-end;
}

.rank-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: var(--transition-base);
}

.rank-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.rank-card.gold {
    border-color: #fbbf24;
    background: linear-gradient(to bottom, rgba(251, 191, 36, 0.05), rgba(255, 255, 255, 0.02));
    padding: 3.5rem 2.5rem;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.1);
}

.rank-card.silver {
    border-color: #94a3b8;
}

.rank-card.bronze {
    border-color: #b45309;
}

.rank-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background: var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    border: 2px solid inherit;
}

.gold .rank-badge {
    background: #fbbf24;
    color: #000;
}

.silver .rank-badge {
    background: #94a3b8;
    color: #000;
}

.bronze .rank-badge {
    background: #b45309;
}

.rank-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    padding: 3px;
    background: var(--accent-gradient);
}

.rank-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #000;
}

.rank-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.rank-amount {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent-primary);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 20px;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    transition: var(--transition-base);
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.list-rank {
    width: 40px;
    font-weight: 900;
    color: var(--text-dim);
}

.list-name {
    flex: 1;
    font-weight: 600;
}

.list-value {
    font-weight: 800;
    color: var(--accent-secondary);
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.prize-card {
    padding: 2rem;
    text-align: center;
    border-radius: 20px;
}

.prize-card i {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.prize-card h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.prize-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

@media (max-width: 992px) {

    .prizes-grid,
    .top-three {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .rank-card.gold {
        order: -1;
        padding: 2.5rem;
    }
}


/* Adult Section Mega Banner */
.adult-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-bottom: 5rem;
}

.mega-banner-wrapper {
    margin-top: 4rem;
    width: 100%;
}

.mega-banner {
    padding: 4rem !important;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(139, 92, 246, 0.15)) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.1);
}

.promo-text-group {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.promo-badge-icon {
    width: 80px;
    height: 80px;
    color: #ef4444;
    filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.7));
}

.mega-btn {
    font-size: 1.4rem !important;
    padding: 1.5rem 3.5rem !important;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4) !important;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.7);
    }

    100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    }
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dim);
    font-size: 1.1rem;
    font-weight: 500;
}

.badge i {
    width: 20px;
    height: 20px;
    color: #ef4444;
}

.circle-red {
    background: #ef4444;
    width: 500px;
    height: 500px;
    top: -100px;
    left: -100px;
    opacity: 0.1;
    filter: blur(120px);
}

.circle-purple {
    background: #8b5cf6;
    width: 400px;
    height: 400px;
    bottom: -50px;
    right: -50px;
    opacity: 0.1;
    filter: blur(100px);
}

@media (max-width: 992px) {
    .promo-content {
        flex-direction: column;
        gap: 3rem;
    }

    .promo-text-group {
        flex-direction: column;
        text-align: center;
    }

    .mega-banner {
        padding: 3rem 2rem !important;
    }

    .trust-badges {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
}


/* Telegram Social Styles */
.social-link.telegram:hover {
    color: #0088cc !important;
    border-color: rgba(0, 136, 204, 0.4) !important;
    background: rgba(0, 136, 204, 0.1) !important;
}

.social-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.telegram-btn:hover {
    color: #0088cc !important;
    border-color: rgba(0, 136, 204, 0.4) !important;
    background: rgba(0, 136, 204, 0.1) !important;
}

@media (max-width: 480px) {
    .social-btns {
        flex-direction: column;
    }
}


/* Laras Rules Section */
.rules-section {
    padding: 4rem 0 8rem;
}

.rules-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(139, 92, 246, 0.05));
}

.rules-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.rules-icon {
    width: 40px;
    height: 40px;
    color: #ef4444;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
}

.rules-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rule-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-base);
}

.rule-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rule-item p {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 1.05rem;
}

.rules-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.vendedor-tag {
    display: inline-flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vendedor-tag span {
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}

.vendedor-tag strong {
    font-size: 1.8rem;
    color: var(--accent-primary);
    font-weight: 900;
}


/* Admin Badge Styles */
.admin-badge {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #000 !important;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: var(--transition-base);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.admin-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.5);
}

.admin-badge i {
    width: 14px;
    height: 14px;
}

.user-menu-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

.btn-logout-small {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition-base);
}

.btn-logout-small:hover {
    color: #ef4444;
}


/* 3D Card Animation */
@keyframes rotate-3d {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }

    50% {
        transform: perspective(1000px) rotateY(15deg);
    }

    100% {
        transform: perspective(1000px) rotateY(0deg);
    }
}

.card-3d-rotate {
    animation: rotate-3d 4s ease-in-out infinite;
    transform-style: preserve-3d;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

/* Missing Product Card Style - Fixes Overflow */
.product-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 20px;
    height: 100%;
}

.product-image-card {
    border-radius: 15px;
    width: 100%;
    margin-bottom: 1rem;
    display: block;
}

/* Fix Mobile Profile Visibility */
@media (max-width: 992px) {
    .profile-info {
        display: flex !important;
        flex-direction: column;
        width: 100% !important;
        margin-bottom: 2rem;
        position: relative !important;
        z-index: 10;
        background: rgba(20, 20, 25, 0.95);
        border: 1px solid var(--glass-border);
    }

    .profile-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem;
    }

    .order-history {
        width: 100%;
    }
}

.card-3d-rotate:hover {
    animation-play-state: paused;
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}