/* Sugar VIP - Premium Design */

:root {
    --primary-gold: #D4AF37;
    --primary-dark: #1a1a1a;
    --secondary-dark: #2d2d2d;
    --accent-rose: #C9A0DC;
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #AA8B2F 100%);

    /* Status Colors */
    --status-success: #28a745;
    --status-warning: #ffc107;
    --status-error: #dc3545;
}

/* GLOBAL OVERFLOW FIXES */
html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
    width: 100%;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 1.2rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.navbar-scrolled {
    padding: 0.8rem 0;
    background: rgba(26, 26, 26, 0.98);
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ensure Desktop Hidden on Large Screens */
@media (min-width: 1025px) {
    .mobile-only {
        display: none !important;
    }

    .hamburger-btn {
        display: none !important;
    }
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-gold);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* New User Menu Styles from base.html */
.user-menu {
    position: relative;
    display: inline-block;
}

.btn-user {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-user:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--secondary-dark);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    margin-top: 0.5rem;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: rgba(212, 175, 55, 0.1);
    padding-left: 1.5rem;
}

/* Notification Styles */
.messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background: rgba(76, 209, 55, 0.2);
    border: 1px solid #4cd137;
    color: #4cd137;
}

.alert-error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.alert-info {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid #667eea;
    color: #667eea;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(ellipse at top, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
}

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

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Section Styles */
.section {
    padding: 100px 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--secondary-dark);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    /* Glass background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-control:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-light);
    /* Ensure text remains visible */
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

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

/* How It Works Steps */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.step p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-gold);
}

.value-item h3 {
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.value-item p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: 80px 2rem;
    text-align: center;
    border-radius: 30px;
    margin: 100px 2rem;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer (Updated based on base.html) */
.footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-left: 3px solid var(--primary-gold);
    padding-left: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
    /* Override flex */
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-gold);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
/* =========================================
   RESPONSIVE NAVIGATION & LAYOUT
   ========================================= */

/* 1. Base Visibility Classes (Default: Desktop) */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: flex !important;
}

/* 2. Base Hamburger Button */
/* 2. Base Hamburger Button */
.hamburger-btn {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
    /* Ensure it is above overlay */
    padding: 0;
    position: relative;
}

.hamburger-btn span {
    width: 100%;
    height: 2px;
    background: var(--primary-gold);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(0px, -2px);
    width: 32px;
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0px, 2px);
    width: 32px;
}

/* 3. Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* =========================================
   MEDIA QUERIES
   ========================================= */

/* Tablet & Mobile (Max Width: 1024px) */
@media (max-width: 1024px) {

    /* Layout Adjustments */
    .nav-container {
        padding: 0 1.5rem;
        position: relative;
        height: 70px;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.5rem;
    }

    /* Force Desktop Elements Hidden */
    .desktop-only {
        display: none !important;
    }

    /* Show Mobile Elements */
    .mobile-only {
        display: block !important;
    }

    /* Hamburger Button Visible */
    .hamburger-btn {
        display: flex;
        /* Flex to align spans */
        position: absolute;
        right: 1.5rem;
        top: 24px;
    }

    /* Mobile Navigation Slide-in */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 2rem 2rem;
        /* Top padding for close button space */
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        display: flex !important;
        border-left: 1px solid rgba(212, 175, 55, 0.1);
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        font-size: 1.1rem;
        color: var(--text-light);
        display: block;
        padding: 0.5rem 0;
        width: 100%;
        text-align: left;
    }

    .nav-links a:hover {
        color: var(--primary-gold);
        padding-left: 10px;
    }

    /* Additional Mobile-only elements */
    .mobile-only.user-greeting {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-gold);
        margin: 1rem 0;
        text-align: left;
    }

    .mobile-only.divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 1rem 0;
    }

    .btn-upgrade-mobile {
        background: var(--gradient-gold);
        color: #000 !important;
        padding: 0.8rem 1rem !important;
        border-radius: 8px;
        text-align: center !important;
        font-weight: bold;
        margin-bottom: 0.5rem;
        display: block;
    }

    /* Container Spacing Logic */
    .dashboard-container,
    .checkout-container,
    .schedule-container,
    .plans-container,
    .section-container {
        padding: 0 16px;
        max-width: 100%;
        margin-top: 100px;
        /* Essential for fixed header */
        margin-bottom: 40px;
    }
}

/* Mobile Specific (Max Width: 768px) */
@media (max-width: 768px) {

    /* Font Sizing */
    h1,
    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Hero Responsive Fixes */
    .hero {
        padding-top: 140px;
        /* Space for fixed header */
        padding-bottom: 3rem;
        min-height: auto;
        padding-left: 16px;
        padding-right: 16px;
        align-items: flex-start;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
        max-width: 100%;
        text-align: center;
    }

    .hero-content {
        padding: 0;
        text-align: center;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero .btn-primary,
    .hero .btn-secondary {
        width: 100%;
        display: block;
        margin: 0;
    }

    .hero-image {
        margin-top: 2rem;
        max-width: 100%;
    }

    .hero-image img {
        width: 100%;
        height: auto;
    }

    /* Grids to Single Column */
    .steps-container,
    .values-grid,
    .footer-grid,
    .grid-layout,
    .metrics-grid,
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Full Width Elements */
    .btn-primary,
    .btn-secondary,
    .btn-gold,
    button,
    .action-card {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .form-control,
    input,
    select {
        width: 100%;
        font-size: 16px;
    }

    /* Metric Cards in Dashboard */
    .metric-card {
        padding: 15px;
    }

    .metric-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .metric-info .value {
        font-size: 1.2rem;
    }
}

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

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Added Hero Image Style */
.hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   DASHBOARD STYLES
   ========================================= */

.dashboard-container {
    max-width: 1200px;
    margin: 100px auto 40px;
    /* Top margin for fixed navbar */
    padding: 0 2rem;
    min-height: 80vh;
}

.page-header {
    margin-bottom: 3rem;
    text-align: center;
    /* Optional: left aligned looks good too, but center is safe */
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Top Badges */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-approved {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.badge-rejected {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Glass Cards */
.glass-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.3);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title-gold {
    color: var(--primary-gold);
}

/* Stat Rows */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.stat-value {
    color: var(--text-light);
    font-weight: 500;
}

/* Alerts and Notices */
.glass-panel {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.alert-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alert-gold {
    border-left: 4px solid var(--primary-gold);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, rgba(30, 30, 30, 0.4) 100%);
}

/* Buttons inside cards */
.btn-full {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0.8rem;
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    border: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

/* Utilities */
.text-secondary-sm {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* =========================================
   PROFILE EDIT STYLES
   ========================================= */

.profile-edit-container {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 50px;
}

.profile-card {
    background: var(--secondary-dark);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.profile-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Tabs Styling - Improved */
.tabs-container {
    margin-bottom: 2.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: none;
    list-style: none;
    margin: 0;
    padding-left: 0;
    justify-content: center;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tabs .nav-link {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tabs .nav-link:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    border-color: transparent;
    transform: translateY(-1px);
}

.nav-tabs .nav-link.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* Tab Content */
.tab-content {
    padding: 1rem 0;
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s ease-out;
}

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

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

/* Profile Edit Specific Classes */
.profile-edit-container {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 50px;
}

.profile-card {
    background: var(--secondary-dark);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.profile-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.section-subtitle-small {
    font-size: 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-title {
    color: var(--primary-gold);
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Form Layout & Controls */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-card {
        padding: 1.5rem;
    }
}

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

.form-label {
    display: block;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

.helptext {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.form-check-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-check-label {
    margin: 0;
    cursor: pointer;
    color: var(--text-light);
}

input[type="file"] {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.current-file-info {
    font-size: 0.85rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

/* Utilities */
.d-grid {
    display: grid;
}

.gap-2 {
    gap: 0.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.text-muted {
    color: var(--text-muted);
}

.nav-item {
    list-style: none;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.photo-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.photo-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}

.photo-preview {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.photo-empty {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    border: 2px dashed rgba(212, 175, 55, 0.2);
}

.photo-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

/* Alerts */
.alert-verification {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-left: 4px solid #ffc107;
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.alert-rejection {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-left: 4px solid #ff6b6b;
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.alert-rejection strong {
    color: #ff6b6b;
    display: block;
    margin-bottom: 0.5rem;
}

.alert-rejection p {
    margin: 0;
    font-size: 0.95rem;
}

/* Custom Buttons */
.btn-profile-submit {
    width: 100%;
    background: var(--gradient-gold);
    color: var(--primary-dark);
    padding: 1rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: block;
    text-align: center;
    text-decoration: none;
}

.btn-profile-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-profile-secondary {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.btn-profile-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

.btn-profile-view {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    background: rgba(106, 90, 205, 0.1);
    border: 1px solid #6a5acd;
    color: #6a5acd;
    text-align: center;
    padding: 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-profile-view:hover {
    background: rgba(106, 90, 205, 0.2);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.2);
    transform: translateY(-2px);
}

/* ================================================
   CATALOG PREVIEW SECTION
   Solo visible para caballeros suscritos
   ================================================ */

.catalog-preview {
    background: linear-gradient(180deg, #1a1a1a 0%, #242424 100%);
    padding: 80px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.catalog-preview .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.catalog-preview-header {
    text-align: center;
    margin-bottom: 48px;
}

.catalog-preview-title {
    font-size: 2rem;
    color: #D4AF37;
    font-style: italic;
    margin-bottom: 8px;
}

.catalog-preview-subtitle {
    color: #888888;
    font-size: 1rem;
}

/* Grid de Cards */
.catalog-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Card Individual */
.preview-card {
    background: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
}

.preview-card-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.preview-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.preview-card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-card-name {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1rem;
}

.preview-card-city {
    color: #888888;
    font-size: 0.875rem;
}

/* CTA Button */
.catalog-preview-cta {
    text-align: center;
}

.btn-ver-catalogo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #D4AF37;
    color: #1a1a1a;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-ver-catalogo:hover {
    background: #e5c349;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn-ver-catalogo .arrow {
    transition: transform 0.3s ease;
}

.btn-ver-catalogo:hover .arrow {
    transform: translateX(4px);
}

/* Navbar Explore Link */
.nav-link-explore {
    color: #D4AF37 !important;
    font-weight: 500;
    margin-left: 20px;
    transition: opacity 0.3s;
}

.nav-link-explore:hover {
    opacity: 0.8;
    color: #fff !important;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1024px) {
    .catalog-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Ocultar 4ta card en tablet */
    .preview-card:nth-child(4) {
        display: none;
    }
}

@media (max-width: 768px) {
    .catalog-preview {
        padding: 60px 0;
    }

    .catalog-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Ocultar 3ra card en móvil */
    .preview-card:nth-child(3) {
        display: none;
    }

    .catalog-preview-title {
        font-size: 1.5rem;
    }

    .btn-ver-catalogo {
        width: 100%;
        justify-content: center;
        padding: 14px 32px;
    }
}

@media (max-width: 480px) {
    .catalog-preview-grid {
        grid-template-columns: 1fr;
    }

    /* Mostrar solo 2 cards en móvil pequeño */
    .preview-card:nth-child(n+3) {
        display: none;
    }
}

/* Password Change Page Styles */
.password-container {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 50px;
}

.password-card {
    background: var(--secondary-dark);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 3rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.password-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Generic Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    color: var(--text-light);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.btn-submit {
    width: 100%;
    background: var(--gradient-gold);
    color: var(--primary-dark);
    padding: 1rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

.errorlist {
    list-style: none;
    padding: 0;
    color: #ff6b6b;
    margin-top: 0.5rem;
}

.helptext {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

/* Auth Pages Styles (Login, Reset Password, etc.) */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 50px;
}

.auth-card {
    background: var(--secondary-dark);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 3rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.back-link a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link a:hover {
    color: var(--primary-gold);
}

/* Legal Pages Styles (Terms, Privacy, FAQs) */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    color: var(--text-light);
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-size: 2.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 0.5rem;
}

.legal-content p,
.legal-content ul {
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 20px;
}

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

/* Mobile Dashboard & Global Fixes */
@media (max-width: 600px) {
    .dashboard-container {
        margin-top: 120px;
        /* Space for fixed header content */
        padding: 0 1rem;
    }

    /* Ensure cards don't overflow */
    .grid-layout {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Smaller, squarer buttons as requested */
    .btn-primary,
    .btn-secondary,
    .btn-gold,
    .btn-detail,
    .btn-action {
        border-radius: 10px;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        width: 100%;
        /* Full width usually looks better on mobile or use auto with block */
        display: inline-block;
    }

    .btn-user {
        border-radius: 8px;
    }

    /* Fix header overlap issues if any remains */
    .page-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
}

/* Footer Social Icons */
.footer-social-section {
    margin-top: 2rem;
}

.social-label {
    color: var(--primary-gold);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    border-color: var(--primary-gold);
}

.social-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2px;
}