:root {
    --primary: #ff6a00;
    --primary-dark: #cc5500;
    --bg-dark: #0d0d0d;
    --bg-card: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #888888;
}

.glow-text {
    animation: glowPulse 1.5s infinite;
    color: orange;
}

@keyframes glowPulse {

    0%,
    100% {
        text-shadow: 0 0 5px orange, 0 0 10px orange, 0 0 15px orange;
    }

    50% {
        text-shadow: 0 0 1px orange, 0 0 2px orange, 0 0 3px orange;
    }
}



body {
    margin: 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Prevent horizontal scroll on mobile */
html {
    overflow-x: hidden;
    width: 100%;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer base */
.footer {
  background: #0d0d0d;
  color: #e5e7eb;
  padding: 20px 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: auto;
}

/* Container */
.footer-container {
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Brands section */
.footer-brands-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 12px;
}

.footer-brand-logo img {
  height: 26px;
  width: auto;
}

.footer-brands-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-brand-item img {
  height: 32px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.footer-brand-item:hover {
  opacity: 1;
}

/* Content section */
.footer-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
}

/* Newsletter column */
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-subscribe-title {
  font-size: 13px;
  font-weight: 500;
  color: #f9fafb;
  display: block;
}

.footer-subscribe-form {
  display: flex;
  gap: 8px;
}

.footer-subscribe-form input[type="email"] {
  width: 160px;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: #e5e7eb;
  outline: none;
  transition: border-color 0.2s ease;
}

.footer-subscribe-form input[type="email"]::placeholder {
  color: #6b7280;
}

.footer-subscribe-form input[type="email"]:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.15);
}

.footer-subscribe-form button {
  padding: 8px 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: #f97316;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.footer-subscribe-form button:hover {
  background: #ea7e0e;
}

.footer-subscribe-form button:active {
  opacity: 0.9;
}

/* Socials and links section */
.footer-socials-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.footer-social-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-social-icons svg,
.footer-social-icons img {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-social-icons a:hover {
  color: #f97316;
}

.footer-nav-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav-links a {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-links a:hover {
  color: #f97316;
}

/* Copyright section */
.footer-copyright {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
  text-align: right;
}

@media (max-width: 768px) {
  .footer-container {
    max-width: 100%;
  }

  .footer-brands-section {
    display: grid;
    grid-template-columns: 1fr;/* 1fr; */
    gap: 20px;
    padding-bottom: 24px;
    justify-items: center;
    align-items: center;
  }

  .footer-brand-logo {
    margin-right: 0;
    grid-column: 1 / -1;
  }

  .footer-brands-group {
    grid-column: auto;
    justify-content: center;
  }

  .footer-newsletter {
    align-items: center;
  }

  .footer-newsletter .footer-subscribe-form {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-newsletter .footer-subscribe-form input[type="email"] {
    width: 100%;
  }

  .footer-copyright {
    text-align: center;
    font-size: 11px;
  }
}

.navbar_main {
    width: 100%;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    padding: 4px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 106, 0, 0.2);
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    z-index: 1000;
}

.navbar {
    width: 95%;
    max-width: none;
    margin: 0 0;
    padding: 4px 24px 0px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

/* Responsive breakpoints for intermediate screen sizes */
/* Large Desktop (1600px and below) */
@media (max-width: 1600px) {
    .brand-text {
        font-size: 18px;
    }

    .menu-item {
        font-size: 13px;
        padding: 5px 11px;
    }

    .navbar-right {
        font-size: 14px;
    }

    .bitcoinstats-label {
        font-size: 12px;
    }

    .footer-left,
    .footer-right {
        font-size: 0.9rem;
    }
}

/* Medium Desktop (1366px and below - common laptop) */
@media (max-width: 1366px) {
    .brand-text {
        font-size: 17px;
    }

    .brand-mark {
        width: 24px;
        height: 24px;
        font-size: 15px;
    }

    .menu-item {
        font-size: 12.5px;
        padding: 5px 10px;
    }

    .navbar-right {
        font-size: 13.5px;
    }

    .dropdown {
        font-size: 14px;
        min-width: 200px;
    }

    .bitcoinstats-label {
        font-size: 11.5px;
    }

    .main-content {
        padding: 90px 0 35px;
    }

    .footer-left,
    .footer-right {
        font-size: 0.9rem;
    }
}

/* Small Desktop (1280px and below) */
@media (max-width: 1280px) {
    .brand-text {
        font-size: 16px;
    }

    .brand-mark {
        width: 23px;
        height: 23px;
        font-size: 14px;
    }

    .menu-item {
        font-size: 12px;
        padding: 4.5px 9px;
    }

    .navbar-right {
        font-size: 13px;
    }

    .dropdown {
        font-size: 13.5px;
        min-width: 190px;
    }

    .bitcoinstats-label {
        font-size: 11px;
    }

    .main-content {
        padding: 85px 0 32px;
    }

    .navbar {
        padding: 4px 20px 9px;
    }
}

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
    .brand-text {
        font-size: 15px;
    }

    .brand-mark {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }

    .menu-item {
        font-size: 11.5px;
        padding: 4px 8px;
    }

    .navbar-right {
        font-size: 12.5px;
    }

    .dropdown {
        font-size: 13px;
        min-width: 180px;
    }

    .bitcoinstats-label {
        font-size: 10.5px;
    }

    .main-content {
        padding: 80px 0 30px;
    }

    .navbar {
        padding: 4px 18px 8px;
    }

    .navbar-row {
        gap: 1rem;
    }
}

/* Mobile navbar adjustments */
@media (max-width: 768px) {
    .navbar_main {
        padding: 6px 0;
        position: relative;
        z-index: auto;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .navbar {
        padding: 4px 16px 8px;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .navbar_main {
        padding: 4px 0;
        position: relative;
        z-index: auto;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .navbar {
        padding: 3px 12px 6px;
    }
}

/* First Row: Title and Menu on left and right */
.navbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1.5rem;
    margin-bottom: 0px;
}

.navbar-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
}

.navbar-right {
    display: flex;
    font-size: 15px;
    justify-content: flex-end;
    flex: 1 1 auto;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 4px 8px;
    border-radius: 999px;
    color: orange;
    text-decoration: none;
    /*background: radial-gradient(circle at 0 0, rgba(255, 106, 0, 0.25), transparent 90%);*/
}

.navbar-logo {
    height: 70px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
	margin-bottom: -10px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 106, 0, 0.1);
    border: 1px solid rgba(255, 106, 0, 0.45);
    font-size: 16px;
    color: #ffb347;
}

.brand-text {
    font-weight: 650;
    letter-spacing: -0.03em;
    font-size: 20px;
}


/* Menu Styles */
.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

/* Menu Item Styling */
.menu-item {
    position: relative;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-light);
    font: inherit;
    font-size: 14px;
    transition: all 0.18s ease-out;
}

.menu-item:hover {
    background: rgba(255, 106, 0, 0.16);
    border-color: rgba(255, 106, 0, 0.4);
}

.menu-item:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

.menu-item--primary {
    background: linear-gradient(135deg, #ff8a3c, #ff6a00);
    border-color: rgba(0, 0, 0, 0.4);
    color: #050505;
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.45);
}

.menu-item--primary:hover {
    background: linear-gradient(135deg, #ff9a55, #ff7616);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 26px rgba(0, 0, 0, 0.55);
}

/* Dropdown Styles */
.dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 0px;
    font-size: 15px;
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.menu-item:hover .dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(5px);
}

/* Dropdown Item Styles */
.dropdown-item {
    padding: 5px 12px;
    cursor: pointer;
}

/* Second Row: Stats Section */
.bitcoinstats {
    display: none;
    /*  display: flex;  */
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 2px 0 0;
    text-align: center;

    justify-content: center;
    align-items: center;
    width: 100%;
}

.bitcoinstats-label {
    color: var(--text-gray);
    font-size: 13px;
}


/* Main Content */
.main-content {
    flex: 1;
    padding: 96px 0 40px;
    width: 95%;
    max-width: none;
    margin: 0 auto 40px;
    box-sizing: border-box;
}

/* Responsive main content */
@media (max-width: 768px) {
    .main-content {
        padding-top: 20px;
        padding-bottom: 30px;
        width: 95%;
        margin: 0 auto 20px;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding-top: 15px;
        padding-bottom: 20px;
        width: 95%;
        margin: 0 auto 15px;
    }

    .footer-left {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-top: 10px;
        padding-bottom: 20px;
        width: 95%;
        margin: 0 auto 15px;
    }
}

.title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 0px;
    color: var(--primary);
    padding: 0 1rem;
}

@media (max-width: 480px) {
    .title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .search-box input,
    .filter-box select {
        padding: 5px 5px;
        border-radius: 6px;
        border: 1px solid rgba(255, 106, 0, 0.2);
        background: var(--bg-card);
        color: var(--text-light);
        font-size: 13px;
        width: 100%;
        max-width: 150px;
    }

    .filter-box2 select {
        padding: 4px 8px;
        border-radius: 6px;
        border: 1px solid rgba(255, 106, 0, 0.2);
        background: var(--bg-card);
        color: var(--text-light);
        font-size: 14px;
        width: 100%;
        max-width: 150px;
    }
}

.search-box input,
.filter-box select {
    padding: 5px 5px;
    border-radius: 6px;
    border: 1px solid rgba(255, 106, 0, 0.2);
    background: var(--bg-card);
    color: var(--text-light);
    font-size: 13px;
    width: 300px;
}

.filter-box2 select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 106, 0, 0.2);
    background: var(--bg-card);
    color: var(--text-light);
    font-size: 14px;
    width: 320px;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: 12px;
    margin: 0 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .table-container {
        margin: 0 5px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .table-container {
        margin: 0;
        border-radius: 0;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    background: rgba(255, 106, 0, 0.1);
    padding: 8px 16px;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.totals-row {
    background: rgba(255, 106, 0, 0.1);
    padding: 8px 16px;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.totals-row2 {
    background: rgba(255, 106, 0, 0.1);
    padding: 0px 0px;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

th:hover {
    background: rgba(255, 106, 0, 0.2);
}

td {
    padding: 8px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

tr:hover {
    background: rgba(255, 106, 0, 0.05);
}

.sort-icon {
    display: inline-block;
    margin-left: 4px;
    color: var(--primary);
}

.tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
}

.balance {
    color: var(--primary);
    font-weight: 500;
}

/* Page layout */
.page {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.section-shell {
    padding-inline: 0;
    padding-bottom: clamp(2rem, 5vw, 2.5rem);
}

@media (max-width: 480px) {
    .section-shell {
        padding-bottom: 1.5rem;
    }
}

.section-header {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .section-header {
        width: 95%;
        padding: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .section-header {
        width: 100%;
        padding: 0 1rem;
    }
}

.section-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.section-description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Responsive tweaks */
@media (max-width: 900px) {

    .menu {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    .navbar {
        padding-inline: 12px;
    }

    .navbar-row {
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-bottom: 0;
    }

    .bitcoinstats {
        display: none;
    }

    .navbar-left,
    .navbar-right {
        width: 100%;
    }

    .brand-link {
        width: 100%;
        justify-content: center;
        padding: 2px 4px;
    }

    .brand-text {
        font-size: 17px;
    }

    .menu {
        width: 100%;
        gap: 0.25rem;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 4px;
    }

    .menu-item {
        padding-inline: 10px;
        padding-block: 6px;
        font-size: 13px;
        min-height: 36px;
        margin-top: 0;
        text-align: center;
    }

    /* Tables shrink and scroll instead of overflowing */
    .table-container {
        margin: 0;
        border-radius: 0;
    }

    table {
        font-size: 12px;
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    th,
    td {
        padding: 8px 10px;
        white-space: nowrap;
    }
}





::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-thumb {
    background-color: #ff9900;
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #ff9200;
}


#entitySelector {
    display: flex;
    justify-content: flex-end;
    top: 5px;
    right: 10px;
    font-size: 16px;
}

/* Mobile rotate warning popup */
.rotate-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
}
.rotate-warning.show {
    display: flex;
}
.rotate-warning .icon {
    font-size: 6rem;
    color: #f7931a;
    animation: rotate 2s linear infinite;
    margin-bottom: 1.5rem;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.rotate-warning h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, #f7931a, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.rotate-warning p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 2rem 0;
    opacity: 0.9;
}
.rotate-warning .dismiss {
    background: #f7931a;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 0.875rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.4);
}
.rotate-warning .dismiss:hover {
    background: #e68300;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 147, 26, 0.6);
}