html,
body {
	font-family: sans-serif;
	font-size: 15px;
	margin: 0 auto;
	color: #1b1b1b;
	padding: 0;
	background-color: #fff;
}

a:visited,
a:hover,
a:link {
	text-decoration: none !important;

}

.clearfix:after {
	visibility: hidden;
	display: block;
	font-size: 0;
	content: " ";
	clear: both;
	height: 0;
}

h1,
h2,
h3 {
	margin: 0;
}

.fl {
	float: left;
}

ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

p {
	margin: 0 0 10px;
}

.mag0 {
	margin: 0 !important;
}

.magr10 {
	margin-right: 10px;
}

.magT40 {
	margin-top: 40px;
}

.magT10 {
	margin-top: 10px;
}

.relative {
	position: relative;
}

.img {
	max-width: 100%;
}

.container {
	max-width: 960px;
	margin: 0 auto;
}

.flex {
	display: flex;
}

.flex-a-i-center {
	align-items: center;
}

.center {
	text-align: center;
}

html:not(.tab-outline) *:focus {
	outline: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
	width: 100%;
}

header {
	border-bottom: 1px solid #efefef;
	background-color: #ffffff;
	position: relative;
	z-index: 9;
}

.head_nav {
	text-align: center;
	display: flex;
	align-items: center;
	position: relative;
}

.logo {
	margin: 20px 0 20px 0;
}

.logo img {
	height: 32px;
}

.logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.logo span {
	color: #1b1b1b;
	font-weight: 600;
	font-size: 16px;
	margin-left: 16px;
}

.language {
	float: right;
	position: absolute;
	right: 40px;
	color: #1b1b1b;
	cursor: pointer;
}


ul.nav {
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid #dfdfdf;
}

ul.nav li {
	padding: 0 30px;
}

ul.nav a {
	color: #4a474c;
	display: inline-block;
	padding: 30px 0;
}

ul.nav a.active {
	border-bottom: 2px solid #0C0C0C;
	font-weight: 600;
}

ul.nav a:hover {
	color: #0C0C0C;
}

.download-tiktok-video-online-section,
.humanizer-section {
	padding: 50px 20px 20px;
}

h1.title,
h2.title,
h3.title {
	font-weight: 600;
	margin-bottom: 15px;
}

h1.title {

	color: #000;


}


p.title-description {
	color: #1b1b1b;
}

.search-form {
	margin: 28px 0 25px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.search-form input {
	flex: 1 68%;
	border: 1px solid #d1dbe0;
	box-sizing: border-box;
	-moz-border-radius: 12px;
	-webkit-border-radius: 12px;
	-khtml-border-radius: 12px;
	border-radius: 0px;
	height: 56px;
	padding: 17px 20px;
	font-size: 14px;
}

.btn-activecolor {
	background: #4169e1; /* match footer blue */
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	-khtml-border-radius: 8px;
	border-radius: 0px;
	padding: 18px 40px;
	display: inline-block;
	border: none;
	color: #fdfdfe;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;

	box-shadow: 0 4px 4px 0 #00000040;
}

.btn-activecolor:hover {
	background: #3154C6;
	color: #fff;
	box-shadow: none;
}

.btn-gray {
	background: #0C0C0C;
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	-khtml-border-radius: 8px;
	border-radius: 0px;
	padding: 18px 40px;
	display: inline-block;
	border: none;
	color: #fdfdfe;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 0 4px 4px 0 #00000040;
}

.download-tiktok-video-online-listitem {
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	justify-content: space-evenly;
	width: 100%;
	margin-top: 40px;
}

.download-tiktok-video-online-listitem li {
	width: 30%;
	background: #fff;
	border: 1px solid #e0e0e0;
	-moz-border-radius: 12px;
	-webkit-border-radius: 12px;
	-khtml-border-radius: 12px;
	border-radius: 12px;
	margin: 0 8px 0 0;
	transition: all 0.2s ease;
}

.download-tiktok-video-online-listitem li:hover {
	border-color: #4169E1;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}

.download-tiktok-video-online-listitem li:nth-child(3n) {
	margin-right: 0;
}

.download-tiktok-video-online-listitem li:nth-child(1) .bg-listitem {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.download-tiktok-video-online-listitem li:nth-child(2) .bg-listitem {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.download-tiktok-video-online-listitem li:nth-child(3) .bg-listitem {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.download-tiktok-video-online-listitem li:nth-child(4) .bg-listitem {
	background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.download-tiktok-video-online-listitem li:nth-child(5) .bg-listitem {
	background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.download-tiktok-video-online-listitem li:nth-child(6) .bg-listitem {
	background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.download-tiktok-video-online-listitem li .post-image {
	height: 84px;
	padding: 50px;
	display: flex;
	justify-content: center;
	border-radius: 12px 12px 0 0;
}

.bg-listitem {
	background: #0C0C0C;
}

.download-tiktok-video-online-listitem li .post-content {
	padding: 20px;
	text-align: left;
}

.download-tiktok-video-online-listitem li .post-content h3 {
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 10px;
	color: #1b1b1b;
}

.download-tiktok-video-online-listitem li .post-content p {
	line-height: 22px;
	margin-bottom: 0;
	color: #666;
}

ul.listicon {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 50px 0;
}

ul.listicon li:not(:last-child) {
	margin-right: 25px;
}

.ps1 {
	max-width: 882px;
	margin: 0 auto;
	line-height: 24px;
}

ul.liststep {
	flex-wrap: nowrap;
	max-width: 100%;
}

ul.liststep li {
	display: table;
	width: 33.33333%;
}

ul.liststep li .number {
	font-weight: 600;
	font-size: 32px;
	width: 80px;
	height: 80px;
	line-height: 80px;
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	-khtml-border-radius: 8px;
	border-radius: 8px;
	display: table;
	background: rgba(12, 12, 12, 0.08);
	color: #0C0C0C;
	text-align: center;
	margin-right: 20px;
}

ul.liststep li span {
	text-align: left;
	display: table-cell;
	vertical-align: middle;
}

.contact {
	border-top: 1px solid #dfdfdf;
	padding: 60px 0;
	margin-top: 20px;
}

.contact .container {
	max-width: 840px;
	text-align: center;
}

.contact-form {
	text-align: left;
	margin: 50px 0 20px;
}

.form-control {
	background: #fafafa;
	border: 1px solid #e8e8e8;
	box-sizing: border-box;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	-khtml-border-radius: 6px;
	border-radius: 6px;
	color: #666;
	font-size: 13px;
	padding: 20px;
}

textarea.form-control {
	width: 100%;
	resize: none;
	margin-bottom: 10px;
	font-family: open sans, sans-serif;
}

input.form-control {
	height: 56px;
	width: 38.333333%;
	margin-right: 10px;
}


.copyright {
	line-height: 20px;
	color: #fff;
	text-align: center;
	font-size: 12px;
}


/* Footer menu */


footer {
	background: #4169e1;
	padding: 30px 0px;
	margin-top: 0px;
}

.footer_nav {
	text-align: center;
	padding: 20px 0px;
}

.footer_nav ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	align-items: center;
	justify-content: center;
	display: flex;

}

.footer_nav li {
	float: left;
	font-size: 14px;
}

.footer_nav li a {
	display: block;
	color: white;
	text-align: center;
	padding: 16px;
	text-decoration: none;
}

.footer_nav li a:hover {

}


.line {
	border-bottom: 1px solid #dfdfdf;
}

.thumbnail {
	background: #e9ecef;
	padding: 20px;
	text-align: left;
	display: flex;
	margin: 28px 0 25px;
}

.thumbnail .content {
	display: flex;
}


.items-more li {
	margin-bottom: 30px;
}

.privacy p {
	font-size: 16px;
	line-height: 24px;
	color: #000;
}

.privacy ul {
	list-style: disc;
	padding-left: 20px;
	font-size: 16px;
	line-height: 24px;
	color: #000;
}

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


.thumb-img {
	width: 300px;
	max-width: 40%;
	padding-right: 20px;
}

@media only screen and (max-width: 640px) {
	.logo {
		margin-left: 0;
	}

	.search-form {
		display: block;
	}

	.custom-select {
		width: 100% !important;
		margin-top: 10px;
		margin-left: 0px !important;
		margin-right: 0px !important;
	}

	.container {
		margin: 0 32px;
	}

	.language {
		right: 0px;
		color: #1b1b1b;
	}

	.head_nav {
		justify-content: flex-start;
	}

	.search-form input {
		width: 100%;
	}

	.download-tiktok-video-online-listitem,
	ul.liststep,
	.listvideo {
		display: block;
	}

	ul.liststep li {
		width: 100%;
	}

	.download-tiktok-video-online-listitem li {
		width: 100%;
	}

	.download-tiktok-video-online-listitem li:last-child {
		margin-right: auto;
	}

	.search-form .btn-activecolor {
		width: 100%;
		margin: 10px 0 0;
	}

	ul.listicon {
		margin: 20px 0 0;
	}

	ul.listicon li {
		margin: 0 10px 2% !important;
	}

	.download-tiktok-video-online-section {
		padding: 30px 0 0;
	}
	.humanizer-section {
		padding: 30px 0 0;
	}

	h1.title,
	h2.title,
	h3.title {
		font-size: 19px;
	}

	.logo span {
		font-size: 14px;
	}

	.contact {
		padding: 30px 0;
	}

	input.form-control {
		width: 100%;
		margin: 0 0 10px;
	}

	.btn-gray {
		width: 100%;
	}

	ul.nav a {
		padding: 30px 10px;
		text-align: center;
	}

	ul.listicon li img {
		max-width: 85px;
	}

	.nowidth {
		width: auto;
		margin-bottom: 40px;
	}

	.thumb-img {
		max-width: 100%;
		width: 100%;
	}


	.download-tiktok-video-online-listitem li:nth-child(3n) {
		margin-right: auto;
	}

	ul.nav li {
		padding: 0 15px;
	}

	.thumbnail {
		padding: 15px;
		display: block;
	}

	.thumbnail .content {
		display: block;
		margin-left: 0;
	}

	.thumbnail .content h3 {
		font-size: 16px;
		padding-top: 5px;
	}

	.detail .form-control {
		display: block;
		height: 40px;
		margin-bottom: 10px;
	}

	.mesg-convert {
		display: block;
		text-align: center;
	}

	ul.nav {
		justify-content: flex-start !important;
		overflow-x: scroll;
		position: relative;
		clear: both;
	}
}

@media only screen and (max-width: 700px) and (min-width: 380px) {

	.form-control-small {
		max-width: 50%;
	}

	.share-document {
		flex-direction: column!important;
		height: 110px!important;
	}

	.iframe-content {
		margin-bottom: -120px!important;
		height: calc(100vh - 100px)!important;
	}
}

@media only screen and (max-width: 380px) {

	.share-document {
		height: 110px!important;
		flex-direction: column!important;
	}

	.iframe-content {
		margin-bottom: -120px!important;
		height: calc(100vh - 100px)!important;
	}

	.logo {
		margin-left: 0;
	}

	.logo span {
		font-size: 12px;
	}

	.container {
		margin: 0 15px;
	}

	.copyright ul a {
		padding: 0 10px;
	}

	.download-tiktok-video-online-listitem li {
		width: 100%;
	}

	.block-xs {
		display: block !important;
	}
}




.nopading {
	padding-bottom: 0;
}

.detail .form-control.hidden,
.hidden {
	display: none;
}

.text-box p {
	line-height: 25px;
	text-align: justify;
}


.sprites {
	position: absolute;
	width: 0;
	height: 0;
	pointer-events: none;
	user-select: none;
}


.email-block {
	width: 100%;
	margin-top: 30px;
	margin-bottom: 80px;

	height: 70vh;
}

.email-block a {
	font-size: 18px;
}

.email-block img {

	height: 84px;
	margin-top: 40px;
	margin-bottom: 40px;
}

.email-block-content {
	padding: 100px 0;


}


/* Стили для выпадающего списка */
select#language-select {
	float: right;
	position: absolute;
	right: 0;
	padding: 8px 0px;
	font-size: 14px;
	width: auto; /* Измените размер по вашему усмотрению */
	border: none;
	border-radius: 5px;
	background: none;
	background-repeat: no-repeat;
	background-position: right center;
	cursor: pointer;
}

/* Стили для выпадающего меню (после нажатия на селектор) */
select#language-select:focus {
	outline: none;
	border: 1px solid #000;
}

/* Стили для опций в выпадающем списке */
select#language-select option {
	font-size: 14px;
	background-color: #fff;
	color: #333;
	padding: 16px 10px; /* Изменяем отступы для опций */
	margin: 16px 0; /* Добавляем воздух между опциями */
}


#messageDiv {
	width: 100%;
	word-wrap: break-word;
	color: #FF4B33;
}


.error-message {
	color: red;
}



.iframe-content {
	width: 100%;
	margin-top: -50px;
	margin-bottom: -50px;
	z-index: 1;
	position: relative;
	height: calc(100vh - 40px);
}


/* styles.css */
.flash-message {
	padding: 10px;
	margin-bottom: 10px;
	border: 1px solid #ff0000; /* Red border */
	background-color: #ffdddd; /* Light red background */
	color: #ff0000; /* Red text color */
	border-radius: 5px;
	font-size: 14px;
}

/* Style for success messages */
.success-message {
	border: 1px solid #00ff00; /* Green border */
	background-color: #ddffdd; /* Light green background */
	color: #00ff00; /* Green text color */
}


.share-document{
	width: 100%;
	height: 60px;
	background-color: rgb(255, 255, 255);
	position: relative;
	z-index: 9;
	bottom: 0px;
	padding: 8px 0px;
	display: flex;
	-webkit-box-pack: center;
	justify-content: space-between;
	-webkit-box-align: center;
	align-items: center;
}

.contact-us-page {
	width: 100%;
	height: 100vh;
	display: flex;
	-webkit-box-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	align-items: center;
	flex-direction: column;
}

.contacts-email {
	font-size: 24px;
}


.text-section p {
	line-height: 24px;
}

hr {
	margin: 24px 0 24px 0;
	border-top: 1px solid #efefef;
}

.transcript {
	width: 100%;
}

.video-text-box {
	padding: 24px;
	margin: 24px 0px 24px 0px;
	border-radius: 12px;
	background: #efefef;
}

.result-video {
	padding: 48px 0px 48px 0px;
	
}

.responsive-iframe {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin-top: 24px;
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


.copy-message {
    color: green;
    margin-left: 10px;
    font-size: 14px;
    visibility: hidden; /* Initially hidden */
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

.copy-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    margin: 24px;
}


.mg24 {
	margin: 24px 0px 24px 0px;
}


.partners-links {
	width: 100%;
	border-bottom: 1px solid #efefef;
}


.btn-activecolor-partner {
	text-transform: uppercase;
	border-radius: 0px;
	padding: 18px 0px;
	display: inline-flex;
	align-items: center; /* Vertically center the content */
	border-bottom: 1px solid #0C0C0C;
	color: #0C0C0C;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
}

.btn-activecolor-partner img {
	margin-right: 8px; /* Add space between the image and text */
}

.btn-activecolor-partner:hover {
	border-bottom: 1px solid #FF4B33;
	color: #FF4B33;
	box-shadow: none;
}

/* ===================== Bookmark Buy Coffee Banner ===================== */
.bookmark-banner {
  background: rgba(255, 75, 51, 0.12); /* Slightly stronger accent */
  border: 1px solid rgba(255, 75, 51, 0.6);
  box-shadow: 0 0 6px rgba(255, 75, 51, 0.12);
  border-radius: 10px;
  color: #1b1b1b;
  padding: 10px 12px;
  text-align: center;
  width: 100%;
  margin: 16px 0;
}

.banner-content {
  max-width: 100%;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.4;
}

.coffee-icon {
  margin-right: 5px;
  font-size: 18px;
}

.coffee-link {
  color: #FF4B33;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.coffee-link:hover {
  color: #e55a2b;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .banner-content {
    font-size: 14px;
  }
  .bookmark-banner {
    padding: 8px 10px;
    margin: 12px 0;
  }
}

/* ===================== AI Humanizer Form Styles ===================== */

/* ===================== FAQ (sf_faq) clean card layout ===================== */
.sf_faq {
  margin-top: 12px;
}

.sf_faq .title {
  margin-bottom: 18px;
}

.sf_faq .faq_item {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sf_faq .faq_item:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.sf_faq .faq_item_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sf_faq .faq_item_title h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #132238;
}

/* Decorative chevron on the right (no toggle; answers remain visible) */
.sf_faq .faq_item_title::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #9aa6b2;
  border-bottom: 2px solid #9aa6b2;
  transform: rotate(45deg);
  margin-left: 12px;
  flex-shrink: 0;
  opacity: 0.8;
}

.sf_faq .faq_item_content {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e9edf3;
  color: #333;
  line-height: 24px;
}

.sf_faq .faq_item_content p,
.sf_faq .faq_item_content div,
.sf_faq .faq_item_content ol,
.sf_faq .faq_item_content ul {
  margin: 0;
}

.sf_faq .faq_item_content ol {
  padding-left: 18px;
}

@media only screen and (max-width: 640px) {
  .sf_faq .faq_item {
    padding: 16px;
  }
  .sf_faq .faq_item_title h4 {
    font-size: 16px;
  }
}

/* ===================== HOW Steps: compact card layout ===================== */
ul.listicon.liststep {
  gap: 16px;
}

ul.listicon.liststep li {
  display: block;
  width: 33.33333%;
  background: #E9F8F0; /* light mint like reference, slightly toned down */
  border: 1px solid #D7EEE4;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Remove default right margin from generic ul.listicon rule to keep equal gutters */
ul.listicon.liststep li:not(:last-child) {
  margin-right: 0 !important;
}

ul.listicon.liststep li:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

ul.listicon.liststep li .number {
  width: 44px;
  height: 44px;
  line-height: 44px;
  border-radius: 10px;
  background: #fff;
  color: #0C0C0C;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  margin: 0 0 14px 0; /* space below badge */
}

/* Step text */
ul.listicon.liststep li span:last-child {
  display: block;
  font-size: 18px;
  line-height: 1.6;
  color: #132238;
}

@media only screen and (max-width: 640px) {
  ul.listicon.liststep {
    gap: 12px;
  }
  ul.listicon.liststep li {
    width: 100%;
    padding: 18px;
  }
  ul.listicon.liststep li .number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    margin-bottom: 10px;
  }
  ul.listicon.liststep li span:last-child {
    font-size: 16px;
  }
}

/* ===================== Humanizer Features Section (text left, image right) ===================== */
.humanizer-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 40px;
}

.humanizer-feature-list li {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.humanizer-feature-list .post-content {
  flex: 1;
  text-align: left;
  padding: 0;
}

.humanizer-feature-list .post-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1b1b1b;
}

.humanizer-feature-list .post-content p {
  line-height: 22px;
  margin-bottom: 0;
  color: #555;
}

.humanizer-feature-list .post-image {
  width: 320px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f8f9ff;
  border: 1px solid #e6e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.humanizer-feature-list .post-image img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

/* Desktop: alternate image/text positions (even rows = image left) */
@media only screen and (min-width: 641px) {
  .humanizer-feature-list li:nth-child(even) {
    flex-direction: row-reverse;
  }
}

@media only screen and (max-width: 640px) {
  .humanizer-feature-list li {
    flex-direction: column;
    align-items: flex-start;
  }
  .humanizer-feature-list .post-image {
    width: 100%;
    height: 160px;
  }
}

/* Input Tabs */
.input-tabs {
  display: flex;
  gap: 8px;
  margin: 30px auto 0;
  max-width: 300px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 4px;
  background: #f5f5f5;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.tab-btn svg {
  width: 20px;
  height: 20px;
}

.tab-btn.active {
  background: #fff;
  color: #1b1b1b;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.tab-btn:hover:not(.active) {
  color: #1b1b1b;
}

/* Coming soon badge inside Document tab */
/* removed label-soon - not used */

/* Humanizer Form */
.humanizer-form {
  margin: 25px auto 40px;
  max-width: 100%;
  --humanizer-input-height: 280px;
}

.tab-content {
  animation: fadeIn 0.3s ease;
}

.tab-content.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Textarea Wrapper */
.textarea-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.humanizer-textarea {
  width: 100%;
  height: var(--humanizer-input-height);
  min-height: 0;
  padding: 20px;
  border: 1px solid #d1dbe0;
  border-radius: 12px;
  font-size: 15px;
  font-family: sans-serif;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.humanizer-textarea:focus {
  outline: none;
  border-color: #0C0C0C;
}

.humanizer-textarea::placeholder {
  color: #999;
}

.char-counter {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 13px;
  color: #666;
  background: rgba(255,255,255,0.9);
  padding: 4px 8px;
  border-radius: 4px;
}

/* Humanizer Options */
.humanizer-options {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.option-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.option-label svg {
  width: 16px;
  height: 16px;
  color: #4169E1;
  flex-shrink: 0;
}

.option-select {
  width: 100%;
  padding: 11px 38px 11px 14px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  color: #212529;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%234169E1' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.option-select:hover {
  border-color: #4169E1;
  box-shadow: 0 2px 4px rgba(65,105,225,0.1);
}

.option-select:focus {
  outline: none;
  border-color: #4169E1;
  box-shadow: 0 0 0 3px rgba(65,105,225,0.1);
}

/* Humanize Button */
.btn-humanize {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 40px;
  background: #4169E1;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(65,105,225,0.3);
}

.btn-humanize:hover {
  background: #3154C6;
  box-shadow: 0 6px 16px rgba(65,105,225,0.4);
  transform: translateY(-1px);
}

.btn-humanize:active {
  transform: translateY(0);
}

.btn-humanize svg {
  width: 20px;
  height: 20px;
}

.btn-humanize.loading .btn-text {
  display: none;
}

.btn-humanize.loading .btn-loading {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

/* Red note for coming soon */
.coming-soon-red {
  color: #e5534b;
}

/* Spinner Animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* Document Upload Area */
.document-upload-area {
	border: 1px solid #d1dbe0; /* match textarea */
	border-radius: 12px; /* match textarea */
	padding: 20px; /* match textarea */
	text-align: center;
	margin-bottom: 20px;
	background: #f7f7f7; /* subtle gray for drag area */
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	height: var(--humanizer-input-height);
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center; /* vertically center to keep height consistent */
	overflow: auto;
	box-sizing: border-box; /* consistent sizing with textarea */
}

.document-upload-area:hover {
	border-color: #4169E1;
}

.document-upload-area:focus-within {
	outline: none;
	border-color: #0C0C0C; /* similar focus to textarea */
	box-shadow: 0 0 0 3px rgba(65,105,225,0.1);
}

.upload-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}

.file-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.pdf-icon {
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
}

.ppt-icon {
  background: linear-gradient(135deg, #FF9A56 0%, #FF7B54 100%);
}

.txt-icon {
  background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
}

.word-icon {
  background: linear-gradient(135deg, #5C7CFA 0%, #4263EB 100%);
}

.upload-text {
  font-size: 16px;
  color: #1b1b1b;
  margin-bottom: 6px;
}

.upload-limit {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: #4169E1;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Selected file summary */
.file-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e6e8f0;
  border-radius: 10px;
  background: #ffffff;
  box-sizing: border-box;
}

.file-summary.hidden {
  display: none !important;
}

.file-summary .file-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 12px;
}

.file-meta {
  text-align: left;
}

.file-name {
  font-weight: 600;
  color: #1b1b1b;
  word-break: break-word;
}

.file-size {
  color: #666;
  font-size: 13px;
  margin-top: 2px;
}

/* Inline waitlist status icon */
.waitlist-status {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  font-size: 16px;
}
.waitlist-status.success { color: #2ea44f; }
.waitlist-status.error { color: #e5534b; }

/* Waitlist compact input row */
.waitlist-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 560px;
}

.waitlist-input {
  flex: 1;
  padding: 11px 12px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: #212529;
  outline: none;
  transition: all 0.2s ease;
}

.waitlist-input:focus {
  border-color: #4169E1;
  box-shadow: 0 0 0 3px rgba(65,105,225,0.1);
}

@media only screen and (max-width: 640px) {
  .waitlist-row {
    flex-direction: column;
    max-width: 100%;
  }
  .waitlist-input {
    width: 100%;
  }
}

.btn-upload:hover {
  background: #3154C6;
  transform: translateY(-1px);
}

.btn-upload svg {
  width: 20px;
  height: 20px;
}

/* Example Cards */
.example-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.example-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px 16px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.example-card:hover {
  border-color: #4169E1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.example-tag {
  display: inline-block;
  color: #4169E1;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.example-text {
  font-size: 13px;
  color: #1b1b1b;
  line-height: 1.4;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.example-date {
  font-size: 11px;
  color: #999;
  margin: 0;
}

/* Responsive Styles */
@media only screen and (max-width: 640px) {
  .humanizer-form {
    --humanizer-input-height: 200px; /* smaller textarea height on mobile */
  }
  .input-tabs {
    max-width: 100%;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .humanizer-textarea {
    height: var(--humanizer-input-height);
    padding: 16px;
    font-size: 14px;
  }

  /* Compact options: Length + Similarity on one row, Style on second row */
  .humanizer-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
  }
  .humanizer-options .option-group {
    min-width: 0;
  }
  .humanizer-options .option-group:nth-child(3) {
    grid-column: 1 / -1;
  }

  .option-label {
    font-size: 12px;
  }

  .btn-humanize {
    padding: 13px 32px;
    font-size: 15px;
  }

  .example-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .example-card {
    padding: 12px 14px;
  }

  .example-text {
    font-size: 12px;
  }

  .upload-icons {
    gap: 12px;
  }

  .file-icon {
    width: 60px;
    height: 60px;
    font-size: 12px;
  }
  .document-upload-area {
    height: auto;            /* avoid internal scrolling on small screens */
    overflow: visible;       /* let content expand naturally */
    padding: 12px;           /* tighter spacing */
  }
  /* Hide heavy visuals to optimize space on small screens */
  .document-upload-area .upload-icons,
  .document-upload-area .upload-limit {
    display: none !important;
  }
  .document-upload-area .upload-text {
    margin-bottom: 8px;
    font-size: 15px;
  }

  /* Feature list: full-width, text above image */
  .humanizer-feature-list li {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
  }
  .humanizer-feature-list .post-image {
    width: 100%;
    height: auto;
  }
  .humanizer-feature-list .post-image img {
    width: 100%;
    height: auto;
  }

  /* HOW steps list: fix overflow and spacing */
  ul.listicon.liststep {
    width: 100%;
    padding: 0;
  }
  ul.listicon.liststep li {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 12px 0 !important; /* override generic ul.listicon mobile margins */
  }
}

@media only screen and (max-width: 380px) {
  .humanizer-options {
    gap: 10px;
    padding: 12px;
  }

  .option-label {
    font-size: 11px;
  }

  .option-select {
    font-size: 13px;
    padding: 10px 36px 10px 12px;
  }

  .char-counter {
    font-size: 12px;
  }

  .example-cards {
    grid-template-columns: 1fr;
  }

  .example-card {
    padding: 10px 12px;
  }
}
