:root {
	--tmgd-black: #050505;
	--tmgd-surface: #0d0d0e;
	--tmgd-surface-2: #151517;
	--tmgd-border: #2b2b2f;
	--tmgd-text: #f7f7f8;
	--tmgd-muted: #a1a1aa;
	--tmgd-accent: #ff6b35;
	--tmgd-accent-soft: rgba(255, 107, 53, .12);
}

html {
	scroll-behavior: smooth;
}

#masthead {
	position: sticky;
	z-index: 99990;
	top: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .07);
	background: rgba(7, 7, 8, .94) !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
	backdrop-filter: blur(14px);
}

body.admin-bar #masthead {
	top: 32px;
}

.main-navigation .menu > li {
	margin-left: 7px;
}

.main-navigation .menu > li > a {
	min-height: 38px !important;
	padding: 8px 15px !important;
	border: 1px solid #37373c;
	border-radius: 999px;
	background: #141416;
	color: #fff !important;
	line-height: 1.2 !important;
	transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.main-navigation .menu > li > a:hover,
.main-navigation .menu > li.current-menu-item > a {
	transform: translateY(-2px);
	border-color: var(--tmgd-accent);
	background: #25140e;
	box-shadow: 0 8px 20px rgba(255, 105, 45, .14);
}

.main-navigation .menu > li > a:active {
	transform: translateY(1px) scale(.98);
	box-shadow: inset 0 3px 7px rgba(0, 0, 0, .38);
}

body.tmgd-interface-pending .tmgd-home,
body.tmgd-interface-pending .tmgd-dashboard__content {
	visibility: hidden !important;
}

.site-header .site-container {
	box-sizing: border-box;
	width: min(1180px, calc(100% - 32px)) !important;
	max-width: none !important;
	margin-right: auto !important;
	margin-left: auto !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

/* Encabezado compacto con el icono TodoMGD centrado. */
@media (min-width: 1025px) {
	#masthead .site-mobile-header-wrap,
	#masthead .custom-logo-link,
	#masthead .site-branding img.custom-logo,
	#masthead .site-branding img.site-logo-img {
		display: none !important;
	}

	#masthead a.brand.has-logo-image {
		display: inline-flex !important;
		align-items: center;
		color: #fff !important;
		font-size: clamp(20px, 2vw, 27px);
		font-weight: 800;
		line-height: 1.1;
		text-decoration: none !important;
		white-space: nowrap;
	}

	#masthead a.brand.has-logo-image img {
		display: none !important;
	}

	#masthead .site-main-header-wrap,
	#masthead .site-main-header-wrap .site-header-row-container-inner,
	#masthead .site-main-header-inner-wrap {
		min-height: 76px !important;
		height: 76px !important;
	}

	#masthead .site-main-header-inner-wrap {
		position: relative;
		align-items: center !important;
	}

	#masthead .site-main-header-inner-wrap::after {
		position: absolute;
		z-index: 3;
		top: 50%;
		left: 50%;
		width: 44px;
		height: 44px;
		background: url("/wp-content/mu-plugins/tmgd-vip-bridge/assets/ICONO_WEB_NAVEGADOR.png") center / contain no-repeat;
		content: "";
		pointer-events: none;
		transform: translate(-50%, -50%);
	}
}

/* Cabecera móvil: una sola fila, sin duplicar ni ampliar el logo del tema. */
@media (max-width: 1024px) {
	#masthead .site-main-header-wrap {
		display: none !important;
	}

	#masthead .site-mobile-header-wrap {
		position: relative;
		display: block !important;
		width: 100% !important;
		min-height: 66px !important;
		height: 66px !important;
		overflow: visible !important;
	}

	#masthead .site-mobile-header-wrap .site-header-row-container-inner,
	#masthead .site-mobile-header-wrap .site-header-row,
	#masthead .site-mobile-header-wrap .site-header-inner-wrap {
		width: 100% !important;
		min-height: 66px !important;
		height: 66px !important;
		margin: 0 !important;
		padding: 0 16px !important;
	}

	#masthead .site-mobile-header-wrap .site-branding,
	#masthead .site-mobile-header-wrap .custom-logo-link,
	#masthead .site-mobile-header-wrap a.brand {
		display: none !important;
	}

	#masthead .site-mobile-header-wrap::before {
		position: absolute;
		z-index: 3;
		top: 50%;
		left: 16px;
		color: #fff !important;
		font-size: clamp(16px, 4.6vw, 19px) !important;
		font-weight: 800 !important;
		line-height: 1.1 !important;
		content: "Pedidos TodoMGD";
		pointer-events: none;
		transform: translateY(-50%);
		white-space: nowrap;
	}

	#masthead .site-mobile-header-wrap::after {
		position: absolute;
		z-index: 2;
		top: 50%;
		left: 62%;
		width: 36px;
		height: 36px;
		background: url("/wp-content/mu-plugins/tmgd-vip-bridge/assets/ICONO_WEB_NAVEGADOR.png") center / contain no-repeat;
		content: "";
		pointer-events: none;
		transform: translate(-50%, -50%);
	}

	#masthead .site-mobile-header-wrap .site-header-item,
	#masthead .site-mobile-header-wrap .mobile-toggle-open-container,
	#masthead .site-mobile-header-wrap .menu-toggle-open {
		min-height: 0 !important;
	}

	#masthead .site-mobile-header-wrap .site-header-section-right,
	#masthead .site-mobile-header-wrap .mobile-toggle-open-container {
		display: none !important;
	}

	#masthead .tmgd-mobile-menu {
		position: absolute;
		z-index: 8;
		top: 50%;
		right: 14px;
		transform: translateY(-50%);
	}

	#masthead .tmgd-mobile-menu__toggle {
		display: inline-flex;
		width: 42px;
		height: 42px;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		margin: 0;
		padding: 0;
		border: 1px solid #303038;
		border-radius: 10px;
		background: #111114;
		box-shadow: none;
	}

	#masthead .tmgd-mobile-menu__toggle span {
		display: block;
		width: 20px;
		height: 2px;
		border-radius: 2px;
		background: #fff;
	}

	#masthead .tmgd-mobile-menu__panel {
		position: absolute;
		z-index: 20;
		top: calc(100% + 10px);
		right: 0;
		width: 178px;
		padding: 8px;
		border: 1px solid #34343a;
		border-radius: 12px;
		background: #111114;
		box-shadow: 0 16px 35px rgba(0, 0, 0, .5);
	}

	#masthead .tmgd-mobile-menu__panel[hidden] {
		display: none !important;
	}

	#masthead .tmgd-mobile-menu__panel a {
		display: block;
		padding: 11px 12px !important;
		border-radius: 8px;
		color: #fff !important;
		font-size: .9rem;
		font-weight: 700;
		text-decoration: none;
	}

	#masthead .tmgd-mobile-menu__panel a:hover,
	#masthead .tmgd-mobile-menu__panel a:active {
		background: #2b1710;
		color: #ff6b35 !important;
	}
}

.tmgd-home .tmgd-console .tmgd-shell {
	padding-bottom: 30px;
	border-bottom: 1px solid #303035;
}

.tmgd-home .tmgd-request__form {
	padding-bottom: 36px;
	border-bottom: 1px solid #303035;
}

html,
body {
	background: var(--tmgd-black) !important;
	color: var(--tmgd-text) !important;
}

body,
button,
input,
select,
textarea {
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

#masthead,
.site-header,
.site-header-wrap,
.site-main-header-wrap,
.site-bottom-header-wrap,
.site-footer {
	background: #080809 !important;
	border-color: var(--tmgd-border) !important;
}

#masthead a,
.site-header a,
.site-footer a,
.site-branding,
.site-title {
	color: var(--tmgd-text) !important;
}

.tmgd-home,
.tmgd-dashboard,
.tmgd-console,
.tmgd-request,
.tmgd-flow,
.tmgd-dashboard__hero,
.tmgd-dashboard__content {
	background: var(--tmgd-black) !important;
	color: var(--tmgd-text) !important;
}

.tmgd-console__header,
.tmgd-dashboard__hero-card,
.tmgd-request-form,
.tmgd-dashboard__toolbar,
.tmgd-empty-state,
.tmgd-order-card,
.tmgd-flow article {
	background: var(--tmgd-surface) !important;
	border: 1px solid var(--tmgd-border) !important;
	box-shadow: none !important;
	color: var(--tmgd-text) !important;
}

.tmgd-home h1,
.tmgd-home h2,
.tmgd-home h3,
.tmgd-dashboard h1,
.tmgd-dashboard h2,
.tmgd-dashboard h3,
.tmgd-request-form strong,
.tmgd-request-form label > span {
	color: var(--tmgd-text) !important;
}

.tmgd-home p,
.tmgd-dashboard p,
.tmgd-home span,
.tmgd-dashboard span,
.tmgd-request-form__user p {
	color: var(--tmgd-muted);
}

.tmgd-kicker,
.tmgd-mode-instructions > div > p,
.tmgd-guide-modal__eyebrow {
	color: var(--tmgd-accent) !important;
	letter-spacing: .12em;
	font-weight: 800;
}

.tmgd-console__mini > div,
.tmgd-dashboard__stats > div {
	background: var(--tmgd-surface-2) !important;
	border: 1px solid var(--tmgd-border) !important;
	color: var(--tmgd-text) !important;
	box-shadow: none !important;
}

#tmgd-mode-switcher {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px !important;
	align-items: stretch;
}

.tmgd-mode-choices {
	display: contents;
}

.tmgd-mode-card {
	min-height: 112px;
	padding: 18px 20px !important;
	background: var(--tmgd-surface) !important;
	border: 1px solid var(--tmgd-border) !important;
	border-radius: 18px !important;
	color: var(--tmgd-text) !important;
	text-align: left;
	transition: border-color .2s ease, background .2s ease, transform .2s ease !important;
}

.tmgd-mode-card:hover {
	border-color: #55555b !important;
	transform: translateY(-2px);
}

.tmgd-mode-card.is-active {
	background: var(--tmgd-accent-soft) !important;
	border-color: var(--tmgd-accent) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 107, 53, .18) !important;
}

.tmgd-mode-card strong {
	display: block;
	margin-bottom: 7px;
	color: var(--tmgd-text) !important;
	font-size: 1.08rem;
}

.tmgd-mode-card span {
	color: var(--tmgd-muted) !important;
	line-height: 1.45;
	font-size: .88rem;
}

.tmgd-section-heading__title-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
}

.tmgd-section-heading__title-row h2 {
	margin: 0 !important;
}

.tmgd-guide-button {
	padding: 5px 10px;
	border: 1px solid #414146;
	border-radius: 999px;
	background: transparent;
	color: var(--tmgd-text);
	font-size: .75rem;
	font-weight: 700;
	cursor: pointer;
}

.tmgd-guide-button:hover {
	border-color: var(--tmgd-accent);
	color: var(--tmgd-accent);
}

.tmgd-mode-summary {
	display: none !important;
}

.tmgd-form-row {
	display: grid;
	gap: 14px;
	margin-bottom: 16px;
}

.tmgd-form-row--primary {
	grid-template-columns: minmax(0, 1fr) 150px;
}

.tmgd-form-row--reference {
	grid-template-columns: minmax(320px, 2fr) minmax(190px, 1fr) minmax(130px, .65fr);
}

.tmgd-request-form label > span {
	display: block;
	margin-bottom: 9px;
	padding-left: 12px;
	font-size: .83rem;
	font-weight: 750;
}

.tmgd-request-form label > span small {
	color: #777780;
	font-size: .75rem;
	font-style: normal;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}

.tmgd-request-form input,
.tmgd-request-form select,
.tmgd-request-form textarea {
	width: 100%;
	background: #09090a !important;
	border: 1px solid #343438 !important;
	border-radius: 13px !important;
	color: var(--tmgd-text) !important;
	box-shadow: none !important;
}

.tmgd-request-form input::placeholder,
.tmgd-request-form textarea::placeholder {
	color: #676770 !important;
}

.tmgd-request-form input:focus,
.tmgd-request-form select:focus,
.tmgd-request-form textarea:focus {
	outline: none !important;
	border-color: var(--tmgd-accent) !important;
	box-shadow: 0 0 0 3px rgba(255, 107, 53, .12) !important;
}

.tmgd-request-panel[data-panel="resubida"] > label {
	display: block;
	margin-bottom: 20px;
}

.tmgd-request-panel[data-panel="resubida"] .tmgd-request-form__grid {
	gap: 18px;
	margin-top: 4px;
	margin-bottom: 20px;
}

.tmgd-request-form > .tmgd-request-form__full {
	display: block;
	margin-top: 20px;
}

#tmgd-submit-order:disabled {
	opacity: .45;
	cursor: not-allowed;
	filter: saturate(.35);
}

.tmgd-request-form__assist,
.tmgd-lookup-results,
.tmgd-selection-preview {
	background: var(--tmgd-surface-2) !important;
	border-color: var(--tmgd-border) !important;
	color: var(--tmgd-muted) !important;
}

#tmgd-lookup-results:not(.is-visible),
#tmgd-selection-preview:not(.is-visible) {
	display: none !important;
}

.tmgd-flow__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.tmgd-button,
#tmgd-submit-order,
.tmgd-lookup-item button {
	border-radius: 999px !important;
}

#tmgd-submit-order,
.tmgd-button--primary {
	background: var(--tmgd-accent) !important;
	border-color: var(--tmgd-accent) !important;
	color: #fff !important;
}

.tmgd-guide-modal[hidden] {
	display: none !important;
}

.tmgd-guide-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 22px;
}

.tmgd-guide-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .78);
	backdrop-filter: blur(8px);
}

.tmgd-guide-modal__dialog {
	position: relative;
	width: min(720px, 100%);
	max-height: min(780px, calc(100vh - 44px));
	overflow: auto;
	padding: 34px;
	border: 1px solid #38383d;
	border-radius: 24px;
	background: #111113;
	box-shadow: 0 30px 100px rgba(0, 0, 0, .65);
	color: var(--tmgd-text);
}

.tmgd-guide-modal__dialog h2 {
	margin: 4px 0 10px;
	color: var(--tmgd-text);
}

.tmgd-guide-modal__dialog p {
	color: var(--tmgd-muted);
}

.tmgd-guide-modal__close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: grid !important;
	place-items: center;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	padding: 0 !important;
	border: 1px solid #3b3b40 !important;
	border-radius: 50%;
	background: #151517 !important;
	color: #fff !important;
	box-shadow: none !important;
	font-size: 1.35rem !important;
	line-height: 1 !important;
	cursor: pointer;
}

.tmgd-guide-modal__close:hover,
.tmgd-order-detail-modal__close:hover {
	border-color: var(--tmgd-accent) !important;
	background: var(--tmgd-accent) !important;
}

.tmgd-guide-example {
	display: grid;
	grid-template-columns: 1fr 130px;
	gap: 10px;
	margin: 24px 0;
}

.tmgd-guide-example > div {
	padding: 15px;
	border: 1px solid var(--tmgd-border);
	border-radius: 12px;
	background: #09090a;
}

.tmgd-guide-example .is-wide {
	grid-column: 1 / -1;
}

.tmgd-guide-example small,
.tmgd-guide-example strong {
	display: block;
}

.tmgd-guide-example small {
	margin-bottom: 5px;
	color: #777780;
}

.tmgd-guide-content[hidden] {
	display: none !important;
}

.tmgd-user-menu {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-left: 20px;
	padding-left: 20px;
	border-left: 1px solid var(--tmgd-border);
	line-height: 1.2;
	white-space: nowrap;
}

.tmgd-user-greeting {
	color: var(--tmgd-muted) !important;
	font-size: .88rem;
}

#masthead .tmgd-header-logout {
	margin-top: 5px;
	padding: 0 !important;
	color: #ff6b35 !important;
	font-size: .72rem;
	font-weight: 700;
	text-decoration: none;
	transition: color .15s ease, transform .15s ease;
}

#masthead .tmgd-header-logout:hover {
	color: #fff !important;
	transform: translateY(-1px);
	text-decoration: underline;
}

.tmgd-field-tmdb > span {
	white-space: nowrap;
}

.tmgd-details-field {
	display: none !important;
}

body.tmgd-mode-resubida .tmgd-details-field {
	display: block !important;
}

.tmgd-recognition-controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

#tmgd-detect-title {
	transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

#tmgd-detect-title.is-ready:not(:disabled) {
	border-color: var(--tmgd-accent) !important;
	background: var(--tmgd-accent) !important;
	color: #fff !important;
	box-shadow: 0 8px 22px rgba(255, 105, 45, .22);
}

#tmgd-detect-title.is-ready:not(:disabled):hover {
	transform: translateY(-2px);
	filter: brightness(1.08);
}

#tmgd-detect-title:disabled {
	cursor: not-allowed;
	opacity: .42;
}

.tmgd-clear-button {
	min-height: 44px;
	padding: 9px 18px !important;
	border: 1px solid #424248 !important;
	border-radius: 999px !important;
	background: #171719 !important;
	color: #fff !important;
	font-size: .84rem !important;
}

.tmgd-clear-button:hover:not(:disabled) {
	border-color: #777780 !important;
	background: #222225 !important;
}

.tmgd-recognition-hint {
	margin: 10px 0 2px !important;
	color: #b1b1ba !important;
	font-size: .82rem;
}

.tmgd-selection-preview {
	position: relative;
}

.tmgd-selection-reset {
	position: absolute;
	z-index: 2;
	top: 10px;
	right: 10px;
	display: grid !important;
	place-items: center;
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	padding: 0 !important;
	border: 1px solid #4a4a50 !important;
	border-radius: 50% !important;
	background: #18181b !important;
	color: #fff !important;
	font-size: 1.2rem !important;
	line-height: 1 !important;
}

.tmgd-selection-reset:hover {
	border-color: var(--tmgd-accent) !important;
	background: var(--tmgd-accent) !important;
}

.tmgd-request-panel.is-quota-disabled input,
.tmgd-request-panel.is-quota-disabled select,
.tmgd-request-panel.is-quota-disabled textarea,
.tmgd-request-panel.is-quota-disabled button {
	cursor: not-allowed !important;
	opacity: .48 !important;
}

.tmgd-form-notice--ok a {
	color: #056b57 !important;
	font-weight: 800;
	text-decoration: underline;
}

.tmgd-form-notice--ok {
	position: relative;
	padding-right: 52px !important;
}

.tmgd-notice-close {
	position: absolute;
	top: 50%;
	right: 14px;
	display: grid !important;
	place-items: center;
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	padding: 0 !important;
	transform: translateY(-50%);
	border: 1px solid rgba(5, 107, 87, .35) !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: #056b57 !important;
	font-size: 1.2rem !important;
}

.tmgd-modal-open {
	overflow: hidden;
}

.tmgd-mode-quota {
	display: block;
	margin-top: 10px;
	color: #8e8e98;
	font-size: .76rem;
}

.tmgd-mode-card.is-quota-locked .tmgd-mode-quota {
	color: #f4a261;
}

.tmgd-access-locked .tmgd-request {
	padding-top: 48px;
}

.tmgd-access-locked #tmgd-mode-switcher,
.tmgd-access-locked #tmgd-mode-switcher[hidden],
.tmgd-access-locked .tmgd-mode-choices,
.tmgd-access-guest header a[href*="/mis-pedidos"],
.tmgd-access-guest nav a[href*="/mis-pedidos"],
.tmgd-access-guest header li:has(> a[href*="/mis-pedidos"]),
.tmgd-access-guest nav li:has(> a[href*="/mis-pedidos"]) {
	display: none !important;
}

.tmgd-vip-card--locked {
	box-sizing: border-box;
	width: min(590px, calc(100% - 32px));
	margin: 0 auto 18px;
	padding: 38px 34px !important;
	border: 1px solid #35353a !important;
	border-radius: 22px !important;
	background:
		radial-gradient(circle at 50% 0, rgba(255, 105, 45, .11), transparent 42%),
		#101012 !important;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .42) !important;
	text-align: center;
}

.tmgd-vip-card__logo {
	display: block;
	width: 92px;
	height: 92px;
	margin: 0 auto 18px;
	border-radius: 20px;
	object-fit: contain;
	filter: drop-shadow(0 10px 24px rgba(255, 105, 45, .18));
}

.tmgd-vip-card--locked .tmgd-kicker {
	margin-bottom: 7px;
	color: var(--tmgd-accent) !important;
}

.tmgd-vip-card--locked h2 {
	margin: 0 auto 12px;
	max-width: 460px;
	color: #fff !important;
	font-size: clamp(1.55rem, 3vw, 2.15rem);
	line-height: 1.15;
}

.tmgd-vip-card--locked > p:not(.tmgd-kicker) {
	max-width: 470px;
	margin: 0 auto;
	color: var(--tmgd-muted) !important;
}

.tmgd-vip-card--locked .tmgd-vip-actions {
	flex-direction: column;
	align-items: stretch;
	width: min(310px, 100%);
	margin: 24px auto 0;
}

.tmgd-vip-card--locked .tmgd-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.tmgd-vip-card--locked .tmgd-button:hover {
	transform: translateY(-3px);
	filter: brightness(1.08);
	box-shadow: 0 10px 25px rgba(255, 105, 45, .2);
}

.tmgd-vip-card--locked .tmgd-button:active {
	transform: translateY(1px) scale(.985);
	box-shadow: inset 0 3px 8px rgba(0, 0, 0, .32);
}

.tmgd-renewal {
	box-sizing: border-box;
	width: min(1180px, calc(100% - 32px));
	margin: 22px auto 26px;
	padding: 24px;
	border: 1px solid var(--tmgd-border);
	border-radius: 18px;
	background: #0e0e10;
}

.tmgd-dashboard__content .tmgd-renewal {
	width: 100%;
	margin-top: 280px;
	margin-bottom: 0;
}

body.tmgd-account-page .site-bottom-footer-inner-wrap {
	padding-top: 26px !important;
}

.tmgd-renewal__heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.tmgd-renewal__heading h2 {
	margin: 0;
	color: #fff !important;
}

#tmgd-renewal-title {
	scroll-margin-top: 110px;
}

.tmgd-quota-summary {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.tmgd-quota-summary span {
	padding: 7px 10px;
	border: 1px solid var(--tmgd-border);
	border-radius: 999px;
	color: var(--tmgd-muted);
	font-size: .76rem;
}

.tmgd-renewal__plans {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.tmgd-renewal__plans a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 16px 10px;
	border: 1px solid var(--tmgd-border);
	border-radius: 14px;
	background: #09090a;
	color: #fff !important;
	text-decoration: none !important;
	transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease;
}

.tmgd-renewal__plans a:hover {
	transform: translateY(-4px);
	border-color: var(--tmgd-accent);
	filter: brightness(1.08);
	box-shadow: 0 12px 28px rgba(255, 105, 45, .14);
}

.tmgd-renewal__plans a:active {
	transform: translateY(1px) scale(.98);
	box-shadow: inset 0 3px 9px rgba(0, 0, 0, .4);
}

.tmgd-renewal__plans img {
	width: min(100%, 115px);
	height: 78px;
	object-fit: contain;
}

.tmgd-renewal__contact {
	margin: 20px 0 0;
	text-align: center;
}

.tmgd-renewal__contact a {
	color: var(--tmgd-accent) !important;
}

.tmgd-orders-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tmgd-orders-panel {
	margin-top: 18px;
	padding: 22px;
	border: 1px solid var(--tmgd-border);
	border-radius: 18px;
	background: #09090a;
}

.tmgd-orders-panel__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.tmgd-orders-panel__header h2 {
	margin: 0;
	color: #fff !important;
}

.tmgd-orders-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tmgd-orders-filters button,
.tmgd-orders-pagination button {
	padding: 8px 12px !important;
	border: 1px solid #39393f !important;
	border-radius: 999px !important;
	background: #151517 !important;
	color: #b8b8c1 !important;
	font-size: .76rem !important;
}

.tmgd-orders-filters button.is-active,
.tmgd-orders-pagination button.is-active {
	border-color: var(--tmgd-accent) !important;
	background: var(--tmgd-accent) !important;
	color: #fff !important;
}

.tmgd-order-row {
	display: grid;
	grid-template-columns: minmax(140px, .9fr) minmax(250px, 2.2fr) minmax(72px, .5fr) minmax(82px, .6fr) 78px 96px;
	align-items: center;
	row-gap: 16px;
	column-gap: 12px;
	min-height: 118px;
	padding: 14px 16px 14px 19px;
	border: 1px solid var(--tmgd-border);
	border-radius: 14px;
	background: #0e0e10;
}

.tmgd-order-row[hidden] {
	display: none !important;
}

.tmgd-order-row__identity {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-self: stretch;
	justify-content: center;
	padding-right: 18px;
	border-right: 1px solid #343439;
}

.tmgd-order-row__identity strong {
	color: var(--tmgd-accent);
	font-size: .88rem;
}

.tmgd-order-row__identity span {
	color: #a1a1aa;
	font-size: .72rem;
}

.tmgd-order-row__main {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.tmgd-order-row__main strong {
	overflow: hidden;
	color: #fff;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tmgd-order-row__title {
	font-size: 1.02rem;
}

.tmgd-order-row__main small,
.tmgd-order-row__datum small {
	color: #777780;
	font-size: .68rem;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.tmgd-order-row__main time {
	color: var(--tmgd-muted);
	font-size: .78rem;
}

.tmgd-order-row__datum {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tmgd-order-row__datum strong {
	color: #fff;
	font-size: .88rem;
}

.tmgd-order-row__url {
	grid-column: span 2;
	min-width: 0;
}

.tmgd-order-row__url a {
	display: block;
	width: 100%;
	overflow: hidden;
	color: #d0d0d7 !important;
	font-size: .76rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tmgd-url-validation {
	margin: 7px 0 0 !important;
	color: #92929b !important;
	font-size: .76rem;
}

.tmgd-url-validation.is-error {
	color: #ff6b6b !important;
}

.tmgd-url-validation.is-valid {
	color: #51d6a3 !important;
}

.tmgd-order-row__actions {
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 8px;
	align-self: stretch;
	justify-content: center;
	padding-left: 12px;
	border-left: 1px solid #343439;
}

.tmgd-order-row__cover {
	display: flex;
	justify-content: flex-end;
	margin-right: 0;
}

.tmgd-order-row__poster,
.tmgd-order-row__poster-placeholder {
	width: 66px;
	height: 94px;
	border: 1px solid #39393f;
	border-radius: 9px;
	background: #171719;
	object-fit: cover;
}

.tmgd-order-row__poster-placeholder {
	display: grid;
	place-items: center;
	padding: 5px;
	color: #66666f;
	font-size: .56rem;
	text-align: center;
}

.tmgd-orders-empty-filter {
	margin: 12px 0 0;
	padding: 18px;
	border: 1px dashed #3b3b40;
	border-radius: 12px;
	color: var(--tmgd-muted);
	text-align: center;
}

.tmgd-orders-pagination {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-top: 18px;
}

.tmgd-vip-days a {
	color: var(--tmgd-accent) !important;
	font-weight: 800;
}

.tmgd-vip-days a::after {
	display: inline-block;
	margin-left: 5px;
	content: "↓";
	animation: tmgd-renew-arrow 1.15s ease-in-out infinite;
}

.tmgd-vip-account--compact {
	padding: 18px 22px !important;
	margin-bottom: 0 !important;
}

.tmgd-vip-account--compact .tmgd-kicker {
	margin-bottom: 5px;
}

.tmgd-vip-account--compact h2 {
	margin-top: 0;
	margin-bottom: 8px;
	font-size: 1.45rem;
}

.tmgd-vip-account--compact p {
	margin-top: 6px;
	margin-bottom: 6px;
}

.tmgd-vip-account--compact .tmgd-vip-actions {
	justify-content: flex-end;
	margin-top: 0;
}

.tmgd-button--new-request {
	border: 1px solid var(--tmgd-accent) !important;
	background: #24130d !important;
	color: #fff !important;
}

.tmgd-button--new-request:hover {
	transform: translateY(-2px);
	background: var(--tmgd-accent) !important;
}

.tmgd-account-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr);
	gap: 18px;
	margin-bottom: 22px;
}

.tmgd-new-request-card {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	padding: 20px 22px;
	border: 1px solid #3a3a40;
	border-radius: 18px;
	background: #0e0e10;
}

.tmgd-new-request-card .tmgd-kicker {
	margin-bottom: 5px;
}

.tmgd-new-request-card h2 {
	margin: 0 0 7px;
	color: #fff !important;
	font-size: 1.35rem;
}

.tmgd-new-request-card > p:not(.tmgd-kicker) {
	margin: 0 0 15px;
	color: var(--tmgd-muted);
	font-size: .84rem;
}

.tmgd-new-request-card .tmgd-button {
	width: 100%;
	justify-content: center;
	text-align: center;
}

.tmgd-dashboard__stats > div {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	text-align: center;
}

@keyframes tmgd-renew-arrow {
	0%, 100% { transform: translateY(-1px); }
	50% { transform: translateY(4px); }
}

.tmgd-order-status {
	padding: 7px 11px;
	border: 1px solid #644126;
	border-radius: 999px;
	background: #24170f;
	color: #ffad72;
	font-size: .76rem;
	font-weight: 700;
}

.tmgd-order-status.is-listo,
.tmgd-order-status.is-entregado {
	border-color: #235c48;
	background: #10261f;
	color: #5ee0aa;
}

.tmgd-order-status.is-cambio_habilitado {
	border-color: #69405d;
	background: #2a1725;
	color: #ff9cdb;
}

.tmgd-order-change-link {
	padding: 7px 10px;
	border: 1px solid var(--tmgd-accent);
	border-radius: 999px;
	color: #fff !important;
	font-size: .75rem;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
}

.tmgd-order-view-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	padding: 5px 10px;
	border: 1px solid #37373c;
	border-radius: 999px;
	background: #141416;
	color: #fff !important;
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1.15;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.tmgd-order-view-link:hover {
	border-color: var(--tmgd-accent);
	background: #25140e;
	box-shadow: 0 8px 20px rgba(255, 105, 45, .14);
	color: #fff !important;
	transform: translateY(-2px);
}

.tmgd-order-view-link:active {
	transform: translateY(1px) scale(.98);
	box-shadow: inset 0 3px 7px rgba(0, 0, 0, .38);
}

.tmgd-order-info-button {
	display: grid !important;
	place-items: center;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	padding: 0 !important;
	border: 1px solid #414147 !important;
	border-radius: 50% !important;
	background: #18181b !important;
	color: #fff !important;
	font-family: Georgia, serif;
	font-size: 1rem !important;
	font-weight: 700;
}

.tmgd-order-detail-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 22px;
}

.tmgd-order-detail-modal[hidden] {
	display: none !important;
}

.tmgd-order-detail-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .82);
	backdrop-filter: blur(8px);
}

.tmgd-order-detail-modal__dialog {
	position: relative;
	width: min(680px, 100%);
	max-height: calc(100vh - 44px);
	overflow: auto;
	padding: 30px;
	border: 1px solid #38383d;
	border-radius: 20px;
	background: #111113;
	color: #fff;
}

.tmgd-order-detail-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid !important;
	place-items: center;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	padding: 0 !important;
	border: 1px solid #3b3b40 !important;
	border-radius: 50% !important;
	background: #151517 !important;
	color: #fff !important;
	box-shadow: none !important;
	font-size: 1.35rem !important;
}

.tmgd-order-detail-modal__dialog dl {
	display: grid;
	gap: 9px;
	margin: 22px 0 0;
}

.tmgd-order-detail-modal__dialog dl > div {
	padding: 11px 13px;
	border: 1px solid var(--tmgd-border);
	border-radius: 10px;
	background: #09090a;
}

.tmgd-order-detail-modal__dialog dt {
	margin-bottom: 3px;
	color: #85858e;
	font-size: .74rem;
}

.tmgd-order-detail-modal__dialog dd {
	margin: 0;
	overflow-wrap: anywhere;
	color: #fff;
}

.site-footer,
footer[role="contentinfo"],
.site-footer-wrap {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.site-bottom-footer-inner-wrap {
	padding-top: 100px !important;
	padding-bottom: 20px !important;
}

.site-footer p,
footer[role="contentinfo"] p {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

@media (max-width: 900px) {
	.tmgd-account-grid {
		grid-template-columns: 1fr;
	}

	.tmgd-form-row--reference {
		grid-template-columns: 1fr 1fr;
	}

	.tmgd-form-row--reference > :first-child {
		grid-column: 1 / -1;
	}

	.tmgd-order-row {
		grid-template-columns: minmax(110px, .8fr) minmax(210px, 2fr) 70px;
	}

	.tmgd-order-row__datum,
	.tmgd-order-row__actions {
		grid-row: 2;
	}

	.tmgd-order-row__cover {
		grid-column: 3;
		grid-row: 1 / span 2;
	}
}

@media (max-width: 782px) {
	body.admin-bar #masthead {
		top: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.tmgd-vip-days a::after {
		animation: none;
	}
}

@media (max-width: 640px) {
	#tmgd-mode-switcher,
	.tmgd-flow__grid,
	.tmgd-form-row--primary,
	.tmgd-form-row--reference,
	.tmgd-guide-example {
		grid-template-columns: 1fr;
	}

	.tmgd-renewal__heading,
	.tmgd-orders-panel__header,
	.tmgd-order-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.tmgd-order-row__actions {
		width: 100%;
		justify-content: space-between;
	}

	.tmgd-order-row {
		grid-template-columns: 1fr 70px;
	}

	.tmgd-order-row__identity,
	.tmgd-order-row__main,
	.tmgd-order-row__datum,
	.tmgd-order-row__actions {
		grid-column: 1;
		grid-row: auto;
	}

	.tmgd-order-row__cover {
		grid-column: 2;
		grid-row: 1 / span 4;
	}

	.tmgd-renewal__plans {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tmgd-quota-summary {
		justify-content: flex-start;
	}

	.tmgd-form-row--reference > :first-child,
	.tmgd-guide-example .is-wide {
		grid-column: auto;
	}

	.tmgd-guide-modal__dialog {
		padding: 26px 20px;
	}

	.tmgd-section-heading__title-row {
		flex-wrap: wrap;
	}

	.tmgd-user-menu {
		width: 100%;
		margin: 8px 0 0;
		padding: 8px 0 0;
		border-top: 1px solid var(--tmgd-border);
		border-left: 0;
	}
}
