/* ==========================================================================
   Crypto Navbar — bar + mobile offcanvas (outside container)
   ========================================================================== */

.crypto-theme .crypto-navbar-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 64px;
}

.crypto-theme .crypto-navbar-brand {
    flex-shrink: 0;
}

.crypto-theme .crypto-navbar-brand .navbar-brand img {
    width: auto !important;
    max-width: 155px;
    max-height: 38px;
    height: auto !important;
    object-fit: contain;
    display: block;
}

/* Desktop center bar */
.crypto-theme .crypto-navbar-center {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 720px;
    margin: 0 auto;
}

.crypto-theme .crypto-navbar-center .crypto-nav-search-wrap {
    flex: 1;
    min-width: 0;
    max-width: 380px;
}

.crypto-theme .crypto-navbar-center .navbar-nav {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
}

/* Mobile offcanvas — must not live inside backdrop-filter header */
.crypto-theme .crypto-nav-offcanvas.offcanvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    width: min(320px, 88vw) !important;
    background: var(--crypto-surface) !important;
    border-right: 1px solid var(--crypto-border) !important;
    z-index: 1055 !important;
    visibility: visible !important;
    color: var(--text-color);
}

.crypto-theme .crypto-nav-offcanvas .offcanvas-title h6 {
    color: var(--text-color);
    margin: 0;
}

.crypto-theme .crypto-nav-offcanvas .offcanvas-title .small {
    color: var(--crypto-muted, rgba(255, 255, 255, 0.55));
}

.crypto-theme .crypto-nav-offcanvas .btn-close {
    opacity: 0.85;
    filter: invert(1) grayscale(100%);
}

.crypto-theme .crypto-nav-offcanvas .avatar-img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border: 2px solid rgba(0, 212, 255, 0.35);
}

.crypto-theme .crypto-nav-offcanvas .offcanvas-header {
    padding: 1rem 1.15rem;
    border-color: var(--crypto-border-soft) !important;
}

.crypto-theme .crypto-nav-offcanvas .offcanvas-body {
    padding: 1rem 1.15rem !important;
}

.crypto-theme .crypto-nav-offcanvas .crypto-nav-search-wrap {
    margin-bottom: 1rem;
}

.crypto-theme .crypto-nav-offcanvas .navbar-nav {
    gap: 0.35rem;
}

.crypto-theme .offcanvas-backdrop {
    z-index: 1050 !important;
}

body.offcanvas-open {
    overflow: hidden;
}

body > .search-overlay {
    z-index: 1050 !important;
}

body > .search-block {
    z-index: 1055 !important;
    background: var(--crypto-surface) !important;
    color: var(--text-color);
    border-right: 1px solid var(--crypto-border);
}

body > .search-block input {
    background: var(--crypto-surface-2) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--crypto-border-soft) !important;
}

.crypto-theme .crypto-nav-offcanvas-auth .btn-outline-light {
    border-color: var(--crypto-border) !important;
    color: var(--text-color) !important;
}

:root[data-theme="light"] .crypto-theme .crypto-nav-offcanvas-auth .btn-outline-light {
    border-color: rgba(15, 23, 42, 0.15) !important;
    color: #334155 !important;
}

/* Search */
.crypto-theme .crypto-nav-search .search-form input {
    width: 100%;
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 1rem 0 2.35rem !important;
    background: var(--crypto-surface-2) !important;
    border: 1px solid var(--crypto-border-soft) !important;
    border-radius: 999px !important;
    color: var(--text-color) !important;
    font-size: 0.875rem !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.crypto-theme .crypto-nav-search .search-form {
    position: relative;
}

.crypto-theme .crypto-nav-search .search-form::before {
    content: '\F52A';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--crypto-accent);
    opacity: 0.75;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}

.crypto-theme .crypto-nav-search .search-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

:root[data-theme="light"] .crypto-theme .crypto-nav-search .search-form input::placeholder {
    color: rgba(15, 23, 42, 0.45);
}

.crypto-theme .crypto-nav-search .search-form input:focus {
    border-color: var(--crypto-accent) !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12) !important;
    outline: none;
}

/* Nav links */
.crypto-theme .crypto-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem !important;
    border-radius: 999px !important;
    font-size: 0.84rem !important;
    font-weight: 600;
    color: var(--text-color) !important;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.crypto-theme .crypto-nav-link:hover,
.crypto-theme .crypto-nav-link.show {
    color: var(--crypto-accent) !important;
    background: rgba(0, 212, 255, 0.08) !important;
    border-color: rgba(0, 212, 255, 0.2) !important;
}

.crypto-theme .crypto-nav-link--token {
    color: var(--crypto-accent-3) !important;
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
}

.crypto-theme .crypto-nav-link--token:hover {
    color: var(--crypto-accent-3) !important;
    background: rgba(16, 185, 129, 0.14) !important;
}

@media (max-width: 991.98px) {
    .crypto-theme .crypto-nav-offcanvas .crypto-nav-link {
        width: 100%;
        border-radius: 12px !important;
    }
}

/* Right actions */
.crypto-theme .crypto-navbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
    min-width: 0;
}

.crypto-theme .crypto-navbar-actions .h-col {
    margin-left: 0 !important;
}

.crypto-theme .crypto-nav-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    border: 1px solid var(--crypto-border-soft) !important;
    background: var(--crypto-surface-2) !important;
    color: var(--text-color) !important;
    font-size: 1.1rem !important;
    transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.crypto-theme .crypto-nav-icon-btn:hover {
    color: var(--crypto-accent) !important;
    border-color: var(--crypto-border) !important;
    background: var(--crypto-surface-3) !important;
    transform: translateY(-1px);
}

.crypto-theme .crypto-nav-icon-btn.btn-mint {
    border: none !important;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    line-height: 1 !important;
    top: 0 !important;
}

.crypto-theme .crypto-nav-icon-btn sup {
    top: -2px !important;
    right: -2px !important;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--crypto-accent) !important;
    color: #06080d !important;
    font-weight: 700;
    border: 1px solid var(--crypto-bg);
}

.crypto-theme .h-notification-icon.h-icon {
    width: 38px;
    height: 38px;
}

.crypto-theme .pux-live-balance {
    max-width: none !important;
    padding: 0.4rem 0.8rem !important;
    font-family: var(--crypto-mono);
    font-size: 0.8rem !important;
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: var(--crypto-accent-3) !important;
}

.crypto-theme .crypto-nav-profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.3rem 0.55rem 0.3rem 0.3rem !important;
    border-radius: 999px !important;
    border: 1px solid var(--crypto-border-soft);
    background: var(--crypto-surface-2);
    text-decoration: none !important;
}

.crypto-theme .crypto-nav-profile-trigger img {
    width: 34px !important;
    height: 34px !important;
    border: 2px solid rgba(0, 212, 255, 0.35);
}

.crypto-theme .crypto-nav-profile-trigger .profile-head {
    font-size: 0.68rem !important;
    opacity: 0.65;
    color: var(--text-color) !important;
}

.crypto-theme .crypto-nav-profile-trigger .text-nowrap {
    font-size: 0.82rem !important;
    font-weight: 700;
    color: var(--text-color) !important;
}

.crypto-theme .crypto-navbar {
    overflow: visible;
}

.crypto-theme .crypto-navbar-bar,
.crypto-theme .crypto-navbar-center,
.crypto-theme .crypto-navbar-actions {
    overflow: visible;
}

.crypto-theme .mega-dropdown-md .dropdown-menu {
    margin-top: 0.5rem !important;
    padding: 0.35rem !important;
    min-width: 520px;
    z-index: 1060 !important;
}

@media (max-width: 991.98px) {
    .crypto-theme .crypto-navbar-actions .pux-live-balance {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .crypto-theme .crypto-navbar-brand .navbar-brand img {
        max-height: 32px;
    }

    .crypto-theme .crypto-nav-profile-trigger .profile-text {
        display: none !important;
    }

    .crypto-theme .crypto-nav-profile-trigger {
        padding: 0.2rem !important;
        border-radius: 50% !important;
    }
}

.crypto-theme .crypto-navbar-actions .nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
}

.crypto-theme .crypto-navbar-actions .nav-item .btn {
    margin: 0 !important;
    padding: 0.42rem 0.9rem !important;
    font-size: 0.8rem !important;
    top: 0 !important;
}

@media (max-width: 399.98px) {
    .crypto-theme .crypto-navbar-actions .nav-item .btn-red {
        display: none;
    }
}

/* ==========================================================================
   Light mode — navbar gündüz uyumu
   ========================================================================== */
:root[data-theme="light"] .crypto-theme .vine-navbar {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

:root[data-theme="light"] .crypto-theme .crypto-navbar-brand .logo-dark {
    display: none;
}

:root[data-theme="light"] .crypto-theme .crypto-navbar-brand .logo-light {
    display: block;
    filter: none;
    opacity: 1;
}

:root[data-theme="dark"] .crypto-theme .crypto-navbar-brand .logo-light,
.crypto-theme .crypto-navbar-brand .logo-light {
    display: none;
}

:root[data-theme="dark"] .crypto-theme .crypto-navbar-brand .logo-dark,
.crypto-theme .crypto-navbar-brand .logo-dark {
    display: block;
}

:root[data-theme="light"] .crypto-theme .crypto-nav-search .search-form input {
    background: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .crypto-theme .crypto-nav-search .search-form::before {
    color: #0891b2;
}

:root[data-theme="light"] .crypto-theme .crypto-nav-search .search-form input:focus {
    background: #ffffff !important;
    border-color: #0891b2 !important;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15) !important;
}

:root[data-theme="light"] .crypto-theme .crypto-nav-link {
    color: #475569 !important;
}

:root[data-theme="light"] .crypto-theme .crypto-nav-link:hover,
:root[data-theme="light"] .crypto-theme .crypto-nav-link.show {
    color: #0891b2 !important;
    background: rgba(8, 145, 178, 0.08) !important;
    border-color: rgba(8, 145, 178, 0.2) !important;
}

:root[data-theme="light"] .crypto-theme .crypto-nav-link--token {
    color: #059669 !important;
    background: rgba(5, 150, 105, 0.1) !important;
    border-color: rgba(5, 150, 105, 0.25) !important;
}

:root[data-theme="light"] .crypto-theme .crypto-nav-icon-btn {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #475569 !important;
}

:root[data-theme="light"] .crypto-theme .crypto-nav-icon-btn:hover {
    color: #0891b2 !important;
    border-color: rgba(8, 145, 178, 0.35) !important;
    background: #f8fafc !important;
}

:root[data-theme="light"] .crypto-theme .crypto-nav-icon-btn.btn-mint {
    color: #ffffff !important;
}

:root[data-theme="light"] .crypto-theme .pux-live-balance {
    background: rgba(5, 150, 105, 0.1) !important;
    border-color: rgba(5, 150, 105, 0.3) !important;
    color: #059669 !important;
}

:root[data-theme="light"] .crypto-theme .pux-live-balance i,
:root[data-theme="light"] .crypto-theme .pux-live-balance span {
    color: #059669 !important;
}

:root[data-theme="light"] .crypto-theme .crypto-nav-profile-trigger {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
}

:root[data-theme="light"] .crypto-theme .crypto-nav-profile-trigger .profile-head {
    color: #64748b !important;
    opacity: 1;
}

:root[data-theme="light"] .crypto-theme .crypto-nav-profile-trigger .text-nowrap {
    color: #0f172a !important;
}

:root[data-theme="light"] .crypto-theme .crypto-nav-profile-trigger img {
    border-color: rgba(8, 145, 178, 0.35);
}

:root[data-theme="light"] .crypto-theme .crypto-nav-offcanvas {
    background: #ffffff !important;
    border-right-color: rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .crypto-theme .crypto-nav-offcanvas .btn-close {
    filter: none;
    opacity: 0.65;
}

:root[data-theme="light"] .crypto-theme .crypto-nav-offcanvas .offcanvas-title h6 {
    color: #0f172a;
}

:root[data-theme="light"] .crypto-theme .dropdown-menu {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12) !important;
}

:root[data-theme="light"] .crypto-theme .dropdown-menu .dropdown-item {
    color: #334155 !important;
}

:root[data-theme="light"] .crypto-theme .dropdown-menu .dropdown-item:hover {
    background: rgba(8, 145, 178, 0.08) !important;
    color: #0891b2 !important;
}

:root[data-theme="light"] .crypto-theme .mega-menu-title {
    color: #0891b2 !important;
}

:root[data-theme="light"] .crypto-theme .header-end .h-icon sup {
    background: #0891b2 !important;
    color: #ffffff !important;
    border-color: #ffffff;
}

:root[data-theme="light"] .crypto-theme #theme-switcher {
    background: #ffffff;
    color: #0891b2;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .crypto-theme .crypto-navbar-actions .nav-item .btn-border,
:root[data-theme="light"] .crypto-theme .crypto-navbar-actions .btn-light {
    color: #475569 !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
}
