/* public/assets/css/style.css */
body {
    background-color: #0f172a;
    color: #e2e8f0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Neon Glows */
.neon-text-purple {
    color: #a855f7;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.neon-text-blue {
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Neon Gradient Button */
.btn-neon {
    background: linear-gradient(90deg, #9333ea, #3b82f6);
    color: white;
    border: none;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

.btn-neon:hover {
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.7);
    transform: translateY(-2px);
    color: white;
}

/* Custom Navbar */
.navbar-glass {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Utilities */
.text-muted-light { color: #94a3b8; }
.border-dark-subtle { border-color: rgba(255,255,255,0.1) !important; }

/* Custom Inputs */
.form-control.bg-dark, .form-select.bg-dark {
    background-color: rgba(15, 23, 42, 0.8) !important;
    color: white !important;
}
.form-control.bg-dark:focus, .form-select.bg-dark:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 0.25rem rgba(168, 85, 247, 0.25);
}

/* Ticker */
.crypto-ticker {
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    position: relative;
}

.ticker-track {
    display: inline-flex;
    gap: 50px;
    animation: tickerScroll 40s linear infinite;
}

.ticker-track span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

@keyframes tickerScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.trade-steps-row::before {
    content: "";
    position: absolute;
    top: 80px;
    left: 10%;
    width: 80%;
    height: 2px;
    /* background: linear-gradient(90deg,#9333ea,#3b82f6); */
    opacity: .3;
    z-index: 0;
}

.step-card {
    position: relative;
    z-index: 1;
    transition: .3s;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.2);
}

.step-circle {
    width: 50px;
    height: 50px;
    margin: auto;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #a855f7;
    box-shadow: 0 0 20px rgba(168,85,247,.4);
}
.neon-purple {
    color: #a855f7;
    box-shadow: 0 0 20px rgba(168,85,247,.4);
}

.neon-blue {
    color: #3b82f6;
    box-shadow: 0 0 20px rgba(59,130,246,.4);
}
/* ================= PERFECT LIGHT MODE ================= */

body.light-mode {
    background: linear-gradient(180deg,#f8fafc,#eef2f7);
    color: #0f172a;
}

/* Navbar Fix */
body.light-mode .navbar-glass {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

body.light-mode .navbar .nav-link {
    color: #0f172a !important;
}

body.light-mode .navbar .nav-link:hover {
    color: #9333ea !important;
}

/* BRAND */
body.light-mode .navbar-brand {
    color: #0f172a !important;
}

/* LOGIN BUTTON FIX */
body.light-mode .btn-outline-light {
    color: #0f172a !important;
    border-color: rgba(0,0,0,0.2) !important;
    background: transparent;
}

body.light-mode .btn-outline-light:hover {
    background: rgba(0,0,0,0.05);
}

/* GLASS PANEL LIGHT */
body.light-mode .glass-panel {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* HERO TEXT */
body.light-mode .text-muted-light {
    color: #64748b;
}

/* TICKER */
body.light-mode .crypto-ticker {
    background: rgba(0,0,0,0.05);
}

/* INPUTS */
body.light-mode .form-control.bg-dark,
body.light-mode .form-select.bg-dark {
    background: white !important;
    color: #0f172a !important;
    border: 1px solid rgba(0,0,0,0.15);
}

/* BADGE */
body.light-mode .badge.bg-dark {
    background: #111827 !important;
    color: white;
}

/* Cards */
.crypto-card img {
    width: 28px;
    height: 28px;
}

.crypto-card {
    transition: 0.3s;
}

.crypto-card:hover {
    transform: translateY(-5px);
}


/* ================= FOOTER BASE ================= */

.footer-glass {
    backdrop-filter: blur(12px);
    padding-top: 60px;
    padding-bottom: 30px;
    transition: .3s;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    font-size: 14px;
    transition: .25s;
}

/* ================= DARK MODE ================= */

body:not(.light-mode) .footer-glass {
    background: rgba(15,23,42,.75);
    border-top: 1px solid rgba(255,255,255,.05);
}

body:not(.light-mode) .footer-links a {
    color: #94a3b8;
}

body:not(.light-mode) .footer-links a:hover {
    color: #a855f7;
}

body:not(.light-mode) .footer-social i {
    color: #cbd5e1;
}

body:not(.light-mode) .footer-social i:hover {
    color: #a855f7;
}

/* ================= LIGHT MODE ================= */

body.light-mode .footer-glass {
    background: rgba(255,255,255,.9);
    border-top: 1px solid rgba(0,0,0,.08);
}

body.light-mode .footer-links a {
    color: #475569;
}

body.light-mode .footer-links a:hover {
    color: #9333ea;
}

body.light-mode .footer-social i {
    color: #334155;
}

body.light-mode .footer-social i:hover {
    color: #9333ea;
}

body.light-mode .footer-bottom {
    color: #64748b;
}


/* ===== WALLET EXACT DESIGN ===== */

.wallet-balance-card{
    padding:30px;
    border-radius:20px;
    background:linear-gradient(135deg,#3b82f6,#9333ea);
    color:white;
}

.asset-item{
    padding:14px 16px;
    border-radius:12px;
    background:rgba(255,255,255,.03);
    margin-bottom:10px;
    display:flex;
    justify-content:space-between;
    cursor:pointer;
    transition:.3s;
}

.asset-item:hover{
    background:rgba(255,255,255,.06);
}

.asset-item.active{
    background:linear-gradient(90deg,#3b82f6,#9333ea);
    border:2px solid rgba(255,255,255,.3);
}

.wallet-chart-card{
    height:240px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.wallet-empty{
    opacity:.5;
}

.wallet-qr-box{
    background:rgba(255,255,255,.05);
    padding:20px;
    border-radius:20px;
}
/* BASE */
.wallet-toggle {
    display: flex;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* BUTTON */
.wallet-toggle button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* ACTIVE TAB */
.wallet-toggle button.active {
    background: #334155;
    color: #22c55e;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* HOVER EFFECT */
.wallet-toggle button:hover {
    color: #e2e8f0;
}

/* ================= LIGHT MODE ================= */
body.light-mode .wallet-toggle {
    background: #f1f5f9;
}

body.light-mode .wallet-toggle button {
    color: #64748b;
}

body.light-mode .wallet-toggle button.active {
    background: white;
    color: #16a34a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.wallet-upload{
    border:2px dashed rgba(255,255,255,.15);
    border-radius:12px;
    padding:30px;
    text-align:center;
    opacity:.6;
}

.wallet-history-empty{
    padding:60px;
    text-align:center;
    opacity:.5;
}


/* LIGHT MODE FIX */

body.light-mode .asset-item{
    background:#f1f5f9;
}

body.light-mode .wallet-upload{
    border-color:#cbd5e1;
}

body.light-mode .wallet-toggle{
    background:#e2e8f0;
}

body.light-mode .wallet-toggle button.active{
    background:white;
}


/* Admin */

.active-admin-link {
    background-color: rgba(168,85,247,0.1) !important;
    border-left: 3px solid #a855f7 !important;
    color: white !important;
}

.active-admin-link i {
    color: #a855f7 !important;
}

/* Make sidebar work in light mode */
body.light-mode .bg-dark.bg-opacity-50 {
    background-color: rgba(255,255,255,0.85) !important;
    border-color: rgba(0,0,0,0.08) !important;
}

body.light-mode .list-group-item {
    color: #0f172a !important;
}

body.light-mode .list-group-item.text-muted {
    color: #64748b !important;
}

body.light-mode .active-admin-link {
    background-color: rgba(147, 51, 234, 0.1) !important;
    border-left-color: #9333ea !important;
}

/* Better hover in light mode */
body.light-mode .list-group-item:hover {
    background-color: rgba(0,0,0,0.05) !important;
    color: #9333ea !important;
}


/* DARK MODE TABLE */
.table {
    color: #e2e8f0;
}

.table thead {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.table td,
.table th {
    border-color: rgba(255,255,255,0.08) !important;
}

/* Hover */
.table-hover tbody tr:hover {
    background: rgba(168,85,247,0.08);
}

/* FIX DARK BG */
.table-dark {
    --bs-table-bg: transparent;
}


/* ================= LIGHT MODE FIX ================= */
/* LIGHT MODE TABLE FIX (STRONG OVERRIDE) */
body.light-mode .table-dark {
    background-color: #ffffff !important;
    color: #0f172a !important; /* DARK TEXT */
}

body.light-mode .table-dark thead th {
    color: #0f172a !important;
    background-color: #f8fafc !important;
}

body.light-mode .table-dark tbody td {
    color: #1e293b !important;
}

/* Borders */
body.light-mode .table-dark td,
body.light-mode .table-dark th {
    border-color: rgba(0,0,0,0.08) !important;
}

/* Hover */
body.light-mode .table-hover tbody tr:hover {
    background: rgba(0,0,0,0.04) !important;
}
.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    margin: 8px;
    background: rgba(255,255,255,0.03);
    transition: 0.3s;
}

.market-item:hover {
    background: rgba(168,85,247,0.12);
    cursor: pointer;
}

.active-market {
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    color: #fff;
}

.coin-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
}

.coin-icon.btc { background:#f7931a; }
.coin-icon.eth { background:#3b82f6; }

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15);
}

/* Light Mode Support */
body.light-mode .hover-lift:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.light-mode .text-white-50 {
    color: #475569 !important;
}
.nav-pills .nav-link {
    color: #cbd5f5;
}

body.light-mode .nav-pills .nav-link {
    color: #334155;
}
body.light-mode .glass-panel {
    background: rgba(255, 255, 255, 0.7);
}

.nav-pills .nav-link.active {
    background: linear-gradient(90deg, #a855f7, #3b82f6) !important;
    color: white !important;
}

.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
}

.upload-box {
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: #a855f7 !important;
    background: rgba(168, 85, 247, 0.05);
}


/* ================= Admin Tabs Start ================= */



.admin-tab {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 18px;
    color: #cbd5e1;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.admin-tab h6 {
    margin: 0;
    font-weight: 600;
    color: #fff;
}

.admin-tab small {
    color: #94a3b8;
}

/* Hover */
.admin-tab:hover {
    transform: translateY(-3px);
    border-color: #3b82f6;
}

/* Active Tab */
.admin-tab.active {
    border: 2px solid #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.admin-tab.active h6 {
    color: #a78bfa;
}




/* ================= Admin Tabs End ================= */
/* ====================== CUSTOM MODAL FOR BOTH MODES ====================== */
.custom-modal-content {
    border-radius: 12px;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==================== LIGHT MODE ==================== */
body.light-mode .custom-modal-content {
    background-color: #ffffff !important;
    color: #111827 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.light-mode .custom-modal-content .form-control,
body.light-mode .custom-modal-content .form-select {
    background-color: #f8fafc !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
}

body.light-mode .custom-modal-content .form-label {
    color: #374151 !important;
}

/* ==================== DARK MODE (Default) ==================== */
.custom-modal-content {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

.custom-modal-content .form-control,
.custom-modal-content .form-select {
    background-color: #1e2937 !important;
    color: #e2e8f0 !important;
    border: 1px solid #475569 !important;
}

.custom-modal-content .form-control:focus,
.custom-modal-content .form-select:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

.custom-modal-content .form-label {
    color: #cbd5e1 !important;
}

/* Header & Footer */
.custom-modal-content .modal-header,
.custom-modal-content .modal-footer {
    border-color: rgba(255,255,255,0.1) !important;
}

body.light-mode .custom-modal-content .modal-header,
body.light-mode .custom-modal-content .modal-footer {
    border-color: #e5e7eb !important;
}
.modal-footer {
    flex-wrap: nowrap !important;

}

/* Close Button */
body.light-mode .btn-close {
    filter: none !important;
}

body:not(.light-mode) .btn-close {
    filter: invert(1) !important;
}
/* ================= Modal Design for Dark and Light End ================= */
.user-btn {
    background: #ffffff;
    border-radius: 50px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.user-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.user-dropdown {
    border-radius: 12px;
    min-width: 220px;
    overflow: hidden;
}

.user-dropdown .dropdown-item {
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.user-dropdown .dropdown-item:hover {
    background: #f1f5f9;
    padding-left: 18px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ================= FAQ CUSTOM ================= */

.faq-wrapper {
    max-width: 900px;
    margin: auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

/* DARK MODE (default) */
.faq-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

/* LIGHT MODE */
body.light-mode .faq-item {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
}

/* QUESTION */
.faq-question {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

/* HOVER */
.faq-item:hover {
    transform: translateY(-3px);
}

/* ANSWER */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    opacity: 0;
}

/* OPEN STATE */
.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 15px 20px;
    opacity: 1;
}

/* TEXT COLORS */
.faq-answer {
    color: #94a3b8;
}

body.light-mode .faq-answer {
    color: #64748b;
}

/* ICON ROTATE */
.faq-question i {
    transition: 0.3s;
}

.faq-item.active i {
    transform: rotate(180deg);
}