/* ======================================================
   1. ROOT VARIABLES – FONTS
====================================================== */

:root {
  --default-font:
    "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

/* ======================================================
   2. ROOT VARIABLES – GLOBAL COLORS
====================================================== */

:root {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --accent-color: #cc64ff;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

/* ======================================================
   3. ROOT VARIABLES – NAV COLORS
====================================================== */

:root {
  --nav-color: #555555;
  --nav-hover-color: #5cb874;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #555555;
  --nav-dropdown-hover-color: #5cb874;
}

/* ======================================================
   4. COLOR PRESETS
====================================================== */

.light-background {
  --background-color: #060606;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

.accent-background {
  --background-color: #5cb874;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #80c792;
}

/* ======================================================
   5. GLOBAL BEHAVIOR
====================================================== */

/* :root {
  scroll-behavior: smooth;
} */

/* ======================================================
   6. BASE BODY STYLES (MULTIPLE – ORIGINAL)
====================================================== */

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

/* original override – kept */
body {
  background-color: #f0f2f5;
  font-family: 'Poppins', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* later override for star background */
body {

  height: 100vh;

}

/* ======================================================
   7. LINKS & HEADINGS
====================================================== */

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

h3 {
  color: #000000;
  font-family: var(--heading-font);
}

h4 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

h1,
h2,
h5,
h6 {
  color: #000000;
  font-family: var(--heading-font);
}
h6{
  font-size: 18px !important;
}
.add-gem-modal .modal-body {
  overflow-x: auto;
  height: 75vh;
}

.form-control:focus {
  box-shadow: none !important;
}

.form-select:focus {
  box-shadow: none !important;
}

.form-control,
.form-control:focus {
  background-color: transparent !important;
  box-shadow: none !important;
}

.form-label {
  color: #212529 !important;
  /* Standard dark grey/black */
  font-weight: 500;
  font-size: 16px;
  /* Optional: Makes them a bit bolder */
}

/* Optional: Ensure the modal title is also dark */
.modal-title {
  color: #000 !important;
}

/* ======================================================
   8. SIDEBAR / DASHBOARD
====================================================== */

.sidebar {
  min-height: 100vh;
  background: #1a1f2c !important;
  color: white;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 20px;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.side-menu {
  background: #321f3e !important
}

.bg-dark {
  background: #321f3e !important
}

@media (max-width: 767.98px) {
  .sidebar {
    min-height: auto;
    height: 100%;
  }
}

@media (min-width: 768px) {
  .offcanvas-md {
    background-color: #321f3e !important
  }
}

/* ======================================================
   9. HERO SECTION (ALL ORIGINAL RULES)
====================================================== */

.hero {
  padding: 0;
  height: 93vh;
  min-height: 93vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero img {
  inset: 0;
  display: block;
  width: 40%;
  height: 100%;
  object-fit: cover;
  animation: fadeInDown 1s both 0.2s;
  max-width: 80%;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.hero h2 {
  margin-bottom: 30px;
  font-size: 48px;
  font-weight: 700;
  color: #fbc86a !important;
  animation: fadeInDown 1s both;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInDown 1s both 0.2s;
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 25px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero img {
    width: 75%;
  }
}

/* ======================================================
   10. HEADER & NAVIGATION (ALL ORIGINAL)
====================================================== */

.header {
  color: var(--default-color);
  transition: all 0.5s;
  z-index: 997;
  background-color: var(--background-color);
}

/* sticky transparent override */
.header {
  /* position: sticky; */
  top: 0;
  z-index: 999;
  background: transparent;
  padding: 15px 0;
}

.logo img {
  max-height: 100px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

/* nav buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 20px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  transform: translateY(-53%);
}

.btn-back {
  left: 20px;
}

.btn-admin {
  right: 20px;
}

@media (max-width: 768px) {
  .nav-btn span {
    display: none;
  }

  .nav-btn {
    padding: 10px 12px;
    font-size: 1.2rem;
  }
}

/* ======================================================
   11. PORTFOLIO & STORY FILTERS
====================================================== */

.portfolio-item {
  margin-bottom: 30px;
}

.story-filters {
  display: flex;
  gap: 50px;
  overflow-x: auto;
  padding: 10px 25px;
  margin-bottom: 25px;
  list-style: none;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.story-filters::-webkit-scrollbar {
  display: none;
}

.story-filters.dragging {
  cursor: grabbing;
}

.story-filters li {
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.story-filters li:hover,
.story-filters li.filter-active {
  opacity: 1;
  transform: scale(1.05);
}

.story-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.story-icon img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.7;
}

/* ======================================================
   12. GEM CARDS
====================================================== */

.gem-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.gem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gem-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gem-card .badge {
  position: absolute;
  top: 7%;
  right: 70%;
  border-radius: 3px;
  font-weight: 400;
}

.gem-info {
  padding: 15px;
  text-align: center;
}

.gem-info h4 {
  color: #060606;
  font-size: 20px;
  font-weight: bold;
}

.gem-price {
  color: #0d6efd;
  font-weight: bold;
  font-size: 1.1rem;
}

/* ======================================================
   13. VIDEO / CAROUSEL
====================================================== */

.video-item {
  position: relative;
  display: block;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: white;
  opacity: 0.9;
  pointer-events: none;
}

.carousel-control-prev,
.carousel-control-next {
  width: 35px;
  height: 35px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  top: 50%;
  margin: 0 10px;
}

.carousel h3 {
  color: red;
}

/* ======================================================
   14. STAR CANVAS
====================================================== */

#star-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 0;
  pointer-events: none;
}

.main,
.hero,
section {
  position: relative;
  z-index: 2;
  background: transparent !important;
}

/* ======================================================
   15. Login Form Styles
====================================================== */

.login-logo {
  height: 75px;
}

.login-card {
  width: 20%;
}

.login-heading {
  color: var(--background-color);
}

.btn-custom {
  animation: fadeInDown 1s both 0.2s;
}

.btn-primary {
  background-color: var(--accent-color);
  border: none !important;
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
  color: var(--bs-btn-active-color);
  background: color-mix(in srgb, var(--accent-color) 25%, transparent);
  border-color: var(--accent-color) !important;
}

.btn-primary:hover {
  background-color: var(--accent-color);
  border: none !important;
}

.btn-close:focus {
  box-shadow: none !important;
}

/* ======================================================
   15. Other Styles
====================================================== */

.flex-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.item-end{
  display: flex;
  align-items: end;
}

.p-center {
  display: flex;
  justify-content: center;
}

.main-logo {
  height: 100px;
}


/* Custom Toast Container */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1060;
}

.user-avatar {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Spinning Gem Animation */
.gem-spinner {
  display: inline-block;
  font-size: 4rem;
  animation: spin-gem 1.5s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin-gem {
  0% {
    transform: perspective(1000px) rotateY(0deg);
  }

  100% {
    transform: perspective(1000px) rotateY(360deg);
  }
}

.carousel-control-next-icon,
.carousel-control-prev-icon {

  width: 1rem !important;
  height: 1rem !important;

}

.filter-card .btn-outline-primary {
  border-color: var(--accent-color) !important;

}

.filter-card .btn-outline-primary:hover {
  background-color: #ff943638;
  color: white;
}

.filter-card .btn-outline-primary i {

  color: var(--accent-color) !important;
}

.filter-card .btn-outline-primary i:active {

  color: white;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  background: var(--accent-color);
  /* Bootstrap primary */
  color: #fff;
  border-radius: 50%;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.scroll-top i {
  font-size: 24px;
  line-height: 1;
}

.scroll-top:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(0);
}

/* Active State */
.scroll-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ======================================================
   16. ANIMATIONS (ORIGINAL)
====================================================== */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 768px) {
  body {
    overflow-y: auto !important;
    height: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .story-filters {

    gap: 25px;

  }
}

/* 🚀 SKELETON LOADER STYLES */
        .skeleton {
            background: #dddddd;
            background: linear-gradient(110deg, #dddddd 8%, #ffffff 18%, #dddddd 33%);
            border-radius: 5px;
            background-size: 200% 100%;
            animation: 1.2s shine linear infinite;
        }
        .skeleton-img { height: 200px; width: 100%; margin-bottom: 10px; }
        .skeleton-title { height: 20px; width: 70%; margin-bottom: 10px; }
        .skeleton-text { height: 15px; width: 40%; margin-bottom: 5px; }
        @keyframes shine { to { background-position-x: -200%; } }

.credits {
  margin-top: auto;
  padding: 12px 0;
  text-align: center;
  font-size: 14px;

  color: #6c757d;
}

.credits a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.credits a:hover {
  text-decoration: underline;
}

.custom-gem-card {
  display: flex;
}

.gem-card-icon {
  width: 60px;
  height: 60px;
  background: color-mix(in srgb, var(--accent-color) 25%, transparent);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  border-radius: 5px;
  color: var(--accent-color);
}

.gem-card-icon i {
  font-size: 25px;
}

.filter-heading-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-action-card {
  display: flex;
}

.filter-action-card .btn-group {
  margin: 0 20px;
}

.filter-action-card .btn-outline-primary {

  border: solid 1px var(--accent-color);
}

.filter-action-card .btn-outline-primary i {

  color: var(--accent-color);
}

.filter-action-card .btn-outline-primary:hover {

  background: color-mix(in srgb, var(--accent-color) 25%, transparent);
}

.page-link {
  color: var(--accent-color) !important;
}
.profile-img img{ 
  height: 45px;
    border-radius: 50px;
        border: solid 3px var(--accent-color) !important;
    margin-right: 10px;
}
.user-name{
  color: var(--background-color) !important;  
}
.mobile-view {
  display: none;
}

.desktop-view {
  display: flex;
}
.badge {
  border-radius: 3px;
  font-weight: 500;
}

@media (max-width: 767px) {
  .mobile-view {
    display: block;
  }

  .desktop-view {
    display: none;
  }

  .filter-action-card .btn-group {
    margin: 0 !important;
  }
  .custom-gem-card {
    display: grid;
}
.custom-gem-card .small, small {
    font-size: 12px;
}
.login-card {
    width: 80%;
}


}