@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Modern Color Palette */
    --primary-dark: #0d1b2a;
    --secondary-dark: #1f2937;
    --accent-gold: #C5A059;
    --obsidian: #111111;
    --alabaster: #FFFFFF;
    --smoke: #F9F9F9;
    --platinum: #EDEDED;
    --glass-bg: rgba(255, 255, 255, 0.85);

    /* Neutral Grays */
    --gray-900: #171717;
    --gray-500: #737373;
    --gray-200: #E5E5E5;

    /* Shadows & Transitions */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --header-height: 90px;
    --section-py: 100px;
}


body {
    font-family: 'Poppins', sans-serif;
    color: var(--obsidian);
    background-color: var(--alabaster);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: var(--header-height);
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--obsidian);
    line-height: 1.2;
}

/* Professional Dark Background Visibility */
.bg-dark,
.bg-obsidian {
    background-color: var(--obsidian);
    color: var(--alabaster);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.bg-dark p,
.bg-dark span,
.bg-obsidian h1,
.bg-obsidian h2,
.bg-obsidian h3,
.bg-obsidian h4,
.bg-obsidian h5,
.bg-obsidian h6,
.bg-obsidian p,
.bg-obsidian span,
.carousel-caption h1,
.carousel-caption h2,
.carousel-caption h3,
.carousel-caption h4,
.carousel-caption h5,
.carousel-caption h6,
.carousel-caption p {
    color: var(--alabaster) !important;
}

.bg-dark .text-gray-500,
.bg-obsidian .text-gray-500 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.text-serif {
    font-family: 'Playfair Display', serif;
}

.italic {
    font-style: italic;
}

/* Editorial Utilities */
.py-editorial {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

.border-thin {
    border: var(--border-ultra-thin);
}

/* Premium Logo Evolution (MEGAMALL Style) */
.navbar-brand-premium {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
    transition: var(--transition-smooth);
}

.logo-icon-premium {
    width: 52px;
    height: 52px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.1);
}

.logo-icon-premium i {
    font-size: 1.6rem;
    color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: white;
    letter-spacing: 4px;
    line-height: 0.9;
    text-transform: uppercase;
}

.logo-slogan {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 500;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 0.9;
}

.navbar-brand-premium:hover .logo-icon-premium {
    border-color: white;
    transform: rotate(5deg) scale(1.05);
}

.navbar-brand-premium:hover .logo-icon-premium i {
    color: white;
}

.scrolled .logo-main-title {
    font-size: 1.5rem;
}

.scrolled .logo-icon-premium {
    width: 44px;
    height: 44px;
}

.scrolled .logo-icon-premium i {
    font-size: 1.3rem;
}

.tracking-vogue {
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
}

.bg-smoke {
    background-color: var(--smoke);
}

.text-gold {
    color: var(--gold-leaf);
}

/* Editorial Buttons */
.btn-obsidian {
    background-color: var(--obsidian);
    color: var(--alabaster);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 0;
}

.btn-premium-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b08d4a 100%);
    color: white !important;
    border: none;
    padding: 1rem 3rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-premium-gold:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.4);
    color: white !important;
}

.btn-outline-obsidian {
    background-color: transparent;
    color: var(--obsidian);
    border: 1px solid var(--obsidian);
    padding: 1rem 2.5rem;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border-radius: 0;
}

.btn-outline-obsidian:hover {
    background-color: var(--obsidian);
    color: var(--alabaster);
}

/* Editorial Cards */
.card-editorial {
    background: var(--alabaster);
    border: var(--border-ultra-thin);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    border-radius: 0;
}

.card-editorial:hover {
    border-color: var(--obsidian);
    transform: translateY(-8px);
}

.editorial-img-wrapper {
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/5;
}

.editorial-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: grayscale(0.2);
}

.card-editorial:hover .editorial-img-wrapper img {
    transform: scale(1.08);
    filter: grayscale(0);
}

/* Footer Premium */
.footer-premium {
    background-color: #0f172a;
    color: white;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.footer-premium h5 {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-premium a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-premium a:hover {
    color: white;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.social-link:hover {
    background-color: white;
    color: var(--primary-color) !important;
}

.hover-warning:hover {
    color: var(--accent-color) !important;
}

/* --- Authentication Styles --- */
.auth-wrapper {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #415a77 100%);
    padding: 3rem 0;
}

.auth-card {
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
}

.auth-card:hover {
    transform: translateY(-5px);
}

.auth-left-panel {
    background: linear-gradient(rgba(13, 27, 42, 0.8), rgba(13, 27, 42, 0.8)), url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?auto=format&fit=crop&q=80&w=1000');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--primary-dark);
}

.input-group-text {
    background: transparent;
    border-right: none;
    color: var(--gray-500);
}

.form-control-with-icon {
    border-left: none;
}

.btn-auth {
    background: var(--primary-dark);
    color: white;
    padding: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.btn-auth:hover {
    background: var(--secondary-dark);
    transform: scale(1.02);
    color: white;
    box-shadow: 0 5px 15px rgba(13, 27, 42, 0.3);
}

.text-auth-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.text-auth-link:hover {
    color: var(--accent-gold);
}

.section-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 2rem 0;
    position: relative;
}

.section-header {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.password-toggle {
    cursor: pointer;
    transition: 0.3s;
}

.password-toggle:hover {
    color: var(--primary-dark);
}

/* --- Premium UI Utilities --- */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.125);
}

.glass-dark-effect {
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-shadow {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b08d4a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.luxury-card {
    background: var(--alabaster);
    border: 1px solid var(--gray-200);
    transition: var(--transition-smooth);
    border-radius: 24px;
    overflow: hidden;
}

.luxury-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-gold);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
}

.hover-glow:hover {
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.4);
}

.tracking-luxury {
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.font-serif-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}