﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

html {
	scroll-behavior: smooth;
}

body {
	background: #F6F7FB;
	font-family: 'Inter', 'Poppins', Arial, sans-serif;
	color: #171923;
}

body .navbar-area,
body .main-navbar-area,
body .main-nav,
body .desktop-nav,
body .navbar,
body .header-area {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	opacity: 1 !important;
	visibility: visible !important;
	background: rgba(255,255,255,.98) !important;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .08) !important;
	z-index: 999 !important;
}

body .navbar-area a,
body .main-navbar-area a,
body .main-nav a,
body .desktop-nav a,
body .navbar a,
body .header-area a,
body .navbar-area .navbar-brand,
body .main-nav .navbar-brand {
	color: #111827 !important;
	opacity: 1 !important;
}

body .navbar-area img,
body .main-navbar-area img,
body .main-nav img,
body .desktop-nav img,
body .navbar img,
body .header-area img {
	opacity: 1 !important;
	visibility: visible !important;
}

body .navbar-area .btn,
body .navbar-area .default-btn,
body .navbar-area .main-btn,
body .navbar-area .primary-btn,
body .main-nav .btn,
body .main-nav .default-btn,
body .main-nav .main-btn,
body .main-nav .primary-btn,
body .header-area .btn,
body .header-area .default-btn,
body .header-area .main-btn,
body .header-area .primary-btn {
	color: #fff !important;
}

body .navbar-area .social a,
body .navbar-area .social-link a,
body .navbar-area .social-option a,
body .main-nav .social a,
body .main-nav .social-link a,
body .main-nav .social-option a,
body .header-area .social a,
body .header-area .social-link a,
body .header-area .social-option a {
	color: #C026D3 !important;
}

/* type js style  */
.typeJsWrapper {
	padding: 0px;
}

.typeJsWrapper .typeJsText,
.typeJsText {
	text-align: left;
	display: inline-block;
	padding: 0;
	border-right: 0px solid #414141;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="date"],
form input[type="number"],
form select,
form textarea {
	-moz-transition: all 0.25s ease-in-out;
	-webkit-transition: all 0.25s ease-in-out;
	-ms-transition: all 0.25s ease-in-out;
	transition: all 0.25s ease-in-out;
	-webkit-appearance: none;
	display: block;
	border: 1px solid rgba(124, 58, 237, .14);
	background: rgba(255,255,255,.9);
	width: 100%;
	box-shadow: 0 1px 0 rgba(17, 24, 39, .02);
	border-radius: 16px;
	line-height: 1.25em;
	padding: .9em 1em;
	color: #15111f;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form input[type="date"]:focus,
form input[type="number"]:focus,
form select:focus,
form textarea:focus {
	background: #fff;
	border-color: rgba(124, 58, 237, .58);
	box-shadow: 0 0 0 4px rgba(124, 58, 237, .11);
	outline: none;
}

.blog-section {
	padding-top: 92px !important;
	background:
		linear-gradient(135deg, rgba(124,58,237,.07) 0%, rgba(255,255,255,0) 34%),
		linear-gradient(180deg, #F8FAFC 0%, #EEF1F8 100%);
	min-height: calc(100vh - 92px);
}

.chatgpt-wrapper {
	max-width: 1080px;
	margin: 0 auto;
	border: 1px solid rgba(255,255,255,.82);
	border-radius: 24px;
	background: rgba(255,255,255,.72);
	box-shadow: 0 24px 80px rgba(24, 18, 43, .14);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	overflow: hidden;
	animation: slideUp .55s ease both;
}

.chatgpt-header {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	background: rgba(255,255,255,.78);
	border-bottom: 1px solid rgba(124, 58, 237, .1);
	backdrop-filter: blur(16px);
}

.chatgpt-brand {
	display: flex;
	align-items: center;
	gap: 13px;
}

.chatgpt-brand img,
.message-avatar img {
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(124, 58, 237, .22);
}

.chatgpt-brand h3 {
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
	margin: 0 0 4px;
	color: #111827;
}

.chatgpt-brand span,
.status-pill {
	font-size: 12px;
	font-weight: 600;
	color: #6B7280;
}

.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 12px;
	border: 1px solid rgba(124, 58, 237, .12);
	border-radius: 999px;
	background: rgba(246, 247, 251, .82);
}

.status-pill:before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #22C55E;
	box-shadow: 0 0 0 4px rgba(34, 197, 94, .13);
}

.chatgpt-chat {
	margin-left: auto;
	margin-right: auto;
	padding: 26px 22px 32px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(124,58,237,.45) transparent;
}

.chatgpt-chat::-webkit-scrollbar {
	width: 8px;
}

.chatgpt-chat::-webkit-scrollbar-thumb {
	background: rgba(124,58,237,.32);
	border-radius: 999px;
}

.assistant-message,
.user-message {
	display: flex;
	gap: 12px;
	margin-bottom: 18px;
	animation: fadeIn .42s ease both;
}

.user-message {
	justify-content: flex-end;
}

.message-avatar {
	width: 42px;
	min-width: 42px;
	height: 42px;
}

.message-box {
	max-width: min(760px, 84%);
	padding: 16px 18px;
	border-radius: 22px 22px 22px 8px;
	background: #fff;
	border: 1px solid rgba(17, 24, 39, .06);
	box-shadow: 0 14px 36px rgba(17, 24, 39, .08);
	color: #1F2937;
	font-size: 15px;
	line-height: 1.72;
}

.message-box p {
	margin: 0;
}

.user-box {
	border-radius: 22px 22px 8px 22px;
	background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 14px 34px rgba(124, 58, 237, .28);
}

.typing-box {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 72px;
	padding: 17px 18px;
}

.typing-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #7C3AED;
	animation: typingPulse 1.1s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
	animation-delay: .14s;
}

.typing-dot:nth-child(3) {
	animation-delay: .28s;
}

.chat-composer {
	position: sticky;
	bottom: 0;
	z-index: 4;
	padding: 16px 22px 22px;
	background: linear-gradient(180deg, rgba(246,247,251,0) 0%, rgba(246,247,251,.95) 28%, #F6F7FB 100%);
}

.composer-card {
	max-width: 940px;
	margin: 0 auto;
	padding: 16px;
	border-radius: 24px;
	background: rgba(255,255,255,.88);
	border: 1px solid rgba(255,255,255,.9);
	box-shadow: 0 18px 50px rgba(17, 24, 39, .12);
	backdrop-filter: blur(16px);
}

.composer-label {
	display: block;
	margin: 0 0 8px;
	color: #4B5563;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.composer-input.form-control {
	height: 52px;
	font-size: 14px;
}

.chat-send-btn,
.payment-btn {
	min-height: 52px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, #7C3AED 0%, #9333EA 52%, #C026D3 100%);
	color: #fff;
	font-weight: 800;
	box-shadow: 0 16px 30px rgba(124, 58, 237, .28);
	transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.chat-send-btn:hover,
.payment-btn:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 20px 38px rgba(124, 58, 237, .35);
	filter: saturate(1.08);
}

.payment-card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 16px;
}

.payment-icon {
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	border-radius: 18px;
	background: rgba(124,58,237,.1);
	font-size: 25px;
}

.payment-content h4 {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 800;
	color: #111827;
}

.payment-content p {
	margin: 0;
	color: #6B7280;
	font-size: 14px;
}

.blog-section .container-fluid {
	max-width: 1180px;
}

.chatgpt-wrapper {
	margin-top: 0;
	background: rgba(255,255,255,.94);
	border: 1px solid rgba(226, 232, 240, .95);
	box-shadow: 0 30px 90px rgba(30, 20, 56, .12);
}

.chatgpt-header {
	padding: 20px 24px;
	background:
		linear-gradient(135deg, rgba(255,255,255,.96) 0%, rgba(250,247,255,.94) 100%);
}

.chatgpt-brand img {
	width: 52px;
	height: 52px;
	padding: 7px;
	background: #fff;
	border: 1px solid rgba(124,58,237,.16);
}

.chatgpt-brand h3 {
	font-size: 21px;
}

.chatgpt-chat.col-md-8 {
	width: 100%;
	max-width: 960px;
	flex: 0 0 auto;
}

.chatgpt-chat.offset-2 {
	margin-left: auto;
}

#chat.chatgpt-chat {
	height: 430px !important;
	margin-top: 0 !important;
	padding: 34px 24px 38px;
	background:
		linear-gradient(90deg, rgba(124,58,237,.04) 1px, transparent 1px),
		linear-gradient(180deg, rgba(124,58,237,.035) 1px, transparent 1px),
		radial-gradient(circle at 18% 10%, rgba(124,58,237,.08), transparent 28%),
		#FBFCFF;
	background-size: 48px 48px, 48px 48px, auto, auto;
}

.assistant-message {
	align-items: flex-start;
	max-width: 790px;
}

.user-message {
	margin-left: auto;
	max-width: 660px;
}

.message-avatar {
	margin-top: 4px;
}

.message-avatar img {
	width: 42px;
	height: 42px;
	padding: 6px;
	background: #fff;
	border: 1px solid rgba(124,58,237,.14);
}

.message-box {
	position: relative;
	max-width: 100%;
	padding: 18px 20px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid rgba(226, 232, 240, .95);
	box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
	font-size: 15px;
	line-height: 1.75;
}

.assistant-message .message-box:before {
	content: "";
	position: absolute;
	top: 18px;
	left: -7px;
	width: 14px;
	height: 14px;
	background: #fff;
	border-left: 1px solid rgba(226, 232, 240, .95);
	border-bottom: 1px solid rgba(226, 232, 240, .95);
	transform: rotate(45deg);
}

.user-box {
	padding: 18px 21px;
	border-radius: 20px;
	background: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 48%, #EC4899 100%);
	box-shadow: 0 18px 42px rgba(124, 58, 237, .28);
	font-weight: 500;
}

.user-box p,
.user-box strong {
	color: #fff;
}

.composer-card {
	background: #fff;
	border: 1px solid rgba(226, 232, 240, .95);
	box-shadow: 0 22px 54px rgba(15, 23, 42, .13);
}

.composer-input.form-control {
	background: #F8FAFC;
	border-color: #E5E7EB;
}

.chat-send-btn,
.payment-btn {
	background: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 54%, #EC4899 100%);
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes typingPulse {
	0%, 80%, 100% { transform: translateY(0); opacity: .35; }
	40% { transform: translateY(-5px); opacity: 1; }
}

@media (max-width: 991px) {
	.chatgpt-wrapper {
		margin-top: 0;
		border-radius: 22px;
	}

	.payment-card {
		grid-template-columns: auto 1fr;
	}

	.payment-btn {
		grid-column: 1 / -1;
		width: 100%;
	}
}

@media (max-width: 767px) {
	.blog-section {
		padding-top: 82px !important;
		padding-bottom: 28px !important;
	}

	.chatgpt-wrapper {
		margin: 0;
		border-radius: 20px;
	}

	.chatgpt-header {
		padding: 15px;
	}

	.status-pill {
		display: none;
	}

	.chatgpt-chat {
		padding: 20px 14px 24px;
	}

	#chat.chatgpt-chat {
		height: 58vh !important;
		min-height: 430px;
		padding: 22px 14px 28px;
	}

	.message-box {
		max-width: 100%;
		padding: 14px 15px;
		font-size: 14px;
		border-radius: 20px 20px 20px 8px;
	}

	.user-box {
		border-radius: 20px 20px 8px 20px;
	}

	.chat-composer {
		padding: 12px 12px 16px;
	}

	.composer-card {
		padding: 12px;
		border-radius: 20px;
	}
}

@media (max-width: 420px) {
	.chatgpt-brand h3 {
		font-size: 16px;
	}

	.chatgpt-brand span {
		font-size: 11px;
	}

	.message-avatar,
	.message-avatar img,
	.chatgpt-brand img {
		width: 38px;
		height: 38px;
	}
}

/* Single-frame first-step layout */
.blog-section {
	padding-top: 72px !important;
	padding-bottom: 14px !important;
	min-height: 100vh !important;
}

.chatgpt-wrapper {
	max-width: 1060px;
	border-radius: 22px;
}

.chatgpt-header {
	padding: 14px 22px !important;
}

.chatgpt-brand img {
	width: 44px !important;
	height: 44px !important;
}

.chatgpt-brand h3 {
	font-size: 18px !important;
}

.chatgpt-brand span {
	font-size: 11px !important;
}

#chat.chatgpt-chat {
	height: clamp(265px, calc(100vh - 345px), 360px) !important;
	padding: 24px 24px 20px !important;
}

.assistant-message,
.user-message {
	margin-bottom: 14px !important;
}

.message-box {
	padding: 15px 18px !important;
	font-size: 14px !important;
	line-height: 1.65 !important;
}

.chat-composer {
	padding: 10px 22px 16px !important;
	position: relative !important;
}

.composer-card {
	padding: 12px !important;
	border-radius: 20px !important;
}

.composer-input.form-control,
.chat-send-btn,
.payment-btn {
	height: 48px !important;
	min-height: 48px !important;
}

@media (max-width: 767px) {
	.blog-section {
		padding-top: 70px !important;
		padding-bottom: 12px !important;
	}

	#chat.chatgpt-chat {
		height: 320px !important;
		min-height: 320px !important;
		padding: 18px 14px !important;
	}

	.chat-composer {
		padding: 10px 12px 14px !important;
	}
}


/* User spacing adjustment */
.chatgpt-wrapper {
	margin-top: 20px !important;
}

#chat.chatgpt-chat {
	height: clamp(265px, calc(100vh - 345px), 360px) !important;
}

@media (max-width: 767px) {
	#chat.chatgpt-chat {
		height: 320px !important;
		min-height: 320px !important;
	}
}

.user-summary-row {
	display: block;
	line-height: 1.65;
}
