/* Accent color override */
:root {
  --link-color: #F89B19;
  --plyr-color-main: #F89B19;
}

/* Header site name - accent color */
.main-header .logo {
  display: flex !important;
  align-items: center;
}

.main-header .header-site-name-golden {
  font-size: 1.25rem;
  font-weight: 600;
  color: #F89B19;
  white-space: nowrap;
}

body.night-mode .main-header .header-site-name-golden {
  color: #F89B19;
}

/* Primary buttons in accent color */
.btn-primary,
.btn-primary:focus,
.btn-primary:hover {
  background: #F89B19 !important;
  border-color: #F89B19 !important;
}

.btn-outline-primary {
  color: #F89B19;
  border-color: #F89B19;
  background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  border-color: #F89B19;
  background-color: #F89B19;
}

/* Stories - force square previews */
.add-story {
  width: 100px !important;
  height: 100px !important;
}

.add-story .img {
  height: 100% !important;
  border-radius: 24px !important;
}

.stories.sngine.carousel .story {
  width: 100px !important;
  max-width: 100px !important;
}

.stories.sngine.carousel .story > .item-link > .item-preview,
.stories.carousel .story > .item-link > .item-preview {
  width: 100px !important;
  height: 100px !important;
  max-height: 100px !important;
}

.stories.sngine .story > a > .item-preview > img {
  border-radius: 20px !important;
}

/* ========================= */
/* Golden Profile Page      */
/* ========================= */

/* Profile header container */
.profile-page .profile-header {
  position: relative;
  z-index: 10;
  margin-bottom: 32px;
  padding-bottom: 40px;
  border-radius: 0 0 32px 32px;
  background: rgba(255, 245, 225, 0.92);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
  overflow: visible;
}

body.night-mode .profile-page .profile-header {
  background: rgba(22, 18, 10, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

/* Cover area */
.profile-page .profile-cover-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #f9e0a0, #f5c45e, #e8b13e, #d4942b);
}

.profile-page .profile-cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Avatar in Stories style */
.profile-page .profile-avatar-wrapper {
  z-index: 3;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.profile-page .profile-avatar-wrapper img {
  width: 120px;
  height: 120px;
  max-width: 30vw;
  max-height: 30vw;
  object-fit: cover;
  border-radius: 24px;
  border: 3px solid #f89b19;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  background-color: #ffffff;
}

body.night-mode .profile-page .profile-avatar-wrapper img {
  background-color: #151107;
  border-color: #f5c45e;
}

/* Avatar controls positioning */
.profile-page .profile-avatar-change,
.profile-page .profile-avatar-crop,
.profile-page .profile-avatar-delete,
.profile-page .profile-avatar-change-loader {
  right: -8px;
}

/* Name & badges under avatar */
.profile-page .profile-name-wrapper {
  background: transparent !important;
  margin-top: 90px;
  text-align: center;
}

.profile-page .profile-name-wrapper > a {
  font-size: 1.45rem;
}

.profile-page .profile-name-wrapper .verified-badge svg {
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
}

/* Profile buttons row */
.profile-page .profile-buttons-wrapper {
  background: transparent !important;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.profile-page .profile-buttons-wrapper .btn {
  border-radius: 999px;
  padding-inline: 18px;
  min-height: 38px;
}

.profile-page .profile-buttons-wrapper .btn-light {
  background-color: rgba(255, 248, 230, 0.9);
  border-color: rgba(255, 230, 170, 0.9);
  color: #7a5c2e;
}

body.night-mode .profile-page .profile-buttons-wrapper .btn-light {
  background-color: rgba(40, 32, 18, 0.95);
  border-color: rgba(255, 210, 130, 0.7);
  color: #f5c45e;
}

/* Header compact info block (bio + website + socials) */
.profile-page .profile-header-about {
  margin-top: 8px;
  text-align: center;
  padding: 0 16px 24px;
}

.profile-page .profile-header-bio {
  font-size: 0.9rem;
  color: #5a4b2a;
}

body.night-mode .profile-page .profile-header-bio {
  color: #f5e1b0;
}

.profile-page .profile-header-website {
  margin-top: 6px;
}

.profile-page .profile-header-website a {
  font-size: 0.9rem;
  color: #f89b19;
  word-break: break-all;
}

.profile-page .profile-header-socials {
  margin-top: 10px;
}

.profile-page .profile-header-socials .btn-icon-social {
  margin: 0 3px;
}

/* Profile tabs */
.profile-page .profile-tabs-wrapper {
  margin-top: 24px;
  padding: 0 4px 4px;
  border-bottom: 1px solid rgba(255, 215, 150, 0.8);
  overflow-x: auto;
  gap: 4px;
}

.profile-page .profile-tabs-wrapper a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: #7a5c2e;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.profile-page .profile-tabs-wrapper a.active {
  background: rgba(248, 155, 25, 0.12);
  color: #b06b0f;
}

.profile-page .profile-tabs-wrapper a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -4px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f9e0a0, #f5c45e, #e8b13e);
}

body.night-mode .profile-page .profile-tabs-wrapper {
  border-bottom-color: rgba(255, 210, 130, 0.5);
}

body.night-mode .profile-page .profile-tabs-wrapper a {
  color: #f5e1b0;
}

body.night-mode .profile-page .profile-tabs-wrapper a.active {
  background: rgba(245, 196, 94, 0.16);
  color: #ffd789;
}

/* Profile cards - left & right columns */
.profile-page .card {
  border-radius: 18px;
  border-color: rgba(255, 225, 170, 0.9);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.profile-page .card-header.bg-transparent,
.profile-page .card-header {
  background: linear-gradient(90deg, rgba(249, 224, 160, 0.7), rgba(245, 196, 94, 0.5));
  border-bottom-color: rgba(255, 215, 150, 0.7);
}

.profile-page .card-body {
  background: #fffdf7;
}

body.night-mode .profile-page .card {
  border-color: rgba(255, 210, 130, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

body.night-mode .profile-page .card-header.bg-transparent,
body.night-mode .profile-page .card-header {
  background: linear-gradient(90deg, rgba(80, 56, 20, 0.95), rgba(110, 70, 24, 0.95));
  border-bottom-color: rgba(255, 210, 130, 0.45);
}

body.night-mode .profile-page .card-body {
  background: #151107;
}

.header-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #7a5c2e;
  background: rgba(255, 248, 230, 0.9);
}

.header-lang-btn.active {
  background: #f89b19;
  color: #fff;
}

body.night-mode .header-lang-btn {
  background: rgba(40, 32, 18, 0.95);
  color: #f5e1b0;
}

body.night-mode .header-lang-btn.active {
  background: #f5c45e;
  color: #111;
}

.header-lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
}

/* Profile Completion progress */
.profile-page .card .progress-bar {
  background-color: #f89b19;
}

/* Desktop overrides for avatar & name (golden profile/page header) */
@media (min-width: 992px) {
  .profile-page .profile-avatar-wrapper:not(.static) {
    top: auto;
    bottom: 60px;
    left: 70px;
    transform: none;
  }

  .profile-page .profile-name-wrapper {
    position: absolute;
    bottom: 20px;
    left: 10px;
    right: auto;
    background: transparent !important;
    padding-top: 0;
    padding-bottom: 0;
    text-align: left;
    font-size: 1.9em;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
  }
}

/* Global: make action dropdowns topmost */
.action-dropdown-menu {
  z-index: 20000 !important;
}

/* Posts cards within profile */
.profile-page .card.panel-photos,
.profile-page .card.panel-videos,
.profile-page .card.posts-wrapper,
.profile-page .card.post {
  border-radius: 18px;
}

/* ========================= */
/* Golden Reels / Potok      */
/* ========================= */

@keyframes reelsGoldenFlow {
  0% {
    background-position: 0% 20%;
  }

  50% {
    background-position: 100% 80%;
  }

  100% {
    background-position: 0% 20%;
  }
}

.reels-wrapper,
.reel-container {
  background: radial-gradient(circle at 20% 10%, #f9e0a0, #f5c45e, #e8b13e, #d4942b, #b46c1a);
  background-size: 220% 220%;
  animation: reelsGoldenFlow 22s ease-in-out infinite;
}

body.night-mode .reels-wrapper,
body.night-mode .reel-container {
  background: radial-gradient(circle at 20% 10%, #4b3412, #8b5a1a, #b57926, #f0c45a);
}

.reels-loader {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(248, 155, 25, 0.8);
}

/* Space for bottom nav on mobile/tablet reels + mobile profile header tweaks */
@media (max-width: 991.98px) {
  .profile-page .profile-avatar-wrapper {
    top: 214px;
    left: 50%;
    transform: translate(-50%);
  }

  .profile-page .profile-name-wrapper {
    padding-top: 60px;
  }

  .reels-wrapper {
    bottom: 70px;
  }

  .reel-container {
    bottom: 70px;
    padding-bottom: 0;
  }
}

/* Glassy golden main header */
.main-header {
  background: rgba(255, 245, 225, 0.9) !important;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

body.night-mode .main-header {
  background: rgba(22, 18, 10, 0.96) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Glassy golden bottom navigation */
.footer-bottom-bar {
  height: 70px;
  background: rgba(255, 245, 225, 0.92) !important;
  border-top: 1px solid rgba(255, 230, 170, 0.8) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.12);
}

body.night-mode .footer-bottom-bar {
  background: rgba(22, 18, 10, 0.96) !important;
  border-top: 1px solid rgba(255, 210, 130, 0.5) !important;
}

.footer-bottom-bar-links>.link>a {
  border-radius: 18px;
  color: #7a5c2e;
  background: transparent;
}

.footer-bottom-bar-links .link>a>.title {
  color: #7a5c2e;
}

.footer-bottom-bar-links>.link.active>a>.title,
body.night-mode .footer-bottom-bar-links>.link.active>a>.title {
  color: #c18a2c;
  font-weight: 600;
}

/* Golden page headers on all pages */
.page-header {
  position: relative;
  text-align: center;
  padding: 70px 15px;
  overflow: hidden;
  color: #2d2a1c !important;
  background: radial-gradient(circle at 30% 20%, #f9e0a0, #f5c45e, #e8b13e, #d4942b) !important;
  background-size: 250% 250%;
  animation: pageGoldenFlowGlobal 18s ease infinite;
}

@keyframes pageGoldenFlowGlobal {
  0% { background-position: 0% 30%; }
  50% { background-position: 100% 70%; }
  100% { background-position: 0% 30%; }
}

.page-header.bank-transfer {
  background: radial-gradient(circle at 30% 20%, #f9e0a0, #f5c45e, #e8b13e, #d4942b) !important;
}
