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

:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --dark: #1a1a2e;
    --darker: #16213e;
    --card-bg: #1e1e3a;
    --text: #e0e0e0;
    --text-muted: #a0a0b8;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --border: #2d2d5e;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --glow: 0 0 20px rgba(108, 92, 231, 0.3);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: var(--darker);
    border-bottom: 2px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 2px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.navbar-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.navbar-links a:hover {
    background: rgba(108, 92, 231, 0.2);
    color: var(--secondary);
}

.navbar-links .btn-logout {
    background: var(--danger);
    color: white;
    padding: 0.4rem 1rem;
}

.navbar-links .btn-logout:hover {
    background: #d63031;
    color: white;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-align: center;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.5);
}

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

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

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

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

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Stats Cards */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Section Title */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.section-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

th, td {
    padding: 0.9rem 1.2rem;
    text-align: left;
}

th {
    background: var(--darker);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
}

tr:hover td {
    background: rgba(108, 92, 231, 0.05);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success { background: rgba(0, 184, 148, 0.2); color: var(--success); }
.badge-warning { background: rgba(253, 203, 110, 0.2); color: var(--warning); }
.badge-danger { background: rgba(225, 112, 85, 0.2); color: var(--danger); }
.badge-primary { background: rgba(108, 92, 231, 0.2); color: var(--primary); }
.badge-info { background: rgba(0, 206, 201, 0.2); color: var(--secondary); }

/* Forms */
.form-container {
    max-width: 500px;
    margin: 3rem auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--glow);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group .help-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.form-group .error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.form-container .btn {
    width: 100%;
    margin-top: 1rem;
}

/* Offer Detail */
.offer-header {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.offer-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.offer-header .payout {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success);
}

.offer-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 1.5rem 0;
}

.offer-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.offer-meta div {
    background: var(--dark);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.offer-meta .meta-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
}

.offer-meta .meta-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Messages */
.messages {
    list-style: none;
    margin-bottom: 1.5rem;
}

.messages li {
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.messages .success {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.messages .error {
    background: rgba(225, 112, 85, 0.15);
    color: var(--danger);
    border: 1px solid rgba(225, 112, 85, 0.3);
}

.messages .info {
    background: rgba(0, 206, 201, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(0, 206, 201, 0.3);
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    text-align: center;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.feature-card .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Withdrawal info */
.balance-breakdown {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.balance-item {
    flex: 1;
    min-width: 180px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.balance-item .amount {
    font-size: 2rem;
    font-weight: 800;
}

.amount-green { color: var(--success); }
.amount-purple { color: var(--primary); }
.amount-gold { color: var(--warning); }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .navbar { padding: 0 1rem; }
    .navbar-links { gap: 0.5rem; }
    .navbar-links a { font-size: 0.85rem; padding: 0.3rem 0.5rem; }
    .container { padding: 1rem; }
}
