/* Profile edit panel + owner settings (loaded via profile.css import or inline in profile.css) */

.profile-edit-panel {
    scroll-margin-top: 88px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    background: rgba(8, 8, 12, 0.92);
}

.profile-edit-panel__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.profile-edit-tabs .nav-link {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 8px 18px;
}

.profile-edit-tabs .nav-link.active {
    background: linear-gradient(135deg, #fbbf24, #ff8000);
    color: #0a0806;
}

.profile-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-title-card__hint {
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.58);
}

.profile-title-card__subhead {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 10px;
}

.profile-title-ready-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-title-ready-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(46, 204, 113, 0.35);
    background: rgba(46, 204, 113, 0.06);
    color: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.profile-title-ready-btn:hover {
    border-color: rgba(46, 204, 113, 0.55);
    background: rgba(46, 204, 113, 0.12);
}

.profile-title-ready-btn__label {
    font-weight: 800;
    font-size: 0.95rem;
}

.profile-title-ready-btn__action {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2ecc71;
    flex-shrink: 0;
}

.profile-title-progress-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-title-progress-list li {
    display: grid;
    grid-template-columns: 1fr minmax(64px, 22%) 2.5rem;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
}

.profile-title-progress-list__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.88);
}

.profile-title-progress-list__bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.profile-title-progress-list__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #fbbf24);
}

.profile-title-progress-list__pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
}

.profile-title-mix-details summary {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.profile-title-suggestions__hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 12px;
    line-height: 1.45;
}

.profile-title-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-title-suggestion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.profile-title-suggestion-btn:hover {
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.08);
}

.profile-title-suggestion-btn__label {
    font-weight: 700;
    font-size: 0.92rem;
}

.profile-title-suggestion-btn__action {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fbbf24;
    flex-shrink: 0;
}

.profile-settings-card {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(16, 18, 28, 0.95), rgba(8, 10, 18, 0.98));
    border: 1px solid rgba(251, 191, 36, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.profile-settings-card--wide {
    grid-column: 1 / -1;
}

.profile-settings-card--row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-settings-card__title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 10px;
}

.profile-settings-card--row .profile-settings-card__title {
    margin: 0;
    flex: 1;
}

.profile-settings-card__preview {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.profile-title-fields {
    display: grid;
    gap: 8px;
}

.profile-title-fields__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

body.juicer-v2-page .profile-edit-panel select,
body.juicer-v2-page .profile-settings-card select,
.profile-native-select {
    --bs-form-select-bg-img: none !important;
}

.profile-native-select,
body.juicer-v2-page .profile-edit-panel select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding: 10px 36px 10px 12px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    background-color: rgba(12, 12, 18, 0.95) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fbbf24' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px 12px !important;
    color: #fff !important;
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    cursor: pointer;
}

.profile-native-select:focus {
    border-color: rgba(251, 191, 36, 0.55) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.15) !important;
}

.profile-notify-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-notify-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    margin: 0;
    font-size: 0.82rem;
    color: #fff;
    cursor: pointer;
}

.profile-notify-chip input {
    margin: 0;
}

.profile-reminder-form {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 8px;
    margin-bottom: 10px;
}

.profile-reminder-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.profile-reminder-list li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    font-size: 0.82rem;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.profile-reminder-list time {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

.profile-showcase-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 10px;
}

.profile-showcase-picks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
}

.profile-showcase-pick {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 12px 10px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.profile-showcase-pick::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
    background: var(--tier, #fbbf24);
    opacity: 0.85;
}

.profile-showcase-pick.is-on,
.profile-showcase-pick:has(input:checked) {
    border-color: color-mix(in srgb, var(--tier, #fbbf24) 55%, transparent);
    background: color-mix(in srgb, var(--tier, #fbbf24) 14%, rgba(0, 0, 0, 0.35));
    box-shadow: 0 0 16px color-mix(in srgb, var(--tier, #fbbf24) 25%, transparent);
}

.profile-showcase-pick:has(input:disabled:not(:checked)) {
    opacity: 0.35;
    cursor: not-allowed;
}

.profile-showcase-pick input {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
}

.profile-showcase-pick__tier {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tier, #fbbf24);
    background: color-mix(in srgb, var(--tier, #fbbf24) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--tier, #fbbf24) 40%, transparent);
}

.profile-showcase-pick__name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
    max-width: 100%;
}

@media (max-width: 768px) {
    .profile-settings-grid {
        grid-template-columns: 1fr;
    }
}
