/* ============================================
   Token Consumption Redesign - BEM Styles
   Modern, informative, high-conversion design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap');

/* Section */
.tc-section {
	padding: 64px 0;
	padding-top: 120px;
	background: #1a1a1a;
	position: relative;
	overflow: hidden;
}

.tc-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 1400px;
	height: 400px;
	background: radial-gradient(ellipse at top, rgba(227, 6, 19, 0.15) 0%, transparent 60%);
	pointer-events: none;
}

/* ============================================
   Hero Header
   ============================================ */
.tc-hero {
	text-align: center;
	margin-bottom: 48px;
}

.tc-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: rgba(227, 6, 19, 0.1);
	border: 1px solid rgba(227, 6, 19, 0.3);
	border-radius: 100px;
	color: #e30613;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 24px;
	animation: tc-badge-pulse 3s ease-in-out infinite;
}

@keyframes tc-badge-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

.tc-hero__badge-icon {
	width: 14px;
	height: 14px;
	animation: tc-sparkle 2s ease-in-out infinite;
}

@keyframes tc-sparkle {
	0%, 100% { transform: rotate(0deg); opacity: 1; }
	50% { transform: rotate(180deg); opacity: 0.7; }
}

.tc-hero__title {
	font-size: 52px;
	font-weight: 800;
	line-height: 1.1;
	color: #fff;
	margin: 0 0 16px;
	letter-spacing: -0.02em;
}

.tc-hero__title-accent {
	background: linear-gradient(135deg, #fffc0d 0%, #fff44f 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	position: relative;
}

.tc-hero__subtitle {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.6;
	color: #e5e5e5;
	margin: 0;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* ============================================
   Tabs
   ============================================ */
.tc-tabs {
	margin-bottom: 48px;
	position: relative;
}

.tc-tabs::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 800px;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
}

.tc-tabs__wrapper {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	padding-bottom: 24px;
}

.tc-tabs__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 24px;
	background: #313131;
	border: 2px solid transparent;
	border-radius: 12px;
	color: #e5e5e5;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.tc-tabs__item::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(227, 6, 19, 0.1), transparent);
	transition: left 0.5s ease;
}

.tc-tabs__item:hover::before {
	left: 100%;
}

.tc-tabs__item:hover {
	border-color: #e30613;
	transform: translateY(-2px);
	box-shadow: 0 4px 24px rgba(227, 6, 19, 0.3);
}

.tc-tabs__item.active {
	background: #e30613;
	color: #fff;
	border-color: #e30613;
	box-shadow: 0 4px 24px rgba(227, 6, 19, 0.3);
}

.tc-tabs__icon {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.tc-tabs__icon svg {
	width: 100%;
	height: 100%;
}

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

.tc-tabs__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}

.tc-tabs__desc {
	font-size: 12px;
	font-weight: 500;
	opacity: 0.7;
	line-height: 1.2;
}

/* ============================================
   Content
   ============================================ */
.tc-content {
	display: none;
	animation: tc-fade-in 0.5s ease;
}

@keyframes tc-fade-in {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tc-content.active {
	display: block;
}

/* ============================================
   Table
   ============================================ */
.tc-table-wrapper {
	background: #313131;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 24px;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.tc-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tc-table-scroll::-webkit-scrollbar {
	height: 8px;
}

.tc-table-scroll::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 4px;
}

.tc-table-scroll::-webkit-scrollbar-thumb {
	background: #e30613;
	border-radius: 4px;
}

.tc-table {
	width: 100%;
	border-collapse: collapse;
}

.tc-table__head {
	background: #464646;
	position: sticky;
	top: 0;
	z-index: 10;
}

.tc-table__th {
	padding: 16px 24px;
	text-align: left;
}

.tc-table__th--model {
	min-width: 260px;
}

.tc-table__th-inner {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tc-table__th-title {
	font-size: 14px;
	font-weight: 700;
	color: #fffc0d;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.tc-table__th-hint {
	font-size: 12px;
	font-weight: 500;
	color: #e5e5e5;
	opacity: 0.7;
}

.tc-table__tr {
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-table__tr:hover {
	background: rgba(227, 6, 19, 0.05);
}

.tc-table__td {
	padding: 16px 24px;
	font-size: 16px;
	line-height: 1.6;
	color: #e5e5e5;
	font-weight: 500;
}

.tc-table__td--model {
	font-weight: 600;
}

/* ============================================
   Model
   ============================================ */
.tc-model {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.tc-model__badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 6px;
	letter-spacing: 0.5px;
	line-height: 1;
}

.tc-model__badge--new {
	background: linear-gradient(135deg, #fffc0d 0%, #fff44f 100%);
	color: #1a1a1a;
	box-shadow: 0 2px 8px rgba(255, 252, 13, 0.3);
}

.tc-model__badge--search {
	background: linear-gradient(135deg, #3f51b5 0%, #5c6bc0 100%);
	color: #fff;
}

.tc-model__badge--free {
	background: linear-gradient(135deg, #673ab7 0%, #9575cd 100%);
	color: #fff;
}

.tc-model__badge--code {
	background: linear-gradient(135deg, #47cbff 0%, #7ae7ff 100%);
	color: #1a1a1a;
}

.tc-model__name {
	font-size: 15px;
	font-weight: 600;
	color: #fff;
}

.tc-model__brand {
	color: #e30613;
	font-weight: 700;
}

/* ============================================
   Values
   ============================================ */
.tc-value {
	font-family: 'JetBrains Mono', monospace;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.tc-value--accent {
	color: #fffc0d;
}

.tc-value--free {
	color: #9575cd;
	font-style: italic;
}

/* ============================================
   Info Block
   ============================================ */
.tc-info {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 24px;
	background: rgba(227, 6, 19, 0.05);
	border-left: 3px solid #e30613;
	border-radius: 8px;
}

.tc-info__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: #e30613;
	margin-top: 2px;
}

.tc-info__text {
	font-size: 16px;
	line-height: 1.6;
	font-weight: 500;
	color: #e5e5e5;
	margin: 0;
}

/* ============================================
   Cards (Image & Video Generation)
   ============================================ */
.tc-cards {
	display: grid;
    grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.tc-card {
	background: #313131;
	border: 2px solid transparent;
	border-radius: 16px;
	padding: 24px;
	padding-right: 18px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.tc-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at top right, rgba(227, 6, 19, 0.05) 0%, transparent 50%);
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-card:hover {
	border-color: #e30613;
	transform: translateY(-4px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.tc-card:hover::before {
	opacity: 1;
}

.tc-card--wide {
	grid-column: 1 / -1;
}

.tc-card--highlight {
	border-color: rgba(227, 6, 19, 0.3);
}

.tc-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 12px;
	position: relative;
	z-index: 1;
}

.tc-card__title {
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	margin: 0;
	letter-spacing: -0.01em;
}

.tc-card__tag {
	font-size: 12px;
	font-weight: 600;
	color: #e5e5e5;
	padding: 4px 10px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 6px;
    margin-right: 6px;
}

.tc-card__badge {
	padding: 6px 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 6px;
	letter-spacing: 0.5px;
    margin-right: 6px;
}

.tc-card__badge--new {
	background: linear-gradient(135deg, #fffc0d 0%, #fff44f 100%);
	color: #1a1a1a;
	box-shadow: 0 2px 8px rgba(255, 252, 13, 0.3);
}

.tc-card__badge--premium {
	background: linear-gradient(135deg, #e30613 0%, #ff1a28 100%);
	color: #fff;
	box-shadow: 0 2px 8px rgba(227, 6, 19, 0.3);
}

.tc-card__body {
	position: relative;
	z-index: 1;
    max-height: 315px;
    overflow: auto;
    padding-right: 6px;
}

.tc-card__table-wrapper {
	overflow-x: auto;
	margin-bottom: 12px;
	border-radius: 8px;
}

.tc-card__table {
	width: 100%;
	border-collapse: collapse;
}

.tc-card__table thead {
	background: #464646;
}

.tc-card__table th,
.tc-card__table td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tc-card__table th {
	font-size: 12px;
	font-weight: 700;
	color: #fffc0d;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.tc-card__table td {
	font-size: 16px;
	line-height: 1.6;
	color: #e5e5e5;
}

.tc-card__table tbody tr:hover {
	background: rgba(227, 6, 19, 0.05);
}

.tc-card__size {
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
}

.tc-card__value {
	font-family: 'JetBrains Mono', monospace;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.tc-card__value--premium {
	color: #fffc0d;
}

.tc-card__footer {
	margin-top: 12px;
	position: relative;
	z-index: 1;
}

.tc-card__note {
	font-size: 12px;
	font-weight: 500;
	color: #e5e5e5;
	opacity: 0.7;
	font-style: italic;
}

/* ============================================
   Modes (Midjourney)
   ============================================ */
.tc-modes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.tc-mode {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	background: #464646;
	border-radius: 12px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-mode:hover {
	background: rgba(227, 6, 19, 0.1);
	transform: translateY(-2px);
}

.tc-mode__icon {
	font-size: 28px;
	line-height: 1;
}

.tc-mode__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tc-mode__label {
	font-size: 13px;
	font-weight: 600;
	color: #e5e5e5;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.tc-mode__value {
	font-family: 'JetBrains Mono', monospace;
	font-size: 20px;
	font-weight: 700;
	color: #fffc0d;
}

/* ============================================
   Video Options
   ============================================ */
.tc-video-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tc-video-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	background: #464646;
	border-radius: 8px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-video-option:hover {
	background: rgba(227, 6, 19, 0.1);
}

.tc-video-option__label {
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.tc-video-option__value {
	font-family: 'JetBrains Mono', monospace;
	font-size: 16px;
	font-weight: 700;
	color: #fffc0d;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
	.tc-section {
		padding: 48px 0;
	}
	
	.tc-hero__title {
		font-size: 42px;
	}
}

@media (max-width: 768px) {
	.tc-section {
		padding: 32px 0;
	}
	
	.tc-hero {
		margin-bottom: 32px;
	}
	
	.tc-hero__title {
		font-size: 36px;
	}
	
	.tc-hero__subtitle {
		font-size: 16px;
	}
	
	.tc-tabs {
		margin-bottom: 32px;
	}
	
	.tc-tabs__wrapper {
		flex-direction: column;
	}
	
	.tc-tabs__item {
		width: 100%;
		justify-content: center;
	}
	
	.tc-table__th,
	.tc-table__td {
		padding: 12px 16px;
		font-size: 14px;
	}
	
	.tc-table__th--model {
		min-width: 200px;
	}
	
	.tc-cards {
		grid-template-columns: 1fr;
	}
	
	.tc-modes {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.tc-hero__title {
		font-size: 28px;
	}
	
	.tc-hero__subtitle {
		font-size: 15px;
	}
	
	.tc-table__th,
	.tc-table__td {
		padding: 8px 12px;
		font-size: 13px;
	}
	
	.tc-card {
		padding: 16px;
		padding-right: 18px;
	}
	
	.tc-card__title {
		font-size: 18px;
	}
	
	.tc-card__table th,
	.tc-card__table td {
		padding: 8px 12px;
		font-size: 13px;
	}
}
