:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a1f2e;
    --bg-card-hover: #1f2537;
    --border-color: #2a3040;
    --text-primary: #e8eaed;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-orange: #f7931a;
    --accent-green: #00c853;
    --accent-red: #ff1744;
    --accent-blue: #2979ff;
    --accent-purple: #7c4dff;
    --gradient-gold: linear-gradient(135deg, #f7931a, #ffb300);
    --gradient-green: linear-gradient(135deg, #00c853, #00e676);
    --gradient-blue: linear-gradient(135deg, #2979ff, #448aff);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

.navbar {
    background: rgba(10, 14, 23, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.brand-icon {
    color: var(--accent-orange);
    font-size: 1.2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    background: rgba(247, 147, 26, 0.1);
    color: var(--accent-orange) !important;
}

.main-content {
    padding-top: 76px;
    min-height: 100vh;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(247, 147, 26, 0.2);
}

.glass-card {
    background: rgba(26, 31, 46, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-warning {
    background: var(--gradient-gold);
    border: none;
    color: #0a0e17 !important;
}

.btn-success {
    background: var(--gradient-green);
    border: none;
}

.btn-primary {
    background: var(--gradient-blue);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #ff1744, #d50000);
    border: none;
}

.btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-outline-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.form-control, .form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 0.7rem 1rem;
}

.form-control:focus, .form-select:focus {
    background: var(--bg-secondary);
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.15);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.stat-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.stat-card .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.badge {
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    font-size: 0.8rem;
}

.badge.bg-success { background: rgba(0, 200, 83, 0.15) !important; color: #00c853; }
.badge.bg-warning { background: rgba(247, 147, 26, 0.15) !important; color: #f7931a; }
.badge.bg-danger { background: rgba(255, 23, 68, 0.15) !important; color: #ff1744; }
.badge.bg-info { background: rgba(41, 121, 255, 0.15) !important; color: #448aff; }
.badge.bg-secondary { background: rgba(107, 114, 128, 0.15) !important; color: #9ca3af; }

.table {
    color: var(--text-primary);
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    border-bottom-color: var(--border-color);
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.table > thead > tr > th {
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.table-hover > tbody > tr:hover {
    background: rgba(247, 147, 26, 0.03);
}

.hero-section {
    padding: 6rem 0 4rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(247, 147, 26, 0.08) 0%, transparent 60%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.price-card:hover {
    transform: translateY(-2px);
    border-color: rgba(247, 147, 26, 0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.price-card .change.positive { color: var(--accent-green); }
.price-card .change.negative { color: var(--accent-red); }

.chat-container {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.chat-message {
    margin-bottom: 1rem;
    display: flex;
}

.chat-message.own {
    justify-content: flex-end;
}

.chat-message .bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.own .bubble {
    background: var(--accent-orange);
    color: #0a0e17;
    border-bottom-right-radius: 4px;
}

.chat-message.other .bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.chat-message .time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.trade-timeline {
    position: relative;
    padding-left: 2rem;
}

.trade-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.trade-step {
    position: relative;
    padding-bottom: 1.5rem;
}

.trade-step:last-child {
    padding-bottom: 0;
}

.trade-step .dot {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
}

.trade-step.completed .dot {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.trade-step.active .dot {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(247, 147, 26, 0.2);
}

.trade-step .step-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.trade-step .step-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-sidebar {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1rem 0;
}

.admin-sidebar .nav-link {
    border-radius: 0;
    padding: 0.75rem 1.5rem !important;
}

.admin-sidebar .nav-link.active {
    background: rgba(247, 147, 26, 0.1);
    border-right: 3px solid var(--accent-orange);
}

.ad-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.ad-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.ad-card .trader-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ad-card .price-display {
    font-size: 1.5rem;
    font-weight: 700;
}

.ad-card .limits {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.filter-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
}

.kyc-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--bg-secondary);
    margin-bottom: 0.75rem;
}

.progress-step .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.progress-step.completed { border: 1px solid rgba(0,200,83,0.3); }
.progress-step.completed .step-number { background: var(--accent-green); color: #fff; }
.progress-step.active { border: 1px solid rgba(247,147,26,0.3); }
.progress-step.active .step-number { background: var(--accent-orange); color: #0a0e17; }
.progress-step.pending .step-number { background: var(--border-color); color: var(--text-muted); }

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-section { padding: 4rem 0 2rem; }
    .stat-card .value { font-size: 1.4rem; }
    .navbar .container { position: relative; }
    .price-ticker { display: none !important; }
}
