/* ==========================================================================
   IAS My Account — front-end styles
   Matches The Institute for Arts Integration and STEAM dashboard look/feel.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
	--ias-primary: #2A8589;
	--ias-primary-dark: #1E6469;
	--ias-primary-light: #D6EBEC;
	--ias-accent: #F4A261;
	--ias-text: #1F2937;
	--ias-text-muted: #6B7280;
	--ias-text-soft: #9CA3AF;
	--ias-border: #E5E7EB;
	--ias-border-strong: #D1D5DB;
	--ias-bg: #F9FAFB;
	--ias-card-bg: #FFFFFF;
	--ias-success: #059669;
	--ias-success-bg: #ECFDF5;
	--ias-warning: #D97706;
	--ias-warning-bg: #FFFBEB;
	--ias-danger: #DC2626;
	--ias-danger-bg: #FEF2F2;
	--ias-info: #2563EB;
	--ias-info-bg: #EFF6FF;
	--ias-radius: 14px;
	--ias-radius-sm: 10px;
	--ias-shadow: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
	--ias-shadow-md: 0 4px 12px rgba(0,0,0,.08);
}

.ias-acct,
.ias-acct * {
	box-sizing: border-box;
}

.ias-acct {
	font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Helvetica, Arial, sans-serif;
	color: var(--ias-text);
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px 64px;
	line-height: 1.55;
}

/* Why min-width at desktop:
 * The Profile tab uses a two-column layout (320px avatar card + 1fr forms)
 * whose min-content width is larger than the single-column tabs' min-content.
 * Avada/MemberPress wrap this shortcode in a content-sized column, so the
 * outer wrapper ends up noticeably wider on Profile than on Subscriptions /
 * Transactions / Certificates. Locking a min-width at ≥1280px viewports
 * keeps all four tabs at the same 1200px — the middle ground between the
 * old 1400px Profile and the previously narrow sibling tabs. */
@media (min-width: 1280px) {
	.ias-acct {
		min-width: 1200px;
	}
}

.ias-acct h1,
.ias-acct h2,
.ias-acct h3 {
	color: var(--ias-text);
	margin: 0;
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* Header --------------------------------------------------------------------
 * Selectors here are intentionally prefixed with `.ias-acct` to bump the
 * specificity to (0,2,1). In 0.5.0 we started enqueueing the main CSS on
 * every frontend page (so the site-wide Contact Support modal inherits the
 * theme), which means ias-account.css now prints in <head> before most
 * themes' own stylesheets. Without the bumped specificity a generic theme
 * rule like `.entry-content h1 { color: #111 }` (0,1,1) wins the cascade
 * by virtue of loading later, and the header title goes dark. */
.ias-acct .ias-acct-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	background: linear-gradient(135deg, var(--ias-primary) 0%, var(--ias-primary-dark) 100%);
	color: #fff;
	border-radius: var(--ias-radius);
	padding: 24px 28px;
	box-shadow: var(--ias-shadow-md);
	margin-bottom: 20px;
}
.ias-acct .ias-acct-header h1,
.ias-acct .ias-acct-header h2,
.ias-acct .ias-acct-header h3 {
	color: #fff;
	font-size: 26px;
	line-height: 1.2;
}
.ias-acct .ias-acct-header-left {
	display: flex;
	align-items: center;
	gap: 16px;
}
.ias-acct .ias-acct-header-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(255,255,255,.18);
	color: #fff;
	font-size: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ias-acct .ias-acct-header-subtitle {
	color: rgba(255,255,255,.85);
	font-size: 14px;
	margin-top: 2px;
}
.ias-acct .ias-acct-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.ias-acct .ias-acct-action {
	background: rgba(255,255,255,.15);
	color: #fff;
	border: 1px solid rgba(255,255,255,.25);
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.ias-acct-action:hover {
	background: rgba(255,255,255,.28);
	transform: translateY(-1px);
}

/* Tabs ---------------------------------------------------------------------- */
.ias-acct-tabs {
	display: flex;
	gap: 4px;
	background: var(--ias-card-bg);
	border: 1px solid var(--ias-border);
	border-radius: var(--ias-radius);
	padding: 6px;
	margin-bottom: 20px;
	overflow-x: auto;
	box-shadow: var(--ias-shadow);
}
.ias-acct-tab {
	flex: 1 1 auto;
	min-width: 140px;
	background: transparent;
	color: var(--ias-text-muted);
	border: 0;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	border-radius: var(--ias-radius-sm);
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	white-space: nowrap;
}
.ias-acct-tab:hover {
	background: var(--ias-bg);
	color: var(--ias-text);
}
.ias-acct-tab.active {
	background: linear-gradient(135deg, var(--ias-primary) 0%, var(--ias-primary-dark) 100%);
	color: #fff;
	box-shadow: 0 2px 6px rgba(42,133,137,.3);
}

/* Panels -------------------------------------------------------------------- */
.ias-acct-panel {
	display: none;
}
.ias-acct-panel.active {
	display: block;
	animation: ias-fadein .2s ease;
}
@keyframes ias-fadein {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.ias-acct-loading {
	text-align: center;
	padding: 48px 24px;
	color: var(--ias-text-muted);
	font-size: 15px;
}
.ias-acct-loading .fa-spinner {
	margin-right: 8px;
	color: var(--ias-primary);
}

/* Profile grid -------------------------------------------------------------- */
.ias-profile-grid {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 20px;
	align-items: flex-start;
}
@media (max-width: 900px) {
	.ias-profile-grid {
		grid-template-columns: 1fr;
	}
}

/* Avatar sidebar ------------------------------------------------------------ */
.ias-avatar-card {
	background: var(--ias-card-bg);
	border: 1px solid var(--ias-border);
	border-radius: var(--ias-radius);
	padding: 28px 20px 24px;
	text-align: center;
	box-shadow: var(--ias-shadow);
}
.ias-avatar-wrap {
	position: relative;
	width: 160px;
	height: 160px;
	margin: 0 auto 18px;
}
.ias-avatar-img,
.ias-avatar-initials {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--ias-primary) 0%, var(--ias-primary-dark) 100%);
	color: #fff;
	font-size: 54px;
	font-weight: 700;
	border: 4px solid #fff;
	box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.ias-avatar-edit {
	position: absolute;
	bottom: 4px;
	right: 4px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 3px solid #fff;
	background: var(--ias-primary);
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, transform .15s ease;
	box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.ias-avatar-edit:hover {
	background: var(--ias-primary-dark);
	transform: scale(1.05);
}
.ias-avatar-name {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 6px;
}
.ias-avatar-tier {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--ias-primary-light);
	color: var(--ias-primary-dark);
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 18px;
}
.ias-avatar-meta {
	list-style: none;
	padding: 0;
	margin: 0 0 14px;
	border-top: 1px solid var(--ias-border);
	text-align: left;
}
.ias-avatar-meta li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	font-size: 13px;
	border-bottom: 1px solid var(--ias-border);
}
.ias-avatar-meta li:last-child {
	border-bottom: 0;
}
.ias-avatar-meta-label {
	color: var(--ias-text-muted);
}
.ias-avatar-meta-value {
	color: var(--ias-text);
	font-weight: 600;
	font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}
.ias-avatar-hint {
	font-size: 12px;
	color: var(--ias-text-soft);
	line-height: 1.5;
}

/* Form cards ---------------------------------------------------------------- */
.ias-profile-main {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.ias-card {
	background: var(--ias-card-bg);
	border: 1px solid var(--ias-border);
	border-radius: var(--ias-radius);
	padding: 24px 24px 20px;
	box-shadow: var(--ias-shadow);
}
.ias-card-header {
	margin-bottom: 20px;
}
.ias-card-header h2 {
	font-size: 17px;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 4px 0;
}
.ias-card-header h2 i {
	color: var(--ias-primary);
}
.ias-card-sub {
	color: var(--ias-text-muted);
	font-size: 13px;
	margin: 0;
}

.ias-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.ias-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 640px) {
	.ias-form-row { grid-template-columns: 1fr; }
}
.ias-form-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ias-form-field-full {
	grid-column: 1 / -1;
}
.ias-form-field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ias-text);
}
.ias-optional {
	color: var(--ias-text-soft);
	font-weight: 400;
	font-size: 12px;
}
.ias-form-field input[type="text"],
.ias-form-field input[type="email"],
.ias-form-field input[type="tel"],
.ias-form-field input[type="password"],
.ias-form-field select,
.ias-form-field textarea {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	color: var(--ias-text);
	background: var(--ias-card-bg);
	border: 1px solid var(--ias-border-strong);
	border-radius: var(--ias-radius-sm);
	font-family: inherit;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ias-form-field input:focus,
.ias-form-field select:focus,
.ias-form-field textarea:focus {
	outline: none;
	border-color: var(--ias-primary);
	box-shadow: 0 0 0 3px rgba(42,133,137,.18);
}
.ias-form-field input[readonly] {
	background: var(--ias-bg);
	color: var(--ias-text-muted);
	cursor: not-allowed;
}
.ias-form-field input[readonly]:focus {
	border-color: var(--ias-border-strong);
	box-shadow: none;
}
.ias-form-hint {
	font-size: 12px;
	color: var(--ias-text-muted);
}
.ias-form-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	border-top: 1px solid var(--ias-border);
	padding-top: 16px;
	margin-top: 4px;
}

/* Buttons ------------------------------------------------------------------- */
.ias-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	border-radius: var(--ias-radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
	text-decoration: none;
	line-height: 1.2;
}
.ias-btn-primary {
	background: linear-gradient(135deg, var(--ias-primary) 0%, var(--ias-primary-dark) 100%);
	color: #fff;
	box-shadow: 0 1px 3px rgba(42,133,137,.25);
}
.ias-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(42,133,137,.3);
}
.ias-btn-primary:disabled {
	opacity: .6;
	cursor: not-allowed;
	transform: none;
}
.ias-btn-ghost {
	background: transparent;
	color: var(--ias-text);
	border-color: var(--ias-border-strong);
}
.ias-btn-ghost:hover {
	background: var(--ias-bg);
}
.ias-btn-danger {
	background: var(--ias-danger);
	color: #fff;
}
.ias-btn-danger:hover {
	background: #B91C1C;
}
.ias-btn-sm {
	padding: 6px 12px;
	font-size: 13px;
}

.ias-form-status {
	font-size: 13px;
	font-weight: 500;
}
.ias-form-status.is-success {
	color: var(--ias-success);
}
.ias-form-status.is-error {
	color: var(--ias-danger);
}

/* Notices & banners --------------------------------------------------------- */
.ias-acct-notice {
	background: var(--ias-info-bg);
	border: 1px solid #BFDBFE;
	color: #1E3A8A;
	border-radius: var(--ias-radius);
	padding: 16px 20px;
	margin-bottom: 16px;
}
.ias-acct-banner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: var(--ias-danger-bg);
	border: 1px solid #FECACA;
	color: #991B1B;
	border-radius: var(--ias-radius);
	padding: 14px 18px;
	margin-bottom: 16px;
}
.ias-acct-banner i {
	font-size: 18px;
	margin-top: 2px;
}
.ias-acct-banner strong { color: #7F1D1D; }

/* Section headers (reused across tabs) -------------------------------------- */
.ias-acct-section-head { margin-bottom: 18px; }
.ias-acct-section-head h2 {
	font-size: 16px;
	font-weight: 700;
	color: var(--ias-text);
	margin: 0 0 4px;
}
.ias-acct-section-head p {
	font-size: 13px;
	color: var(--ias-text-muted);
	margin: 0;
}

/* Subscriptions tab --------------------------------------------------------- */
.ias-sub-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.ias-sub-card {
	background: #fff;
	border: 1px solid var(--ias-border);
	border-radius: 12px;
	padding: 22px 24px;
	position: relative;
	transition: box-shadow .2s;
}
.ias-sub-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.06); }
.ias-sub-card.featured {
	border-color: var(--ias-primary);
	box-shadow: 0 2px 10px rgba(42,133,137,0.08);
}
.ias-sub-card.featured::before {
	content: "";
	position: absolute;
	left: 0;
	top: 18px;
	bottom: 18px;
	width: 3px;
	background: linear-gradient(180deg, var(--ias-primary) 0%, var(--ias-primary-dark) 100%);
	border-radius: 0 3px 3px 0;
}
.ias-sub-card.is-past-due {
	border-left: 4px solid var(--ias-danger);
}

.ias-sub-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	flex-wrap: wrap;
}
.ias-sub-meta h3 {
	font-size: 16px;
	font-weight: 700;
	color: var(--ias-text);
	margin: 0 0 4px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.ias-sub-plan-sub {
	font-size: 12.5px;
	color: var(--ias-text-muted);
	margin: 0 0 12px;
}

.ias-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 3px 8px;
	border-radius: 4px;
}
.ias-badge.active     { background: #ECFDF5; color: #065F46; }
.ias-badge.paused     { background: #FEF3C7; color: #92400E; }
.ias-badge.canceled   { background: #F3F4F6; color: #6B7280; }
.ias-badge.trial      { background: #DBEAFE; color: #1D4ED8; }
.ias-badge.past-due   { background: var(--ias-danger-bg); color: var(--ias-danger); }
.ias-badge.stripe     { background: rgba(99,91,255,0.10); color: #635BFF; }
.ias-badge.paypal     { background: rgba(255,196,57,0.15); color: #003087; }
.ias-badge.thrivecart { background: rgba(253,230,138,0.40); color: #B45309; }
.ias-badge.spiffy     { background: #E0F2FE; color: #075985; }

.ias-sub-price { text-align: right; }
.ias-sub-price .amount {
	font-size: 22px;
	font-weight: 800;
	color: var(--ias-text);
	letter-spacing: -0.5px;
}
.ias-sub-price .interval {
	font-size: 12px;
	color: var(--ias-text-muted);
}

.ias-sub-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px 20px;
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--ias-border);
	font-size: 12.5px;
}
.ias-sub-details .detail-label {
	display: block;
	font-size: 11px;
	color: var(--ias-text-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 3px;
	font-weight: 600;
}
.ias-sub-details .detail-value {
	color: var(--ias-text);
	font-weight: 600;
}

.ias-sub-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--ias-border);
}
.ias-sub-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ias-sub-processor-wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.ias-sub-processor {
	font-size: 11.5px;
	color: var(--ias-text-muted);
	display: flex;
	align-items: center;
	gap: 6px;
}
.ias-sub-processor i { color: #BBB; }
.ias-sub-cancel-link {
	align-self: flex-start;
	font-size: 11px;
	color: #B91C1C;
	text-decoration: underline;
	opacity: .75;
	padding: 0;
	margin: 0;
	background: none;
	border: 0;
	cursor: pointer;
	transition: opacity .15s ease, color .15s ease;
}
.ias-sub-cancel-link:hover,
.ias-sub-cancel-link:focus {
	color: #991B1B;
	opacity: 1;
	text-decoration: underline;
}

/* Upgrade nudge */
.ias-upgrade-nudge {
	background: linear-gradient(135deg, #FDF8F4 0%, #F5EFE8 100%);
	border: 1px solid #E8DDD0;
	border-radius: 12px;
	padding: 22px 24px;
	margin-top: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.ias-upgrade-nudge h3 {
	font-size: 15px;
	font-weight: 700;
	color: var(--ias-text);
	margin: 0 0 4px;
}
.ias-upgrade-nudge p {
	font-size: 13px;
	color: var(--ias-text-muted);
	margin: 0;
	max-width: 520px;
}

@media (max-width: 720px) {
	.ias-sub-card { padding: 18px 18px; }
	.ias-sub-price { text-align: left; }
	.ias-sub-actions { justify-content: flex-start; }
	.ias-sub-footer { flex-direction: column; align-items: flex-start; }
}

/* Upgrade modal ------------------------------------------------------------- */
.ias-upgrade-body {
	font-size: 14px;
	color: var(--ias-text);
	margin: 0 0 16px;
	line-height: 1.55;
}
.ias-upgrade-benefits {
	list-style: none;
	padding: 0;
	margin: 0 0 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ias-upgrade-benefits li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--ias-text);
	line-height: 1.4;
}
.ias-upgrade-benefits li i {
	color: var(--ias-primary);
	font-size: 12px;
	margin-top: 5px;
	flex-shrink: 0;
}
.ias-upgrade-benefits li.is-header {
	font-weight: 700;
	color: var(--ias-text);
	font-size: 13px;
	margin-top: 4px;
	padding-left: 0;
}
.ias-upgrade-note {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #FDF8F4;
	border: 1px solid #E8DDD0;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13px;
	color: var(--ias-text-muted);
	margin-bottom: 4px;
}
.ias-upgrade-note i { color: var(--ias-primary); }

/* Transactions ------------------------------------------------------------- */
.ias-tx-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	background: var(--ias-card-bg);
	border: 1px solid var(--ias-border);
	border-radius: var(--ias-radius);
	padding: 12px 14px;
	box-shadow: var(--ias-shadow);
}
.ias-tx-toolbar label {
	font-size: 12px;
	color: var(--ias-text-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.ias-tx-toolbar select,
.ias-tx-toolbar input[type="search"] {
	border: 1px solid var(--ias-border);
	border-radius: 8px;
	background: #fff;
	padding: 10px 14px;
	font-size: 14px;
	line-height: 1.3;
	color: var(--ias-text);
	min-width: 200px;
	height: auto;
}
.ias-tx-toolbar select {
	padding-right: 34px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 12px center;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
.ias-tx-toolbar input[type="search"] {
	flex: 1 1 220px;
	min-width: 220px;
}
.ias-tx-toolbar .ias-tx-count {
	margin-left: auto;
	font-size: 13px;
	color: var(--ias-text-muted);
}

.ias-tx-wrap {
	background: var(--ias-card-bg);
	border: 1px solid var(--ias-border);
	border-radius: var(--ias-radius);
	box-shadow: var(--ias-shadow);
	overflow: hidden;
}
.ias-tx-head,
.ias-tx-row {
	display: grid;
	grid-template-columns: 130px 1.8fr 110px 120px 110px;
	gap: 12px;
	align-items: center;
	padding: 12px 18px;
	border-bottom: 1px solid var(--ias-border);
}
.ias-tx-head {
	background: var(--ias-bg);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--ias-text-muted);
	font-weight: 700;
}
.ias-tx-row:last-child { border-bottom: 0; }
.ias-tx-row:hover { background: #FDF8F4; }
.ias-tx-date {
	font-size: 13px;
	color: var(--ias-text);
	font-weight: 500;
}
.ias-tx-desc {
	font-size: 14px;
	color: var(--ias-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ias-tx-amount {
	font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
	font-weight: 600;
	font-size: 14px;
	color: var(--ias-text);
}
.ias-tx-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	background: #DCFCE7;
	color: #166534;
}
.ias-tx-status.st-refunded { background: #FEE2E2; color: #991B1B; }
.ias-tx-status.st-pending  { background: #FEF3C7; color: #92400E; }
.ias-tx-processor {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	background: #EEF2FF;
	color: #3730A3;
}
.ias-tx-processor.pr-paypal     { background: #FFF7ED; color: #9A3412; }
.ias-tx-processor.pr-memberpress{ background: #F3F4F6; color: #4B5563; }
.ias-tx-actions {
	display: flex;
	gap: 6px;
	justify-content: flex-end;
}
.ias-tx-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: var(--ias-bg);
	border: 1px solid var(--ias-border);
	color: var(--ias-text-muted);
	text-decoration: none;
	transition: all .15s ease;
}
.ias-tx-icon-btn:hover {
	background: var(--ias-primary);
	color: #fff;
	border-color: var(--ias-primary);
}
.ias-tx-empty {
	padding: 40px 20px;
	text-align: center;
	color: var(--ias-text-muted);
}
@media (max-width: 860px) {
	.ias-tx-head { display: none; }
	.ias-tx-row {
		grid-template-columns: 1fr auto;
		row-gap: 6px;
	}
	.ias-tx-date    { grid-column: 1; font-weight: 700; }
	.ias-tx-desc    { grid-column: 1 / -1; }
	.ias-tx-amount  { grid-column: 1; }
	.ias-tx-status  { grid-column: 2; justify-self: end; }
	.ias-tx-processor { grid-column: 1; }
	.ias-tx-actions { grid-column: 2; justify-self: end; }
}

/* Certificates ------------------------------------------------------------- */
.ias-cert-header {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}
.ias-cert-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--ias-card-bg);
	border: 1px solid var(--ias-border);
	color: var(--ias-text-muted);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all .15s ease;
}
.ias-cert-chip:hover { color: var(--ias-primary); border-color: var(--ias-primary); }
.ias-cert-chip.is-active {
	background: var(--ias-primary);
	border-color: var(--ias-primary);
	color: #fff;
}
.ias-cert-chip .ias-cert-chip-count {
	background: rgba(0,0,0,.08);
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
}
.ias-cert-chip.is-active .ias-cert-chip-count { background: rgba(255,255,255,.25); }

.ias-cert-grid {
	display: grid;
	/* Target 3 columns at the 1200px container width (our locked desktop
	 * width). With 16px padding each side and a 20px gap, the usable track
	 * is ~1168px: 3 × 300 + 2 × 20 = 940 fits with room to spare, and
	 * 4 × 300 + 3 × 20 = 1260 overflows — so auto-fill settles on 3. Below
	 * ~960px container (tablet wrappers) it drops to 2 cols, below ~640
	 * to 1 col. */
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	width: 100%;
}
.ias-cert-card {
	background: var(--ias-card-bg);
	border: 1px solid var(--ias-border);
	border-radius: var(--ias-radius);
	padding: 18px 16px;
	box-shadow: var(--ias-shadow);
	transition: transform .15s ease, box-shadow .15s ease;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
	min-width: 0;
}
.ias-cert-card .ias-cert-icon {
	margin-bottom: 2px;
}
.ias-cert-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--ias-shadow-md);
}
.ias-cert-icon {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 20px;
	background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
}
.ias-cert-card.type-course        .ias-cert-icon { background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%); }
.ias-cert-card.type-workshop      .ias-cert-icon { background: linear-gradient(135deg, #14B8A6 0%, #059669 100%); }
.ias-cert-card.type-certification .ias-cert-icon { background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%); }
.ias-cert-body {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
}
.ias-cert-body h3 {
	font-size: 15px;
	margin: 0 0 4px 0;
	color: var(--ias-text);
	line-height: 1.35;
	word-break: break-word;
}
.ias-cert-type {
	display: inline-block;
	font-size: 10px;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--ias-text-muted);
	margin-bottom: 6px;
}
.ias-cert-card.type-course        .ias-cert-type { color: #B45309; }
.ias-cert-card.type-workshop      .ias-cert-type { color: #0F766E; }
.ias-cert-card.type-certification .ias-cert-type { color: #6D28D9; }
.ias-cert-body p {
	color: var(--ias-text-muted);
	font-size: 13px;
	margin: 0 0 12px 0;
}
.ias-cert-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.ias-cert-empty {
	padding: 48px 24px;
	text-align: center;
	background: var(--ias-card-bg);
	border: 1px dashed var(--ias-border);
	border-radius: var(--ias-radius);
	color: var(--ias-text-muted);
}
.ias-cert-empty i { font-size: 36px; margin-bottom: 10px; opacity: .6; }

/* Modals -------------------------------------------------------------------- */
.ias-modal {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, .55);
	display: none;
	align-items: flex-start;
	justify-content: center;
	z-index: 10000;
	padding: 40px 16px;
	overflow-y: auto;
}
.ias-modal.is-open {
	display: flex;
	animation: ias-fadein .15s ease;
}
.ias-modal-dialog {
	background: var(--ias-card-bg);
	border-radius: var(--ias-radius);
	box-shadow: 0 20px 50px rgba(0,0,0,.25);
	width: 100%;
	max-width: 560px;
	position: relative;
	animation: ias-modalin .2s ease;
}
.ias-modal-dialog.ias-modal-lg {
	max-width: 820px;
}
@keyframes ias-modalin {
	from { opacity: 0; transform: translateY(-16px); }
	to   { opacity: 1; transform: translateY(0); }
}
.ias-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: transparent;
	border: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: var(--ias-text-muted);
	cursor: pointer;
	font-size: 16px;
	transition: background .15s ease, color .15s ease;
}
.ias-modal-close:hover {
	background: var(--ias-bg);
	color: var(--ias-text);
}
.ias-modal-header {
	padding: 22px 24px 12px 24px;
	border-bottom: 1px solid var(--ias-border);
}
.ias-modal-header h2 {
	font-size: 18px;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px 0;
}
.ias-modal-header h2 i {
	color: var(--ias-primary);
}
.ias-modal-header p {
	color: var(--ias-text-muted);
	font-size: 13px;
	margin: 0;
}
.ias-modal-body {
	padding: 20px 24px 24px 24px;
}
.ias-modal-footer {
	padding: 16px 24px;
	border-top: 1px solid var(--ias-border);
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

/* Support modal */
.ias-support-phone {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--ias-primary-light);
	padding: 14px 16px;
	border-radius: var(--ias-radius-sm);
	margin-bottom: 16px;
}
.ias-support-phone i {
	background: var(--ias-primary);
	color: #fff;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ias-support-phone-label {
	font-size: 12px;
	color: var(--ias-primary-dark);
	font-weight: 600;
}
.ias-support-phone-number {
	font-size: 18px;
	color: var(--ias-primary-dark);
	font-weight: 700;
	text-decoration: none;
	display: block;
}
.ias-support-phone-number:hover { text-decoration: underline; }
.ias-support-divider {
	text-align: center;
	position: relative;
	margin: 16px 0;
	color: var(--ias-text-soft);
	font-size: 12px;
}
.ias-support-divider::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--ias-border);
	z-index: 0;
}
.ias-support-divider span {
	background: var(--ias-card-bg);
	padding: 0 10px;
	position: relative;
	z-index: 1;
}

/* Plan grid inside Change Plan modal */
.ias-plan-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}
.ias-plan-option {
	border: 2px solid var(--ias-border);
	border-radius: var(--ias-radius-sm);
	padding: 14px 16px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	align-items: center;
}
.ias-plan-option:hover {
	border-color: var(--ias-primary);
	background: var(--ias-bg);
}
.ias-plan-option.is-selected {
	border-color: var(--ias-primary);
	background: var(--ias-primary-light);
}
.ias-plan-option-title {
	font-size: 14px;
	font-weight: 700;
	margin: 0;
}
.ias-plan-option-sub {
	font-size: 12px;
	color: var(--ias-text-muted);
	margin-top: 2px;
}
.ias-plan-option-price {
	font-size: 16px;
	font-weight: 700;
	color: var(--ias-primary-dark);
	font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}
