.np-tip-hidden {
	display: none !important;
}

.np-tip-uploader-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.np-tip-trigger {
	appearance: none;
	border: 0;
	border-radius: 10px;
	background: #e50914;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 32px;
	padding: 7px 13px;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	white-space: nowrap;
	transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.np-tip-trigger:hover,
.np-tip-trigger:focus-visible {
	background: #ff2630;
	box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
	color: #fff;
}

.np-tip-trigger:active {
	transform: translateY(1px);
}

.np-tip-trigger .np-tip-coin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	color: #c80811;
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
}

.block-details .block-user .username .np-tip-trigger {
	border-radius: 10px;
	background: #e50914;
	color: #fff;
	order: 3;
	padding: 7px 13px;
}

.no-touch .block-details .block-user .username .np-tip-trigger:hover {
	background: #ff2630;
}

.headline .np-tip-trigger {
	order: 0;
	margin: 2px 3px;
	padding: 7px 13px;
	background: #e50914;
	color: #fff;
}

.headline .np-tip-trigger span {
	padding: 0;
}

.np-tip-modal-open {
	overflow: hidden;
}

.np-tip-modal-root {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(5, 6, 8, 0.78);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	animation: np-tip-fade-in 180ms ease both;
}

.np-tip-dialog {
	position: relative;
	width: min(640px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	overscroll-behavior: contain;
	border: 1px solid #454850;
	border-radius: 18px;
	background: #25272c;
	color: #f5f5f5;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
	animation: np-tip-dialog-in 200ms ease both;
}

.np-tip-settings-dialog {
	width: min(820px, 100%);
}

.np-tip-dialog * {
	box-sizing: border-box;
}

.np-tip-dialog [hidden] {
	display: none !important;
}

.np-tip-dialog-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 22px;
	border-bottom: 1px solid #3d4047;
	background: linear-gradient(135deg, #2d3036 0%, #25272c 70%);
}

.np-tip-dialog-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(145deg, #ff3740, #be050d);
	box-shadow: 0 8px 22px rgba(229, 9, 20, 0.25);
	color: #fff;
	font-size: 23px;
	font-weight: 900;
}

.np-tip-dialog-heading {
	min-width: 0;
	flex: 1 1 auto;
}

.np-tip-dialog-heading h2 {
	margin: 0 0 3px;
	padding: 0;
	color: #fff;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
}

.np-tip-dialog-heading p {
	margin: 0;
	color: #aeb1b8;
	font-size: 13px;
	line-height: 1.4;
}

.np-tip-close {
	appearance: none;
	border: 0;
	border-radius: 50%;
	background: #3a3d44;
	color: #d7d8db;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	transition: background-color 160ms ease, color 160ms ease;
}

.np-tip-close:hover,
.np-tip-close:focus-visible {
	background: #e50914;
	color: #fff;
}

.np-tip-dialog-body {
	padding: 21px 22px 22px;
}

.np-tip-section + .np-tip-section {
	margin-top: 20px;
}

.np-tip-section-title {
	display: block;
	margin: 0 0 10px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

.np-tip-amounts {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 7px;
}

.np-tip-amount {
	appearance: none;
	border: 1px solid #494c54;
	border-radius: 9px;
	background: #303238;
	color: #dfe0e2;
	cursor: pointer;
	min-height: 38px;
	padding: 8px 5px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.np-tip-amount:hover,
.np-tip-amount:focus-visible,
.np-tip-amount.is-selected {
	border-color: #e50914;
	background: #e50914;
	color: #fff;
}

.np-tip-custom-amount {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 9px;
}

.np-tip-custom-amount[hidden] {
	display: none;
}

.np-tip-custom-prefix {
	color: #fff;
	font-size: 16px;
	font-weight: 700;
}

.np-tip-input,
.np-tip-method-input,
.np-tip-password {
	width: 100%;
	border: 1px solid #4b4e56;
	border-radius: 9px;
	outline: 0;
	background: #1d1f23;
	color: #fff;
	padding: 10px 11px;
	font: inherit;
	font-size: 13px;
	line-height: 18px;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.np-tip-input:focus,
.np-tip-method-input:focus,
.np-tip-password:focus {
	border-color: #e50914;
	box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.16);
}

.np-tip-method-input:disabled {
	background: #282a2f;
	color: #777b84;
	cursor: not-allowed;
}

.np-tip-methods {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 9px;
}

.np-tip-method {
	appearance: none;
	border: 1px solid #454850;
	border-radius: 11px;
	background: #303238;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	padding: 10px;
	text-align: left;
	transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.np-tip-method:hover,
.np-tip-method:focus-visible {
	border-color: #747780;
	background: #383a41;
}

.np-tip-method.is-selected {
	border-color: #e50914;
	background: rgba(229, 9, 20, 0.12);
	box-shadow: inset 0 0 0 1px #e50914;
}

.np-tip-method-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: #4a4d55;
	color: #fff;
	font-size: 14px;
	font-weight: 900;
}

.np-tip-method.is-selected .np-tip-method-icon {
	background: #e50914;
}

.np-tip-method-copy {
	min-width: 0;
}

.np-tip-method-copy strong,
.np-tip-method-copy small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.np-tip-method-copy strong {
	color: #fff;
	font-size: 13px;
	line-height: 17px;
}

.np-tip-method-copy small {
	margin-top: 2px;
	color: #a4a7ae;
	font-size: 10px;
	line-height: 14px;
}

.np-tip-destination {
	margin-top: 12px;
	padding: 13px;
	border: 1px solid #42454c;
	border-radius: 11px;
	background: #1d1f23;
}

.np-tip-destination-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.np-tip-destination-head strong {
	color: #fff;
	font-size: 13px;
}

.np-tip-network {
	color: #f0a4a8;
	font-size: 11px;
	font-weight: 700;
	text-align: right;
}

.np-tip-destination-value {
	padding: 9px 10px;
	border-radius: 8px;
	background: #292b30;
	color: #d9dadd;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	line-height: 17px;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.np-tip-destination-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.np-tip-primary,
.np-tip-secondary {
	appearance: none;
	border: 0;
	border-radius: 9px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 9px 15px;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.np-tip-primary {
	background: #e50914;
	color: #fff;
}

.np-tip-primary:hover,
.np-tip-primary:focus-visible {
	background: #ff2630;
	color: #fff;
}

.np-tip-secondary {
	border: 1px solid #50535b;
	background: #34363c;
	color: #fff;
}

.np-tip-secondary:hover,
.np-tip-secondary:focus-visible {
	border-color: #777a82;
	background: #41444b;
	color: #fff;
}

.np-tip-copy-status {
	color: #aeb1b8;
	font-size: 11px;
	line-height: 16px;
}

.np-tip-notice {
	margin-top: 17px;
	padding: 11px 12px;
	border-left: 3px solid #e50914;
	border-radius: 0 8px 8px 0;
	background: #303238;
	color: #b9bbc0;
	font-size: 11px;
	line-height: 17px;
}

.np-tip-notice strong {
	color: #fff;
}

.np-tip-status {
	display: none;
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 12px;
	line-height: 17px;
}

.np-tip-status.is-visible {
	display: block;
}

.np-tip-status.is-error {
	border: 1px solid #b32931;
	background: rgba(179, 41, 49, 0.17);
	color: #ffbec2;
}

.np-tip-status.is-success {
	border: 1px solid #277c50;
	background: rgba(39, 124, 80, 0.18);
	color: #bff2d5;
}

.np-tip-settings-intro {
	margin: 0 0 17px;
	color: #b8bac0;
	font-size: 12px;
	line-height: 18px;
}

.np-tip-settings-intro strong {
	color: #fff;
}

.np-tip-settings-group {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
}

.np-tip-settings-group legend {
	width: 100%;
	margin: 0 0 9px;
	padding: 0 0 7px;
	border-bottom: 1px solid #3d4047;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.np-tip-settings-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.np-tip-settings-row {
	padding: 11px;
	border: 1px solid #41444b;
	border-radius: 10px;
	background: #2d2f34;
}

.np-tip-settings-row.is-enabled {
	border-color: rgba(229, 9, 20, 0.78);
}

.np-tip-method-toggle {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 8px;
	cursor: pointer;
}

.np-tip-method-toggle input {
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	accent-color: #e50914;
}

.np-tip-method-toggle span {
	min-width: 0;
}

.np-tip-method-toggle strong,
.np-tip-method-toggle small {
	display: block;
}

.np-tip-method-toggle strong {
	color: #fff;
	font-size: 12px;
	line-height: 16px;
}

.np-tip-method-toggle small {
	color: #a7aab1;
	font-size: 10px;
	line-height: 14px;
}

.np-tip-method-help {
	display: block;
	margin-top: 6px;
	color: #8f929a;
	font-size: 10px;
	line-height: 14px;
}

.np-tip-password-row {
	margin-top: 4px;
	padding-top: 16px;
	border-top: 1px solid #3d4047;
}

.np-tip-password-row label {
	display: block;
	margin-bottom: 7px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.np-tip-settings-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 15px;
}

.np-tip-settings-actions button:disabled {
	cursor: wait;
	opacity: 0.6;
}

@keyframes np-tip-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes np-tip-dialog-in {
	from { opacity: 0; transform: translateY(10px) scale(0.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 700px) {
	.np-tip-modal-root {
		align-items: flex-end;
		padding: 0;
	}

	.np-tip-dialog {
		width: 100%;
		max-height: 92vh;
		border-width: 1px 0 0;
		border-radius: 18px 18px 0 0;
	}

	.np-tip-dialog-header {
		padding: 16px;
	}

	.np-tip-dialog-body {
		padding: 17px 16px 20px;
	}

	.np-tip-dialog-heading h2 {
		font-size: 18px;
	}

	.np-tip-amounts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.np-tip-methods {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.np-tip-settings-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 430px) {
	.np-tip-methods {
		grid-template-columns: 1fr;
	}

	.np-tip-destination-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 3px;
	}

	.np-tip-network {
		text-align: left;
	}

	.np-tip-destination-actions,
	.np-tip-settings-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.np-tip-primary,
	.np-tip-secondary {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.np-tip-modal-root,
	.np-tip-dialog {
		animation: none;
	}

	.np-tip-trigger,
	.np-tip-method,
	.np-tip-amount,
	.np-tip-close,
	.np-tip-primary,
	.np-tip-secondary {
		transition: none;
	}
}
