/* RSD Ad Management - Front Dashboard Styles */
:root {
	--primary-bg: #0f0f1a;
	--secondary-bg: #1a1a2e;
	--accent: #D4AF37;
	--accent-light: #F4D03F;
	--text-primary: #e0e0e0;
	--text-secondary: #b0b0b0;
	--glass-bg: rgba(255, 255, 255, 0.04);
	--glass-border: rgba(255, 255, 255, 0.12);
	--glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	color: var(--text-primary);
	background: radial-gradient(circle at 10% 10%, #0b0b14, #121224 40%, #0b0b14);
}

.container {
	display: flex;
	min-height: 100vh;
}

.sidebar {
	width: 260px;
	background: linear-gradient(180deg, rgba(16, 16, 28, 0.94), rgba(16, 16, 28, 0.86));
	color: var(--text-primary);
	border-right: 1px solid var(--glass-border);
	padding: 25px 20px;
	position: sticky;
	top: 0;
	height: 100vh;
}

.logo {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
	gap: 10px;
}

.user-currant-section {
	padding: 20px;
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--glass-border);
}

.user-balance-pill {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid var(--glass-border);
	background: rgba(212, 175, 55, .12);
	color: var(--text-primary);
}

.user-balance-pill i {
	color: var(--accent);
}

.user-balance-amount {
	font-weight: 700;
}

.user-balance-currency {
	font-size: 12px;
	color: var(--text-secondary);
}

.logo i {
	color: var(--accent);
	font-size: 22px;
	margin-right: 10px;
}

.logo h1 {
	font-size: 18px;
	letter-spacing: .5px;
}

.nav-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.nav-links li {
	margin-bottom: 10px;
}

.nav-links a {
	display: flex;
	align-items: center;
	color: var(--text-primary);
	text-decoration: none;
	padding: 12px 14px;
	border-radius: 12px;
	transition: all .2s ease;
	border: 1px solid transparent;
}

.nav-links a:hover {
	background: rgba(255, 255, 255, .06);
	border-color: var(--glass-border);
}

.nav-links a.active {
	background: rgba(212, 175, 55, .15);
	border-color: rgba(212, 175, 55, .35);
}

/* Logout Tab Styles */
.nav-links a.logout-tab {
	background: rgba(220, 53, 69, 0.1);
	border-color: rgba(220, 53, 69, 0.3);
	color: #dc3545;
}

.nav-links a.logout-tab:hover {
	background: rgba(220, 53, 69, 0.2);
	border-color: rgba(220, 53, 69, 0.5);
}

.nav-links a.logout-tab i {
	color: #dc3545;
}

.nav-links i {
	margin-right: 10px;
	color: var(--accent);
}

.user-section {
	margin-top: auto;
	padding: 20px 5px;
	border-top: 1px solid var(--glass-border);
}

.user-info {
	display: flex;
	align-items: center;
}

.user-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(212, 175, 55, .2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent);
	font-weight: 600;
	margin-right: 10px;
}

.user-avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50% !important;
	object-fit: cover;
	display: block;
}

.user-avatar i {
	font-size: 18px;
}

.user-details h3 {
	margin: 0;
	font-size: 14px;
}

.user-details p {
	margin: 0;
	font-size: 12px;
	color: var(--text-secondary);
}

.main-content {
	flex: 1;
	padding: 30px;
}

.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.header h2 {
	margin: 0;
}

.search-box {
	display: flex;
	align-items: center;
	background: var(--secondary-bg);
	border: 1px solid var(--glass-border);
	padding: 8px 12px;
	border-radius: 10px;
}

.search-box input {
	background: transparent;
	border: none;
	outline: none;
	color: var(--text-primary);
	margin-left: 8px;
}

.notification-bell {
	position: relative;
	margin-left: 12px;
}

.notification-bell .notification-badge {
	position: absolute;
	right: -3px;
	top: -3px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #E91E63;
}

.stats-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 25px;
	margin-bottom: 30px;
}

.card {
	background: var(--glass-bg) !important;
	border-radius: 16px;
  color: #e0e0e0;
	padding: 25px;
	box-shadow: var(--glass-shadow);
	border: 1px solid var(--glass-border);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: transform .2s ease;
}

.card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.card-title {
	font-size: 16px;
	color: var(--text-secondary);
}

.card-icon {
	width: 50px;
	height: 50px;
	border-radius: 12px;
	background: rgba(212, 175, 55, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent);
	font-size: 22px;
}

.card-value {
	font-size: 25px;
	font-weight: 700;
	margin-bottom: 8px;
  color: #d3af37;;
}

.card-change {
	font-size: 14px;
	color: #4CAF50;
	display: flex;
	align-items: center;
}

.card-change.negative {
	color: #F44336;
}

.charts-container {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 25px;
	margin-bottom: 30px;
}

.chart-card {
	background: var(--glass-bg);
	border-radius: 16px;
	padding: 25px;
	box-shadow: var(--glass-shadow);
	border: 1px solid var(--glass-border);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.chart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.chart-title {
	font-size: 18px;
	font-weight: 600;
}

.chart-actions select {
	background: var(--secondary-bg);
	color: var(--text-primary);
	border: 1px solid var(--glass-border);
	padding: 8px 15px;
	border-radius: 8px;
	outline: none;
	cursor: pointer;
}

.chart-container {
	height: 300px;
	position: relative;
}

.recent-activities {
	background: var(--glass-bg);
	padding: 25px;
	box-shadow: var(--glass-shadow);
	border: 1px solid var(--glass-border);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.activities-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.activities-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 10px;
}

.activity-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.activity-item {
	display: flex;
	align-items: center;
	padding: 18px 0;
	border-bottom: 1px solid var(--glass-border);
	transition: all .3s ease;
}

.activity-item:hover {
	background: rgba(255, 255, 255, .05);
	border-radius: 12px;
	padding-left: 15px;
	padding-right: 15px;
	margin: 0 -15px;
}

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

.activity-icon {
	width: 50px;
	height: 50px;
	border-radius: 12px;
	background: rgba(212, 175, 55, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent);
	font-size: 20px;
	margin-right: 15px;
}

.activity-details {
	flex: 1;
}

.activity-title {
	color: #e2e2e2;
	font-weight: 600;
	margin-bottom: 5px;
}

.activity-description {
	font-size: 14px;
	color: var(--text-secondary);
}

.activity-amount {
	font-weight: 700;
	color: var(--accent);
	font-size: 16px;
}

.activity-amount.negative {
	color: #F44336;
}

/* Pagination Styles */
.rsd-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 25px 0 15px 0;
	padding: 20px 0;
	border-top: 1px solid var(--glass-border);
}

.rsd-pagination-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: 8px;
	color: var(--text-primary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.rsd-pagination-btn:hover {
	background: rgba(212, 175, 55, 0.1);
	border-color: var(--accent);
	color: var(--accent);
	transform: translateY(-1px);
}

.rsd-pagination-numbers {
	display: flex;
	align-items: center;
	gap: 5px;
}

.rsd-pagination-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: 8px;
	color: var(--text-primary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.rsd-pagination-number:hover {
	background: rgba(212, 175, 55, 0.1);
	border-color: var(--accent);
	color: var(--accent);
	transform: translateY(-1px);
}

.rsd-pagination-current {
	background: var(--accent);
	border-color: var(--accent);
	color: #1a1a1a;
	font-weight: 600;
}

.rsd-pagination-current:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #1a1a1a;
	transform: none;
}

.rsd-pagination-dots {
	color: var(--text-secondary);
	font-weight: 600;
	padding: 0 5px;
}

.rsd-pagination-info {
	text-align: center;
	color: var(--text-secondary);
	font-size: 14px;
	margin-bottom: 10px;
}

/* Responsive pagination */
@media (max-width: 768px) {
	.rsd-pagination {
		flex-wrap: wrap;
		gap: 8px;
	}
	
	.rsd-pagination-btn {
		padding: 8px 12px;
		font-size: 13px;
	}
	
	.rsd-pagination-number {
		width: 35px;
		height: 35px;
		font-size: 13px;
	}
	
	.rsd-pagination-info {
		width: 100%;
		order: -1;
		margin-bottom: 15px;
	}
}


/* RSD utility + form styles */
/* Default tab visibility: hide all sections, show Dashboard by default */
.rsd-section { 
	display: none; 
	width: 100%;
}
#dashboardHome { display: block; }

.rsd-form-card {
	background: transparent;
	border: none;
	box-shadow: none;
}

.rsd-grid {
	display: grid;
	gap: 15px;
}
.rsd-grid-investment-plans {
	display: grid;
	gap: 15px;
	grid-template-columns: repeat(3, 1fr);
}

.rsd-input,
.rsd-select {
	width: 100%;
	padding: 10px;
	border-radius: 8px;
	border: 1px solid var(--glass-border);
	background: var(--glass-bg);
	color: var(--text-primary);
	margin-top: 10px;
}

.rsd-input--wide {
	width: 60%;
}

.rsd-input--small {
	width: 20%;
}

.rsd-mt-15 {
	margin-top: 15px;
}
#rsd-deposit-form,
#rsd-withdraw-form {
  display: grid;
  gap: 20px;
}

.rsd-deposit-address{
	color: var(--accent);
	background: rgba(212, 175, 55, 0.2);
	padding: 8px 12px;
	border-radius: 10px;
}

.activity-actions{
	display: flex;
	gap: 15px;
	padding: 20px;
}
.activities-title{
	color: #e2e2e2;
}

.rsd-invest-plan-expired{
	color: rgb(255 77 79);
    background: rgba(255, 77, 79, 0.2);
    padding: 5px 10px;
    text-align: center;
    margin: 10px;
    display: block;
    border-radius: 50px;
    box-shadow: rgba(255, 77, 79, 0.2) 0px 7px 29px 0px;
	font-weight: 800;
}
.rsd-invest-plan-active{
	    color: rgb(6 138 65);
    background: rgba(6, 138, 65, 0.2);
    padding: 5px 10px;
    text-align: center;
    margin: 10px;
    display: block;
    border-radius: 50px;
    box-shadow: rgba(6, 138, 65, 0.2) 0px 7px 29px 0px;
    font-weight: 800;
}

.rsd-btn-primary{
	padding: 10px 15px;
	color: #D4AF37 !important;
	background: rgba(212, 175, 55, .15) !important;
    border: 1px solid rgb(212, 175, 55) !important;
    border-radius: 16px !important;
}
.rsd-btn-primary:focus, .rsd-btn-primary:hover{
	color: #e0e0e0 !important;
	background: rgba(212, 175, 55, .15) !important;
    border: 1px solid rgb(212, 175, 55) !important;
    border-radius: 16px !important;
}

.rsd-withdraw-section{
	margin-top: 50px;
}

.rsd-referral-link {
	color: var(--accent);
    background: rgba(212, 175, 55, 0.2);
    padding: 8px 12px;
    border-radius: 10px;
	cursor: pointer;
}

/* Responsive */
@media (max-width: 1200px) {
	.charts-container {
		grid-template-columns: 1fr;
	}

	.sidebar {
		width: 90px;
	}

	.logo h1,
	.nav-links span,
	.user-details {
		display: none;
	}

	.nav-links a {
		justify-content: center;
		padding: 15px;
	}

	.nav-links i {
		margin-right: 0;
	}

	.search-box input {
		width: 200px;
	}
}

@media (max-width: 768px) {
	.container {
		flex-direction: column;
	}

	.sidebar {
		width: 100%;
		padding: 15px 0;
	}
	
	/* Show logo and user details in mobile */
	.logo h1,
	.user-details {
		display: block !important;
	}
	
	.logo {
		padding: 0 15px;
		margin-bottom: 15px;
	}
	
	.user-info {
		padding: 0 15px;
		margin-bottom: 15px;
	}

	.nav-links {
		display: flex;
		overflow-x: auto;
		padding: 0 10px;
	}

	.nav-links li {
		margin-bottom: 0;
		margin-right: 10px;
	}

	.nav-links a {
		white-space: nowrap;
	}

	.stats-cards {
		grid-template-columns: 1fr;
	}

	.search-box {
		display: none;
	}
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.card,
.chart-card,
.recent-activities {
	animation: fadeInUp .5s ease forwards;
}

.card:nth-child(2) {
	animation-delay: .1s;
}

.card:nth-child(3) {
	animation-delay: .2s;
}

.card:nth-child(4) {
	animation-delay: .3s;
}

/* Logout Button Styles */
.rsd-logout-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.rsd-btn-logout {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rsd-btn-logout:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.rsd-btn-logout:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.rsd-btn-logout i {
    font-size: 16px;
}

/* Mobile responsive for logout button */
@media (max-width: 768px) {
    .rsd-btn-logout {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 16px;
    }
}

/* Helper: hide elements when needed */
.rsd-hidden { display: none !important; }

/* Utility and form enhancements for advertisers media selection */
.rsd-flex-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.rsd-media-preview img,
.rsd-cover-preview img {
  width: 80px;
  height: 80px !important;
  object-fit: cover;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
  margin-top: 8px;
}

.rsd-video-chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #F4D03F;
  font-size: 12px;
  margin-top: 8px;
}

/* Earn section cover thumbnail */
.activity-item .activity-cover {
  margin-right: 12px;
}
.activity-item .activity-cover img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
}

/* Click-to-copy affordance */
.rsd-referral-link[role="button"],
.rsd-monthly-invites[role="button"],
.rsd-deposit-address[role="button"] {
  cursor: pointer;
}
.rsd-referral-link[role="button"]:focus,
.rsd-monthly-invites[role="button"]:focus,
.rsd-deposit-address[role="button"]:focus {
  outline: 2px dashed rgba(212, 175, 55, 0.7);
  outline-offset: 2px;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 15px;
  }
  
  .main-content {
    padding: 15px;
  }
  
  .stats-cards {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .charts-container {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .card {
    padding: 20px;
  }
  
  .chart-card {
    padding: 20px;
  }
  
  .recent-activities {
    padding: 20px;
  }
  
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .search-box {
    width: 100%;
  }
  
  .search-box input {
    width: 100%;
  }
  
  /* Wallet forms responsive */
  #rsd-deposit-form,
  #rsd-withdraw-form {
    gap: 15px;
  }
  
  .rsd-deposit-address,
  .rsd-referral-link {
    word-break: break-all;
    font-size: 12px;
    padding: 10px;
  }
  
  .rsd-withdraw-section {
    margin-top: 30px;
  }
  
  .activity-actions {
    gap: 10px;
    padding: 0px !important;
  }
  
  .rsd-btn-primary {
    width: 100%;
	display: block;
    text-align: center;
  }
  
  .rsd-flex-row { 
	display: grid;
  }
  
  /* Activity items responsive */
  .activity-item {
    display: grid;
    align-items: center;
    text-align: center;
    padding: 15px 0;
	gap: 10px;
  }
  
  .activity-item .activity-cover {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .activity-item .activity-cover img {
    width: 100%;
    height: auto;
    max-width: 200px;
  }
  
  .activity-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .activity-details {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .activity-title {
    font-size: 16px;
  }
  
  .activity-description {
    font-size: 13px;
  }
  .rsd-dashboard-helper {
	font-size: 10px;
    margin: 8px;
    line-height: 6;
  }
  .rsd-grid-investment-plans {
	display: grid;
	gap: 15px;
	grid-template-columns: repeat(1, 1fr);
}
}

@media screen and (max-width: 480px) {
  .main-content {
    padding: 10px;
  }
  
  .sidebar {
    padding: 10px;
  }
  
  .card {
    padding: 15px;
  }
  
  .chart-card {
    padding: 15px;
  }
  
  .recent-activities {
    padding: 15px;
  }
  
  .card-value {
    font-size: 20px;
  }
  
  .card-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .nav-links a {
    padding: 10px 12px;
  }
  
  .logo h1 {
    font-size: 16px;
  }
  
  .user-avatar {
    width: 30px;
    height: 30px;
  }
  
  .user-details h3 {
    font-size: 13px;
  }
  
  .user-details p {
    font-size: 11px;
  }
  
  /* Extra small screens adjustments */
  .activity-item .activity-cover img {
    max-width: 150px;
  }
  
  .rsd-deposit-address,
  .rsd-referral-link {
	display: block;
    font-size: 12px;
    padding: 8px;
  }
  
  .card-title {
    font-size: 14px;
  }
  
  .chart-title,
  .activities-title {
    font-size: 16px;
  }
  
  .header h2 {
    font-size: 20px;
  }
}

#rsd-daily-claim{
	margin: 0 auto;
    padding: 10px 80px;
}

.rsd-dashboard-helper {
	color: rgb(210 105 30);
    background: rgba(210, 105, 30, 0.2);
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgb(210 105 30);
	line-height: 6;
}

#rsd-daily-counter {
	display: inline-block;
    color: rgb(76, 175, 80);
    background: rgba(76, 175, 80, 0.2);
    padding: 10px;
    margin: 0 auto;
    border: 1px solid rgb(76, 175, 80);
    border-radius: 16px;
}
.rsd-preview-item {
  position: relative;
  display: inline-block;
  margin-top: 8px;
}

.rsd-preview-item img {
  max-width: 140px;
  border-radius: 8px;
}

.rsd-preview-item video {
  max-width: 220px;
  border-radius: 8px;
}

.rsd-preview-remove {
  position: absolute !important;
  top: 10px !important;
  right: 2px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: rgb(238 167 0 / 58%) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  line-height: 1 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
  z-index: 2 !important;
  padding: 0px !important;
}

.rsd-preview-remove:hover {
  background: #e04345 !important;
  transform: scale(1.05) !important;
}

/* Live Viewers widget styles */
.rsd-live-viewers-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 8px 16px;
  background-color: #f8f9fa;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.rsd-live-viewers {
  font-size: 18px;
  font-weight: 600;
  color: #212529;
  transition: all 0.3s ease;
}

.rsd-live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rsd-live-dot {
  width: 10px;
  height: 10px;
  background-color: #dc3545;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
}

.rsd-live-text {
  font-size: 12px;
  font-weight: 600;
  color: #dc3545;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

.rsd-live-viewers.updating {
  color: #0d6efd;
  transform: scale(1.05);
}

/* User Invest popup */
  .rsd-modal-overlay { 
	position: fixed; inset: 0; 
	background: rgba(0,0,0,0.5); 
	display: none; align-items: center; 
	justify-content: center; 
	z-index: 9999; 
}
  .rsd-modal { 
	margin: 0 auto;
    position: sticky;
    top: 25%;
	background: rgba(20,20,25,0.95); 
	border: 1px solid rgba(255,255,255,0.12); 
	border-radius: 12px; width: 480px; 
	max-width: calc(100vw - 40px); 
	padding: 20px; 
	color: #fff; 
	box-shadow: 0 8px 32px rgba(0,0,0,0.45); 
}
  .rsd-modal h3 { 
	margin: 0 0 10px 0; 
	font-size: 18px; 
}
  .rsd-modal .rsd-modal-close { 
	background: none; 
	border: none; 
	color: #fff; 
	opacity: 0.85; 
	cursor: pointer; 
	float: right; 
}
.rsd-modal .rsd-form-row {
  margin-bottom: 12px;
}
.rsd-modal .rsd-form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.rsd-modal .rsd-input,
.rsd-modal .rsd-select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.rsd-modal .rsd-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.rsd-modal .rsd-summary {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.9;
}
.rsd-btn-primary {
  background: #7a5cff;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.rsd-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.rsd-form-hint {
  font-size: 12px;
  opacity: 0.9;
  color: #c0392b;
}

@media screen and (max-width: 768px) {
  .rsd-modal {
    top: 10%;
  }
}
/* END User Invest popup Style */