/* Store page base */
.store-page {
	max-width: 1120px;
	margin: 0 auto;
	padding: 2.5rem 1.5rem 4rem;
	color: var(--text-main, #111827);
	background: var(--bg-body, #f9fafb);
	/* Use base theme tokens so light/dark stay consistent */
	--surface: var(--bg-darker, #ffffff);
	--surface-subtle: color-mix(in srgb, var(--bg-lighter, #e5e7eb) 82%, var(--bg-body, #f9fafb) 18%);
	--muted: var(--text-muted, #6b7280);
	--border: var(--border-subtle, rgba(148, 163, 184, 0.7));
	--card-shadow: 0 18px 40px color-mix(in srgb, #0f172a 26%, transparent);
}

.store-page h1,
.store-page h2,
.store-page h3 {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--text-main, #0f172a);
}

.store-section {
	margin-top: 3rem;
}

.section-subtitle {
	margin-top: 0.5rem;
	color: var(--muted, #6b7280);
	font-size: 0.95rem;
}

/* Hero */
.store-hero {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
	gap: 2.5rem;
	align-items: center;
	padding: 2.5rem 2rem;
	background: radial-gradient(
		circle at top left,
		color-mix(in srgb, var(--primary-color, #2563eb) 22%, var(--bg-body, #1e1f22)),
		color-mix(in srgb, #67e8f9 18%, var(--bg-body, #1e1f22)) 45%,
		var(--surface, #ffffff)
	);
	border-radius: 1.5rem;
	box-shadow: var(--card-shadow);
}

.store-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.08);
	color: var(--primary-color, #1d4ed8);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.store-hero h1 {
	margin-top: 0.9rem;
	font-size: clamp(1.8rem, 2.4vw + 1.2rem, 2.5rem);
	line-height: 1.25;
}

.store-hero-subtitle {
	margin-top: 0.9rem;
	color: var(--muted, #4b5563);
	font-size: 0.98rem;
	line-height: 1.7;
}

.store-hero-highlights {
	margin-top: 1.1rem;
	list-style: none;
	padding: 0;
	color: var(--text-main, #374151);
	font-size: 0.9rem;
}

.store-hero-highlights li + li {
	margin-top: 0.25rem;
}

.store-hero-actions {
	margin-top: 1.6rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.store-admin-actions {
	margin-top: 0.8rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.store-primary-btn,
.plan-btn {
	border: none;
	outline: none;
	appearance: none;
	border-radius: 999px;
	padding: 0.65rem 1.5rem;
	background: linear-gradient(135deg, var(--primary-color, #2563eb), color-mix(in srgb, var(--primary-color, #2563eb) 88%, #0b1a4a 12%));
	color: #ffffff;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	box-shadow: 0 10px 22px color-mix(in srgb, var(--primary-color, #2563eb) 32%, transparent);
	transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.15s ease-out, filter 0.12s ease-out;
}

.store-primary-btn:hover,
.plan-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45);
	filter: brightness(1.02);
}

.store-secondary-btn {
	border-radius: 999px;
	padding: 0.6rem 1.3rem;
	border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.8));
	background: color-mix(in srgb, var(--surface-subtle, #f3f4f6) 82%, transparent);
	color: var(--text-main, #374151);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: background 0.12s ease-out, border-color 0.12s ease-out;
}

/* Graceful fallback when backdrop-filter is unsupported */
.no-backdrop .store-secondary-btn {
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	background: color-mix(in srgb, var(--surface-subtle, #f3f4f6) 88%, #ffffff 12%);
}

.store-secondary-btn:hover {
	background: rgba(255, 255, 255, 0.95);
	border-color: var(--primary-color, #94a3b8);
}

.store-hero-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1rem;
}

.store-hero-badge {
	padding: 0.6rem 0.95rem;
	border-radius: 0.9rem;
	background: color-mix(in srgb, #16a34a 16%, var(--surface, #ffffff));
	border: 1px solid color-mix(in srgb, #16a34a 30%, transparent);
	color: color-mix(in srgb, #166534 88%, var(--text-main, #111827));
	font-size: 0.8rem;
	box-shadow: 0 10px 18px rgba(22, 163, 74, 0.22);
}

.store-hero-badge span {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
}

.store-hero-badge strong {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.95rem;
}

.store-hero-mockup {
	width: 100%;
	max-width: 360px;
}

.mockup-window {
	border-radius: 1.1rem;
	background: #0b1220;
	color: #e5e7eb;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.7);
	overflow: hidden;
}

.mockup-header {
	display: flex;
	gap: 0.4rem;
	padding: 0.6rem 0.9rem;
	background: linear-gradient(to right, #020617, #020617, #111827);
}

.mockup-header span {
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 999px;
	background: #1e293b;
}

.mockup-header span:nth-child(1) { background: #ef4444; }
.mockup-header span:nth-child(2) { background: #facc15; }
.mockup-header span:nth-child(3) { background: #22c55e; }

.mockup-body {
	padding: 1.1rem 1.2rem 1.4rem;
	font-size: 0.85rem;
	line-height: 1.6;
}

.mockup-title {
	color: #e5e7eb;
	font-weight: 600;
	margin-bottom: 0.6rem;
}

.mockup-line {
	color: #cbd5f5;
}

.mockup-line.dim {
	margin-top: 0.4rem;
	color: #9ca3af;
	font-size: 0.8rem;
}

/* Features */
.store-features {
	margin-top: 3.2rem;
}

.feature-grid {
	margin-top: 1.7rem;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

.feature-card {
	padding: 1.1rem 1.1rem 1.1rem;
	border-radius: 1rem;
	border: 1px solid var(--border, rgba(148, 163, 184, 0.4));
	background: var(--surface, #ffffff);
	backdrop-filter: blur(4px);
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
	font-size: 0.9rem;
}

.feature-card h3 {
	margin-bottom: 0.4rem;
	font-size: 1rem;
}

.feature-card p {
	color: var(--muted, #4b5563);
}

/* Plans */
.store-plans {
	margin-top: 3.4rem;
}

.section-header {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	align-items: flex-start;
}

.plans-filters {
	margin-top: 1.4rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.filter-btn {
	border-radius: 999px;
	border: 1px solid var(--border, rgba(148, 163, 184, 0.6));
	background: var(--surface-subtle, #f8fafc);
	padding: 0.35rem 0.9rem;
	font-size: 0.85rem;
	color: var(--muted, #475569);
	cursor: pointer;
	transition: background 0.12s ease-out, border-color 0.12s ease-out, color 0.12s ease-out;
}

.filter-btn.active {
	background: var(--primary-color, #1d4ed8);
	color: #ffffff;
	border-color: var(--primary-color, #1d4ed8);
}

.plans-grid {
	margin-top: 1.6rem;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.plan-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 1.1rem 1.1rem 1.2rem;
	border-radius: 1.2rem;
	border: 1px solid var(--border, rgba(148, 163, 184, 0.6));
	background: var(--surface, #ffffff);
	box-shadow: 0 18px 30px rgba(15, 23, 42, 0.06);
	transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out;
}

.plan-cover {
	position: relative;
	height: 170px;
	margin: -0.2rem -0.2rem 0.95rem;
	border-radius: 1rem;
	overflow: hidden;
	background: #f3f4f6;
}

.plan-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.plan-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
	border-color: var(--primary-color, #1d4ed8);
}

.plan-card.highlighted {
	border-width: 1.5px;
	border-color: var(--primary-color, #1d4ed8);
	background: radial-gradient(circle at top, color-mix(in srgb, var(--primary-color, #1d4ed8) 18%, var(--surface, #ffffff)), var(--surface, #ffffff) 60%);
}

.plan-tag {
	position: absolute;
	top: 0.9rem;
	right: 0.95rem;
	padding: 0.18rem 0.65rem;
	border-radius: 999px;
	background: var(--primary-color, #1d4ed8);
	color: white;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.plan-tag.soft {
	background: #0f766e;
}

.plan-card h3 {
	margin-bottom: 0.35rem;
	font-size: 1.05rem;
}

.plan-desc {
	margin-bottom: 0.7rem;
	color: var(--muted, #4b5563);
	font-size: 0.9rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-clamp: 3;
}

.plan-features {
	list-style: none;
	padding: 0;
	margin: 0 0 0.9rem 0;
	color: var(--text-main, #374151);
	font-size: 0.86rem;
}

.plan-features li + li {
	margin-top: 0.25rem;
}

.plan-footer {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.7rem;
}

.price-main {
	font-weight: 700;
	font-size: 1.1rem;
}

.price-sub {
	display: block;
	font-size: 0.8rem;
	color: var(--muted, #6b7280);
}

.plan-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.plan-secondary-link {
	font-size: 0.82rem;
	color: var(--muted, #4b5563);
	text-decoration: none;
	padding: 0.4rem 0.7rem;
	border-radius: 999px;
	border: 1px solid var(--border, rgba(148, 163, 184, 0.7));
	background: var(--surface-subtle, #f9fafb);
	transition: background 0.12s ease-out, color 0.12s ease-out, border-color 0.12s ease-out;
	white-space: nowrap;
}

.plan-secondary-link:hover {
	background: #e5edff;
	color: var(--primary-color, #1d4ed8);
	border-color: var(--primary-color, #1d4ed8);
}

.plan-link {
	font-size: 0.85rem;
	color: var(--primary-color, #1d4ed8);
	text-decoration: none;
}

.plan-link:hover {
	text-decoration: underline;
}

/* Notes */
.store-notes {
	margin-top: 3.2rem;
}

.notes-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
	gap: 1.25rem;
}

.note-card {
	padding: 1.3rem 1.2rem 1.3rem;
	border-radius: 1.1rem;
	border: 1px solid var(--border, rgba(148, 163, 184, 0.6));
	background: var(--surface-subtle, #f9fafb);
	font-size: 0.9rem;
}

.note-card h2 {
	font-size: 1.05rem;
	margin-bottom: 0.5rem;
}

.note-steps {
	padding-left: 1.3rem;
	margin: 0.5rem 0 0.7rem;
	color: var(--text-main, #374151);
	font-size: 0.9rem;
}

.note-hint {
	margin-top: 0.6rem;
	color: var(--muted, #6b7280);
	font-size: 0.8rem;
}

.note-list {
	margin: 0.5rem 0 0.7rem;
	padding-left: 1.1rem;
	color: var(--text-main, #374151);
	font-size: 0.9rem;
}

/* FAQ */
.store-faq {
	margin-top: 3.3rem;
}

.faq-list {
	margin-top: 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.faq-item {
	border-radius: 0.9rem;
	border: 1px solid var(--border, rgba(148, 163, 184, 0.6));
	background: var(--surface, #ffffff);
	overflow: hidden;
}

.faq-question {
	width: 100%;
	padding: 0.8rem 1rem;
	background: var(--surface-subtle, #f9fafb);
	border: none;
	outline: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: left;
	font-size: 0.9rem;
	color: var(--text-main, #111827);
	cursor: pointer;
}

.faq-toggle {
	margin-left: 0.8rem;
	font-weight: 700;
	color: var(--muted, #6b7280);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	padding: 0 1rem;
	color: var(--muted, #4b5563);
	font-size: 0.88rem;
	line-height: 1.6;
	transition: max-height 0.18s ease-out, padding-top 0.18s ease-out, padding-bottom 0.18s ease-out;
}

.faq-item.open .faq-answer {
	max-height: 200px;
	padding-top: 0.55rem;
	padding-bottom: 0.8rem;
}

.faq-item.open .faq-toggle {
	transform: rotate(45deg);
}

/* Footer */
.store-footer {
	margin-top: 3rem;
	text-align: center;
	color: var(--muted, #9ca3af);
	font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 960px) {
	.store-hero {
		grid-template-columns: minmax(0, 1fr);
		padding: 1.8rem 1.4rem;
	}

	.store-hero-side {
		align-items: stretch;
	}

	.feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.plans-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.notes-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.store-page {
		padding: 1.5rem 1rem 3rem;
	}

	.store-hero {
		padding: 1.5rem 1.2rem;
	}

	.feature-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.plans-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ===== Discord 表情符號支援 ===== */
.store-page .discord-emoji {
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
	vertical-align: middle;
	margin: 0 0.1em;
	object-fit: contain;
}

.store-page .discord-emoji-animated {
	animation: discord-emoji-bounce 0.3s ease-in-out;
}

/* 大尺寸表情符號 */
.store-page .discord-emoji-large {
	width: 3em;
	height: 3em;
}

/* Hover 效果 */
.store-page .discord-emoji:hover {
	transform: scale(1.15);
	transition: transform 0.15s ease;
}

/* 連續表情符號間距 */
.store-page .discord-emoji + .discord-emoji {
	margin-left: 0.15em;
}

/* Application Emojis - 機器人專屬表情符號 */
.store-page .app-emoji {
	border: 2px solid #5865F2;
	border-radius: 6px;
	padding: 2px;
	background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(88, 101, 242, 0.05));
	box-shadow: 0 1px 3px rgba(88, 101, 242, 0.2);
}

.store-page .app-emoji:hover {
	border-color: #7289da;
	box-shadow: 0 2px 6px rgba(88, 101, 242, 0.35);
}

@keyframes discord-emoji-bounce {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}
