/**
 * WP AppShort — public web app styles.
 * All selectors are prefixed with `.wpas-` to avoid clashes with theme/WP admin CSS.
 */

.wpas-app {
	--wpas-bg: #f6f7fb;
	--wpas-card: #ffffff;
	--wpas-ink: #111827;
	--wpas-muted: #6b7280;
	--wpas-line: #e5e7eb;
	--wpas-primary: #4f46e5;
	--wpas-primary-dark: #4338ca;
	--wpas-primary-soft: #eef2ff;
	--wpas-danger: #dc2626;
	--wpas-success: #16a34a;
	--wpas-radius: 16px;
	--wpas-radius-sm: 10px;
	--wpas-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
	--wpas-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	max-width: 960px;
	margin: 0 auto;
	padding: 8px 16px 64px;
	color: var(--wpas-ink);
	font-family: var(--wpas-font);
	font-size: 16px;
	line-height: 1.55;
	box-sizing: border-box;
}

.wpas-app--app {
	max-width: 1200px;
	padding: 8px 12px 48px;
}

.wpas-app *,
.wpas-app *::before,
.wpas-app *::after {
	box-sizing: border-box;
}

/* Public layout --------------------------------------------------------- */
.wpas-public {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 24px;
	align-items: start;
}

.wpas-public .wpas-card {
	margin-bottom: 0;
}

/* Auth ------------------------------------------------------------------ */
.wpas-auth {
	position: relative;
}

.wpas-auth__tabs {
	display: flex;
	gap: 4px;
	padding: 4px;
	margin-bottom: 20px;
	background: var(--wpas-bg);
	border-radius: var(--wpas-radius-sm);
}

.wpas-auth__tab {
	flex: 1;
	padding: 10px 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--wpas-muted);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.wpas-auth__tab.is-active {
	background: #fff;
	color: var(--wpas-primary);
	box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08);
}

.wpas-auth__form {
	display: none;
	flex-direction: column;
	gap: 10px;
}

.wpas-auth__form.is-active {
	display: flex;
}

.wpas-auth__title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 800;
}

.wpas-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--wpas-muted);
	margin: 4px 0;
}

/* App shell ------------------------------------------------------------- */
.wpas-shell {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 20px;
	align-items: start;
}

.wpas-sidebar {
	position: sticky;
	top: 16px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 20px 16px;
	border-radius: var(--wpas-radius);
	background: linear-gradient(180deg, #1f2937, #111827);
	color: #e5e7eb;
	box-shadow: var(--wpas-shadow);
}

.wpas-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wpas-brand__mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: linear-gradient(135deg, #6366f1, #a855f7);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
}

.wpas-brand__name {
	font-weight: 700;
	font-size: 16px;
	color: #fff;
}

.wpas-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wpas-nav__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #cbd5e1;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.wpas-nav__item .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.wpas-nav__item:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.wpas-nav__item.is-active {
	background: var(--wpas-primary);
	color: #fff;
}

.wpas-userbox {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: auto;
}

.wpas-userbox__avatar {
	border-radius: 50%;
	width: 40px;
	height: 40px;
}

.wpas-userbox__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.wpas-userbox__meta strong {
	color: #fff;
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wpas-userbox__logout {
	border: 0;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
}

.wpas-userbox__logout:hover {
	background: var(--wpas-danger);
}

.wpas-plan-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #e5e7eb;
	font-size: 11px;
	font-weight: 600;
	width: fit-content;
}

/* Main ------------------------------------------------------------------ */
.wpas-main {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.wpas-topbar {
	background: var(--wpas-card);
	border: 1px solid var(--wpas-line);
	border-radius: var(--wpas-radius);
	padding: 16px;
	box-shadow: var(--wpas-shadow);
}

.wpas-quick {
	display: flex;
	gap: 10px;
	align-items: center;
}

.wpas-quick .wpas-input {
	flex: 1 1 auto;
}

.wpas-quick__alias {
	max-width: 160px;
	flex: 0 1 160px;
}

.wpas-view {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.wpas-view[hidden] {
	display: none;
}

.wpas-view__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.wpas-view__title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.wpas-card--pad {
	padding: 20px;
	margin-bottom: 0;
}

/* Stat grid ------------------------------------------------------------- */
.wpas-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
}

.wpas-stat {
	padding: 18px;
	border-radius: var(--wpas-radius-sm);
	background: var(--wpas-card);
	border: 1px solid var(--wpas-line);
	box-shadow: var(--wpas-shadow);
}

.wpas-stat__label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wpas-muted);
}

.wpas-stat__value {
	display: block;
	margin-top: 6px;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--wpas-ink);
}

/* Recent list ----------------------------------------------------------- */
.wpas-recent-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpas-recent-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--wpas-line);
}

.wpas-recent-list li:last-child {
	border-bottom: 0;
}

.wpas-recent-list__main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wpas-recent-list__main a {
	color: var(--wpas-primary);
	font-weight: 600;
	text-decoration: none;
}

.wpas-pill {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--wpas-primary-soft);
	color: var(--wpas-primary-dark);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

/* Plans ----------------------------------------------------------------- */
.wpas-plan-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.wpas-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	border-radius: var(--wpas-radius);
	background: var(--wpas-card);
	border: 1px solid var(--wpas-line);
	box-shadow: var(--wpas-shadow);
}

.wpas-plan.is-current {
	border-color: var(--wpas-primary);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15), var(--wpas-shadow);
}

.wpas-plan__ribbon {
	position: absolute;
	top: 16px;
	right: 16px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--wpas-primary);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

.wpas-plan__name {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
}

.wpas-plan__desc {
	margin: 0;
	color: var(--wpas-muted);
	font-size: 14px;
	min-height: 20px;
}

.wpas-plan__price {
	margin: 4px 0;
	font-size: 15px;
	color: var(--wpas-muted);
}

.wpas-plan__price strong {
	font-size: 30px;
	font-weight: 800;
	color: var(--wpas-ink);
}

.wpas-plan__interval {
	margin-left: 4px;
}

.wpas-plan__quota {
	margin: 0;
	font-weight: 600;
	color: var(--wpas-primary-dark);
	font-size: 14px;
}

.wpas-plan__features {
	list-style: none;
	margin: 6px 0 12px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wpas-plan__features li {
	position: relative;
	padding-left: 22px;
	font-size: 14px;
	color: var(--wpas-muted);
}

.wpas-plan__features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--wpas-success);
	font-weight: 800;
}

.wpas-plan .wpas-btn {
	margin-top: auto;
}

/* Account --------------------------------------------------------------- */
.wpas-account-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.wpas-account-grid .wpas-card {
	margin-bottom: 0;
}

.wpas-sub__plan {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.wpas-sub__plan strong {
	font-size: 18px;
}

.wpas-sub__row {
	margin: 6px 0;
	color: var(--wpas-muted);
	font-size: 14px;
}

.wpas-sub__note {
	margin-top: 8px;
	font-size: 13px;
	color: var(--wpas-danger);
}

.wpas-account-grid .wpas-plan-badge {
	background: var(--wpas-primary-soft);
	color: var(--wpas-primary-dark);
}

/* Locked panel ---------------------------------------------------------- */
.wpas-locked {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 36px 20px;
	text-align: center;
	color: var(--wpas-muted);
}

/* Hero ------------------------------------------------------------------ */
.wpas-hero {
	position: relative;
	margin: 24px 0 28px;
	padding: 44px 32px;
	border-radius: 24px;
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #db2777 100%);
	color: #fff;
	overflow: hidden;
	box-shadow: var(--wpas-shadow);
}

.wpas-hero::after {
	content: "";
	position: absolute;
	inset: -40% -10% auto auto;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 65%);
	pointer-events: none;
}

.wpas-hero__badge {
	display: inline-block;
	padding: 4px 12px;
	margin-bottom: 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wpas-hero__title {
	margin: 0 0 8px;
	font-size: clamp(24px, 4vw, 34px);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
}

.wpas-hero__subtitle {
	margin: 0;
	max-width: 560px;
	font-size: 16px;
	opacity: 0.92;
}

/* Cards ----------------------------------------------------------------- */
.wpas-card {
	background: var(--wpas-card);
	border: 1px solid var(--wpas-line);
	border-radius: var(--wpas-radius);
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: var(--wpas-shadow);
}

.wpas-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.wpas-card__title {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--wpas-ink);
}

/* Forms ----------------------------------------------------------------- */
.wpas-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wpas-form--inline {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
}

.wpas-form--inline .wpas-input {
	flex: 1 1 260px;
}

.wpas-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wpas-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--wpas-muted);
}

.wpas-input {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--wpas-line);
	border-radius: var(--wpas-radius-sm);
	background: #fff;
	color: var(--wpas-ink);
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wpas-input:focus {
	outline: none;
	border-color: var(--wpas-primary);
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.wpas-input::placeholder {
	color: #9ca3af;
}

.wpas-input--mini {
	padding: 7px 10px;
	font-size: 13px;
}

.wpas-input-group {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--wpas-line);
	border-radius: var(--wpas-radius-sm);
	overflow: hidden;
	background: #fff;
}

.wpas-input-group:focus-within {
	border-color: var(--wpas-primary);
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.wpas-input-group__prefix {
	display: flex;
	align-items: center;
	padding: 0 12px;
	background: var(--wpas-bg);
	color: var(--wpas-muted);
	font-size: 14px;
	white-space: nowrap;
	border-right: 1px solid var(--wpas-line);
}

.wpas-input-group .wpas-input {
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.wpas-input-group .wpas-input:focus {
	box-shadow: none;
}

.wpas-select {
	padding: 9px 12px;
	border: 1px solid var(--wpas-line);
	border-radius: var(--wpas-radius-sm);
	background: #fff;
	font-size: 14px;
	font-family: inherit;
	color: var(--wpas-ink);
}

/* Buttons --------------------------------------------------------------- */
.wpas-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: var(--wpas-radius-sm);
	background: #f3f4f6;
	color: var(--wpas-ink);
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.wpas-btn:hover {
	transform: translateY(-1px);
}

.wpas-btn:active {
	transform: translateY(0);
}

.wpas-btn:disabled,
.wpas-btn.is-busy {
	opacity: 0.7;
	cursor: progress;
	transform: none;
}

.wpas-btn--primary {
	background: var(--wpas-primary);
	color: #fff;
	box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.wpas-btn--primary:hover {
	background: var(--wpas-primary-dark);
}

.wpas-btn--ghost {
	background: transparent;
	border-color: var(--wpas-line);
	color: var(--wpas-muted);
}

.wpas-btn--ghost:hover {
	background: var(--wpas-bg);
	color: var(--wpas-ink);
}

.wpas-btn--danger {
	background: #fef2f2;
	color: var(--wpas-danger);
}

.wpas-btn--danger:hover {
	background: #fee2e2;
}

.wpas-btn--block {
	width: 100%;
	padding: 15px 20px;
	font-size: 16px;
}

.wpas-btn--small {
	padding: 8px 12px;
	font-size: 13px;
}

.wpas-linkbtn {
	background: none;
	border: 0;
	padding: 0;
	color: var(--wpas-primary);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}

/* Spinner --------------------------------------------------------------- */
.wpas-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: wpas-spin 0.7s linear infinite;
}

.wpas-btn.is-busy .wpas-spinner {
	display: inline-block;
}

@keyframes wpas-spin {
	to { transform: rotate(360deg); }
}

/* Messages -------------------------------------------------------------- */
.wpas-message {
	margin: 0;
	min-height: 1px;
	font-size: 14px;
}

.wpas-message.is-error {
	color: var(--wpas-danger);
}

.wpas-message.is-success {
	color: var(--wpas-success);
}

/* Upgrade / notice cards ------------------------------------------------ */
.wpas-upgrade__title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.wpas-upgrade__list {
	margin: 0 0 20px;
	padding-left: 20px;
	color: var(--wpas-muted);
}

.wpas-upgrade__list li {
	margin: 6px 0;
}

.wpas-notice h2 {
	margin-top: 0;
}

/* Library table --------------------------------------------------------- */
.wpas-table-wrap {
	overflow-x: auto;
}

.wpas-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.wpas-table th,
.wpas-table td {
	padding: 12px 10px;
	text-align: left;
	border-bottom: 1px solid var(--wpas-line);
	vertical-align: middle;
}

.wpas-table th {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wpas-muted);
	font-weight: 700;
}

.wpas-table a {
	color: var(--wpas-primary);
	text-decoration: none;
	word-break: break-all;
}

.wpas-table a:hover {
	text-decoration: underline;
}

.wpas-long {
	display: inline-block;
	max-width: 280px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
	color: var(--wpas-muted);
}

.wpas-empty {
	color: var(--wpas-muted);
	text-align: center;
	padding: 18px 8px;
}

.wpas-copy-mini {
	margin-left: 6px;
	border: 1px solid var(--wpas-line);
	background: #fff;
	border-radius: 6px;
	cursor: pointer;
	font-size: 12px;
	line-height: 1;
	padding: 3px 6px;
	color: var(--wpas-muted);
}

.wpas-copy-mini:hover {
	color: var(--wpas-primary);
	border-color: var(--wpas-primary);
}

/* Metrics + chart ------------------------------------------------------- */
.wpas-metrics {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.wpas-metric {
	flex: 1 1 140px;
	background: var(--wpas-primary-soft);
	border-radius: var(--wpas-radius-sm);
	padding: 14px 16px;
}

.wpas-metric__value {
	display: block;
	font-size: 26px;
	font-weight: 800;
	color: var(--wpas-primary-dark);
	line-height: 1.1;
}

.wpas-metric__label {
	display: block;
	font-size: 12px;
	color: var(--wpas-muted);
	margin-top: 4px;
}

.wpas-bars {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	height: 180px;
	padding-top: 10px;
}

.wpas-bar {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	min-width: 12px;
}

.wpas-bar__fill {
	display: block;
	width: 100%;
	border-radius: 6px 6px 0 0;
	background: linear-gradient(180deg, #7c3aed, #4f46e5);
	min-height: 2px;
	transition: height 0.3s ease;
}

.wpas-bar__label {
	display: block;
	margin-top: 6px;
	font-size: 10px;
	text-align: center;
	color: var(--wpas-muted);
	white-space: nowrap;
}

.wpas-referers {
	margin-top: 20px;
}

.wpas-referers__title {
	margin: 0 0 8px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wpas-muted);
}

.wpas-referers__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpas-referers__list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--wpas-line);
	font-size: 14px;
}

.wpas-referers__list li span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--wpas-muted);
}

/* Domains --------------------------------------------------------------- */
.wpas-domain-list {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
}

.wpas-domain-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--wpas-line);
}

.wpas-domain-name {
	flex: 1;
	font-weight: 600;
	word-break: break-all;
}

.wpas-domain-status {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--wpas-bg);
	color: var(--wpas-muted);
	font-size: 12px;
	text-transform: capitalize;
}

/* Modal ----------------------------------------------------------------- */
.wpas-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.wpas-modal[hidden] {
	display: none;
}

.wpas-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.wpas-modal.is-open .wpas-modal__backdrop {
	opacity: 1;
}

.wpas-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
	transform: translateY(14px) scale(0.98);
	opacity: 0;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.wpas-modal.is-open .wpas-modal__dialog {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.wpas-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: var(--wpas-muted);
	cursor: pointer;
}

.wpas-modal__close:hover {
	color: var(--wpas-ink);
}

.wpas-modal__title {
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.wpas-modal__subtitle {
	margin: 24px 0 12px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wpas-muted);
}

/* Result ---------------------------------------------------------------- */
.wpas-result {
	display: flex;
	gap: 8px;
}

.wpas-result__input {
	flex: 1;
	min-width: 0;
	padding: 13px 15px;
	border: 1px solid var(--wpas-line);
	border-radius: var(--wpas-radius-sm);
	background: var(--wpas-primary-soft);
	color: var(--wpas-primary-dark);
	font-size: 15px;
	font-weight: 600;
}

.wpas-result__target {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--wpas-muted);
	word-break: break-all;
}

/* QR -------------------------------------------------------------------- */
.wpas-qr {
	display: flex;
	gap: 20px;
	align-items: center;
	margin-top: 22px;
	padding: 16px;
	border: 1px solid var(--wpas-line);
	border-radius: var(--wpas-radius-sm);
	background: var(--wpas-bg);
}

.wpas-qr__img {
	width: 150px;
	height: 150px;
	background: #fff;
	border-radius: 10px;
	padding: 6px;
	flex-shrink: 0;
}

.wpas-qr__meta strong {
	display: block;
	margin-bottom: 8px;
}

/* Share grid ------------------------------------------------------------ */
.wpas-share-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
	gap: 10px;
}

.wpas-share {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 6px;
	border: 1px solid var(--wpas-line);
	border-radius: var(--wpas-radius-sm);
	background: #fff;
	cursor: pointer;
	font-size: 11px;
	font-weight: 600;
	color: var(--wpas-muted);
	transition: transform 0.08s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.wpas-share svg {
	width: 22px;
	height: 22px;
}

.wpas-share:hover {
	transform: translateY(-2px);
	border-color: var(--wpas-primary);
	color: var(--wpas-primary);
	box-shadow: 0 6px 16px rgba(79, 70, 229, 0.15);
}

.wpas-share--facebook:hover { color: #1877f2; border-color: #1877f2; }
.wpas-share--x:hover { color: #000; border-color: #000; }
.wpas-share--linkedin:hover { color: #0a66c2; border-color: #0a66c2; }
.wpas-share--whatsapp:hover { color: #25d366; border-color: #25d366; }
.wpas-share--telegram:hover { color: #229ed9; border-color: #229ed9; }
.wpas-share--reddit:hover { color: #ff4500; border-color: #ff4500; }
.wpas-share--pinterest:hover { color: #e60023; border-color: #e60023; }
.wpas-share--tumblr:hover { color: #36465d; border-color: #36465d; }
.wpas-share--email:hover { color: #4f46e5; border-color: #4f46e5; }
.wpas-share--sms:hover { color: #4f46e5; border-color: #4f46e5; }
.wpas-share--vk:hover { color: #0077ff; border-color: #0077ff; }
.wpas-share--weibo:hover { color: #e6162d; border-color: #e6162d; }
.wpas-share--line:hover { color: #06c755; border-color: #06c755; }
.wpas-share--viber:hover { color: #7360f2; border-color: #7360f2; }
.wpas-share--hackernews:hover { color: #ff6600; border-color: #ff6600; }
.wpas-share--mastodon:hover { color: #6364ff; border-color: #6364ff; }
.wpas-share--threads:hover { color: #000; border-color: #000; }
.wpas-share--discord:hover { color: #5865f2; border-color: #5865f2; }
.wpas-share--skype:hover { color: #0078d7; border-color: #0078d7; }
.wpas-share--pocket:hover { color: #ef4056; border-color: #ef4056; }

/* Toast ----------------------------------------------------------------- */
.wpas-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 100001;
	transform: translate(-50%, 20px);
	padding: 12px 20px;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.wpas-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.wpas-toast.is-success {
	background: var(--wpas-success);
}

.wpas-toast.is-error {
	background: var(--wpas-danger);
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 860px) {
	.wpas-public {
		grid-template-columns: 1fr;
	}

	.wpas-shell {
		grid-template-columns: 1fr;
	}

	.wpas-sidebar {
		position: static;
	}

	.wpas-nav {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.wpas-nav__item {
		flex: 1 1 auto;
	}

	.wpas-userbox {
		margin-top: 0;
	}

	.wpas-quick {
		flex-wrap: wrap;
	}

	.wpas-quick__alias {
		max-width: none;
		flex: 1 1 120px;
	}
}

@media (max-width: 600px) {
	.wpas-hero {
		padding: 32px 22px;
	}

	.wpas-card {
		padding: 18px;
	}

	.wpas-qr {
		flex-direction: column;
		text-align: center;
	}

	.wpas-result {
		flex-direction: column;
	}

	.wpas-share-grid {
		grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	}

	.wpas-long {
		max-width: 160px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpas-app *,
	.wpas-modal * {
		transition: none !important;
		animation: none !important;
	}
}
