/* =============================================================================
   Profile Page — CSS
   ============================================================================= */

/* Minimal — page uses Tailwind classes from output.css */

/* Avatar component CSS moved to assets/css/user-avatar.css (enqueued globally) */

/* ── Header edit button (camera icon overlay) ─────────────────────────────── */

.inv-avatar-edit-btn {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f59e0b;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    z-index: 10;
    border: 2px solid #080d1a;
    transition: opacity 0.15s;
}
.inv-avatar-edit-btn:hover {
    opacity: 0.85;
}

/* Hidden file input — must remain accessible for iOS file picker */
.inv-avatar-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ── Customize Avatar section ─────────────────────────────────────────────── */

/* Large preview wrap in the edit section */
.inv-avatar-preview-wrap {
    position: relative;
    display: inline-block;
}

/* "Change Photo" button */
.inv-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #f59e0b;
    color: #000;
    cursor: pointer;
    transition: opacity 0.15s;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}
.inv-upload-btn:hover {
    opacity: 0.85;
}

/* "Remove photo" link */
.inv-remove-btn {
    font-size: 0.65rem;
    color: #6b7494;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.15s;
}
.inv-remove-btn:hover {
    color: #ef4444;
}

/* Flash message */
.inv-avatar-flash {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 0.4rem;
    text-align: center;
    width: 100%;
}
.inv-avatar-flash.is-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.inv-avatar-flash.is-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ── Frame selector grid ──────────────────────────────────────────────────── */

.inv-frame-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.5rem;
}

.inv-frame-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.25rem;
    border-radius: 0.6rem;
    border: 2px solid rgba(255, 255, 255, 0.06);
    background: #111827;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.inv-frame-option:hover {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.05);
}
.inv-frame-option.is-active {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.inv-frame-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.inv-frame-label {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #c8cce8;
    text-align: center;
    word-break: break-word;
    line-height: 1.2;
}

/* ── Knowledge Check section ─────────────────────────────────────────────── */

/* Verified Strategist badge pill */
.inv-kc-verified-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	font-size: 0.58rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #22c55e;
	border: 1px solid rgba(34, 197, 94, 0.3);
	background: rgba(34, 197, 94, 0.08);
	white-space: nowrap;
}

/* Shared progress bar track */
.inv-kc-bar-track {
	height: 6px;
	border-radius: 3px;
	background: #1f2937;
	overflow: hidden;
}

/* Question-progress fill (amber) */
.inv-kc-bar-fill {
	height: 100%;
	border-radius: 3px;
	background: #f59e0b;
	transition: width 0.4s ease;
}

/* Cooldown-elapsed fill (gray, lower visual priority) */
.inv-kc-cooldown-bar-fill {
	height: 100%;
	border-radius: 3px;
	background: #374151;
	transition: width 1s linear;
}

/* =============================================================================
   Social Layer — Likes, Follows, Stamps (v2.8.0)
   ============================================================================= */

/* ── Profile header social stats row ─────────────────────────────────────── */

.inv-profile-social-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    margin-top: 0.5rem;
}

.inv-social-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.inv-social-stat__icon {
    font-size: 0.85rem;
    line-height: 1;
}

.inv-social-stat__count {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f0f4ff;
    font-family: 'Rajdhani', sans-serif;
}

.inv-social-stat__label {
    font-size: 0.65rem;
    color: #6b7494;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.inv-social-stat__sep {
    color: #3d4560;
    font-size: 0.75rem;
}

/* ── Like button ─────────────────────────────────────────────────────────── */

.inv-profile-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 36px;
    padding: 0 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #c8cce8;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
}

.inv-profile-like-btn:hover:not(:disabled) {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.06);
    color: #f87171;
    transform: translateY(-1px);
}

.inv-profile-like-btn.is-liked {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
}

.inv-profile-like-btn.is-liked .inv-like-icon {
    animation: inv-heart-pop 0.25s ease;
}

.inv-profile-like-btn.is-guest,
.inv-profile-like-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

@keyframes inv-heart-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.inv-like-icon {
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
    transition: transform 0.15s;
}

/* ── Follow button ───────────────────────────────────────────────────────── */

.inv-profile-follow-btn {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 1.1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(245, 158, 11, 0.5);
    background: transparent;
    color: #f59e0b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.1s;
}

.inv-profile-follow-btn:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.1);
    transform: translateY(-1px);
}

.inv-profile-follow-btn.is-following {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #d97706;
}

/* ── Stamp CTA button ────────────────────────────────────────────────────── */

.inv-profile-stamp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 36px;
    padding: 0 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #c8cce8;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.inv-profile-stamp-btn:hover {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.05);
    transform: translateY(-1px);
}

.inv-profile-stamp-btn.has-stamp {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.07);
    color: #f59e0b;
}

/* ── Stamp count bar ─────────────────────────────────────────────────────── */

.inv-stamp-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
}

.inv-stamp-count-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
}

.inv-stamp-count-item__count {
    font-weight: 700;
    color: #f0f4ff;
    font-family: 'Rajdhani', sans-serif;
}

/* ── Stamp modal ─────────────────────────────────────────────────────────── */

.inv-stamp-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.inv-stamp-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 13, 26, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.inv-stamp-modal__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: inv-modal-in 0.2s ease;
}

@keyframes inv-modal-in {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.inv-stamp-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inv-stamp-modal__title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f0f4ff;
    margin: 0;
}

.inv-stamp-modal__close {
    background: none;
    border: none;
    color: #6b7494;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.15s;
    border-radius: 0.25rem;
}

.inv-stamp-modal__close:hover {
    color: #ef4444;
}

.inv-stamp-modal__body {
    padding: 1rem 1.25rem;
}

.inv-stamp-modal__subtitle {
    font-size: 0.72rem;
    color: #6b7494;
    margin: 0 0 0.85rem;
    line-height: 1.5;
}

.inv-stamp-modal__error {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.inv-stamp-modal__footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.inv-stamp-modal__cancel {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #6b7494;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.45rem 1rem;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.inv-stamp-modal__cancel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #c8cce8;
}

/* ── Stamp picker grid ───────────────────────────────────────────────────── */

.inv-stamp-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.inv-stamp-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.7rem 0.4rem;
    border-radius: 0.6rem;
    border: 2px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    text-align: center;
}

.inv-stamp-option:hover {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.04);
    transform: translateY(-2px);
}

.inv-stamp-option.is-selected {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3);
}

.inv-stamp-option.is-premium {
    background: rgba(245, 158, 11, 0.02);
}

.inv-stamp-option__emoji {
    font-size: 1.5rem;
    line-height: 1;
    display: block;
}

.inv-stamp-option__label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #c8cce8;
}

.inv-stamp-option__cost {
    font-size: 0.58rem;
    font-weight: 600;
    margin-top: 0.1rem;
}

.inv-stamp-option__cost-free {
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.inv-stamp-option__cost-premium {
    color: #f59e0b;
}

/* ── Who Stamped Me section ──────────────────────────────────────────────── */

.inv-who-stamped {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.inv-who-stamped__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.6rem;
    flex-wrap: wrap;
}

.inv-who-stamped__user {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    color: #c8cce8;
    transition: color 0.15s;
}

.inv-who-stamped__user:hover {
    color: #f59e0b;
}

.inv-who-stamped__username {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inv-who-stamped__stamp {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #f0f4ff;
    font-weight: 600;
    white-space: nowrap;
}

.inv-who-stamped__expires {
    font-size: 0.6rem;
    color: #3d4560;
    white-space: nowrap;
    margin-left: auto;
}

/* ── Toast notification ─────────────────────────────────────────────────── */

.inv-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: #111827;
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #f0f4ff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 0.6rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    white-space: nowrap;
}

.inv-toast.is-success {
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.inv-toast.is-error {
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.inv-toast.is-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(0.5rem);
}

/* =============================================================================
   Skins Section — Visual Previews (Fix 5)
   ============================================================================= */

/* Card container */
.inv-skin-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.15s, transform 0.1s;
}

.inv-skin-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
    transform: translateY(-2px);
}

.inv-skin-card--active {
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

/* Generic preview container */
.inv-skin-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 80px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Avatar frame preview */
.inv-skin-preview--frame {
    min-height: 96px;
}

.inv-skin-preview__avatar-bg {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inv-skin-preview__avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.inv-skin-preview__avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a2540, #0d1424);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #6b7494;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.inv-skin-preview__frame-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    pointer-events: none;
    z-index: 2;
}

/* Banner preview */
.inv-skin-preview--banner {
    min-height: 64px;
    padding: 0;
}

.inv-skin-preview__banner-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* Theme preview: colored swatch */
.inv-skin-preview--theme {
    min-height: 56px;
    border-radius: 0;
    flex-direction: column;
    gap: 0.25rem;
}

.inv-skin-preview--theme.inv-theme-swatch--dark {
    background: linear-gradient(135deg, #080d1a, #111827);
}

.inv-skin-preview--theme.inv-theme-swatch--gold {
    background: linear-gradient(135deg, #78350f, #d97706);
}

.inv-skin-preview--theme.inv-theme-swatch--blood {
    background: linear-gradient(135deg, #450a0a, #dc2626);
}

.inv-skin-preview--theme.inv-theme-swatch--invblue {
    background: linear-gradient(135deg, #0c1a6b, #3b82f6);
}

.inv-skin-preview__theme-label {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}

/* Generic fallback */
.inv-skin-preview--generic {
    background: rgba(255, 255, 255, 0.02);
}

/* Equipped badge */
.inv-skin-equipped-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* =============================================================================
   Server / Kingdom Name — Inline Edit (Fix 6)
   ============================================================================= */

/* Edit icon button (pencil) */
.inv-server-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.75rem;
    line-height: 1;
    vertical-align: middle;
    opacity: 0.6;
    transition: opacity 0.15s;
    display: inline-block;
    min-width: 32px;
    min-height: 32px;
    text-align: center;
}

.inv-server-edit-btn:hover {
    opacity: 1;
}

/* "Add server" ghost button */
.inv-server-add-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #3d4560;
    font-size: 0.72rem;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: color 0.15s, text-decoration-color 0.15s;
}

.inv-server-add-btn:hover {
    color: #6b7494;
    text-decoration-color: #6b7494;
}

/* Edit field wrapper */
.inv-server-edit-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

/* Text input */
.inv-server-name-input {
    height: 30px;
    padding: 0 0.6rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.05);
    color: #f0f4ff;
    font-size: 0.72rem;
    font-family: inherit;
    outline: none;
    min-width: 160px;
    max-width: 240px;
    transition: border-color 0.15s;
}

.inv-server-name-input:focus {
    border-color: #f59e0b;
}

.inv-server-name-input::placeholder {
    color: #3d4560;
}

/* Save button */
.inv-server-save-btn {
    height: 30px;
    padding: 0 0.75rem;
    border-radius: 0.4rem;
    border: none;
    background: #f59e0b;
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: opacity 0.15s;
    white-space: nowrap;
}

.inv-server-save-btn:hover {
    opacity: 0.85;
}

/* Cancel button */
.inv-server-cancel-btn {
    height: 30px;
    padding: 0 0.6rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: none;
    color: #6b7494;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.inv-server-cancel-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #c8cce8;
}

/* Flash message below the edit field */
.inv-server-flash {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 0.35rem;
    margin-top: 0.2rem;
    width: 100%;
}

.inv-server-flash.is-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.inv-server-flash.is-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* =============================================================================
   Badge locked state (Fix 4)
   ============================================================================= */

.inv-badge-locked {
    opacity: 0.4;
}

/* =============================================================================
   Path to Warlord — Progress Cards
   ============================================================================= */

.inv-warlord-path {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    transition: border-color 0.15s;
}

.inv-warlord-path:hover {
    border-color: rgba(168, 85, 247, 0.3);
}

.inv-warlord-path--done {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.03);
}

.inv-warlord-path__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.inv-warlord-path__bar {
    height: 6px;
    border-radius: 3px;
    background: #1f2937;
    overflow: hidden;
}

.inv-warlord-path__fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #a855f7, #c084fc);
    transition: width 0.6s ease;
}

.inv-warlord-path__fill--glory {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* =============================================================================
   Profile Theme Overrides — applied via .inv-theme--{slug} on #inv-profile-page
   ============================================================================= */

/* ── Gold theme ──────────────────────────────────────────────────────────── */
#inv-profile-page.inv-theme--gold {
    --profile-accent: #d97706;
    --profile-bg: #0e0a04;
    --profile-card: #1a1005;
    --profile-border: rgba(217, 119, 6, 0.2);
}
#inv-profile-page.inv-theme--gold .bg-bg-siege {
    background-color: var(--profile-bg);
}
#inv-profile-page.inv-theme--gold .bg-bg-siege-secondary,
#inv-profile-page.inv-theme--gold .bg-\[#0d1424\] {
    background-color: var(--profile-card) !important;
}
#inv-profile-page.inv-theme--gold .border-white\/5 {
    border-color: var(--profile-border) !important;
}
#inv-profile-page.inv-theme--gold .text-amber-flame,
#inv-profile-page.inv-theme--gold .bg-amber-flame {
    --tw-text-opacity: 1;
    color: var(--profile-accent);
}
#inv-profile-page.inv-theme--gold .bg-amber-flame {
    background-color: var(--profile-accent) !important;
    color:white;
}

/* ── Blood theme ─────────────────────────────────────────────────────────── */
#inv-profile-page.inv-theme--blood {
    --profile-accent: #dc2626;
    --profile-bg: #0d0404;
    --profile-card: #180808;
    --profile-border: rgba(220, 38, 38, 0.2);
}
#inv-profile-page.inv-theme--blood .bg-bg-siege {
    background-color: var(--profile-bg);
}
#inv-profile-page.inv-theme--blood .bg-bg-siege-secondary,
#inv-profile-page.inv-theme--blood .bg-\[#0d1424\] {
    background-color: var(--profile-card) !important;
}
#inv-profile-page.inv-theme--blood .border-white\/5 {
    border-color: var(--profile-border) !important;
}
#inv-profile-page.inv-theme--blood .text-amber-flame {
    color: var(--profile-accent) !important;
}
#inv-profile-page.inv-theme--blood .bg-amber-flame {
    background-color: var(--profile-accent) !important;
}
#inv-profile-page.inv-theme--blood .border-amber-flame {
    border-color: var(--profile-accent) !important;
}

/* ── Invictus Blue theme ─────────────────────────────────────────────────── */
#inv-profile-page.inv-theme--invblue {
    --profile-accent: #3b82f6;
    --profile-bg: #03060e;
    --profile-card: #060d1c;
    --profile-border: rgba(59, 130, 246, 0.2);
}
#inv-profile-page.inv-theme--invblue .bg-bg-siege {
    background-color: var(--profile-bg);
}
#inv-profile-page.inv-theme--invblue .bg-bg-siege-secondary,
#inv-profile-page.inv-theme--invblue .bg-\[#0d1424\] {
    background-color: var(--profile-card) !important;
}
#inv-profile-page.inv-theme--invblue .border-white\/5 {
    border-color: var(--profile-border) !important;
}
#inv-profile-page.inv-theme--invblue .text-amber-flame {
    color: var(--profile-accent) !important;
}
#inv-profile-page.inv-theme--invblue .bg-amber-flame {
    background-color: var(--profile-accent) !important;
}
#inv-profile-page.inv-theme--invblue .border-amber-flame {
    border-color: var(--profile-accent) !important;
}

/* ── Dark theme (default — no overrides needed) ──────────────────────────── */
/* .inv-theme--dark is the default palette, no CSS changes required */

/* ── Skin card — cursor + hover ──────────────────────────────────────────── */
.inv-skin-card {
    cursor: pointer;
}

/* =============================================================================
   Profile Header — Ambient theme gradient
   ============================================================================= */

/* Needs position:relative so the ::before pseudo-element can be absolute */
.inv-profile-header {
    position: relative;
    overflow: hidden;
}

/* Lift content above the gradient layer */
.inv-profile-header > * {
    position: relative;
    z-index: 1;
}

/* Gradient canvas — painted by theme classes */
.inv-profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /* Covers top ~60% of the header; avatar/text sit in the lower half */
    height: 60%;
    pointer-events: none;
    z-index: 0;
}

/* ── Gold ──────────────────────────────────────────────────────────────────── */
#inv-profile-page.inv-theme--gold .inv-profile-header {
    background-color: #0e0b04 !important;
    border-bottom-color: rgba(217, 119, 6, 0.25) !important;
}
#inv-profile-page.inv-theme--gold .inv-profile-header::before {
    background: radial-gradient(
        ellipse 140% 120% at 50% -20%,
        rgba(217, 119, 6, 0.45) 0%,
        transparent 65%
    );
}
#inv-profile-page.inv-theme--gold .inv-profile-header h1 {
    text-shadow: 0 0 24px rgba(217, 119, 6, 0.55);
}

/* ── Blood ─────────────────────────────────────────────────────────────────── */
#inv-profile-page.inv-theme--blood .inv-profile-header {
    background-color: #0d0505 !important;
    border-bottom-color: rgba(220, 38, 38, 0.25) !important;
}
#inv-profile-page.inv-theme--blood .inv-profile-header::before {
    background: radial-gradient(
        ellipse 140% 120% at 50% -20%,
        rgba(220, 38, 38, 0.45) 0%,
        transparent 65%
    );
}
#inv-profile-page.inv-theme--blood .inv-profile-header h1 {
    text-shadow: 0 0 24px rgba(220, 38, 38, 0.55);
}

/* ── Invictus Blue ─────────────────────────────────────────────────────────── */
#inv-profile-page.inv-theme--invblue .inv-profile-header {
    background-color: #05080f !important;
    border-bottom-color: rgba(59, 130, 246, 0.25) !important;
}
#inv-profile-page.inv-theme--invblue .inv-profile-header::before {
    background: radial-gradient(
        ellipse 140% 120% at 50% -20%,
        rgba(59, 130, 246, 0.45) 0%,
        transparent 65%
    );
}
#inv-profile-page.inv-theme--invblue .inv-profile-header h1 {
    text-shadow: 0 0 24px rgba(59, 130, 246, 0.55);
}

/* ── Message button ─────────────────────────────────────────────────────────── */
.inv-profile-message-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 34px;
    padding: 0 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #c8cce8;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}

.inv-profile-message-btn:hover {
    background: rgba(245,158,11,0.1);
    border-color: rgba(245,158,11,0.35);
    color: #f59e0b;
    text-decoration: none;
}
