/**
 * PremiumSignals Design System & Layout Styling
 * Dark Blue & Gold Theme (Glassmorphism & High-End Animations)
 */

:root {
    --bg-dark: #050b14;
    --bg-card: rgba(10, 25, 47, 0.65);
    --bg-navy: #172a45;
    --gold: #d4af37;
    --gold-hover: #f3e5ab;
    --text-white: #e2e8f0;
    --text-muted: #8892b0;
    --border-gold: rgba(212, 175, 55, 0.2);
    --border-light: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 10% 20%, rgba(10, 25, 47, 0.8) 0%, rgba(5, 11, 20, 1) 90%);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* Scrollbar customizations */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-navy);
    border: 2px solid var(--bg-dark);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
}

/* Gold Theme Elements */
.gold-text {
    color: var(--gold) !important;
}
.gold-glow {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #b89025 100%);
    color: #000 !important;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-gold-outline {
    background: transparent;
    color: var(--gold) !important;
    border: 1.5px solid var(--gold);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-gold-outline:hover {
    background: var(--gold);
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* Sticky Navbar */
.main-navbar {
    background: rgba(5, 11, 20, 0.85) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.main-navbar .nav-link {
    color: var(--text-white) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: color 0.3s ease;
}
.main-navbar .nav-link:hover, 
.main-navbar .nav-link.active {
    color: var(--gold) !important;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #b89025 0%, var(--gold) 50%, #b89025 100%);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Price Ticker widget */
.crypto-ticker-wrapper {
    background: #03070d;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.ticker-scroll {
    display: inline-block;
    animation: ticker-move 35s linear infinite;
    padding-left: 100%;
}
.ticker-scroll:hover {
    animation-play-state: paused;
}
@keyframes ticker-move {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Animated Floating Background */
.animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}
.bg-bubble {
    position: absolute;
    background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    animation: bubble-float 15s ease infinite alternate;
}

@keyframes bubble-float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-50px) scale(1.2); }
}

/* Form Controls styling */
.form-control, .form-select {
    background-color: rgba(23, 42, 69, 0.4);
    border: 1px solid var(--border-light);
    color: var(--text-white);
}
.form-control:focus, .form-select:focus {
    background-color: rgba(23, 42, 69, 0.7);
    border-color: var(--gold);
    color: var(--text-white);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}
.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Footer Section */
.footer-section {
    background: #03070d;
    border-top: 1px solid var(--border-gold);
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--gold);
}

/* Cookie Banner styling */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    z-index: 9999;
    background: rgba(10, 25, 47, 0.95);
    border: 1.5px solid var(--gold);
    backdrop-filter: blur(15px);
    margin: 0 auto;
}

/* Back to Top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}
.back-to-top:hover {
    transform: translateY(-3px);
}

/* User Sidebar & Core Dashboard layouts */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-gold);
    backdrop-filter: blur(10px);
}
.sidebar .nav-link {
    color: var(--text-white);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 4px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}
.dashboard-content {
    flex: 1;
    padding: 30px;
    background-color: var(--bg-dark);
}

/* Progress bar gold overrides */
.progress {
    background-color: rgba(255,255,255,0.05);
    border-radius: 10px;
    height: 8px;
}
.progress-bar-gold {
    background: linear-gradient(90deg, #b89025 0%, var(--gold) 100%);
}

/* Chat boxes for Support Tickets */
.chat-container {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.chat-bubble {
    max-width: 75%;
    padding: 12px 18px;
    border-radius: 14px;
    position: relative;
}
.chat-bubble.user {
    align-self: flex-end;
    background-color: var(--bg-navy);
    border: 1px solid rgba(255,255,255,0.1);
}
.chat-bubble.staff {
    align-self: flex-start;
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
}

/* Custom list items formatting */
.pricing-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
}
.plan-feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.plan-feature-list li:last-child {
    border-bottom: none;
}
