body {
	font-family: 'Fira Code', monospace;
	font-size: 16px;
	line-height: 1.5;
	overflow-x: hidden;
}

::-webkit-scrollbar {
	width: 6px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: #262626;
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
	background: #333333;
}

* {
	scrollbar-width: thin;
	scrollbar-color: #262626 transparent;
}

body.dark-theme {
	background-color: #0a0a0a;
	color: #e0e0e0;
}

body.dark-theme h1 {
	color: #ffffff;
}
body.dark-theme .subtitle {
	color: #aaaaaa;
}

body.dark-theme .notice-box {
	border: 1px solid #555555;
	background-color: #1a1a1a;
	color: #ffffcc;
}

body.dark-theme .toggle-btn {
	color: #dddddd;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 24px;
	padding: 5px;
}

body.dark-theme .toggle-btn:hover {
	color: #ffffff;
}

body.dark-theme .site-footer {
	border-color: #262626;
}
body.dark-theme a {
	color: #888888;
}
body.dark-theme a:hover {
	color: #bbbbbb;
}
body.dark-theme a.site-logo,
body.dark-theme a.footer-logo {
	color: #ffffff;
}
body.dark-theme a.site-logo:hover,
body.dark-theme a.footer-logo:hover {
	color: #ffffff;
	opacity: 0.8;
}
body.dark-theme .site-logo {
	color: #ffffff;
}
body.dark-theme .site-nav a {
	color: #a1a1a1;
	transition: color 0.2s ease;
}
body.dark-theme .site-nav a:hover {
	color: #ffffff;
}
body.dark-theme .header-btn,
body.dark-theme .header-btn:hover {
	color: #ffffff;
}
body.dark-theme .exchange-icon {
	color: #ffd700;
}

body.light-theme {
	background-color: #f0f0f0;
	color: #333333;
}

body.light-theme h1 {
	color: #000000;
}
body.light-theme .subtitle {
	color: #555555;
}

body.light-theme .notice-box {
	border: 1px solid #cccccc;
	background-color: #fff9c4;
	color: #555500;
}

body.dark-theme .notice-box.notice-error,
body.light-theme .notice-box.notice-error {
	background-color: #e53e3e;
	color: #ffffff;
	border-color: #c53030;
}

body.dark-theme .notice-box.notice-success,
body.light-theme .notice-box.notice-success {
	background-color: #4caf50;
	color: #ffffff;
	border-color: #3d9140;
}

body.dark-theme .notice-box.notice-error a,
body.light-theme .notice-box.notice-error a,
body.dark-theme .notice-box.notice-success a,
body.light-theme .notice-box.notice-success a {
	color: #ffffff;
}

body.light-theme .toggle-btn {
	color: #555555;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 24px;
	padding: 5px;
}

body.light-theme .toggle-btn:hover {
	color: #000000;
}

body.light-theme .site-footer {
	border-color: #cccccc;
}
body.light-theme a {
	color: #666666;
}
body.light-theme a:hover {
	color: #333333;
}
body.light-theme .exchange-icon {
	color: #ffd700;
}

.hidden {
	display: none !important;
}

h1 {
	font-size: 28px;
	font-weight: bold;
	margin-bottom: 5px;
}

.subtitle {
	font-size: 14px;
}

.notice-box {
	padding: 12px;
	margin-bottom: 25px;
	font-size: 14px;
	text-align: center;
}

label {
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 8px;
	display: block;
}

.usd-label {
	font-size: 13px;
	font-weight: normal;
	color: #888888;
	opacity: 0.8;
}

.usd-inline {
	color: #888888;
	font-weight: normal;
}

.amount-summary {
	font-size: 13px;
	color: #888888;
	margin-top: 5px;
	min-height: 18px;
}

a {
	text-decoration: none;
	transition: color 0.2s;
}
a:hover {
	text-decoration: underline;
}

.copy {
	font-size: 12px;
	opacity: 0.6;
}

.reserves-box {
	width: 100%;
	max-width: 1080px;
	margin: -1px auto 0;
	padding: 48px 32px;
	position: relative;
	background: transparent;
	border: 1px solid #262626;
}

.reserves-box::before,
.reserves-box::after {
	content: '';
	position: absolute;
	width: 8px;
	height: 8px;
	border-color: #737373;
	border-style: solid;
	pointer-events: none;
}

.reserves-box::before {
	top: -1px;
	left: -1px;
	border-width: 1px 0 0 1px;
}

.reserves-box::after {
	top: -1px;
	right: -1px;
	border-width: 1px 1px 0 0;
}

.reserves-box-corners {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
}

.reserves-box-corners::before,
.reserves-box-corners::after {
	content: '';
	position: absolute;
	width: 8px;
	height: 8px;
	border-color: #737373;
	border-style: solid;
}

.reserves-box-corners::before {
	bottom: -1px;
	left: -1px;
	border-width: 0 0 1px 1px;
}

.reserves-box-corners::after {
	bottom: -1px;
	right: -1px;
	border-width: 0 1px 1px 0;
}

body.dark-theme .reserves-box {
	border-color: #262626;
}

body.light-theme .reserves-box {
	border-color: #cccccc;
}

.reserves-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 8px;
	text-align: center;
	color: #ffffff;
}

.reserves-subtitle {
	font-size: 14px;
	text-align: center;
	color: #737373;
	margin-bottom: 48px;
}

.reserves-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	position: relative;
	margin: 0 -32px 0 -32px;
	border-top: 1px solid #262626;
}

.reserve-card {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px 40px;
	background: transparent;
	border-bottom: 1px solid #262626;
	border-right: 1px solid #262626;
	position: relative;
}

.reserve-card > * {
	flex-shrink: 0;
}

.reserve-card .reserve-info {
	min-width: 100px;
	text-align: left;
}

.reserve-card:nth-child(3n) {
	border-right: none;
}

.reserve-card:nth-last-child(-n + 3) {
	border-bottom: 1px solid #262626;
}

.reserve-card::before,
.reserve-card::after {
	content: '';
	position: absolute;
	background: #737373;
	pointer-events: none;
	z-index: 5;
}

.reserve-card::before {
	bottom: -5px;
	right: -1px;
	width: 1px;
	height: 9px;
}

.reserve-card::after {
	bottom: -1px;
	right: -5px;
	width: 9px;
	height: 1px;
}

.reserve-card:nth-child(3n)::before,
.reserve-card:nth-child(3n)::after,
.reserve-card:nth-last-child(-n + 3)::before,
.reserve-card:nth-last-child(-n + 3)::after {
	display: none;
}

.reserve-icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
}

.reserve-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.reserve-amount {
	font-family: 'Fira Code', monospace;
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
}

.reserve-currency {
	font-family: 'Fira Code', monospace;
	font-size: 12px;
	font-weight: 500;
	color: #a3a3a3;
}

.reserve-loading {
	text-align: center;
	padding: 40px;
	opacity: 0.6;
	grid-column: 1 / -1;
}

.onion-page-block .hero-title {
	font-weight: 800;
}

.swap-box.onion-page {
	padding: 32px;
}

.mirror-section + .mirror-section {
	margin-top: 32px;
}

.swap-box.onion-page .mirror-section .notice-box {
	margin-bottom: 16px;
}

.mirror-footer-hint {
	margin-top: 32px;
}

.swap-box.onion-page .notice-box {
	margin-bottom: 40px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background-color: rgba(255, 255, 255, 0.05);
	color: #ffffff;
	font-size: 15px;
	font-weight: 800;
}

body.light-theme .swap-box.onion-page .notice-box {
	border: 1px solid rgba(0, 0, 0, 0.08);
	background-color: rgba(255, 255, 255, 0.05);
	color: #0a0a0a;
	font-size: 15px;
	font-weight: 800;
}

.onion-address-block {
	padding: 0;
}

.onion-address {
	font-family: 'Fira Code', monospace;
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
	color: #ffffff;
	word-break: break-all;
}

.onion-address-hint {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
	color: #737373;
}

.onion-address-hint a {
	color: #ffffff;
	text-decoration: none;
}

.onion-address-hint a:hover {
	text-decoration: underline;
}

body.light-theme .onion-address-hint a {
	color: #0a0a0a;
}

body.light-theme .onion-address {
	color: #0a0a0a;
}

.pgp-key {
	font-family: 'Fira Code', monospace;
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
	color: #ffffff;
	white-space: pre-wrap;
	word-break: break-word;
	margin: 0;
	overflow-x: auto;
}

body.light-theme .pgp-key {
	color: #0a0a0a;
}

.swap-box.onion-page .button-row {
	margin-top: 40px;
}

.swap-box.onion-page .button-row .action-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	flex: 1;
	text-align: center;
}

.reserves-updated {
	text-align: center;
	font-size: 14px;
	color: #737373;
	margin: 0;
	padding: 48px 0 0 0;
}

@media (max-width: 899px) {
	.reserves-box {
		padding: 20px;
	}
	.reserves-title {
		font-size: 20px;
	}
	.reserves-subtitle {
		margin-bottom: 24px;
	}
	.reserves-grid {
		grid-template-columns: repeat(3, 1fr);
		margin: 0 -20px;
	}
	.reserve-card {
		padding: 12px 8px;
		flex-direction: column;
		gap: 8px;
	}
	.reserve-card .reserve-info {
		min-width: auto;
		text-align: center;
	}
	.reserve-icon {
		width: 28px;
		height: 28px;
	}
	.reserve-amount {
		font-size: 12px;
	}
	.reserve-currency {
		font-size: 10px;
	}
	.reserves-updated {
		padding: 20px 0 0 0;
	}
}

body.dark-theme .content-block > .swap-box.swap-status-box,
body.light-theme .content-block > .swap-box.swap-status-box {
	max-width: 900px;
	width: 100%;
	margin: 0 0 32px;
	padding: 14px 24px;
	box-sizing: border-box;
	height: auto;
	flex: none;
}

body.dark-theme .content-block > .swap-box.swap-status-box .swap-status-message,
body.light-theme .content-block > .swap-box.swap-status-box .swap-status-message {
	margin: 0;
	padding: 0;
	width: 100%;
	text-align: center;
	font-size: 14px;
	line-height: 1.6;
}

body.dark-theme .content-block > .swap-box.swap-error-box,
body.light-theme .content-block > .swap-box.swap-error-box {
	background-color: rgba(255, 0, 0, 0.05) !important;
	border: 1px solid rgba(255, 0, 0, 0.2) !important;
	color: #ffffff !important;
}

body.dark-theme .content-block > .swap-box.swap-error-box a,
body.light-theme .content-block > .swap-box.swap-error-box a {
	color: #ffffff !important;
	text-decoration: underline;
}

body.dark-theme .content-block > .swap-box.swap-success-box,
body.light-theme .content-block > .swap-box.swap-success-box {
	background-color: rgba(76, 175, 80, 0.05) !important;
	border: 1px solid rgba(76, 175, 80, 0.2) !important;
	color: #ffffff !important;
}

body.dark-theme .content-block > .swap-box.swap-success-box a,
body.light-theme .content-block > .swap-box.swap-success-box a {
	color: #ffffff !important;
	text-decoration: underline;
}
