.gg-dash {
	--gg-gold: #e2ae39;
	--gg-gold-dark: #c89325;
	--gg-amber-text: #8a5a0f;
	--gg-ink: #18191b;
	--gg-ink-soft: #24252a;
	--gg-text: #2b2b2b;
	--gg-muted: #67666b;
	--gg-border: #ece6da;
	--gg-bg-card: #ffffff;
	--gg-bg-page: #faf8f4;
	--gg-radius: 12px;
	--gg-shadow: 0 2px 4px rgba(20, 20, 20, 0.04), 0 10px 24px rgba(20, 20, 20, 0.05);

	display: flex;
	gap: 28px;
	max-width: 1140px;
	margin: 48px auto;
	padding: 0 20px 60px;
	font-family: 'Syne', sans-serif;
	color: var(--gg-text);
	align-items: flex-start;
	background: var(--gg-bg-page);
}

.gg-dash * { box-sizing: border-box; color: inherit; }
.gg-dash, .gg-dash-fullscreen .gg-dash { color: var(--gg-text); }
.gg-dash-content h1, .gg-dash-content h2, .gg-dash-content h3, .gg-dash-content h4, .gg-dash-content strong {
	color: var(--gg-text) !important;
}
.gg-dash input[type="text"],
.gg-dash input[type="password"],
.gg-dash textarea,
.gg-dash select {
	color: var(--gg-text) !important;
	background-color: #fff !important;
}
.gg-dash input::placeholder,
.gg-dash textarea::placeholder {
	color: var(--gg-muted) !important;
	opacity: 1 !important;
}
.gg-dash .woocommerce-Price-amount,
.gg-dash .woocommerce-Price-amount.amount,
.gg-dash .price,
.gg-dash .amount {
	color: inherit !important;
	font-size: inherit;
}
.gg-icon { width: 17px; height: 17px; flex-shrink: 0; }

/* ---------- Guest / login ---------- */
.gg-dash-guest {
	max-width: 420px;
	margin: 70px auto;
	text-align: center;
	background: var(--gg-bg-card);
	border: 1px solid var(--gg-border);
	border-radius: var(--gg-radius);
	padding: 40px 36px;
	box-shadow: var(--gg-shadow);
}
.gg-dash-guest > p:first-child { font-size: 15px; color: var(--gg-muted); margin-bottom: 20px; }
.gg-dash-guest p.login-username,
.gg-dash-guest p.login-password { text-align: left; margin-bottom: 14px; }
.gg-dash-guest label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gg-muted); margin-bottom: 6px; }
.gg-dash-guest input[type="text"],
.gg-dash-guest input[type="password"] {
	width: 100%; padding: 11px 14px; border: 1px solid var(--gg-border); border-radius: 8px; font-size: 14px; font-family: inherit;
}
.gg-dash-guest input[type="text"]:focus,
.gg-dash-guest input[type="password"]:focus { outline: none; border-color: var(--gg-gold); box-shadow: 0 0 0 3px rgba(226,174,57,.18); }
.gg-dash-guest p.login-submit { margin-top: 20px; }
.gg-dash-guest input#wp-submit {
	width: 100%; background: var(--gg-ink); color: #fff; border: none; padding: 13px 0; border-radius: 8px;
	font-family: inherit; font-weight: 700; letter-spacing: .02em; cursor: pointer; transition: background .15s ease;
}
.gg-dash-guest input#wp-submit:hover { background: var(--gg-gold-dark); }
.gg-dash-guest > p:last-child { margin-top: 18px; font-size: 13px; }
.gg-dash-guest > p:last-child a { color: var(--gg-amber-text); text-decoration: none; font-weight: 600; }

/* ---------- Sidebar ---------- */
.gg-dash-sidebar {
	flex: 0 0 240px;
	background: var(--gg-ink);
	color: #e9e8e5;
	border-radius: var(--gg-radius);
	padding: 24px 18px;
	position: sticky;
	top: 24px;
	box-shadow: var(--gg-shadow);
}
.gg-dash-user {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 6px 18px;
	margin-bottom: 14px;
	border-bottom: 1px solid rgba(255,255,255,.1);
}
.gg-dash-user img { border-radius: 50%; border: 2px solid var(--gg-gold); }
.gg-dash-user strong { display: block; font-size: 14px; color: #fff; }
.gg-dash-role {
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--gg-gold);
	font-weight: 700;
}
.gg-dash-nav { display: flex; flex-direction: column; gap: 3px; }
.gg-dash-nav a {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 12px;
	border-radius: 8px;
	text-decoration: none;
	color: #c7c6c2;
	font-size: 13.5px;
	font-weight: 600;
	transition: background .15s ease, color .15s ease;
}
.gg-dash-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.gg-dash-nav a.active { background: var(--gg-gold); color: var(--gg-ink); }
.gg-dash-nav a.active .gg-icon { color: var(--gg-ink); }
.gg-dash-logout {
	margin-top: 14px !important;
	border-top: 1px solid rgba(255,255,255,.1);
	padding-top: 16px !important;
	color: #e08a8a !important;
}
.gg-dash-logout:hover { background: rgba(224,138,138,.1) !important; color: #ff9b9b !important; }

/* ---------- Content ---------- */
.gg-dash-content { flex: 1; min-width: 0; }
.gg-dash-tab { animation: gg-fade-in .25s ease; }
@keyframes gg-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.gg-dash-tab h2 { margin: 0 0 4px; font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.gg-dash-subtitle { margin: 0 0 22px; color: var(--gg-muted); font-size: 13.5px; }

.gg-stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.gg-stat {
	background: var(--gg-bg-card);
	border: 1px solid var(--gg-border);
	border-radius: var(--gg-radius);
	padding: 20px 24px;
	min-width: 150px;
	flex: 1;
	box-shadow: var(--gg-shadow);
}
.gg-stat .gg-icon { color: var(--gg-amber-text); width: 20px; height: 20px; margin-bottom: 10px; }
.gg-stat strong { display: block; font-size: 28px; line-height: 1.1; }
.gg-stat span { font-size: 11.5px; color: var(--gg-muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Tables ---------- */
.gg-table-wrap { overflow-x: auto; background: var(--gg-bg-card); border: 1px solid var(--gg-border); border-radius: var(--gg-radius); box-shadow: var(--gg-shadow); }
.gg-table { width: 100%; border-collapse: collapse; }
.gg-table th {
	text-align: left; padding: 13px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
	color: var(--gg-muted); border-bottom: 1px solid var(--gg-border); white-space: nowrap;
}
.gg-table td { padding: 13px 16px; border-bottom: 1px solid var(--gg-border); font-size: 13.5px; vertical-align: middle; }
.gg-table tbody tr:last-child td { border-bottom: none; }
.gg-table tbody tr:hover { background: rgba(226,174,57,.05); }
.gg-table input[type="text"] { width: 96px; font-size: 12px; padding: 6px 8px; border: 1px solid var(--gg-border); border-radius: 6px; font-family: inherit; }
.gg-table select { font-size: 12.5px; padding: 6px 8px; border: 1px solid var(--gg-border); border-radius: 6px; font-family: inherit; background: #fff; }

.gg-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #eee; }
.gg-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gg-badge-processing, .gg-badge-pending, .gg-badge-open, .gg-badge-on-hold { background: #fbe6b8; color: #74500a; }
.gg-badge-completed, .gg-badge-closed { background: #cdecd0; color: #1f6b28; }
.gg-badge-cancelled, .gg-badge-failed, .gg-badge-refunded { background: #f8cdd2; color: #8f1f2c; }

/* ---------- Addresses ---------- */
.gg-address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gg-address-form, .gg-ticket-new {
	background: var(--gg-bg-card); border: 1px solid var(--gg-border); border-radius: var(--gg-radius); padding: 22px;
	box-shadow: var(--gg-shadow);
}
.gg-address-form h3 { margin: 0 0 16px; font-size: 15px; }
.gg-address-form label { display: block; font-size: 11.5px; margin-bottom: 12px; color: var(--gg-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.gg-address-form input, .gg-ticket-new input, .gg-ticket-new textarea, .gg-ticket-reply textarea {
	width: 100%; padding: 10px 12px; margin-top: 5px; border: 1px solid var(--gg-border); border-radius: 7px;
	font-size: 13.5px; font-family: inherit; color: var(--gg-text);
}
.gg-address-form input:focus, .gg-ticket-new input:focus, .gg-ticket-new textarea:focus, .gg-ticket-reply textarea:focus {
	outline: none; border-color: var(--gg-gold); box-shadow: 0 0 0 3px rgba(226,174,57,.15);
}
.gg-ticket-new textarea, .gg-ticket-reply textarea { min-height: 80px; resize: vertical; }

.gg-btn-primary, .gg-order-save {
	background: var(--gg-ink); color: #fff; border: none; padding: 10px 20px; border-radius: 7px; cursor: pointer;
	font-size: 13px; font-weight: 700; font-family: inherit; letter-spacing: .01em; transition: background .15s ease, opacity .15s ease;
	display: inline-flex; align-items: center; gap: 6px;
}
.gg-btn-primary:hover, .gg-order-save:hover { background: var(--gg-gold-dark); }
.gg-btn-primary[disabled], .gg-order-save[disabled] { opacity: .6; cursor: default; }
.gg-btn-ghost {
	background: none; border: 1px solid var(--gg-border); border-radius: 7px; padding: 9px 16px; cursor: pointer;
	font-size: 12.5px; font-weight: 600; font-family: inherit; color: var(--gg-text); display: inline-flex; align-items: center; gap: 6px;
	transition: border-color .15s ease, color .15s ease;
}
.gg-btn-ghost:hover { border-color: #c0392b; color: #a3293a; }
.gg-btn-ghost .gg-icon { width: 13px; height: 13px; }

.gg-form-msg { display: block; margin-top: 10px; font-size: 12.5px; color: #2b7a35; min-height: 16px; }
.gg-form-msg.gg-msg-error { color: #a3293a; }

/* ---------- Wishlist ---------- */
.gg-wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.gg-wishlist-item {
	background: var(--gg-bg-card); border: 1px solid var(--gg-border); border-radius: var(--gg-radius);
	padding: 14px; text-align: center; box-shadow: var(--gg-shadow); transition: transform .15s ease;
}
.gg-wishlist-item:hover { transform: translateY(-2px); }
.gg-wishlist-item a { text-decoration: none; color: var(--gg-text); display: block; }
.gg-wishlist-item img { width: 100%; border-radius: 8px; aspect-ratio: 1; object-fit: cover; }
.gg-wishlist-item span { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; }
.gg-price { display: block; margin-top: 4px; font-size: 13px; color: var(--gg-amber-text); font-weight: 700; }
.gg-price .amount { color: inherit; }
.gg-wishlist-remove { margin-top: 10px; width: 100%; justify-content: center; }

.gg-wishlist-btn {
	background: rgba(255,255,255,.9); border: 1px solid var(--gg-border); border-radius: 50%;
	width: 36px; height: 36px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
	color: var(--gg-text); transition: color .15s ease, border-color .15s ease, transform .1s ease;
}
.gg-wishlist-btn:hover { transform: scale(1.08); }
.gg-wishlist-btn .gg-icon { width: 17px; height: 17px; }
.gg-wishlist-btn.gg-wishlist-saved { color: #c0392b; border-color: #c0392b; }
.gg-wishlist-btn.gg-wishlist-saved .gg-icon { fill: currentColor; }

/* ---------- Empty states ---------- */
.gg-empty {
	background: var(--gg-bg-card); border: 1px dashed var(--gg-border); border-radius: var(--gg-radius);
	padding: 40px 24px; text-align: center; color: var(--gg-muted); font-size: 14px;
}
.gg-empty a { color: var(--gg-amber-text); font-weight: 600; }

/* ---------- Products ---------- */
#gg-product-search {
	width: 100%; max-width: 360px; padding: 10px 14px; margin-bottom: 16px; border: 1px solid var(--gg-border);
	border-radius: 7px; font-size: 13.5px; font-family: inherit; display: block;
}
#gg-product-search:focus { outline: none; border-color: var(--gg-gold); box-shadow: 0 0 0 3px rgba(226,174,57,.15); }
.gg-product-cell { display: flex; align-items: center; gap: 12px; }
.gg-product-thumb { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 7px; overflow: hidden; background: var(--gg-bg-page); border: 1px solid var(--gg-border); }
.gg-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gg-sku { font-size: 11.5px; color: var(--gg-muted); margin-top: 2px; }
.gg-product-price { width: 90px; }
.gg-doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gg-doc-actions .gg-btn-ghost { white-space: nowrap; }
.gg-doc-actions .gg-btn-ghost:hover { border-color: var(--gg-gold-dark); color: var(--gg-amber-text); }

.gg-pagination { display: flex; align-items: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.gg-page-btn {
	min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--gg-border); border-radius: 7px;
	background: #fff; color: var(--gg-text) !important; font-family: inherit; font-size: 13px; font-weight: 600;
	cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.gg-page-btn:hover:not(:disabled):not(.active) { border-color: var(--gg-gold-dark); background: rgba(226,174,57,.08); }
.gg-page-btn.active { background: var(--gg-ink); color: #fff !important; border-color: var(--gg-ink); cursor: default; }
.gg-page-btn:disabled { opacity: .4; cursor: default; }
.gg-page-ellipsis { color: var(--gg-muted); padding: 0 4px; font-size: 13px; }

/* ---------- Support tickets ---------- */
.gg-ticket-list { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.gg-ticket { background: var(--gg-bg-card); border: 1px solid var(--gg-border); border-radius: var(--gg-radius); padding: 20px; box-shadow: var(--gg-shadow); }
.gg-ticket-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.gg-ticket-head strong { font-size: 14.5px; }
.gg-ticket-from { font-size: 12px; color: var(--gg-muted); }
.gg-ticket-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.gg-ticket-msg { padding: 10px 14px; border-radius: 10px; background: var(--gg-bg-page); max-width: 78%; }
.gg-ticket-msg-head { display: flex; align-items: center; gap: 7px; }
.gg-ticket-msg-head strong { font-size: 12.5px; }
.gg-staff-tag { font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; background: var(--gg-gold); color: var(--gg-ink); padding: 2px 7px; border-radius: 999px; font-weight: 700; }
.gg-ticket-msg p { margin: 5px 0 3px; font-size: 13.5px; line-height: 1.5; }
.gg-ticket-msg time { font-size: 10.5px; color: var(--gg-muted); }
.gg-msg-staff { background: #fbf4e3; align-self: flex-start; }
.gg-msg-customer { background: #eef0f3; align-self: flex-end; }
.gg-ticket-actions { display: flex; gap: 10px; margin-top: 10px; }

/* ---------- Full-screen staff template (no theme header/footer) ---------- */
body.gg-dash-fullscreen {
	margin: 0;
	background: var(--gg-ink, #18191b);
	min-height: 100vh;
}
body.gg-dash-fullscreen .gg-dash {
	max-width: none;
	width: 100%;
	min-height: 100vh;
	margin: 0;
	padding: 28px 36px;
	background: var(--gg-bg-page);
}
body.gg-dash-fullscreen .gg-dash-sidebar {
	position: sticky;
	top: 28px;
	align-self: flex-start;
	min-height: calc(100vh - 56px);
}

@media (max-width: 760px) {
	.gg-dash { flex-direction: column; margin: 20px auto; gap: 16px; }
	.gg-dash-sidebar,
	body.gg-dash-fullscreen .gg-dash-sidebar {
		flex: 1; position: static; width: 100%; min-height: auto; top: auto;
	}
	.gg-dash-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
	.gg-dash-nav a { flex: 0 0 auto; white-space: nowrap; }
	.gg-dash-logout { margin-top: 0 !important; border-top: none !important; }
	.gg-address-grid { grid-template-columns: 1fr; }
	.gg-ticket-msg { max-width: 100%; }
	.gg-ticket-actions { flex-wrap: wrap; }
	.gg-doc-actions { flex-direction: column; align-items: stretch; }
	.gg-doc-actions .gg-btn-ghost { justify-content: center; }

	body.gg-dash-fullscreen .gg-dash { padding: 16px; }
	.gg-dash-tab h2 { font-size: 19px; }
	.gg-stat { min-width: 0; flex: 1 1 calc(50% - 8px); }
	#gg-product-search { max-width: none; }
}

@media (max-width: 420px) {
	.gg-stat { flex: 1 1 100%; }
}

/* ---------- Footer account column (injected 4th column) ---------- */
.gg-footer-account-col {
	flex: 1 1 0%;
	min-width: 0;
}
.gg-footer-account-links { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; align-items: flex-start; }
.gg-footer-account-btn {
	display: inline-flex; align-items: center; justify-content: center;
	background: #e2ae39; color: #18191b !important; padding: 9px 20px; border-radius: 7px;
	font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; text-decoration: none !important;
}
.gg-footer-account-btn-ghost {
	background: none; border: 1px solid rgba(255,255,255,.35); color: inherit !important;
}

/* ---------- Branded login page ---------- */
body.gg-login-body { display: flex; align-items: center; justify-content: center; padding: 24px; }
.gg-login-page { width: 100%; display: flex; align-items: center; justify-content: center; }
.gg-login-card {
	width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 44px 40px;
	text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); font-family: 'Syne', sans-serif;
}
.gg-login-logo { display: inline-block; margin-bottom: 22px; }
.gg-login-logo img { max-height: 56px; width: auto; }
.gg-login-card h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: #18191b; }
.gg-login-subtitle { margin: 0 0 28px; font-size: 13.5px; color: #67666b; }
.gg-login-card form p { margin-bottom: 16px; text-align: left; }
.gg-login-card label { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: #67666b; font-weight: 600; margin-bottom: 6px; }
.gg-login-card input[type="text"],
.gg-login-card input[type="password"] {
	width: 100%; padding: 11px 14px; border: 1px solid #ece6da; border-radius: 8px; font-size: 14px;
	font-family: inherit; color: #18191b; background: #fff;
}
.gg-login-card input[type="text"]:focus,
.gg-login-card input[type="password"]:focus { outline: none; border-color: #e2ae39; box-shadow: 0 0 0 3px rgba(226,174,57,.18); }
.gg-login-card p.login-remember { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #67666b; }
.gg-login-card p.login-remember input { margin: 0; }
.gg-login-card p.login-submit { margin-top: 22px; margin-bottom: 0; }
.gg-login-card input#wp-submit {
	width: 100%; background: #18191b; color: #fff; border: none; padding: 13px 0; border-radius: 8px;
	font-family: inherit; font-weight: 700; font-size: 14px; letter-spacing: .02em; cursor: pointer; transition: background .15s ease;
}
.gg-login-card input#wp-submit:hover { background: #c89325; }
.gg-login-links { margin-top: 20px; font-size: 12.5px; color: #67666b; }
.gg-login-links a { color: #8a5a0f; text-decoration: none; font-weight: 600; }
.gg-login-links span { margin: 0 6px; }
.gg-login-back { display: inline-block; margin-top: 24px; font-size: 12.5px; color: #67666b; text-decoration: none; }
.gg-login-back:hover { color: #18191b; }

@media (max-width: 480px) {
	.gg-login-card { padding: 32px 24px; }
}
