/**
 * Account Pages Styles
 * Consolidated styles from all account template files
 * @package ProCodeHub
 */

/* ========================================
   BOOKMARKS PAGE STYLES
   ======================================== */

.bookmarks-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e7eb;
}

.bookmarks-header__title {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bookmarks-header__title h1 {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	color: #111827;
}

.bookmarks-count {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	background: #f3f4f6;
	border-radius: 12px;
	font-size: 14px;
	color: #6b7280;
	font-weight: 500;
}

.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
	text-align: center;
}

.empty-state__icon {
	margin-bottom: 16px;
	color: #d1d5db;
}

.empty-state h3 {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 600;
	color: #374151;
}

.empty-state p {
	margin: 0;
	font-size: 14px;
	color: #6b7280;
}

.bookmarks-list {
	display: grid;
	gap: 16px;
}

.bookmark-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.2s ease;
}

.bookmark-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border-color: #d1d5db;
}

.bookmark-card__content {
	display: grid;
	grid-template-columns: 200px 1fr auto;
	gap: 16px;
	padding: 16px;
	align-items: center;
}

.bookmark-card__images {
	position: relative;
	width: 200px;
	height: 140px;
	border-radius: 8px;
	overflow: hidden;
	background: #f9fafb;
}

.image-primary {
	width: 100%;
	height: 100%;
}

.image-primary img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.image-secondary {
	position: absolute;
	bottom: 8px;
	right: 8px;
	width: 60px;
	height: 60px;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.image-secondary--single {
	width: 100%;
	height: 100%;
	position: static;
	border: none;
	box-shadow: none;
}

.image-secondary img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #d1d5db;
}

.bookmark-card__info {
	flex: 1;
	min-width: 0;
}

.bookmark-card__header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.bookmark-title {
	font-size: 16px;
	font-weight: 600;
	color: #111827;
	text-decoration: none;
	transition: color 0.2s ease;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bookmark-title:hover {
	color: #2563eb;
}

.bookmark-title--unpublished {
	color: #6b7280;
}

.bookmark-status {
	display: inline-flex;
	padding: 2px 8px;
	background: #fef3c7;
	color: #92400e;
	font-size: 12px;
	border-radius: 4px;
	font-weight: 500;
}

.bookmark-card__rating {
	margin-top: 4px;
}

.bookmark-card__actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.btn-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: #6b7280;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.btn-action:hover {
	background: #f9fafb;
	border-color: #d1d5db;
	color: #111827;
}

.btn-action--remove:hover {
	background: #fef2f2;
	border-color: #fecaca;
	color: #dc2626;
}

/* ========================================
   COMMENTS/REVIEWS PAGE STYLES
   ======================================== */

.reviews-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e7eb;
}

.reviews-header__title {
	display: flex;
	align-items: center;
	gap: 12px;
}

.reviews-header__title h1 {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	color: #1f2937;
}

.reviews-count {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	background: #f3f4f6;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
}

.btn-secondary-action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	color: #374151;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s;
}

.btn-secondary-action:hover {
	background: #f9fafb;
	border-color: #9ca3af;
	color: #1f2937;
}

.reviews-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.review-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	transition: all 0.2s;
}

.review-card:hover {
	border-color: #d1d5db;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.review-card__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f3f4f6;
}

.review-card__company {
	display: flex;
	gap: 12px;
	flex: 1;
}

.company-thumb {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f4f6;
}

.company-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.company-info {
	flex: 1;
	min-width: 0;
}

.company-name {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
	text-decoration: none;
	margin-bottom: 4px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.company-name:hover {
	color: #2563eb;
}

.review-card__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	font-size: 13px;
	color: #6b7280;
}

.review-author,
.review-date {
	display: flex;
	align-items: center;
	gap: 6px;
}

.review-card__content {
	margin-bottom: 16px;
}

.review-pros-cons {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.review-section {
	margin-bottom: 12px;
}

.review-section:last-child {
	margin-bottom: 0;
}

.review-section__label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

.review-section--pros .review-section__label {
	color: #059669;
}

.review-section--cons .review-section__label {
	color: #dc2626;
}

.review-section p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #4b5563;
}

.review-section--pros,
.review-section--cons {
	padding: 12px;
	border-radius: 8px;
	background: #f9fafb;
}

.review-section--pros {
	border-left: 3px solid #059669;
}

.review-section--cons {
	border-left: 3px solid #dc2626;
}

.review-card__actions {
	display: flex;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid #f3f4f6;
}

.review-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s;
	border: 1px solid transparent;
	cursor: pointer;
	background: none;
}

.review-action--view {
	color: #2563eb;
	border-color: #dbeafe;
	background: #eff6ff;
}

.review-action--view:hover {
	background: #dbeafe;
	border-color: #93c5fd;
}

.review-action--delete {
	color: #dc2626;
	border-color: #fee2e2;
	background: #fef2f2;
}

.review-action--delete:hover {
	background: #fee2e2;
	border-color: #fca5a5;
}

/* ========================================
   INCOME PAGE STYLES (BALANCES & BONUSES)
   ======================================== */

.balances-modern {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 24px;
}

.balance-card {
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
	border-radius: 16px;
	padding: 28px;
	color: #fff;
	box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.balance-card::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

.balance-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 28px rgba(30, 64, 175, 0.25);
}

.balance-card--withdraw {
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
	box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
}

.balance-card--withdraw:hover {
	box-shadow: 0 8px 28px rgba(30, 64, 175, 0.25);
}

.balance-card__header {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 24px;
}

.balance-card__icon {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(10px);
}

.balance-card__title-wrap {
	flex: 1;
}

.balance-card__title {
	margin: 0 0 6px 0;
	font-size: 18px;
	font-weight: 600;
	color: #fff;
}

.balance-card__badge {
	display: inline-block;
	padding: 4px 12px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	backdrop-filter: blur(10px);
}

.balance-card__badge--success {
	background: rgba(76, 217, 100, 0.3);
}

.balance-card__amount {
	margin: 24px 0;
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.balance-card__value {
	font-size: 42px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}

.balance-card__currency {
	font-size: 24px;
	font-weight: 600;
	opacity: 0.9;
}

.balance-card__description {
	margin: 0 0 24px 0;
	font-size: 14px;
	line-height: 1.6;
	opacity: 0.95;
	color: rgba(255, 255, 255, 0.95);
}

.balance-card__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.balance-btn {
	flex: 1;
	min-width: 140px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.balance-btn--primary {
	background: #fff;
	color: #1e40af;
}

.balance-card--withdraw .balance-btn--primary {
	color: #1e40af;
}

.balance-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.balance-btn--secondary {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(10px);
}

.balance-btn--secondary:hover {
	background: rgba(255, 255, 255, 0.25);
	border-color: rgba(255, 255, 255, 0.5);
}

.balance-btn svg {
	flex-shrink: 0;
}

.balance-card__title-wrap .balance-card__description {
	margin: 0;
	font-size: 13px;
	opacity: 0.9;
}

.balance-card__temp-bonus {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.4;
	backdrop-filter: blur(8px);
}

.balance-card__temp-bonus svg {
	flex-shrink: 0;
}

.balance-card .balance-card__badge {
	margin-top: 8px;
}

/* Account balance top-up / alt / refund / tx */
.account-balance-topup {
	margin-top: 24px;
}

.account-balance-topup__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.account-balance-topup__label {
	display: block;
	font-weight: 600;
	color: #374151;
	font-size: 14px;
}

.account-balance-topup__field {
	position: relative;
}

.account-balance-topup__input {
	width: 100%;
	padding: 12px 50px 12px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 15px;
	box-sizing: border-box;
}

.account-balance-topup__input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.account-balance-topup__currency {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #6b7280;
	font-weight: 600;
	pointer-events: none;
}

.account-balance-topup__hint {
	margin: 0;
	font-size: 13px;
	color: #4b5563;
	line-height: 1.45;
}

.account-balance-topup__hint strong {
	color: #1e40af;
}

.account-balance-topup__submit {
	width: 100%;
	padding: 14px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.account-balance-topup__submit svg {
	flex-shrink: 0;
}

.account-balance-alt {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.account-balance-alt__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	color: #1e40af;
	font-weight: 600;
	font-size: 14px;
	text-align: left;
	transition: color 0.2s ease;
}

.account-balance-alt__toggle:hover {
	color: #1d4ed8;
}

.account-balance-alt__chevron {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.account-balance-alt__toggle.is-open .account-balance-alt__chevron {
	transform: rotate(180deg);
}

.account-balance-alt__toggle-hide {
	display: none;
}

.account-balance-alt__toggle.is-open .account-balance-alt__toggle-show {
	display: none;
}

.account-balance-alt__toggle.is-open .account-balance-alt__toggle-hide {
	display: inline;
}

.account-balance-alt__panel {
	margin-top: 16px;
}

.account-balance-alt__panel[hidden] {
	display: none !important;
}

.account-balance-alt__form {
	background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
	padding: 20px;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
}

.account-balance-alt__info {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.account-balance-alt__icon {
	width: 48px;
	height: 48px;
	background: #1e40af;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
}

.account-balance-alt__name {
	font-weight: 700;
	font-size: 15px;
	color: #1f2937;
	margin-bottom: 4px;
}

.account-balance-alt__desc {
	margin: 0;
	font-size: 13px;
	color: #6b7280;
}

.account-balance-alt__submit {
	width: 100%;
	padding: 14px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 10px;
}

.account-balance-refund {
	margin-top: 16px;
}

.account-balance-refund__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	color: #374151;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.account-balance-refund__link:hover {
	border-color: #93c5fd;
	color: #1e40af;
}

.account-balance-history {
	margin-top: 8px;
}

.account-balance-history__title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #1f2937;
}

.account-balance-history__pagination {
	margin-top: 20px;
}

.account-tx {
	padding: 16px;
	margin-bottom: 12px;
	border: 1px solid #f3f4f6;
	border-radius: 12px;
	background: #fff;
	transition: border-color 0.2s ease;
}

.account-tx:hover {
	border-color: #e5e7eb;
}

.account-tx__row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}

.account-tx__name {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.account-tx__title {
	font-weight: 600;
	color: #1f2937;
	font-size: 15px;
}

.account-tx__desc {
	font-size: 13px;
	color: #6b7280;
}

.account-tx__amount {
	font-weight: 700;
	font-size: 16px;
	white-space: nowrap;
	flex-shrink: 0;
}

.account-tx__amount--in {
	color: #059669;
}

.account-tx__amount--out {
	color: #dc2626;
}

.account-tx__meta {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #f3f4f6;
}

.account-tx__date {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.account-tx__date-text {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #6b7280;
	font-size: 14px;
}

.account-tx__status {
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 600;
}

.account-tx__status--pending {
	background: #fef3c7;
	color: #92400e;
}

.account-tx__status--cancelled {
	background: #fee2e2;
	color: #991b1b;
}

.account-balance-overlay {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background: #000000cc;
}

.balance-notification {
	margin-bottom: 20px;
}

@media (max-width: 640px) {
	.account-tx__row {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.account-tx__amount {
		font-size: 15px;
	}

	.account-balance-alt__info {
		align-items: flex-start;
	}

	.balance-card__value {
		font-size: 34px;
	}
}

/* X2 Bonus Banner Styles (деловой стиль) */
.x2-bonus-banner {
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
	border-radius: 16px;
	padding: 28px;
	color: #fff;
	box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
	position: relative;
	overflow: hidden;
}

.x2-bonus-banner::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

.x2-bonus-banner--active {
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
	box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

.x2-bonus-banner--offer {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 24px;
	align-items: center;
}

.x2-bonus-banner__icon {
	width: 80px;
	height: 80px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(10px);
	flex-shrink: 0;
}

.x2-bonus-banner__content {
	flex: 1;
}

.x2-bonus-banner__title {
	margin: 0 0 8px 0;
	font-size: 24px;
	font-weight: 700;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 12px;
}

.x2-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 32px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 8px;
	font-size: 20px;
	font-weight: 800;
	backdrop-filter: blur(10px);
}

.x2-bonus-banner__description {
	margin: 0 0 16px 0;
	font-size: 16px;
	line-height: 1.5;
	opacity: 0.95;
}

.x2-bonus-features {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
}

.x2-bonus-features li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
}

.x2-bonus-features svg {
	flex-shrink: 0;
}

.x2-bonus-banner__action {
	text-align: center;
	flex-shrink: 0;
}

.x2-price {
	margin-bottom: 16px;
}

.x2-price-value {
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
}

.x2-price-currency {
	font-size: 20px;
	font-weight: 600;
	opacity: 0.9;
	margin-left: 4px;
}

.x2-activate-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 32px;
	background: #fff;
	color: #1e40af;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.x2-activate-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	background: #f8fafc;
}

.x2-activate-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.x2-insufficient-funds {
	margin: 12px 0 0 0;
	font-size: 13px;
	opacity: 0.9;
}

.x2-bonus-banner__progress {
	margin-top: 16px;
}

.x2-progress-bar {
	height: 8px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 8px;
}

.x2-progress-fill {
	height: 100%;
	background: #fff;
	border-radius: 4px;
	transition: width 0.3s ease;
}

.x2-progress-text {
	font-size: 14px;
	font-weight: 600;
	opacity: 0.9;
}

/* Share Buttons and Increase Profit Button */
.share-buttons {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.increase-profit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-left: 8px;
	background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
	border-radius: 50%;
	color: #fff !important;
	text-decoration: none;
	transition: all 0.3s ease;
	vertical-align: middle;
}

.increase-profit-btn:hover {
	background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
	transform: scale(1.1) rotate(90deg);
	box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
	color: #fff !important;
}

.increase-profit-btn svg {
	width: 18px;
	height: 18px;
}

.share-telegram-btn,
.share-vk-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	color: #fff !important;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.3s ease;
}

.share-telegram-btn {
	background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
}

.share-telegram-btn:hover {
	background: linear-gradient(135deg, #006699 0%, #1a8ec0 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 136, 204, 0.3);
	color: #fff !important;
}

.share-vk-btn {
	background: linear-gradient(135deg, #4680C2 0%, #5181B8 100%);
}

.share-vk-btn:hover {
	background: linear-gradient(135deg, #3a6ba5 0%, #4272a6 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(70, 128, 194, 0.3);
	color: #fff !important;
}

.share-telegram-btn svg,
.share-vk-btn svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.income-positive {
	color: #059669!important;
}

.withdrawal-negative {
	color: #dc2626!important;
}

.status.completed {
	background: #d1fae5!important;
	color: #065f46!important;
}



.block_item .transactions .item .row2 {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 15px;
}

.block_item .transactions .item .row1 {
	align-items: center;
}

.block_item .transactions {
	gap: 12px !important;
}

/* ========================================
   PARTNER PROGRAM STYLES
   ======================================== */

.partner-promo-banner {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 12px;
	padding: 30px;
	color: #fff;
	box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.promo-banner-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.promo-banner-text h3 {
	font-size: 24px;
	margin: 0 0 10px 0;
	font-weight: 700;
}

.promo-banner-text p {
	margin: 0;
	opacity: 0.95;
	font-size: 16px;
}

.promo-banner-actions {
	display: flex;
	gap: 12px;
	flex-shrink: 0;
}

.btn-promo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: #fff;
	color: #667eea;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.btn-promo:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-promo-secondary {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	border: 2px solid #fff;
}

.btn-promo-secondary:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   STATISTICS PAGE STYLES
   ======================================== */

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.stat-card {
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
	border-radius: 12px;
	padding: 20px;
	color: white;
	display: flex;
	align-items: center;
	gap: 15px;
	box-shadow: 0 4px 16px rgba(30, 64, 175, 0.15);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.stat-card::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

.stat-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(30, 64, 175, 0.25);
}

.stat-card:nth-child(2) {
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.stat-card:nth-child(3) {
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.stat-card:nth-child(4) {
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.stat-icon {
	font-size: 48px;
	line-height: 1;
	position: relative;
	z-index: 1;
}

.stat-content {
	flex: 1;
	position: relative;
	z-index: 1;
}

.stat-label {
	font-size: 14px;
	opacity: 0.9;
	margin-bottom: 5px;
}

.stat-value {
	font-size: 28px;
	font-weight: bold;
	margin-bottom: 5px;
}

.stat-sub {
	font-size: 12px;
	opacity: 0.85;
}

.return-highlight {
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
	border-radius: 12px;
	padding: 25px;
	color: white;
	margin: 20px 0;
	box-shadow: 0 4px 20px rgba(30, 64, 175, 0.2);
	position: relative;
	overflow: hidden;
}

.return-highlight::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

.return-percent {
	text-align: center;
	margin-bottom: 20px;
	position: relative;
	z-index: 1;
}

.return-label {
	display: block;
	font-size: 16px;
	opacity: 0.9;
	margin-bottom: 10px;
}

.return-value {
	display: block;
	font-size: 48px;
	font-weight: bold;
	margin-bottom: 5px;
}

.return-sub {
	display: block;
	font-size: 14px;
	opacity: 0.85;
}

.return-example {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	position: relative;
	z-index: 1;
}

.return-example p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
}

.return-example strong {
	color: #fff;
	font-size: 18px;
}

.projection-list {
	list-style: none;
	padding: 0;
	margin: 15px 0;
}

.projection-list li {
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid #e5e7eb;
}

.projection-list li:last-child {
	border-bottom: none;
}

.proj-label {
	color: #6b7280;
}

.proj-value {
	font-weight: bold;
	color: #1f2937;
	font-size: 18px;
}

.chart-container {
	position: relative;
	height: 400px;
	margin-top: 20px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* ========================================
   WITHDRAWALS PAGE STYLES
   ======================================== */

.withdraw-form-group {
	margin-bottom: 20px;
}

.withdraw-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #374151;
	font-size: 14px;
}

.withdraw-form-group select,
.withdraw-form-group input[type="text"] {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 15px;
	transition: all 0.2s ease;
	background: #fff;
}

.withdraw-form-group select:focus,
.withdraw-form-group input[type="text"]:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.withdraw-form-group .description {
	font-size: 13px;
	color: #6b7280;
	margin-top: 6px;
	line-height: 1.5;
}

.withdraw-notification-area {
	margin-bottom: 20px;
}

.alert {
	padding: 14px 20px;
	border-radius: 10px;
	font-size: 14px;
	margin-bottom: 16px;
	border: 1px solid transparent;
}

.alert-success {
	background: #d1fae5;
	color: #065f46;
	border-color: #a7f3d0;
}

.alert-danger {
	background: #fee2e2;
	color: #991b1b;
	border-color: #fecaca;
}

.alert-warning {
	background: #fef3c7;
	color: #92400e;
	border-color: #fde68a;
}

.alert-info {
	background: #dbeafe;
	color: #1e40af;
	border-color: #bfdbfe;
}

.withdraw-history-item {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 12px;
	transition: all 0.2s ease;
	background: #fff;
}

.withdraw-history-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border-color: #d1d5db;
}

.withdraw-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 600;
}

.withdraw-status-badge.pending {
	background: #fef3c7;
	color: #92400e;
}

.withdraw-status-badge.completed {
	background: #d1fae5;
	color: #065f46;
}

.withdraw-status-badge.cancelled {
	background: #fee2e2;
	color: #991b1b;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 968px) {
	.x2-bonus-banner--offer {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.x2-bonus-banner__icon {
		margin: 0 auto;
	}

	.x2-bonus-features {
		justify-content: center;
	}

	.x2-bonus-banner__title {
		justify-content: center;
	}
}

@media (max-width: 768px) {

	.bookmarks-header,
	.reviews-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.bookmarks-header__title,
	.reviews-header__title {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.bookmarks-header__title h1,
	.reviews-header__title h1 {
		font-size: 20px;
	}

	.btn-secondary-action {
		width: 100%;
		justify-content: center;
	}

	.bookmark-card__content {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.bookmark-card__images {
		width: 100%;
		height: 200px;
	}

	.bookmark-card__actions {
		justify-content: flex-end;
	}

	.review-card {
		padding: 16px;
	}

	.review-card__header {
		flex-direction: column;
		gap: 12px;
	}

	.review-card__meta {
		align-items: flex-start;
		width: 100%;
	}

	.review-pros-cons {
		grid-template-columns: 1fr;
	}

	.review-card__actions {
		flex-direction: column;
	}

	.review-action {
		width: 100%;
		justify-content: center;
	}

	.balances-modern {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.balance-card {
		padding: 24px;
	}

	.balance-card__value {
		font-size: 36px;
	}

	.balance-card__currency {
		font-size: 20px;
	}

	.balance-card__actions {
		flex-direction: column;
	}

	.balance-btn {
		min-width: 100%;
	}

	.x2-bonus-banner {
		padding: 20px;
	}

	.x2-bonus-banner__icon {
		width: 64px;
		height: 64px;
	}

	.x2-bonus-banner__icon svg {
		width: 36px;
		height: 36px;
	}

	.x2-bonus-banner__title {
		font-size: 20px;
	}

	.x2-badge {
		width: 40px;
		height: 28px;
		font-size: 16px;
	}

	.x2-price-value {
		font-size: 28px;
	}

	.x2-activate-btn {
		padding: 12px 24px;
		font-size: 15px;
	}

	.share-buttons {
		gap: 6px;
	}

	.increase-profit-btn {
		width: 20px;
		height: 20px;
		margin-left: 0px;
	}

	.increase-profit-btn svg {
		width: 16px;
		height: 16px;
	}

	.value {
		font-size: 16px !important;
	}

	.name {
		font-size: 16px !important;
	}

	.share-telegram-btn,
	.share-vk-btn {
		font-size: 12px;
		padding: 5px 10px;
		gap: 4px;
	}

	.share-telegram-btn svg,
	.share-vk-btn svg {
		width: 14px;
		height: 14px;
	}

	.promo-banner-content {
		flex-direction: column;
		text-align: center;
	}

	.promo-banner-actions {
		flex-direction: column;
		width: 100%;
	}

	.btn-promo {
		width: 100%;
		justify-content: center;
	}

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

	.stat-card {
		padding: 15px;
	}

	.stat-icon {
		font-size: 36px;
	}

	.stat-value {
		font-size: 24px;
	}

	.return-value {
		font-size: 36px;
	}

	.return-example p {
		font-size: 14px;
	}

	.return-example strong {
		font-size: 16px;
	}

	.chart-container {
		height: 300px;
	}

	.projection-list li {
		flex-direction: column;
		gap: 5px;
	}
}

@media (max-width: 480px) {
	.company-thumb {
		width: 48px;
		height: 48px;
	}

	.company-name {
		font-size: 15px;
	}

	.review-section__label {
		font-size: 12px;
	}

	.review-section p {
		font-size: 13px;
	}

	.page-link {
		min-width: 32px;
		height: 32px;
		padding: 0 8px;
		font-size: 12px;
	}

	.stat-card {
		padding: 15px;
	}

	.stat-icon {
		font-size: 36px;
	}

	.stat-value {
		font-size: 24px;
	}

	.return-value {
		font-size: 36px;
	}

	.return-example p {
		font-size: 14px;
	}

	.return-example strong {
		font-size: 16px;
	}

	.chart-container {
		height: 300px;
	}

	.projection-list li {
		flex-direction: column;
		gap: 5px;
	}

	.block_item .transactions .item .row2 {
		flex-direction: column;
		gap: 8px;
	}
}

/* ========================================
   PARTNER PAGE STYLES
   ======================================== */

/* Promo Pages Grid */
.promo-pages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

.promo-page-card {
	padding: 24px;
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	transition: all 0.3s ease;
}

.promo-page-card:hover {
	border-color: #3b82f6;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
	transform: translateY(-2px);
}

.promo-page-icon {
	font-size: 48px;
	text-align: center;
	margin-bottom: 16px;
}

.promo-page-card h4 {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 600;
	color: #111827;
}

.promo-page-card p {
	color: #6b7280;
	font-size: 14px;
	margin: 0 0 16px 0;
	line-height: 1.5;
}

.promo-page-actions {
	display: flex;
	gap: 8px;
}

.promo-page-actions .balance-btn--primary {
	flex: 1;
	justify-content: center;
}

/* Conditions Grid */
.conditions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.condition-item {
	text-align: center;
	padding: 24px;
	background: #f8f9fa;
	border-radius: 12px;
	border: 2px solid #e5e7eb;
	transition: all 0.3s ease;
}

.condition-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.condition-item.gradient {
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
	color: white;
	box-shadow: 0 4px 20px rgba(30, 64, 175, 0.2);
	border: none;
	position: relative;
	overflow: hidden;
}

.condition-item.gradient::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

.condition-icon {
	font-size: 40px;
	margin-bottom: 12px;
}

.condition-title {
	font-weight: 600;
	margin-bottom: 8px;
	font-size: 16px;
	color: #111827;
}

.condition-item.gradient .condition-title {
	color: white;
}

.condition-amount {
	font-size: 28px;
	font-weight: 700;
	color: #3b82f6;
	margin-bottom: 8px;
	position: relative;
	z-index: 1;
}

.condition-amount.success {
	color: #10b981;
}

.condition-item.gradient .condition-amount {
	color: white;
}

.condition-description {
	color: #6b7280;
	font-size: 14px;
	line-height: 1.5;
}

.condition-item.gradient .condition-description {
	color: rgba(255, 255, 255, 0.95);
}

/* Referral Link Section */
#referral-link-section .input {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
}

#referral-link-section input[type="text"] {
	flex: 1;
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 15px;
	background: #f9fafb;
	transition: border-color 0.2s ease;
}

#referral-link-section input[type="text"]:focus {
	outline: none;
	border-color: #667eea;
	background: #fff;
}

#referral-link-section .balance-btn {
	padding: 12px 24px;
	white-space: nowrap;
}

/* Tables */
.referrals-table-container,
.pending-referrals-table-container,
.bonus-history-container {
	overflow-x: auto;
	margin-top: 15px;
}

.referrals-table,
.pending-referrals-table,
.bonus-history-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.referrals-table thead tr,
.bonus-history-table thead tr {
	background: #f9fafb;
	border-bottom: 2px solid #e5e7eb;
}

.pending-referrals-table thead tr {
	background: #fffbeb;
	border-bottom: 2px solid #fde68a;
}

.referrals-table th,
.pending-referrals-table th,
.bonus-history-table th {
	padding: 14px 16px;
	text-align: left;
	font-weight: 600;
	font-size: 14px;
}

.referrals-table th,
.bonus-history-table th {
	color: #374151;
}

.pending-referrals-table th {
	color: #92400e;
}

.referrals-table td,
.pending-referrals-table td,
.bonus-history-table td {
	padding: 14px 16px;
}

.referrals-table tbody tr,
.bonus-history-table tbody tr {
	border-bottom: 1px solid #f3f4f6;
}

.pending-referrals-table tbody tr {
	border-bottom: 1px solid #fef3c7;
}

.referrals-table tbody tr:hover,
.pending-referrals-table tbody tr:hover,
.bonus-history-table tbody tr:hover {
	background: #f9fafb;
}

/* Referral Message Button */
.referral-message-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.referral-message-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
	color: #fff;
}

.referral-message-btn svg {
	flex-shrink: 0;
}

/* Желтоватый стиль для pending рефералов */
.referral-message-btn--pending {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.referral-message-btn--pending:hover {
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
	color: #fff;
}

/* Status Badge */
.status-badge {
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fde68a;
	display: inline-block;
}

/* Bonus Type Badge */
.bonus-type {
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	background: #dbeafe;
	color: #1e40af;
	white-space: nowrap;
	display: inline-block;
}

/* Empty State */
.empty-state-partner {
	text-align: center;
	padding: 60px 20px;
	background: #f9fafb;
	border-radius: 12px;
	border: 2px dashed #e5e7eb;
}

.empty-state-partner-icon {
	font-size: 64px;
	margin-bottom: 16px;
}

.empty-state-partner p {
	margin: 0;
}

.empty-state-partner p:first-of-type {
	color: #6b7280;
	font-size: 16px;
	margin-bottom: 8px;
}

.empty-state-partner p:last-of-type {
	color: #9ca3af;
	font-size: 14px;
}

/* Info Box */
.info-box {
	margin-top: 16px;
	padding: 16px;
	background: #fffbeb;
	border-radius: 8px;
	border-left: 4px solid #f59e0b;
}

.info-box p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
}

/* Pagination */
.bonus-pagination {
	margin-top: 24px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.pagination-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	padding: 8px 12px;
	background: #f9fafb;
	color: #374151;
	text-decoration: none;
	border-radius: 8px;
	border: 2px solid #e5e7eb;
	font-weight: 500;
	font-size: 14px;
	transition: all 0.2s ease;
}

.pagination-link:hover {
	background: #f3f4f6;
	border-color: #d1d5db;
}

.pagination-link.current {
	background: #10b981;
	color: white;
	border-color: #10b981;
	font-weight: 600;
}

.pagination-link.nav {
	background: #667eea;
	color: white;
	border-color: #667eea;
	gap: 4px;
	padding: 8px 14px;
}

.pagination-link.nav:hover {
	background: #5568d3;
	border-color: #5568d3;
}

.pagination-info {
	margin-top: 16px;
	text-align: center;
	color: #6b7280;
	font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.promo-pages-grid {
		grid-template-columns: 1fr;
	}

	.conditions-grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}

@media (max-width: 768px) {
	.balances-modern {
		grid-template-columns: 1fr;
	}

	.promo-pages-grid {
		grid-template-columns: 1fr;
	}

	.conditions-grid {
		grid-template-columns: 1fr;
	}

	.condition-item {
		padding: 20px;
	}

	.condition-icon {
		font-size: 36px;
	}

	.condition-amount {
		font-size: 24px;
	}

	#referral-link-section .input {
		flex-direction: column;
	}

	#referral-link-section .balance-btn {
		width: 100%;
		justify-content: center;
	}

	.promo-page-actions {
		flex-direction: column;
	}

	.promo-page-actions .balance-btn {
		width: 100%;
		justify-content: center;
	}

	/* Tables on mobile */
	.referrals-table,
	.pending-referrals-table,
	.bonus-history-table {
		font-size: 13px;
	}

	.referrals-table th,
	.pending-referrals-table th,
	.bonus-history-table th,
	.referrals-table td,
	.pending-referrals-table td,
	.bonus-history-table td {
		padding: 10px 8px;
	}

	.bonus-pagination {
		gap: 4px;
	}

	.pagination-link {
		min-width: 36px;
		padding: 6px 10px;
		font-size: 13px;
	}

	.pagination-link.nav {
		padding: 6px 12px;
	}
}

@media (max-width: 480px) {
	.promo-page-card {
		padding: 20px;
	}

	.promo-page-icon {
		font-size: 40px;
	}

	.promo-page-card h4 {
		font-size: 16px;
	}

	.condition-item {
		padding: 16px;
	}

	.condition-icon {
		font-size: 32px;
		margin-bottom: 8px;
	}

	.condition-title {
		font-size: 14px;
	}

	.condition-amount {
		font-size: 20px;
	}

	.condition-description {
		font-size: 13px;
	}

	/* Hide some table columns on very small screens */
	.referrals-table th:nth-child(2),
	.referrals-table td:nth-child(2),
	.referrals-table th:nth-child(3),
	.referrals-table td:nth-child(3),
	.pending-referrals-table th:nth-child(2),
	.pending-referrals-table td:nth-child(2),
	.pending-referrals-table th:nth-child(3),
	.pending-referrals-table td:nth-child(3),
	.bonus-history-table th:nth-child(4),
	.bonus-history-table td:nth-child(4) {
		display: none;
	}
	
	/* Упрощаем кнопку на мобильных */
	.referral-message-btn {
		padding: 6px 10px;
		font-size: 12px;
		gap: 4px;
	}
	
	.referral-message-btn svg {
		width: 14px;
		height: 14px;
	}

	.empty-state-partner {
		padding: 40px 16px;
	}

	.empty-state-partner-icon {
		font-size: 48px;
	}
}

/* ========================================
   PARTNER PROGRAM - PURCHASE REFERRALS
   ======================================== */

/* Purchase Referrals Banner */
.purchase-referrals-banner {
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
	position: relative;
	overflow: hidden;
}

.purchase-referrals-banner::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

.purchase-banner-content {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
}

.purchase-banner-icon {
	font-size: 48px;
	line-height: 1;
}

.purchase-banner-text {
	flex: 1;
	min-width: 250px;
}

.purchase-banner-text h3 {
	margin: 0 0 8px 0;
	color: white;
	font-size: 22px;
	font-weight: 700;
}

.purchase-banner-text p {
	margin: 0;
	color: rgba(255, 255, 255, 0.95);
	font-size: 14px;
	line-height: 1.5;
}

.purchase-banner-stats {
	display: flex;
	gap: 20px;
}

.stat-item {
	text-align: center;
	padding: 12px 20px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	backdrop-filter: blur(10px);
}

.stat-value {
	display: block;
	font-size: 28px;
	font-weight: 700;
	color: white;
	line-height: 1;
	margin-bottom: 4px;
}

.stat-label {
	display: block;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 500;
}

.purchase-banner-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	background: white;
	color: #1e40af;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
	transition: all 0.3s;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.purchase-banner-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
	color: #113dd0;
}

/* Referral Type Badges */
.referral-type-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.referral-type-badge--purchased {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fbbf24;
}

.referral-type-badge--organic {
	background: #dbeafe;
	color: #1e40af;
	border: 1px solid #60a5fa;
}

/* ========================================
   BUY REFERRALS PAGE STYLES
   ======================================== */

/* Page Header */
.page-header-modern {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 30px;
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
	border-radius: 16px;
	color: white;
}

.page-header-icon {
	font-size: 48px;
	line-height: 1;
}

.page-header-content h1 {
	margin: 0 0 8px 0;
	font-size: 28px;
	font-weight: 700;
}

.page-header-content p {
	margin: 0;
	opacity: 0.95;
	font-size: 16px;
}

/* How It Works Section */
.how-it-works-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.how-it-works-step {
	position: relative;
	padding: 24px;
	background: #f9fafb;
	border-radius: 12px;
	border: 2px solid #e5e7eb;
}

.step-number {
	position: absolute;
	top: -12px;
	left: 20px;
	width: 32px;
	height: 32px;
	background: #667eea;
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
}

.step-icon {
	font-size: 36px;
	margin-bottom: 12px;
}

.how-it-works-step h4 {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
}

.how-it-works-step p {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.6;
}

/* Stats Cards */
.stats-cards-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.stats-card {
	padding: 24px;
	background: white;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	text-align: center;
	transition: transform 0.2s ease;
}

.stat-card--success {
	border-color: #10b981;
	background: #f0fdf4;
}

.stat-card--primary {
	border-color: #667eea;
	background: #eef2ff;
}

.stat-card-icon {
	font-size: 32px;
	margin-bottom: 12px;
}

.stat-card-value {
	font-size: 36px;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 8px;
}

.stat-card-label {
	font-size: 14px;
	color: #6b7280;
}

/* Purchase Form */
.purchase-form-container {
	margin-top: 20px;
}

.balance-info-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
	border-radius: 12px;
	color: white;
	margin-bottom: 24px;
}

.balance-info-label {
	font-size: 16px;
	font-weight: 500;
}

.balance-info-value {
	font-size: 28px;
	font-weight: 700;
}

.purchase-calculator {
	padding: 30px;
	background: #f9fafb;
	border-radius: 12px;
	border: 2px solid #e5e7eb;
}

.calculator-input-group {
	margin-bottom: 20px;
}

.calculator-input-group label {
	display: block;
	margin-bottom: 12px;
	font-weight: 600;
	color: #1f2937;
	font-size: 16px;
}

.quantity-controls {
	display: flex;
	align-items: center;
	gap: 12px;
}

.qty-btn {
	width: 48px;
	height: 48px;
	border: 2px solid #667eea;
	background: white;
	color: #667eea;
	border-radius: 8px;
	font-size: 24px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
}

.qty-btn:hover {
	background: #667eea;
	color: white;
}

#referral-quantity {
	flex: 1;
	height: 48px;
	padding: 0 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 600;
	text-align: center;
}

.calculator-quick-buttons {
	display: flex;
	gap: 10px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.quick-qty-btn {
	padding: 10px 20px;
	border: 2px solid #e5e7eb;
	background: white;
	color: #1f2937;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.quick-qty-btn:hover {
	border-color: #667eea;
	color: #667eea;
	background: #eef2ff;
}

.calculator-summary {
	padding: 20px;
	background: white;
	border-radius: 8px;
	margin-bottom: 24px;
}

.summary-row {
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid #e5e7eb;
	font-size: 16px;
}

.summary-row:last-child {
	border-bottom: none;
}

.summary-row--total {
	font-size: 20px;
	font-weight: 700;
	color: #1f2937;
	padding-top: 16px;
	margin-top: 8px;
	border-top: 2px solid #e5e7eb;
}

.summary-value {
	font-weight: 600;
	color: #667eea;
}

.purchase-submit-btn {
	width: 100%;
	padding: 16px 24px;
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	transition: all 0.3s;
}

.purchase-submit-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.purchase-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Benefits Section */
.benefits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.benefit-item {
	padding: 24px;
	background: white;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	text-align: center;
}

.benefit-icon {
	font-size: 40px;
	margin-bottom: 12px;
}

.benefit-item h4 {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
}

.benefit-item p {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.6;
}

/* Back Link */
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: white;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	color: #1f2937;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.2s;
}

.back-link:hover {
	border-color: #667eea;
	color: #667eea;
	background: #eef2ff;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
	/* Purchase Banner */
	.purchase-banner-content {
		flex-direction: column;
		text-align: center;
	}
	
	.purchase-banner-stats {
		width: 100%;
		justify-content: center;
	}
	
	.purchase-banner-btn {
		width: 100%;
		justify-content: center;
	}
	
	/* Page Header */
	.page-header-modern {
		flex-direction: column;
		text-align: center;
	}
	
	/* Grids */
	.how-it-works-grid,
	.stats-cards-row,
	.benefits-grid {
		grid-template-columns: 1fr;
	}
	
	/* Calculator */
	.calculator-quick-buttons {
		justify-content: center;
	}
}

/* ========================================
   CONFIRM MODAL
   ======================================== */

.confirm-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.confirm-modal.active {
	opacity: 1;
	visibility: visible;
}

.confirm-modal.active .confirm-modal-content {
	transform: scale(1);
}

.confirm-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
}

.confirm-modal-content {
	position: relative;
	background: white;
	border-radius: 16px;
	padding: 32px;
	max-width: 480px;
	width: 90%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	transform: scale(0.9);
	transition: transform 0.3s ease;
	text-align: center;
}

.confirm-modal-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 50%;
	margin: 0 auto 20px;
	color: white;
}

.confirm-modal-title {
	margin: 0 0 16px 0;
	font-size: 24px;
	font-weight: 700;
	color: #1f2937;
}

.confirm-modal-message {
	margin: 0 0 32px 0;
	font-size: 16px;
	color: #6b7280;
	line-height: 1.6;
}

.confirm-modal-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
}

.confirm-modal-btn {
	padding: 14px 32px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	border: none;
	min-width: 140px;
}

.confirm-modal-btn--cancel {
	background: #f3f4f6;
	color: #6b7280;
}

.confirm-modal-btn--cancel:hover {
	background: #e5e7eb;
	color: #374151;
}

.confirm-modal-btn--confirm {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

.confirm-modal-btn--confirm:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
	.confirm-modal-content {
		padding: 24px;
		width: 95%;
	}
	
	.confirm-modal-icon {
		width: 64px;
		height: 64px;
	}
	
	.confirm-modal-icon svg {
		width: 32px;
		height: 32px;
	}
	
	.confirm-modal-title {
		font-size: 20px;
	}
	
	.confirm-modal-message {
		font-size: 14px;
	}
	
	.confirm-modal-actions {
		flex-direction: column;
	}
	
	.confirm-modal-btn {
		width: 100%;
	}
}

.stats-card--warning {
	background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
	border-left: 4px solid #f59e0b;
}

.stat-card-hint {
	font-size: 12px;
	color: #666;
	margin-top: 4px;
	font-weight: normal;
}

.queue-info-banner {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
	border: 2px solid #0ea5e9;
	border-radius: 12px;
	padding: 20px;
	margin-top: 20px;
}

.queue-info-icon {
	font-size: 32px;
	line-height: 1;
	flex-shrink: 0;
}

.queue-info-content {
	flex: 1;
}

.queue-info-content strong {
	color: #0369a1;
	font-size: 16px;
}

.queue-info-content p {
	margin: 8px 0 0 0;
	color: #475569;
	line-height: 1.6;
}

@media (max-width: 768px) {
	.queue-info-banner {
		flex-direction: column;
		text-align: center;
	}
	
	.queue-info-icon {
		font-size: 48px;
	}
}

/* ============================================
   NOTIFICATION ANIMATIONS
   ============================================ */
@keyframes slideIn {
	from {
		transform: translateX(400px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes slideOut {
	from {
		transform: translateX(0);
		opacity: 1;
	}
	to {
		transform: translateX(400px);
		opacity: 0;
	}
}

/* ============================================
   REFERRER INFO CARD
   ============================================ */
.referrer-info-card {
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
	position: relative;
	overflow: hidden;
}

.referrer-info-card::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

.referrer-info-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	position: relative;
	z-index: 1;
}

.referrer-info-header h3 {
	margin: 0;
	color: white;
	font-size: 18px;
	font-weight: 600;
}

.referrer-info-icon {
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.referrer-info-content {
	display: flex;
	align-items: center;
	gap: 20px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border-radius: 12px;
	padding: 20px;
	position: relative;
	z-index: 1;
}

.referrer-avatar {
	flex-shrink: 0;
}

.referrer-avatar img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.3);
	object-fit: cover;
}

.referrer-details {
	flex: 1;
}

.referrer-details h4 {
	margin: 0 0 8px 0;
	color: white;
	font-size: 20px;
	font-weight: 600;
}

.referrer-date {
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
}

.referrer-actions {
	flex-shrink: 0;
}

.referrer-message-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: white;
	color: #667eea;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.referrer-message-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	color: #764ba2;
}

.referrer-message-btn svg {
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.referrer-info-card {
		padding: 20px;
	}
	
	.referrer-info-content {
		flex-direction: column;
		text-align: center;
		gap: 16px;
	}
	
	.referrer-avatar img {
		width: 64px;
		height: 64px;
	}
	
	.referrer-details h4 {
		font-size: 18px;
	}
	
	.referrer-message-btn {
		width: 100%;
		justify-content: center;
	}
}



.complaint-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #fff;
	border: 1px solid #dc3545;
	color: #dc3545;
	border-radius: 6px;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s;
}

.complaint-btn:hover:not(:disabled) {
	background: #dc3545;
	color: #fff;
}

.complaint-btn.complaint-pending {
	background: #f8f9fa;
	border-color: #6c757d;
	color: #6c757d;
	cursor: not-allowed;
	opacity: 0.7;
}

.complaint-modal {
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
}

.complaint-modal-content {
	background-color: #fff;
	padding: 25px;
	border-radius: 8px;
	max-width: 500px;
	width: 90%;
	position: relative;
	box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.complaint-modal-close {
	position: absolute;
	right: 15px;
	top: 15px;
	font-size: 28px;
	font-weight: bold;
	color: #aaa;
	cursor: pointer;
	line-height: 1;
}

.complaint-modal-close:hover {
	color: #000;
}

.complaint-modal-content h3 {
	margin: 0 0 15px 0;
	font-size: 20px;
	color: #333;
}

.complaint-modal-content p {
	margin: 0 0 10px 0;
	color: #666;
	font-size: 14px;
}

.complaint-modal-content textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
	margin-bottom: 15px;
}

.complaint-modal-content textarea:focus {
	outline: none;
	border-color: #007bff;
}

.complaint-modal-buttons {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.complaint-modal-buttons button {
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
}


.btn_gray {
	background: #6c757d;
	color: #fff;
}

.btn_gray:hover {
	background: #5a6268;
}

.complaint-message {
	margin-top: 15px;
	padding: 10px;
	border-radius: 6px;
	font-size: 14px;
}

.complaint-message.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.complaint-message.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
	.complaint-modal-content {
		padding: 20px;
		max-width: 95%;
	}
	
	.complaint-modal-buttons {
		flex-direction: column;
	}
	
	.complaint-modal-buttons button {
		width: 100%;
	}
	
	.complaint-btn {
		font-size: 12px;
		padding: 6px 10px;
	}
}


.block_item.return_leads .field {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.block_item.return_leads label {
	font-weight: 600;
	color: #333;
	font-size: 16px;
}

.block_item.return_leads .input {
	display: flex;
	align-items: center;
	gap: 10px;
}

.block_item.return_leads input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	font-size: 14px;
}


.block_item.return_leads .description {
	margin-top: 10px;
	font-size: 13px;
	color: #666;
}

@media (max-width: 768px) {
	.block_item.return_leads {
		padding: 15px;
	}
	
	.block_item.return_leads .input {
		flex-direction: column;
		align-items: stretch;
	}
	
	.block_item.return_leads input {
		width: 100%;
	}
}

/* FAQ Styles */
.block_item.faq-block .faq_item {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid rgba(46, 95, 218, 0.1019607843);
}

.block_item.faq-block .faq_item:first-child {
  border-top: none;
  padding-top: 0;
}

.block_item.faq-block .faq_item .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.block_item.faq-block .faq_item .field label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.block_item.faq-block .faq_item .field input[type="text"],
.block_item.faq-block .faq_item .field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(46, 95, 218, 0.2);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  font-family: inherit;
  resize: vertical;
}

.block_item.faq-block .faq_item .field textarea {
  min-height: 80px;
}

.block_item.faq-block .faq_item .row3 {
  display: flex;
  justify-content: flex-end;
}

.block_item.faq-block .faq_item .row3 .delete-faq {
  position: relative;
  font-weight: 500;
  line-height: 1.2;
  color: #2e5fda;
  cursor: pointer;
  text-decoration: none;
}

.block_item.faq-block .faq_item .row3 .delete-faq::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  bottom: 1px;
  left: 0;
  background-color: #2e5fda;
}

.block_item .add_faq {
  color: #2e5fda;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  border-top: 1px solid rgba(46, 95, 218, 0.5);
  border-bottom: 1px solid rgba(46, 95, 218, 0.5);
  padding: 20px 0;
  cursor: pointer;
  margin-top: 24px;
}

.block_item .delete_all_faq {
  margin: 12px auto 0;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  line-height: 1.2;
  color: #2e5fda;
  text-decoration: none;
  text-align: center;
  display: none;
}

.block_item .delete_all_faq::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  bottom: 1px;
  left: 0;
  background-color: #2e5fda;
}

@media (min-width: 860px) {
  .block_item .add_faq {
    width: 100%;
  }
}

/* Geo Coordinates Styles */
.geo-coordinates-block {
  margin-bottom: 16px;
}

.geo-hint {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #f9fafb;
  border-radius: 6px;
  border-left: 3px solid #667eea;
}

.btn-get-coordinates {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  width: 100%;
  justify-content: center;
}

.btn-get-coordinates:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-get-coordinates:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-get-coordinates svg {
  flex-shrink: 0;
}

.geo-status {
  margin-top: 12px;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
  line-height: 1.5;
}

.geo-status.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.geo-status.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.geo-status.loading {
  display: block;
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.geo-status strong {
  font-weight: 600;
}

.geo-status small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

@media (max-width: 768px) {
  .btn-get-coordinates {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .geo-hint {
    font-size: 12px;
  }
}
/* Дополнительные стили для X2 баннера */
.x2-bonus-banner--limited {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
    to { box-shadow: 0 0 30px rgba(102, 126, 234, 0.6); }
}

.x2-bonus-banner--limited::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.x2-bonus-banner--used {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.x2-bonus-banner--expired {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.x2-limited-info {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.x2-limited-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.x2-limited-label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.x2-limited-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.x2-limited-progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.x2-limited-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.x2-limited-warning {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #fef3c7;
    text-align: center;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.x2-limited-value.updating {
    animation: countUpdate 0.5s ease;
}

@keyframes countUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #fbbf24; }
    100% { transform: scale(1); }
}

/* Стили для предупреждения о временном бонусе */
.x2-temporary-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
    position: relative;
    z-index: 2;
}

.x2-temporary-warning svg {
    flex-shrink: 0;
}

.x2-temporary-warning span {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

/* Стили для информации о временном бонусе в карточке баланса */
.temporary-bonus-info {
    border-top: 1px solid #e5e7eb;
}

.temporary-bonus-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.temporary-bonus-alert svg {
    flex-shrink: 0;
}

.temporary-bonus-text {
    display: flex;
    gap: 14px;
}

.temporary-bonus-text strong {
    font-size: 14px;
    font-weight: 700;
}

.temporary-bonus-expires {
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .x2-limited-info {
        padding: 12px;
    }
    
    .x2-limited-label {
        font-size: 13px;
    }
    
    .x2-limited-value {
        font-size: 16px;
        padding: 3px 10px;
    }
    
    .x2-limited-warning {
        font-size: 12px;
    }
    
    .x2-temporary-warning {
        padding: 10px;
    }
    
    .x2-temporary-warning span {
        font-size: 12px;
    }
    
    .temporary-bonus-alert {
        padding: 10px;
    }
    
    .temporary-bonus-text strong {
        font-size: 13px;
    }
    
    .temporary-bonus-expires {
        font-size: 12px;
    }
}
.lk-news-wrap { padding: 4px 0; }

.lk-news-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.lk-news-title {
    font-size: 20px; font-weight: 700; color: #111827;
    display: flex; align-items: center; gap: 10px;
}
.lk-news-badge {
    background: #ef4444; color: #fff;
    font-size: 12px; font-weight: 700;
    padding: 2px 8px; border-radius: 50px;
    min-width: 22px; text-align: center;
}
.lk-news-read-all {
    padding: 8px 18px; border-radius: 8px;
    background: #f3f4f6; border: 1.5px solid #e5e7eb;
    font-size: 13px; font-weight: 600; color: #374151;
    cursor: pointer; transition: all .2s;
}
.lk-news-read-all:hover { background: #e5e7eb; }

.lk-news-filters {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.lk-news-filter {
    padding: 6px 14px; border-radius: 20px;
    border: 1.5px solid #e5e7eb; background: #fff;
    font-size: 13px; font-weight: 600; color: #6b7280;
    cursor: pointer; transition: all .2s;
    display: inline-flex; align-items: center; gap: 6px;
}
.lk-news-filter.active { border-color: #667eea; color: #667eea; background: #f5f3ff; }
.lk-filter-count {
    background: #ef4444; color: #fff;
    font-size: 11px; padding: 1px 6px; border-radius: 50px;
}

.lk-news-list { display: flex; flex-direction: column; gap: 12px; }

.lk-news-item {
    display: flex; gap: 14px; align-items: center;
    background: #fff; border-radius: 12px;
    padding: 16px; border: 1.5px solid #e5e7eb;
    transition: box-shadow .2s, border-color .2s;
    position: relative; cursor: pointer;
}
.lk-news-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.lk-news-item.is-unread { border-color: #c7d2fe; background: #fafbff; }
.lk-news-item.is-promo.is-unread { border-color: #fde68a; background: #fffdf5; }

.lk-news-dot {
    position: absolute; top: 14px; right: 14px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #667eea; flex-shrink: 0;
}
.lk-news-item.is-promo .lk-news-dot { background: #f59e0b; }

.lk-news-img {
    width: 150px; height: 100px; border-radius: 8px;
    overflow: hidden; flex-shrink: 0;
}
.lk-news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lk-news-body { flex: 1; min-width: 0; }
.lk-news-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.lk-news-tag {
    font-size: 11px; font-weight: 700; padding: 2px 8px;
    border-radius: 50px; letter-spacing: .3px;
}
.tag-news  { background: #dbeafe; color: #1d4ed8; }
.tag-promo { background: #fef3c7; color: #92400e; }
.lk-news-date { font-size: 12px; color: #9ca3af; }

.lk-news-item-title {
    display: block; font-size: 15px; font-weight: 600;
    color: #111827; text-decoration: none; margin-bottom: 6px;
    line-height: 1.4;
}
.lk-news-item-title:hover { color: #667eea; }
.lk-news-item.is-read .lk-news-item-title { color: #6b7280; font-weight: 500; }

.lk-news-excerpt {
    font-size: 13px; color: #6b7280; line-height: 1.5; margin: 0 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lk-news-link {
    font-size: 13px; font-weight: 600; color: #667eea; text-decoration: none;
}
.lk-news-link:hover { text-decoration: underline; }

.lk-news-empty { text-align: center; padding: 48px 20px; color: #9ca3af; font-size: 15px; }

/* Скрытые при фильтрации */
.lk-news-item.hidden { display: none; }

@media (max-width: 480px) {
    .lk-news-img { display: none; }
    .lk-news-item { padding: 14px; }
}

/* ========================================
   X2 PLANS — три тарифа (деловой стиль)
   ======================================== */

.x2-bonus-section {
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
	border-radius: 16px;
	padding: 28px;
	color: #fff;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
}

.x2-bonus-section::before {
	content: '';
	position: absolute;
	top: -40px;
	right: -40px;
	width: 180px;
	height: 180px;
	background: rgba(255,255,255,.06);
	border-radius: 50%;
	pointer-events: none;
}

.x2-bonus-section__header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.x2-bonus-section__icon {
	width: 64px;
	height: 64px;
	background: rgba(255,255,255,.15);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.x2-bonus-section__title {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
}

.x2-bonus-section__subtitle {
	margin: 0;
	font-size: 14px;
	opacity: .9;
}

/* Сетка тарифов */
.x2-plans {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.x2-plan {
	background: rgba(255,255,255,.12);
	border: 2px solid rgba(255,255,255,.2);
	border-radius: 12px;
	padding: 20px 16px;
	text-align: center;
	position: relative;
	transition: all .25s ease;
}

.x2-plan:hover {
	background: rgba(255,255,255,.18);
	border-color: rgba(255,255,255,.35);
	transform: translateY(-2px);
}

.x2-plan--popular {
	background: rgba(255,255,255,.22);
	border-color: rgba(255,255,255,.5);
	box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.x2-plan--popular:hover {
	background: rgba(255,255,255,.28);
	border-color: rgba(255,255,255,.65);
}

.x2-plan__badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: #fbbf24;
	color: #78350f;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: .5px;
	box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.x2-plan__period {
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 10px;
}

.x2-plan__price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 4px;
	margin-bottom: 14px;
}

.x2-plan__price-value {
	font-size: 28px;
	font-weight: 800;
	color: #fff;
}

.x2-plan__price-currency {
	font-size: 16px;
	font-weight: 600;
	color: rgba(255,255,255,.9);
}

.x2-plan__insufficient {
	font-size: 11px;
	color: rgba(255,255,255,.8);
	margin: 0 0 8px;
	font-weight: 500;
}

/* Кнопка активации внутри карточки */
.x2-plan .x2-activate-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 14px;
	background: #fff;
	color: #1e40af;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all .2s ease;
	box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.x2-plan .x2-activate-btn:hover:not(:disabled) {
	background: #f8fafc;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

.x2-plan .x2-activate-btn:active:not(:disabled) {
	transform: translateY(0);
}

.x2-plan .x2-activate-btn:disabled {
	opacity: .5;
	cursor: not-allowed;
	background: rgba(255,255,255,.7);
}

@media (max-width: 640px) {
	.x2-plans {
		grid-template-columns: 1fr;
	}

	.x2-bonus-section__header {
		flex-direction: column;
		text-align: center;
	}
	
	.x2-bonus-section {
		padding: 24px 20px;
	}
}
/* Lottery Page Styles */
.lottery-page {
    max-width: 1000px;
    margin: 0 auto;
}

.lottery-header .description {
    margin-top: 12px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* Night Break */
.lottery-night-break {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    color: #fff;
}

.lottery-night-break-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: lottery-moon-glow 3s infinite;
}

@keyframes lottery-moon-glow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.lottery-night-break-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.lottery-night-break-text {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
}

.lottery-night-break .lottery-timer {
    margin-bottom: 24px;
}

.lottery-night-break-prize {
    font-size: 16px;
    opacity: 0.9;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: inline-block;
}

.lottery-night-break-prize strong {
    color: #fbbf24;
    font-size: 20px;
    margin-left: 8px;
}

/* Prize Block */
.lottery-prize-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 16px;
    color: #fff;
}

.lottery-prize-amount, .lottery-timer {
    text-align: center;
}

.lottery-prize-label, .lottery-timer-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.lottery-prize-value {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.lottery-timer-value {
    font-size: 42px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    line-height: 1;
}

/* Multiplier badge */
.lottery-multiplier-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: lottery-pulse-badge 2s infinite;
}

@keyframes lottery-pulse-badge {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

/* Threshold progress */
.lottery-threshold-progress {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lottery-threshold-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 12px;
}

.lottery-threshold-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    flex: 1;
}

.lottery-threshold-target {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.lottery-threshold-bar-wrap {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    overflow: hidden;
}

.lottery-threshold-bar {
    height: 100%;
    background: #fff;
    border-radius: 99px;
    transition: width 0.6s ease;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.lottery-prize-amount {
    position: relative;
}

/* Stats */
.lottery-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lottery-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.3s;
}

.lottery-stat-card.stat-updated {
    background: linear-gradient(135deg, #d1fae5 0%, #fff 100%);
    animation: lottery-pulse 0.6s ease;
}

@keyframes lottery-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.lottery-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lottery-stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.lottery-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

/* Action Button */
.lottery-action {
    text-align: center;
}

.lottery-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.lottery-btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
}

.lottery-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.lottery-btn-success {
    background: #10b981;
    color: #fff;
    cursor: default;
}

.lottery-btn-disabled {
    background: #9ca3af;
    color: #fff;
    cursor: not-allowed;
}

.lottery-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Participants */
.lottery-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
    margin-left: 12px;
}

.lottery-live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: lottery-pulse-dot 1.5s infinite;
}

@keyframes lottery-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.lottery-participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.lottery-participant-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
}

.lottery-participant-card.participant-new {
    background: linear-gradient(135deg, #dbeafe 0%, #fff 100%);
    animation: lottery-slide-in 0.5s ease;
}

@keyframes lottery-slide-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lottery-participant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lottery-participant-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.lottery-participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lottery-participant-avatar .first_letter {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    background: none;
}

.lottery-participant-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-align: center;
    word-break: break-word;
}

.lottery-participant-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #667eea;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
}

/* Empty State */
.lottery-empty {
    text-align: center;
    padding: 48px 20px;
    color: #9ca3af;
}

.lottery-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.lottery-empty-text {
    font-size: 15px;
}

/* History */
.lottery-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lottery-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
}

.lottery-history-date {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.lottery-history-info {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .lottery-prize-block {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    
    .lottery-stats {
        grid-template-columns: 1fr;
    }
    
    .lottery-participants-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .lottery-history-item {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .lottery-history-info {
        flex-direction: column;
        gap: 8px;
    }
}
/* Статистика компании */
	.card_actions {
		display: flex;
		flex-direction: column;
		gap: 10px;
		margin-top: 10px;
	}

	.card_actions .button {
		flex: 1;
	}

	.stats_btn .button a {
		background: #28a745;
		color: white;
	}

	.stats_btn .button a:hover {
		background: #218838;
	}

	.card_status.draft {
		background: #6c757d;
		color: white;
	}

	/* Стили для лоадера */
	.cards_loader {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 60px 20px;
		min-height: 300px;
	}

	.loader_spinner {
		width: 50px;
		height: 50px;
		border: 4px solid #f3f3f3;
		border-top: 4px solid #007cba;
		border-radius: 50%;
		animation: spin 1s linear infinite;
	}

	@keyframes spin {
		0% { transform: rotate(0deg); }
		100% { transform: rotate(360deg); }
	}

	.loader_text {
		margin-top: 15px;
		color: #666;
		font-size: 14px;
		font-weight: 500;
	}

	.stats_modal {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.6);
		z-index: 10000;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 20px;
		box-sizing: border-box;
		backdrop-filter: blur(4px);
		-webkit-backdrop-filter: blur(4px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}

	.stats_modal.active {
		opacity: 1;
		visibility: visible;
	}

	.stats_modal_content {
		background: white;
		border-radius: 16px;
		max-width: 700px;
		width: 100%;
		max-height: 85vh;
		overflow-y: auto;
		box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
		position: relative;
		transform: scale(0.9);
		transition: transform 0.3s ease;
	}

	.stats_modal.active .stats_modal_content {
		transform: scale(1);
	}

	.pagination_block .prev {
		transform: none;
	}

	.stats_modal_header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 24px 28px;
		border-bottom: 2px solid #e5e7eb;
		background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
		border-radius: 16px 16px 0 0;
	}

	.stats_modal_header h3 {
		margin: 0;
		color: #111827;
		font-size: 22px;
		font-weight: 700;
		display: flex;
		align-items: center;
		gap: 10px;
	}

	.stats_modal_header h3::before {
		content: '📊';
		font-size: 24px;
	}

	.close_modal {
		width: 36px;
		height: 36px;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 24px;
		cursor: pointer;
		color: #6b7280;
		background: #f3f4f6;
		border-radius: 8px;
		transition: all 0.2s ease;
		border: 1px solid #e5e7eb;
	}

	.close_modal:hover {
		color: #111827;
		background: #e5e7eb;
		transform: rotate(90deg);
	}

	.stats_modal_body {
		padding: 28px;
	}

	.stats_filters_modal {
		margin-bottom: 24px;
		padding: 20px;
		background: #f9fafb;
		border-radius: 12px;
		border: 2px solid #e5e7eb;
	}

	.stats_filters_modal .filter_row {
		display: flex;
		gap: 12px;
		align-items: end;
	}

	.stats_filters_modal .filter_item {
		display: flex;
		flex-direction: column;
		flex: 1;
	}

	.stats_filters_modal .filter_item label {
		margin-bottom: 8px;
		font-weight: 600;
		color: #374151;
		font-size: 14px;
	}

	.stats_filters_modal .filter_item input {
		padding: 12px 16px;
		border: 2px solid #e5e7eb;
		border-radius: 8px;
		font-size: 14px;
		transition: all 0.2s ease;
		background: white;
	}

	.stats_filters_modal .filter_item input:focus {
		outline: none;
		border-color: #3b82f6;
		box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
	}

	.stats_filters_modal .filter_item button {
		padding: 12px 24px;
		background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
		color: white;
		border: none;
		border-radius: 8px;
		font-size: 14px;
		font-weight: 600;
		cursor: pointer;
		transition: all 0.3s ease;
		white-space: nowrap;
	}

	.stats_filters_modal .filter_item button:hover {
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
	}

	.modal_stats_grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
		gap: 16px;
		margin-bottom: 24px;
	}

	.modal_stat_item {
		text-align: center;
		padding: 20px 16px;
		background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
		border-radius: 12px;
		box-shadow: 0 4px 16px rgba(30, 64, 175, 0.15);
		transition: all 0.3s ease;
		position: relative;
		overflow: hidden;
		color: white;
	}

	.modal_stat_item::before {
		content: '';
		position: absolute;
		top: -50%;
		right: -50%;
		width: 200%;
		height: 200%;
		background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
		pointer-events: none;
	}

	.modal_stat_item:hover {
		transform: translateY(-4px);
		box-shadow: 0 8px 24px rgba(30, 64, 175, 0.25);
	}

	.modal_stat_number {
		font-size: 28px;
		font-weight: 700;
		color: white;
		margin-bottom: 8px;
		position: relative;
		z-index: 1;
	}

	.modal_stat_label {
		font-size: 12px;
		color: rgba(255, 255, 255, 0.9);
		text-transform: uppercase;
		letter-spacing: 0.5px;
		font-weight: 500;
		line-height: 1.4;
		position: relative;
		z-index: 1;
	}

	.loading,
	.no_data,
	.error {
		text-align: center;
		padding: 40px 20px;
		border-radius: 12px;
		font-size: 15px;
	}

	.loading {
		color: #6b7280;
		background: #f9fafb;
		border: 2px dashed #e5e7eb;
	}

	.no_data {
		color: #6b7280;
		background: #fffbeb;
		border: 2px solid #fde68a;
	}

	.error {
		color: #991b1b;
		background: #fee2e2;
		border: 2px solid #fecaca;
	}

	@media (max-width: 768px) {
		.stats_modal {
			padding: 10px;
			align-items: flex-start;
			padding-top: 20px;
		}

		.stats_modal_content {
			max-width: 100%;
			width: 100%;
			margin: 0;
			max-height: 92vh;
			border-radius: 12px;
		}

		.stats_modal_header {
			padding: 20px;
			flex-wrap: wrap;
		}

		.stats_modal_header h3 {
			font-size: 18px;
			margin-bottom: 0;
			width: calc(100% - 50px);
		}

		.close_modal {
			font-size: 20px;
			width: 32px;
			height: 32px;
		}

		.stats_modal_body {
			padding: 20px;
		}

		.stats_filters_modal {
			padding: 16px;
			margin-bottom: 20px;
		}

		.stats_filters_modal .filter_row {
			flex-direction: column;
			align-items: stretch;
			gap: 12px;
		}

		.stats_filters_modal .filter_item {
			width: 100%;
		}

		.stats_filters_modal .filter_item input,
		.stats_filters_modal .filter_item button {
			width: 100%;
			padding: 12px 16px;
			font-size: 15px;
		}

		.modal_stats_grid {
			grid-template-columns: repeat(2, 1fr);
			gap: 12px;
		}

		.modal_stat_item {
			padding: 16px 12px;
		}

		.modal_stat_number {
			font-size: 22px;
		}

		.modal_stat_label {
			font-size: 11px;
		}

		.boost_views_section {
			padding: 20px;
		}

		.boost_header h4 {
			font-size: 16px;
		}

		.boost_options {
			grid-template-columns: 1fr;
			gap: 10px;
		}

		.boost_custom {
			flex-direction: column;
			align-items: stretch;
			gap: 12px;
			padding: 16px;
		}

		.custom_input {
			width: 100%;
		}

		.custom_input input {
			width: 100%;
		}

		.custom_price {
			text-align: center;
			margin-left: 0;
		}

		.boost_button {
			padding: 14px 20px;
			font-size: 15px;
		}
	}

	@media (max-width: 480px) {
		.stats_modal {
			padding: 0;
			align-items: stretch;
		}

		.stats_modal_content {
			height: 100vh;
			max-height: 100vh;
			border-radius: 0;
			display: flex;
			flex-direction: column;
		}

		.stats_modal_header {
			flex-shrink: 0;
			padding: 20px 16px;
			position: relative;
			border-radius: 0;
		}

		.stats_modal_header h3 {
			font-size: 16px;
			width: calc(100% - 45px);
		}

		.stats_modal_header h3::before {
			font-size: 20px;
		}

		.close_modal {
			width: 30px;
			height: 30px;
			font-size: 18px;
		}

		.stats_modal_body {
			flex: 1;
			overflow-y: auto;
			padding: 16px;
			-webkit-overflow-scrolling: touch;
		}

		.stats_filters_modal {
			padding: 14px;
		}

		.modal_stats_grid {
			grid-template-columns: 1fr;
			gap: 10px;
		}

		.modal_stat_item {
			padding: 18px 16px;
			text-align: center;
		}

		.modal_stat_number {
			font-size: 26px;
			margin-bottom: 10px;
		}

		.modal_stat_label {
			font-size: 12px;
		}

		.loading,
		.no_data,
		.error {
			padding: 30px 16px;
			font-size: 14px;
		}

		.boost_views_section {
			padding: 16px;
		}

		.boost_header h4 {
			font-size: 15px;
		}

		.boost_header p {
			font-size: 13px;
		}

		.boost_option {
			padding: 14px;
		}

		.boost_views {
			font-size: 15px;
		}

		.boost_price {
			font-size: 18px;
		}

		.custom_price {
			font-size: 20px;
		}

		.balance_amount {
			font-size: 18px;
		}

		.boost_button {
			padding: 14px 20px;
			font-size: 14px;
		}
	}

	/* Дополнительные стили для Bootstrap пагинации */
	.pagination_block {
		margin: 15px 0;
	}
	
	.pagination_block .pagination {
		margin: 0;
		flex-wrap: wrap;
	}
	
	.pagination_block .page-link {
		min-width: 38px;
		text-align: center;
	}
	
	@media (max-width: 768px) {
		.pagination_block {
			margin: 10px 0;
		}
		
		.pagination_block .page-link {
			min-width: 32px;
			padding: 0.375rem 0.5rem;
			font-size: 0.875rem;
		}
	}
	
	@media (max-width: 480px) {
		.pagination_block {
			margin: 8px 0;
		}
		
		.pagination_block .page-link {
			min-width: 28px;
			padding: 0.25rem 0.4rem;
			font-size: 0.75rem;
		}
	}

	/* Стили для секции покупки просмотров */
	.boost_views_section {
		margin-top: 24px;
		padding: 24px;
		background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
		border-radius: 12px;
		border: 2px solid #e5e7eb;
	}

	.boost_header {
		margin-bottom: 20px;
	}

	.boost_header h4 {
		margin: 0 0 8px 0;
		color: #111827;
		font-size: 18px;
		font-weight: 700;
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.boost_header h4::before {
		content: '🚀';
		font-size: 20px;
	}

	.boost_header p {
		margin: 0;
		color: #6b7280;
		font-size: 14px;
		line-height: 1.6;
	}

	.boost_options {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
		margin-bottom: 20px;
	}

	.boost_option {
		padding: 16px;
		border: 2px solid #e5e7eb;
		border-radius: 12px;
		background: white;
		cursor: pointer;
		transition: all 0.3s ease;
		text-align: center;
		position: relative;
		overflow: hidden;
	}

	.boost_option::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
		opacity: 0;
		transition: opacity 0.3s ease;
	}

	.boost_option:hover {
		border-color: #3b82f6;
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
	}

	.boost_option:hover::before {
		opacity: 1;
	}

	.boost_option.selected {
		border-color: #3b82f6;
		background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
		box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
	}

	.boost_option.selected::before {
		opacity: 1;
	}

	.boost_views {
		font-weight: 700;
		color: #111827;
		font-size: 16px;
		margin-bottom: 6px;
		position: relative;
		z-index: 1;
	}

	.boost_price {
		font-weight: 700;
		color: #3b82f6;
		font-size: 20px;
		position: relative;
		z-index: 1;
	}

	.boost_custom {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 20px;
		padding: 16px;
		background: white;
		border-radius: 12px;
		border: 2px solid #e5e7eb;
	}

	.custom_input {
		display: flex;
		flex-direction: column;
		gap: 8px;
		flex: 1;
	}

	.custom_input label {
		font-size: 14px;
		color: #374151;
		font-weight: 600;
	}

	.custom_input input {
		padding: 12px 16px;
		border: 2px solid #e5e7eb;
		border-radius: 8px;
		font-size: 14px;
		transition: all 0.2s ease;
		background: white;
	}

	.custom_input input:focus {
		outline: none;
		border-color: #3b82f6;
		box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
	}

	.custom_price {
		font-weight: 700;
		color: #3b82f6;
		font-size: 24px;
		margin-left: 20px;
	}

	.boost_balance {
		margin-bottom: 20px;
		padding: 16px 20px;
		background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
		border-radius: 12px;
		border: 2px solid #10b981;
	}

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

	.balance_info span:first-child {
		color: #065f46;
		font-size: 15px;
		font-weight: 600;
	}

	.balance_amount {
		font-weight: 700;
		color: #059669;
		font-size: 20px;
	}

	.boost_actions {
		text-align: center;
	}

	.purchase_message {
		margin-top: 16px;
		padding: 14px 20px;
		border-radius: 10px;
		font-size: 14px;
		font-weight: 600;
		text-align: center;
		transition: all 0.3s ease;
		border: 2px solid transparent;
	}

	.purchase_message.success {
		background: #d1fae5;
		color: #065f46;
		border-color: #a7f3d0;
	}

	.purchase_message.error {
		background: #fee2e2;
		color: #991b1b;
		border-color: #fecaca;
	}

	.boost_button {
		width: 100%;
		padding: 16px 24px;
		background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
		color: white;
		border: none;
		border-radius: 12px;
		font-size: 16px;
		font-weight: 700;
		cursor: pointer;
		transition: all 0.3s ease;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
	}

	.boost_button:hover:not(:disabled) {
		transform: translateY(-2px);
		box-shadow: 0 8px 16px rgba(30, 64, 175, 0.3);
	}

	.boost_button:disabled {
		background: #9ca3af;
		cursor: not-allowed;
		opacity: 0.6;
	}

	.boost_button.insufficient_balance {
		background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
		line-height: 1.5;
	}

	.boost_button.insufficient_balance:hover {
		background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
		box-shadow: 0 8px 16px rgba(220, 38, 38, 0.3);
	}

	.boost_button.insufficient_balance a {
		color: white !important;
		text-decoration: underline !important;
		font-weight: 700;
	}

	.boost_button.insufficient_balance a:hover {
		text-decoration: none !important;
	}

	@media (max-width: 768px) {
		.boost_options {
			grid-template-columns: 1fr;
			gap: 8px;
		}

		.boost_custom {
			flex-direction: column;
			align-items: stretch;
			gap: 10px;
		}

		.custom_input input {
			width: 100%;
		}

		.boost_button {
			min-width: auto;
			width: 100%;
		}
	}

	/* ========================================
   ДВУХУРОВНЕВАЯ ПАРТНЁРСКАЯ ПРОГРАММА V2
   ======================================== */

/* Разбивка заработка по уровням */
.balance-card__breakdown {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.breakdown-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.breakdown-value {
    color: #fff;
    font-weight: 600;
}

/* Карточка успеха (рефералы 2-го уровня) */
.balance-card--success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
    animation: slideInUp 0.5s ease-out 0.2s both;
}

.balance-card--success:hover {
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.25);
}

.balance-card--success .balance-card__badge--success {
    background: rgba(255, 255, 255, 0.25);
}

/* Бейдж родительского реферера */
.referral-parent-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* Условия программы - уровень 2 */
.condition-item[style*="border-color: #10b981"] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-width: 2px;
}

.condition-item[style*="border-color: #10b981"]:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.15) 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Таблицы рефералов 2-го уровня */
#referrals-level-2-list .referrals-table {
    border: 2px solid #10b981;
}

#referrals-level-2-list .referrals-table thead {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

#referrals-level-2-list .referrals-table thead th {
    color: white;
}

#referrals-level-2-list .referrals-table tbody tr:hover {
    background: rgba(16, 185, 129, 0.05);
}

/* Информационный блок с градиентом */
.info-box[style*="linear-gradient"] {
    position: relative;
    overflow: hidden;
}

.info-box[style*="linear-gradient"]::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.info-box[style*="linear-gradient"] h4 {
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.info-box[style*="linear-gradient"] p {
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Заголовки уровней */
h4[style*="color: #667eea"],
h4[style*="color: #10b981"] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}


/* Анимации */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover эффекты для кнопок */
.balance-btn {
    position: relative;
    overflow: hidden;
}

.balance-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.balance-btn:hover::before {
    width: 300px;
    height: 300px;
}

.balance-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .balance-card__breakdown {
        font-size: 13px;
    }
    
    .breakdown-item {
        padding: 6px 0;
    }
    
    .referral-parent-badge {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    h4[style*="color: #667eea"],
    h4[style*="color: #10b981"] {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .balance-card__breakdown {
        font-size: 12px;
        padding-top: 12px;
        margin-top: 12px;
    }
    
    .breakdown-item {
        padding: 5px 0;
    }
    
    .breakdown-label,
    .breakdown-value {
        font-size: 12px;
    }
    
    .referral-parent-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}
.advertising-page .campaign-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 16px;
	transition: all 0.2s;
}

.advertising-page .campaign-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.advertising-page .campaign-status {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 600;
}

.advertising-page .campaign-status.pending {
	background: #fef3c7;
	color: #92400e;
}

.advertising-page .campaign-status.active {
	background: #d1fae5;
	color: #065f46;
}

.advertising-page .campaign-status.paused {
	background: #e0e7ff;
	color: #3730a3;
}

.advertising-page .campaign-status.completed {
	background: #f3f4f6;
	color: #374151;
}

.advertising-page .campaign-status.rejected {
	background: #fee2e2;
	color: #991b1b;
}

.advertising-page .campaign-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 16px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e5e7eb;
}

.advertising-page .campaign-stat {
	text-align: center;
}

.advertising-page .campaign-stat-value {
	font-size: 24px;
	font-weight: 700;
	color: #1f2937;
}

.advertising-page .campaign-stat-label {
	font-size: 13px;
	color: #6b7280;
	margin-top: 4px;
}

.advertising-page .message {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
}

.advertising-page .message.success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #86efac;
}

.advertising-page .message.error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}