/* 
======================================================
   MISTCOINS - LUXURY REWARDS DESIGN SYSTEM
   Based on Gold/Phoenix Identity
======================================================
*/

/* 1. IMPORT FONTS */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette derived from Gold Phoenix Logo */
    --gold-100: #FFFDF5;
    --gold-200: #FFF4CC;
    --gold-300: #FFE699;
    --gold-400: #FFD700;
    /* Standard Gold */
    --gold-500: #D4AF37;
    /* Metallic Gold (Primary) */
    --gold-600: #B8860B;
    /* Dark Goldenrod */
    --gold-700: #8B6508;
    --gold-800: #5C4003;

    --obsidian-bg: #000000;
    --navy-fintech: #0b0f1a;
    --body-bg-color: #0b0f1a;
    /* Deepest Black */
    --charcoal-bg: #0a0a0c;
    /* Panel Background */
    --card-bg-layer: rgba(20, 20, 25, 0.6);

    --primary-gradient: linear-gradient(135deg, #FFD700 0%, #D4AF37 40%, #B8860B 100%);
    --primary-glow: 0 0 20px rgba(212, 175, 55, 0.4);

    --text-main: #F0F0F0;
    --text-muted: #888888;

    --border-light: rgba(255, 255, 255, 0.05);
    --border-gold: rgba(212, 175, 55, 0.3);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

[x-cloak] {
    display: none !important;
}

body {
    background-color: var(--charcoal-bg) !important;
    background-image: radial-gradient(circle at center, #18181b 0%, #09090b 100%) !important;
    background-attachment: fixed !important;
    color: var(--text-main);
    font-family: var(--font-body) !important;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Explicitly fix navbar transparency issues */
header,
nav,
.top-nav {
    background-color: rgba(11, 15, 26, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* Kill legacy wrapper backgrounds from style.min.css */
.wrapper::before,
.wrapper::after,
body::after {
    display: none !important;
    content: none !important;
    background: none !important;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

a {
    color: var(--gold-400);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold-200);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

::-webkit-scrollbar-track {
    background: #0a0600 !important;
}

::-webkit-scrollbar-thumb {
    background: #d97706 !important;
    border-radius: 4px !important;
    border: 2px solid #0a0600 !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #f59e0b !important;
}

/* 3. GLASSMORPHISM & FINTECH CARDS */
.glass-card,
.card,
.offer-card,
.partners-card {
    background: rgba(13, 17, 28, 0.3) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(79, 70, 229, 0.1) !important;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    border-radius: 24px !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Elite Card Glow Effects */
.glass-card::after,
.card::after,
.offer-card::after,
.partners-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), transparent 40%, rgba(59, 130, 246, 0.08));
    border-radius: inherit;
    z-index: -1;
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

.glass-card:hover,
.card:hover,
.offer-card:hover,
.partners-card:hover {
    background: rgba(17, 21, 36, 0.45) !important;
    border-color: rgba(79, 70, 229, 0.35) !important;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(79, 70, 229, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-8px) scale(1.01);
}

.glass-card:hover::after,
.card:hover::after,
.offer-card:hover::after,
.partners-card:hover::after {
    opacity: 1;
}

/* 4. BUTTONS (Luxury Style) */
.btn {
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Primary Gold Button */
.btn-primary,
.btn.primary-btn {
    background: var(--primary-gradient);
    border: none;
    color: #000;
    /* Black text on Gold for contrast */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover,
.btn.primary-btn:hover {
    background: linear-gradient(135deg, #FFE699 0%, #E6C200 100%);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    color: #000;
}

/* Secondary/Ghost Button */
.btn-secondary,
.btn.secondary-btn {
    background: rgba(212, 175, 55, 0.05);
    border: none;
    color: var(--gold-400);
}

.btn-secondary:hover:not(:disabled),
.btn.secondary-btn:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-200);
}

/* 5. NAVIGATION (Top Bar) */
.top-nav {
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    height: 70px;
    display: flex;
    align-items: center;
}

.top-nav .navbar-brand img {
    height: 45px;
    /* Adjust based on logo */
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.top-nav .balance-display {
    background: linear-gradient(90deg, rgba(20, 20, 25, 0.8) 0%, rgba(40, 35, 20, 0.8) 100%);
    border: 1px solid var(--gold-700);
    padding: 8px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-nav .balance-display .amount {
    color: var(--gold-400);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.top-nav .user-dropdown {
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    background: var(--charcoal-bg);
}

/* 6. SIDEBAR (Obsidian Theme) */
.side-nav {
    background: rgba(5, 5, 5, 0.95) !important;
    border-right: none !important;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.4);
    width: 230px;
}

.side-nav .nav-link {
    color: rgba(255, 255, 255, 0.6) !important;
    font-family: var(--font-body);
    font-weight: 500;
    margin: 4px 12px !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    transition: all 0.3s !important;
}

.side-nav .nav-link:hover,
.side-nav .nav-link.active {
    background: rgba(212, 175, 55, 0.08) !important;
    color: var(--gold-400) !important;
    border-left: none !important;
    box-shadow: inset 3px 0 0 var(--gold-500) !important;
}

.side-nav .nav-icon {
    color: var(--gold-600);
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.2));
}

/* 7. INPUTS & FORMS */
.form-control,
.form-select {
    background: rgba(20, 20, 25, 0.6) !important;
    border: none !important;
    color: var(--text-main) !important;
    border-radius: var(--radius-sm) !important;
    min-height: 44px;
}

.form-control:focus {
    border-color: var(--gold-500) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15) !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

/* 8. AUTH PAGES (Login/Register) */
.auth-wrapper {
    background: radial-gradient(circle at center, #1a1500 0%, #000000 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: rgba(14, 14, 16, 0.85);
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    max-width: 440px;
    width: 100%;
    border-radius: var(--radius-md);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

/* Abstract Phoenix feather decoration */
.auth-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--gold-600) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(30px);
}

.auth-title {
    font-family: var(--font-heading);
    color: var(--gold-400);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

/* 9. OFFERWALLS & TABLES */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-main);
    --bs-table-border-color: var(--border-light);
}

.table thead th {
    font-family: var(--font-heading);
    color: var(--gold-500);
    border-bottom: 2px solid var(--gold-800);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.partners-card {
    background: linear-gradient(145deg, rgba(24, 24, 28, 0.9), rgba(16, 16, 20, 0.95)) !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    border-radius: var(--radius-md) !important;
    transition: transform 0.3s, background 0.3s !important;
}

.partners-card:hover {
    background: linear-gradient(145deg, rgba(28, 28, 34, 0.95), rgba(20, 20, 24, 0.98)) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1) !important;
}

/* 10. ALERTS & BADGES */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-warning,
.badge-processing {
    background: rgba(255, 215, 0, 0.12);
    color: var(--gold-400);
    border: none;
}

.badge-success {
    background: rgba(0, 200, 81, 0.12);
    color: #00e676;
    border: none;
}

.alert-custom {
    background: rgba(10, 10, 15, 0.95);
    border-left: 4px solid var(--gold-500);
    color: #fff;
}

/* 11. CUSTOM SHAPES (Inspired by CRYSTAL LOGO BASE) */
.crystal-shape {
    clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%);
}

.btn-crystal {
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    background: var(--gold-800);
    color: #fff;
    border: none;
    transition: background 0.3s;
}

.btn-crystal:hover {
    background: var(--gold-600);
}

/* 12. UTILITIES */
.text-gold {
    color: var(--gold-400) !important;
}

.text-gold-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-black-glass {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

/* MESH GRADIENT OVERRIDE */
.mesh-gradient {
    background-image:
        radial-gradient(at 0% 0%, rgba(212, 175, 55, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(184, 134, 11, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(5, 5, 5, 1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(20, 20, 20, 1) 0px, transparent 50%);
}

.section-tag {
    color: var(--gold-500);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
    border-bottom: 2px solid var(--gold-600);
    padding-bottom: 4px;
}

/* ANIMATIONS */
@keyframes goldPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.animate-gold-pulse {
    animation: goldPulse 2s infinite;
}

/* Premium Logo Branding Styles */
.premium-brand-text {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    font-size: 1.75rem;
    letter-spacing: 1.5px;
    background: linear-gradient(to right, #D4AF37, #FFD700 50%, #B8860B);
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: flex;
    align-items: center;
    position: relative;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.25));
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    text-transform: none !important;
}

.premium-brand-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.6) 50%, transparent 60%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: metallic-shine 5s infinite linear;
    pointer-events: none;
}

@keyframes metallic-shine {
    0% {
        background-position: 180% 0;
    }

    100% {
        background-position: -180% 0;
    }
}

.group:hover .premium-brand-text {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
}

@media (max-width: 640px) {
    .premium-brand-text {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
}