/* Founder account nav, settings, payments, header menu */

.ns-account-shell {
	--ns-purple: #6846d8;
	--ns-purple-hover: #5232bd;
	--ns-ink: #20243b;
	--ns-muted: #626681;
	--ns-soft: #f5f2fd;
	--ns-border: #e1d9f7;
	max-width: 1200px;
	font-family: Inter, Arial, sans-serif;
}

.ns-account-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

.ns-account-nav {
	position: sticky;
	top: 16px;
	background: #fff;
	border: 1px solid var(--ns-border);
	border-radius: 16px;
	padding: 14px;
	box-shadow: 0 12px 30px rgba(72, 47, 130, 0.05);
}

.ns-account-nav-toggle {
	display: none;
	width: 100%;
	min-height: 42px;
	border: 1px solid #e1d9f7 !important;
	border-radius: 10px !important;
	background: #f5f2fd !important;
	color: #20243b !important;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none !important;
	box-shadow: none !important;
	outline: none;
}

.ns-account-nav-toggle:hover,
.ns-account-nav-toggle:focus {
	background: #ece6fc !important;
	border-color: #6846d8 !important;
	color: #6846d8 !important;
}

.ns-account-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 4px;
}

.ns-account-nav-list > li {
	margin: 0;
	padding: 0;
}

.ns-account-nav-list form {
	display: block;
	margin: 0;
	padding: 0;
	width: 100%;
	border: 0;
	background: transparent;
}

.ns-account-nav-link,
button.ns-account-nav-link,
.ns-account-nav-logout,
button.ns-account-nav-logout {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 10px !important;
	width: 100% !important;
	min-height: 42px !important;
	height: auto !important;
	padding: 0 12px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: transparent !important;
	background-image: none !important;
	color: var(--ns-muted) !important;
	text-decoration: none !important;
	font-family: Inter, Arial, sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	cursor: pointer;
	text-align: left !important;
	box-shadow: none !important;
	appearance: none;
	-webkit-appearance: none;
}

.ns-account-nav-link .ns-nav-icon,
.ns-account-nav-logout .ns-nav-icon,
button.ns-account-nav-logout .ns-nav-icon {
	display: block !important;
	flex: 0 0 18px !important;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	padding: 0 !important;
	color: currentColor;
	align-self: center;
}

.ns-account-nav-link span,
.ns-account-nav-logout span,
button.ns-account-nav-logout span {
	display: inline-flex !important;
	align-items: center !important;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.2 !important;
	white-space: nowrap;
}

.ns-account-nav-link:hover,
.ns-account-nav-link:focus,
.ns-account-nav-logout:hover,
.ns-account-nav-logout:focus,
button.ns-account-nav-logout:hover,
button.ns-account-nav-logout:focus {
	background: var(--ns-soft) !important;
	color: var(--ns-purple) !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.ns-account-nav-link.is-active {
	background: var(--ns-soft) !important;
	color: var(--ns-purple) !important;
}

.ns-account-nav-link:focus-visible,
.ns-account-nav-logout:focus-visible,
button.ns-account-nav-logout:focus-visible {
	outline: 2px solid #6846d8 !important;
	outline-offset: 2px;
}

.ns-account-main > .ns-dash,
.ns-account-panel,
.ns-account-main .ns-edit {
	margin: 0;
}

.ns-account-panel {
	background: #fff;
	border: 1px solid var(--ns-border);
	border-radius: 16px;
	padding: clamp(22px, 4vw, 36px);
	box-shadow: 0 16px 45px rgba(72, 47, 130, 0.06);
	color: var(--ns-ink);
}

.ns-account-panel h1 {
	margin: 0 0 10px;
	font-size: clamp(28px, 4vw, 32px);
	font-weight: 700;
	color: var(--ns-ink);
}

.ns-account-panel .ns-dash-lead {
	margin: 0 0 28px;
}

.ns-account-panel a {
	color: var(--ns-purple);
	text-decoration: none !important;
}

.ns-account-panel a:hover {
	color: var(--ns-purple-hover);
}

.ns-account-avatar-row {
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
}

.ns-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ns-soft);
	border: 1px solid var(--ns-border);
	color: var(--ns-purple);
	font-weight: 700;
}

.ns-account-avatar-row .ns-avatar,
.ns-account-avatar-preview .ns-avatar,
#ns-avatar-preview {
	width: 72px;
	height: 72px;
	font-size: 28px;
	flex: 0 0 auto;
}

#ns-avatar-preview {
	display: block;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--ns-border);
	background: var(--ns-soft);
}

.ns-account-avatar-controls {
	display: grid;
	gap: 10px;
	flex: 1 1 200px;
}

.ns-account-upload-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	min-height: 42px;
	padding: 0 16px;
	width: fit-content;
	border: 1px solid #6846d8 !important;
	border-radius: 10px !important;
	background: #6846d8 !important;
	color: #fff !important;
	font-family: Inter, Arial, sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	cursor: pointer;
	box-shadow: none !important;
}

.ns-account-upload-btn:hover,
.ns-account-upload-btn:focus {
	background: #5232bd !important;
	border-color: #5232bd !important;
	color: #fff !important;
}

.ns-account-upload-btn svg {
	display: block !important;
	width: 18px !important;
	height: 18px !important;
	flex: 0 0 18px !important;
	margin: 0 !important;
}

.ns-account-avatar-file {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
}

.ns-account-avatar-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.ns-account-remove-photo {
	border: 0 !important;
	background: transparent !important;
	color: #b42318 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
	padding: 6px 0;
	box-shadow: none !important;
}

.ns-account-remove-photo:hover {
	color: #912018 !important;
}

.ns-verified-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #e8f8ee;
	color: #1f6b3c;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.ns-verified-badge::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #20834c;
}

.ns-account-form {
	display: grid;
	gap: 20px;
}

.ns-account-form .ns-edit-actions {
	margin-top: 4px;
	padding-top: 0;
}

.ns-account-section h2 {
	margin: 0 0 8px;
}

.ns-account-section > p,
.ns-account-section .ns-edit-note {
	margin: 0 0 16px;
}

.ns-account-section form {
	display: grid;
	gap: 20px;
}

.ns-account-section .ns-dash-btn {
	width: fit-content;
	margin-top: 0;
}

.ns-account-readonly {
	margin: 18px 0;
	padding: 16px;
	border-radius: 12px;
	background: var(--ns-soft);
	border: 1px solid var(--ns-border);
}

.ns-account-readonly dl {
	margin: 0;
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 8px 16px;
	font-size: 14px;
}

.ns-account-readonly dt {
	color: var(--ns-muted);
}

.ns-account-readonly dd {
	margin: 0;
	font-weight: 650;
	word-break: break-word;
	color: var(--ns-ink);
}

.ns-account-section {
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--ns-border);
}

.ns-account-danger {
	border-color: #f0c7c7;
}

.ns-pay-summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 8px 0 24px;
}

.ns-pay-summary-card {
	padding: 18px 20px;
	border-radius: 12px;
	background: var(--ns-soft);
	border: 1px solid var(--ns-border);
}

.ns-pay-summary-card span {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--ns-muted);
	margin-bottom: 6px;
}

.ns-pay-summary-card strong {
	display: block;
	color: var(--ns-purple);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.ns-pay-empty {
	text-align: center;
	padding: 40px 20px;
	border: 1px dashed var(--ns-border);
	border-radius: 16px;
	background: var(--ns-soft);
}

.ns-pay-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--ns-border);
	color: var(--ns-purple);
}

.ns-pay-empty-icon svg {
	display: block;
	width: 28px;
	height: 28px;
	margin: 0;
}

.ns-pay-empty h3 {
	margin: 0 0 8px;
}

.ns-pay-empty p {
	margin: 0 auto;
	max-width: 28rem;
}

.ns-pay-total {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	margin: 18px 0;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--ns-soft);
	border: 1px solid var(--ns-border);
}

.ns-pay-total strong {
	color: var(--ns-purple);
	font-size: 22px;
}

/* Delete confirmation panel */
.ns-account-delete-trigger {
	margin-top: 8px;
}

.ns-account-modal[hidden] {
	display: none !important;
}

.ns-account-modal {
	margin-top: 16px;
	padding: 18px;
	border-radius: 12px;
	border: 1px solid #f0c7c7;
	background: #fffafa;
}

.ns-account-modal h3 {
	margin: 0 0 8px;
	color: #912018;
}

.ns-account-modal form {
	display: grid;
	gap: 16px;
	margin-top: 14px;
}

.ns-account-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

.ns-pay-list {
	display: grid;
	gap: 12px;
}

.ns-pay-card {
	border: 1px solid var(--ns-border);
	border-radius: 12px;
	padding: 16px;
	background: #fff;
}

.ns-pay-card h3 {
	margin: 0 0 10px;
	font-size: 17px;
	color: var(--ns-ink);
}

.ns-pay-card ul {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: grid;
	gap: 6px;
}

.ns-pay-card li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
}

.ns-pay-card li span {
	color: var(--ns-muted);
}

.ns-upgrade-box {
	display: grid;
	gap: 12px;
	width: 100%;
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--ns-border);
	background: var(--ns-soft);
	box-sizing: border-box;
}

.ns-upgrade-box-copy {
	min-width: 0;
}

.ns-upgrade-box h3 {
	margin: 0 0 6px;
	color: var(--ns-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.ns-upgrade-benefits {
	margin: 0 0 8px;
	padding-left: 18px;
	color: var(--ns-muted);
	font-size: 13px;
	line-height: 1.45;
}

.ns-upgrade-benefits li {
	margin: 0 0 4px;
}

.ns-upgrade-benefits li:last-child {
	margin-bottom: 0;
}

.ns-upgrade-note {
	margin: 0;
	color: var(--ns-muted);
	font-size: 12px;
	line-height: 1.45;
}

.ns-upgrade-form {
	margin: 0;
	width: 100%;
}

.ns-upgrade-btn,
.ns-upgrade-box .ns-upgrade-btn {
	display: inline-flex !important;
	width: 100% !important;
	justify-content: center !important;
}

/* Header account menu */
.ns-header-account {
	position: relative;
	display: inline-flex;
	align-items: center;
	font-family: Inter, Arial, sans-serif;
}

.ns-header-login {
	display: inline-flex;
	align-items: center;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: #20243b !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
	transition: color 0.2s;
}

.ns-header-login:hover,
.ns-header-login:focus {
	background: transparent !important;
	box-shadow: none !important;
	color: #6846d8 !important;
	text-decoration: none !important;
}

.ns-header-account-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	min-height: 36px;
	padding: 2px 4px 2px 2px;
	border: 0 !important;
	border-radius: 999px;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
	color: #20243b !important;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none !important;
	outline: none;
}

.ns-header-account-btn:hover,
.ns-header-account-btn:focus {
	background: #f5f2fd !important;
	color: #20243b !important;
}

.ns-header-account-btn:focus-visible {
	outline: 2px solid #6846d8;
	outline-offset: 2px;
}

.ns-header-account-name {
	display: none !important;
}

.ns-header-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #626681;
	margin: 0;
}

.ns-header-chevron svg {
	display: block;
	width: 12px;
	height: 12px;
	margin: 0;
}

.ns-header-account-meta {
	padding: 10px 12px 12px;
	border-bottom: 1px solid #e1d9f7;
	margin-bottom: 4px;
}

.ns-header-account-meta strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #20243b;
	line-height: 1.3;
	word-break: break-word;
}

.ns-header-account-meta span {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 400;
	color: #626681;
	line-height: 1.4;
	word-break: break-word;
}

.ns-header-account-btn .ns-avatar {
	width: 32px;
	height: 32px;
	font-size: 14px;
	border-color: #e1d9f7;
	background: #f5f2fd;
	color: #6846d8;
}

.ns-header-account-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	min-width: 220px;
	padding: 8px;
	border-radius: 12px;
	border: 1px solid #e1d9f7;
	background: #fff;
	box-shadow: 0 16px 40px rgba(72, 47, 130, 0.12);
	z-index: 1000;
	display: grid;
	gap: 2px;
}

.ns-header-account-menu a,
.ns-header-account-menu button {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	border: 0 !important;
	border-radius: 8px;
	background: transparent !important;
	color: #20243b !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none !important;
}

.ns-header-account-menu a:hover,
.ns-header-account-menu button:hover {
	background: #f5f2fd !important;
	color: #6846d8 !important;
}

@media (max-width: 860px) {
	.ns-account-layout {
		grid-template-columns: 1fr;
	}

	.ns-account-nav {
		position: static;
	}

	.ns-account-nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.ns-account-nav-list {
		display: none;
		margin-top: 10px;
	}

	.ns-account-nav.is-open .ns-account-nav-list {
		display: grid;
	}

	.ns-account-readonly dl {
		grid-template-columns: 1fr;
	}

	.ns-pay-summary {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 861px) {
	.ns-account-nav-toggle {
		display: none !important;
	}

	.ns-account-nav-list {
		display: grid !important;
	}
}
