/* Crypto Goodies Social Quest — front-end styles (monochrome: black / grey / white) */

#cgsq-launcher {
	position: fixed;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	z-index: 99998;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	color: #fff;
	border: none;
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	cursor: pointer;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	transition: width 0.2s ease, box-shadow 0.2s ease;
}

#cgsq-launcher:hover {
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}

.cgsq-launcher-icon {
	position: relative;
	font-size: 17px;
	font-weight: 700;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	line-height: 1;
	z-index: 1;
}

/* Shine sweep on hover */
#cgsq-launcher::before {
	content: '';
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(
		120deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.55) 50%,
		rgba(255, 255, 255, 0) 100%
	);
	transform: skewX(-20deg);
	transition: left 0.65s ease;
}

#cgsq-launcher:hover::before {
	left: 130%;
}

/* Overlay */
.cgsq-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.6);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.cgsq-overlay.cgsq-visible {
	opacity: 1;
}

/* Modal */
.cgsq-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -48%);
	z-index: 100000;
	width: min(480px, 92vw);
	max-height: 88vh;
	overflow-y: auto;
	background: #111214;
	color: #f5f5f5;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, transform 0.25s ease;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.cgsq-modal.cgsq-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%);
}

/* Minimal, dark, modern scrollbar */
.cgsq-modal {
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.cgsq-modal::-webkit-scrollbar {
	width: 6px;
}

.cgsq-modal::-webkit-scrollbar-track {
	background: transparent;
}

.cgsq-modal::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.18);
	border-radius: 999px;
}

.cgsq-modal::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.32);
}

.cgsq-modal-inner {
	padding: 32px 28px 28px;
}

.cgsq-close {
	position: absolute !important;
	top: 16px !important;
	right: 16px !important;
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	min-height: 30px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 5px !important;
	border: none !important;
	background: #000 !important;
	display: block !important;
	cursor: pointer !important;
	z-index: 2;
	transition: background 0.2s ease !important;
}

.cgsq-close::before,
.cgsq-close::after {
	content: '' !important;
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	width: 13px !important;
	height: 2px !important;
	background: #fff !important;
	border-radius: 2px !important;
	transition: background 0.2s ease !important;
}

.cgsq-close::before {
	transform: translate(-50%, -50%) rotate(45deg) !important;
}

.cgsq-close::after {
	transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.cgsq-close:hover {
	background: #fff !important;
}

.cgsq-close:hover::before,
.cgsq-close:hover::after {
	background: #111 !important;
}

.cgsq-title {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
}

.cgsq-subtitle {
	margin: 0 0 24px;
	font-size: 14px;
	color: #a3a3a3;
}

/* Progress bar */
.cgsq-progress {
	display: flex;
	align-items: center;
	margin-bottom: 26px;
}

.cgsq-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.cgsq-progress-dot {
	position: relative;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: #232323;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.cgsq-progress-num {
	font-size: 10px;
	font-weight: 700;
	color: #7a7a7a;
	line-height: 1;
}

.cgsq-progress-check {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.cgsq-progress-step.cgsq-active .cgsq-progress-dot {
	background: #333;
}

.cgsq-progress-step.cgsq-active .cgsq-progress-num {
	color: #eaeaea;
}

.cgsq-progress-step.cgsq-done .cgsq-progress-dot {
	background: #c6ff3e;
}

.cgsq-progress-step.cgsq-done .cgsq-progress-num {
	display: none;
}

.cgsq-progress-step.cgsq-done .cgsq-progress-check {
	display: block;
}

.cgsq-progress-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #7a7a7a;
}

.cgsq-progress-step.cgsq-done .cgsq-progress-label,
.cgsq-progress-step.cgsq-active .cgsq-progress-label {
	color: #eaeaea;
}

.cgsq-progress-line {
	flex: 1 1 auto;
	height: 1px;
	background: rgba(255, 255, 255, 0.14);
	margin: 0 6px 16px;
}

/* Steps */
.cgsq-steps {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cgsq-step {
	position: relative;
	display: flex;
	gap: 14px;
	padding: 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.07);
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.cgsq-step.cgsq-locked {
	opacity: 0.45;
	pointer-events: none;
}

.cgsq-step.cgsq-complete {
	border-color: rgba(255, 255, 255, 0.28);
}

.cgsq-step-num {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: #1d1d1f;
	border: 1px solid rgba(255, 255, 255, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #eaeaea;
}

.cgsq-step-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cgsq-step-body h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
}

.cgsq-step-body p {
	margin: 0;
	font-size: 12.5px;
	color: #9a9a9a;
	line-height: 1.4;
}

.cgsq-step-check {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.cgsq-step-check svg {
	display: block;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.cgsq-step.cgsq-complete .cgsq-step-check {
	background: #fff;
}

.cgsq-step.cgsq-complete .cgsq-step-check svg {
	opacity: 1;
}

/* Locked hint (shown before steps 1 & 2 are done, replaced by the tweet section) */
.cgsq-locked-hint {
	margin: 4px 0 0;
	font-size: 12px;
	font-style: italic;
	color: #6f6f6f;
}

.cgsq-tweet-section {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Tweet template carousel */
.cgsq-carousel-wrap {
	margin: 2px 0 4px;
	max-width: 100%;
}

.cgsq-carousel {
	overflow: hidden;
	border-radius: 10px;
	background: #0c0c0d;
	border: 1px solid rgba(255, 255, 255, 0.14);
	max-width: 100%;
}

.cgsq-carousel-track {
	display: flex;
	transition: transform 0.3s ease;
	touch-action: pan-y;
}

.cgsq-carousel-slide {
	flex: 0 0 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	font-size: 12.5px;
	line-height: 1.5;
	color: #d7d7d7;
	min-height: 58px;
	display: flex;
	align-items: center;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
}

.cgsq-carousel-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 8px;
}

.cgsq-carousel-arrow {
	box-sizing: border-box !important;
	width: 26px !important;
	height: 26px !important;
	min-width: 26px !important;
	min-height: 26px !important;
	max-width: 26px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 999px !important;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: transparent;
	color: #fff;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.cgsq-carousel-arrow:hover {
	background: rgba(255, 255, 255, 0.1);
}

.cgsq-carousel-dots {
	display: flex;
	align-items: center;
	gap: 6px;
}

.cgsq-carousel-dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.25);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease, width 0.2s ease;
}

.cgsq-carousel-dot.cgsq-active {
	background: #fff;
	width: 16px;
	border-radius: 4px;
}

/* Link-style buttons (toggle template <-> custom message) */
.cgsq-link-btn {
	display: inline-block;
	margin-top: 8px;
	padding: 0;
	background: none;
	border: none;
	color: #9a9a9a;
	font-size: 12px;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	transition: color 0.2s ease;
}

.cgsq-link-btn:hover {
	color: #fff;
}

/* Custom tweet composer */
.cgsq-custom-tweet {
	margin: 2px 0 4px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cgsq-custom-tweet textarea {
	width: 100% !important;
	box-sizing: border-box !important;
	padding: 0.9rem 1rem !important;
	border-radius: 10px !important;
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
	background: #0c0c0d !important;
	color: #d7d7d7 !important;
	font-size: 13px !important;
	font-family: inherit !important;
	resize: vertical !important;
	outline: none !important;
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}

.cgsq-custom-tweet textarea:focus,
.cgsq-custom-tweet textarea:active {
	border-color: #ffffff !important;
	color: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important;
}

.cgsq-custom-hint {
	margin: 0;
	font-size: 11.5px;
	color: #9a6b6b;
}

.cgsq-custom-hint.cgsq-hint-ok {
	color: #9be07a;
}

.cgsq-btn-disabled {
	opacity: 0.4;
}

/* Inputs & buttons */
.cgsq-steps input,
.cgsq-claim input {
	width: 100% !important;
	box-sizing: border-box !important;
	padding: 0.9rem 1rem !important;
	margin: 0 !important;
	border-radius: 10px !important;
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
	background: #0c0c0d !important;
	color: #d7d7d7 !important;
	font-size: 13.5px !important;
	line-height: 1.2 !important;
	outline: none !important;
	box-shadow: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease !important;
}

.cgsq-steps input::placeholder,
.cgsq-claim input::placeholder {
	color: #6f6f6f !important;
}

.cgsq-steps input:hover,
.cgsq-claim input:hover {
	border-color: rgba(255, 255, 255, 0.24) !important;
}

.cgsq-steps input:focus,
.cgsq-steps input:active,
.cgsq-claim input:focus,
.cgsq-claim input:active {
	border-color: #ffffff !important;
	color: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important;
}

.cgsq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}

.cgsq-btn:active {
	transform: scale(0.98);
}

.cgsq-btn-outline {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}

.cgsq-btn-outline:hover {
	background: rgba(255, 255, 255, 0.08);
}

.cgsq-btn-solid {
	background: #fff;
	color: #111;
}

.cgsq-btn-solid:hover {
	background: #e6e6e6;
}

.cgsq-btn-solid:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.cgsq-btn-full {
	width: 100%;
	padding: 12px;
}

.cgsq-error {
	margin-top: 14px;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #f5f5f5;
	font-size: 12.5px;
}

/* Claim + result */
.cgsq-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.cgsq-claim {
	margin-top: 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cgsq-claim h3 {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.cgsq-result {
	margin-top: 6px;
	text-align: center;
	padding: 10px 0 4px;
}

.cgsq-result-icon {
	width: 48px;
	height: 48px;
	margin: 0 auto 14px;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-weight: 800;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cgsq-result h3 {
	margin: 0 0 12px;
	font-size: 15px;
	color: #fff;
}

.cgsq-code {
	display: inline-block;
	padding: 12px 20px;
	border-radius: 10px;
	background: #0c0c0d;
	border: 1px dashed rgba(255, 255, 255, 0.35);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #fff;
}

.cgsq-result-note {
	margin: 14px 0 0;
	font-size: 12px;
	color: #8a8a8a;
}

@media (max-width: 480px) {
	.cgsq-modal-inner {
		padding: 26px 18px 22px;
	}
}
