/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFD700;
    --secondary-color: #FFA500;
    --accent-color: #FF6B35;
    --background-dark: #1a1a1a;
    --background-darker: #0f0f0f;
    --surface-color: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --gradient-primary: linear-gradient(135deg, #FFD700, #FFA500);
    --gradient-secondary: linear-gradient(135deg, #FF6B35, #FF8C00);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.5);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

a {
	text-decoration: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Exchange Rate Ticker */
.ticker-container {
    background: var(--gradient-primary);
    color: var(--background-dark);
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 35px;
    line-height: 35px;
}

.ticker-content {
    display: inline-block;
    animation: ticker 30s linear infinite;
    padding-left: 100%;
}

.ticker-content span {
    margin-right: 60px;
    font-size: 14px;
}

.ticker-content i {
    margin-right: 5px;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Header */
.header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    position: fixed;
    top: 35px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(255, 215, 0, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.provider-logos {
    display: flex;
    gap: 15px;
}

.provider-logo {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--background-dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--background-dark);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--background-dark);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Main Container */
.main-container {
    display: flex;
    margin-top: 95px;
    min-height: calc(100vh - 95px);
}


/* Sidebar */
.sidebar {
    width: 300px;
    background: var(--surface-color);
    border-right: 1px solid rgba(255, 215, 0, 0.2);
    padding: 30px 0;
    position: fixed;
    height: calc(100vh - 95px);
    overflow-y: auto;
    z-index: 100;
}

.search-box {
    position: relative;
    margin: 0 20px 30px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background: var(--background-dark);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 14px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

.categories h3 {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    margin: 0 20px 15px;
    letter-spacing: 0.5px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.category-item:hover,
.category-item.active {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-color);
}

.category-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
}

.category-item i {
    width: 16px;
    text-align: center;
}

.category-item span:first-of-type {
    flex: 1;
}

.count {
    background: rgba(255, 215, 0, 0.2);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 300px;
    padding: 40px;
    background: var(--background-dark);
    min-height: calc(100vh - 95px);
}

/* Fixed Action Buttons */
.fixed-actions {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 500;
}

.fixed-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    color: white;
    min-width: 80px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.fixed-btn i {
    font-size: 18px;
}

.deposit-btn {
    background: var(--gradient-primary);
    color: var(--background-dark);
}

.register-btn {
    background: var(--gradient-secondary);
}

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

/* Footer */
.footer {
    background: var(--background-darker);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 80px;
    padding: 50px 0 20px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-badge {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        margin-left: 280px;
        padding: 30px;
    }
    
    .sidebar {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .ticker-content span {
        margin-right: 40px;
        font-size: 12px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .main-nav {
        display: none;
    }
    
    .provider-logos {
        display: none;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px 15px;
    }
    
    .fixed-actions {
        right: 15px;
        bottom: 20px;
        top: auto;
        transform: none;
        flex-direction: row;
    }

		.main-content {	margin-top: 50px;}
    
    .fixed-btn {
        min-width: 70px;
        padding: 10px 12px;
        font-size: 11px;
    }
    
    .fixed-btn i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 8px 0;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .main-content {
        padding: 15px 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.hidden { display: none; }
.visible { display: block; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s ease-in-out infinite;
}

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


/* Responsive Main Container */
@media (max-width: 1200px) {
	.main-container {
			flex-direction: column;
			margin-top: 75px;
			min-height: unset;
	}
	.sidebar {
			position: static;
			width: 100%;
			height: auto;
			border-right: none;
			border-bottom: 1px solid rgba(255, 215, 0, 0.2);
			z-index: 10;
			padding: 20px 0;
			overflow-y: visible;
	}
}

@media (max-width: 900px) {
	.main-container {
			flex-direction: column;
			margin-top: 65px;
	}
	.sidebar {
			width: 100%;
			position: fixed;
			left: 0;
			top: 65px;
			height: calc(100vh - 65px);
			background: var(--surface-color);
			z-index: 200;
			transform: translateX(-100%);
			transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
			border-bottom: none;
			border-right: 1px solid rgba(255, 215, 0, 0.2);
			padding: 30px 0;
			overflow-y: auto;
	}
	.sidebar.mobile-open {
			transform: translateX(0);
			box-shadow: 0 0 40px rgba(0,0,0,0.25);
	}
	.main-content {
			margin-left: 0 !important;
	}
}

@media (max-width: 600px) {
	.main-container {
			margin-top: 55px;
	}
	.sidebar {
			top: 55px;
			padding: 18px 0;
	}
	.search-box {
			margin: 0 10px 20px;
	}
	.categories h3 {
			margin: 0 10px 10px;
			font-size: 13px;
	}
}

/* Hide sidebar by default on mobile, show with .mobile-open */
@media (max-width: 900px) {
	.sidebar {
			display: none;
	}
	.sidebar.mobile-open {
			display: block;
	}
}

/* Ensure main-content fills available space */
.main-content {
	flex: 1 1 0%;
	margin-left: 300px;
	padding: 40px 40px 40px 40px;
	min-width: 0;
	transition: margin-left 0.3s cubic-bezier(0.4,0,0.2,1);
}

@media (max-width: 1200px) {
	.main-content {
			margin-left: 0;
			padding: 32px 16px 32px 16px;
	}
}

@media (max-width: 600px) {
	.main-content {
			padding: 16px 4px 16px 4px;
	}
}

/* Mobile menu button styles */
.mobile-menu-btn {
	display: none;
	position: fixed;
	right: 20px;
	top: 120px;
	background: var(--surface-color);
	border: none;
	color: var(--primary-color);
	font-size: 20px;
	z-index: 300;
	cursor: pointer;
	padding: 8px 12px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: background 0.2s;
}

.mobile-menu-btn:active,
.mobile-menu-btn:focus {
	background: var(--primary-color);
	color: var(--background-dark);
}

@media (max-width: 900px) {
	.mobile-menu-btn {
			display: block;
	}
}

/* Overlay for sidebar on mobile */
.sidebar.mobile-open::before {
	content: '';
	position: fixed;
	left: 0; top: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.25);
	z-index: -1;
	pointer-events: auto;
}
