/* WP Templates — sign-in, sign-up, account and admin pages */
:root {
	--acc-bg: #0a0a0a;
	--acc-card: #141414;
	--acc-card-2: #1b1b1b;
	--acc-line: #262626;
	--acc-text: #ececec;
	--acc-muted: #9a9a9a;
	--acc-green: #2e7d32;
	--acc-leaf: #8bc34a;
	--acc-red: #e5484d;
}

/* Header: account button / sign-in link */
.acct-link { color: var(--title-color); font-weight: 600; margin-right: 6px; }
.acct-link:hover { color: var(--theme-color); }
.acct-btn { gap: 10px; }
.acct-avatar {
	display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
	background: #fff; color: var(--acc-green); font-weight: 800; font-size: 13px; line-height: 1;
}

/* Flash messages */
.flash-stack { position: fixed; top: 96px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.flash {
	display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 10px; font-size: 15px; line-height: 1.45;
	background: var(--acc-card); color: var(--acc-text); border: 1px solid var(--acc-line); border-left: 4px solid var(--acc-leaf);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .35); animation: flash-in .35s ease;
}
.flash span { flex: 1; }
.flash-error { border-left-color: var(--acc-red); }
.flash-info { border-left-color: #4ea1ff; }
.flash-close { background: none; border: 0; color: var(--acc-muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }

/* Shared form bits */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; font-weight: 600; color: var(--acc-text); margin-bottom: 6px; }
.field small { color: var(--acc-muted); font-weight: 400; }
.field input, .field textarea, .inline-form input {
	width: 100%; background: var(--acc-bg); color: var(--acc-text); border: 1px solid var(--acc-line);
	border-radius: 10px; padding: 12px 14px; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .inline-form input:focus { outline: none; border-color: var(--acc-leaf); box-shadow: 0 0 0 3px rgba(139, 195, 74, .18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--acc-muted); margin-bottom: 14px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--acc-green); width: 16px; height: 16px; flex: none; }
.form-alert { background: rgba(229, 72, 77, .1); border: 1px solid rgba(229, 72, 77, .4); color: #ffb4b6; border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: 14px; }
.muted { color: var(--acc-muted); }
.small { font-size: 13px; margin-top: 12px; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--acc-card-2); color: var(--acc-leaf); border: 1px solid var(--acc-line); vertical-align: middle; }
.pill-green { background: rgba(139, 195, 74, .15); border-color: rgba(139, 195, 74, .35); }
.link-strong { color: var(--acc-leaf); font-weight: 600; }
.link-strong:hover { color: #fff; }
.as-link { background: none; border: 0; padding: 0; cursor: pointer; }
.text-danger-soft { color: #ff8a8d; }

/* Sign in / sign up */
.auth-wrap { min-height: calc(100vh - 120px); display: grid; place-items: center; padding: 70px 16px; background: radial-gradient(80% 60% at 50% 0%, rgba(46, 125, 50, .25), transparent 70%), var(--acc-bg); }
.auth-card { width: 100%; max-width: 460px; background: var(--acc-card); border: 1px solid var(--acc-line); border-radius: 18px; padding: 40px 36px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.auth-logo { display: inline-block; margin-bottom: 18px; }
.auth-logo .wp-logo { font-family: var(--title-font); font-weight: 900; font-size: 40px; color: #fff; letter-spacing: -.04em; line-height: 1; }
.auth-logo .wp-logo::after { content: "."; color: var(--acc-leaf); }
.auth-title { color: #fff; font-size: 30px; margin-bottom: 6px; }
.auth-sub { color: var(--acc-muted); margin-bottom: 26px; }
.auth-form .th-btn { justify-content: center; margin-top: 6px; }
.auth-switch { text-align: center; margin: 22px 0 0; color: var(--acc-muted); font-size: 15px; }
.auth-switch a { color: var(--acc-leaf); font-weight: 600; }
.big-404 { font-family: var(--title-font); font-size: 110px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--acc-leaf); margin: 0 0 10px; }

/* Account area */
.account-wrap { background: var(--acc-bg); color: var(--acc-text); padding: 60px 0 100px; min-height: 70vh; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.account-id { display: flex; align-items: center; gap: 18px; }
.account-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--acc-green), var(--acc-leaf)); color: #fff; font-size: 28px; font-weight: 800; flex: none; }
.account-name { color: #fff; font-size: 30px; margin: 0 0 4px; }
.account-meta { color: var(--acc-muted); margin: 0; font-size: 15px; }
.account-meta a { color: var(--acc-leaf); }
.btn-sm-acct { padding: 10px 20px; }
.th-btn.style-border2 { background: transparent; color: #fff; border: 1px solid var(--acc-line); }
.th-btn.style-border2:hover { border-color: var(--acc-leaf); color: #fff; }

.account-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--acc-line); margin-bottom: 30px; overflow-x: auto; scrollbar-width: none; }
.account-tabs a { padding: 12px 18px; color: var(--acc-muted); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.account-tabs a:hover { color: #fff; }
.account-tabs a.is-active { color: #fff; border-bottom-color: var(--acc-leaf); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.stat { background: var(--acc-card); border: 1px solid var(--acc-line); border-radius: 14px; padding: 20px; }
.stat-num { display: block; color: #fff; font-size: 28px; font-weight: 800; font-family: var(--title-font); line-height: 1.1; }
.stat-label { color: var(--acc-muted); font-size: 14px; }

.panel { background: var(--acc-card); border: 1px solid var(--acc-line); border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.panel-title { color: #fff; font-size: 20px; margin: 0 0 18px; }
.mt-4 { margin-top: 28px !important; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field.narrow { max-width: 420px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.two-col .panel { margin-bottom: 0; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.acct-product { background: var(--acc-card); border: 1px solid var(--acc-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.acct-product-img { display: block; aspect-ratio: 312 / 260; overflow: hidden; background: #0f1a10; }
.acct-product-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.acct-product:hover .acct-product-img img { transform: scale(1.04); }
.acct-product-body { padding: 18px; }
.acct-product-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.acct-product-top h3 { color: #fff; font-size: 19px; margin: 0; }
.price { color: var(--acc-leaf); font-weight: 800; }
.acct-product-body .muted { font-size: 14px; margin: 4px 0 14px; }
.acct-product-actions { display: flex; gap: 8px; align-items: center; }
.acct-product-actions .th-btn { padding: 10px 16px; font-size: 14px; }
.fav-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--acc-line); background: transparent; color: var(--acc-muted); font-size: 18px; cursor: pointer; transition: .2s; }
.fav-btn:hover { color: #ff6b81; border-color: #ff6b81; }
.fav-btn.is-on { color: #fff; background: #e5484d; border-color: #e5484d; }

.table-wrap { overflow-x: auto; }
.acct-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.acct-table th { text-align: left; color: var(--acc-muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; padding: 0 12px 10px; border-bottom: 1px solid var(--acc-line); }
.acct-table td { padding: 14px 12px; border-bottom: 1px solid var(--acc-line); color: var(--acc-text); vertical-align: middle; }
.acct-table tr:last-child td { border-bottom: 0; }
.acct-table strong { color: #fff; }
.t-right { text-align: right; }

.fav-list, .session-list { list-style: none; margin: 0; padding: 0; }
.fav-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--acc-line); }
.fav-list li:last-child { border-bottom: 0; }
.fav-list img { width: 72px; height: 72px; object-fit: cover; object-position: top; border-radius: 10px; }
.fav-list li > div { flex: 1; display: flex; flex-direction: column; }
.fav-list strong { color: #fff; }
.fav-list .th-btn { padding: 10px 16px; font-size: 14px; }
.session-list li { padding: 12px 0; border-bottom: 1px solid var(--acc-line); }
.session-list li:last-child { border-bottom: 0; margin-bottom: 14px; }
.session-list strong { color: #fff; }
.session-list .muted { display: block; font-size: 13px; margin-top: 2px; }

.danger-zone { border-color: rgba(229, 72, 77, .35); margin-top: 24px; }
.inline-form { display: flex; gap: 12px; max-width: 560px; }
.danger-btn { background: var(--acc-red) !important; }
.danger-btn:hover { background: #c4373b !important; }

@media (max-width: 991px) {
	.stat-row { grid-template-columns: repeat(2, 1fr); }
	.two-col { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
	.auth-card { padding: 30px 22px; }
	.form-grid { grid-template-columns: 1fr; }
	.inline-form { flex-direction: column; }
	.account-name { font-size: 24px; }
	.acct-table th:nth-child(4), .acct-table td:nth-child(4) { display: none; }
	.fav-list li { flex-wrap: wrap; }
	.acct-link { display: none; }
}

/* Fixes on top of the Hok template */
.header-info-wrap { flex-wrap: nowrap; }
.acct-btn { display: inline-flex !important; align-items: center; line-height: 1; white-space: nowrap; }
.check input[type="checkbox"] {
	display: inline-block !important; position: static !important; opacity: 1 !important; visibility: visible !important;
	appearance: auto !important; -webkit-appearance: checkbox !important; margin: 3px 0 0 !important;
}
.check input[type="checkbox"] + *::before, .check::before { display: none !important; }
.account-wrap > .container { max-width: 1240px; padding-left: 24px; padding-right: 24px; }
.danger-btn, .inline-form .th-btn { white-space: nowrap; flex: none; }
