/* SyncLab V3 structural redesign — loaded after the V2 compatibility layer. */

.synclab-v3 {
  --v3-cyan: #59c7ff;
  --v3-cyan-strong: #229fdf;
  --v3-blue: #2776ff;
  --v3-violet: #6568ef;
  --v3-ink: #0a0d12;
  --v3-card: #171c24;
  --v3-card-2: #1b212b;
  --v3-stroke: rgba(255, 255, 255, 0.085);
}

.v3-brand-name {
  color: #f7f9fc;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* Hero composition */
.page-home .hero-section {
  min-height: 720px;
  overflow: hidden;
  padding-bottom: 90px !important;
}

.page-home .v3-hero-shell {
  align-items: center !important;
  min-height: 470px;
}

.page-home .hero-section .hero-content::before { display: none; }

.v3-release-badge {
  align-items: center;
  background: rgba(89, 199, 255, 0.09);
  border: 1px solid rgba(89, 199, 255, 0.28);
  border-radius: 999px;
  color: var(--v3-cyan);
  direction: ltr;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 9px;
  letter-spacing: 0.13em;
  margin-bottom: 24px;
  padding: 8px 14px;
}

.v3-release-badge span {
  background: var(--v3-cyan);
  border-radius: 99px;
  box-shadow: 0 0 14px rgba(89, 199, 255, 0.8);
  height: 7px;
  width: 7px;
}

.page-home .hero-section .hero-content h1 {
  font-size: clamp(44px, 5vw, 66px) !important;
  line-height: 1.08 !important;
  max-width: 560px;
}

.v3-hero-visual {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 390px;
  overflow: visible;
  padding: 0;
  transform: none;
}

.v3-hero-visual::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 28px 28px;
  content: none;
  inset: 0;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  pointer-events: none;
  position: absolute;
}

.page-home .v3-hero-visual img {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px !important;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
  mask-image: none !important;
  position: relative;
  max-width: none !important;
  top: 0;
  width: 116% !important;
  margin-inline: -8%;
  z-index: 1;
  filter: none;
}

/* Asymmetric feature showcase, matching the reference page's visual rhythm. */
.page-home .feature-section {
  padding-top: 42px !important;
}

.page-home .v3-feature-showcase {
  display: grid !important;
  gap: 20px;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  margin: 0 !important;
}

.page-home .v3-feature-showcase > div {
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: auto !important;
}

.page-home .v3-feature-showcase > div:first-child {
  grid-row: 1 / span 2;
}

.page-home .v3-feature-showcase .single-feature {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 205px;
  overflow: hidden;
  padding: 34px 36px !important;
  position: relative;
  text-align: right !important;
}

.page-home .v3-feature-showcase > div:first-child .single-feature {
  background:
    radial-gradient(circle at 8% 92%, rgba(255, 255, 255, 0.16), transparent 35%),
    linear-gradient(145deg, #5576f5, #5961e9) !important;
  border: 0 !important;
  min-height: 430px;
  padding: 54px 46px !important;
}

.page-home .v3-feature-showcase > div:not(:first-child) .single-feature::after {
  background: radial-gradient(circle, rgba(89, 199, 255, 0.14), transparent 68%);
  content: "";
  height: 230px;
  left: -65px;
  position: absolute;
  top: -70px;
  width: 230px;
}

.page-home .v3-feature-showcase .single-feature .icon {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--v3-cyan) !important;
  display: inline-flex;
  flex: 0 0 auto;
  height: auto !important;
  justify-content: center;
  margin: 0 0 24px !important;
  position: relative;
  width: auto !important;
  z-index: 1;
}

.page-home .v3-feature-showcase .single-feature .icon i {
  font-size: 42px !important;
  line-height: 1 !important;
}

.page-home .v3-feature-showcase > div:first-child .single-feature .icon {
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  height: auto !important;
  width: auto !important;
}

.page-home .v3-feature-showcase .content { position: relative; z-index: 1; }
.page-home .v3-feature-showcase .content h3 { font-size: 25px !important; }
.page-home .v3-feature-showcase > div:first-child .content p,
.page-home .v3-feature-showcase > div:first-child .content h3 { color: #fff !important; }
.page-home .v3-feature-showcase > div:first-child .content p { opacity: 0.86; }

/* Line icons stay crisp; decorative cards must not stretch their glyph box. */
.page-home .feature-extended-section .single-feature-extended .icon {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  height: auto !important;
  width: auto !important;
}

.page-home .feature-extended-section .single-feature-extended .icon i {
  font-size: 34px !important;
  line-height: 1 !important;
}

/* Brand story panel */
.page-home .v3-story-layout {
  display: grid !important;
  gap: 52px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  padding: 48px !important;
}

.page-home .v3-story-layout > div {
  max-width: none !important;
  padding: 0 !important;
  width: auto !important;
}

.page-home .v3-story-layout .about-img {
  background: #0d1218;
  border: 1px solid var(--v3-stroke);
  border-radius: 20px;
  overflow: hidden;
  padding: 25px;
}

.page-home .v3-story-layout .about-img img.w-100 {
  filter: none;
}

.page-home .v3-story-layout .about-content {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Community + FAQ composition */
.page-home .v3-community-layout {
  align-items: stretch;
  display: grid !important;
  gap: 34px;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  margin: 0 !important;
}

.v3-community-card {
  align-items: flex-start;
  background:
    radial-gradient(circle at 10% 100%, rgba(255, 255, 255, 0.17), transparent 38%),
    linear-gradient(145deg, #5c6cf4, #5960dd);
  border-radius: 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 390px;
  overflow: hidden;
  padding: 42px;
  position: relative;
}

.v3-community-card::after {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
  height: 280px;
  left: -115px;
  position: absolute;
  top: -105px;
  width: 280px;
}

.v3-community-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  display: flex;
  font-size: 26px;
  height: 60px;
  justify-content: center;
  margin-bottom: 28px;
  width: 60px;
}

.v3-eyebrow {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 9px;
}

.v3-community-card h3 {
  color: #fff !important;
  font-size: 28px;
  margin-bottom: 14px;
}

.v3-community-card p {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 15px;
  line-height: 1.8;
}

.v3-community-cta {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  color: #4853cc !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 9px;
  margin-top: 30px;
  padding: 13px 21px;
  position: relative;
  z-index: 2;
}

.page-home .v3-faq-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none !important;
  padding: 0 !important;
  width: auto !important;
}

.page-home .v3-faq-list .accordion-item {
  background: transparent !important;
  border-width: 0 0 1px !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

/* Service grid is now a deliberate component system, not Bootstrap cards. */
.page-home .v3-services-grid {
  display: grid !important;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-home .v3-services-grid > div {
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: auto !important;
}

.page-home .v3-services-grid .single-feature-extended {
  min-height: 255px;
  padding: 32px !important;
}

/* Store and pricing architecture */
.page-purchase .purchase-hero {
  min-height: 700px;
  padding-bottom: 110px !important;
}

.page-purchase .v3-purchase-hero-shell {
  align-items: center !important;
  min-height: 440px;
}

.page-purchase .purchase-hero .hero-content {
  padding-inline-end: 40px;
}

.page-purchase .purchase-hero .hero-content h1 {
  font-size: clamp(46px, 5vw, 66px) !important;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-purchase .purchase-hero-card {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  transform: none;
}

.page-purchase .purchase-hero-card img {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.32) !important;
  filter: none;
}

.page-purchase .catalog-section {
  padding: 115px 0 !important;
}

.page-purchase .catalog-block + .catalog-block {
  border-top: 1px solid var(--v3-stroke);
  margin-top: 100px !important;
  padding-top: 88px;
}

.page-purchase .catalog-head {
  align-items: flex-end;
  margin-bottom: 42px !important;
}

.page-purchase .catalog-head h2 {
  font-size: 36px;
  font-weight: 900;
}

.v3-plan-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v3-plan-cell {
  display: flex;
  min-width: 0;
}

.page-purchase .v3-plan-card {
  background: #171c24 !important;
  border: 1px solid var(--v3-stroke) !important;
  border-radius: 16px !important;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 440px;
  overflow: hidden;
  padding: 28px !important;
  position: relative;
}

.page-purchase .v3-plan-card::before {
  background: linear-gradient(90deg, transparent, var(--v3-cyan), transparent) !important;
  height: 1px !important;
  left: 22px !important;
  opacity: 0;
  top: 0;
  transition: opacity 0.25s ease;
  width: calc(100% - 44px) !important;
}

.page-purchase .v3-plan-cell:nth-child(3n + 2) .v3-plan-card {
  background:
    radial-gradient(circle at 85% 0%, rgba(89, 199, 255, 0.11), transparent 38%),
    #1a2029 !important;
  border-color: rgba(89, 199, 255, 0.30) !important;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.24) !important;
  transform: translateY(-12px);
}

.page-purchase .v3-plan-card:hover {
  border-color: rgba(89, 199, 255, 0.42) !important;
  transform: translateY(-7px) !important;
}

.page-purchase .v3-plan-card:hover::before { opacity: 1; }

.v3-plan-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 23px;
}

.v3-plan-index {
  color: #647080;
  direction: ltr;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.page-purchase .v3-plan-meta {
  align-items: flex-end !important;
  border-bottom: 1px solid var(--v3-stroke);
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 21px;
}

.page-purchase .v3-plan-meta .product-category {
  background: rgba(89, 199, 255, 0.08) !important;
  border: 1px solid rgba(89, 199, 255, 0.14);
  font-size: 12px;
  padding: 7px 11px;
}

.page-purchase .v3-plan-meta .product-price {
  color: #fff !important;
  direction: ltr;
  font-size: 34px !important;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-purchase .v3-plan-meta .product-price small {
  color: var(--v3-cyan) !important;
  font-size: 14px !important;
  margin-inline-end: 3px;
}

.page-purchase .v3-plan-card h3 {
  font-size: 22px !important;
  line-height: 1.5;
  margin-bottom: 18px !important;
}

.v3-plan-description {
  border-right: 2px solid rgba(89, 199, 255, 0.28);
  margin-bottom: 24px;
  padding-right: 15px;
}

.v3-plan-detail-label {
  align-items: center;
  color: var(--v3-cyan);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  margin-bottom: 8px;
}

.page-purchase .v3-plan-description p {
  color: #949eac !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
  margin: 0 !important;
}

.page-purchase .product-actions { margin-top: auto !important; }

.v3-plan-cta {
  align-items: center;
  border: 1px solid rgba(89, 199, 255, 0.35);
  border-radius: 9px;
  color: #eef9ff !important;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: space-between;
  padding: 13px 16px;
  width: 100%;
}

.v3-plan-cta:hover {
  background: var(--v3-cyan);
  border-color: var(--v3-cyan);
  color: #071018 !important;
}

/* Authentication page */
.page-login .login-section {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 145px 0 80px !important;
}

.page-login .v3-auth-shell {
  border-radius: 26px !important;
  max-width: 1050px;
  overflow: hidden;
}

.page-login .v3-auth-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.page-login .v3-auth-grid > div {
  max-width: none !important;
  padding: 0 !important;
  width: auto !important;
}

.page-login .login-form-side {
  background:
    radial-gradient(circle at 10% 0%, rgba(89, 199, 255, 0.09), transparent 34%),
    #11161d !important;
  min-height: 620px;
  padding: 62px 54px !important;
}

.page-login .login-image-side {
  align-items: flex-start;
  background:
    linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    radial-gradient(circle at 88% 10%, rgba(89, 199, 255, 0.25), transparent 36%),
    linear-gradient(145deg, #1d2937, #141a22) !important;
  background-size: 32px 32px, 32px 32px, auto, auto !important;
  border-right: 1px solid var(--v3-stroke);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  padding: 72px 60px !important;
  position: relative;
}

.page-login .login-image-side::after {
  background: linear-gradient(135deg, var(--v3-cyan), var(--v3-violet));
  border-radius: 99px;
  bottom: 45px;
  content: "";
  height: 5px;
  position: absolute;
  right: 60px;
  width: 74px;
}

.v3-auth-kicker {
  color: var(--v3-cyan);
  direction: ltr;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 25px;
}

.page-login .login-form-side h2 { font-size: 34px !important; }
.page-login .login-image-side h3 { font-size: 32px !important; line-height: 1.45; }
.page-login .input-with-icon input { height: 56px; }
.page-login .btn-login { height: 56px; }

/* Terms page */
.page-terms .hero-section {
  min-height: 650px;
  padding: 175px 0 90px !important;
}

.page-terms .hero-section > .container > .row {
  background:
    radial-gradient(circle at 12% 88%, rgba(101, 104, 239, 0.18), transparent 36%),
    radial-gradient(circle at 90% 5%, rgba(89, 199, 255, 0.13), transparent 35%),
    #11161e;
  border: 1px solid var(--v3-stroke);
  border-radius: 26px;
  display: grid !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin: 0 !important;
  min-height: 420px;
  overflow: hidden;
  padding: 42px;
}

.page-terms .hero-section > .container > .row > div {
  align-items: center;
  display: flex;
  justify-content: center;
  max-width: none !important;
  padding: 0 24px !important;
  width: auto !important;
}

.page-terms .hero-section .section-title { text-align: right !important; }
.page-terms .hero-section .section-title h1 { font-size: 50px; font-weight: 900; }
.page-terms .hero-section .hero-img {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  width: 112%;
}

.page-terms .hero-section .hero-img img {
  filter: none;
  max-width: none !important;
  width: 100%;
}

.page-terms .terms-section { padding: 110px 0 130px !important; }

.v3-terms-grid {
  align-items: start;
  display: grid !important;
  gap: 32px;
  grid-template-columns: 285px minmax(0, 1fr);
  margin: 0 !important;
}

.v3-terms-index {
  background: #141920;
  border: 1px solid var(--v3-stroke);
  border-radius: 16px;
  padding: 28px 22px;
  position: sticky;
  top: 98px;
}

.v3-terms-index .v3-eyebrow { color: var(--v3-cyan); direction: ltr; }
.v3-terms-index h3 { font-size: 21px; margin: 8px 0; }
.v3-terms-index p { font-size: 13px; margin-bottom: 20px; }
.v3-terms-index nav { display: grid; }
.v3-terms-index nav a {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  color: #9ca6b4;
  display: flex;
  font-size: 13px;
  gap: 11px;
  padding: 10px 0;
}
.v3-terms-index nav a span { color: var(--v3-cyan); direction: ltr; font-size: 11px; font-weight: 800; }
.v3-terms-index nav a:hover { color: #fff; transform: translateX(-3px); }

.v3-terms-content-column { min-width: 0; }
.page-terms .terms-elegant-content { display: grid; gap: 15px; }
.page-terms .term-item {
  align-items: flex-start;
  display: grid !important;
  gap: 24px;
  grid-template-columns: 58px minmax(0, 1fr);
  margin: 0 !important;
  padding: 28px !important;
  scroll-margin-top: 115px;
}
.page-terms .term-number {
  align-items: center;
  background: rgba(89, 199, 255, 0.08);
  border: 1px solid rgba(89, 199, 255, 0.16);
  border-radius: 12px;
  display: flex;
  height: 52px;
  justify-content: center;
  margin: 0 !important;
  width: 52px;
}
.page-terms .term-content h3 { font-size: 20px; margin-bottom: 9px; }
.page-terms .term-content p { font-size: 15px; line-height: 1.9; }

/* Discord membership gate */
.page-join-gate {
  background:
    radial-gradient(circle at 85% 12%, rgba(89, 199, 255, 0.15), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(101, 104, 239, 0.17), transparent 38%),
    #090c10 !important;
}

.page-join-gate::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  inset: 0;
  mask-image: radial-gradient(circle at center, #000, transparent 72%);
  pointer-events: none;
  position: fixed;
}

.page-join-gate .v3-join-shell {
  background: #151a22 !important;
  border: 1px solid var(--v3-stroke);
  border-radius: 24px !important;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42) !important;
  max-width: 520px !important;
  padding: 52px 46px !important;
  position: relative;
  z-index: 1;
}

.page-join-gate .icon {
  align-items: center;
  background: linear-gradient(145deg, #6570f4, #5865f2);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(88, 101, 242, 0.28);
  color: #fff !important;
  display: flex;
  height: 82px;
  justify-content: center;
  margin: 10px auto 27px !important;
  width: 82px;
}

.page-join-gate h2 { color: #fff !important; font-size: 29px !important; font-weight: 900 !important; }
.page-join-gate p { color: #98a3b2 !important; }
.page-join-gate .btn { border-radius: 10px !important; min-height: 52px; }
.page-join-gate .btn-secondary { background: transparent !important; border-color: var(--v3-stroke) !important; color: #c3cad4 !important; }

/* Application shell — customer and admin dashboards */
.app-dashboard {
  background:
    radial-gradient(circle at 100% 0%, rgba(89, 199, 255, 0.08), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(101, 104, 239, 0.08), transparent 34%),
    #090c10 !important;
  display: block !important;
}

.app-dashboard::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.app-dashboard .sidebar {
  background:
    radial-gradient(circle at 100% 0%, rgba(89, 199, 255, 0.08), transparent 34%),
    rgba(17, 22, 29, 0.98) !important;
  border: 1px solid var(--v3-stroke) !important;
  border-radius: 20px;
  bottom: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.32) !important;
  height: auto !important;
  overflow: hidden auto;
  right: 18px;
  top: 18px;
  width: 248px;
}

.app-dashboard .sidebar-header {
  border-bottom: 0 !important;
  padding: 27px 24px 20px !important;
}

.app-dashboard .sidebar-logo {
  font-size: 20px !important;
  letter-spacing: -0.03em;
}

.app-dashboard .sidebar-logo::before {
  background: linear-gradient(to bottom, var(--v3-cyan), var(--v3-blue));
  height: 34px;
  width: 5px;
}

.app-dashboard .sidebar-menu {
  padding: 15px 10px 95px !important;
}

.app-dashboard .menu-item {
  border: 1px solid transparent !important;
  border-radius: 11px;
  margin: 4px 0;
  min-height: 48px;
  padding: 12px 14px !important;
}

.app-dashboard .menu-item i {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 8px;
  display: flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.app-dashboard .menu-item.active {
  background: linear-gradient(90deg, rgba(89, 199, 255, 0.13), rgba(89, 199, 255, 0.045)) !important;
  border-color: rgba(89, 199, 255, 0.16) !important;
  box-shadow: inset -3px 0 0 var(--v3-cyan);
}

.app-dashboard .menu-item.active i {
  background: rgba(89, 199, 255, 0.13);
  color: var(--v3-cyan);
}

.app-dashboard .sidebar-footer {
  background: linear-gradient(to top, #11161d 72%, transparent);
  border: 0 !important;
  bottom: 0;
  padding: 24px 10px 12px !important;
}

.app-dashboard .main-content {
  margin-right: 284px;
  padding: 0 0 18px;
  width: calc(100% - 284px);
}

.app-dashboard {
  overflow-x: hidden !important;
}

.app-dashboard .main-content,
.app-dashboard .dashboard-content,
.app-dashboard .dashboard-content > .container-fluid,
.app-dashboard .subscription-section {
  max-width: 100%;
  min-width: 0;
}

.app-dashboard .dashboard-header {
  background: rgba(17, 22, 29, 0.86) !important;
  border: 1px solid var(--v3-stroke) !important;
  border-radius: 16px;
  margin: 18px 18px 0;
  min-height: 78px;
  padding: 14px 20px !important;
  position: sticky;
  top: 18px;
}

.app-dashboard .dashboard-header::after {
  background: linear-gradient(90deg, transparent, rgba(89, 199, 255, 0.65), transparent);
  bottom: -1px;
  content: "";
  height: 1px;
  left: 20%;
  opacity: 0.5;
  position: absolute;
  width: 60%;
}

.app-dashboard .user-avatar {
  box-shadow: 0 0 0 4px rgba(89, 199, 255, 0.07);
  height: 48px;
  width: 48px;
}

.app-dashboard .dashboard-content {
  padding: 32px 18px 20px !important;
}

.app-dashboard .dashboard-content > .container-fluid {
  margin-inline: auto;
  max-width: 1500px;
  padding: 0 !important;
}

.app-dashboard .section-title {
  align-items: center;
  display: flex;
  font-size: 25px !important;
  gap: 10px;
  margin-bottom: 26px !important;
}

.app-dashboard .section-title::after {
  background: linear-gradient(90deg, rgba(89, 199, 255, 0.35), transparent);
  content: "";
  height: 1px;
  margin-inline-start: 8px;
  max-width: 230px;
  width: 22vw;
}

/* Stats are now compact dashboard modules with a top signal line. */
.app-dashboard .stats-grid,
.app-dashboard .dashboard-content .row.mb-4:first-child {
  display: grid !important;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 24px !important;
}

.app-dashboard .stats-grid > div,
.app-dashboard .dashboard-content .row.mb-4:first-child > div {
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: auto !important;
}

.app-dashboard .stat-card {
  align-items: center;
  background:
    radial-gradient(circle at 95% 5%, rgba(89, 199, 255, 0.08), transparent 42%),
    #171c24 !important;
  border-radius: 15px !important;
  display: flex;
  min-height: 130px;
  overflow: hidden;
  padding: 24px !important;
  position: relative;
}

.app-dashboard .stat-card::before {
  background: linear-gradient(90deg, var(--v3-cyan), transparent);
  content: "";
  height: 2px;
  position: absolute;
  right: 0;
  top: 0;
  width: 45%;
}

.app-dashboard .stat-icon {
  border: 1px solid rgba(89, 199, 255, 0.12);
  border-radius: 13px !important;
  height: 54px !important;
  min-width: 54px;
  width: 54px !important;
}

.app-dashboard .stat-details h3,
.app-dashboard .stat-content h3 {
  color: #fff !important;
  font-size: 29px !important;
  font-weight: 900;
}

/* Subscription cards now share the reference plan-card geometry. */
.app-dashboard .subscription-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(89, 199, 255, 0.075), transparent 32%),
    #171c24 !important;
  border-radius: 16px !important;
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

.app-dashboard .subscription-card::before {
  background: linear-gradient(90deg, var(--v3-cyan), transparent);
  content: "";
  height: 2px;
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
}

.app-dashboard .subscription-header {
  padding: 25px 25px 20px !important;
}

.app-dashboard .subscription-body { padding: 23px 25px !important; }
.app-dashboard .subscription-footer { padding: 17px 25px !important; }

.app-dashboard .info-row {
  align-items: flex-start;
  border-bottom: 0 !important;
  display: grid;
  gap: 8px;
  grid-template-columns: 120px minmax(0, 1fr);
  padding: 8px 0 !important;
}

.app-dashboard .info-row .label { font-size: 12px; }

.app-dashboard .info-row .value {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 7px;
  padding: 7px 9px;
}

/* Filters become a segmented control inside a floating module. */
.app-dashboard .subscription-filter,
.app-dashboard .filter-card,
.app-dashboard .filters-container {
  background: rgba(20, 25, 32, 0.9) !important;
  border-radius: 15px !important;
  padding: 10px !important;
}

.app-dashboard .filter-tabs,
.app-dashboard .filter-buttons {
  background: transparent !important;
  border: 0 !important;
  display: grid !important;
  gap: 7px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.app-dashboard .filter-tab,
.app-dashboard .filter-btn {
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  justify-content: center;
  min-height: 44px;
}

.app-dashboard .filter-tab.active,
.app-dashboard .filter-btn.active {
  background: rgba(89, 199, 255, 0.11) !important;
  border-color: rgba(89, 199, 255, 0.20) !important;
  box-shadow: inset 0 0 0 1px rgba(89, 199, 255, 0.04);
}

/* Tables sit in a single data workspace rather than old white table cards. */
.app-dashboard .users-table,
.app-dashboard .subscriptions-table,
.app-dashboard .orders-table-wrapper,
.app-dashboard .product-list,
.app-dashboard .panel-card {
  background: #141920 !important;
  border: 1px solid var(--v3-stroke) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.13) !important;
}

.app-dashboard table thead th {
  color: #dae2ec !important;
  font-size: 12px !important;
  letter-spacing: 0.01em;
  padding-block: 18px !important;
}

.app-dashboard table tbody td { padding-block: 17px !important; }
.app-dashboard table tbody tr { transition: background 0.2s ease, transform 0.2s ease; }
.app-dashboard table tbody tr:hover { background: rgba(89, 199, 255, 0.035) !important; }

/* Forms and product management */
.app-dashboard .panel-card,
.app-dashboard .product-form-card,
.app-dashboard .product-list-card {
  padding: 30px !important;
}

.app-dashboard .form-control,
.app-dashboard select,
.app-dashboard textarea {
  min-height: 50px;
}

.app-dashboard textarea { min-height: 140px; }

.app-dashboard .modal-container,
.app-dashboard .confirm-modal,
.app-dashboard .renewal-modal-card {
  border-top: 2px solid rgba(89, 199, 255, 0.55) !important;
}

@media (max-width: 991px) {
  .v3-brand-name { display: none; }
  .page-home .v3-hero-visual { transform: none; }
  .page-home .v3-hero-visual img {
    margin-inline: 0;
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-home .v3-feature-showcase,
  .page-home .v3-story-layout,
  .page-home .v3-community-layout { grid-template-columns: 1fr; }
  .page-home .v3-feature-showcase { grid-template-rows: auto; }
  .page-home .v3-feature-showcase > div:first-child { grid-row: auto; }
  .page-home .v3-story-layout { gap: 30px; padding: 28px !important; }
  .page-home .v3-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-purchase .purchase-hero-card { transform: none; }
  .page-purchase .purchase-hero .hero-content { padding-inline-end: 0; }
  .v3-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-purchase .v3-plan-cell:nth-child(3n + 2) .v3-plan-card { transform: none; }
  .page-login .v3-auth-grid,
  .page-terms .hero-section > .container > .row,
  .v3-terms-grid { grid-template-columns: 1fr; }
  .v3-terms-index { position: static; }
  .app-dashboard .sidebar {
    bottom: 12px;
    right: 12px;
    top: 12px;
  }
  .app-dashboard .main-content {
    margin-right: 0;
    overflow-x: hidden;
    width: 100%;
  }
  .app-dashboard .dashboard-header { margin: 12px; top: 12px; }
  .app-dashboard .stats-grid,
  .app-dashboard .dashboard-content .row.mb-4:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 576px) {
  .page-home .hero-section .hero-content h1 { font-size: 34px !important; }
  .page-home .v3-hero-visual { min-height: auto; padding: 16px; }
  .page-home .v3-feature-showcase > div:first-child .single-feature,
  .page-home .v3-feature-showcase .single-feature { min-height: 260px; padding: 30px !important; }
  .page-home .v3-community-card { min-height: 340px; padding: 32px 27px; }
  .page-home .v3-services-grid { grid-template-columns: 1fr; }
  .v3-plan-grid { grid-template-columns: 1fr; }
  .page-purchase .v3-plan-card { min-height: 410px; }
  .app-dashboard .dashboard-content { padding: 80px 12px 18px !important; }
  .app-dashboard .subscription-section { margin-inline: 0 !important; }
  .app-dashboard .dashboard-content > .container-fluid { padding-inline: 0 !important; }
  .app-dashboard .dashboard-header { margin: 8px; }
  .app-dashboard .stats-grid,
  .app-dashboard .dashboard-content .row.mb-4:first-child { grid-template-columns: 1fr; }
  .app-dashboard .info-row { grid-template-columns: 1fr; }
}

/* Keep the store navigation identical to the homepage on desktop.
   The store document is RTL for its content, so its flex navigation needs
   an explicit LTR layout direction while link text remains Arabic/RTL. */
@media (min-width: 992px) {
  .page-purchase .navbar,
  .page-purchase .navbar-nav {
    direction: ltr;
  }

  .page-purchase .navbar-nav .nav-item > a {
    direction: rtl;
  }
}
