/* 
 * AlgoForex AI - Cyberpunk Gold Theme 
 * Variable Definitions 
 */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.7);
    --bg-glass: rgba(255, 215, 0, 0.05);
    
    --primary-gold: #FFD700;
    --primary-glow: rgba(255, 215, 0, 0.6);
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    
    --text-main: #ffffff;
    --text-muted: #888888;
    
    --neon-green: #39ff14;
    --neon-red: #ff003c;
    
    --border-gold: 1px solid rgba(255, 215, 0, 0.3);
    --radius: 16px;
}

/* Base Styles */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Rajdhani', 'Segoe UI', sans-serif; /* Tech font if available */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 20%);
}

/* Liquid Gold Animation */
@keyframes liquidGold {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px var(--primary-glow); }
    50% { box-shadow: 0 0 20px var(--primary-glow), 0 0 10px var(--primary-gold); }
    100% { box-shadow: 0 0 5px var(--primary-glow); }
}

/* Layout Containers */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background: radial-gradient(circle, rgba(20,20,20,1) 0%, rgba(5,5,5,1) 100%);
}

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-gold);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(255, 215, 0, 0.1);
}

/* Header */
header {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-glow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
}

/* Buttons */
.btn-gold {
    background: var(--gold-gradient);
    background-size: 200% 200%;
    color: #000;
    font-weight: bold;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    animation: liquidGold 3s ease infinite;
    text-decoration: none;
    display: inline-block;
}

.btn-gold:hover {
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary-gold);
    color: #000;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
    min-height: calc(100vh - 100px);
}

/* Sidebar */
.sidebar {
    background: var(--bg-card);
    border-right: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: var(--radius);
    padding: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-gold);
    border-left: 3px solid var(--primary-gold);
}

.nav-item i {
    font-size: 1.2rem;
}

/* Main Content Area */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(160deg, rgba(30,30,30,0.8) 0%, rgba(10,10,10,0.8) 100%);
    border: 1px solid rgba(255, 215, 0, 0.1);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    color: var(--primary-gold);
    font-weight: bold;
    margin: 10px 0;
}

.chart-container {
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: var(--radius);
    padding: 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Upload Area for AI Vision */
.upload-area {
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: var(--radius);
    padding: 50px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 215, 0, 0.02);
}

.upload-area:hover {
    border-color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.05);
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none; /* Mobile menu to be implemented if needed */
    }
    .header {
        padding: 15px 20px;
    }
}

/* Animated Menu Buttons */
.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 24px;
  border: 2px solid;
  border-color: transparent;
  font-size: 14px;
  background-color: inherit;
  border-radius: 100px;
  font-weight: 600;
  color: var(--primary-gold);
  box-shadow: 0 0 0 2px var(--primary-gold);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
  width: 100%;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.animated-button svg {
  position: absolute;
  width: 20px;
  fill: var(--primary-gold);
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: var(--primary-gold);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 0;
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  margin-left: 10px;
}

.animated-button:hover {
  box-shadow: 0 0 0 4px transparent;
  color: #050505;
  border-radius: 12px;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover svg {
  fill: #050505;
}

.animated-button:active {
  scale: 0.95;
  box-shadow: 0 0 0 2px var(--primary-gold);
}

.animated-button:hover .circle {
  width: 300px;
  height: 300px;
  opacity: 1;
}

/* Sidebar Adjustment for new buttons */
.sidebar {
    padding: 25px 15px;
    background: rgba(10, 10, 10, 0.6);
}

/* Profile Card Styles */
.profile-card {
  position: relative;
  width: 100%;
  max-width: 300px;
  color: white;
  min-height: 400px;
  background: #111;
  border-radius: 20px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.profile-bg {
  position: absolute;
  z-index: 0;
  inset: -4px;
  border-radius: 16px;
  overflow: hidden;
}

.profile-uwu {
  filter: blur(8px);
  transition: filter 0.3s;
}

.profile-bg::before {
  content: '';
  position: absolute;
  aspect-ratio: 1/1;
  top: 50%;
  left: 50%;
  min-width: 150%;
  min-height: 150%;
  background-image: conic-gradient(
    hsl(0, 100%, 50%),
    hsl(30, 100%, 50%),
    hsl(60, 100%, 50%),
    hsl(90, 100%, 50%),
    hsl(120, 100%, 50%),
    hsl(150, 100%, 50%),
    hsl(180, 100%, 50%),
    hsl(210, 100%, 50%),
    hsl(240, 100%, 60%),
    hsl(270, 100%, 50%),
    hsl(300, 100%, 50%),
    hsl(330, 100%, 50%),
    hsl(360, 100%, 50%)
  );
  animation: speeen 4s linear infinite;
  transform-origin: 0% 0%;
  transform: rotate(0deg) translate(-50%, -50%);
}

@keyframes speeen {
  from {
    transform: rotate(0deg) translate(-50%, -50%);
  }
  to {
    transform: rotate(360deg) translate(-50%, -50%);
  }
}

.profile-content {
  position: relative;
  padding: 20px;
  z-index: 1;
  background: rgba(20, 20, 20, 0.9);
  inset: 4px;
  border-radius: 16px;
  height: calc(100% - 8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.profile-img {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  background-color: #222;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-h1 {
  margin-top: 0.5em;
  margin-bottom: 0.2em;
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-gold);
}

.profile-p {
  font-size: 0.9em;
  color: #ccc;
  text-align: center;
  width: 100%;
}

.profile-info-row {
  margin-top: 15px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-label {
    font-size: 0.8em;
    color: #888;
}

.profile-value {
    font-weight: bold;
    color: #fff;
}

.topup-btn {
    background: var(--primary-gold);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s;
}

.topup-btn:hover {
    transform: scale(1.1);
}

.history-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-item:last-child {
    border-bottom: none;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: bold;
}

.status-paid { background: rgba(57, 255, 20, 0.2); color: var(--neon-green); }
.status-pending { background: rgba(255, 215, 0, 0.2); color: var(--primary-gold); }

