/* wtheme — sign-in, sign-up, account, admin and 404 pages (light design, tokens from site.css). */
:root {
	--acc-bg: var(--soft); --acc-card: #fff; --acc-card-2: var(--soft); --acc-line: var(--line);
	--acc-text: var(--text); --acc-muted: var(--muted); --acc-green: var(--brand); --acc-leaf: var(--brand); --acc-red: var(--rose);
}

/* Flash messages */
.flash-stack { position: fixed; top: 20px; 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: 12px; font-size: 14px; line-height: 1.45;
	background: #fff; color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--green);
	box-shadow: var(--shadow-lg); animation: flash-in .3s ease;
}
.flash span { flex: 1; }
.flash-error { border-left-color: var(--rose); }
.flash-info { border-left-color: var(--brand); }
.flash-close { background: none; border: 0; color: var(--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: 600 13px/1.4 var(--font-head); color: var(--ink); margin-bottom: 6px; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .inline-form input {
	width: 100%; background: #fff; color: var(--ink); border: 1px solid var(--line);
	border-radius: 10px; padding: 11px 14px; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .inline-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); margin-bottom: 12px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.form-alert { background: #fff1f0; border: 1px solid #ffd2cf; color: #b42318; border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; margin-top: 12px; }
.pill { display: inline-block; font: 700 11px/1.4 var(--font-head); padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #d6dcff; vertical-align: middle; }
.pill-green { background: var(--green-soft); border-color: #c5ecd9; color: #067a46; }
.link-strong { color: var(--brand); font-weight: 600; }
.link-strong:hover { color: var(--brand-dark); }
.as-link { background: none; border: 0; padding: 0; cursor: pointer; }
.text-danger-soft { color: var(--rose); }

/* Sign in / sign up / 404 */
.auth-wrap { min-height: calc(100vh - 260px); display: grid; place-items: center; padding: 56px 16px;
	background: radial-gradient(600px 300px at 80% 0%, rgba(61, 90, 254, .12), transparent 70%), radial-gradient(500px 280px at 10% 100%, rgba(255, 176, 32, .1), transparent 70%), var(--soft); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px 34px; box-shadow: var(--shadow-lg); }
.auth-logo { display: inline-flex; margin-bottom: 20px; }
.auth-title { font-size: 26px; margin-bottom: 6px; }
.auth-sub { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.auth-form .th-btn { margin-top: 6px; padding: 13px 20px; }
.auth-switch { text-align: center; margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--brand); font-weight: 600; }
.big-404 { font: 800 110px/1 var(--font-head); letter-spacing: -.05em; background: linear-gradient(90deg, #3d5afe, #7b5cff); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 8px; }

/* Account area */
.account-wrap { background: var(--soft); padding: 40px 0 var(--gap); min-height: 60vh; }
.account-wrap > .container { max-width: 1200px; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.account-id { display: flex; align-items: center; gap: 16px; }
.account-avatar { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #5b74ff, #2236c9); color: #fff; font: 800 26px/1 var(--font-head); flex: none; }
.account-name { font-size: 26px; margin: 0 0 2px; }
.account-meta { color: var(--muted); margin: 0; font-size: 14px; }
.account-meta a { color: var(--brand); font-weight: 600; }
.btn-sm-acct { padding: 9px 16px; }

.account-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.account-tabs a { padding: 12px 16px; color: var(--muted); font: 600 14px/1 var(--font-head); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.account-tabs a:hover { color: var(--ink); }
.account-tabs a.is-active { color: var(--brand); border-bottom-color: var(--brand); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.stat-num { display: block; color: var(--ink); font: 800 26px/1.15 var(--font-head); }
.stat-label { color: var(--muted); font-size: 13px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.panel-title { font-size: 18px; margin: 0 0 16px; }
.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: 20px; 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: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.acct-product-img { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--soft-2); border-bottom: 1px solid var(--line); }
.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: 16px; }
.acct-product-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.acct-product-top h3 { font-size: 17px; margin: 0; }
.price { color: var(--green); font: 800 15px/1 var(--font-head); }
.acct-product-body .muted { font-size: 13px; margin: 4px 0 14px; }
.acct-product-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.acct-product-actions .th-btn { padding: 9px 14px; font-size: 13px; }
.acct-details { font-size: 13px; margin-left: 4px; }
.fav-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 16px; cursor: pointer; transition: .15s; }
.fav-btn:hover { color: var(--rose); border-color: var(--rose); }
.fav-btn.is-on { color: #fff; background: var(--rose); border-color: var(--rose); }

.table-wrap { overflow-x: auto; }
.acct-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.acct-table th { text-align: left; color: var(--muted); font: 700 11px/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .08em; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.acct-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: middle; }
.acct-table tr:last-child td { border-bottom: 0; }
.acct-table strong { color: var(--ink); }
.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(--line); }
.fav-list li:last-child { border-bottom: 0; }
.fav-list img { width: 72px; height: 56px; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); }
.fav-list li > div { flex: 1; display: flex; flex-direction: column; }
.fav-list strong { color: var(--ink); }
.fav-list .th-btn { padding: 9px 14px; font-size: 13px; }
.session-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.session-list li:last-child { border-bottom: 0; margin-bottom: 14px; }
.session-list strong { color: var(--ink); }
.session-list .muted { display: block; font-size: 13px; margin-top: 2px; }

.danger-zone { border-color: #ffd2cf; margin-top: 20px; }
.inline-form { display: flex; gap: 12px; max-width: 560px; }
.danger-btn { background: var(--rose) !important; box-shadow: none !important; }
.danger-btn:hover { background: #d92d20 !important; }
.danger-btn, .inline-form .th-btn { white-space: nowrap; flex: none; }

@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: 28px 20px; }
	.form-grid { grid-template-columns: 1fr; }
	.inline-form { flex-direction: column; }
	.account-name { font-size: 22px; }
	.acct-table th:nth-child(5), .acct-table td:nth-child(5) { display: none; }
	.fav-list li { flex-wrap: wrap; }
}

/* Sign in with Google */
.google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 48px; border: 1px solid #dadce0; border-radius: 10px; background: #fff; color: #1f1f1f; font: 600 15px/1 inherit; text-decoration: none; transition: background .2s, box-shadow .2s; }
.google-btn:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(60, 64, 67, .2); color: #1f1f1f; text-decoration: none; }
.google-btn svg { flex: none; }
.auth-or { position: relative; text-align: center; margin: 18px 0; color: var(--muted, #6b7280); font-size: 13px; }
.auth-or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line, #e5e7eb); }
.auth-or span { position: relative; background: #fff; padding: 0 12px; }
.google-status { font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }

/* Google-only sign-in note (config password_login = false) */
.auth-note { margin: 14px 0 0; text-align: center; color: #6b6f78; font-size: 13.5px; line-height: 1.5; }
