/* Afo News Members - join page (matches Afo News dark gradient brand) */

.afnm-join {
	max-width: 640px;
	margin: 0 auto;
	padding: 36px;
	background: #0f1320;
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 20px;
	color: #f2f5fc;
	font-family: inherit;
}

.afnm-join-head { text-align: center; margin-bottom: 28px; }
.afnm-eyebrow {
	display: inline-block;
	font-size: .75rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-weight: 700;
	background: linear-gradient(90deg,#7c3aed,#ec4899,#22d3ee);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 10px;
}
.afnm-join-head h2 { font-size: 1.9rem; margin: 0 0 12px; color: #fff; line-height: 1.15; }
.afnm-join-head p { color: #aab3c5; font-size: .96rem; line-height: 1.6; margin: 0; }

/* Plan toggle */
.afnm-plan-toggle {
	display: flex;
	background: rgba(255,255,255,.05);
	border-radius: 999px;
	padding: 5px;
	margin: 0 auto 24px;
	max-width: 280px;
}
.afnm-plan-opt {
	flex: 1;
	border: 0;
	background: transparent;
	color: #aab3c5;
	padding: 10px 0;
	border-radius: 999px;
	font-weight: 700;
	font-size: .9rem;
	cursor: pointer;
	transition: all .2s ease;
}
.afnm-plan-opt.is-active {
	background: linear-gradient(90deg,#7c3aed,#ec4899);
	color: #fff;
}

/* Amount buttons */
.afnm-amounts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 18px;
}
.afnm-amount {
	border: 1px solid rgba(255,255,255,.14);
	background: rgba(255,255,255,.03);
	color: #f2f5fc;
	padding: 14px 0;
	border-radius: 12px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	transition: all .15s ease;
}
.afnm-amount:hover { border-color: rgba(124,58,237,.7); }
.afnm-amount.is-active {
	border-color: transparent;
	background: linear-gradient(135deg,#7c3aed,#ec4899);
	color: #fff;
}

/* Custom amount */
.afnm-custom { margin-bottom: 22px; }
.afnm-custom label { display: block; font-size: .85rem; color: #aab3c5; margin-bottom: 8px; }
.afnm-custom-row {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(255,255,255,.03);
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 12px;
	padding: 4px 14px;
}
.afnm-rupee { font-size: 1.2rem; color: #aab3c5; }
.afnm-custom-row input {
	flex: 1;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 1.1rem;
	padding: 12px 0;
	outline: none;
	font-family: inherit;
}
.afnm-per { color: #aab3c5; font-size: .9rem; }
.afnm-min-note { font-size: .78rem; color: #7c8499; margin: 8px 0 0; }

/* Name / email fields */
.afnm-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.afnm-field label { display: block; font-size: .85rem; color: #aab3c5; margin-bottom: 7px; }
.afnm-field input {
	width: 100%;
	background: rgba(255,255,255,.03);
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 12px;
	color: #fff;
	padding: 13px 15px;
	font-size: 1rem;
	font-family: inherit;
	box-sizing: border-box;
}
.afnm-field input:focus { outline: none; border-color: rgba(124,58,237,.7); }

/* Submit */
.afnm-submit {
	width: 100%;
	border: 0;
	background: linear-gradient(135deg,#7c3aed,#ec4899,#22d3ee);
	color: #fff;
	font-size: 1.08rem;
	font-weight: 700;
	padding: 17px 0;
	border-radius: 14px;
	cursor: pointer;
	transition: transform .15s ease, opacity .15s ease;
	font-family: inherit;
}
.afnm-submit:hover { transform: translateY(-2px); }
.afnm-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.afnm-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #7c8499;
	font-size: .82rem;
	margin: 16px 0 0;
}
.afnm-secure svg { width: 15px; height: 15px; }

/* Messages */
.afnm-msg { margin-top: 16px; font-size: .9rem; font-weight: 600; border-radius: 10px; text-align: center; }
.afnm-msg:empty { display: none; }
.afnm-msg-ok  { color: #34d399; background: rgba(52,211,153,.12); padding: 13px; }
.afnm-msg-err { color: #f87171; background: rgba(248,113,113,.12); padding: 13px; }

/* Already a member */
.afnm-already { text-align: center; }
.afnm-already h2 { color: #fff; }
.afnm-already p { color: #aab3c5; }
.afnm-btn {
	display: inline-block;
	margin-top: 16px;
	background: linear-gradient(135deg,#7c3aed,#ec4899);
	color: #fff;
	padding: 13px 26px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 700;
}

/* Light theme support if site is in light mode */
[data-theme="light"] .afnm-join { background: #fff; border-color: rgba(0,0,0,.1); color: #1a1a2e; }
[data-theme="light"] .afnm-join-head h2 { color: #1a1a2e; }
[data-theme="light"] .afnm-amount,
[data-theme="light"] .afnm-field input,
[data-theme="light"] .afnm-custom-row { color: #1a1a2e; background: #f5f6fa; border-color: rgba(0,0,0,.12); }

@media (max-width: 560px) {
	.afnm-join { padding: 24px 18px; }
	.afnm-amounts { grid-template-columns: repeat(2, 1fr); }
	.afnm-fields { grid-template-columns: 1fr; }
	.afnm-field input,
	.afnm-custom-row input { font-size: 16px; }
}

/* ============================================================
   ACCOUNT DASHBOARD
   ============================================================ */
.afnm-account-wrap {
	max-width: 760px;
	margin: 0 auto;
	color: #f2f5fc;
	font-family: inherit;
}
.afnm-account-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	gap: 16px;
}
.afnm-account-header h2 { color: #fff; margin: 6px 0 0; font-size: 1.6rem; }
.afnm-logout {
	color: #aab3c5;
	text-decoration: none;
	border: 1px solid rgba(255,255,255,.16);
	padding: 9px 18px;
	border-radius: 999px;
	font-weight: 600;
	font-size: .85rem;
	white-space: nowrap;
}
.afnm-logout:hover { border-color: #ec4899; color: #fff; }

.afnm-status-card {
	background: #0f1320;
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 18px;
	padding: 26px;
	margin-bottom: 30px;
}
.afnm-is-active { border-color: rgba(124,58,237,.4); }
.afnm-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.afnm-badge {
	background: linear-gradient(135deg,#7c3aed,#ec4899);
	color: #fff;
	padding: 6px 16px;
	border-radius: 999px;
	font-weight: 700;
	font-size: .82rem;
}
.afnm-status-amount { font-size: 1.2rem; font-weight: 700; color: #fff; }
.afnm-status-thanks { color: #aab3c5; line-height: 1.6; margin: 0; }
.afnm-next { color: #7c8499; font-size: .85rem; margin: 12px 0 0; }

.afnm-not-active { text-align: center; }
.afnm-not-active p { color: #aab3c5; margin: 0 0 16px; }

.afnm-perks-title { color: #fff; font-size: 1.3rem; margin: 0 0 18px; }
.afnm-perks-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.afnm-perk-card {
	background: #0f1320;
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 14px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.afnm-perk-platform {
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-weight: 700;
	color: #22d3ee;
}
.afnm-perk-card h4 { color: #fff; margin: 0; font-size: 1.05rem; }
.afnm-perk-desc { color: #aab3c5; font-size: .88rem; line-height: 1.5; margin: 0; }
.afnm-perk-code {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(255,255,255,.04);
	border: 1px dashed rgba(255,255,255,.2);
	border-radius: 8px;
	padding: 8px 12px;
	margin-top: 4px;
}
.afnm-perk-code-label { font-size: .72rem; color: #7c8499; text-transform: uppercase; }
.afnm-perk-code code { color: #34d399; font-weight: 700; font-size: 1rem; }
.afnm-perk-link {
	color: #ec4899;
	text-decoration: none;
	font-weight: 700;
	font-size: .9rem;
	margin-top: 4px;
}
.afnm-no-perks { color: #7c8499; }

.afnm-cancel-area { margin-top: 36px; text-align: center; }
.afnm-cancel-link { color: #7c8499; font-size: .82rem; text-decoration: underline; }
.afnm-cancel-link:hover { color: #f87171; }

[data-theme="light"] .afnm-account-wrap,
[data-theme="light"] .afnm-account-header h2,
[data-theme="light"] .afnm-perks-title,
[data-theme="light"] .afnm-perk-card h4 { color: #1a1a2e; }
[data-theme="light"] .afnm-status-card,
[data-theme="light"] .afnm-perk-card { background: #fff; border-color: rgba(0,0,0,.1); }

@media (max-width: 560px) {
	.afnm-perks-grid { grid-template-columns: 1fr; }
	.afnm-account-header { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   HEADER ACCOUNT MENU (smart header)
   ============================================================ */
.afnm-acct-menu { position: relative; }
.afnm-acct-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 999px;
	padding: 5px 12px 5px 6px;
	color: #f2f5fc;
	cursor: pointer;
	font-family: inherit;
	font-weight: 600;
	font-size: .88rem;
}
.afnm-acct-toggle:hover { border-color: rgba(124,58,237,.6); }
.afnm-acct-avatar { border-radius: 50%; }
.afnm-acct-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afnm-acct-badge { color: #fbbf24; font-size: .9rem; }
.afnm-acct-caret { width: 15px; height: 15px; opacity: .7; }

.afnm-acct-drop {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 190px;
	background: #0f1320;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 12px;
	padding: 6px;
	box-shadow: 0 18px 40px rgba(0,0,0,.5);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: all .16s ease;
	z-index: 999;
}
.afnm-acct-menu.is-open .afnm-acct-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.afnm-acct-drop a {
	display: block;
	padding: 10px 14px;
	color: #d6dbe6;
	text-decoration: none;
	border-radius: 8px;
	font-size: .9rem;
	font-weight: 600;
}
.afnm-acct-drop a:hover { background: rgba(255,255,255,.06); color: #fff; }
.afnm-acct-logout { color: #f87171 !important; }

[data-theme="light"] .afnm-acct-toggle { background: #f0f1f5; border-color: rgba(0,0,0,.12); color: #1a1a2e; }
[data-theme="light"] .afnm-acct-drop { background: #fff; border-color: rgba(0,0,0,.12); }
[data-theme="light"] .afnm-acct-drop a { color: #333; }

/* ============================================================
   BRANDED LOGIN
   ============================================================ */
.afnm-login-wrap { max-width: 460px; margin: 0 auto; }
.afnm-login-card {
	background: #0f1320;
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 20px;
	padding: 36px;
	color: #f2f5fc;
}
.afnm-login-form { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.afnm-login-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: .85rem;
}
.afnm-remember { color: #aab3c5; display: flex; align-items: center; gap: 7px; cursor: pointer; }
.afnm-forgot { color: #22d3ee; text-decoration: none; }
.afnm-forgot:hover { text-decoration: underline; }
.afnm-login-foot {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid rgba(255,255,255,.08);
	text-align: center;
	color: #aab3c5;
	font-size: .9rem;
}
.afnm-login-foot a { color: #ec4899; text-decoration: none; font-weight: 700; margin-left: 6px; }
.afnm-login-foot a:hover { text-decoration: underline; }

[data-theme="light"] .afnm-login-card { background: #fff; border-color: rgba(0,0,0,.1); color: #1a1a2e; }

@media (max-width: 480px) {
	.afnm-login-card { padding: 26px 20px; }
	.afnm-login-form input { font-size: 16px; }
}
