/* Import Inter font - full range of weights as specified */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* CSS Variables / Design Tokens */
:root {
  /* Colors */
  --accent-cool: #425DCF;
  --accent-mid: #0050FE;
  --text-primary: #192A4D;
  --text-secondary: #37435A;
  --text-muted: #6b717d;
  /* Improved contrast from #878E9B */
  --border-color: #E4E8F0;
  --bg-primary: #FDFDFD;
  /* Softer white */
  --bg-secondary: #FAFAFA;
  --shadow-sm: 0 4px 6px rgba(25, 42, 77, .05);
  --shadow-md: 0 4px 12px rgba(25, 42, 77, .12);

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;

  /* Border Radius */
  --radius-sm: 10px;
  /* Increased from 8px */
  --radius-md: 16px;
  /* Increased from 12px */

  /* Container */
  --container-width: 100%;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  /* Increased from 1.5 */
  font-size: 16px;
  font-weight: 450;
  /* Increased from 400 */
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
li {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout & Container */
/*
.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 60px;
  /* Reduced from 5px * /
  padding-right: 60px;
  /* Reduced from 5px * /
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -var(--space-2);
  margin-right: -var(--space-2);
}

.col {
  padding-left: var(--space-2);
  padding-right: var(--space-2);
  flex: 1;
}
*/
/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: var(--space-2);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 28px;
}

h4 {
  font-size: 24px;
}

h5 {
  font-size: 20px;
}

h6 {
  font-size: 18px;
}

p {
  margin-bottom: var(--space-2);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-cool) 0%, var(--accent-mid) 100%);
  color: white;
}

.btn-primary i {
  margin-left: 15px;
}

/* Specific rule for the Energy Bot telegram button */
.teleg-mob .btn i.bi-telegram {
  margin-left: 15px;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #526DDF 0%, #1A60FE 100%);
  /* Brighter gradient on hover */
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--accent-cool);
  color: var(--accent-cool);
}

.btn-secondary:hover {
  background: rgba(66, 93, 207, .1);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-light:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-cool);
  /* Added accent border on hover */
}

.btn-sm {
  padding: 8px 12px;
  font-size: 14px;
}

.btn-lg {
  padding: 12px 20px;
  font-size: 18px;
}

.btn-outline-light {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(253, 253, 253, 0.95);
  /* Adjusted background and opacity */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-2) 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  /* Added subtle shadow */
}

.tronlink-connect-btn {
  display: inline-flex !important;
  align-items: center;
  padding: 8px 16px;
  font-weight: 600;
  color: white !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.tronlink-connect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.tronlink-connect-btn i {
  margin-right: 5px;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-dark {
  background: rgba(255, 255, 255, 0.9);
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 8px 16px;
  position: relative;
  transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: linear-gradient(90deg, var(--accent-cool) 0%, var(--accent-mid) 100%);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--accent-mid);
}

.navbar-dark .navbar-nav .nav-link:hover:after {
  width: 80%;
}

/* Hero Section */
.hero-section {
  padding: var(--space-5) 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

.hero-subtitle li {
  margin-bottom: var(--space-1);
}

.hero-section .bi-check-circle-fill {
  color: var(--accent-cool);
}

/* Glass Card */
.glass-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.glass-card h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

/* Table Styles */
.table-responsive {
  overflow-x: auto;
  width: 100%;
}

.table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: middle;
  border-top: 1px solid var(--border-color);
  text-align: left;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  color: var(--text-secondary);
}

.table tbody tr:hover {
  background-color: rgba(66, 93, 207, 0.05);
}

/* Form Elements */
.form-label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cool);
  box-shadow: 0 0 0 3px rgba(66, 93, 207, 0.25);
}

/* Improved focus states for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent-cool);
  outline-offset: 2px;
}

.btn:focus {
  box-shadow: 0 0 0 3px rgba(66, 93, 207, 0.4);
}

.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: none;
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

/* Style for the search icon in the search bar */
form[action="/search.php"] .input-group .input-group-text button.btn-primary i.fas.fa-search {
  color: var(--accent-cool);
  /* Make search icon visible */
  margin-left: 0;
  /* Remove default margin from .btn-primary i */
}

.suggestion-btn {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.suggestion-btn:hover {
  background: var(--accent-cool);
  color: white;
}

.form-select {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23878E9B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Section Styling */
.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: var(--space-4);
  text-align: center;
  color: var(--text-primary);
}

.features-section,
.integrations-section,
.wallet-section,
.faq-section {
  padding: var(--space-5) 0;
  background: var(--bg-secondary);
}

.features-section:nth-child(even),
.integrations-section:nth-child(even),
.wallet-section:nth-child(even) {
  background: var(--bg-primary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}

.feature-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-item img {
  height: 60px;
  width: auto;
  margin: 0 auto var(--space-2);
}

.feature-item p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Card Blocks */
.card-block {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-block h4 {
  color: var(--accent-cool);
  margin-bottom: var(--space-2);
}

.card-block p {
  color: var(--text-secondary);
}

/* Wallet Section */
.wallet__title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.wallet__item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wallet__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.wallet__item-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.wallet__item-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

.wallet__item-img img {
  border-radius: var(--radius-sm);
  max-width: 100%;
}

/* FAQ Section */
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
  overflow: hidden;
}

.accordion-header {
  margin: 0;
}

.accordion-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-2);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 18px;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, rgba(66, 93, 207, 0.05) 0%, rgba(0, 80, 254, 0.05) 100%);
  color: var(--accent-mid);
}

.accordion-button::after {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 3.33337V12.6667M3.33301 8.00004H12.6663' stroke='%23425DCF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(45deg);
}

.accordion-body {
  padding: var(--space-2);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 16px;
  border-top: 1px solid var(--border-color);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: var(--space-4) 0;
}

.footer__line {
  background-color: transparent !important;
}

.footer__body {
  background-color: transparent !important;
  color: var(--text-primary) !important;
  /* display: flex; /* This is already on the inner div, let's control it there */
  /* justify-content: space-between; */
  /* align-items: center; */
  /* flex-wrap: wrap; */
}

/* This is the direct child of footer__body that has the d-flex */
.footer__body>.d-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* Align items to the top */
  flex-wrap: wrap;
  width: 100%;
}

.footer__item {
  margin-bottom: var(--space-3);
  /* Increased bottom margin for spacing when wrapped */
  padding: 0 var(--space-2);
  /* Add some horizontal padding */
}

/* Adjust flex properties for footer items for better distribution */
.footer__item:nth-child(1) {
  /* Copyright */
  flex: 1 1 30%;
  /* Grow, shrink, basis */
  min-width: 250px;
  /* Minimum width before wrapping */
  text-align: left;
}

.footer__item_menu {
  /* Menu */
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
  /* Center align the menu items */
}

.footer__item:nth-child(3) {
  /* Social */
  flex: 1 1 30%;
  min-width: 200px;
  text-align: right;
}


.footer__copyright,
.footer__Follow {
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
  /* Add some space below titles */
  display: block;
  /* Make titles block for better spacing */
}

.footer__icon {
  margin-right: var(--space-2);
  transition: transform 0.3s;
  color: var(--text-secondary);
  /* Ensure icons have a color */
}

.footer__icon:last-child {
  margin-right: 0;
}

.footer__icon:hover {
  transform: translateY(-2px);
  color: var(--accent-cool);
  /* Change color on hover */
}

.footer__item_menu .nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  /* Row and column gap */
  justify-content: center;
  /* Center the nav list items */
  margin: 0;
  padding: 0;
}

.footer__item_menu .nav__item {
  margin: 0;
  /* Remove individual margins, use gap */
}

.footer__item_menu .nav__link {
  color: var(--text-secondary);
  transition: color 0.3s;
  white-space: nowrap;
  padding: var(--space-1) 0;
  /* Add some padding for easier clicking */
}

.footer__item_menu .nav__link:hover {
  color: var(--accent-mid);
}

.footer__icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* Align icons to the right for the social block */
  flex-wrap: wrap;
  /* Allow icons to wrap if needed */
  gap: var(--space-2);
}

/* .footer__icon img - not used as icons are font based */

/* Powered by section */
.footer__body>.mt-3.text-center {
  width: 100%;
  /* Ensure it takes full width */
  margin-top: var(--space-3) !important;
  /* Ensure spacing from items above */
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-color);
}

/* Responsive adjustments for footer */
@media (max-width: 992px) {

  .footer__item:nth-child(1),
  .footer__item_menu,
  .footer__item:nth-child(3) {
    flex-basis: 45%;
    /* Allow two items per row */
    text-align: center;
    /* Center text for medium screens */
    margin-bottom: var(--space-3);
  }

  .footer__item_menu .nav__list {
    justify-content: center;
  }

  .footer__icons {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .footer__body>.d-flex {
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    /* Center items when stacked */
  }

  .footer__item,
  .footer__item:nth-child(1),
  .footer__item_menu,
  .footer__item:nth-child(3) {
    flex-basis: 100%;
    /* Full width for each item */
    width: 100%;
    text-align: center;
    /* Center text for small screens */
    margin-bottom: var(--space-3);
    /* Consistent spacing */
    padding: 0;
    /* Remove side padding when stacked */
  }

  .footer__item:last-of-type {
    /* Remove bottom margin from the last stacked item in the main group */
    margin-bottom: 0;
  }

  .footer__icons {
    justify-content: center;
    /* Center icons */
  }
}

/* Animation on Scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1200px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 24px;
  }

  .section-title {
    font-size: 32px;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  .section-title {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wallet__col {
    width: 100%;
  }

  /* Updated styles for TronLink button visibility */
  .tronlink-connect-btn {
    display: inline-flex !important;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .row {
    flex-direction: column;
  }

  .col-lg-7,
  .col-lg-5 {
    width: 100%;
  }

  .teleg-mob {
    justify-content: center;
    margin-bottom: var(--space-3);
  }

  /* Updated footer styling for mobile */
  .footer__body>div {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__item {
    margin-bottom: 15px;
    justify-content: center;
  }

  .footer__item_menu {
    width: 100%;
  }

  .footer__item_menu .nav__list {
    justify-content: center;
    gap: 15px;
  }

  .footer__item_menu .nav__item {
    margin: 5px;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: var(--space-1);
    padding-right: var(--space-1);
  }

  .section-title {
    font-size: 24px;
  }

  .hero-section {
    padding: var(--space-3) 0;
  }

  .btn-hero {
    width: 100%;
    margin-bottom: var(--space-1);
  }

  .hero-subtitle {
    font-size: 16px;
    /* Smaller font size on mobile */
  }

  .hero-subtitle li {
    margin-bottom: var(--space-2);
    /* More space between bullets */
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .hero-subtitle {
    font-size: 15px;
  }

  .form-select,
  .suggestion-btn {
    font-size: 13px;
    padding: 8px;
  }

  .input-group .form-control,
  .input-group-text {
    padding: 8px;
  }

  /* Stacked buttons for extra small screens */
  .teleg-mob {
    flex-direction: column;
  }

  .teleg-mob .btn {
    width: 100%;
    margin-bottom: 8px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: var(--space-1);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-3 {
  margin-bottom: var(--space-3);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mt-1 {
  margin-top: var(--space-1);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-3 {
  margin-top: var(--space-3);
}

.mt-4 {
  margin-top: var(--space-4);
}

.py-1 {
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}

.py-2 {
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.py-3 {
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.py-4 {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.d-flex {
  display: flex;
}

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

.justify-content-between {
  justify-content: space-between;
}

.w-100 {
  width: 100%;
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent-cool) 0%, var(--accent-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Banner Section */
.banner-section {
  width: 100%;
  overflow: hidden;
  margin: var(--space-3) 0;
}

.banner-section img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* Custom Telegram Bot Section */
.telegram-bot-section {
  background: linear-gradient(90deg, var(--accent-cool) 0%, var(--accent-mid) 100%);
  padding: var(--space-3) 0;
  text-align: center;
}

.telegram-bot-section .btn-hero {
  background: white;
  color: var(--accent-cool);
  padding: 12px 20px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.telegram-bot-section .btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Price Display and Labels */
.label-green {
  display: inline-flex;
  padding: 4px 8px;
  background: rgba(10, 173, 0, 0.1);
  color: #0AAD00;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

/* Preserve existing wallet UI functionality */
.wallet-info {
  padding: var(--space-2);
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

.wallet-address {
  font-family: monospace;
  margin-bottom: var(--space-1);
}

/* Preserve existing JavaScript functionality */
[style="display: none;"] {
  display: none !important;
}

/* Ensure Search Tips row uses full width and columns are spaced correctly */
.glass-card>h4+.row {
  /* Targets .row directly following h4 in .glass-card, specific to Search Tips */
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  /* Ensure the row takes full width */
  margin-left: 0;
  /* Reset default negative margins if any from global .row */
  margin-right: 0;
  /* Reset default negative margins if any from global .row */
}

.glass-card>h4+.row>.col-md-6 {
  padding-left: var(--space-2);
  /* Maintain padding from global .col */
  padding-right: var(--space-2);
  /* Maintain padding from global .col */
  flex-basis: 50%;
  /* Ensure each col-md-6 takes up 50% on medium screens */
  max-width: 50%;
  /* Ensure each col-md-6 takes up 50% on medium screens */
}

@media (max-width: 767px) {

  /* For small screens, stack them */
  .glass-card>h4+.row>.col-md-6 {
    flex-basis: 100%;
    max-width: 100%;
    margin-bottom: var(--space-2);
    /* Add some space when stacked */
  }

  .glass-card>h4+.row>.col-md-6:last-child {
    margin-bottom: 0;
  }
}

/* Pagination Styles */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: var(--radius-sm);
}

.page-item:first-child .page-link {
  margin-left: 0;
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}

.page-item:last-child .page-link {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

.page-link {
  position: relative;
  display: block;
  padding: var(--space-1) var(--space-2);
  /* Use theme spacing */
  line-height: 1.25;
  color: var(--accent-cool);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  margin-left: -1px;
  /* Collapse borders */
}

.page-link:hover {
  z-index: 2;
  color: var(--accent-mid);
  text-decoration: none;
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

.page-link:focus {
  z-index: 3;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(66, 93, 207, 0.25);
  /* Using RGB from --accent-cool */
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: var(--accent-cool);
  border-color: var(--accent-cool);
}

.page-item.disabled .page-link {
  color: var(--text-muted);
  pointer-events: none;
  /* For "..." */
  background-color: var(--bg-primary);
  border-color: var(--border-color);
}

/* Ensure pagination controls are spaced out if they are in a d-flex container */
div[aria-label="Blocks pagination"]+div:not([aria-label]) {
  /* If there's another div after pagination for e.g. total entries */
  margin-left: var(--space-3);
}

/* Styling for .row elements within .glass-card (e.g., Transaction Types section) */
.glass-card>.row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  /* Ensure full width */
  margin-left: 0;
  /* Reset potential negative margins from global .row if causing issues */
  margin-right: 0;
  /* Reset potential negative margins from global .row if causing issues */
  /* justify-content: space-between; /* Distribute space if columns don't fill */
}

/* Ensure columns within .glass-card > .row have padding for gutters */
.glass-card>.row>[class*="col-"] {
  padding-left: var(--space-2);
  /* Standard gutter padding */
  padding-right: var(--space-2);
  /* Standard gutter padding */
  display: flex;
  /* Make columns flex containers */
  flex-direction: column;
  /* Stack content within column if needed */
}

.glass-card>.row>[class*="col-"]>.card-block {
  width: 100%;
  /* Make card-block fill the column */
  flex-grow: 1;
  /* Allow card-block to grow if column is taller */
}


/* Styling for top-level .row containing .col-md-6 > .glass-card (e.g., Transaction Analytics section) */
.container>.row.mb-4 {
  /* Targeting the specific rows like "Transaction Analytics" */
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  /* Ensure full width */
  /* Bootstrap's .row usually has negative margins to counteract padding on .col-*.
     If these are missing or overridden, it can affect layout.
     Let's ensure default Bootstrap row behavior or replicate it.
  */
  margin-left: calc(-1 * var(--space-2));
  /* Replicate Bootstrap's negative margin for gutter */
  margin-right: calc(-1 * var(--space-2));
  /* Replicate Bootstrap's negative margin for gutter */
}

.container>.row.mb-4>.col-md-6 {
  padding-left: var(--space-2);
  /* Ensure column padding for gutter */
  padding-right: var(--space-2);
  /* Ensure column padding for gutter */
}

.container>.row.mb-4>.col-md-6>.glass-card {
  height: 100%;
  /* Make glass cards in these rows equal height */
}

/* The .col-md-6 classes should handle the 50% width.
   The global .row style should provide negative margins for gutters. (Re-added above for this specific case)
   The global .col style (or .col-md-6) should provide padding.
   If these are not working, it implies a conflict or missing base Bootstrap styles.
   The goal is to make them behave like standard Bootstrap rows/cols.
*/

/* ==================================================
   HOMEPAGE STYLES WITH BOOTSTRAP INTEGRATION
   ================================================== */

/* Network Statistics Cards */
.stats-section {
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border: 1px solid #e8ecf2;
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(66, 93, 207, 0.2);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-cool) 0%, var(--accent-mid) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

/* Content Cards (using Bootstrap card structure) */
.content-card {
  background: white;
  border: 1px solid #e8ecf2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.content-card .card-header {
  background: #fafbfc;
  border-bottom: 1px solid #f0f2f7;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Enhanced Links and Tables */
.block-link,
.tx-link {
  color: var(--accent-cool);
  text-decoration: none;
  font-weight: 600;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.block-link:hover,
.tx-link:hover {
  color: var(--accent-mid);
  text-decoration: none;
}

/* Override Bootstrap table styles for our design */
.table th {
  background: #fafbfc;
  border-bottom: 1px solid #f0f2f7;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: none;
}

.table td {
  border-bottom: 1px solid #f8f9fb;
  vertical-align: middle;
  font-size: 0.9rem;
}

.table-hover tbody tr:hover {
  background: rgba(66, 93, 207, 0.02);
}

/* Custom Badge Styles */
.badge.bg-light {
  background: rgba(66, 93, 207, 0.1) !important;
  color: var(--accent-cool) !important;
  font-weight: 600;
}

.badge.bg-info {
  background: #f0f4ff !important;
  color: #4c5d7a !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Button Enhancements */
.btn-outline-primary {
  color: var(--accent-cool);
  border-color: var(--accent-cool);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background-color: var(--accent-cool);
  border-color: var(--accent-cool);
  color: white;
}

/* Network Overview Section */
.content-card .card-body p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.content-card .card-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .stat-card {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  
  .content-card .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .stat-card {
    padding: 1rem;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .stat-value {
    font-size: 1.3rem;
  }
  
  .content-card .card-header {
    padding: 1rem;
  }
  
  .table th,
  .table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .block-link,
  .tx-link {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .stat-card {
    padding: 0.8rem;
  }
  
  .stat-value {
    font-size: 1.2rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .table th,
  .table td {
    padding: 0.5rem 0.3rem;
    font-size: 0.75rem;
  }
}