.sojp-auth-wrap { max-width: 420px; margin: 0 auto; }
.sojp-banner {
	max-width: 420px; margin: 0 auto 16px; padding: 12px 16px; border-radius: 6px;
	font-size: 14px; text-align: center;
}
.sojp-banner-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.sojp-banner-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.sojp-form { background: #fff; border: 1px solid #e2e2e2; border-radius: 8px; padding: 24px; margin-bottom: 16px; }
.sojp-form h2 { margin-top: 0; }
.sojp-field { margin-bottom: 14px; display: flex; flex-direction: column; }
.sojp-field label { margin-bottom: 4px; font-weight: 600; font-size: 14px; }
.sojp-field input[type="text"],
.sojp-field input[type="email"],
.sojp-field input[type="password"] {
	padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px;
}
.sojp-field-inline { flex-direction: row; align-items: center; }
.sojp-btn {
	background: #2563eb; color: #fff; border: none; padding: 10px 18px;
	border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 600;
}
.sojp-btn:hover { background: #1d4ed8; }
.sojp-btn-secondary { background: #6b7280; }
.sojp-btn-secondary:hover { background: #4b5563; }
.sojp-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.sojp-msg { min-height: 20px; font-size: 14px; margin-top: 10px; }
.sojp-msg-success { color: #15803d; }
.sojp-msg-error { color: #b91c1c; }

.sojp-dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.sojp-cards { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sojp-card {
	background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px;
	padding: 18px 24px; min-width: 180px;
}
.sojp-card-label { display: block; font-size: 13px; color: #6b7280; margin-bottom: 6px; }
.sojp-card-value { display: block; font-size: 24px; font-weight: 700; color: #111827; }
.sojp-tx-table { width: 100%; border-collapse: collapse; }
.sojp-tx-table th, .sojp-tx-table td { text-align: left; padding: 8px; border-bottom: 1px solid #eee; font-size: 13px; }

/* Header actions + notification bell */
.sojp-header-actions { display: flex; align-items: center; gap: 10px; }
.sojp-notif-wrap { position: relative; }
.sojp-btn-icon { background: #f3f4f6; color: #111827; padding: 8px 10px; position: relative; }
.sojp-btn-icon:hover { background: #e5e7eb; }
.sojp-notif-badge {
	position: absolute; top: -6px; right: -6px; background: #dc2626; color: #fff;
	font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 6px; line-height: 1.4;
}
.sojp-notif-dropdown {
	position: absolute; right: 0; top: calc(100% + 8px); width: 300px;
	background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 20; max-height: 360px; overflow-y: auto;
}
.sojp-notif-item { padding: 10px 14px; border-bottom: 1px solid #f1f1f1; font-size: 13px; }
.sojp-notif-item:last-child { border-bottom: none; }
.sojp-notif-unread { background: #eff6ff; }
.sojp-notif-msg { display: block; color: #111827; }
.sojp-notif-time { display: block; color: #9ca3af; font-size: 11px; margin-top: 2px; }
.sojp-notif-empty { padding: 16px; text-align: center; color: #9ca3af; font-size: 13px; margin: 0; }

/* XP / Level progress bar */
.sojp-level-block { margin-bottom: 20px; }
.sojp-level-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 13px; }
.sojp-level-badge {
	background: #111827; color: #fff; font-weight: 700; padding: 3px 10px;
	border-radius: 999px; font-size: 12px;
}
.sojp-level-xp { color: #6b7280; }
.sojp-progress-track { background: #e5e7eb; border-radius: 999px; height: 10px; overflow: hidden; }
.sojp-progress-fill { background: linear-gradient(90deg, #2563eb, #7c3aed); height: 100%; transition: width 0.4s ease; }

/* Badges grid */
.sojp-badges-section { margin-bottom: 24px; }
.sojp-badges-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.sojp-badge {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 96px; padding: 14px 8px; border-radius: 8px; text-align: center; border: 1px solid #e5e7eb;
}
.sojp-badge-icon { font-size: 26px; margin-bottom: 6px; }
.sojp-badge-name { font-size: 11px; font-weight: 600; color: #374151; }
.sojp-badge-earned { background: #fef9c3; border-color: #fde68a; }
.sojp-badge-locked { background: #f9fafb; opacity: 0.5; filter: grayscale(1); }

/* Reward Shop */
.sojp-shop-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.sojp-shop-balance { font-size: 14px; color: #374151; }
.sojp-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.sojp-shop-item { border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; }
.sojp-shop-item-img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.sojp-shop-item h3 { margin: 0 0 6px; font-size: 15px; }
.sojp-shop-item-desc { font-size: 13px; color: #6b7280; flex-grow: 1; margin-bottom: 12px; }
.sojp-shop-item-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sojp-shop-item-cost { font-weight: 700; font-size: 13px; color: #111827; }

.sojp-dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.sojp-dl-item { border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; }
.sojp-dl-item h3 { margin: 0 0 12px; font-size: 15px; }
.sojp-dl-item-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sojp-dl-item-reward { font-weight: 700; font-size: 13px; color: #111827; }
.sojp-dl-status { font-size: 12px; color: #16a34a; margin: 8px 0 0; min-height: 14px; }

/* Modal */
.sojp-modal {
	position: fixed; inset: 0; background: rgba(0,0,0,0.5);
	display: flex; align-items: center; justify-content: center; z-index: 100;
}
.sojp-modal-content {
	background: #fff; border-radius: 10px; padding: 28px; max-width: 420px; width: 90%;
	position: relative; text-align: center;
}
.sojp-modal-close {
	position: absolute; top: 10px; right: 14px; background: none; border: none;
	font-size: 22px; cursor: pointer; color: #6b7280;
}
.sojp-unlock-code {
	display: block; background: #f3f4f6; padding: 12px; border-radius: 6px;
	font-size: 16px; font-weight: 700; letter-spacing: 1px; margin-top: 10px;
}
.sojp-my-redemptions { margin-top: 32px; }

/* Streak */
.sojp-streak-section { margin-bottom: 28px; }
.sojp-streak-box {
	display: flex; align-items: baseline; gap: 8px; background: #fff7ed;
	border: 1px solid #fed7aa; border-radius: 8px; padding: 14px 18px;
}
.sojp-streak-fire { font-size: 22px; }
.sojp-streak-count { font-size: 26px; font-weight: 800; color: #c2410c; }
.sojp-streak-label { font-size: 13px; color: #9a3412; }
.sojp-streak-longest { margin-left: auto; font-size: 12px; color: #78716c; }

/* Missions */
.sojp-missions-section { margin-bottom: 28px; }
.sojp-missions-list { display: flex; flex-direction: column; gap: 12px; }
.sojp-mission-item {
	border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 16px;
	display: grid; grid-template-columns: 1fr 120px 100px; gap: 12px; align-items: center;
}
.sojp-mission-done { background: #f0fdf4; border-color: #bbf7d0; }
.sojp-mission-info { display: flex; flex-direction: column; }
.sojp-mission-info strong { font-size: 14px; }
.sojp-mission-info span { font-size: 12px; color: #6b7280; }
.sojp-mission-progress-track { background: #e5e7eb; border-radius: 999px; height: 8px; overflow: hidden; }
.sojp-mission-progress-fill { background: #16a34a; height: 100%; }
.sojp-mission-reward { font-size: 12px; font-weight: 600; text-align: right; color: #374151; }

/* Spin */
.sojp-spin-section { margin-bottom: 28px; }

/* Referral */
.sojp-referral-section { margin-bottom: 12px; }
.sojp-referral-link-box { display: flex; gap: 8px; max-width: 460px; }
.sojp-referral-link-box input {
	flex-grow: 1; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px;
}
.sojp-referral-stats { font-size: 13px; color: #6b7280; margin-top: 8px; }

/* Leaderboard */
.sojp-leaderboard { max-width: 640px; margin: 0 auto; }
.sojp-lb-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.sojp-lb-tab {
	background: #f3f4f6; border: none; padding: 8px 16px; border-radius: 999px;
	cursor: pointer; font-size: 13px; font-weight: 600; color: #374151;
}
.sojp-lb-tab-active { background: #2563eb; color: #fff; }
.sojp-lb-my-rank { font-size: 13px; color: #374151; margin-bottom: 12px; }
.sojp-lb-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.sojp-lb-table th, .sojp-lb-table td { text-align: left; padding: 10px; border-bottom: 1px solid #eee; font-size: 13px; }

/* Ad zones */
.sojp-ad-zone { margin: 16px 0; text-align: center; overflow: hidden; }
