/* ============================================
   PROFILE PAGE — R‑Core Styled
   ============================================ */

/* ─── Root Variables ─── */
:root {
    --rc-accent: #4facfe;
}

/* ─── Profile Preview Container ─── */

.rc-profile-preview {
    max-width: 900px;
    margin: 30px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.5),
        0 0 40px rgba(79,172,254,0.08);
}

/* ─── Banner Section (top, separate from card) ─── */

.rc-profile-banner-section {
    position: relative;
    width: 100%;
    height: 280px;
    max-height: 280px;
    overflow: hidden;
    background: rgba(15, 26, 43, 0.5);
    display: none; /* shown when a banner is uploaded */
}
.rc-profile-banner-section img,
.rc-profile-banner-section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rc-profile-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 11, 16, 0.6) 100%);
    z-index: 1;
}

/* ─── Profile Card (below banner, background style applied here) ─── */

.rc-profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--rc-accent) 15%, transparent);
    box-shadow:
        0 0 40px color-mix(in srgb, var(--rc-accent) 10%, transparent),
        inset 0 0 30px color-mix(in srgb, var(--rc-accent) 4%, transparent);
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.rc-profile-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px 40px;
}

.rc-pfp-wrapper {
    position: relative;
    margin-bottom: 20px;
    display: inline-block;
}

.rc-profile-pfp {
    width: 140px; height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--rc-accent);
    box-shadow: 0 0 30px color-mix(in srgb, var(--rc-accent) 40%, transparent), 0 10px 40px rgba(0,0,0,0.5);
    transition: all 0.35s ease;
    display: block;
}
.rc-profile-pfp:hover { transform: scale(1.05); }

.rc-pfp-availability-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--bg);
    transition: all 0.3s ease;
    z-index: 3;
}
.rc-pfp-availability-dot.online { background: #43e97b; box-shadow: 0 0 8px rgba(67,233,123,0.6); }
.rc-pfp-availability-dot.idle { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,0.6); }
.rc-pfp-availability-dot.dnd { background: #ff4d6a; box-shadow: 0 0 8px rgba(255,77,106,0.6); }
.rc-pfp-availability-dot.invisible { background: #6b7280; box-shadow: 0 0 8px rgba(107,114,128,0.3); }

.rc-profile-name {
    font-family: 'Sora', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}
.rc-profile-bio {
    font-size: 16px;
    color: var(--muted);
    max-width: 500px;
    line-height: 1.5;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.rc-profile-status {
    font-size: 13px;
    color: var(--muted);
    opacity: 0.7;
    max-width: 400px;
    margin-bottom: 16px;
    font-style: italic;
    transition: all 0.3s ease;
}

/* ─── Social Links Display in Hero ─── */
.rc-profile-socials {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.rc-profile-social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--muted);
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    text-decoration: none;
    transition: all 0.25s ease;
    overflow: hidden;
}
.rc-profile-social-link:hover {
    transform: translateY(-3px);
    border-color: var(--rc-accent);
    box-shadow: 0 0 16px color-mix(in srgb, var(--rc-accent) 25%, transparent);
    color: var(--rc-accent);
}
.rc-profile-social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ─── Profile Stats ─── */
.rc-profile-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
}
.rc-profile-stat {
    text-align: center;
}
.rc-profile-stat strong {
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    color: #e9e9ff;
    display: block;
}
.rc-profile-stat span {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ─── Audio Player ─── */
.rc-profile-audio {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}
.rc-audio-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 60px;
    margin-bottom: 12px;
}
.rc-audio-bar {
    width: 6px;
    border-radius: 4px;
    background: linear-gradient(to top, #4facfe, #a855f7);
    transition: height 0.06s ease;
    min-height: 4px;
    opacity: 0.6;
}
.rc-audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.rc-audio-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--rc-accent) 30%, transparent);
    background: rgba(255,255,255,0.06);
    color: var(--rc-accent);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}
.rc-audio-btn:hover {
    background: color-mix(in srgb, var(--rc-accent) 15%, transparent);
    border-color: var(--rc-accent);
    transform: scale(1.1);
}
.rc-audio-progress {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    position: relative;
}
.rc-audio-progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--rc-accent), color-mix(in srgb, var(--rc-accent) 60%, #a855f7));
    width: 0%;
    transition: width 0.1s linear;
}
.rc-audio-time {
    font-size: 12px;
    color: var(--muted);
    font-family: 'Courier New', monospace;
    min-width: 40px;
    text-align: center;
}

/* ─── Customization Panel ─── */
.rc-profile-editor {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}
.rc-editor-section {
    margin-bottom: 40px;
}
.rc-editor-section h2 {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    color: #e9e9ff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rc-section-icon {
    color: var(--rc-accent) !important;
    transition: color 0.4s ease;
}
.rc-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.rc-editor-full { grid-column: 1 / -1; }
.rc-editor-field label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.rc-editor-field input[type="text"],
.rc-editor-field input[type="url"],
.rc-editor-field input[type="email"],
.rc-editor-field input[type="password"],
.rc-editor-field select,
.rc-editor-field textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s ease;
    outline: none;
}
.rc-editor-field input[type="text"]:focus,
.rc-editor-field input[type="url"]:focus,
.rc-editor-field input[type="email"]:focus,
.rc-editor-field input[type="password"]:focus,
.rc-editor-field select:focus,
.rc-editor-field textarea:focus {
    border-color: var(--rc-accent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--rc-accent) 20%, transparent), inset 0 0 8px color-mix(in srgb, var(--rc-accent) 8%, transparent);
}

/* ─── Glam Select Menus ─── */
.rc-editor-field select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%234facfe'/%3E%3Cstop offset='100%25' stop-color='%23a855f7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M7 10l5 5 5-5z' fill='url(%23a)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 36px;
    position: relative;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
}
.rc-editor-field select:hover {
    border-color: rgba(79,172,254,0.4);
    background-color: rgba(255,255,255,0.08);
    box-shadow: 0 0 18px rgba(79,172,254,0.12);
    transform: translateY(-1px);
}
.rc-editor-field select:focus {
    border-color: var(--rc-accent);
    box-shadow: 0 0 22px color-mix(in srgb, var(--rc-accent) 22%, transparent);
    transform: translateY(-1px);
}
.rc-editor-field select option {
    background: #0f111a;
    color: #e9e9ff;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    min-height: 36px;
}
.rc-editor-field select option:hover,
.rc-editor-field select option:checked {
    background: linear-gradient(135deg, rgba(79,172,254,0.25), rgba(168,85,247,0.25)) !important;
}

/* ─── Font Select with Preview ─── */
.rc-font-select-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.rc-font-select-wrapper select {
    flex: 1;
    font-family: 'Inter', sans-serif;
    transition: font-family 0.2s ease;
}
.rc-font-preview {
    width: 52px;
    min-width: 52px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    transition: font-family 0.2s ease, all 0.25s ease;
    color: #e9e9ff;
}
.rc-font-preview:hover {
    border-color: rgba(79,172,254,0.3);
    box-shadow: 0 0 14px rgba(79,172,254,0.1);
}

/* ─── Color Inputs ─── */
.rc-color-field {
    /* adds spacing context */
}
.rc-color-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rc-color-wrapper input[type="color"] {
    width: 52px;
    min-width: 52px;
    height: 48px;
    padding: 3px;
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    transition: all 0.25s ease;
    position: relative;
}
.rc-color-wrapper input[type="color"]:hover {
    border-color: rgba(79,172,254,0.4);
    box-shadow: 0 0 18px rgba(79,172,254,0.15);
    transform: scale(1.04);
}
.rc-color-wrapper input[type="color"]:focus {
    border-color: #4facfe;
    box-shadow: 0 0 22px rgba(79,172,254,0.2);
}
.rc-color-hex {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 13px;
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.25s ease;
    letter-spacing: 0.03em;
    user-select: all;
    cursor: text;
    flex: 1;
    max-width: 130px;
}
.rc-color-hex:hover {
    border-color: rgba(79,172,254,0.2);
    background: rgba(255,255,255,0.06);
}

/* ─── Gradient Preview Strip ─── */
.rc-gradient-preview {
    width: 100%;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s ease;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}
.rc-gradient-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
    animation: gradientShimmer 3s ease-in-out infinite;
}
@keyframes gradientShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ─── Range sliders ─── */
.rc-editor-field input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--rc-accent) 25%, transparent), color-mix(in srgb, var(--rc-accent) 15%, transparent));
    outline: none;
    transition: 0.2s ease;
    border: none;
    padding: 0;
    margin: 8px 0;
}
.rc-editor-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rc-accent), color-mix(in srgb, var(--rc-accent) 60%, #a855f7));
    cursor: pointer;
    box-shadow: 0 0 12px color-mix(in srgb, var(--rc-accent) 45%, transparent);
    border: 2px solid rgba(255,255,255,0.15);
    transition: 0.2s ease;
}
.rc-editor-field input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px color-mix(in srgb, var(--rc-accent) 60%, transparent);
}
.rc-editor-field input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rc-accent), color-mix(in srgb, var(--rc-accent) 60%, #a855f7));
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.15);
}
.rc-range-value {
    font-size: 13px;
    color: var(--muted);
    font-family: 'Sora', sans-serif;
    text-align: right;
    min-width: 32px;
}
.rc-range-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rc-range-wrapper input[type="range"] {
    flex: 1;
}

.rc-editor-field textarea { resize: vertical; min-height: 80px; }
.rc-editor-field input[type="color"] {
    height: 48px;
    padding: 4px;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    transition: 0.25s ease;
}
.rc-editor-field input[type="color"]:hover {
    border-color: rgba(79,172,254,0.4);
    box-shadow: 0 0 14px rgba(79,172,254,0.12);
}

/* ─── Asset Wrapper (file upload + remove button side by side) ─── */
.rc-asset-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.rc-asset-wrapper .rc-file-upload {
    flex: 1;
}

/* ─── Remove Asset Button ─── */
.rc-asset-remove {
    width: 48px;
    min-width: 48px;
    border-radius: 12px;
    border: 2px dashed rgba(255,77,106,0.25);
    background: rgba(255,77,106,0.06);
    color: #ff4d6a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.25s ease;
    opacity: 0.5;
}
.rc-asset-remove:hover {
    opacity: 1;
    background: rgba(255,77,106,0.15);
    border-color: rgba(255,77,106,0.5);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255,77,106,0.2);
}
.rc-asset-remove:active {
    transform: scale(0.92);
}
.rc-asset-remove.hidden {
    display: none;
}

/* ─── File Upload ─── */
.rc-file-upload {
    border: 2px dashed color-mix(in srgb, var(--rc-accent) 20%, transparent);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.25s ease;
}
.rc-file-upload:hover {
    border-color: color-mix(in srgb, var(--rc-accent) 50%, transparent);
    background: color-mix(in srgb, var(--rc-accent) 4%, transparent);
}
.rc-file-upload i {
    font-size: 28px;
    color: var(--rc-accent);
    margin-bottom: 6px;
    display: block;
}
.rc-file-upload span {
    font-size: 12px;
    color: var(--muted);
}
.rc-file-upload input { display: none; }
.rc-file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.rc-file-preview img,
.rc-file-preview video {
    width: 80px; height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* ─── Style Swatches ─── */
.rc-style-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.rc-style-chip {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s ease;
    font-family: 'Inter', sans-serif;
}
.rc-style-chip:hover { border-color: rgba(79,172,254,0.3); color: var(--text); }
.rc-style-chip.active { background: rgba(79,172,254,0.15);
    border-color: #4facfe; color: #4facfe; }

/* ─── Availability Dot ─── */
.rc-availability-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
}
.rc-availability-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}
.rc-availability-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.rc-availability-dot.online {
    background: #43e97b;
    box-shadow: 0 0 10px rgba(67,233,123,0.5);
}
.rc-availability-dot.online::after {
    background: radial-gradient(circle, rgba(67,233,123,0.25), transparent);
    opacity: 1;
}
.rc-availability-dot.idle {
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251,191,36,0.5);
}
.rc-availability-dot.idle::after {
    background: radial-gradient(circle, rgba(251,191,36,0.25), transparent);
    opacity: 1;
}
.rc-availability-dot.dnd {
    background: #ff4d6a;
    box-shadow: 0 0 10px rgba(255,77,106,0.5);
}
.rc-availability-dot.dnd::after {
    background: radial-gradient(circle, rgba(255,77,106,0.25), transparent);
    opacity: 1;
}
.rc-availability-dot.invisible {
    background: #6b7280;
    box-shadow: 0 0 10px rgba(107,114,128,0.3);
}

.rc-availability-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

/* ─── Social Links Editor ─── */
.rc-social-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}
.rc-social-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    transition: 0.2s ease;
}
.rc-social-link-row:hover {
    border-color: rgba(79,172,254,0.15);
    background: rgba(255,255,255,0.05);
}
.rc-social-link-row .rc-social-link-icon {
    font-size: 22px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    overflow: hidden;
}
.rc-social-link-row .rc-social-link-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.rc-social-link-row select {
    flex: 0 0 130px;
    padding: 6px 8px;
    font-size: 12px;
}
.rc-social-link-row input[type="url"] {
    flex: 1;
    padding: 6px 10px;
    font-size: 12px;
    min-width: 0;
}
.rc-social-link-row .rc-social-remove {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: rgba(255,77,106,0.1);
    color: #ff4d6a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.2s ease;
    flex-shrink: 0;
}
.rc-social-link-row .rc-social-remove:hover {
    background: rgba(255,77,106,0.25);
    transform: scale(1.1);
}
.rc-social-link-row .rc-upload-custom-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px dashed rgba(79,172,254,0.25);
    background: rgba(79,172,254,0.06);
    color: #4facfe;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: 0.2s ease;
    flex-shrink: 0;
}
.rc-social-link-row .rc-upload-custom-icon:hover {
    background: rgba(79,172,254,0.15);
    border-color: rgba(79,172,254,0.5);
}
.rc-social-add-btn {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 2px dashed rgba(79,172,254,0.2);
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.rc-social-add-btn:hover {
    border-color: rgba(79,172,254,0.4);
    color: #4facfe;
    background: rgba(79,172,254,0.04);
}

/* ─── Divider between Preview & Editor ─── */
.rc-profile-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 700px;
    margin: 20px auto 10px;
    padding: 0 20px;
}
.rc-profile-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rc-accent) 25%, transparent), transparent);
}
.rc-profile-divider-label {
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ─── YouTube Embed ─── */
.rc-youtube-embed {
    position: absolute;
    inset: 0;
    overflow: hidden;
    transition: filter 0.3s ease;
}
.rc-youtube-embed iframe {
    width: 100%;
    height: 100%;
    pointer-events: none;
    object-fit: cover;
}

/* ─── Compression Picker Modal ─── */

.rc-compress-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rc-compress-modal {
    background: rgba(15, 15, 30, 0.92);
    border: 1px solid rgba(124, 92, 255, 0.3);
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 40px rgba(79,172,254,0.1);
    animation: modalSlideUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.rc-compress-header {
    text-align: center;
    margin-bottom: 20px;
}

.rc-compress-header h3 {
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    color: #e9e9ff;
    margin: 0 0 6px;
}

.rc-compress-header p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.rc-compress-preview {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-compress-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.rc-compress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--muted);
}

.rc-compress-info strong {
    color: #e9e9ff;
}

.rc-compress-dimensions {
    font-family: 'Sora', sans-serif;
    color: #4facfe;
    font-size: 14px;
}

.rc-compress-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.rc-compress-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(79,172,254,0.15);
    background: rgba(79,172,254,0.04);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.rc-compress-option:hover {
    border-color: rgba(79,172,254,0.5);
    background: rgba(79,172,254,0.08);
    transform: translateX(4px);
}

.rc-compress-option:active {
    transform: scale(0.98);
}

.rc-compress-option-hard {
    border-color: rgba(168,85,247,0.15);
    background: rgba(168,85,247,0.04);
}

.rc-compress-option-hard:hover {
    border-color: rgba(168,85,247,0.5);
    background: rgba(168,85,247,0.08);
}

.rc-compress-option-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background: rgba(79,172,254,0.1);
    color: #4facfe;
}

.rc-compress-option-hard .rc-compress-option-icon {
    background: rgba(168,85,247,0.1);
    color: #a855f7;
}

.rc-compress-option-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.rc-compress-option-label {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #e9e9ff;
}

.rc-compress-option-desc {
    font-size: 12px;
    color: var(--muted);
}

.rc-compress-option-est {
    font-size: 12px;
    font-family: 'Space Mono', monospace;
    color: #43e97b;
    margin-top: 2px;
}

.rc-compress-skip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: 0.2s ease;
}

.rc-compress-skip:hover {
    border-color: rgba(255,255,255,0.15);
    color: #e9e9ff;
}

@media (max-width: 480px) {
    .rc-compress-modal {
        padding: 20px;
    }
    .rc-compress-preview {
        height: 120px;
    }
    .rc-compress-option {
        padding: 12px;
    }
}

/* ─── Save Button ─── */
.rc-save-bar {
    position: sticky;
    bottom: 0;
    padding: 20px;
    background: rgba(10, 11, 16, 0.9);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: center;
    gap: 16px;
    z-index: 50;
}
.rc-save-btn {
    padding: 14px 32px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    font-family: 'Inter', sans-serif;
}
.rc-save-btn.primary {
    background: linear-gradient(135deg, var(--rc-accent), color-mix(in srgb, var(--rc-accent) 60%, #a855f7));
    color: #fff;
    box-shadow: 0 0 20px color-mix(in srgb, var(--rc-accent) 35%, transparent);
}
.rc-save-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px color-mix(in srgb, var(--rc-accent) 50%, transparent); }
.rc-save-btn.secondary {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--text);
}
.rc-save-btn.secondary:hover { background: rgba(255,255,255,0.10); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .rc-editor-grid { grid-template-columns: 1fr; }
    .rc-profile-name { font-size: 28px; }
    .rc-profile-pfp { width: 110px; height: 110px; }
    .rc-profile-stats { gap: 20px; }
    .rc-social-link-row { flex-wrap: wrap; }
    .rc-social-link-row select { flex: 1; min-width: 100px; }
    .rc-pfp-availability-dot { width: 16px; height: 16px; }
}
