@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #0f0f0f;
    --card-bg: rgba(26, 26, 26, 0.95);
    --purple-primary: #8b5cf6;
    --purple-dark: #6d28d9;
    --purple-light: #a78bfa;
    --green-primary: #10b981;
    --green-dark: #059669;
    --green-light: #34d399;
    --gold: #fbbf24;
    --silver: #9ca3af;
    --copper: #b45309;
    --iron: #4b5563;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Cairo', 'Tahoma', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 3D Background Animation */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(139,92,246,0.1) 0%, rgba(0,0,0,0) 70%);
}

/* Mobile-First Container */
.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Top Header */
.top-header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    width: 32px;
    height: 32px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info i {
    font-size: 22px;
    color: var(--purple-primary);
    cursor: pointer;
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--green-primary);
    color: white;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 10px;
}

.user-profile {
    text-align: right;
}

.user-profile span {
    font-weight: 600;
    font-size: 13px;
}

.user-profile small {
    font-size: 10px;
    color: var(--text-secondary);
}

/* Bottom Navigation */
.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 8px 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    width: 100%;
    justify-content: space-around;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    transition: all 0.3s;
}

.nav-links a i {
    font-size: 20px;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--purple-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 80px 0 100px;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 12px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-description {
    font-size: 13px;
    max-width: 100%;
    margin: 0 auto 24px;
    color: var(--text-secondary);
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s backwards;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 14px;
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-green);
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--purple-primary);
    border: 2px solid var(--purple-primary);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Trading Section */
.trading-section {
    padding: 20px 0;
}

.section-title {
    font-size: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trading-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.trading-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s;
}

.trading-card:hover {
    transform: translateY(-3px);
    border-color: var(--purple-primary);
    box-shadow: var(--shadow-glow);
}

.trading-card.gold {
    border-top: 3px solid var(--gold);
}

.trading-card.silver {
    border-top: 3px solid var(--silver);
}

.trading-card.copper {
    border-top: 3px solid var(--copper);
}

.trading-card.iron {
    border-top: 3px solid var(--iron);
}

.trading-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.trading-icon.gold i {
    color: var(--gold);
}

.trading-icon.silver i {
    color: var(--silver);
}

.trading-icon.copper i {
    color: var(--copper);
}

.trading-icon.iron i {
    color: var(--iron);
}

.trading-card h3 {
    font-size: 14px;
    margin-bottom: 8px;
}

.trading-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--green-primary);
    margin: 8px 0;
}

.trading-change {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
}

.trading-change.positive {
    background: rgba(16, 185, 129, 0.2);
    color: var(--green-primary);
}

.trading-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Crypto Section */
.crypto-section {
    padding: 20px 0;
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.crypto-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s;
}

.crypto-card:hover {
    transform: translateY(-2px);
    border-color: var(--purple-primary);
}

.crypto-card h3 {
    font-size: 13px;
    margin-bottom: 6px;
}

.crypto-card .price {
    font-size: 16px;
    font-weight: bold;
    color: var(--green-primary);
}

.price-egp {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.crypto-card .change {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 6px;
}

.change.positive {
    background: rgba(16, 185, 129, 0.2);
    color: var(--green-primary);
}

.change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--purple-primary);
    box-shadow: var(--shadow-glow);
}

.feature-card i {
    font-size: 24px;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 13px;
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Stats Banner */
.stats-banner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.stats-grid-home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 4px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    margin: 40px 0;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
}

.faq-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--purple-primary);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 13px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Auth Pages */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 16px 100px;
}

.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 28px 20px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    animation: rotate 20s linear infinite;
}

.auth-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i:first-child {
    position: absolute;
    right: 12px;
    color: var(--text-secondary);
}

.input-with-icon input {
    padding-right: 35px;
    width: 100%;
}

.toggle-password {
    position: absolute;
    left: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--purple-primary);
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--gradient-purple);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-auth:hover::before {
    left: 100%;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--purple-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: var(--green-primary);
}

/* Dashboard */
.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 70px;
}

.dashboard-main {
    flex: 1;
    padding: 16px;
}

.dashboard-header {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 99;
}

.welcome-section {
    margin-bottom: 20px;
}

.welcome-section h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--purple-primary);
    box-shadow: var(--shadow-glow);
}

.stat-card i {
    font-size: 24px;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    display: inline-block;
}

.stat-card h3 {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--green-primary);
}

/* Crypto Summary */
.crypto-summary {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 20px;
}

.crypto-summary h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--purple-primary);
}

.crypto-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.crypto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.crypto-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.crypto-name i {
    font-size: 18px;
}

.crypto-balance {
    font-size: 13px;
    font-weight: bold;
    color: var(--green-primary);
}

/* Dashboard Cards */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0;
}

.dashboard-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h3 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: var(--purple-primary);
}

.btn-link {
    color: var(--purple-primary);
    text-decoration: none;
    font-size: 12px;
    background: none;
    border: none;
    cursor: pointer;
}

.card-body {
    padding: 16px;
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px;
    font-size: 13px;
}

/* Transaction Lists */
.transactions-list,
.orders-list,
.notifications-list,
.agreements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item,
.order-item,
.notification-item,
.agreement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
}

.transaction-info {
    flex: 1;
}

.transaction-info strong {
    display: block;
    font-size: 13px;
}

.transaction-info small {
    font-size: 10px;
    color: var(--text-secondary);
}

.transaction-amount {
    font-weight: bold;
    font-size: 13px;
}

.transaction-amount.positive {
    color: var(--green-primary);
}

.transaction-amount.negative {
    color: #ef4444;
}

.order-type {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.order-type.buy {
    background: rgba(16, 185, 129, 0.2);
    color: var(--green-primary);
}

.order-type.sell {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.agreement-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.agreement-status.completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--green-primary);
}

.agreement-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.btn-sm {
    padding: 6px 12px;
    background: var(--gradient-purple);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 11px;
    border: none;
    cursor: pointer;
}

/* Quick Actions */
.quick-actions {
    margin-top: 20px;
}

.quick-actions h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.action-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.action-card:hover {
    transform: translateY(-3px);
    border-color: var(--purple-primary);
    box-shadow: var(--shadow-glow);
}

.action-card i {
    font-size: 22px;
    color: var(--purple-primary);
    margin-bottom: 6px;
    display: block;
}

.action-card span {
    font-size: 11px;
    color: var(--text-primary);
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notification-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.mark-read-btn {
    background: none;
    border: none;
    color: var(--green-primary);
    cursor: pointer;
    padding: 5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header .close {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

/* File Upload */
.file-input {
    position: relative;
    width: 100%;
    margin: 10px 0;
}

.file-input input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-input label {
    display: block;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.file-input label:hover {
    border-color: var(--purple-primary);
    background: rgba(139, 92, 246, 0.1);
}

.file-input label i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    color: var(--purple-primary);
}

.preview-image {
    margin-top: 12px;
    max-width: 100%;
    max-height: 150px;
    border-radius: 12px;
    display: none;
}

/* Alerts */
.alert {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--green-primary);
    color: var(--green-primary);
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.alert-info {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid #3b82f6;
    color: #3b82f6;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    color: #f59e0b;
}

/* Admin Panel */
.admin-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 70px;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    z-index: 100;
}

.admin-sidebar .sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar .sidebar-logo {
    width: 36px;
    height: 36px;
}

.admin-sidebar h3 {
    font-size: 16px;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    z-index: 200;
    padding: 70px 20px 20px;
    transition: left 0.3s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-menu li {
    list-style: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
}

.sidebar-menu li.active a,
.sidebar-menu li a:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple-primary);
}

.admin-main {
    padding: 16px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.admin-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.admin-card i {
    font-size: 24px;
    color: var(--purple-primary);
}

.admin-card .value {
    font-size: 22px;
    font-weight: bold;
    color: var(--green-primary);
}

.admin-panel {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
}

.admin-panel h3 {
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--purple-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th,
.data-table td {
    padding: 10px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table th {
    color: var(--purple-primary);
    font-weight: 600;
}

.status {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 10px;
    display: inline-block;
}

.status.completed,
.status.approved {
    background: rgba(16, 185, 129, 0.2);
    color: var(--green-primary);
}

.status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status.failed,
.status.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* KYC */
.kyc-status-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.kyc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 16px;
}

.kyc-status-badge.approved {
    background: rgba(16, 185, 129, 0.2);
    color: var(--green-primary);
    border: 1px solid var(--green-primary);
}

.kyc-status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.kyc-status-badge.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.kyc-status-badge.not-submitted {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple-primary);
    border: 1px solid var(--purple-primary);
}

.kyc-info {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    border-right: 3px solid var(--purple-primary);
}

.kyc-info h3 {
    color: var(--purple-primary);
    margin-bottom: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kyc-info ul {
    padding-right: 20px;
    margin-top: 8px;
}

.kyc-info li {
    margin: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* P2P */
.p2p-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.back-button {
    background: var(--card-bg);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 10px 16px;
    border-radius: 30px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.back-button:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateX(-3px);
}

.p2p-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--purple-primary);
    border-bottom: 2px solid var(--purple-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.orders-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 16px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-details p {
    margin: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.order-details strong {
    color: var(--text-primary);
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.order-actions button,
.order-actions a {
    flex: 1;
    padding: 10px;
    border-radius: 30px;
    text-align: center;
    font-size: 13px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary-sm {
    background: var(--gradient-green);
    color: white;
}

.btn-secondary-sm {
    background: var(--gradient-purple);
    color: white;
}

.btn-danger-sm {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* Chat */
.chat-support-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
}

.chat-header {
    background: var(--gradient-purple);
    padding: 16px;
    text-align: center;
}

.chat-header h3 {
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.message.user {
    align-self: flex-end;
}

.message.admin,
.message.other {
    align-self: flex-start;
}

.message-content {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    word-wrap: break-word;
}

.message.user .message-content {
    background: var(--gradient-purple);
    color: white;
    border-radius: 18px 18px 5px 18px;
}

.message.admin .message-content,
.message.other .message-content {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 18px 18px 18px 5px;
}

.message-info {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.chat-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 8px;
}

.chat-input textarea {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    resize: none;
    font-family: inherit;
    font-size: 13px;
}

.chat-input button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-purple);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-input button:hover {
    transform: scale(1.05);
}

/* Profile */
.profile-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s;
}

.profile-card:hover {
    border-color: var(--purple-primary);
    box-shadow: var(--shadow-glow);
}

.profile-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--purple-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
    width: 100px;
    color: var(--text-secondary);
    font-size: 14px;
}

.info-value {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

/* Transfer */
.transfer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.transfer-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s;
}

.transfer-card:hover {
    border-color: var(--purple-primary);
    box-shadow: var(--shadow-glow);
}

.balance-info {
    background: rgba(139, 92, 246, 0.1);
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: center;
    border-right: 3px solid var(--purple-primary);
}

.balance-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.balance-info strong {
    color: var(--green-primary);
    font-size: 24px;
    display: block;
    margin-top: 5px;
}

.fee-info {
    background: rgba(139, 92, 246, 0.1);
    padding: 16px;
    border-radius: 12px;
    margin: 20px 0;
}

.fee-info p {
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.fee-info span {
    color: var(--green-primary);
    font-weight: bold;
}

/* Footer */
footer {
    background: var(--card-bg);
    padding: 30px 0 80px;
    text-align: center;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    margin-top: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--purple-primary);
}

/* Responsive */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }
    .trading-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .crypto-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .actions-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    .crypto-items {
        grid-template-columns: repeat(4, 1fr);
    }
    .admin-stats {
        grid-template-columns: repeat(5, 1fr);
    }
    .stats-grid-home {
        grid-template-columns: repeat(4, 1fr);
    }
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .profile-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .transfer-container {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .trading-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .crypto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .crypto-items {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .transfer-container {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .info-label {
        width: 85px;
        font-size: 13px;
    }
    .info-value {
        font-size: 13px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green-primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.p-1 {
    padding: 8px;
}

.p-2 {
    padding: 16px;
}

.p-3 {
    padding: 24px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-top-color: var(--purple-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notification Toast */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-right: 3px solid var(--purple-primary);
    font-size: 13px;
    max-width: 300px;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-right-color: var(--green-primary);
}

.notification.error {
    border-right-color: #ef4444;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    margin-right: auto;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Focus Effects */
.focused label {
    color: var(--purple-primary);
}

.submitted {
    opacity: 0.7;
    cursor: wait !important;
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-purple);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.scroll-top:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}