:root {
    --primary-color: var(--color-primary);
    --secondary-color: var(--color-secondary);
    --accent-color: var(--color-accent);
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --light-text: #f8f9fa;
    --card-bg: var(--color-surface);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
  }

  body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--dark-text);
    background-color: var(--light-bg);
  }

  .blur-bg {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; 
    filter: blur(35px);
    background: inherit;
    background-size: cover;
    opacity: 0.75;
    transform: scale(1.05);
    z-index: -1;
  }

  .card-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
  }

  .card-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color);
  }

  .toast-top-layer {
    z-index: 11000;
  }

  .gallery-layer {
    z-index: 99;
  }

  .gallery-toolbar {
    z-index: 100;
  }

  .gallery-stage {
    background-color: rgba(0, 0, 0, 0.02);
  }

  .status-indicator {
    bottom: -5px;
    right: -5px;
    background-color: var(--primary-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
  }

  .text-ink {
    color: var(--dark-text);
  }

  .map-preview {
    height: 250px;
    border-radius: var(--border-radius);
  }

  .bg-coin-blue {
    background-color: rgba(98, 126, 234, 0.1);
  }

  .bg-coin-orange {
    background-color: rgba(247, 147, 26, 0.1);
  }

  .bg-coin-orange-deep {
    background-color: rgba(255, 102, 0, 0.1);
  }

  .up-rating {
    display: inline-block;
    white-space: nowrap;
    line-height: 0;
  }

  .up-rating .up-rating-foreground {
    gap: 0px;
    position: absolute;
    overflow: hidden;
  }

  .vertical-align-text-bottom {
    vertical-align: text-bottom;
  }    

  .up-popper-trigger {
    cursor: pointer;
  }

  .carousel-indicators [data-bs-target] {
    background-color: #fff;
  }

  .coordinates {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    position: absolute;
    bottom: 40px;
    left: 10px;
    padding: 5px 10px;
    margin: 0;
    font-size: 11px;
    line-height: 18px;
    border-radius: 3px;
    display: none;
  }

  canvas {
    width: auto !important;
    height: auto !important;
  }

  details {
    display: none;
  }

  .carousel-control-next, .carousel-control-prev {
    background: rgba(0, 0, 0, 0.5);
    width: 50px !important;
    height: 50px !important;
    top: 50%; 
    bottom: unset !important;
    transform: translateY(-50%);
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.3s ease;
  }

  .carousel-control-next:hover, .carousel-control-prev:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
  }

  .custom-button {
    background-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
  }

  .custom-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
  }

  .custom-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
  }

  .custom-button:hover::after {
    left: 100%;
  }

  .custom-button:active {
    transform: translateY(-1px);
  }

  .outline-button {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    transition: all 0.3s ease;
  }

  .outline-button:hover {
    background-color: rgba(14, 165, 233, 0.1);
    transform: translateY(-3px);
  }

  .outline-secondary-button {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
    transition: all 0.3s ease;
  }

  .outline-secondary-button:hover {
    background-color: rgba(108, 117, 125, 0.1);
    transform: translateY(-3px);
  }

  .section-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary-color);
  }

  .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
  }

  .coin-chip {
    display: flex;
    align-items: center;
    background-color: rgba(244, 247, 252, 0.7);
    border-radius: 30px;
    padding: 8px 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
  }

  .coin-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }

  .map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
  }

  .map-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  }

  .message-input {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    resize: none;
  }

  .message-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
  }

  .modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-image: linear-gradient(to right, rgba(14, 165, 233, 0.05), rgba(20, 184, 166, 0.05));
  }

  .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* Animation */
  .rec-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
  }
  
  .box-anim-container {
    position: relative;
    height: 200px;
    width: 86px;
    transform: scale(0.5);
  }

  .cube {
    position: absolute;
    width: 86px;
    height: 100px;
  }

  .right {
    background: #bfbfbf;
    transform: rotate(-30deg) skewX(-30deg) translate(49px, 65px) scaleY(0.86);
  }

  .left {
    background: var(--accent-color);
    transform: rotate(90deg) skewX(-30deg) scaleY(0.86) translate(25px, -50px);
  }

  .top {
    background: var(--primary-color);
    transform: rotate(210deg) skew(-30deg) translate(-75px, -22px) scaleY(0.86);
    z-index: 2;
  }

  .face {
    height: 50px;
    width: 50px;
    position: absolute;
    transform-origin: 0 0;
  }
  
  /* Animation keyframes from the original file */
  .h1.w1.l1 {
    z-index: -1;
    animation-name: h1w1l1;
    animation-timing-function: ease;
    animation-duration: 3s;
    animation-iteration-count: infinite;
  }

  @keyframes h1w1l1 {
    0% {
      transform: translate(0%, -100%);
    }
    14% {
      transform: translate(-50%, -125%);
    }
    28% {
      transform: translate(0%, -150%);
    }
    43% {
      transform: translate(0%, -200%);
    }
    57% {
      transform: translate(50%, -175%);
    }
    71% {
      transform: translate(0%, -150%);
    }
    85% {
      transform: translate(0%, -100%);
    }
    100% {
      transform: translate(0%, -100%);
    }
  }
  /* Keep all other animation keyframes from the original file */
  .h1.w1.l2 {
    z-index: -1;
    animation-name: h1w1l2;
    animation-timing-function: ease;
    animation-duration: 3s;
    animation-iteration-count: infinite;
  }

  @keyframes h1w1l2 {
    0% {
      transform: translate(50%, -75%);
    }
    14% {
      transform: translate(50%, -75%);
    }
    28% {
      transform: translate(100%, -100%);
    }
    43% {
      transform: translate(100%, -150%);
    }
    57% {
      transform: translate(100%, -150%);
    }
    71% {
      transform: translate(50%, -125%);
    }
    85% {
      transform: translate(50%, -75%);
    }
    100% {
      transform: translate(50%, -75%);
    }
  }
  .h1.w1.l3 {
    z-index: -1;
    animation-name: h1w1l3;
    animation-timing-function: ease;
    animation-duration: 3s;
    animation-iteration-count: infinite;
  }

  @keyframes h1w1l3 {
    0% {
      transform: translate(100%, -50%);
    }
    14% {
      transform: translate(150%, -25%);
    }
    28% {
      transform: translate(200%, -50%);
    }
    43% {
      transform: translate(200%, -100%);
    }
    57% {
      transform: translate(150%, -125%);
    }
    71% {
      transform: translate(100%, -100%);
    }
    85% {
      transform: translate(100%, -50%);
    }
    100% {
      transform: translate(100%, -50%);
    }
  }
  .h1.w2.l1 {
    z-index: -1;
    animation-name: h1w2l1;
    animation-timing-function: ease;
    animation-duration: 3s;
    animation-iteration-count: infinite;
  }

  @keyframes h1w2l1 {
    0% {
      transform: translate(-50%, -75%);
    }
    14% {
      transform: translate(-100%, -100%);
    }
    28% {
      transform: translate(-100%, -100%);
    }
    43% {
      transform: translate(-100%, -150%);
    }
    57% {
      transform: translate(-50%, -125%);
    }
    71% {
      transform: translate(-50%, -125%);
    }
    85% {
      transform: translate(-50%, -75%);
    }
    100% {
      transform: translate(-50%, -75%);
    }
  }
  .h1.w2.l2 {
    z-index: -1;
    animation-name: h1w2l2;
    animation-timing-function: ease;
    animation-duration: 3s;
    animation-iteration-count: infinite;
  }

  @keyframes h1w2l2 {
    0% {
      transform: translate(0%, -50%);
    }
    14% {
      transform: translate(0%, -50%);
    }
    28% {
      transform: translate(0%, -50%);
    }
    43% {
      transform: translate(0%, -100%);
    }
    57% {
      transform: translate(0%, -100%);
    }
    71% {
      transform: translate(0%, -100%);
    }
    85% {
      transform: translate(0%, -50%);
    }
    100% {
      transform: translate(0%, -50%);
    }
  }
  .h1.w2.l3 {
    z-index: -1;
    animation-name: h1w2l3;
    animation-timing-function: ease;
    animation-duration: 3s;
    animation-iteration-count: infinite;
  }

  @keyframes h1w2l3 {
    0% {
      transform: translate(50%, -25%);
    }
    14% {
      transform: translate(100%, 0%);
    }
    28% {
      transform: translate(100%, 0%);
    }
    43% {
      transform: translate(100%, -50%);
    }
    57% {
      transform: translate(50%, -75%);
    }
    71% {
      transform: translate(50%, -75%);
    }
    85% {
      transform: translate(50%, -25%);
    }
    100% {
      transform: translate(50%, -25%);
    }
  }
  .h1.w3.l1 {
    z-index: -1;
    animation-name: h1w3l1;
    animation-timing-function: ease;
    animation-duration: 3s;
    animation-iteration-count: infinite;
  }

  @keyframes h1w3l1 {
    0% {
      transform: translate(-100%, -50%);
    }
    14% {
      transform: translate(-150%, -75%);
    }
    28% {
      transform: translate(-200%, -50%);
    }
    43% {
      transform: translate(-200%, -100%);
    }
    57% {
      transform: translate(-150%, -75%);
    }
    71% {
      transform: translate(-100%, -100%);
    }
    85% {
      transform: translate(-100%, -50%);
    }
    100% {
      transform: translate(-100%, -50%);
    }
  }
  .h1.w3.l2 {
    z-index: -1;
    animation-name: h1w3l2;
    animation-timing-function: ease;
    animation-duration: 3s;
    animation-iteration-count: infinite;
  }

  @keyframes h1w3l2 {
    0% {
      transform: translate(-50%, -25%);
    }
    14% {
      transform: translate(-50%, -25%);
    }
    28% {
      transform: translate(-100%, 0%);
    }
    43% {
      transform: translate(-100%, -50%);
    }
    57% {
      transform: translate(-100%, -50%);
    }
    71% {
      transform: translate(-50%, -75%);
    }
    85% {
      transform: translate(-50%, -25%);
    }
    100% {
      transform: translate(-50%, -25%);
    }
  }
  .h1.w3.l3 {
    z-index: -1;
    animation-name: h1w3l3;
    animation-timing-function: ease;
    animation-duration: 3s;
    animation-iteration-count: infinite;
  }

  @keyframes h1w3l3 {
    0% {
      transform: translate(0%, 0%);
    }
    14% {
      transform: translate(50%, 25%);
    }
    28% {
      transform: translate(0%, 50%);
    }
    43% {
      transform: translate(0%, 0%);
    }
    57% {
      transform: translate(-50%, -25%);
    }
    71% {
      transform: translate(0%, -50%);
    }
    85% {
      transform: translate(0%, 0%);
    }
    100% {
      transform: translate(0%, 0%);
    }
  }
  /* ... keep other animation keyframes from the original code ... */
  
  /* Add a shimmering effect to the item image on hover */
  .carousel-inner img {
    transition: all 0.5s ease;
  }
  
  .carousel-inner:hover img {
    transform: scale(1.02);
  }
  
  /* Add pulsing effect to BUY NOW button */
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
  }
  
  .pulse-button {
    animation: pulse 2s infinite;
  }
  
  /* Add a subtle gradient to the page background */
  .page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f0f6 100%);
    z-index: -2;
  }

  /* Toast notification styling */
  .custom-toast {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }

  /* Tooltip styling */
  .tooltip .tooltip-inner {
    background-color: var(--dark-text);
    border-radius: 8px;
    font-size: 12px;
    padding: 8px 12px;
  }

  .price {
    background: linear-gradient(45deg, #0ea5e9, #14b8a6); 
    background-clip: text; -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    font-weight: 900;
    font-size: 2rem;
  }

  /* Custom badge for price tag */
  .price-tag {
    background-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
  }

  /* Tab styling for details section */
  .custom-tab {
    padding: 10px 20px;
    border-radius: 30px;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
  }

  .custom-tab.active {
    background-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
  }

  /* Item details styling */
  .item-detail-row {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 10px 0;
    transition: all 0.3s ease;
  }

  .item-detail-row:last-child {
    border-bottom: none;
  }

  .item-detail-row:hover {
    background-color: rgba(14, 165, 233, 0.05);
    transform: translateX(5px);
  }

  /* Loading animation */

  @media(min-width: 992px) {
    .image-gallery-section {
      height: 100vh; 
      max-height: 100vh; 
    }

    .image-gallery-section-inner {
      height: calc(100vh - 96px);
    }
  }

  /* Media queries */
  @media(max-width: 992px) {
    .bg-grey {
        background-color: #F2F3F5 !important;
    } 

    .borderRadius {
        border-radius: 16px !important;
    }
  }

  @media(min-width: 1400px) {
    #demo {
      padding: 0 100px !important;
    }
  }

  @media(min-width: 1250px) and (max-width: 1400px) {
    #demo {
      padding: 0 150px !important;
    }
  }

  @media(min-width: 992px) and (max-width: 1250px) {
    #demo {
      padding: 0 100px !important;
    }
  }

  @media(min-width: 800px) and (max-width: 992px) {
    #demo {
      padding: 0 200px !important;
    }
  }

  @media(min-width: 600px) and (max-width: 800px) {
    #demo {
      padding: 0 100px !important;
    }
  }

  @media (max-width: 576px) {
    #shareListing,
    #reportListing {
      min-width: 48px;
      min-height: 48px;
      padding: 0;
    }

    #shareListing svg,
    #reportListing svg {
      width: 24px;
      height: 24px;
    }
  }

  #add_item_title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  @keyframes rotate {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
  }
