/* RewardVid UX polish patch v3
   Final responsive and legacy-view compatibility layer. Loaded after v2. */

:root {
  --rv-header-height: 70px;
  --rv-max-width: 1540px;
  --rv-content-standard: 1120px;
  --rv-content-wide: 1380px;
  --rv-page-gutter: clamp(18px, 2.2vw, 34px);
  --rv-mobile-nav-height: 72px;
}

html,
body.rv-app {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body.rv-app {
    overflow-x: clip;
  }
}

body.rv-app img,
body.rv-app svg,
body.rv-app video,
body.rv-app canvas,
body.rv-app iframe {
  max-width: 100%;
}

body.rv-app .row,
body.rv-app [class*="col-"],
body.rv-app .container,
body.rv-app .container-fluid,
body.rv-app .table-responsive,
body.rv-app .dashboard-card,
body.rv-app .dashboard-body,
body.rv-app .card,
body.rv-app .card-body {
  min-width: 0;
}

.rv-app-shell {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  overflow: clip;
}

.rv-main {
  width: 100%;
  min-height: 0;
  flex: 1 0 auto;
}

.rv-container {
  width: min(calc(100% - (var(--rv-page-gutter) * 2)), var(--rv-max-width));
}

.rv-content-frame {
  width: 100%;
  min-width: 0;
  margin-inline: auto;
}

.rv-content-standard {
  max-width: var(--rv-content-standard);
}

.rv-content-wide {
  max-width: var(--rv-content-wide);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.rv-header__inner,
.rv-header--no-search .rv-header__inner {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  gap: 20px;
}

.rv-brand {
  grid-column: 1;
  justify-self: start;
}

.rv-mode-switch,
.rv-header--no-search .rv-mode-switch {
  grid-column: 2;
  justify-self: center;
  width: 236px;
  min-width: 236px;
}

.rv-header-actions,
.rv-header--no-search .rv-header-actions {
  grid-column: 3;
  justify-self: end;
  align-self: center;
  min-width: 0;
}

.rv-header-actions > *,
.rv-header-dropdown,
.rv-header-dropdown > button {
  flex: 0 0 auto;
}

.rv-icon-button,
.rv-profile-trigger {
  height: 42px;
}

.rv-icon-button {
  width: 42px;
  flex-basis: 42px;
}

.rv-profile-trigger {
  display: inline-flex;
  min-width: 58px;
  padding: 3px 8px 3px 3px;
  gap: 6px;
  border: 1px solid var(--rv-border);
  border-radius: 10px;
  background: var(--rv-surface);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.rv-profile-trigger:hover,
.rv-profile-trigger[aria-expanded="true"] {
  color: var(--rv-text);
  border-color: var(--rv-border-strong);
  background: var(--rv-surface-2);
}

.rv-profile-trigger__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
}

.rv-profile-trigger__avatar img,
.rv-profile-trigger img {
  width: 34px;
  height: 34px;
}

.rv-profile-trigger__chevron {
  display: grid;
  place-items: center;
  width: 10px;
  color: var(--rv-muted);
  transition: transform .18s ease;
}

.rv-profile-trigger[aria-expanded="true"] .rv-profile-trigger__chevron {
  transform: rotate(180deg);
}

.rv-profile-trigger__chevron i,
.rv-profile-trigger i {
  display: block;
  font-size: 10px;
}

.rv-balance-chip {
  height: 46px;
}

.rv-header .dropdown-menu {
  max-width: calc(100vw - 24px);
}

.rv-notification-menu {
  width: min(380px, calc(100vw - 24px));
}

.rv-notification-list {
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.rv-notification-item > span:last-child {
  min-width: 0;
}

.rv-notification-item__title,
.rv-notification-item__meta {
  display: block;
  overflow-wrap: anywhere;
}

.rv-dropdown-profile {
  width: min(300px, calc(100vw - 24px));
}

.rv-login-button {
  min-height: 42px;
}

/* Navbar search was intentionally removed. The Earn feed keeps its own search. */
.rv-header-search,
.rv-header-mobile-search {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Intro and dashboard hero sizing
   -------------------------------------------------------------------------- */

.rv-market-hero {
  padding: clamp(44px, 6vw, 76px) 0 20px;
}

.rv-market-hero__inner {
  max-width: 900px;
  margin-inline: auto;
}

.rv-market-hero h1 {
  font-size: clamp(54px, 6.2vw, 90px);
  line-height: .96;
}

.rv-market-hero__lead {
  max-width: 760px;
  margin-top: 24px;
  font-size: clamp(15px, 1.25vw, 19px);
}

.rv-market-hero__actions {
  margin-top: 26px;
}

.rv-experience-grid {
  margin-top: 34px;
}

.rv-experience-card {
  min-height: 250px;
}

.rv-product-hero {
  min-height: clamp(300px, 28vw, 390px);
}

.rv-product-hero__content {
  padding-block: clamp(34px, 4vw, 58px);
}

.rv-product-hero h1 {
  font-size: clamp(44px, 4.4vw, 68px);
}

.rv-product-hero__art {
  min-height: 300px;
}

/* --------------------------------------------------------------------------
   Feed and advertisement cards
   -------------------------------------------------------------------------- */

.rv-video-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px 16px;
  align-items: start;
}

.rv-video-grid > *,
.rv-video-grid__item {
  min-width: 0;
}

body.rv-app .video-post,
body.rv-app .rv-feed-video,
body.rv-app .rv-feed-ad {
  min-width: 0;
  background: transparent !important;
}

body.rv-app .video-post-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--rv-surface-2);
  transform: translateZ(0);
  transition: transform .22s ease, box-shadow .22s ease;
}

body.rv-app .video-post:hover .video-post-thumbnail,
body.rv-app .rv-feed-ad:hover .video-post-thumbnail {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

body.rv-app .video-post-thumbnail > a,
body.rv-app .video-post-thumbnail > div,
body.rv-app .video-post-thumbnail .rv-ad-slot,
body.rv-app .video-post-thumbnail .rv-ad-slot > a {
  display: block;
  width: 100%;
  height: 100%;
}

body.rv-app .video-post-thumbnail img,
body.rv-app .video-post-thumbnail video,
body.rv-app .video-post-thumbnail iframe,
body.rv-app .rv-ad-slot img,
body.rv-app .rv-ad-slot iframe,
body.rv-app .rv-ad-slot video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

body.rv-app .rv-feed-ad .video-post-thumbnail,
body.rv-app .rv-feed-ad .rv-ad-slot {
  aspect-ratio: 16 / 9 !important;
}

body.rv-app .rv-feed-ad .rv-ad-slot {
  position: relative;
  overflow: hidden;
  background: var(--rv-surface-2);
}

body.rv-app .rv-feed-ad .rv-ad-slot {
  display: grid !important;
  place-items: center;
}

body.rv-app .rv-feed-ad .rv-ad-slot img,
body.rv-app .rv-feed-ad .rv-ad-slot video {
  object-fit: contain;
}

body.rv-app .rv-feed-ad .rv-ad-slot > * {
  max-width: 100% !important;
}

body.rv-app .rv-feed-ad .rv-ad-slot > script {
  display: none !important;
}

body.rv-app .rv-feed-ad .rv-ad-slot ins,
body.rv-app .rv-feed-ad .rv-ad-slot [id],
body.rv-app .rv-feed-ad .rv-ad-slot [class] {
  max-width: 100%;
}

body.rv-app .rv-feed-ad .video-post-content {
  background: transparent !important;
}

.rv-ad-badge,
.rv-external-ad__label,
.rv-ad-card__badge {
  border-radius: 5px;
}

.rv-feed-toolbar {
  align-items: center;
  gap: 16px;
}

.rv-feed-search {
  flex: 1 1 560px;
  max-width: 720px;
}

.rv-feed-search button {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Consistent legacy account pages
   -------------------------------------------------------------------------- */

body.rv-app .dashboard-card,
body.rv-app .mo-box,
body.rv-app .card:not(.video-post),
body.rv-app .vine-wrapper,
body.rv-app .payout-option,
body.rv-app .accordion-item {
  overflow: hidden;
  border: 1px solid var(--rv-border) !important;
  border-radius: 10px !important;
  color: var(--rv-text);
  background: var(--rv-surface) !important;
  box-shadow: none !important;
}

body.rv-app .dashboard-card {
  margin-bottom: 18px;
}

body.rv-app .dashboard-header,
body.rv-app .card-header,
body.rv-app .vine-header {
  min-height: 58px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rv-border) !important;
  color: var(--rv-text);
  background: transparent !important;
}

body.rv-app .dashboard-body,
body.rv-app .card-body,
body.rv-app .mo-box {
  padding: clamp(18px, 2.2vw, 28px);
}

body.rv-app .dashboard-body.p-0,
body.rv-app .card-body.p-0 {
  padding: 0 !important;
}

body.rv-app .dashboard-body > :first-child,
body.rv-app .card-body > :first-child {
  margin-top: 0;
}

body.rv-app .dashboard-body > :last-child,
body.rv-app .card-body > :last-child {
  margin-bottom: 0;
}

body.rv-app .dashboard-card h1,
body.rv-app .dashboard-card h2,
body.rv-app .dashboard-card h3,
body.rv-app .dashboard-card h4,
body.rv-app .dashboard-card h5,
body.rv-app .card h1,
body.rv-app .card h2,
body.rv-app .card h3,
body.rv-app .card h4,
body.rv-app .card h5 {
  color: var(--rv-text);
}

body.rv-app .text-muted,
body.rv-app .text-secondary,
body.rv-app small,
body.rv-app .small {
  color: var(--rv-muted) !important;
}

body.rv-app hr {
  border-color: var(--rv-border);
  opacity: 1;
}

body.rv-app label,
body.rv-app .form-label {
  margin-bottom: 7px;
  color: var(--rv-text-soft);
  font-size: 12px;
  font-weight: 700;
}

body.rv-app input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.rv-app select,
body.rv-app textarea,
body.rv-app .form-control,
body.rv-app .form-select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--rv-border) !important;
  border-radius: 8px !important;
  color: var(--rv-text) !important;
  background: var(--rv-surface-2) !important;
  box-shadow: none !important;
}

body.rv-app textarea,
body.rv-app textarea.form-control {
  min-height: 118px;
  resize: vertical;
}

body.rv-app input:focus,
body.rv-app select:focus,
body.rv-app textarea:focus,
body.rv-app .form-control:focus,
body.rv-app .form-select:focus {
  border-color: rgba(78, 140, 255, .58) !important;
  box-shadow: 0 0 0 3px rgba(78, 140, 255, .10) !important;
}

body.rv-mode-earn input:focus,
body.rv-mode-earn select:focus,
body.rv-mode-earn textarea:focus {
  border-color: rgba(255, 63, 108, .55) !important;
  box-shadow: 0 0 0 3px rgba(255, 63, 108, .09) !important;
}

body.rv-app input[readonly],
body.rv-app input:disabled,
body.rv-app select:disabled,
body.rv-app textarea:disabled {
  color: var(--rv-muted) !important;
  background: var(--rv-surface-3) !important;
  opacity: .82;
}

body.rv-app .input-group > .form-control,
body.rv-app .input-group > .form-select,
body.rv-app .input-group > input,
body.rv-app .input-group > select {
  min-width: 0;
}

body.rv-app .input-group-text {
  border-color: var(--rv-border);
  color: var(--rv-text-soft);
  background: var(--rv-surface-3);
}

body.rv-app .btn,
body.rv-app button.btn {
  min-height: 40px;
  border-radius: 8px !important;
  font-weight: 750;
  box-shadow: none !important;
}

body.rv-app .btn-mint,
body.rv-app .btn-red,
body.rv-app .btn-danger,
body.rv-mode-earn .btn-primary {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--rv-red), var(--rv-red-strong)) !important;
}

body.rv-mode-promote .btn-primary,
body.rv-mode-promote .btn-mint,
body.rv-mode-promote .btn-red {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--rv-blue), var(--rv-blue-strong)) !important;
}

body.rv-app .btn-light,
body.rv-app .btn-secondary,
body.rv-app .btn-outline-primary,
body.rv-app .btn-outline-secondary {
  color: var(--rv-text-soft) !important;
  border-color: var(--rv-border) !important;
  background: var(--rv-surface-2) !important;
}

body.rv-app .btn-light:hover,
body.rv-app .btn-secondary:hover,
body.rv-app .btn-outline-primary:hover,
body.rv-app .btn-outline-secondary:hover {
  color: var(--rv-text) !important;
  border-color: var(--rv-border-strong) !important;
  background: var(--rv-surface-3) !important;
}

body.rv-app .alert {
  border: 1px solid var(--rv-border) !important;
  border-radius: 9px !important;
  color: var(--rv-text-soft);
  background: var(--rv-surface-2) !important;
}

body.rv-app .alert-danger {
  border-color: rgba(255, 98, 95, .25) !important;
  color: #ff918e;
  background: rgba(255, 98, 95, .08) !important;
}

body.rv-app .alert-success {
  border-color: rgba(84, 216, 121, .24) !important;
  color: #8de8a7;
  background: rgba(84, 216, 121, .08) !important;
}

body.rv-app .alert-info,
body.rv-app .alert-primary {
  border-color: rgba(78, 140, 255, .24) !important;
  color: #9dbdff;
  background: rgba(78, 140, 255, .08) !important;
}

body.rv-app .table-responsive {
  overflow-x: auto;
  border: 1px solid var(--rv-border);
  border-radius: 10px;
  scrollbar-width: thin;
}

body.rv-app table,
body.rv-app .table,
body.rv-app table.dataTable {
  width: 100% !important;
  margin: 0 !important;
  color: var(--rv-text) !important;
  background: transparent !important;
}

body.rv-app table thead th,
body.rv-app .table thead th,
body.rv-app table.dataTable thead th {
  padding: 13px 14px !important;
  border-color: var(--rv-border) !important;
  color: var(--rv-muted) !important;
  background: var(--rv-surface-2) !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.rv-app table tbody td,
body.rv-app .table tbody td,
body.rv-app table.dataTable tbody td {
  padding: 13px 14px !important;
  border-color: var(--rv-border) !important;
  color: var(--rv-text-soft) !important;
  background: transparent !important;
  vertical-align: middle;
}

body.rv-app table tbody tr,
body.rv-app table.dataTable tbody tr {
  background: transparent !important;
}

body.rv-app table tbody tr:hover,
body.rv-app table.dataTable tbody tr:hover {
  background: var(--rv-surface-2) !important;
}

body.rv-app .dataTables_wrapper {
  color: var(--rv-muted);
}

body.rv-app .dataTables_wrapper .row {
  margin-inline: 0;
}

body.rv-app .dataTables_wrapper .dataTables_length,
body.rv-app .dataTables_wrapper .dataTables_filter,
body.rv-app .dataTables_wrapper .dataTables_info,
body.rv-app .dataTables_wrapper .dataTables_paginate {
  color: var(--rv-muted) !important;
}

body.rv-app .pagination {
  flex-wrap: wrap;
  gap: 5px;
}

body.rv-app .page-link,
body.rv-app .pagination-link {
  border-color: var(--rv-border) !important;
  border-radius: 7px !important;
  color: var(--rv-text-soft) !important;
  background: var(--rv-surface) !important;
}

body.rv-app .active > .page-link,
body.rv-app .pagination-item.active .pagination-link {
  color: #fff !important;
  border-color: transparent !important;
  background: var(--rv-red) !important;
}

body.rv-mode-promote .active > .page-link,
body.rv-mode-promote .pagination-item.active .pagination-link {
  background: var(--rv-blue) !important;
}

body.rv-app .accordion-button {
  min-height: 50px;
  color: var(--rv-text) !important;
  background: var(--rv-surface) !important;
  box-shadow: none !important;
}

body.rv-app .accordion-button:not(.collapsed) {
  color: var(--rv-text) !important;
  background: var(--rv-surface-2) !important;
}

body.rv-app .accordion-body {
  color: var(--rv-text-soft);
  background: var(--rv-surface);
}

body.rv-app .modal-content,
body.rv-app .white-popup {
  overflow: hidden;
  border: 1px solid var(--rv-border) !important;
  border-radius: 12px !important;
  color: var(--rv-text);
  background: var(--rv-surface) !important;
  box-shadow: var(--rv-shadow);
}

body.rv-app .modal-header,
body.rv-app .modal-footer {
  border-color: var(--rv-border);
}

body.rv-app .dropdown-menu {
  color: var(--rv-text);
}

/* Legacy page headings are normalized without changing their backend forms. */
.rv-main--user .rv-content-frame > .mb-4:first-child,
.rv-main--user .rv-content-frame > .d-flex.justify-content-between.mb-4:first-child {
  min-height: 48px;
  margin-bottom: 22px !important;
  align-items: center;
}

.rv-main--user .rv-content-frame > .mb-4:first-child h4,
.rv-main--user .rv-content-frame > .d-flex.justify-content-between.mb-4:first-child h4 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
}

/* Settings/profile tabs */
body.rv-app .nav-tabs {
  gap: 6px;
  border-color: var(--rv-border);
}

body.rv-app .nav-tabs .nav-link {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
  color: var(--rv-muted);
}

body.rv-app .nav-tabs .nav-link.active {
  color: var(--rv-text);
  border-color: var(--rv-border) var(--rv-border) var(--rv-surface);
  background: var(--rv-surface);
}

body.rv-app .password-toggle {
  position: relative;
}

body.rv-app .password-toggle input[type="password"],
body.rv-app .password-toggle input[type="text"] {
  padding-inline-end: 48px;
}

body.rv-app .password-toggle-btn {
  position: absolute;
  top: 50%;
  inset-inline-end: 12px;
  margin: 0;
  transform: translateY(-50%);
}

/* Payout option cards */
body.rv-app .payout-option {
  position: relative;
  min-height: 94px;
  padding: 18px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

body.rv-app .payout-option:hover {
  border-color: var(--rv-border-strong) !important;
  background: var(--rv-surface-2) !important;
  transform: translateY(-1px);
}

body.rv-app .visually-hidden-radio:checked + .payout-option,
body.rv-app input[type="radio"]:checked + .payout-option {
  border-color: rgba(78, 140, 255, .62) !important;
  box-shadow: 0 0 0 3px rgba(78, 140, 255, .08) !important;
}

body.rv-mode-earn .visually-hidden-radio:checked + .payout-option,
body.rv-mode-earn input[type="radio"]:checked + .payout-option {
  border-color: rgba(255, 63, 108, .58) !important;
  box-shadow: 0 0 0 3px rgba(255, 63, 108, .08) !important;
}

/* Promote pages consistently use the blue product accent. */
body.rv-mode-promote {
  --theme: var(--rv-blue);
  --link-color: var(--rv-blue);
}

body.rv-mode-promote ::selection {
  background: rgba(78, 140, 255, .78);
}

body.rv-mode-promote .rv-eyebrow,
body.rv-mode-promote a:not(.btn):hover {
  color: var(--rv-blue);
}

/* --------------------------------------------------------------------------
   Public content pages
   -------------------------------------------------------------------------- */

body:is(.rv-route-blog-index, .rv-route-blog-show, .rv-route-about, .rv-route-privacy, .rv-route-terms, .rv-route-cookie, .rv-route-contact, .rv-route-advertise, .rv-route-faqs) .rv-main > .rv-container {
  max-width: 1220px;
}

body:is(.rv-route-about, .rv-route-privacy, .rv-route-terms, .rv-route-cookie) .page-header,
body:is(.rv-route-blog-index, .rv-route-blog-show, .rv-route-contact, .rv-route-advertise, .rv-route-faqs) .page-header {
  margin-bottom: 26px;
}

body.rv-app .page-header h1,
body.rv-app .page-header h2,
body.rv-app .page-header h3,
body.rv-app .page-header h4 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 850;
}

body.rv-app .breadcrumbs {
  color: var(--rv-muted);
}

body.rv-app .blog-card,
body.rv-app .blog-post,
body.rv-app .page-content,
body.rv-app .contact-card {
  border: 1px solid var(--rv-border);
  border-radius: 10px;
  background: var(--rv-surface);
}

body.rv-app .blog-card,
body.rv-app .blog-post,
body.rv-app .page-content,
body.rv-app .contact-card {
  overflow: hidden;
}

body.rv-app .blog-card img,
body.rv-app .blog-post img {
  width: 100%;
  height: auto;
}

body.rv-app .blog-card .card-body,
body.rv-app .blog-post .card-body,
body.rv-app .page-content,
body.rv-app .contact-card {
  padding: clamp(20px, 3vw, 34px);
}

body.rv-app .page-content,
body.rv-app .blog-post {
  overflow-wrap: anywhere;
}

body.rv-app .page-content table,
body.rv-app .blog-post table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

body.rv-app .page-content pre,
body.rv-app .blog-post pre {
  max-width: 100%;
  overflow-x: auto;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.rv-footer {
  flex: 0 0 auto;
  margin-top: 0;
  min-height: 0 !important;
  padding: 0 !important;
}

.rv-footer > .rv-container {
  min-height: 0;
}

.rv-footer__main {
  gap: 30px;
  padding: 36px 0 26px;
}

.rv-footer__bottom {
  min-height: 58px;
  padding: 10px 0;
}

.rv-footer__brand p {
  margin-bottom: 0;
}

#back-to-top,
.back-to-top,
.scroll-top,
[data-back-to-top] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Desktop and tablet responsive layout
   -------------------------------------------------------------------------- */

@media (max-width: 1399.98px) {
  .rv-header__inner,
  .rv-header--no-search .rv-header__inner {
    grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
    gap: 14px;
  }

  .rv-mode-switch,
  .rv-header--no-search .rv-mode-switch {
    width: 220px;
    min-width: 220px;
  }

  .rv-balance-chip {
    min-width: 130px;
  }

  .rv-header-action span {
    display: none;
  }

  .rv-header-action {
    width: 42px;
    padding: 0;
  }

  .rv-video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1099.98px) {
  .rv-brand img {
    max-width: 145px;
  }

  .rv-header__inner,
  .rv-header--no-search .rv-header__inner {
    grid-template-columns: minmax(145px, 1fr) auto minmax(145px, 1fr);
    gap: 10px;
  }

  .rv-mode-switch,
  .rv-header--no-search .rv-mode-switch {
    width: 204px;
    min-width: 204px;
  }

  .rv-mode-switch__item {
    padding-inline: 10px;
    font-size: 12px;
  }

  .rv-balance-chip__label {
    display: none;
  }

  .rv-balance-chip {
    min-width: 106px;
    grid-template-areas: "icon value";
    grid-template-columns: 28px auto;
    padding-inline: 9px;
  }

  .rv-footer__main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rv-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .rv-video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
  :root {
    --rv-header-height: 116px;
    --rv-page-gutter: 14px;
  }

  body.rv-app {
    padding-bottom: calc(var(--rv-mobile-nav-height) + env(safe-area-inset-bottom));
  }

  .rv-main,
  .rv-main--user {
    padding-top: calc(var(--rv-header-height) + 14px);
    padding-bottom: 30px;
  }

  .rv-header__inner,
  .rv-header--no-search .rv-header__inner {
    grid-template-columns: minmax(112px, 1fr) auto;
    grid-template-rows: 58px 50px;
    gap: 0 8px;
  }

  .rv-brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .rv-brand__desktop {
    display: block !important;
    max-width: min(138px, 38vw) !important;
    height: 30px !important;
  }

  .rv-brand__mobile {
    display: none !important;
  }

  .rv-mode-switch,
  .rv-header--no-search .rv-mode-switch {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    margin: 0 0 7px;
  }

  .rv-header-actions,
  .rv-header--no-search .rv-header-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 3px;
    justify-self: end;
  }

  .rv-header-action {
    display: none;
  }

  .rv-balance-chip {
    min-width: 0;
    height: 42px;
    padding: 3px 5px;
    border: 0;
    background: transparent;
    grid-template-areas: "label" "value";
    grid-template-columns: auto;
    row-gap: 1px;
  }

  .rv-balance-chip__icon {
    display: none;
  }

  .rv-balance-chip__label {
    display: block;
    max-width: 94px;
    overflow: hidden;
    font-size: 8px;
    text-align: end;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rv-balance-chip__value {
    font-size: 14px;
    text-align: end;
  }

  .rv-icon-button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border: 1px solid var(--rv-border);
    background: var(--rv-surface);
  }

  .rv-profile-trigger {
    min-width: 48px;
    height: 40px;
    padding: 2px 5px 2px 2px;
    gap: 3px;
  }

  .rv-profile-trigger__avatar,
  .rv-profile-trigger__avatar img,
  .rv-profile-trigger img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .rv-profile-trigger__chevron,
  .rv-profile-trigger__chevron i,
  .rv-profile-trigger i {
    display: grid !important;
  }

  .rv-login-button {
    width: auto;
    min-width: 46px;
    height: 40px;
    padding: 0 7px;
    border: 1px solid var(--rv-border);
    background: var(--rv-surface);
  }

  .rv-login-button > span:first-child {
    display: none;
  }

  .rv-login-button__providers {
    width: 34px;
    transform: scale(.92);
  }

  /* Intro has no duplicate top mode tabs. The bottom navigation is the switch. */
  body.rv-mode-intro {
    --rv-header-height: 66px;
  }

  body.rv-mode-intro .rv-main {
    padding-top: calc(var(--rv-header-height) + 12px);
  }

  .rv-header--intro .rv-header__inner,
  .rv-header--intro.rv-header--no-search .rv-header__inner {
    grid-template-columns: minmax(120px, 1fr) auto;
    grid-template-rows: 66px;
  }

  .rv-header--intro .rv-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .rv-header--intro .rv-mode-switch {
    display: none !important;
  }

  .rv-header--intro .rv-header-actions {
    display: flex !important;
    grid-column: 2;
    grid-row: 1;
  }

  .rv-header--intro .rv-login-button {
    display: inline-flex;
  }

  .rv-header-dropdown {
    position: static;
  }

  .rv-header-dropdown--notifications .rv-notification-menu,
  .rv-header-dropdown--profile .rv-dropdown-profile {
    position: fixed !important;
    inset-inline: 12px !important;
    top: calc(var(--rv-header-height-live, var(--rv-header-height)) - 2px) !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
  }

  .rv-header-dropdown--notifications .rv-notification-menu {
    max-height: min(66dvh, 520px);
  }

  .rv-notification-list {
    max-height: calc(min(66dvh, 520px) - 112px);
    padding: 5px;
  }

  .rv-notification-menu__header,
  .rv-notification-menu__footer {
    padding: 12px 14px;
  }

  .rv-notification-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    padding: 9px;
  }

  .rv-notification-item__icon {
    width: 34px;
    height: 34px;
  }

  .rv-notification-item__title {
    font-size: 12px;
  }

  .rv-header-dropdown--profile .rv-dropdown-profile {
    max-height: calc(100dvh - var(--rv-header-height) - 18px);
    overflow-y: auto;
  }

  .rv-market-hero {
    padding: 18px 0 8px;
  }

  .rv-market-hero__inner {
    padding: 26px 18px 24px;
    border: 1px solid var(--rv-border);
    border-radius: 10px;
    background:
      radial-gradient(circle at 80% 8%, rgba(255, 63, 108, .16), transparent 46%),
      linear-gradient(145deg, var(--rv-surface), rgba(147, 96, 255, .06));
  }

  .rv-market-hero__kicker {
    margin-bottom: 14px;
    font-size: 9px;
  }

  .rv-market-hero h1 {
    font-size: clamp(38px, 12.4vw, 54px);
    line-height: .98;
  }

  .rv-market-hero__lead {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.55;
  }

  .rv-market-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
  }

  .rv-market-hero__actions .rv-btn {
    width: 100%;
    min-height: 42px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .rv-experience-grid {
    gap: 12px;
    margin-top: 16px;
  }

  .rv-experience-card {
    min-height: 0;
    padding: 20px;
  }

  .rv-product-hero {
    grid-template-columns: minmax(0, 1fr) 132px;
    min-height: 238px;
  }

  .rv-product-hero__content,
  [dir="rtl"] .rv-product-hero__content {
    padding: 20px 6px 20px 19px;
  }

  [dir="rtl"] .rv-product-hero__content {
    padding-right: 19px;
    padding-left: 6px;
  }

  .rv-product-hero__badge {
    min-height: 27px;
    margin-bottom: 10px;
  }

  .rv-product-hero h1 {
    font-size: clamp(29px, 8.4vw, 38px);
  }

  .rv-product-hero__lead {
    display: -webkit-box;
    margin-top: 9px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.46;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .rv-product-hero__benefits {
    display: none;
  }

  .rv-product-hero__actions {
    gap: 7px;
    margin-top: 14px;
  }

  .rv-product-hero__actions .rv-btn {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 10px;
  }

  .rv-product-hero__art {
    min-height: 100%;
  }

  .rv-product-hero__art img {
    width: min(300px, 205%);
  }

  .rv-feed-toolbar {
    display: block;
  }

  .rv-feed-search {
    max-width: none;
    margin-bottom: 10px;
  }

  .rv-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 10px;
  }

  body.rv-app .rv-feed-ad .video-post-content,
  body.rv-app .video-post-content {
    padding-top: 8px;
  }

  .rv-main--user .rv-content-frame > .mb-4:first-child,
  .rv-main--user .rv-content-frame > .d-flex.justify-content-between.mb-4:first-child {
    min-height: 0;
    margin-bottom: 16px !important;
  }

  .rv-main--user .rv-content-frame > .mb-4:first-child h4,
  .rv-main--user .rv-content-frame > .d-flex.justify-content-between.mb-4:first-child h4 {
    font-size: 26px;
  }

  body.rv-app .dashboard-header,
  body.rv-app .card-header,
  body.rv-app .vine-header {
    padding: 14px 16px;
  }

  body.rv-app .dashboard-body,
  body.rv-app .card-body,
  body.rv-app .mo-box {
    padding: 16px;
  }

  body.rv-app .table-responsive {
    margin-inline: 0;
  }

  body.rv-app .dataTables_wrapper .dataTables_length,
  body.rv-app .dataTables_wrapper .dataTables_filter,
  body.rv-app .dataTables_wrapper .dataTables_info,
  body.rv-app .dataTables_wrapper .dataTables_paginate {
    float: none !important;
    width: 100%;
    margin: 8px 0;
    text-align: start !important;
  }

  body.rv-app .dataTables_wrapper .dataTables_filter input {
    width: min(100%, 260px) !important;
    margin: 6px 0 0 !important;
  }

  .rv-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 18px;
    padding: 28px 0 22px;
  }

  .rv-footer__brand {
    grid-column: 1 / -1;
  }

  .rv-footer__bottom {
    display: flex;
    min-height: 0;
    padding: 17px 0 13px;
    flex-direction: column;
    align-items: flex-start;
  }

  .rv-footer__bottom .rv-footer__controls {
    margin-top: 0;
  }

  .rv-mobile-nav {
    min-height: var(--rv-mobile-nav-height);
  }
}

@media (max-width: 575.98px) {
  .rv-product-hero {
    grid-template-columns: minmax(0, 1fr) 112px;
    min-height: 226px;
  }

  .rv-product-hero__actions {
    max-width: 205px;
  }

  .rv-footer__main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 479.98px) {
  .rv-video-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .rv-market-hero__actions {
    grid-template-columns: 1fr;
  }

  .rv-product-hero {
    grid-template-columns: 1fr;
    min-height: 300px;
  }

  .rv-product-hero__content,
  [dir="rtl"] .rv-product-hero__content {
    padding: 20px;
  }

  .rv-product-hero__lead {
    max-width: 72%;
  }

  .rv-product-hero__art {
    right: -12px;
    bottom: -4px;
    width: 150px;
    height: 142px;
  }

  .rv-footer__main {
    grid-template-columns: 1fr;
  }

  .rv-footer__brand {
    grid-column: auto;
  }

  .rv-footer__controls {
    flex-wrap: wrap;
  }
}

@media (max-width: 379.98px) {
  .rv-brand__desktop {
    max-width: 106px !important;
  }

  .rv-header-actions {
    gap: 1px;
  }

  .rv-balance-chip__label {
    max-width: 70px;
  }

  .rv-balance-chip__value {
    font-size: 12px;
  }

  .rv-icon-button {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
  }

  .rv-profile-trigger {
    min-width: 43px;
    padding-inline-end: 3px;
  }

  .rv-profile-trigger__avatar,
  .rv-profile-trigger__avatar img,
  .rv-profile-trigger img {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.rv-app .video-post-thumbnail,
  body.rv-app .payout-option,
  .rv-profile-trigger {
    transition: none !important;
  }
}

/* Late compatibility fixes for high-specificity legacy selectors. */
body.rv-app .dashboard-card {
  padding: 0 !important;
  border-radius: 10px !important;
}

body.rv-app .leaderboard-box {
  margin: 0 !important;
  padding: clamp(18px, 2.2vw, 26px) !important;
  border-bottom: 1px solid var(--rv-border) !important;
  color: var(--rv-text);
  background: transparent !important;
}

body.rv-app .leaderboard-box .leaderboard-box-stats {
  min-width: 136px;
  flex: 1 1 150px;
  margin: 0 !important;
  padding: 16px !important;
  border: 1px dashed var(--rv-border-strong) !important;
  border-radius: 9px !important;
  background: var(--rv-surface-2);
}

body.rv-app .leaderboard-box .leaderboard-box-stats h3,
body.rv-app .leaderboard-box .leaderboard-box-stats p {
  margin: 0;
}

body.rv-app .leaderboard-box .leaderboard-box-stats p {
  margin-top: 4px;
  color: var(--rv-muted) !important;
  font-size: 11px !important;
}

body.rv-app .leaderboard-box .flex-wrap {
  gap: 10px;
}

.rv-feed-ad__link {
  display: block;
  color: inherit !important;
  text-decoration: none !important;
}

.rv-feed-ad__badge {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 3;
  padding: 3px 6px;
  border-radius: 5px;
  color: #fff;
  background: rgba(7, 11, 18, .80);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.rv-feed-ad__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--rv-red);
  background: var(--rv-red-soft);
  font-size: 14px;
}

body.rv-mode-promote .rv-feed-ad__avatar {
  color: var(--rv-blue);
  background: var(--rv-blue-soft);
}

.rv-feed-ad__media .video-overlay {
  pointer-events: none;
}

body.rv-app .rv-auto-table-wrap {
  margin-bottom: 16px;
}

@media (max-width: 767.98px) {
  body.rv-app .leaderboard-box .leaderboard-box-stats {
    min-width: calc(50% - 5px);
    flex-basis: calc(50% - 5px);
    padding: 13px !important;
  }

  body.rv-app .leaderboard-box .leaderboard-box-stats h3 {
    font-size: 22px !important;
  }

  .rv-main--user .rv-content-frame > .row {
    max-width: 100%;
    margin-inline: 0;
  }

  .rv-main--user .rv-content-frame > .row > [class*="col-"] {
    padding-inline: 0;
  }
}

@media (max-width: 359.98px) {
  body.rv-app .leaderboard-box .leaderboard-box-stats {
    min-width: 100%;
    flex-basis: 100%;
  }
}

/* Modern public information, blog and form pages. */
.rv-public-container {
  max-width: 1220px;
}

.rv-public-page-head {
  align-items: flex-start;
  margin-bottom: 24px;
  padding-top: 4px;
}

.rv-public-page-head h1 {
  margin-top: 2px;
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 850;
  line-height: 1.05;
}

.rv-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--rv-muted);
  font-size: 11px;
  font-weight: 650;
}

.rv-breadcrumbs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rv-text-soft) !important;
  text-decoration: none;
}

.rv-breadcrumbs a:hover {
  color: var(--rv-text) !important;
}

.rv-breadcrumbs > i {
  font-size: 8px;
}

.rv-content-article {
  padding: clamp(22px, 3.8vw, 46px);
  overflow-wrap: anywhere;
  color: var(--rv-text-soft);
  font-size: 15px;
}

.rv-content-article > :first-child {
  margin-top: 0;
}

.rv-content-article > :last-child {
  margin-bottom: 0;
}

.rv-content-article h1,
.rv-content-article h2,
.rv-content-article h3,
.rv-content-article h4 {
  margin-top: 1.6em;
  margin-bottom: .65em;
}

.rv-content-article a {
  color: var(--rv-red) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rv-content-article img {
  height: auto !important;
  border-radius: 9px;
}

.rv-content-article blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  border-inline-start: 3px solid var(--rv-red);
  border-radius: 0 8px 8px 0;
  background: var(--rv-surface-2);
}

.rv-content-article pre,
.rv-content-article code {
  max-width: 100%;
  overflow-x: auto;
}

.rv-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rv-blog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rv-border);
  border-radius: 10px;
  background: var(--rv-surface);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.rv-blog-card:hover {
  border-color: var(--rv-border-strong);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.rv-blog-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  text-decoration: none !important;
}

.rv-blog-card__media {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background: var(--rv-surface-2);
}

.rv-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.rv-blog-card:hover .rv-blog-card__media img {
  transform: scale(1.025);
}

.rv-blog-card__placeholder {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 10px;
  color: var(--rv-red);
  background: var(--rv-red-soft);
  font-size: 23px;
}

.rv-blog-card__body {
  display: flex;
  min-height: 220px;
  padding: 18px;
  flex: 1 1 auto;
  flex-direction: column;
}

.rv-blog-card__meta,
.rv-blog-article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--rv-muted);
  font-size: 10px;
}

.rv-blog-card__meta span,
.rv-blog-article__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rv-blog-card h2 {
  display: -webkit-box;
  margin: 13px 0 8px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rv-blog-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--rv-muted);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.rv-blog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--rv-red);
  font-size: 12px;
  font-weight: 800;
}

.rv-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.rv-blog-article {
  overflow: hidden;
}

.rv-blog-article__header {
  padding: clamp(22px, 3.5vw, 42px) clamp(22px, 3.8vw, 46px) 24px;
}

.rv-blog-article__header h1 {
  margin: 2px 0 16px;
  font-size: clamp(32px, 4.8vw, 54px);
  font-weight: 850;
  line-height: 1.08;
}

.rv-blog-article__hero {
  margin: 0;
  overflow: hidden;
  border-block: 1px solid var(--rv-border);
  background: var(--rv-surface-2);
}

.rv-blog-article__hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.rv-blog-article__body {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.rv-blog-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(22px, 3.8vw, 46px);
  border-top: 1px solid var(--rv-border);
}

.rv-blog-share > strong {
  font-size: 12px;
}

.rv-blog-share__actions {
  display: flex;
  gap: 7px;
}

.rv-blog-share__actions a,
.rv-blog-share__actions button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--rv-border);
  border-radius: 8px;
  color: var(--rv-text-soft) !important;
  background: var(--rv-surface-2);
}

.rv-blog-share__actions a:hover,
.rv-blog-share__actions button:hover {
  color: var(--rv-text) !important;
  border-color: var(--rv-border-strong);
}

.rv-blog-aside {
  position: sticky;
  top: calc(var(--rv-header-height) + 18px);
}

.rv-blog-promo {
  padding: 24px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 63, 108, .18), transparent 45%),
    var(--rv-surface) !important;
}

.rv-blog-promo__icon,
.rv-public-info-card__icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 10px;
  color: var(--rv-red);
  background: var(--rv-red-soft);
  font-size: 20px;
}

.rv-blog-promo h2,
.rv-public-info-card h2 {
  margin: 0;
  font-size: 22px;
}

.rv-blog-promo p,
.rv-public-info-card p {
  margin: 10px 0 20px;
  color: var(--rv-muted);
  font-size: 12px;
}

.rv-blog-promo .rv-btn {
  width: 100%;
}

.rv-public-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}

.rv-public-form-card {
  padding: clamp(20px, 3vw, 34px);
}

.rv-public-form-card__head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rv-border);
}

.rv-public-form-card__head > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  color: var(--rv-red);
  background: var(--rv-red-soft);
  font-size: 18px;
}

.rv-public-form-card__head h2 {
  margin: 0;
  font-size: 21px;
}

.rv-public-form-card__head p {
  margin: 3px 0 0;
  color: var(--rv-muted);
  font-size: 11px;
}

.rv-public-info-card {
  position: sticky;
  top: calc(var(--rv-header-height) + 18px);
  padding: 24px;
}

.rv-public-info-card ul {
  display: grid;
  gap: 14px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.rv-public-info-card li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  color: var(--rv-text-soft);
  font-size: 12px;
}

.rv-public-info-card li i {
  color: var(--rv-green);
}

.rv-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.rv-faq-list {
  display: grid;
  gap: 10px;
  max-width: 980px;
}

.rv-faq-list .accordion-item {
  margin: 0 !important;
}

.rv-faq-list .accordion-button {
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 750;
}

.rv-faq-list .accordion-body {
  padding: 3px 18px 18px;
  color: var(--rv-muted);
  font-size: 13px;
}

@media (max-width: 991.98px) {
  .rv-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rv-blog-layout,
  .rv-public-form-layout {
    grid-template-columns: 1fr;
  }

  .rv-blog-aside,
  .rv-public-info-card {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .rv-public-page-head h1 {
    font-size: 34px;
  }

  .rv-blog-grid {
    grid-template-columns: 1fr;
  }

  .rv-blog-card__body {
    min-height: 190px;
  }

  .rv-blog-share {
    align-items: flex-start;
    flex-direction: column;
  }

  .rv-blog-article__header h1 {
    font-size: 31px;
  }
}

/* Shared account page heading used by legacy financial and campaign views. */
.rv-account-page-head {
  align-items: center;
  margin-bottom: 22px;
}

.rv-account-page-head h1 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  font-size: clamp(29px, 3.2vw, 39px);
  font-weight: 850;
  line-height: 1.08;
}

.rv-account-page-head h1 > i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 9px;
  color: var(--rv-red);
  background: var(--rv-red-soft);
  font-size: 18px;
}

body.rv-mode-promote .rv-account-page-head h1 > i {
  color: var(--rv-blue);
  background: var(--rv-blue-soft);
}

.rv-account-page-head .rv-page-head__copy {
  max-width: 720px;
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .rv-account-page-head {
    display: grid;
    gap: 13px;
  }

  .rv-account-page-head > :last-child:not(:first-child) {
    width: 100%;
    margin-top: 0;
  }

  .rv-account-page-head h1 {
    font-size: 27px;
  }

  .rv-account-page-head h1 > i {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 16px;
  }
}

/* Financial, profile, notification and provider-page polish. */
body.rv-app .price-price {
  margin: 8px 0 18px;
}

body.rv-app .price-price span,
body.rv-app .price-price b {
  color: var(--rv-text) !important;
}

body.rv-app .price-price b {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 850;
  letter-spacing: -.035em;
}

body.rv-app .notification-card {
  gap: 14px;
  margin-bottom: 9px;
  padding: 14px 16px !important;
  overflow: hidden;
  border: 1px solid var(--rv-border) !important;
  border-radius: 10px;
  background: var(--rv-surface);
}

body.rv-app .notification-card > .d-flex,
body.rv-app .notification-card .flex-1 {
  min-width: 0;
}

body.rv-app .notification-card .avatar,
body.rv-app .notification-card .avatar img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: cover;
}

body.rv-app .notification-card h5,
body.rv-app .notification-card h6,
body.rv-app .notification-card p {
  overflow-wrap: anywhere;
}

body.rv-app .notification-card h5 {
  margin: 0;
  font-size: 13px;
}

body.rv-app .notification-card h6 {
  color: var(--rv-text-soft);
  font-size: 12px !important;
}

body.rv-app .invoice address img {
  width: auto;
  max-width: 180px;
  max-height: 48px;
}

body.rv-app .invoice .table-responsive {
  margin-block: 28px !important;
}

body.rv-app .minimal-input-wrapper {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
}

body.rv-app .minimal-input-wrapper .symbol-div {
  display: grid;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--rv-border);
  border-inline-end: 0;
  border-radius: 8px 0 0 8px;
  color: var(--rv-muted);
  background: var(--rv-surface-3);
}

[dir="rtl"] body.rv-app .minimal-input-wrapper .symbol-div {
  border-inline-start: 0;
  border-inline-end: 1px solid var(--rv-border);
  border-radius: 0 8px 8px 0;
}

body.rv-app .minimal-input-wrapper input {
  min-width: 0;
  border-radius: 0 8px 8px 0 !important;
}

[dir="rtl"] body.rv-app .minimal-input-wrapper input {
  border-radius: 8px 0 0 8px !important;
}

body.rv-app input[type="file"] {
  min-height: 46px;
  padding: 8px;
}

body.rv-app input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-inline-end: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: var(--rv-text);
  background: var(--rv-surface-3);
  font-weight: 700;
}

body.rv-app .razorpay-payment-button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--rv-blue), var(--rv-blue-strong));
  font-weight: 800;
}

body.rv-app .rv-deposit-offer-card {
  border-color: rgba(78, 140, 255, .24) !important;
  background:
    radial-gradient(circle at 88% 5%, rgba(147, 96, 255, .16), transparent 42%),
    radial-gradient(circle at 10% 100%, rgba(84, 216, 121, .10), transparent 44%),
    var(--rv-surface) !important;
}

body.rv-app .rv-bonus-tier {
  border-color: var(--rv-border) !important;
  border-radius: 9px !important;
  background: var(--rv-surface-2) !important;
}

body.rv-app .mo-box {
  min-height: 112px;
  padding: 18px !important;
}

body.rv-app .mo-box h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 820;
}

body.rv-app .mo-box p {
  margin: 7px 0 0;
  color: var(--rv-muted);
}

body.rv-app .rv-route-user-profile .leaderboard-box > .d-flex,
body.rv-app .rv-route-user-password .leaderboard-box > .d-flex {
  min-width: 0;
}

body.rv-app .footer-nav-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.rv-app .footer-nav-menu-link {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--rv-border);
  border-radius: 8px;
  color: var(--rv-text-soft) !important;
  background: var(--rv-surface);
  font-size: 11px;
}

body.rv-app .text-green {
  color: var(--rv-green) !important;
}

@media (max-width: 575.98px) {
  body.rv-app .notification-card {
    align-items: flex-start !important;
    padding: 12px !important;
  }

  body.rv-app .notification-card > .d-flex {
    align-items: flex-start;
  }

  body.rv-app .notification-card .avatar,
  body.rv-app .notification-card .avatar img {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  body.rv-app .notification-card .me-3 {
    margin-right: 9px !important;
  }

  body.rv-app .invoice .row > [class*="col-"] {
    padding-inline: 0;
  }

  body.rv-app .invoice address {
    margin-bottom: 12px !important;
  }
}
