* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	/* background: #000; */
	/* background: linear-gradient(45deg, #66757f, #00ACEE, #36D8FF, #f5f8fa, #ffffff); */
	background: #0b0b0b;
	min-height: 100vh;
	color: #f0f0f0;
	overflow-x: hidden;
}

/* Upload Screen - Twitter Style */
.upload-screen {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	/* background: linear-gradient(45deg, #66757f, #00ACEE, #36D8FF, #f5f8fa); */
}

/* Test Button */
.test-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	padding: 10px 20px;
	background: transparent;
	color: #1d9bf0;
	border: 1px solid #1d9bf0;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.test-btn:hover {
	background: rgba(29, 155, 240, 0.1);
}

.logo-container {
	margin-bottom: 32px;
	text-align: center;
}

.twitter-logo {
	width: 56px;
	height: 56px;
}

.logo-container h1 {
	font-size: 2rem;
	font-weight: 700;
	margin-top: 20px;
	color: #e7e9ea;
}

.logo-container p {
	color: #d7d7d7;
	margin-top: 8px;
	font-size: 0.95rem;
}

.upload-zone {
	width: 100%;
	max-width: 440px;
	padding: 48px 32px;
	border: 2px dashed #3a3f44;
	border-radius: 16px;
	background: #16181c;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.upload-zone:hover,
.upload-zone.drag-over {
	border-color: #1d9bf0;
	border-style: dashed;
	background: #1a1d21;
}

/* Coffee Button */
.coffee-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	max-width: 440px;
	margin-top: 16px;
	padding: 14px 24px;
	background: #ffdd00;
	color: #000;
	border: none;
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.coffee-btn:hover {
	background: #e6c700;
	transform: translateY(-2px);
}

.upload-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 20px;
	background: #1d9bf0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.upload-icon svg {
	width: 28px;
	height: 28px;
	fill: white;
}

.upload-zone h2 {
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 8px;
	color: #e7e9ea;
}

.upload-zone p {
	color: #71767b;
	font-size: 0.9rem;
	line-height: 1.4;
}

.upload-zone input {
	display: none;
}

.file-info {
	margin-top: 16px;
	padding: 10px 16px;
	background: rgba(29, 155, 240, 0.1);
	border-radius: 8px;
	color: #1d9bf0;
	font-weight: 500;
	font-size: 0.85rem;
	display: none;
}

.privacy-notice {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	color: #71767b;
	font-size: 0.8rem;
}

.privacy-notice svg {
	flex-shrink: 0;
	opacity: 0.7;
}

/* How To Button */
.how-to-btn {
	margin-top: 20px;
	padding: 10px 20px;
	background: transparent;
	color: #1d9bf0;
	border: 1px solid #1d9bf0;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.how-to-btn:hover {
	background: rgba(29, 155, 240, 0.1);
}

/* Modal */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 20px;
}

.modal-overlay.active {
	display: flex;
}

.modal {
	background: #16181c;
	border-radius: 16px;
	padding: 24px;
	max-width: 480px;
	width: 100%;
	position: relative;
}

.modal h2 {
	font-size: 1.2rem;
	margin-bottom: 20px;
	color: #e7e9ea;
}

.modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	background: transparent;
	border: none;
	color: #71767b;
	font-size: 24px;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-close:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #e7e9ea;
}

.how-to-steps {
	padding-left: 20px;
	color: #e7e9ea;
}

.how-to-steps li {
	margin-bottom: 12px;
	line-height: 1.5;
	font-size: 0.9rem;
}

.how-to-steps strong {
	color: #1d9bf0;
}

.how-to-note {
	margin-top: 16px;
	padding: 12px;
	background: rgba(29, 155, 240, 0.1);
	border-radius: 8px;
	font-size: 0.85rem;
	color: #1d9bf0;
}

/* Footer */
.footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 12px;
	text-align: center;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
	z-index: 10;
}

.footer a {
	color: #71767b;
	font-size: 0.8rem;
	text-decoration: none;
}

.footer a:hover {
	color: #1d9bf0;
	text-decoration: underline;
}

/* Privacy Modal */
.privacy-modal {
	max-height: 80vh;
	overflow-y: auto;
}

.privacy-content {
	color: #e7e9ea;
	font-size: 0.9rem;
	line-height: 1.6;
}

.privacy-content h3 {
	font-size: 1rem;
	margin: 20px 0 8px;
	color: #1d9bf0;
}

.privacy-content p {
	margin-bottom: 12px;
}

.privacy-content ul {
	padding-left: 20px;
	margin-bottom: 12px;
}

.privacy-content ul li {
	margin-bottom: 6px;
}

.privacy-content a {
	color: #1d9bf0;
}

/* Loading Screen */
.loading-screen {
	position: fixed;
	inset: 0;
	background: #000;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 100;
}

.loading-screen.active {
	display: flex;
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #2f3336;
	border-top-color: #1d9bf0;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.loading-text {
	margin-top: 16px;
	font-size: 0.95rem;
	color: #71767b;
}

.loading-progress {
	margin-top: 8px;
	font-size: 0.85rem;
	color: #1d9bf0;
}

/* Wrapped Slides */
.wrapped-container {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 200;
}

.wrapped-container.active {
	display: block;
}

.slide {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.slide.active {
	opacity: 1;
	pointer-events: all;
}

/* Twitter-style gradients */
.slide-intro {
	background: linear-gradient(150deg, #1d9bf0 0%, #1a8cd8 100%);
}

.slide-tweets {
	background: linear-gradient(150deg, #33aeff 0%, #1a8cd8 100%);
	/* background: linear-gradient(150deg, #f91880 0%, #e0186e 100%); */
}

.slide-likes {
	background: linear-gradient(150deg, #1fe069 0%, #086f36 100%);
}

.slide-liked-account {
	background: linear-gradient(150deg, #ffd400 0%, #e6bf00 100%);
	color: #0f1419;
}

.slide-dms {
	background: linear-gradient(150deg, #7856ff 0%, #6a4de0 100%);
}

.slide-summary {
	background: linear-gradient(150deg, #1d9bf0 0%, #7856ff 100%);
}

.slide-content {
	max-width: 520px;
	animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.slide-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 24px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.slide-icon svg {
	width: 32px;
	height: 32px;
	fill: white;
}

.slide-liked-account .slide-icon svg {
	fill: #0f1419;
}

/* Profile Avatar for intro slide */
.profile-avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	margin: 0 auto 24px;
	object-fit: cover;
	border: 4px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.slide-title {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin-bottom: 12px;
	opacity: 0.9;
}

.slide-main-text {
	font-size: 3rem;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 12px;
}

.slide-stat {
	font-size: 4rem;
	font-weight: 900;
	margin: 12px 0;
}

.slide-description {
	font-size: 0.9rem;
	opacity: 0.9;
	line-height: 1.5;
}

.tweet-preview {
	background: rgba(0, 0, 0, 0.15);
	border-radius: 12px;
	padding: 16px 20px;
	margin-top: 16px;
	text-align: left;
}

.tweet-preview p {
	font-size: 0.95rem;
	line-height: 1.5;
}

/* Tweet Card - Real Tweet Style */
.tweet-card {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 16px;
	padding: 16px;
	margin-top: 16px;
	text-align: left;
	max-width: 400px;
}

.tweet-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.tweet-card-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.tweet-card-avatar-fallback {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
}

.tweet-card-avatar-fallback svg {
	width: 20px;
	height: 20px;
	fill: white;
}

.tweet-card-user {
	display: flex;
	flex-direction: column;
}

.tweet-card-name {
	font-weight: 700;
	font-size: 0.95rem;
}

.tweet-card-username {
	font-size: 0.8rem;
	opacity: 0.7;
}

.tweet-card-text {
	font-size: 0.95rem;
	line-height: 1.4;
	margin-bottom: 12px;
	word-wrap: break-word;
}

.tweet-card-image {
	width: 100%;
	border-radius: 12px;
	margin-bottom: 12px;
	max-height: 200px;
	object-fit: cover;
}

.tweet-card-stats {
	display: flex;
	gap: 20px;
	padding-top: 10px;
	/* border-top: 1px solid rgba(255, 255, 255, 0.1); */
}

.tweet-card-stat {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	opacity: 0.9;
}

.tweet-card-stat svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.account-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: rgba(0, 0, 0, 0.1);
	padding: 14px 20px;
	border-radius: 12px;
	margin-top: 16px;
}

.slide-liked-account .account-card {
	background: rgba(0, 0, 0, 0.08);
}

.account-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.account-avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.account-avatar-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.slide-liked-account .account-avatar {
	background: rgba(0, 0, 0, 0.1);
}

.account-avatar svg {
	width: 22px;
	height: 22px;
	fill: white;
}

.slide-liked-account .account-avatar svg {
	fill: #0f1419;
}

.account-details {
	text-align: left;
}

.account-details h3 {
	font-size: 1.1rem;
	font-weight: 700;
}

.account-details p {
	opacity: 0.85;
	font-size: 0.9rem;
	margin-top: 2px;
}

.stats-list {
	background: rgba(0, 0, 0, 0.1);
	border-radius: 12px;
	padding: 16px 20px;
	margin-top: 16px;
	text-align: left;
}

.slide-liked-account .stats-list {
	background: rgba(0, 0, 0, 0.08);
}

.stats-list-item {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.95rem;
}

.slide-liked-account .stats-list-item {
	border-bottom-color: rgba(0, 0, 0, 0.08);
}

.stats-list-item:last-child {
	border-bottom: none;
}

.stats-list-item .value {
	font-weight: 700;
}

/* Personality Type */
.personality-type {
	font-size: 3.5rem;
	font-weight: 900;
	margin: 16px 0;
	text-transform: uppercase;
	letter-spacing: 2px;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.personality-traits {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 24px;
}

.trait-tag {
	padding: 8px 18px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 24px;
	font-size: 0.9rem;
	font-weight: 600;
	backdrop-filter: blur(4px);
}

/* Conversation Cards with Profile Pictures */
.convo-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 16px;
}

.convo-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: rgba(0, 0, 0, 0.1);
	padding: 14px 18px;
	border-radius: 12px;
}

.convo-avatar-wrapper {
	position: relative;
	flex-shrink: 0;
}

.convo-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.convo-avatar-fallback {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
}

.convo-avatar-fallback svg {
	width: 24px;
	height: 24px;
	fill: white;
}

.convo-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: left;
}

.convo-name {
	font-size: 1rem;
	font-weight: 700;
}

.convo-count {
	font-size: 0.85rem;
	opacity: 0.8;
}

/* Peak Month Highlight */
.peak-month-highlight {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin-top: 24px;
	padding: 16px 24px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 12px;
}

.peak-month-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	opacity: 0.8;
}

.peak-month-value {
	font-size: 1.8rem;
	font-weight: 800;
}

.peak-month-count {
	font-size: 0.85rem;
	opacity: 0.85;
}

/* Word Cloud Style */
.word-highlight {
	font-size: 3rem;
	font-weight: 900;
	margin: 16px 0;
	padding: 12px 24px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	display: inline-block;
}

.slide-liked-account .word-highlight {
	background: rgba(0, 0, 0, 0.08);
}

/* Navigation */
.nav-buttons {
	position: fixed;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 12px;
	z-index: 300;
}

.nav-btn {
	padding: 12px 24px;
	font-size: 0.9rem;
	font-weight: 700;
	border: none;
	border-radius: 9999px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.nav-btn-prev {
	background: rgba(255, 255, 255, 0.2);
	color: white;
}

.slide-liked-account~.nav-buttons .nav-btn-prev {
	background: rgba(0, 0, 0, 0.1);
	color: #0f1419;
}

.nav-btn-next {
	background: white;
	color: #0f1419;
}

.nav-btn:hover {
	transform: scale(1.02);
	opacity: 0.9;
}

.nav-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none;
}

.progress-dots {
	position: fixed;
	top: 32px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 300;
}

.progress-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transition: all 0.2s ease;
}

.progress-dot.active {
	background: white;
	width: 18px;
	border-radius: 3px;
}

.restart-btn {
	position: fixed;
	top: 32px;
	right: 32px;
	width: 36px;
	height: 36px;
	padding: 0;
	background: rgba(255, 255, 255, 0.15);
	color: white;
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	z-index: 300;
}

.restart-btn:hover {
	background: rgba(255, 255, 255, 0.25);
}

.error-message {
	background: rgba(244, 33, 46, 0.1);
	border: 1px solid rgba(244, 33, 46, 0.3);
	color: #f4212e;
	padding: 12px 16px;
	border-radius: 8px;
	margin-top: 16px;
	font-size: 0.85rem;
	display: none;
}

.error-message.active {
	display: block;
}

@media (max-width: 768px) {
	.logo-container h1 {
		font-size: 1.6rem;
	}

	.upload-zone {
		padding: 36px 24px;
	}

	.slide-main-text {
		font-size: 1.6rem;
	}

	.slide-stat {
		font-size: 3rem;
	}

	.word-highlight {
		font-size: 2rem;
	}

	.nav-buttons {
		bottom: 24px;
	}

	.nav-btn {
		padding: 10px 20px;
		font-size: 0.85rem;
	}
}