/* public/css/profile.css */

.profile-page {
    max-width: 1240px;
    margin: clamp(32px, 7vw, 72px) auto;
    padding: 0 clamp(14px, 3vw, 24px) clamp(56px, 8vw, 92px);
    display: grid;
    gap: clamp(24px, 4vw, 36px);
}

.profile-hero {
    position: relative;
    display: grid;
    gap: clamp(18px, 3vw, 28px);
    padding: clamp(18px, 3.2vw, 30px);
    background: linear-gradient(135deg, rgba(16, 28, 68, 0.88), rgba(8, 14, 36, 0.94));
    border: 1px solid rgba(116, 243, 255, 0.16);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.profile-hero::before {
    content: "";
    position: absolute;
    inset: -140px 42% auto -120px;
    height: 280px;
    background: radial-gradient(circle at center, rgba(12, 188, 255, 0.4), rgba(12, 188, 255, 0));
    filter: blur(22px);
    opacity: 0.6;
    pointer-events: none;
    transform: rotate(8deg);
}

.profile-hero__identity {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 28px);
    flex-wrap: wrap;
}

.profile-avatar-wrap {
    position: relative;
    width: clamp(110px, 18vw, 150px);
    height: clamp(110px, 18vw, 150px);
    border-radius: 50%;
    padding: 4px;
    background: radial-gradient(circle at center, rgba(92, 217, 240, 0.35), rgba(92, 217, 240, 0.05));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(116, 243, 255, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.profile-avatar:hover {
    transform: translateY(-2px) scale(1.02);
}

.profile-hero__info {
    flex: 1 1 260px;
    min-width: 220px;
    color: var(--text-0);
}

.profile-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.75rem;
    color: rgba(196, 226, 255, 0.75);
    margin: 0 0 8px;
}

.profile-hero__name {
    margin: 0;
    font-family: Orbitron, Inter, system-ui, sans-serif;
    font-size: clamp(2rem, 1.4rem + 1.8vw, 2.6rem);
    letter-spacing: 0.08em;
    background: linear-gradient(98deg, var(--primary-200), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.profile-hero__meta {
    list-style: none;
    padding: 0;
    margin: clamp(12px, 2vw, 18px) 0 0;
    display: grid;
    gap: 10px;
    color: var(--text-1);
}

.profile-hero__meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.profile-hero__meta i[data-lucide] {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.profile-hero__referral-empty {
    font-weight: 600;
    color: rgba(196, 226, 255, 0.7);
}

.profile-hero__actions {
    margin-top: clamp(16px, 3vw, 24px);
}

.profile-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(116, 243, 255, 0.14);
    color: var(--text-0);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease;
}

.profile-hero__link:hover {
    transform: translateY(-2px);
    background: rgba(116, 243, 255, 0.22);
}

.profile-hero__link i[data-lucide] {
    width: 18px;
    height: 18px;
}

.profile-hero__referral-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.profile-hero__referral-link:hover,
.profile-hero__referral-link:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

.profile-hero__stats {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(12px, 2vw, 18px);
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.profile-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(155deg, rgba(15, 30, 65, 0.9), rgba(9, 17, 44, 0.95));
    border: 1px solid rgba(116, 243, 255, 0.18);
    border-radius: 15px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

.profile-metric__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(116, 243, 255, 0.16);
    color: var(--accent);
}

.profile-metric__icon i[data-lucide] {
    width: 20px;
    height: 20px;
}

.profile-metric__label {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(196, 226, 255, 0.75);
}

.profile-metric__value {
    margin: 2px 0 0;
    font-family: Orbitron, Inter, system-ui, sans-serif;
    font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.4rem);
    color: var(--text-0);
}

.profile-content {
    position: relative;
    z-index: 1;
}

.profile-content__grid {
    display: grid;
    gap: clamp(18px, 3vw, 26px);
    grid-template-columns: 1fr;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.4vw, 22px);
}

.profile-special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
    gap: clamp(12px, 1.6vw, 16px);
}
.profile-special-grid [data-showcase-card][data-showcase-filtered="false"] {
    display: none;
}
.profile-section-tabs {
    position: relative;
    display: block;
}
.profile-special-card {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 14px 14px 18px;
    border-radius: 16px;
    border: 1px dashed rgba(116, 243, 255, 0.4);
    background: linear-gradient(145deg, rgba(8, 18, 44, 0.96), rgba(4, 8, 22, 0.94));
    box-shadow: 0 22px 42px rgba(3, 6, 18, 0.72);
    overflow: hidden;
    text-align: center;
}
.profile-special-card::before {
    content: '';
    position: absolute;
    inset: -45% auto auto -30%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(116, 243, 255, 0.22), transparent 65%);
    pointer-events: none;
    transform: rotate(-8deg);
}
.profile-special-card__corner-stack {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    gap: 4px;
    z-index: 2;
}
.profile-special-card__status {
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(8, 18, 44, 0.78);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.profile-special-card__status--pending {
    border-color: rgba(255, 193, 71, 0.6);
    color: #ffc147;
    background: rgba(255, 193, 71, 0.15);
}
.profile-special-card__status--approved {
    border-color: rgba(83, 255, 173, 0.5);
    color: #6df0b0;
    background: rgba(83, 255, 173, 0.15);
}
.profile-special-card__status--denied {
    border-color: rgba(255, 129, 129, 0.6);
    color: #ff9b9b;
    background: rgba(255, 129, 129, 0.18);
}
.profile-special-card__tag {
    padding: 3px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(3, 7, 20, 0.8);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(196, 226, 255, 0.85);
    text-transform: uppercase;
}
.profile-special-card__art {
    position: relative;
    border-radius: 14px;
    padding: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(20, 40, 82, 0.92), rgba(6, 12, 30, 0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 176px;
    overflow: hidden;
    z-index: 1;
}
.profile-special-card__art::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 12px;
    background: radial-gradient(circle at top, rgba(116, 243, 255, 0.18), transparent 65%);
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}
.profile-special-card__thumb {
    position: relative;
    width: min(100%, 188px);
    height: 132px;
    border-radius: 12px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 7, 20, 0.9);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.42);
    z-index: 2;
}
.profile-special-card__thumb--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(196, 226, 255, 0.65);
    border-style: dashed;
}
.profile-special-card__info {
    display: grid;
    gap: 4px;
    z-index: 2;
}
.profile-special-card__skin {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: #fff;
}
.profile-special-card__submitted {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(196, 226, 255, 0.7);
}
.profile-special-card__content {
    display: grid;
    gap: 10px;
    z-index: 2;
}
.profile-special-card__highlight {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #f3f7ff;
}
.profile-special-card__description {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(196, 226, 255, 0.82);
}
.profile-special-card__description--empty {
    font-style: italic;
    color: rgba(196, 226, 255, 0.4);
}
.profile-special-card__description-edit {
    display: grid;
    gap: 8px;
}
.profile-special-card__description-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(6, 14, 32, 0.9);
    color: #f3f7ff;
    font-size: 0.78rem;
    line-height: 1.4;
    resize: vertical;
    font-family: inherit;
}
.profile-special-card__description-input:focus {
    outline: none;
    border-color: rgba(120, 180, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(120, 180, 255, 0.15);
}
.profile-special-card__description-actions {
    display: flex;
    gap: 8px;
}
.profile-special-card__description-btn {
    padding: 5px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(6, 14, 32, 0.85);
    color: #c4e2ff;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.profile-special-card__description-btn:hover {
    background: rgba(20, 40, 80, 0.9);
    border-color: rgba(255, 255, 255, 0.22);
}
.profile-special-card__description-btn--save {
    background: rgba(40, 90, 160, 0.7);
    border-color: rgba(80, 140, 220, 0.5);
    color: #fff;
}
.profile-special-card__description-btn--save:hover {
    background: rgba(50, 110, 200, 0.8);
}
.profile-special-card__description-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.profile-special-card__edit-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(196, 226, 255, 0.6);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.profile-special-card__edit-toggle:hover {
    color: #c4e2ff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(20, 40, 80, 0.4);
}
.profile-special-card__edit-toggle i,
.profile-special-card__edit-toggle svg {
    width: 13px;
    height: 13px;
}
.profile-special-card__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.profile-special-card__chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 14, 32, 0.85);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(196, 226, 255, 0.9);
}
.profile-special-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.profile-special-card__cta {
    flex: 1 1 136px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-special-card__votes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
}

.profile-special-card__vote {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(196, 226, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.profile-special-card__vote i[data-lucide] {
    width: 14px;
    height: 14px;
}

.profile-special-card__vote:hover {
    border-color: rgba(116, 243, 255, 0.65);
    color: #fff;
}

.profile-special-card__vote.is-selected {
    border-color: rgba(116, 243, 255, 0.85);
    background: rgba(116, 243, 255, 0.18);
    color: #fff;
}

.profile-special-card__vote.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.profile-special-card__vote-count {
    min-width: 1.2em;
    text-align: center;
}
.profile-section-tabs__select {
    width: 100%;
    border: 1px solid rgba(116, 243, 255, 0.35);
    border-radius: 18px;
    background: rgba(5, 12, 28, 0.95);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.profile-section-tabs__select:hover,
.profile-section-tabs__select:focus-visible,
.profile-section-tabs.is-open .profile-section-tabs__select {
    border-color: rgba(116, 243, 255, 0.6);
    box-shadow: 0 12px 32px rgba(3, 9, 20, 0.7);
    background: rgba(7, 18, 40, 0.98);
}

.profile-section-tabs__select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(116, 243, 255, 0.4);
}

.profile-section-tabs__chevron {
    width: 18px;
    height: 18px;
    position: relative;
    flex-shrink: 0;
}

.profile-section-tabs__chevron::before {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-50%, -60%) rotate(45deg);
    transition: transform .2s ease;
}

.profile-section-tabs.is-open .profile-section-tabs__chevron::before {
    transform: translate(-50%, -40%) rotate(-135deg);
}

.profile-section-tabs__options {
    list-style: none;
    margin: 10px 0 0;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(116, 243, 255, 0.18);
    background: #050e22;
    box-shadow: 0 24px 48px rgba(2, 8, 18, 0.85);
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    max-height: 320px;
    overflow-y: auto;
    z-index: inherit;
}
.profile-section-tabs.is-open .profile-section-tabs__options {
    z-index: inherit;
}

.profile-section-tabs__options[hidden] {
    display: none;
}

.profile-section-tab {
    width: 100%;
    border: none;
    background: transparent;
    color: rgba(196, 226, 255, 0.82);
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.profile-section-tab i[data-lucide] {
    width: 18px;
    height: 18px;
}

.profile-section-tab:hover,
.profile-section-tab:focus-visible {
    background: rgba(116, 243, 255, 0.12);
    color: #fff;
}

.profile-section-tab.is-active {
    background: rgba(116, 243, 255, 0.22);
    color: #fff;
}

.profile-panel {
    background: linear-gradient(155deg, rgba(12, 20, 48, 0.92), rgba(8, 14, 36, 0.95));
    border: 1px solid rgba(116, 243, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.44);
    padding: clamp(16px, 2.6vw, 22px);
    color: var(--text-0);
}

.profile-panel--referrals {
    background: linear-gradient(155deg, rgba(10, 18, 44, 0.95), rgba(7, 12, 34, 0.96));
}

.profile-referrals__quota {
    align-self: center;
    padding: 6px 16px;
    border: 1px solid rgba(116, 243, 255, 0.35);
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(234, 248, 255, 0.9);
}

.profile-referral-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(18px, 3vw, 28px);
}

.referral-card {
    border: 1px solid rgba(116, 243, 255, 0.18);
    border-radius: 18px;
    background: rgba(6, 10, 26, 0.85);
    padding: clamp(18px, 3vw, 26px);
    display: grid;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.referral-card__body {
    display: grid;
    gap: 12px;
}

.referral-card__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: rgba(196, 226, 255, 0.7);
}

.referral-card__text {
    margin: 0;
    color: var(--text-1);
    line-height: 1.6;
}

.referral-card__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.referral-card--analytics {
    background: linear-gradient(160deg, rgba(8, 14, 36, 0.95), rgba(3, 6, 18, 0.95));
    border-color: rgba(116, 243, 255, 0.3);
    gap: 18px;
    position: relative;
}

.referral-card__head--analytics h3 {
    margin: 2px 0 0;
}

.referral-analytics__total {
    font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
    font-weight: 700;
    color: #fff;
    text-align: right;
    min-width: 120px;
}

.referral-analytics__filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    align-items: end;
}

.referral-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(196, 226, 255, 0.75);
}

.referral-filter input {
    border: 1px solid rgba(116, 243, 255, 0.3);
    border-radius: 12px;
    background: rgba(4, 8, 22, 0.9);
    color: #fff;
    padding: 9px 10px;
    font-size: 0.95rem;
}

.referral-filter input:focus-visible {
    outline: none;
    border-color: rgba(116, 243, 255, 0.7);
    box-shadow: 0 0 0 2px rgba(116, 243, 255, 0.2);
}

.referral-filter__apply {
    align-self: flex-end;
    margin-top: 18px;
}

.referral-analytics__presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(196, 226, 255, 0.75);
}

.referral-analytics__presets button {
    border: 1px solid rgba(116, 243, 255, 0.35);
    background: transparent;
    color: #f2f7ff;
    padding: 4px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.referral-analytics__presets button:hover,
.referral-analytics__presets button:focus-visible {
    border-color: rgba(116, 243, 255, 0.8);
    background: rgba(116, 243, 255, 0.12);
    outline: none;
}

.referral-analytics__presets button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.referral-analytics__chart {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: radial-gradient(circle at top, rgba(116, 243, 255, 0.05), rgba(0, 0, 0, 0.35));
    padding: 12px;
}

.referral-analytics__chart canvas {
    width: 100%;
    min-height: 240px;
    display: block;
}

.referral-card--analytics.is-loading .referral-analytics__chart::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: inherit;
    background: rgba(3, 6, 18, 0.8);
    border: 1px solid rgba(116, 243, 255, 0.2);
    z-index: 0;
}

.referral-card--analytics.is-loading .referral-analytics__chart::before {
    content: 'Loading stats…';
    position: absolute;
    inset: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.referral-analytics__empty {
    position: absolute;
    inset: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(196, 226, 255, 0.8);
    font-weight: 500;
    pointer-events: none;
}

.referral-analytics__empty[hidden] {
    display: none;
}

.referral-chart-tooltip {
    background: rgba(3, 6, 18, 0.95);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(116, 243, 255, 0.4);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    font-size: 0.85rem;
    z-index: 1000;
}

.referral-chart-tooltip__value {
    font-weight: 700;
}

.referral-chart-tooltip__meta {
    font-size: 0.78rem;
    opacity: 0.75;
}

.ghost-btn--mini {
    border: 1px solid rgba(116, 243, 255, 0.4);
    background: transparent;
    color: #f4f7ff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.ghost-btn--mini:hover,
.ghost-btn--mini:focus-visible {
    border-color: rgba(116, 243, 255, 0.8);
    color: #fff;
    background: rgba(116, 243, 255, 0.08);
}

.ghost-btn--mini:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.referral-form {
    display: grid;
    gap: 10px;
}

.referral-form__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(196, 226, 255, 0.7);
}

.referral-form__group {
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(116, 243, 255, 0.3);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(8, 13, 30, 0.9);
}

.referral-form__prefix {
    padding: 10px 14px;
    font-size: 0.9rem;
    color: rgba(196, 226, 255, 0.8);
    background: rgba(10, 16, 38, 0.9);
    border-right: 1px solid rgba(116, 243, 255, 0.2);
}

.referral-form__group input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    padding: 10px 12px;
    font-size: 0.95rem;
}

.referral-form__group input:focus {
    outline: none;
}

.referral-form__submit {
    border: none;
    background: rgba(116, 243, 255, 0.16);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0 16px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.referral-form__submit:hover,
.referral-form__submit:focus-visible {
    background: rgba(116, 243, 255, 0.28);
    outline: none;
}

.referral-form__hint {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(196, 226, 255, 0.65);
}

.referral-form__status {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity .2s ease, color .2s ease;
}

.referral-form__status.is-visible {
    opacity: 1;
}

.referral-form__status[data-tone="success"] {
    color: var(--tradeup-success, #70e0a3);
}

.referral-form__status[data-tone="info"] {
    color: rgba(196, 226, 255, 0.85);
}

.referral-form__status[data-tone="error"] {
    color: var(--tradeup-danger, #ff8a8a);
}

.referral-list {
    display: grid;
    gap: 14px;
}

.referral-list__items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.referral-list__item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    background: rgba(9, 14, 32, 0.8);
    display: grid;
    gap: 10px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.referral-list__body {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

.referral-list__slug {
    margin: 0;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.referral-list__slug-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.referral-list__badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(116, 243, 255, 0.45);
    color: rgba(116, 243, 255, 0.9);
    background: rgba(116, 243, 255, 0.12);
}

.referral-list__badge[hidden] {
    display: none;
}

.referral-list__url {
    border: none;
    background: transparent;
    color: #7dd0ff;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.referral-list__url.is-copied {
    color: var(--tradeup-success, #70e0a3);
}

.referral-list__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.9rem;
    color: rgba(196, 226, 255, 0.85);
}

.referral-list__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.referral-list__stat i[data-lucide] {
    width: 16px;
    height: 16px;
}

.referral-list__stat--muted {
    color: rgba(196, 226, 255, 0.6);
}

.referral-list__item.is-active {
    border-color: rgba(116, 243, 255, 0.55);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.referral-list__item.is-active .referral-list__slug {
    color: #fff;
}

.referral-list__empty[hidden] {
    display: none;
}

.profile-panel__header {
    display: grid;
    gap: 6px;
    margin-bottom: clamp(12px, 2vw, 18px);
}

.profile-panel__header > *:first-child {
    display: grid;
    gap: 6px;
}

.profile-special__count {
    justify-self: flex-start;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(116, 243, 255, 0.25);
    background: rgba(8, 18, 44, 0.7);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
}

.profile-special-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.profile-special-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-special-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(116, 243, 255, 0.26);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(196, 226, 255, 0.9);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.profile-special-filter.is-active {
    border-color: rgba(116, 243, 255, 0.65);
    background: rgba(116, 243, 255, 0.12);
    color: #fff;
}

.profile-special-filter__count {
    min-width: 1.5em;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
}

.profile-special-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.profile-special-pagination__button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(116, 243, 255, 0.25);
    background: rgba(10, 20, 44, 0.65);
    color: rgba(196, 226, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.profile-special-pagination__button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-special-pagination__button:hover:not([disabled]) {
    border-color: rgba(116, 243, 255, 0.65);
    color: #fff;
}

.profile-special-pagination__button i[data-lucide] {
    width: 16px;
    height: 16px;
}

.profile-special-pagination__status {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(196, 226, 255, 0.9);
}

.profile-special-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.profile-special-card__link i[data-lucide] {
    width: 16px;
    height: 16px;
}

.profile-special-card__link:hover {
    text-decoration: underline;
}

.profile-special-card__link--disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    opacity: 0.6;
    cursor: not-allowed;
    color: rgba(196, 226, 255, 0.6);
}

.profile-special__empty {
    margin: 0;
    padding: 16px 18px;
    text-align: center;
    border-radius: 14px;
    border: 1px dashed rgba(255,255,255,0.2);
    color: rgba(196, 226, 255, 0.8);
}

.profile-special__empty--filters {
    margin-top: 18px;
}

.profile-panel__title {
    margin: 0;
    font-family: Orbitron, Inter, system-ui, sans-serif;
    font-size: clamp(1.12rem, 1rem + 0.5vw, 1.4rem);
    letter-spacing: 0.08em;
}

.profile-panel__header p {
    margin: 0;
    color: var(--text-1);
    font-size: 0.88rem;
}

.profile-tabs {
    display: grid;
    gap: 12px;
}

.tab-buttons {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-buttons li {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-1);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    border: 1px solid rgba(116, 243, 255, 0.12);
}

.tab-buttons li i[data-lucide] {
    width: 18px;
    height: 18px;
}

.tab-buttons li.active {
    background: rgba(116, 243, 255, 0.18);
    color: var(--text-0);
    border-color: rgba(116, 243, 255, 0.32);
    transform: translateY(-1px);
}

.tab-buttons li:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.tab-content-group {
    background: rgba(0, 10, 26, 0.65);
    border: 1px solid rgba(116, 243, 255, 0.12);
    border-radius: 18px;
    padding: clamp(18px, 3vw, 26px);
    box-shadow: inset 0 0 24px rgba(8, 18, 44, 0.45);
}

.tab-content {
    display: block;
}

.pattern-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.pattern-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(14, 24, 54, 0.9), rgba(10, 18, 44, 0.95));
    border: 1px solid rgba(116, 243, 255, 0.12);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.pattern-list li:hover {
    transform: translateY(-2px);
    border-color: rgba(116, 243, 255, 0.35);
}

.pattern-link {
    flex: 1;
    color: var(--text-0);
    text-decoration: none;
    font-weight: 500;
}

.pattern-link:hover {
    text-decoration: underline;
}

.pattern-icons {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-left: 18px;
}

.profile-fav-group {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.profile-fav-group__title {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.favorite-toggle,
.own-toggle,
.pattern-icons .external-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(116, 243, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.pattern-icons .external-link {
    text-decoration: none;
}

.favorite-toggle:hover,
.own-toggle:hover,
.pattern-icons .external-link:hover {
    background: rgba(116, 243, 255, 0.2);
    transform: translateY(-1px);
}

.favorite-toggle i[data-lucide],
.own-toggle i[data-lucide],
.pattern-icons .external-link i[data-lucide] {
    width: 18px;
    height: 18px;
}

.no-patterns {
    margin: clamp(12px, 2.5vw, 18px) 0 0;
    text-align: center;
    color: rgba(196, 226, 255, 0.7);
    font-size: 0.95rem;
    display: none;
}

/* Profile customization */
.profile-panel--customization {
    overflow: hidden;
}

.profile-customization {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 32px);
}

.profile-customization__hint {
    margin: 0;
    padding: 0 2px;
    font-size: 0.9rem;
    color: rgba(196, 226, 255, 0.85);
}

.profile-customization__options {
    display: grid;
    gap: clamp(18px, 3vw, 26px);
}

.name-effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
    gap: 12px;
}

.name-effect-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(116, 243, 255, 0.18);
    background: rgba(5, 10, 28, 0.78);
    color: var(--text-0);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.name-effect-card:hover {
    border-color: rgba(116, 243, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.name-effect-card.is-locked {
    cursor: not-allowed;
    border-color: rgba(116, 243, 255, 0.12);
    opacity: 0.85;
}

.name-effect-card.is-locked:hover {
    border-color: rgba(116, 243, 255, 0.12);
    transform: none;
    box-shadow: none;
}

.name-effect-card.is-selected {
    border-color: var(--accent);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.name-effect-card__eyebrow {
    margin: 0;
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(196, 226, 255, 0.6);
}

.name-effect-card__label {
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.name-effect-card__nameplate {
    width: 100%;
    justify-content: center;
    font-size: 0.86rem;
}

.name-effect-card__nameplate > span {
    display: inline-flex;
}

.name-effect-card__description {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(196, 226, 255, 0.75);
}

.name-effect-card.is-locked .name-effect-card__description,
.name-effect-card.is-locked .name-effect-card__nameplate {
    opacity: 0.65;
}

.name-effect-card__lock {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(5, 10, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(196, 226, 255, 0.85);
    pointer-events: none;
}

.name-effect-card__lock i[data-lucide] {
    width: 12px;
    height: 12px;
}

.profile-customization__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-customization__save,
.profile-customization__reset {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.profile-customization__save {
    background: var(--accent);
    color: #050b15;
    border-color: var(--accent);
    box-shadow: 0 14px 32px rgba(6, 12, 32, 0.6);
}

.profile-customization__reset {
    background: transparent;
    color: rgba(196, 226, 255, 0.9);
    border-color: rgba(196, 226, 255, 0.3);
}

.profile-customization__save:disabled,
.profile-customization__reset:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.profile-customization__timestamp {
    justify-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
    color: rgba(196, 226, 255, 0.8);
}

.profile-customization__empty {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(196, 226, 255, 0.8);
}

@media (max-width: 960px) {
    .profile-content__grid {
        grid-template-columns: 1fr;
    }

    .profile-customization {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .profile-hero {
        padding: clamp(24px, 8vw, 32px);
    }

    .profile-hero__identity {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-hero__stats {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-buttons li {
        width: 100%;
    }

}

@media (prefers-reduced-motion: reduce) {
    .profile-avatar,
    .profile-hero__link,
    .profile-metric,
    .pattern-list li,
    .favorite-toggle,
    .own-toggle,
    .pattern-icons .external-link,
    .tab-buttons li {
        transition: none !important;
    }
}

/* Social handles editor */
.profile-social-editor {
    display: grid;
    gap: 18px;
}

.profile-social-editor__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.profile-social-editor__field {
    display: grid;
    gap: 6px;
}

.profile-social-editor__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.9);
}

.profile-social-editor__label i[data-lucide] {
    width: 1.1em;
    height: 1.1em;
    color: rgba(116, 243, 255, 0.7);
}

.profile-social-editor__input {
    padding: 9px 12px;
    border-radius: 9px;
    background: rgba(8, 14, 36, 0.6);
    border: 1px solid rgba(116, 243, 255, 0.14);
    color: #e2e8f0;
    font-size: 0.88rem;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.profile-social-editor__input:focus {
    outline: none;
    border-color: rgba(116, 243, 255, 0.4);
    background: rgba(8, 14, 36, 0.8);
}

.profile-social-editor__input::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

.profile-social-editor__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.profile-social-editor__status {
    font-size: 0.82rem;
    color: rgba(148, 163, 184, 0.85);
}

.profile-social-editor__status[data-state="success"] {
    color: #86efac;
}

.profile-social-editor__status[data-state="error"] {
    color: #fca5a5;
}

.profile-social-editor__status[data-state="saving"] {
    color: rgba(116, 243, 255, 0.8);
}
