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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #e94560;
}

.auth-box h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #a0a0a0;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #e94560;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.form-group input::placeholder {
    color: #666;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-link a {
    color: #e94560;
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #e94560;
    margin-bottom: 5px;
}

.logo span {
    color: #fff;
}

.sidebar-user {
    text-align: center;
    margin-bottom: 20px;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-email {
    font-size: 13px;
    color: #a0a0a0;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 8px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #a0a0a0;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(233, 69, 96, 0.2);
    color: #e94560;
}

.nav-menu a i {
    margin-right: 12px;
    font-size: 18px;
}

.nav-menu span {
    flex: 1;
}

/* Main Content */
.main-content {
    padding: 0;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.stat-card.wallet {
    border-left: 4px solid #e94560;
}

.stat-card.orders {
    border-left: 4px solid #4ecdc4;
}

.stat-card.pending {
    border-left: 4px solid #ffe66d;
}

.stat-card.completed {
    border-left: 4px solid #95e1d3;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-card.wallet .stat-icon {
    background: rgba(233, 69, 96, 0.2);
}

.stat-card.orders .stat-icon {
    background: rgba(78, 205, 196, 0.2);
}

.stat-card.pending .stat-icon {
    background: rgba(255, 230, 109, 0.2);
}

.stat-card.completed .stat-icon {
    background: rgba(149, 225, 211, 0.2);
}

.stat-label {
    font-size: 13px;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
}

.stat-card.wallet .stat-value {
    color: #e94560;
}

/* Content Card */
.content-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-card h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #e94560;
}

/* Order Form */
.order-form {
    display: grid;
    gap: 20px;
}

.price-info {
    background: rgba(233, 69, 96, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.price-info h3 {
    font-size: 36px;
    color: #e94560;
    margin-bottom: 5px;
}

.price-info p {
    color: #a0a0a0;
    font-size: 14px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    color: #e94560;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

table td {
    font-size: 14px;
}

/* Status Badges */
.status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status.pending {
    background: rgba(255, 230, 109, 0.2);
    color: #ffe66d;
}

.status.processing {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
}

.status.completed {
    background: rgba(149, 225, 211, 0.2);
    color: #95e1d3;
}

.status.cancelled {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

/* Logs */
.log-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    border-left: 3px solid #e94560;
}

.log-item.success {
    border-left-color: #95e1d3;
}

.log-item.error {
    border-left-color: #ff6b6b;
}

/* Fund Page */
.fund-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.fund-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fund-option:hover,
.fund-option.active {
    border-color: #e94560;
    background: rgba(233, 69, 96, 0.1);
}

.fund-option h3 {
    font-size: 24px;
    color: #e94560;
    margin-bottom: 5px;
}

.fund-option p {
    font-size: 12px;
    color: #a0a0a0;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.payment-method {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover,
.payment-method.active {
    border-color: #e94560;
    background: rgba(233, 69, 96, 0.1);
}

.payment-method h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.payment-method p {
    font-size: 11px;
    color: #a0a0a0;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.alert.success {
    background: rgba(149, 225, 211, 0.2);
    border: 1px solid rgba(149, 225, 211, 0.3);
    color: #95e1d3;
}

.alert.error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.alert.info {
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: #4ecdc4;
}

/* Logout Button */
.logout-btn {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn a {
    display: block;
    text-align: center;
    padding: 12px;
    color: #ff6b6b;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.logout-btn a:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .fund-options,
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #e94560;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-state p {
    color: #a0a0a0;
}
