
:root {
	--bg-dark: #0b0908;
	--glass-surface: #15110d;
	--glass-surface-lighter: #1b1611;
	--glass-border: rgba(201, 162, 39, 0.16);
	--glass-hover: rgba(201, 162, 39, 0.06);
	--text-main: #ece4d3;
	--text-dim: #948c7c;
	--text-muted: #6b6459;
	--accent: #ab8226;
	--accent-hover: #e0b84a;
	--accent-glow: 0 0 20px rgba(171, 130, 38, 0.25);
	--success: #2f9e6a;
	--danger: #b8402f;
	--warning: #ab8226;
	--radius: 4px;
	--anim: all 0.2s ease-in-out;
}
 
.guild-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.guild-actions form { margin: 0; }
 
.guilds-wrapper {
	font-family: "Inter", sans-serif;
	color: var(--text-main);
	max-width: 1100px;
	margin: 0 auto;
	line-height: 1.6;
}
.guilds-wrapper h1, .guilds-wrapper h2, .guilds-wrapper h3 { font-family: "Cinzel", serif; }
 
.guilds-wrapper a { text-decoration: none; color: var(--accent-hover); transition: var(--anim); }
.guilds-wrapper a:hover { color: #f4d97a; }
 
.g-panel {
	background: var(--glass-surface);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	padding: 1.5rem;
	margin-bottom: 24px;
}
 
.g-header {
	display: flex; justify-content: space-between; align-items: center;
	margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--glass-border);
	flex-wrap: wrap; gap: 10px;
}
.g-title { font-size: 1.2rem; font-weight: 600; color: var(--text-main); margin: 0; display: flex; align-items: center; gap: 10px; }
 
.g-input {
	background: var(--bg-dark); border: 1px solid var(--glass-border);
	color: var(--text-main); padding: 10px 14px; border-radius: 3px;
	width: 100%; font-family: inherit; transition: var(--anim); box-sizing: border-box;
}
.g-input:focus { outline: none; border-color: var(--accent-hover); box-shadow: 0 0 0 3px rgba(201,162,39,0.15); }
 
.g-btn {
	background: var(--accent); color: #14100a; border: none; padding: 10px 20px;
	border-radius: 3px; font-weight: 700; font-family: "Cinzel", serif; letter-spacing: 0.3px;
	cursor: pointer; transition: var(--anim);
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-size: 0.85rem; text-decoration: none;
}
.g-btn:hover { background: var(--accent-hover); color: #14100a; }
.g-btn.btn-danger { background: rgba(184, 64, 47, 0.15); color: #d98a78; border: 1px solid rgba(184, 64, 47, 0.3); }
.g-btn.btn-danger:hover { background: rgba(184, 64, 47, 0.3); color: #fff; }
.g-btn.btn-outline { background: transparent; border: 1px solid var(--glass-border); color: var(--text-dim); }
.g-btn.btn-outline:hover { border-color: var(--text-main); color: var(--text-main); }
 
.g-table { width: 100%; border-collapse: collapse; }
.g-table th { text-align: left; color: var(--text-dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 12px; border-bottom: 1px solid var(--glass-border); }
.g-table td { padding: 14px 12px; border-bottom: 1px solid var(--glass-border); color: var(--text-main); }
.g-table tr:last-child td { border-bottom: none; }
.g-table tr:hover td { background: var(--glass-hover); }
 
.g-logo-cell { width: 80px; text-align: center; }
.g-logo-img { width: 56px; height: 56px; object-fit: contain; border-radius: 3px; }
.g-name-link { font-size: 1.05rem; font-weight: 600; display: block; color: var(--text-main); }
.g-desc { font-size: 0.85rem; color: var(--text-dim); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
 
.gv-header-card { text-align: center; padding: 2rem; position: relative; overflow: hidden; }
.gv-header-card::before { content: ""; position: absolute; top:0; left:0; width: 100%; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.gv-logo-large { width: 90px; height: 90px; border-radius: 4px; margin-bottom: 1rem; border: 1px solid var(--glass-border); padding: 5px; background: var(--bg-dark); }
.gv-title { font-size: 1.8rem; font-weight: 600; margin: 0; }
.gv-meta { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1rem; }
 
.g-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.g-stat-box { background: var(--glass-surface-lighter); padding: 15px; border-radius: var(--radius); text-align: center; border: 1px solid var(--glass-border); }
.g-stat-val { font-size: 1.4rem; font-weight: 700; display: block; font-family: "Cinzel", serif; }
.g-stat-lbl { font-size: 0.7rem; text-transform: uppercase; color: var(--text-dim); margin-top: 4px; letter-spacing: 0.05em; }
 
.rank-header { background: rgba(201, 162, 39, 0.1); color: var(--accent-hover); font-weight: 700; padding: 9px 14px; border-radius: 3px; margin: 15px 0 5px 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.member-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--glass-border); transition: var(--anim); }
.member-row:hover { background: var(--glass-hover); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.dot-on { background: var(--success); }
.dot-off { background: var(--text-muted); opacity: 0.5; }
.lvl-tag { font-size: 0.78rem; background: var(--bg-dark); padding: 1px 7px; border-radius: 3px; }
 
.msg-box { padding: 1rem; border-radius: var(--radius); border-left: 3px solid transparent; margin-bottom: 20px; background: var(--glass-surface-lighter); }
.msg-error { border-color: var(--danger); color: #d98a78; }
.msg-success { border-color: var(--success); color: #6ee7b7; }
.msg-list { margin: 5px 0 0 20px; padding: 0; }
 
.actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
 
@media(max-width: 768px) {
	.g-header { flex-direction: column; align-items: flex-start; gap: 15px; }
	.g-logo-cell { display: none; }
}
