/* =========================================================================
 * Meta Ads Analiz Paneli — 3 adımlı akış
 * Koyu "sahne" başlık + beyaz kartlar. Tek ekranda tek iş.
 * ====================================================================== */

.tma-ads, .tma-ads *, .tma-ads *::before, .tma-ads *::after { box-sizing: border-box; }

.tma-ads {
	--ads-ink: #0b0d13;
	--ads-mavi: #2563eb;
	--ads-mor: #7c3aed;
	--ads-text: var(--tma-text, #16181d);
	--ads-muted: var(--tma-text-muted, #6b7280);
	--ads-line: rgba(0, 0, 0, 0.08);
	--ads-cizgi2: rgba(0, 0, 0, 0.055);
	--ads-surface: var(--tma-surface, #fff);
	--ads-zemin: var(--tma-background, #fff);
	--ads-radius: 20px;
	max-width: 940px;
	margin: 0 auto;
	padding: 0 16px 80px;
	color: var(--ads-text);
	-webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- Sahne */

.tma-ads__sahne {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	background: linear-gradient(160deg, #11141d 0%, #0b0d13 55%, #0a0c12 100%);
	color: #fff;
	padding: 40px 28px 0;
	margin: 12px 0 22px;
	box-shadow: 0 22px 50px -28px rgba(11, 13, 19, 0.75);
}

/* Aurora ışığı — hafif, dikkat dağıtmayan derinlik. */
.tma-ads__isik {
	position: absolute;
	inset: -45% -20% auto -20%;
	height: 340px;
	background:
		radial-gradient(closest-side, rgba(37, 99, 235, 0.5), transparent 72%) 22% 55% / 62% 100% no-repeat,
		radial-gradient(closest-side, rgba(124, 58, 237, 0.42), transparent 72%) 78% 40% / 58% 100% no-repeat;
	filter: blur(12px);
	opacity: 0.85;
	pointer-events: none;
	animation: tma-ads-suz 14s ease-in-out infinite alternate;
}
@keyframes tma-ads-suz {
	from { transform: translate3d(-3%, 0, 0) scale(1); }
	to   { transform: translate3d(3%, 4%, 0) scale(1.08); }
}

.tma-ads__sahneic { position: relative; text-align: center; }

.tma-ads__etiket {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	padding: 5px 12px;
}
.tma-ads__etiket svg { color: #a5b8ff; }

.tma-ads__sahneic h1 {
	font-size: clamp(28px, 4.6vw, 40px);
	line-height: 1.1;
	letter-spacing: -0.03em;
	font-weight: 700;
	margin: 14px 0 10px;
	color: #fff;
}
.tma-ads__sahneic p {
	color: rgba(255, 255, 255, 0.66);
	font-size: 15px;
	line-height: 1.6;
	max-width: 520px;
	margin: 0 auto 14px;
}
.tma-ads__hak {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	padding: 6px 15px;
}
.tma-ads__hak svg { opacity: 0.7; flex: 0 0 auto; }
.tma-ads__ayrac { color: rgba(255, 255, 255, 0.3); }
/* Erişim koşulu — aynı rozetin içinde, sayaçtan bir tık geride. */
.tma-ads__kosul { color: rgba(255, 255, 255, 0.58); font-weight: 500; }

/* Adım rayı */
.tma-ads__ray {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	list-style: none;
	margin: 30px 0 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.tma-ads__ray li {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px 6px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.42);
	counter-increment: adim;
	transition: color 0.25s ease;
}
.tma-ads__ray li::before {
	content: counter(adim);
	display: grid;
	place-items: center;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	font-size: 11.5px;
	font-weight: 700;
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: rgba(255, 255, 255, 0.5);
	transition: all 0.25s ease;
}
.tma-ads__ray { counter-reset: adim; }
.tma-ads__ray li[data-durum="aktif"] { color: #fff; }
.tma-ads__ray li[data-durum="aktif"]::before {
	background: linear-gradient(135deg, var(--ads-mavi), var(--ads-mor));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.22);
}
.tma-ads__ray li[data-durum="bitti"] { color: rgba(255, 255, 255, 0.8); }
.tma-ads__ray li[data-durum="bitti"]::before {
	content: "✓";
	background: rgba(255, 255, 255, 0.16);
	border-color: transparent;
	color: #fff;
}
/* Aktif adımın altındaki ışık çizgisi */
.tma-ads__ray li[data-durum="aktif"]::after {
	content: "";
	position: absolute;
	left: 14%;
	right: 14%;
	bottom: -1px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--ads-mavi), var(--ads-mor));
}

/* ---------------------------------------------------------------- Panel */

.tma-ads__panel { animation: tma-ads-gir 0.36s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes tma-ads-gir {
	from { opacity: 0; transform: translate3d(0, 14px, 0); }
	to   { opacity: 1; transform: none; }
}
.tma-ads__panel[hidden] { display: none; }

/* -------------------------------------------------------- Yükleme alanı */

.tma-ads__drop {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	border: 1.5px dashed rgba(37, 99, 235, 0.32);
	border-radius: var(--ads-radius);
	background:
		linear-gradient(180deg, rgba(37, 99, 235, 0.045), rgba(124, 58, 237, 0.03));
	padding: 46px 20px;
	cursor: pointer;
	text-align: center;
	color: var(--ads-muted);
	transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.tma-ads__drop:hover,
.tma-ads__drop:focus-visible {
	border-color: var(--ads-mavi);
	background: linear-gradient(180deg, rgba(37, 99, 235, 0.09), rgba(124, 58, 237, 0.05));
	outline: none;
}
.tma-ads__drop--aktif {
	border-color: var(--ads-mavi);
	border-style: solid;
	background: linear-gradient(180deg, rgba(37, 99, 235, 0.13), rgba(124, 58, 237, 0.07));
	transform: scale(1.006);
}
.tma-ads__dropikon {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 16px;
	color: #fff;
	background: linear-gradient(135deg, var(--ads-mavi), var(--ads-mor));
	box-shadow: 0 12px 26px -12px rgba(37, 99, 235, 0.85);
	margin-bottom: 4px;
}
.tma-ads__drop strong { color: var(--ads-text); font-size: 16.5px; letter-spacing: -0.01em; }
.tma-ads__dropalt { font-size: 13.5px; }
.tma-ads__yapistir {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 8px;
	font-size: 12px;
	color: var(--ads-muted);
	background: rgba(0, 0, 0, 0.035);
	border-radius: 999px;
	padding: 4px 11px;
}
.tma-ads__yapistir kbd {
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	background: var(--ads-surface);
	border: 1px solid var(--ads-line);
	border-bottom-width: 2px;
	border-radius: 5px;
	padding: 0 5px;
	color: var(--ads-text);
}

/* Küçük resimler */
.tma-ads__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 12px;
	margin-top: 14px;
}
.tma-ads__thumbs:empty { display: none; }
.tma-ads__thumb {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--ads-line);
	background: var(--ads-surface);
	aspect-ratio: 4 / 3;
	animation: tma-ads-pat 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
	box-shadow: 0 2px 10px -6px rgba(0, 0, 0, 0.3);
}
@keyframes tma-ads-pat {
	from { opacity: 0; transform: scale(0.94); }
	to   { opacity: 1; transform: none; }
}
.tma-ads__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tma-ads__thumbno {
	position: absolute;
	left: 8px;
	bottom: 8px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: rgba(11, 13, 19, 0.72);
	border-radius: 6px;
	padding: 2px 7px;
	backdrop-filter: blur(6px);
}
.tma-ads__sil {
	position: absolute;
	top: 7px;
	right: 7px;
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgba(11, 13, 19, 0.62);
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	opacity: 0;
	transform: scale(0.85);
	transition: opacity 0.15s, transform 0.15s, background 0.15s;
	backdrop-filter: blur(6px);
}
.tma-ads__thumb:hover .tma-ads__sil,
.tma-ads__sil:focus-visible { opacity: 1; transform: none; }
.tma-ads__sil:hover { background: #dc2626; }

/* Nasıl alınır (kapalı gelir — metin duvarı yok) */
.tma-ads__nasil {
	margin-top: 16px;
	border: 1px solid var(--ads-line);
	border-radius: 16px;
	background: var(--ads-surface);
	overflow: hidden;
}
.tma-ads__nasil > summary {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	list-style: none;
	padding: 15px 18px;
	font-size: 14.5px;
	font-weight: 600;
}
.tma-ads__nasil > summary::-webkit-details-marker { display: none; }
.tma-ads__nasil > summary::before {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--ads-mavi);
	border-bottom: 2px solid var(--ads-mavi);
	transform: rotate(-45deg);
	transition: transform 0.2s;
	flex: 0 0 auto;
	margin-left: 2px;
}
.tma-ads__nasil[open] > summary::before { transform: rotate(45deg); }
.tma-ads__nasilbas { flex: 1; }
.tma-ads__nasilsure {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--ads-muted);
	background: rgba(0, 0, 0, 0.04);
	border-radius: 999px;
	padding: 3px 9px;
}
.tma-ads__nasilic {
	display: grid;
	gap: 14px;
	padding: 4px 18px 18px;
	border-top: 1px solid var(--ads-cizgi2);
	padding-top: 16px;
}
.tma-ads__yol { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; }
.tma-ads__yol b { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 1px; }
.tma-ads__yol small { display: block; color: var(--ads-muted); font-size: 12.5px; margin-top: 4px; line-height: 1.5; }
.tma-ads__yol--sart b { color: #b45309; }
.tma-ads__no {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border-radius: 7px;
	background: rgba(37, 99, 235, 0.1);
	color: var(--ads-mavi);
	font-size: 11.5px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	margin-top: 1px;
}

/* --------------------------------------------------------------- Bloklar */

.tma-ads__blok {
	background: var(--ads-surface);
	border: 1px solid var(--ads-line);
	border-radius: var(--ads-radius);
	padding: 20px 22px 22px;
	margin-bottom: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.tma-ads__blok > h2 {
	font-size: 15.5px;
	font-weight: 650;
	letter-spacing: -0.01em;
	margin: 0 0 13px;
}
.tma-ads__ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tma-ads__ikili .tma-ads__blok { margin-bottom: 14px; }

/* Büyük seçim kartları */
.tma-ads__secimler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tma-ads__secimler--ikili { grid-template-columns: repeat(2, 1fr); }
.tma-ads__secim { display: block; cursor: pointer; }
.tma-ads__secim input { position: absolute; opacity: 0; pointer-events: none; }
.tma-ads__secimic {
	display: block;
	border: 1.5px solid var(--ads-line);
	border-radius: 15px;
	padding: 15px 15px 14px;
	height: 100%;
	transition: border-color 0.16s, background 0.16s, transform 0.16s, box-shadow 0.16s;
}
.tma-ads__secim:hover .tma-ads__secimic { border-color: rgba(37, 99, 235, 0.45); transform: translateY(-1px); }
.tma-ads__secimikon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: rgba(0, 0, 0, 0.045);
	color: var(--ads-muted);
	margin-bottom: 10px;
	transition: background 0.16s, color 0.16s;
}
.tma-ads__secimic b { display: block; font-size: 14.5px; font-weight: 650; }
.tma-ads__secimic small { display: block; color: var(--ads-muted); font-size: 12.5px; line-height: 1.45; margin-top: 3px; }
.tma-ads__secim input:checked + .tma-ads__secimic {
	border-color: var(--ads-mavi);
	background: rgba(37, 99, 235, 0.045);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.tma-ads__secim input:checked + .tma-ads__secimic .tma-ads__secimikon {
	background: linear-gradient(135deg, var(--ads-mavi), var(--ads-mor));
	color: #fff;
}
.tma-ads__secim input:focus-visible + .tma-ads__secimic { border-color: var(--ads-mavi); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }

/* Metin girişleri */
.tma-ads__giris,
.tma-ads__alan input,
.tma-ads__alan textarea,
.tma-ads__sayaclik input {
	border: 1px solid var(--ads-line);
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 15px;
	font-family: inherit;
	background: var(--ads-surface);
	color: var(--ads-text);
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.tma-ads__giris:focus,
.tma-ads__alan input:focus,
.tma-ads__alan textarea:focus,
.tma-ads__sayaclik input:focus,
.tma-ads__cipkutu--odak {
	outline: none;
	border-color: var(--ads-mavi);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

/* Öneri rozetleri */
.tma-ads__oneriler { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.tma-ads__oneri {
	border: 1px solid var(--ads-line);
	background: transparent;
	color: var(--ads-muted);
	border-radius: 999px;
	padding: 6px 13px;
	font-size: 12.5px;
	font-weight: 550;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.14s;
}
.tma-ads__oneri:hover { border-color: var(--ads-mavi); color: var(--ads-mavi); background: rgba(37, 99, 235, 0.05); }
.tma-ads__oneri[data-secili="1"] { border-color: var(--ads-mavi); color: var(--ads-mavi); background: rgba(37, 99, 235, 0.08); }

/* Ülke çipleri */
.tma-ads__cipkutu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	border: 1px solid var(--ads-line);
	border-radius: 12px;
	padding: 8px 10px;
	background: var(--ads-surface);
	cursor: text;
	transition: border-color 0.15s, box-shadow 0.15s;
	min-height: 46px;
	box-sizing: border-box;
}
.tma-ads__cipler { display: contents; }
.tma-ads__cip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
	color: var(--ads-mavi);
	border-radius: 8px;
	padding: 5px 8px 5px 11px;
	font-size: 13px;
	font-weight: 600;
	animation: tma-ads-pat 0.2s ease both;
}
.tma-ads__cipsil {
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	padding: 0 1px;
	opacity: 0.55;
}
.tma-ads__cipsil:hover { opacity: 1; }
.tma-ads__cipgiris {
	flex: 1 1 130px;
	min-width: 130px;
	border: 0;
	outline: none;
	background: transparent;
	font: inherit;
	font-size: 14.5px;
	color: var(--ads-text);
	padding: 4px 2px;
}

/* Sayı sayacı */
.tma-ads__sayaclik { display: flex; align-items: center; gap: 8px; }
.tma-ads__sayaclik input { text-align: center; font-size: 19px; font-weight: 650; padding: 10px; }
.tma-ads__sayaclik input::-webkit-outer-spin-button,
.tma-ads__sayaclik input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tma-ads__sayaclik input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.tma-ads__adim {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border: 1px solid var(--ads-line);
	border-radius: 12px;
	background: var(--ads-surface);
	color: var(--ads-text);
	font-size: 20px;
	font-family: inherit;
	line-height: 1;
	cursor: pointer;
	transition: all 0.14s;
}
.tma-ads__adim:hover { border-color: var(--ads-mavi); color: var(--ads-mavi); background: rgba(37, 99, 235, 0.05); }
.tma-ads__adim:active { transform: scale(0.94); }
.tma-ads__ipucu { display: block; color: var(--ads-muted); font-size: 12px; margin-top: 8px; }

/* Para birimi hapları */
.tma-ads__paralar { display: flex; flex-wrap: wrap; gap: 7px; }
.tma-ads__para {
	border: 1px solid var(--ads-line);
	background: var(--ads-surface);
	color: var(--ads-text);
	border-radius: 11px;
	padding: 10px 13px;
	font-size: 13.5px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.14s;
}
.tma-ads__para:hover { border-color: var(--ads-mavi); }
.tma-ads__para[aria-pressed="true"] {
	border-color: transparent;
	background: linear-gradient(135deg, var(--ads-mavi), var(--ads-mor));
	color: #fff;
	box-shadow: 0 8px 18px -10px rgba(37, 99, 235, 0.9);
}
.tma-ads__paradiger { margin-top: 10px; }

/* Derinleştirme */
.tma-ads__ekstra {
	border: 1px solid var(--ads-line);
	border-radius: var(--ads-radius);
	background: var(--ads-surface);
	overflow: hidden;
	margin-bottom: 14px;
}
.tma-ads__ekstra > summary {
	cursor: pointer;
	list-style: none;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.tma-ads__ekstra > summary::-webkit-details-marker { display: none; }
.tma-ads__ekstrabas { font-size: 14.5px; font-weight: 650; }
.tma-ads__ekstrabas::before { content: "＋"; color: var(--ads-mavi); font-weight: 700; margin-right: 7px; }
.tma-ads__ekstra[open] .tma-ads__ekstrabas::before { content: "−"; }
.tma-ads__ekstranot { color: var(--ads-muted); font-size: 12.5px; line-height: 1.45; padding-left: 22px; }
.tma-ads__ekstraic {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 18px;
	padding: 18px 20px 20px;
	border-top: 1px solid var(--ads-cizgi2);
}
.tma-ads__alan { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tma-ads__alan--genis { grid-column: 1 / -1; }
.tma-ads__alan > span { font-size: 13px; font-weight: 600; }
.tma-ads__alan small { color: var(--ads-muted); font-size: 11.5px; }
.tma-ads__alan input, .tma-ads__alan textarea { font-size: 14px; padding: 10px 12px; }

/* --------------------------------------------------------------- Ayak */

.tma-ads__ayak {
	position: sticky;
	bottom: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
	padding: 22px 0 10px;
	background: linear-gradient(180deg, transparent 0%, var(--ads-zemin) 26%);
}
.tma-ads__ayak > .tma-ads__btn:last-child { margin-left: auto; }
.tma-ads__sayac { font-size: 13px; color: var(--ads-muted); }
.tma-ads__durum { flex: 1; font-size: 13px; color: var(--ads-muted); text-align: center; }
.tma-ads__durum--hata { color: #dc2626; font-weight: 600; }

.tma-ads__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, var(--ads-mavi), var(--ads-mor));
	color: #fff;
	border: 0;
	border-radius: 13px;
	padding: 13px 26px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 12px 24px -14px rgba(37, 99, 235, 0.95);
	transition: transform 0.12s, box-shadow 0.18s, opacity 0.15s;
}
.tma-ads__btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 28px -14px rgba(37, 99, 235, 1); }
.tma-ads__btn:active:not(:disabled) { transform: scale(0.985); }
.tma-ads__btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.tma-ads__btn--sade {
	background: transparent;
	color: var(--ads-muted);
	border: 1px solid var(--ads-line);
	box-shadow: none;
	padding: 12px 18px;
	font-size: 14px;
}
.tma-ads__btn--sade:hover:not(:disabled) { color: var(--ads-text); border-color: var(--ads-muted); transform: none; box-shadow: none; }

/* --------------------------------------------------------------- Rapor */

.tma-ads__rapor {
	background: var(--ads-surface);
	border: 1px solid var(--ads-line);
	border-radius: var(--ads-radius);
	overflow: hidden;
	box-shadow: 0 4px 24px -18px rgba(0, 0, 0, 0.5);
}
.tma-ads__raporbar {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 20px;
	border-bottom: 1px solid var(--ads-cizgi2);
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
}
.tma-ads__raporbas { display: flex; align-items: center; gap: 9px; font-size: 14px; min-width: 0; }
.tma-ads__raporbas b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tma-ads__nabiz {
	flex: 0 0 9px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--ads-mavi);
	box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
	animation: tma-ads-nabiz 1.6s ease-out infinite;
}
@keyframes tma-ads-nabiz {
	70% { box-shadow: 0 0 0 9px rgba(37, 99, 235, 0); }
	100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.tma-ads__nabiz--bitti { background: #16a34a; animation: none; }
.tma-ads__raporarac { display: flex; gap: 7px; flex: 0 0 auto; }
.tma-ads__mini {
	border: 1px solid var(--ads-line);
	background: transparent;
	color: var(--ads-text);
	border-radius: 10px;
	padding: 7px 13px;
	font-size: 12.5px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.14s;
}
.tma-ads__mini:hover { border-color: var(--ads-mavi); color: var(--ads-mavi); }
.tma-ads__mini--vurgu { border-color: transparent; background: linear-gradient(135deg, var(--ads-mavi), var(--ads-mor)); color: #fff; }
.tma-ads__mini--vurgu:hover { color: #fff; opacity: 0.92; }

.tma-ads__cikti { font-size: 15px; line-height: 1.68; padding: 22px 24px 28px; }
.tma-ads__cikti h3, .tma-ads__cikti h4, .tma-ads__cikti h5 { letter-spacing: -0.015em; }
.tma-ads__cikti h3 {
	font-size: 19px;
	margin: 28px 0 12px;
	padding-bottom: 9px;
	border-bottom: 1px solid var(--ads-cizgi2);
}
.tma-ads__cikti h3:first-child { margin-top: 0; }
.tma-ads__cikti h4 { font-size: 16px; margin: 22px 0 8px; }
.tma-ads__cikti h5 { font-size: 14.5px; margin: 18px 0 6px; color: var(--ads-muted); }
.tma-ads__cikti p { margin: 0 0 12px; }
.tma-ads__cikti ul { margin: 0 0 12px; padding-left: 4px; list-style: none; }
.tma-ads__cikti li { position: relative; margin-bottom: 7px; padding-left: 20px; }
.tma-ads__cikti li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 0.62em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ads-mavi), var(--ads-mor));
}
.tma-ads__cikti hr { border: 0; border-top: 1px solid var(--ads-cizgi2); margin: 24px 0; }
.tma-ads__cikti strong { font-weight: 680; }
.tma-ads__cikti code {
	background: rgba(37, 99, 235, 0.08);
	color: var(--ads-mavi);
	border-radius: 6px;
	padding: 1px 6px;
	font-size: 13.5px;
}
.tma-ads__tablosar { position: relative; margin: 0 0 16px; }
.tma-ads__tablo {
	overflow-x: auto;
	overflow-y: hidden;
	border: 1px solid var(--ads-line);
	border-radius: 12px;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	/* Kaydırma çubuğu masaüstünde de görünsün — yoksa kimse kaydırılabileceğini
	   fark etmiyor. */
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.28) transparent;
	/* Sağ kenarda gölge: kaydırılacak alan kaldığını gösterir, sona gelince kaybolur. */
	background:
		linear-gradient(90deg, var(--ads-surface) 40%, rgba(255, 255, 255, 0)) left / 26px 100% no-repeat local,
		linear-gradient(90deg, rgba(255, 255, 255, 0), var(--ads-surface) 60%) right / 26px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0)) left / 13px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0)) right / 13px 100% no-repeat scroll;
}
.tma-ads__tablo::-webkit-scrollbar { height: 9px; }
.tma-ads__tablo::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.04); border-radius: 0 0 12px 12px; }
.tma-ads__tablo::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.26); border-radius: 99px; }
.tma-ads__tablo::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.42); }
.tma-ads__tablo--surukle { cursor: grabbing; user-select: none; }
.tma-ads__tablosar--tasiyor .tma-ads__tablo { cursor: grab; }

/* "Yana kaydırın" ipucu — yalnızca taşarken ve henüz kaydırılmamışken. */
.tma-ads__kaydir {
	position: absolute;
	top: 8px;
	right: 10px;
	display: none;
	align-items: center;
	gap: 4px;
	font-size: 11.5px;
	font-weight: 600;
	color: #fff;
	background: rgba(11, 13, 19, 0.78);
	border-radius: 99px;
	padding: 4px 10px;
	pointer-events: none;
	backdrop-filter: blur(6px);
	animation: tma-ads-pat 0.3s ease both;
}
.tma-ads__tablosar--tasiyor .tma-ads__kaydir { display: inline-flex; }
.tma-ads__tablosar--kaydirildi .tma-ads__kaydir { display: none; }
.tma-ads__tablo table { width: auto; min-width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tma-ads__tablo th, .tma-ads__tablo td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--ads-cizgi2); white-space: nowrap; }
.tma-ads__tablo th { background: rgba(0, 0, 0, 0.025); font-weight: 700; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ads-muted); }
.tma-ads__tablo tr:last-child td { border-bottom: 0; }

/* Bekleme — iskelet + aşama */
.tma-ads__bekle { padding: 4px 0 8px; }
.tma-ads__beklemetin { color: var(--ads-muted); font-size: 14px; margin-bottom: 18px; }
.tma-ads__iskelet { display: grid; gap: 11px; }
.tma-ads__cizgi {
	height: 13px;
	border-radius: 7px;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.055) 25%, rgba(0, 0, 0, 0.1) 37%, rgba(0, 0, 0, 0.055) 63%);
	background-size: 400% 100%;
	animation: tma-ads-parla 1.5s ease infinite;
}
.tma-ads__cizgi:nth-child(1) { width: 42%; height: 19px; }
.tma-ads__cizgi:nth-child(3) { width: 88%; }
.tma-ads__cizgi:nth-child(4) { width: 76%; }
.tma-ads__cizgi:nth-child(5) { width: 94%; }
.tma-ads__cizgi:nth-child(6) { width: 58%; }
@keyframes tma-ads-parla {
	from { background-position: 100% 50%; }
	to   { background-position: 0 50%; }
}
.tma-ads__imlec {
	display: inline-block;
	width: 3px;
	height: 17px;
	background: var(--ads-mavi);
	border-radius: 2px;
	vertical-align: text-bottom;
	margin-left: 3px;
	animation: tma-ads-yanip 1s steps(2) infinite;
}
@keyframes tma-ads-yanip { 50% { opacity: 0; } }

.tma-ads-kapali { max-width: 560px; margin: 40px auto; text-align: center; padding: 28px; }

/* ---------------------------------------------------------- Karanlık tema */

.tma-dark .tma-ads, html.dark .tma-ads {
	--ads-line: rgba(255, 255, 255, 0.13);
	--ads-cizgi2: rgba(255, 255, 255, 0.09);
}
html.dark .tma-ads__yapistir { background: rgba(255, 255, 255, 0.06); }
html.dark .tma-ads__nasilsure,
html.dark .tma-ads__secimikon { background: rgba(255, 255, 255, 0.07); }
html.dark .tma-ads__raporbar { background: rgba(20, 22, 28, 0.86); }
html.dark .tma-ads__tablo th { background: rgba(255, 255, 255, 0.04); }
html.dark .tma-ads__cizgi {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.12) 37%, rgba(255, 255, 255, 0.06) 63%);
	background-size: 400% 100%;
}
html.dark .tma-ads__drop { background: linear-gradient(180deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.06)); }

/* ------------------------------------------------------------- Duyarlı */

@media (max-width: 760px) {
	.tma-ads { padding: 0 12px 90px; }
	.tma-ads__sahne { padding: 30px 18px 0; border-radius: 20px; }
	.tma-ads__etiket { font-size: 10.5px; letter-spacing: 0.02em; padding: 5px 10px; }
	.tma-ads__hak { flex-wrap: wrap; justify-content: center; font-size: 12px; row-gap: 2px; }
	.tma-ads__ayrac { display: none; }
	.tma-ads__kosul { flex-basis: 100%; text-align: center; }
	.tma-ads__sahneic p { font-size: 14px; }
	.tma-ads__ray li { flex-direction: column; gap: 5px; font-size: 11.5px; padding: 12px 4px; }
	.tma-ads__secimler { grid-template-columns: 1fr; }
	.tma-ads__secimler { gap: 8px; }
	/* Mobil: ikon solda, başlık + açıklama sağda — taşma olmayan ızgara. */
	.tma-ads__secimic {
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 12px;
		row-gap: 1px;
		align-items: center;
		padding: 12px 14px;
	}
	.tma-ads__secimikon { grid-row: span 2; margin-bottom: 0; width: 36px; height: 36px; border-radius: 10px; }
	.tma-ads__secimic b { align-self: end; }
	.tma-ads__secimic small { align-self: start; margin-top: 0; }
	.tma-ads__ikili, .tma-ads__ekstraic { grid-template-columns: 1fr; }
	.tma-ads__drop { padding: 34px 16px; }
	.tma-ads__blok { padding: 17px 16px 18px; }
	.tma-ads__cikti { padding: 18px 16px 24px; font-size: 14.5px; }
	.tma-ads__tablo th, .tma-ads__tablo td { white-space: normal; }
	.tma-ads__ayak { flex-wrap: wrap; }
	.tma-ads__durum { order: 3; flex: 1 0 100%; text-align: left; }
	.tma-ads__raporbar { flex-wrap: wrap; }
	.tma-ads__yapistir { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.tma-ads *, .tma-ads *::before, .tma-ads *::after {
		animation-duration: 0.001s !important;
		transition-duration: 0.001s !important;
	}
}

/* Yazdırma — hasta/ekip ile paylaşılabilir temiz rapor */
@media print {
	.tma-ads__sahne, .tma-ads__raporarac, .tma-ads__panel[data-panel="1"], .tma-ads__panel[data-panel="2"] { display: none !important; }
	.tma-ads { padding: 0; max-width: none; }
	.tma-ads__rapor { border: 0; box-shadow: none; }
	.tma-ads__raporbar { position: static; border-bottom: 1px solid #ddd; }
}

/* ------------------------------------------------- Koça gönderilecek özet */

.tma-ads__koc {
	margin-top: 14px;
	border: 1px solid var(--ads-line);
	border-radius: var(--ads-radius);
	background: var(--ads-surface);
	padding: 18px 20px 20px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.tma-ads__koc[hidden] { display: none; }
.tma-ads__kocbas { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tma-ads__kocikon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 11px;
	color: #fff;
	background: #25d366;
}
.tma-ads__kocbas b { display: block; font-size: 15px; font-weight: 650; }
.tma-ads__kocbas small { display: block; color: var(--ads-muted); font-size: 12.5px; margin-top: 2px; }
.tma-ads__kocmetin {
	width: 100%;
	border: 1px solid var(--ads-line);
	border-radius: 12px;
	padding: 13px 15px;
	font: inherit;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--ads-text);
	background: var(--ads-surface);
	resize: vertical;
	min-height: 150px;
}
.tma-ads__kocmetin:focus {
	outline: none;
	border-color: #25d366;
	box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.16);
}
.tma-ads__kocayak { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 12px; }
.tma-ads__wa {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #25d366;
	color: #fff;
	text-decoration: none;
	border-radius: 12px;
	padding: 12px 20px;
	font-size: 14.5px;
	font-weight: 650;
	box-shadow: 0 12px 22px -14px rgba(37, 211, 102, 1);
	transition: transform 0.12s, filter 0.15s;
}
.tma-ads__wa:hover { filter: brightness(1.05); transform: translateY(-1px); color: #fff; }
.tma-ads__wa:active { transform: scale(0.985); }

@media (max-width: 760px) {
	.tma-ads__koc { padding: 15px 16px 17px; }
	.tma-ads__wa { flex: 1 1 100%; justify-content: center; }
}
@media print {
	.tma-ads__koc { display: none !important; }
}

/* ------------------------------------------------- Veri kaynağı seçimi */

.tma-ads__yolsec {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 14px;
}
.tma-ads__yolbtn {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	text-align: left;
	border: 1.5px solid var(--ads-line);
	border-radius: 15px;
	background: var(--ads-surface);
	padding: 14px 15px;
	font-family: inherit;
	cursor: pointer;
	transition: border-color 0.16s, background 0.16s, transform 0.16s, box-shadow 0.16s;
	color: var(--ads-text);
}
.tma-ads__yolbtn:hover { border-color: rgba(37, 99, 235, 0.45); transform: translateY(-1px); }
.tma-ads__yolbtn svg { flex: 0 0 auto; margin-top: 2px; color: var(--ads-muted); }
.tma-ads__yolbtn b { display: block; font-size: 14.5px; font-weight: 650; }
.tma-ads__yolbtn small { display: block; color: var(--ads-muted); font-size: 12.5px; line-height: 1.45; margin-top: 3px; }
.tma-ads__yolbtn[aria-selected="true"] {
	border-color: var(--ads-mavi);
	background: rgba(37, 99, 235, 0.045);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.tma-ads__yolbtn[aria-selected="true"] svg { color: var(--ads-mavi); }
.tma-ads__yol-ic[hidden] { display: none; }

.tma-ads__drop--csv { padding: 38px 20px; }

.tma-ads__csvdurum {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	padding: 13px 15px;
	border: 1px solid rgba(22, 163, 74, 0.35);
	background: rgba(22, 163, 74, 0.06);
	border-radius: 14px;
	animation: tma-ads-pat 0.25s ease both;
}
.tma-ads__csvdurum[hidden] { display: none; }
.tma-ads__csvok {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
}
.tma-ads__csvdurum > div { flex: 1; min-width: 0; }
.tma-ads__csvdurum b { display: block; font-size: 14px; word-break: break-all; }
.tma-ads__csvdurum small { display: block; color: var(--ads-muted); font-size: 12.5px; margin-top: 1px; }

/* Her zaman açık talimat kutusu (details değil) */
.tma-ads__nasil--acik { margin-top: 16px; }
.tma-ads__nasilbaslik {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 18px;
	font-size: 14.5px;
	font-weight: 600;
}
.tma-ads__nasilbaslik .tma-ads__nasilbas { flex: 1; }
.tma-ads__nasil--acik .tma-ads__nasilic { border-top: 1px solid var(--ads-cizgi2); }
.tma-ads__yolAdim { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; }
.tma-ads__yolAdim b { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 1px; }
.tma-ads__yolAdim small { display: block; color: var(--ads-muted); font-size: 12.5px; margin-top: 4px; line-height: 1.5; }
.tma-ads__nasilnot {
	margin: 4px 0 0;
	padding: 11px 13px;
	background: rgba(37, 99, 235, 0.05);
	border-radius: 10px;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--ads-muted);
}
.tma-ads__nasilnot strong { color: var(--ads-text); }

@media (max-width: 760px) {
	.tma-ads__yolsec { grid-template-columns: 1fr; gap: 8px; }
	.tma-ads__yolbtn { padding: 12px 14px; }
	.tma-ads__csvdurum { flex-wrap: wrap; }
}

/* CSV dosya raporu — içinde ne var, ne eksik */
.tma-ads__csvdurum { display: block; padding: 0; border: 0; background: transparent; }
.tma-ads__csvsatir {
	border: 1px solid rgba(22, 163, 74, 0.35);
	background: rgba(22, 163, 74, 0.05);
	border-radius: 14px;
	padding: 13px 15px;
	margin-top: 12px;
	animation: tma-ads-pat 0.25s ease both;
}
.tma-ads__csvust { display: flex; align-items: center; gap: 12px; }
.tma-ads__csvust > div { flex: 1; min-width: 0; }
.tma-ads__csvliste { list-style: none; margin: 11px 0 0; padding: 0; display: grid; gap: 5px; }
.tma-ads__csvliste li {
	position: relative;
	padding-left: 22px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ads-muted);
}
.tma-ads__csvliste li::before { position: absolute; left: 2px; top: 0; font-weight: 700; }
.tma-ads__csvvar::before { content: "✓"; color: #16a34a; }
.tma-ads__csvvar { color: var(--ads-text); }
.tma-ads__csvyok::before { content: "○"; color: #b45309; }
.tma-ads__csvsart::before { content: "!"; color: #dc2626; }
.tma-ads__csvsart { color: #b91c1c; font-weight: 600; }
.tma-ads__csvek { margin: 10px 2px 0; font-size: 12px; color: var(--ads-muted); }

.tma-ads__csvozet {
	margin-top: 12px;
	padding: 13px 15px;
	border: 1px solid var(--ads-line);
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.02);
}
.tma-ads__csvozet > b { display: block; font-size: 13.5px; margin-bottom: 8px; }
.tma-ads__csvozet > small { display: block; margin-top: 9px; font-size: 12px; color: var(--ads-muted); line-height: 1.5; }
html.dark .tma-ads__csvozet { background: rgba(255, 255, 255, 0.03); }

/* ------------------------------------------------------ Geçmiş analizler */

.tma-ads__gecmis {
	margin: 0 0 14px;
	border: 1px solid var(--ads-line);
	border-radius: 16px;
	background: var(--ads-surface);
	overflow: hidden;
}
.tma-ads__gecmis > summary {
	background: rgba(37, 99, 235, 0.035);
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	list-style: none;
	padding: 15px 18px;
	font-size: 14.5px;
	font-weight: 600;
}
.tma-ads__gecmis > summary::-webkit-details-marker { display: none; }
.tma-ads__gecmis > summary::before {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--ads-mavi);
	border-bottom: 2px solid var(--ads-mavi);
	transform: rotate(-45deg);
	transition: transform 0.2s;
	flex: 0 0 auto;
	margin-left: 2px;
}
.tma-ads__gecmis[open] > summary::before { transform: rotate(45deg); }
.tma-ads__gecmisic { padding: 4px 18px 18px; border-top: 1px solid var(--ads-cizgi2); }
.tma-ads__gecmisnot { color: var(--ads-muted); font-size: 12.5px; line-height: 1.55; margin: 14px 0; }

.tma-ads__iyi { color: #16a34a; font-weight: 700; font-size: 11.5px; white-space: nowrap; }
.tma-ads__kotu { color: #dc2626; font-weight: 700; font-size: 11.5px; white-space: nowrap; }
.tma-ads__sabit { color: var(--ads-muted); font-weight: 700; font-size: 11.5px; }

.tma-ads__hukum {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 700;
	border-radius: 99px;
	padding: 1px 8px;
	margin-left: 6px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.tma-ads__hukum--iyi { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.tma-ads__hukum--idare { background: rgba(180, 83, 9, 0.12); color: #b45309; }
.tma-ads__hukum--kotu { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }

.tma-ads__gecmisliste { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.tma-ads__gecmisliste li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 13px;
	border: 1px solid var(--ads-line);
	border-radius: 12px;
}
.tma-ads__gecmisliste li > div { flex: 1; min-width: 0; }
.tma-ads__gecmisliste b { display: block; font-size: 13.5px; }
.tma-ads__gecmisliste small { display: block; color: var(--ads-muted); font-size: 12px; margin-top: 2px; line-height: 1.45; }

@media (max-width: 760px) {
	.tma-ads__gecmisic { padding: 4px 14px 16px; }
	.tma-ads__gecmisliste li { flex-wrap: wrap; }
}
.tma-ads__bilgi {
	display: inline-grid;
	place-items: center;
	width: 14px;
	height: 14px;
	margin-left: 5px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.08);
	color: var(--ads-muted);
	font-size: 9.5px;
	font-weight: 700;
	cursor: help;
	vertical-align: middle;
}
.tma-ads__ekstravurgu {
	margin: 0 0 4px;
	padding: 11px 13px;
	background: rgba(37, 99, 235, 0.06);
	border-left: 3px solid var(--ads-mavi);
	border-radius: 0 10px 10px 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--ads-muted);
}
.tma-ads__ekstravurgu strong { color: var(--ads-text); }
