/**
 * Baijia Referral Account Pages Styles
 * Colors: #8f7a68 (primary), white, minimal design, no border-radius
 */

/* Base Section Styles */
.baijia-account-section {
	padding: 0;
	background: #fff;
}

.baijia-account-section h2 {
	font-size: 24px;
	font-weight: 600;
	color: #333;
	margin: 0 0 8px 0;
	padding: 0;
	border: none;
}

.baijia-account-section h3 {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 30px 0 15px 0;
}

.baijia-account-section .section-desc {
	color: #666;
	font-size: 14px;
	margin: 0 0 30px 0;
}

/* ========== Referral Center ========== */
.referral-stats {
	display: flex;
	gap: 20px;
	margin-bottom: 30px;
}

.referral-stats .stat-item {
	flex: 1;
	background: #f9f7f5;
	padding: 20px;
	text-align: center;
	border: 1px solid #e5e0db;
	border-radius: 0;
}

.referral-stats .stat-number {
	display: block;
	font-size: 32px;
	font-weight: 700;
	color: #8f7a68;
	line-height: 1.2;
}

.referral-stats .stat-label {
	display: block;
	font-size: 13px;
	color: #666;
	margin-top: 5px;
}

.referral-link-box,
.referral-code-box {
	margin-bottom: 25px;
}

.referral-link-box label,
.referral-code-box label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 10px;
}

.link-input-wrapper {
	display: flex;
	gap: 0;
}

.link-input-wrapper input {
	flex: 1;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-right: none;
	border-radius: 0;
	font-size: 14px;
	background: #f9f9f9;
	color: #333;
}

.link-input-wrapper input:focus {
	outline: none;
	border-color: #8f7a68;
}

.copy-btn {
	padding: 12px 25px;
	background: #8f7a68;
	color: #fff;
	border: 1px solid #8f7a68;
	border-radius: 0;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
}

.copy-btn:hover {
	background: #7a6858;
	border-color: #7a6858;
}

.link-note {
	font-size: 13px;
	color: #888;
	margin-top: 8px;
}

.code-display {
	display: inline-flex;
	align-items: center;
	gap: 0;
	background: #f9f7f5;
	border: 1px solid #e5e0db;
}

.code-display #referral-code {
	padding: 12px 20px;
	font-size: 18px;
	font-weight: 600;
	color: #8f7a68;
	letter-spacing: 2px;
}

.code-display .copy-btn {
	border-left: 1px solid #e5e0db;
}

.share-buttons {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 30px;
	padding-top: 25px;
	border-top: 1px solid #eee;
}

.share-label {
	font-size: 14px;
	color: #666;
}

.share-btn {
	display: inline-block;
	padding: 10px 20px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 0;
	transition: opacity 0.2s;
}

.share-btn:hover {
	opacity: 0.85;
}

.share-btn.facebook {
	background: #1877f2;
	color: #fff;
}

.share-btn.twitter {
	background: #1da1f2;
	color: #fff;
}

.share-btn.email {
	background: #8f7a68;
	color: #fff;
}

/* ========== My Points ========== */
.points-overview {
	display: flex;
	gap: 30px;
	margin-bottom: 30px;
}

.points-balance-card {
	flex: 0 0 200px;
	background: #8f7a68;
	color: #fff;
	padding: 30px;
	text-align: center;
	border-radius: 0;
}

.points-balance-card .balance-label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	opacity: 0.9;
}

.points-balance-card .balance-number {
	display: block;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.2;
	margin: 10px 0 5px;
}

.points-balance-card .balance-unit {
	display: block;
	font-size: 14px;
	opacity: 0.9;
}

.points-summary {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 15px;
}

.points-summary .summary-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background: #f9f7f5;
	border: 1px solid #e5e0db;
	border-radius: 0;
}

.points-summary .summary-number {
	font-size: 24px;
	font-weight: 600;
	color: #8f7a68;
}

.points-summary .summary-label {
	font-size: 14px;
	color: #666;
}

.earn-points-info {
	background: #f9f7f5;
	padding: 25px;
	margin-bottom: 30px;
	border: 1px solid #e5e0db;
	border-radius: 0;
}

.earn-points-info h3 {
	margin: 0 0 15px 0;
}

.earn-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.earn-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #e5e0db;
}

.earn-list li:last-child {
	border-bottom: none;
}

.earn-list .earn-action {
	font-size: 14px;
	color: #333;
}

.earn-list .earn-points {
	font-size: 14px;
	font-weight: 600;
	color: #8f7a68;
}

.points-history .no-history {
	padding: 40px;
	text-align: center;
	background: #f9f9f9;
	color: #888;
	border: 1px solid #eee;
	border-radius: 0;
}

.history-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e5e0db;
}

.history-table th,
.history-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #e5e0db;
}

.history-table th {
	background: #f9f7f5;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.history-table td {
	font-size: 14px;
	color: #333;
}

.history-table td.positive {
	color: #2e7d32;
	font-weight: 600;
}

.history-table td.negative {
	color: #c62828;
	font-weight: 600;
}

/* ========== Social Verification ========== */
.verification-cards {
	display: flex;
	gap: 25px;
	margin-bottom: 30px;
}

.verification-card {
	flex: 1;
	background: #fff;
	border: 1px solid #e5e0db;
	padding: 25px;
	border-radius: 0;
}

.platform-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.platform-icon {
	font-size: 24px;
}

.platform-name {
	flex: 1;
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.platform-reward {
	font-size: 14px;
	font-weight: 600;
	color: #8f7a68;
	background: #f9f7f5;
	padding: 5px 12px;
	border-radius: 0;
}

.platform-status {
	margin-bottom: 20px;
}

.platform-status .status {
	display: inline-block;
	padding: 8px 15px;
	font-size: 13px;
	font-weight: 500;
	border-radius: 0;
}

.platform-status .status.verified {
	background: #e8f5e9;
	color: #2e7d32;
}

.platform-status .status.pending {
	background: #fff3e0;
	color: #e65100;
}

.platform-status .status.not-verified {
	background: #f5f5f5;
	color: #666;
}

.verification-steps {
	margin-bottom: 20px;
}

.verification-steps p {
	font-size: 14px;
	color: #555;
	margin: 8px 0;
	line-height: 1.5;
}

.verification-steps a {
	color: #8f7a68;
	font-weight: 500;
}

.verification-steps a:hover {
	text-decoration: underline;
}

.verification-form {
	margin-top: 15px;
}

.upload-area {
	margin-bottom: 15px;
}

.upload-area input[type="file"] {
	width: 100%;
	padding: 15px;
	border: 2px dashed #ddd;
	background: #f9f9f9;
	cursor: pointer;
	border-radius: 0;
}

.upload-area input[type="file"]:hover {
	border-color: #8f7a68;
}

.submit-btn {
	display: block;
	width: 100%;
	padding: 12px 20px;
	background: #8f7a68;
	color: #fff;
	border: none;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
	border-radius: 0;
}

.submit-btn:hover {
	background: #7a6858;
}

.verification-note {
	background: #f9f7f5;
	padding: 15px 20px;
	border-left: 3px solid #8f7a68;
	border-radius: 0;
}

.verification-note p {
	margin: 0;
	font-size: 14px;
	color: #666;
}

.verification-note strong {
	color: #333;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
	.referral-stats {
		flex-direction: column;
	}
	
	.points-overview {
		flex-direction: column;
	}
	
	.points-balance-card {
		flex: none;
	}
	
	.verification-cards {
		flex-direction: column;
	}
	
	.share-buttons {
		flex-wrap: wrap;
	}
	
	.link-input-wrapper {
		flex-direction: column;
	}
	
	.link-input-wrapper input {
		border-right: 1px solid #ddd;
		border-bottom: none;
	}
	
	.copy-btn {
		width: 100%;
	}
}
