/* =============================================
   FINCAN - Premium UI Enhancements
   Stunning, Modern, Magical Design
   ============================================= */

/* =============================================
   Enhanced Color System with Gradients
   ============================================= */

:root {
    /* Premium Gold Gradients */
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #C8A464 50%, #B8944A 100%);
    --gradient-gold-shine: linear-gradient(135deg, #FFD700 0%, #C8A464 30%, #D4AF37 60%, #FFD700 100%);
    --gradient-gold-soft: linear-gradient(135deg, rgba(200, 164, 100, 0.2) 0%, rgba(200, 164, 100, 0.05) 100%);

    /* Premium Dark Gradients */
    --gradient-dark: linear-gradient(180deg, #1a1512 0%, #2F2622 50%, #3C322E 100%);
    --gradient-dark-radial: radial-gradient(ellipse at center, #3C322E 0%, #2F2622 50%, #1a1512 100%);

    /* Mystical Purple Accent */
    --mystic-purple: #6B4E71;
    --mystic-purple-light: rgba(107, 78, 113, 0.3);

    /* Cosmic Blue Accent */
    --cosmic-blue: #1E3A5F;
    --cosmic-glow: rgba(30, 58, 95, 0.4);

    /* Premium Shadows */
    --shadow-gold-glow: 0 0 40px rgba(200, 164, 100, 0.3), 0 0 80px rgba(200, 164, 100, 0.1);
    --shadow-gold-intense: 0 10px 40px rgba(200, 164, 100, 0.4);
    --shadow-dark-depth: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-card-premium: 0 8px 32px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* =============================================
   Premium Background
   ============================================= */

body {
    background: var(--gradient-dark);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, var(--cosmic-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, var(--mystic-purple-light) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(200, 164, 100, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* =============================================
   Particle Stars Background
   ============================================= */

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold-accent);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, var(--gold-accent) 0%, transparent 70%);
    transform: translate(-50%, -50%);
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* =============================================
   Premium Navigation
   ============================================= */

.navbar {
    background: rgba(26, 21, 18, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(200, 164, 100, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background: rgba(26, 21, 18, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(200, 164, 100, 0.1);
}

.nav-logo {
    font-size: 1.6rem;
    background: var(--gradient-gold-shine);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(200, 164, 100, 0.3));
}

.nav-logo svg {
    filter: drop-shadow(0 0 8px rgba(200, 164, 100, 0.5));
}

/* =============================================
   Premium Hero Section
   ============================================= */

.hero {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(200, 164, 100, 0.15) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    animation: hero-pulse 8s ease-in-out infinite;
}

@keyframes hero-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.hero-icon {
    position: relative;
    display: inline-block;
}

.hero-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(200, 164, 100, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: icon-glow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes icon-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #F5EFE6 0%, #C8A464 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: -0.02em;
    line-height: 1.1;
    animation: title-shimmer 5s ease-in-out infinite;
    background-size: 200% 100%;
}

@keyframes title-shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(245, 239, 230, 0.8);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.8;
}

/* =============================================
   Premium Coffee Cup Animation
   ============================================= */

.coffee-cup-container {
    position: relative;
    display: inline-block;
    font-size: 6rem;
    margin-bottom: var(--spacing-lg);
    animation: cup-float 4s ease-in-out infinite;
}

@keyframes cup-float {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.coffee-cup-container::after {
    content: '✨';
    position: absolute;
    top: -20px;
    right: -30px;
    font-size: 1.5rem;
    animation: sparkle-float 2s ease-in-out infinite;
}

@keyframes sparkle-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(5px, -10px) scale(1.2);
        opacity: 0.5;
    }
}

/* Enhanced Steam */
.steam-container {
    position: absolute;
    bottom: 85%;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 150px;
}

.steam {
    position: absolute;
    width: 10px;
    height: 100px;
    background: linear-gradient(to top, rgba(200, 164, 100, 0.3), transparent);
    border-radius: 50%;
    filter: blur(10px);
}

/* =============================================
   Premium Buttons
   ============================================= */

.btn-primary {
    background: var(--gradient-gold);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-gold-intense);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-glow);
}

.btn-glass {
    background: rgba(200, 164, 100, 0.1);
    border: 1px solid rgba(200, 164, 100, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.btn-glass:hover {
    background: rgba(200, 164, 100, 0.2);
    border-color: rgba(200, 164, 100, 0.5);
    box-shadow: 0 0 30px rgba(200, 164, 100, 0.2);
}

/* =============================================
   Premium Feature Cards
   ============================================= */

.feature-card {
    background: rgba(60, 50, 46, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 164, 100, 0.1);
    border-radius: 24px;
    padding: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 164, 100, 0.5), transparent);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(200, 164, 100, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(200, 164, 100, 0.3);
    box-shadow: var(--shadow-card-premium), 0 0 40px rgba(200, 164, 100, 0.1);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold-soft);
    border: 1px solid rgba(200, 164, 100, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2rem;
    color: var(--gold-accent);
    position: relative;
    transition: all 0.4s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(200, 164, 100, 0.4);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--latte-foam);
    margin-bottom: var(--spacing-sm);
}

.feature-desc {
    color: rgba(245, 239, 230, 0.7);
    line-height: 1.8;
}

/* =============================================
   Premium Auth Card (Login)
   ============================================= */

.auth-card {
    background: rgba(60, 50, 46, 0.6);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(200, 164, 100, 0.15);
    border-radius: 32px;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-dark-depth);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(200, 164, 100, 0.1), transparent 30%);
    animation: auth-card-rotate 10s linear infinite;
    opacity: 0.5;
}

@keyframes auth-card-rotate {
    to {
        transform: rotate(360deg);
    }
}

.auth-card>* {
    position: relative;
    z-index: 1;
}

.auth-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: var(--spacing-md);
    animation: auth-icon-float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(200, 164, 100, 0.5));
}

@keyframes auth-icon-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.auth-header h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #F5EFE6 0%, #C8A464 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   Premium Form Inputs
   ============================================= */

.form-input {
    background: rgba(26, 21, 18, 0.6);
    border: 1px solid rgba(200, 164, 100, 0.2);
    border-radius: 16px;
    padding: var(--spacing-md);
    color: var(--latte-foam);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(160, 140, 131, 0.6);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-accent);
    background: rgba(26, 21, 18, 0.8);
    box-shadow: 0 0 0 4px rgba(200, 164, 100, 0.1), 0 0 20px rgba(200, 164, 100, 0.1);
}

.form-label {
    color: rgba(245, 239, 230, 0.9);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

/* =============================================
   Premium Download Section
   ============================================= */

.download .card {
    background: var(--gradient-gold-soft);
    border: 1px solid rgba(200, 164, 100, 0.2);
    border-radius: 32px;
    padding: var(--spacing-xxl);
    position: relative;
    overflow: hidden;
}

.download .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8A464' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.download h2 {
    background: linear-gradient(135deg, #F5EFE6 0%, #C8A464 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   Premium Footer
   ============================================= */

.footer {
    background: rgba(26, 21, 18, 0.9);
    border-top: 1px solid rgba(200, 164, 100, 0.1);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 164, 100, 0.3), transparent);
}

.footer-logo {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   Scroll Progress Indicator
   ============================================= */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-gold);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(200, 164, 100, 0.5);
}

/* =============================================
   Cursor Glow Effect
   ============================================= */

.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200, 164, 100, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* =============================================
   Magic Symbols Ring
   ============================================= */

.magic-ring {
    position: absolute;
    width: 400px;
    height: 400px;
    border: 1px dashed rgba(200, 164, 100, 0.2);
    border-radius: 50%;
    animation: ring-rotate 60s linear infinite;
}

.magic-ring::before,
.magic-ring::after {
    content: '☽ ★ ♥ ✦ ☾ ◇';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    color: rgba(200, 164, 100, 0.3);
    letter-spacing: 2rem;
    white-space: nowrap;
}

@keyframes ring-rotate {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   Premium Toast Notifications
   ============================================= */

.toast {
    background: rgba(60, 50, 46, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 164, 100, 0.2);
    border-radius: 16px !important;
    box-shadow: var(--shadow-dark-depth);
}

.toast-success {
    border-left: 4px solid var(--health-color);
}

.toast-error {
    border-left: 4px solid var(--love-color);
}

/* =============================================
   Responsive Premium Adjustments
   ============================================= */

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .coffee-cup-container {
        font-size: 4rem;
    }

    .feature-card {
        padding: var(--spacing-lg);
    }

    .auth-card {
        padding: var(--spacing-lg);
        border-radius: 24px;
    }
}

/* =============================================
   Loading Screen Premium
   ============================================= */

#loading-overlay {
    background: rgba(26, 21, 18, 0.95) !important;
    backdrop-filter: blur(20px);
}

.loading-cup {
    filter: drop-shadow(0 0 30px rgba(200, 164, 100, 0.5));
}