/**
 * ASAS Member Portal — design system + login/dashboard UI.
 * Theme: navy sidebar + gold accents (mengikut mock design).
 */

.asas-portal {
	--asas-navy: #0f2a4a;
	--asas-navy-2: #16375e;
	--asas-navy-dark: #0a1f38;
	--asas-gold: #c9a227;
	--asas-gold-dark: #a8861c;
	--asas-green: #1f9d55;
	--asas-ink: #1f2933;
	--asas-muted: #6b7280;
	--asas-line: #e5e7eb;
	--asas-bg: #eef1f5;
	--asas-radius: 12px;
	--asas-shadow: 0 4px 18px rgba(15, 42, 74, .08);

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--asas-ink);
	line-height: 1.5;
	box-sizing: border-box;
}

.asas-portal *,
.asas-portal *::before,
.asas-portal *::after {
	box-sizing: inherit;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.asas-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 8px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
	line-height: 1.2;
	white-space: nowrap;
}

.asas-btn--primary {
	background: var(--asas-navy);
	color: #fff;
	width: 100%;
}

.asas-btn--primary:hover {
	background: var(--asas-navy-dark);
	color: #fff;
}

.asas-btn--primary[disabled] {
	opacity: .6;
	cursor: not-allowed;
}

.asas-btn--navy {
	background: var(--asas-navy);
	color: #fff;
}

.asas-btn--navy:hover {
	background: var(--asas-navy-dark);
	color: #fff;
}

.asas-btn--gold {
	background: var(--asas-gold);
	color: #fff;
}

.asas-btn--gold:hover {
	background: var(--asas-gold-dark);
	color: #fff;
}

.asas-btn--muted {
	background: #64748b;
	color: #fff;
}

.asas-btn--muted:hover {
	background: #475569;
	color: #fff;
}

.asas-btn--ghost {
	background: transparent;
	color: var(--asas-navy);
	border-color: var(--asas-navy);
	padding: 8px 16px;
	font-size: 13px;
}

.asas-btn--ghost:hover {
	background: var(--asas-navy);
	color: #fff;
}

.asas-btn--link {
	background: transparent;
	color: var(--asas-muted);
	border: none;
	padding: 6px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: underline;
	width: 100%;
}

.asas-btn--sm {
	padding: 7px 14px;
	font-size: 12.5px;
	border-radius: 7px;
}

.asas-btn--icon {
	padding: 10px 14px;
}

/* ------------------------------------------------------------------ */
/* Login                                                               */
/* ------------------------------------------------------------------ */

.asas-portal--login {
	display: flex;
	justify-content: center;
	padding: 40px 16px;
	background: var(--asas-bg);
	border-radius: var(--asas-radius);
}

.asas-portal__card {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: var(--asas-radius);
	box-shadow: var(--asas-shadow);
	padding: 32px 28px;
}

.asas-portal__brand {
	text-align: center;
	margin-bottom: 24px;
}

.asas-portal__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--asas-navy);
	color: var(--asas-gold);
	font-weight: 800;
	letter-spacing: 1px;
	font-size: 17px;
	margin-bottom: 12px;
	border: 2px solid var(--asas-gold);
}

.asas-portal__title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: var(--asas-navy);
}

.asas-portal__subtitle {
	margin: 0;
	font-size: 14px;
	color: var(--asas-muted);
}

.asas-field {
	margin-bottom: 16px;
}

.asas-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--asas-ink);
}

.asas-field input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--asas-line);
	border-radius: 8px;
	font-size: 15px;
	margin-bottom: 12px;
	background: #fff;
	color: var(--asas-ink);
}

.asas-field input:focus {
	outline: none;
	border-color: var(--asas-navy);
	box-shadow: 0 0 0 3px rgba(15, 42, 74, .12);
}

#asas-otp {
	letter-spacing: 8px;
	text-align: center;
	font-size: 22px;
	font-weight: 700;
}

.asas-portal__hint {
	font-size: 13px;
	color: var(--asas-muted);
	margin: 0 0 10px;
}

.asas-portal__messages {
	margin-top: 14px;
	font-size: 14px;
}

.asas-portal__messages .asas-msg {
	padding: 10px 14px;
	border-radius: 8px;
	margin-bottom: 8px;
}

.asas-portal__messages .asas-msg--error {
	background: #fdecea;
	color: #b3261e;
	border: 1px solid #f5c6c2;
}

.asas-portal__messages .asas-msg--success {
	background: #e7f6ee;
	color: #14663a;
	border: 1px solid #bfe0d0;
}

.asas-portal__foot {
	margin: 20px 0 0;
	text-align: center;
	font-size: 13px;
	color: var(--asas-muted);
}

.asas-portal__foot a {
	color: var(--asas-navy);
	font-weight: 600;
	text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Dashboard shell                                                     */
/* ------------------------------------------------------------------ */

.asas-portal--dashboard {
	background: var(--asas-bg);
	border-radius: var(--asas-radius);
	overflow: hidden;
}

.asas-app {
	display: flex;
	min-height: 640px;
	align-items: stretch;
}

/* Sidebar ---------------------------------------------------------- */

.asas-side {
	flex: 0 0 232px;
	background: linear-gradient(180deg, var(--asas-navy) 0%, var(--asas-navy-dark) 100%);
	color: #cdd8e6;
	padding: 20px 0;
	display: flex;
	flex-direction: column;
}

.asas-side__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 20px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.asas-side__crest {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--asas-gold);
	color: var(--asas-navy-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: .5px;
	flex: 0 0 auto;
}

.asas-side__brandtext {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.asas-side__brandtext strong {
	color: #fff;
	font-size: 15px;
	letter-spacing: 1px;
}

.asas-side__brandtext span {
	font-size: 10px;
	letter-spacing: 3px;
	color: var(--asas-gold);
}

.asas-side__id {
	padding: 14px 20px;
	font-size: 12.5px;
	color: #9fb2c9;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.asas-side__id strong {
	color: #fff;
}

.asas-side__pill {
	color: var(--asas-gold);
}

.asas-side__nav {
	display: flex;
	flex-direction: column;
	padding: 12px 0;
}

.asas-side__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 20px;
	color: #cdd8e6;
	text-decoration: none;
	font-size: 13.5px;
	border-left: 3px solid transparent;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.asas-side__link:hover {
	background: rgba(255, 255, 255, .06);
	color: #fff;
}

.asas-side__link.is-active {
	background: rgba(201, 162, 39, .14);
	border-left-color: var(--asas-gold);
	color: #fff;
	font-weight: 600;
}

.asas-side__section {
	margin-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding-top: 8px;
}

.asas-side__section-label {
	display: block;
	padding: 8px 20px 4px;
	font-size: 10.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--asas-gold);
	opacity: .85;
}

.asas-side__nav--admin .asas-side__link {
	font-size: 13px;
	padding-left: 24px;
}

/* "Akan Datang" — placeholder items, not yet clickable. */
.asas-side__link.is-soon {
	opacity: .45;
	cursor: default;
	pointer-events: none;
}

.asas-ico {
	width: 18px;
	text-align: center;
	font-size: 14px;
	opacity: .9;
}

/* Main ------------------------------------------------------------- */

.asas-main {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.asas-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fff;
	padding: 14px 24px;
	border-bottom: 1px solid var(--asas-line);
}

.asas-topbar__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--asas-navy);
}

.asas-topbar__right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.asas-topbar__bell {
	font-size: 16px;
	color: var(--asas-muted);
	cursor: pointer;
}

.asas-topbar__user {
	display: flex;
	align-items: center;
	gap: 10px;
}

.asas-topbar__userinfo {
	display: flex;
	flex-direction: column;
	text-align: right;
	line-height: 1.2;
}

.asas-topbar__userinfo strong {
	font-size: 13px;
	color: var(--asas-ink);
}

.asas-topbar__userinfo span {
	font-size: 11px;
	color: var(--asas-muted);
}

.asas-topbar__avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--asas-navy);
	color: var(--asas-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
}

.asas-content {
	padding: 20px 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Rows ------------------------------------------------------------- */

.asas-row {
	display: grid;
	gap: 18px;
}

.asas-row--top {
	grid-template-columns: 1.55fr 1fr;
}

.asas-row--mid {
	grid-template-columns: repeat(3, 1fr);
}

/* The "Akan Datang" row stacks its panels vertically. */
.asas-soon .asas-row--mid {
	grid-template-columns: 1fr;
}

/* Welcome ---------------------------------------------------------- */

.asas-welcome {
	background: #fff;
	border: 1px solid var(--asas-line);
	border-radius: var(--asas-radius);
	padding: 20px 22px;
	box-shadow: var(--asas-shadow);
}

.asas-welcome__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.asas-welcome__head h2 {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	color: var(--asas-navy);
}

.asas-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.asas-chip--green {
	background: #e7f6ee;
	color: #14663a;
}

.asas-welcome__sub {
	margin: 8px 0 2px;
	font-size: 13.5px;
	color: var(--asas-muted);
}

.asas-welcome__status {
	margin: 0 0 16px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--asas-ink);
}

.asas-progress {
	position: relative;
	padding-right: 110px;
}

.asas-progress__label {
	display: flex;
	justify-content: space-between;
	font-size: 12.5px;
	color: var(--asas-muted);
	margin-bottom: 6px;
}

.asas-progress__label strong {
	color: var(--asas-navy);
}

.asas-progress__bar {
	height: 10px;
	background: #e9edf2;
	border-radius: 999px;
	overflow: hidden;
}

.asas-progress__bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--asas-gold) 0%, #e0be4a 100%);
	border-radius: 999px;
}

.asas-progress__btn {
	position: absolute;
	right: 0;
	bottom: -6px;
}

/* Digital card ----------------------------------------------------- */

.asas-ecard {
	position: relative;
	overflow: hidden;
	background: linear-gradient(150deg, var(--asas-navy) 0%, var(--asas-navy-dark) 100%);
	border-radius: var(--asas-radius);
	padding: 16px 18px;
	color: #fff;
	box-shadow: var(--asas-shadow);
	display: flex;
	flex-direction: column;
}

/* Decorative gold arcs (top-right + bottom-left) */
.asas-ecard::before,
.asas-ecard::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: 2px solid rgba(201, 162, 39, .35);
	pointer-events: none;
}

.asas-ecard::before {
	width: 150px;
	height: 150px;
	top: -70px;
	right: -50px;
}

.asas-ecard::after {
	width: 110px;
	height: 110px;
	bottom: -60px;
	left: -40px;
	border-color: rgba(201, 162, 39, .22);
}

.asas-ecard__title {
	position: relative;
	z-index: 1;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--asas-gold);
	margin-bottom: 12px;
}

.asas-ecard__body {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	flex: 1 1 auto;
}

.asas-ecard__qr {
	background: #fff;
	padding: 6px;
	border-radius: 8px;
	line-height: 0;
	flex: 0 0 auto;
}

.asas-ecard__name {
	display: block;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 6px;
}

.asas-ecard__id {
	margin: 0;
	font-size: 12.5px;
	color: #cdd8e6;
	letter-spacing: .3px;
}

/* Panels ----------------------------------------------------------- */

.asas-panel {
	background: #fff;
	border: 1px solid var(--asas-line);
	border-radius: var(--asas-radius);
	padding: 16px 18px;
	box-shadow: var(--asas-shadow);
}

.asas-panel__title {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--asas-navy);
	padding-bottom: 10px;
	border-bottom: 2px solid #f0f2f5;
}

/* Events ----------------------------------------------------------- */

.asas-event {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--asas-line);
	border-left: 3px solid var(--asas-gold);
	border-radius: 8px;
	margin-bottom: 10px;
}

.asas-event:last-child {
	margin-bottom: 0;
}

.asas-event__info {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	flex: 1;
}

.asas-event__thumb {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	overflow: hidden;
}

.asas-event__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.asas-event__info strong {
	font-size: 13px;
	color: var(--asas-ink);
}

.asas-event__info span {
	font-size: 12px;
	color: var(--asas-muted);
}

/* Transactions ----------------------------------------------------- */

.asas-txn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid #f0f2f5;
}

.asas-txn:last-child {
	border-bottom: none;
}

.asas-txn__info {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}

.asas-txn__info span {
	font-size: 12px;
	color: var(--asas-muted);
}

.asas-txn__info strong {
	font-size: 14px;
	color: var(--asas-ink);
}

.asas-txn__info small {
	font-size: 11px;
	color: var(--asas-muted);
}

.asas-txn__ok {
	color: var(--asas-green) !important;
}

.asas-txn__check {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #e7f6ee;
	color: var(--asas-green);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 13px;
	flex: 0 0 auto;
}

/* News ------------------------------------------------------------- */

.asas-news {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--asas-line);
	border-left: 3px solid var(--asas-navy);
	border-radius: 8px;
	margin-bottom: 10px;
}

.asas-news:last-child {
	margin-bottom: 0;
}

.asas-news__info {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	min-width: 0;
}

.asas-news__info strong {
	font-size: 12.5px;
	color: var(--asas-ink);
}

.asas-news__info span {
	font-size: 11.5px;
	color: var(--asas-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Search ----------------------------------------------------------- */

.asas-panel--search {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.asas-search__head {
	min-width: 200px;
}

.asas-search__head .asas-panel__title {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 2px;
}

.asas-search__head p {
	margin: 0;
	font-size: 12.5px;
	color: var(--asas-muted);
}

.asas-search__controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 auto;
	justify-content: flex-end;
}

.asas-input {
	padding: 9px 12px;
	border: 1px solid var(--asas-line);
	border-radius: 8px;
	font-size: 13px;
	background: #fff;
	color: var(--asas-ink);
	min-width: 130px;
}

.asas-input--grow {
	flex: 1 1 auto;
	min-width: 160px;
}

/* Profile edit ----------------------------------------------------- */

.asas-panel--edit {
	scroll-margin-top: 20px;
}

.asas-edit__note {
	margin: 0 0 16px;
	font-size: 12.5px;
	color: var(--asas-muted);
	background: #f8fafc;
	border-left: 3px solid var(--asas-gold);
	padding: 8px 12px;
	border-radius: 6px;
}

.asas-edit__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px 16px;
}

.asas-edit__grid .asas-field {
	margin-bottom: 0;
}

.asas-edit__grid .asas-field--wide {
	grid-column: 1 / -1;
}

.asas-edit__grid .asas-field input {
	margin-bottom: 0;
}

.asas-edit__actions {
	display: flex;
	gap: 10px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--asas-line);
}

/* Program admin panel ---------------------------------------------- */

.asas-portal--admin {
	background: var(--asas-bg);
	border-radius: var(--asas-radius);
	padding: 24px;
}

.asas-admin__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.asas-admin__picker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.asas-admin__picker label {
	font-size: 13px;
	font-weight: 600;
	color: var(--asas-navy);
}

.asas-admin__picker select {
	padding: 6px 10px;
	border: 1px solid var(--asas-line);
	border-radius: 6px;
	font-size: 14px;
}

.asas-admin__head h2 {
	margin: 0;
	font-size: 20px;
	color: var(--asas-navy);
}

.asas-admin__date {
	font-size: 13px;
	color: #64748b;
}

.asas-admin__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 20px;
}

.asas-stat {
	background: #fff;
	border: 1px solid var(--asas-line);
	border-radius: var(--asas-radius);
	padding: 16px;
	text-align: center;
	box-shadow: var(--asas-shadow);
}

.asas-stat__num {
	display: block;
	font-size: 28px;
	font-weight: 800;
	color: var(--asas-navy);
}

.asas-stat__label {
	font-size: 12.5px;
	color: var(--asas-muted);
}

.asas-stat--green .asas-stat__num {
	color: var(--asas-green);
}

.asas-stat--gold .asas-stat__num {
	color: var(--asas-gold-dark);
}

.asas-stat--muted .asas-stat__num {
	color: var(--asas-muted);
}

.asas-admin__scan,
.asas-admin__list {
	background: #fff;
	border: 1px solid var(--asas-line);
	border-radius: var(--asas-radius);
	padding: 18px;
	margin-bottom: 20px;
	box-shadow: var(--asas-shadow);
}

.asas-admin__scan h3,
.asas-admin__list h3 {
	margin: 0 0 14px;
	font-size: 15px;
	color: var(--asas-navy);
}

.asas-qr-reader {
	max-width: 360px;
	margin: 0 auto 12px;
	border-radius: 10px;
	overflow: hidden;
}

.asas-admin__hint {
	font-size: 12.5px;
	color: var(--asas-muted);
	text-align: center;
	margin: 0 0 14px;
}

.asas-admin__manual {
	display: flex;
	gap: 10px;
	max-width: 460px;
	margin: 0 auto;
}

.asas-admin__manual .asas-input {
	flex: 1 1 auto;
}

/* Table ------------------------------------------------------------ */

.asas-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

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

.asas-table th {
	background: #f8fafc;
	font-weight: 700;
	color: var(--asas-navy);
	font-size: 12.5px;
}

.asas-tag {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	background: #eef1f5;
	color: var(--asas-muted);
}

.asas-tag--green {
	background: #e7f6ee;
	color: #14663a;
}

.asas-tag--red {
	background: #fdecec;
	color: #b32d2e;
}

.asas-tag--gold {
	background: #fdf3d7;
	color: #8a6d1a;
}

.asas-empty {
	font-size: 13px;
	color: var(--asas-muted);
	margin: 0;
}

/* Modal ------------------------------------------------------------ */

.asas-modal {
	position: fixed;
	inset: 0;
	background: rgba(10, 31, 56, .6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
}

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

.asas-modal__box {
	background: #fff;
	border-radius: 14px;
	padding: 26px;
	max-width: 340px;
	width: 100%;
	text-align: center;
	position: relative;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

.asas-modal__box h3 {
	margin: 0 0 16px;
	font-size: 16px;
	color: var(--asas-navy);
}

.asas-modal__qr {
	display: inline-block;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--asas-line);
	border-radius: 10px;
	line-height: 0;
}

.asas-modal__hint {
	font-size: 12.5px;
	color: var(--asas-muted);
	margin: 14px 0 0;
}

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

/* Notice / foot ---------------------------------------------------- */

.asas-notice {
	padding: 14px 18px;
	border-radius: 10px;
	font-size: 13.5px;
}

.asas-notice--info {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fde68a;
}

.asas-dash__foot {
	margin: 0;
	font-size: 12.5px;
	color: var(--asas-muted);
	text-align: center;
}

.asas-dash__foot a {
	color: var(--asas-navy);
	font-weight: 600;
	text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Mobile components (hidden on desktop, shown <=720px)                */
/* ------------------------------------------------------------------ */

.asas-mobilebar,
.asas-mprofile {
	display: none;
}

/* Quick grid is hidden by default (mobile-only), but the "Akan Datang"
   section shows it on all screen sizes. */
.asas-quick {
	display: none;
}

.asas-soon .asas-quick {
	display: grid;
}

/* Mobile top bar --------------------------------------------------- */

.asas-mobilebar {
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: linear-gradient(135deg, var(--asas-navy) 0%, var(--asas-navy-dark) 100%);
	color: #fff;
	padding: 12px 16px;
}

.asas-mobilebar__logo {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--asas-gold);
	color: var(--asas-navy-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 11px;
	letter-spacing: .5px;
	flex: 0 0 auto;
}

.asas-mobilebar__title {
	flex: 1 1 auto;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .3px;
}

.asas-mobilebar__burger {
	width: 40px;
	height: 40px;
	border: none;
	background: rgba(255, 255, 255, .12);
	border-radius: 9px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	cursor: pointer;
	padding: 0;
	flex: 0 0 auto;
}

.asas-mobilebar__burger span {
	display: block;
	width: 20px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
}

/* Mobile profile card ---------------------------------------------- */

.asas-mprofile {
	align-items: center;
	gap: 14px;
	background: #fff;
	border: 1px solid var(--asas-line);
	border-radius: var(--asas-radius);
	padding: 14px 16px;
	box-shadow: var(--asas-shadow);
}

.asas-mprofile__avatar {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--asas-navy);
	color: var(--asas-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
	flex: 0 0 auto;
}

.asas-mprofile__info {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
	min-width: 0;
}

.asas-mprofile__name {
	font-size: 15px;
	color: var(--asas-ink);
}

.asas-mprofile__status {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--asas-green);
}

.asas-mprofile__id {
	font-size: 12px;
	color: var(--asas-muted);
}

/* Quick access grid (2x2) ------------------------------------------ */

.asas-quick {
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.asas-quick__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--asas-line);
	border-radius: var(--asas-radius);
	padding: 18px 12px;
	box-shadow: var(--asas-shadow);
	text-decoration: none;
	color: var(--asas-navy);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	transition: transform .12s ease, box-shadow .12s ease;
}

.asas-quick__item:active {
	transform: scale(.97);
}

.asas-quick__ico {
	font-size: 22px;
	line-height: 1;
}

/* "Akan Datang" section -------------------------------------------- */

.asas-soon {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px dashed var(--asas-line);
}

.asas-soon__title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--asas-navy);
}

.asas-soon__note {
	margin: 0 0 16px;
	font-size: 12.5px;
	color: #7b8aa0;
}

/* Placeholder items — dimmed and not interactive. */
.asas-soon .is-soon {
	opacity: .5;
	pointer-events: none;
	filter: grayscale(.35);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 900px) {
	.asas-row--top,
	.asas-row--mid {
		grid-template-columns: 1fr;
	}

	.asas-edit__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 720px) {
	.asas-app {
		flex-direction: column;
		min-height: 0;
	}

	/* Show mobile-only components. */
	.asas-mobilebar {
		display: flex;
	}

	.asas-mprofile {
		display: flex;
	}

	.asas-quick {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.asas-quick__item {
		padding: 14px 8px;
		font-size: 12px;
	}

	.asas-quick__ico {
		font-size: 18px;
	}

	.asas-soon {
		margin-top: 18px;
		padding-top: 14px;
	}

	.asas-soon__title {
		font-size: 14px;
	}

	.asas-soon__note {
		font-size: 12px;
		margin-bottom: 12px;
	}

	/* Collapse the sidebar into a slide-down menu. */
	.asas-side {
		flex: 0 0 auto;
		display: none;
	}

	.asas-side.is-open {
		display: flex;
	}

	.asas-side__nav {
		flex-direction: column;
		flex-wrap: nowrap;
		padding: 8px 0;
	}

	.asas-side__link {
		border-left: 3px solid transparent;
		border-bottom: none;
		padding: 11px 20px;
		font-size: 13.5px;
	}

	.asas-side__link.is-active {
		border-left-color: var(--asas-gold);
		border-bottom-color: transparent;
	}

	.asas-topbar {
		display: none;
	}

	.asas-content {
		padding: 16px 14px 24px;
		gap: 14px;
	}

	.asas-progress {
		padding-right: 0;
	}

	.asas-progress__btn {
		position: static;
		margin-top: 12px;
		width: 100%;
	}

	.asas-search__controls {
		justify-content: stretch;
		flex-wrap: wrap;
	}

	.asas-input,
	.asas-input--grow {
		flex: 1 1 100%;
	}

	.asas-edit__grid {
		grid-template-columns: 1fr;
	}
}

/* Public RSVP form ------------------------------------------------- */

.asas-portal--rsvp {
	max-width: 560px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--asas-line);
	border-radius: 14px;
	padding: 28px;
	box-shadow: 0 8px 30px rgba(15, 23, 42, .06);
}

/* Keep the RSVP card tidy even when the theme wraps content in a wide container. */
.asas-portal--rsvp .asas-rsvp__form,
.asas-portal--rsvp .asas-rsvp__step {
	width: 100%;
}

.asas-portal--rsvp .asas-input {
	width: 100%;
	box-sizing: border-box;
}

.asas-portal--rsvp .asas-rsvp__row .asas-input {
	width: auto;
}

.asas-rsvp__head {
	text-align: center;
	margin-bottom: 22px;
}

.asas-rsvp__img {
	margin-bottom: 18px;
}

.asas-rsvp__img img {
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
}

.asas-rsvp__head h2 {
	margin: 0 0 6px;
	color: var(--asas-navy);
	font-size: 22px;
}

.asas-rsvp__meta {
	margin: 0;
	color: var(--asas-muted);
	font-size: 13px;
}

.asas-rsvp__hint {
	margin: 8px 0 0;
	color: var(--asas-muted);
	font-size: 12.5px;
}

.asas-rsvp__desc {
	margin: 10px 0 0;
	color: var(--asas-ink);
	font-size: 14px;
}

.asas-rsvp__step {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.asas-rsvp__row {
	display: flex;
	gap: 10px;
}

.asas-rsvp__row .asas-input {
	flex: 1;
}

.asas-rsvp__field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.asas-rsvp__field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--asas-navy);
}

.asas-rsvp__field .asas-input[readonly] {
	background: #f1f5f9;
	color: #64748b;
}

/* Payment block ---------------------------------------------------- */

.asas-pay {
	background: #fff;
	border: 1px solid var(--asas-line);
	border-radius: var(--asas-radius);
	padding: 22px;
	box-shadow: var(--asas-shadow);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.asas-pay__title {
	margin: 0;
	font-size: 17px;
	color: var(--asas-navy);
}

.asas-pay__hint {
	margin: 0 0 10px;
	font-size: 13.5px;
	color: var(--asas-muted);
}

.asas-pay__qr {
	text-align: center;
}

.asas-pay__qr-img {
	max-width: 280px;
	width: 100%;
	height: auto;
	border-radius: 12px;
	display: inline-block;
}

.asas-pay__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.asas-pay__attend {
	text-align: center;
}

.asas-pay__attend-img {
	border-radius: 12px;
	display: inline-block;
}

.asas-notice--success {
	background: #e7f6ee;
	color: #14663a;
	border: 1px solid #b7e4c9;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 13.5px;
}
