:root {
	--bg: #f5f6f8;
	--card: #ffffff;
	--ink: #0f172a;
	--ink-soft: #475569;
	--muted: #94a3b8;
	--line: #e2e8f0;
	--brand: #2563eb;
	--brand-dark: #1d4ed8;
	--danger: #dc2626;
	--ok: #16a34a;
	--warn: #d97706;
	--radius: 12px;
	--shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(15, 23, 42, 0.06);
	--safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.dys-body { min-height: 100dvh; display: flex; flex-direction: column; }

/* Auth */
.dys-auth { background: linear-gradient(160deg, #1e293b, #0f172a); color: #e2e8f0; }
.dys-main--auth { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: calc(64px + env(safe-area-inset-top, 0px)) 24px 24px; }
.auth-wrap { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.auth-brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--brand), var(--brand-dark, #1d4ed8));
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	box-shadow: 0 10px 28px rgba(37,99,235,.4);
}
.auth-brand-name { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: #e2e8f0; }
.auth-brand-slogan { margin: 0; font-size: 13px; color: #94a3b8; }
.auth-card {
	width: 100%;
	background: #ffffff;
	color: var(--ink);
	padding: 28px 22px;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.auth-title { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.auth-sub { margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }

/* Topbar */
.dys-topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #ffffff;
	border-bottom: 1px solid var(--line);
	padding-top: env(safe-area-inset-top, 0px);
}
.dys-topbar-inner {
	max-width: 640px;
	width: 100%;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.dys-logo {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--ink);
	text-decoration: none;
	min-width: 0;
}
.dys-logo:hover { text-decoration: none; color: var(--ink); }
.dys-logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--brand), var(--brand-dark, #1d4ed8));
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	box-shadow: 0 3px 10px rgba(37,99,235,.28);
	flex-shrink: 0;
}
.dys-logo-text {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.dys-logout-form { margin: 0; }
.dys-logout {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	font-size: 12.5px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
	cursor: pointer;
	font-family: inherit;
	line-height: 1;
	white-space: nowrap;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.dys-logout:hover {
	background: #dc2626;
	border-color: #dc2626;
	color: #fff;
}
.dys-logout:active { transform: translateY(1px); }
.dys-logout-ico { font-size: 13px; line-height: 1; }
@media (max-width: 380px) {
	.dys-logo-text { display: none; }
	.dys-logout-text { display: none; }
	.dys-logout { padding: 7px 10px; }
}

.dys-main {
	flex: 1;
	padding: 16px 16px calc(90px + var(--safe-bottom));
	max-width: 640px;
	width: 100%;
	margin: 0 auto;
}

/* Tabbar */
.dys-tabbar {
	position: fixed;
	bottom: 0; left: 0; right: 0;
	z-index: 30;
	background: #ffffff;
	border-top: 1px solid var(--line);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding: 6px 6px calc(6px + var(--safe-bottom));
	box-shadow: 0 -4px 12px rgba(15,23,42,.05);
}
.nav-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 8px 4px;
	border-radius: 10px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 500;
	text-decoration: none;
}
.nav-link:hover { text-decoration: none; }
.nav-link.is-active { color: var(--brand); background: rgba(37,99,235,.08); }
.nav-ico { font-size: 20px; line-height: 1; }

/* Page */
.page { display: flex; flex-direction: column; gap: 14px; }
.page-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.page-title { margin: 0; font-size: 20px; font-weight: 700; }
.crumb a { font-size: 13px; color: var(--ink-soft); }

/* Balance info card */
.balance-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 4px solid var(--brand);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.balance-card__ico {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
}
.balance-card__body { min-width: 0; }
.balance-card__label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	color: var(--ink-soft);
}
.balance-card__value {
	display: flex;
	align-items: baseline;
	gap: 5px;
	margin-top: 2px;
}
.balance-card__number {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--ink);
	letter-spacing: -0.01em;
}
.balance-card__unit { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }

/* Stats */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px;
}
.stat-value { font-size: 24px; font-weight: 700; }
.stat-label { color: var(--ink-soft); font-size: 13px; }

/* Quick cards */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--ink);
	box-shadow: var(--shadow);
}
.quick-card:hover { text-decoration: none; border-color: var(--brand); }
.quick-ico { font-size: 28px; }
.quick-label { font-weight: 600; }

/* List */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 12px 14px;
}
.list-item--stack { flex-direction: column; align-items: stretch; gap: 6px; }
.list-main { flex: 1; min-width: 0; display: block; color: var(--ink); }
a.list-main:hover { text-decoration: none; }
.list-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-sub { color: var(--ink-soft); font-size: 13px; }
.list-actions { display: flex; gap: 4px; flex-shrink: 0; }
.list-edit { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.list-edit input { width: 100%; }

/* Logs */
.list--logs .list-item { gap: 6px; }
.log-head { display: flex; align-items: center; justify-content: space-between; }
.log-meta { font-size: 12px; color: var(--muted); }
.log-body { font-size: 14px; color: var(--ink-soft); }
.log-foot { font-size: 12px; color: var(--muted); display: flex; gap: 6px; }

/* Empty */
.empty {
	background: var(--card);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	padding: 28px 16px;
	text-align: center;
	color: var(--ink-soft);
}

/* SMS success */
.sms-success {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 32px 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	box-shadow: var(--shadow);
}
.sms-success-ico {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #dcfce7;
	color: #15803d;
	font-size: 28px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 4px;
}
.sms-success-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.sms-success-meta { margin: 0; color: var(--ink-soft); font-size: 14px; }
.sms-success-meta strong { color: var(--ink); }
.sms-success-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }

/* Tabs */
.tabs {
	display: flex;
	gap: 4px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 4px;
	overflow-x: auto;
}
.tab {
	flex: 1;
	min-width: max-content;
	border: 0;
	background: transparent;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
	cursor: pointer;
	white-space: nowrap;
}
.tab.is-active { background: var(--brand); color: #fff; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input,
.field select,
.field textarea,
.list-edit input {
	width: 100%;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 16px;
	font-family: inherit;
	color: var(--ink);
	outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { color: var(--muted); font-size: 12px; }

.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; }

.row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons */
.btn {
	appearance: none;
	border: 0;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: transform .05s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 12px; font-size: 13px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.btn--danger { background: var(--danger); color: #fff; }

.icon-btn {
	appearance: none;
	border: 1px solid var(--line);
	background: #fff;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
	color: var(--ink-soft);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn--danger:hover { border-color: var(--danger); color: var(--danger); }
.icon-btn--ok { border-color: var(--ok); color: var(--ok); }

/* Alerts */
.alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert--warn  { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert--ok    { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert--info  { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }
.alert--cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 14px 16px;
}
.alert--cta .alert-body {
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	line-height: 1.45;
}
.alert--cta .alert-body strong { font-weight: 700; }
.alert--cta .btn { flex-shrink: 0; }
@media (max-width: 480px) {
	.alert--cta .btn { width: 100%; }
}

/* Pills */
.pill { display: inline-block; background: var(--line); color: var(--ink-soft); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill--ok { background: #dcfce7; color: #166534; }
.pill--err { background: #fee2e2; color: #991b1b; }
.pill--warn { background: #fef3c7; color: #92400e; }

/* Card */
.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.card-title { margin: 0; font-size: 16px; font-weight: 700; }
.muted { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* Modal */
.modal {
	position: fixed;
	inset: 0;
	background: rgba(15,23,42,.55);
	z-index: 100;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 16px;
	overflow-y: auto;
}
.modal-card {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 16px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	box-shadow: 0 20px 50px rgba(15,23,42,.35);
}
/* Adim icerigi (template x-if icindeki tek div) kendi icinde dikey ritim kursun */
.modal-card > div { display: flex; flex-direction: column; gap: 14px; }
.modal-card h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.modal-card .muted { font-size: 13.5px; line-height: 1.5; }
.modal-card form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.modal-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 6px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

/* Originator inline display + edit */
.originator-block {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.originator-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
}
.originator-loading { color: var(--muted); font-size: 14px; }
.originator-display {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 15px;
	color: var(--ink);
}
.originator-display strong { font-weight: 700; }
.originator-edit { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.originator-edit-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	flex-wrap: wrap;
}
.originator-edit-actions .btn { flex: 1 1 auto; min-width: 120px; }
@media (min-width: 480px) {
	.originator-edit-actions .btn { flex: 0 0 auto; }
}

/* Inline metin tarzı buton (Değiştir gibi) */
.link-btn {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--brand);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.link-btn:hover { color: var(--brand-dark, #1d4ed8); }
.link-btn:disabled { color: var(--muted); cursor: not-allowed; }
.link-btn--danger { color: var(--danger); }
.link-btn--danger:hover { color: #991b1b; }

/* Tehlikeli aksiyon onay modalı (Bağlantıyı Kaldır vb.) */
.modal-card--danger {
	border-top: 4px solid var(--danger);
}
.modal-danger-head {
	display: flex;
	align-items: center;
	gap: 10px;
}
.modal-danger-head h3 { color: var(--danger); margin: 0; }
.modal-danger-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fee2e2;
	color: var(--danger);
	font-size: 18px;
	font-weight: 700;
	flex-shrink: 0;
}
.danger-list {
	margin: 4px 0 0;
	padding-left: 18px;
	color: var(--ink);
	font-size: 14px;
	line-height: 1.6;
}
.danger-list li { margin-bottom: 2px; }
.danger-list strong { color: var(--ink); font-weight: 700; }

/* File preview */
.file-preview { display: flex; flex-direction: column; gap: 8px; }

/* List toolbar */
.list-toolbar { display: flex; flex-direction: column; gap: 8px; }
.search-wrap { position: relative; }
.search-input {
	width: 100%;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 11px 14px 11px 36px;
	font-size: 15px;
	font-family: inherit;
	color: var(--ink);
	outline: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 12px center;
}
.search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.toolbar-select-all { font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.sort-select {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 8px 32px 8px 12px;
	font-size: 13px;
	font-family: inherit;
	color: var(--ink);
	outline: none;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
}

/* Bulk action bar */
.bulk-bar {
	position: sticky;
	top: 60px;
	z-index: 15;
	background: var(--brand);
	color: #fff;
	border-radius: 12px;
	padding: 10px 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.bulk-bar__label { flex: 1; font-weight: 600; font-size: 14px; }
.bulk-bar .btn--ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }
.bulk-bar .btn--ghost:hover { background: rgba(255,255,255,.25); }

/* Selectable list rows */
.list-item--selectable { padding-left: 10px; }
.list-item--selectable.is-selected { border-color: var(--brand); background: rgba(37,99,235,.04); }
.list-check { display: flex; align-items: center; }
.list-check input { width: 20px; height: 20px; cursor: pointer; margin: 0; }

/* Pager */
.pager {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: center;
	padding-top: 4px;
}
.pager-item { display: inline-flex; }
.pager-btn {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--ink-soft);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.pager-btn:hover:not(:disabled):not(.is-active) { border-color: var(--brand); color: var(--brand); }
.pager-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-gap { display: inline-flex; align-items: center; padding: 0 4px; color: var(--muted); }

/* Page head with action */
.page-head__title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.page-head__title .page-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Bottom sheet */
.sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55); }
.sheet-card {
	position: relative;
	width: 100%;
	max-width: 640px;
	background: #fff;
	border-radius: 18px 18px 0 0;
	padding: 16px 16px calc(20px + var(--safe-bottom));
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 88vh;
	overflow-y: auto;
	box-shadow: 0 -8px 24px rgba(15,23,42,.2);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet-head .card-title { margin: 0; }
@media (min-width: 640px) {
	.sheet { align-items: center; padding: 16px; }
	.sheet-card { border-radius: 16px; max-width: 480px; }
}

@media (min-width: 640px) {
	.modal { align-items: center; }
	.dys-tabbar { max-width: 640px; left: 50%; transform: translateX(-50%); border-radius: 16px 16px 0 0; }
}

/* iOS install banner (Add to Home Screen) */
.ios-banner {
	position: fixed;
	left: 12px;
	right: 12px;
	z-index: 40;
	background: rgba(255,255,255,.98);
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: 0 12px 36px rgba(15,23,42,.18);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	max-width: 480px;
	margin: 0 auto;
	overflow: hidden;
}
.ios-banner[hidden] { display: none; }
.ios-banner--bottom { bottom: calc(12px + var(--safe-bottom)); }
.ios-banner--above-tabbar { bottom: calc(76px + var(--safe-bottom)); }
.ios-banner { display: flex; align-items: stretch; padding: 0; }
.ios-banner-body {
	flex: 1; display: flex; align-items: center; gap: 10px;
	padding: 12px 12px 12px 14px; background: transparent;
	border: 0; text-align: left; cursor: pointer; font-family: inherit;
	color: inherit; min-width: 0;
}
.ios-banner-body:active { background: rgba(15,23,42,.04); }
.ios-banner-ico { font-size: 24px; line-height: 1; flex-shrink: 0; }
.ios-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 1.35; }
.ios-banner-text strong { font-size: 15px; font-weight: 700; }
.ios-banner-text u { text-decoration: underline; color: var(--brand); font-weight: 600; }
.ios-banner-close {
	background: transparent; border: 0;
	padding: 0 14px;
	font-size: 26px; line-height: 1; color: var(--ink-soft);
	cursor: pointer; flex-shrink: 0;
	border-left: 1px solid var(--line);
}
.ios-banner-close:hover { color: var(--ink); }

/* iOS guide full-screen modal */
.ios-guide {
	position: fixed; inset: 0; z-index: 50;
	background: rgba(15,23,42,.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex; align-items: flex-end; justify-content: center;
	padding: 0;
}
.ios-guide[hidden] { display: none; }
.ios-guide-card {
	width: 100%;
	max-width: 520px;
	background: #fff;
	border-radius: 18px 18px 0 0;
	padding: 22px 20px calc(20px + var(--safe-bottom));
	box-shadow: 0 -20px 40px rgba(0,0,0,.25);
	position: relative;
	max-height: 92dvh;
	overflow-y: auto;
}
.ios-guide-x {
	position: absolute; top: 10px; right: 10px;
	background: transparent; border: 0;
	width: 36px; height: 36px;
	font-size: 26px; line-height: 1; color: var(--ink-soft);
	cursor: pointer; border-radius: 999px;
}
.ios-guide-x:hover { background: var(--bg); color: var(--ink); }
.ios-guide-title { margin: 0 30px 6px 0; font-size: 20px; font-weight: 700; }
.ios-guide-intro { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.ios-guide-steps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ios-guide-steps li { display: flex; gap: 12px; align-items: flex-start; }
.ios-guide-step-no {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--brand); color: #fff;
	font-weight: 700; font-size: 15px;
	flex-shrink: 0;
}
.ios-guide-steps li > div { flex: 1; min-width: 0; }
.ios-guide-steps strong { display: block; font-size: 15.5px; line-height: 1.4; margin-bottom: 3px; }
.ios-guide-steps em { font-style: normal; font-weight: 700; color: var(--brand); }
.ios-guide-step-hint { font-size: 14px; color: var(--ink-soft); line-height: 1.4; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.ios-guide-share-ico {
	display: inline-block; width: 18px; height: 18px;
	color: var(--brand); vertical-align: -3px;
	border: 1.5px solid var(--brand); border-radius: 4px;
	padding: 1px;
}
@media (min-width: 640px) {
	.ios-guide { align-items: center; padding: 20px; }
	.ios-guide-card { border-radius: 18px; max-height: 86dvh; }
}
