@charset "UTF-8";
/* dashboard.css - Premium Dashboard Studio V2 */

.dashboard-studio {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* ===== Studio Nav ===== */
.studio-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    background: #09090b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 64px;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo {
    font-size: var(--font-lg);
    font-weight: 800;
}

.nav-center {
    display: flex;
    gap: 2px;
    background: #18181b;
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tab-btn {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: #71717a;
    transition: all var(--dur-fast) var(--ease-snappy);
    white-space: nowrap;
}

.tab-btn:hover {
    color: #d4d4d8;
}

.tab-btn.active {
    background: #27272a;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.nav-right {
    display: flex;
    gap: var(--space-2);
}

.nav-right button {
    padding: 6px 16px;
    font-size: var(--font-sm);
    border-radius: var(--radius-sm);
}

.nav-btn {
    background: transparent;
    color: var(--c-text-primary);
    border: 1px solid var(--c-border);
    transition: all var(--dur-fast) var(--ease-snappy);
}

.nav-btn:hover {
    background: var(--c-surface-hover);
}

/* ===== Layout ===== */
.studio-layout {
    display: block;
    /* Flex causes bottom padding cutoff issues */
    width: 100%;
    height: calc(100vh - 64px);
    /* Full height minus nav */
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #000000;
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    padding: 40px 20px 100px 20px;
    scroll-behavior: smooth;
}

.studio-layout::-webkit-scrollbar {
    width: 6px;
}

.studio-layout::-webkit-scrollbar-track {
    background: #000;
}

.studio-layout::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}

/* ===== Controls Panel (Floating Card) ===== */
.controls-panel {
    width: 100%;
    max-width: 740px;
    /* Optimal reading width */
    height: auto;
    /* Let it grow with content to fix the background cutoff bug */
    overflow: visible;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 48px 56px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    margin: 0 auto;
    /* Horizontally center */
    margin-bottom: 60px;
    /* Ensure space at the bottom */
    animation: fadeScaleUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes fadeScaleUp {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Removing the old inner scrollbar styles since the whole layout scrolls now */

.control-section {
    display: none;
    animation: revealUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.control-section.active {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* ===== Section Title ===== */
.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #f4f4f5;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin: 24px 0 16px 0;
}

/* ===== Input Group ===== */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Increased padding */
    margin-bottom: 20px;
    /* Better spacing between fields */
    animation: fadeUp 0.4s var(--ease-snappy) backwards;
}

/* Add a smooth staggered fade-in to form items */
.control-section.active .input-group:nth-child(1) {
    animation-delay: 0.05s;
}

.control-section.active .input-group:nth-child(2) {
    animation-delay: 0.1s;
}

.control-section.active .input-group:nth-child(3) {
    animation-delay: 0.15s;
}

.control-section.active .input-group:nth-child(4) {
    animation-delay: 0.2s;
}

.control-section.active .input-group:nth-child(5) {
    animation-delay: 0.25s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.row-toggle {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.input-group label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #a1a1aa;
    letter-spacing: 0.4px;
}

.input-group input[type="text"],
.input-group input[type="url"],
.input-group input[type="file"],
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 14px 16px;
    /* Larger hit area */
    background: #121214;
    /* Slightly different contrast */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Premium subtle borders */
    border-radius: var(--radius-md);
    color: #fafafa;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    background: #18181b;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.input-group input[type="file"] {
    padding: 6px;
    /* tighter padding for file input */
}

/* Custom premium file upload button */
.input-group input[type="file"]::file-selector-button {
    background: #27272a;
    color: #fafafa;
    border: 1px solid #3f3f46;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    margin-right: 12px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-snappy);
}

.input-group input[type="file"]::file-selector-button:hover {
    background: #3f3f46;
    color: #fff;
}

.input-group textarea {
    resize: vertical;
    min-height: 70px;
}

.hint {
    font-size: 0.7rem;
    color: #52525b;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== URL Input ===== */
.url-input-wrapper {
    display: flex;
    align-items: center;
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.url-input-wrapper:focus-within {
    background: #18181b;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.url-prefix {
    padding: 14px 0 14px 16px;
    color: #71717a;
    font-size: 0.95rem;
    font-weight: 500;
    user-select: none;
    white-space: nowrap;
}

.url-input-wrapper input {
    border: none !important;
    background: transparent !important;
    padding-left: 2px !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ===== Color Row ===== */
.color-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ===== Custom Color Picker (Pickr) Button ===== */
.pickr {
    margin-right: 8px;
}

.pickr .pcr-button {
    width: 42px !important;
    height: 42px !important;
    border-radius: 8px !important;
    border: 2px solid #27272a !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.pickr .pcr-button:hover {
    border-color: #52525b !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4) !important;
}

.pickr .pcr-button::after {
    border-radius: 6px !important;
}

/* ===== Pickr Modal (Ultra Premium Dark Theme) ===== */
.pcr-app {
    background: rgba(24, 24, 27, 0.85) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    padding: 16px !important;
    font-family: inherit !important;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Modal Animation (Slide + Fade) */
.pcr-app.visible {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
}

.pcr-app:not(.visible) {
    transform: translateY(-10px) scale(0.98) !important;
}

/* Picker Container */
.pcr-app .pcr-interaction .pcr-result {
    background: #121214 !important;
    color: #fafafa !important;
    border: 1px solid #27272a !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}

/* Inputs & Buttons inside Pickr */
.pcr-app .pcr-interaction input {
    background: #121214 !important;
    color: #fafafa !important;
    border: 1px solid #27272a !important;
    border-radius: 6px !important;
    transition: border-color 0.2s ease !important;
}

.pcr-app .pcr-interaction input:focus {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.pcr-app .pcr-interaction .pcr-save {
    background: #fafafa !important;
    color: #09090b !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.pcr-app .pcr-interaction .pcr-save:hover {
    background: #e4e4e7 !important;
    transform: translateY(-1px) !important;
}

.pcr-app .pcr-interaction .pcr-clear,
.pcr-app .pcr-interaction .pcr-cancel {
    background: transparent !important;
    color: #a1a1aa !important;
    border: 1px solid #27272a !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.pcr-app .pcr-interaction .pcr-clear:hover,
.pcr-app .pcr-interaction .pcr-cancel:hover {
    background: #27272a !important;
    color: #fafafa !important;
}

/* Sliders */
.pcr-app .pcr-selection .pcr-color-chooser .pcr-picker,
.pcr-app .pcr-selection .pcr-color-opacity .pcr-picker {
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.color-row input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fafafa;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.color-row input[type="text"]:focus {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(255, 255, 255, 0.05);
    outline: none;
}

/* ===== Custom Select Container ===== */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

/* ===== Choices.js Dark Theme Overrides ===== */
.choices {
    margin-bottom: 0 !important;
}

.choices__inner {
    background-color: #18181b !important;
    border: 1px solid #27272a !important;
    border-radius: var(--radius-sm) !important;
    color: #fafafa !important;
    min-height: 42px !important;
    padding: 4px 12px !important;
    display: flex;
    align-items: center;
}

.choices[data-type*="select-one"] .choices__inner {
    padding-bottom: 4px !important;
}

.choices__list--single {
    padding: 0 !important;
    color: #fafafa !important;
    font-size: 0.85rem;
}

.choices__list--dropdown {
    background-color: #18181b !important;
    border: 1px solid #27272a !important;
    border-top: none !important;
    color: #fafafa !important;
    z-index: 100 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #27272a !important;
}

.choices__list--dropdown .choices__item {
    font-size: 0.85rem !important;
    color: #a1a1aa !important;
    transition: background-color 0.2s, color 0.2s;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
    color: #fafafa !important;
}

/* ===== Small Button ===== */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    background: #27272a;
    color: #fafafa;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    /* Slightly rounder */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-sm:hover {
    background: #fafafa;
    color: #09090b;
    border-color: #fafafa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* ===== Toggles ===== */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #27272a;
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #a1a1aa;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

input:checked+.slider {
    background-color: #fafafa;
    border-color: #fafafa;
}

input:checked+.slider:before {
    transform: translateX(20px);
    background-color: #000000;
}

/* ===== Range ===== */
input[type=range] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #27272a;
    border-radius: 2px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: #fafafa;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ===== Social Adder ===== */
.social-adder {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.social-adder input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: #fafafa;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-adder input:focus {
    outline: none;
    background: #18181b;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

/* ===== Social / Card List Elements ===== */
.social-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    background: #18181b;
}

.social-card-icon {
    color: #a1a1aa;
    display: flex;
    flex-shrink: 0;
}

.social-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.social-card-info strong {
    font-size: 0.9rem;
    color: #fafafa;
}

.social-card-info .hint {
    font-size: 0.75rem;
    color: #a1a1aa;
}

.btn-icon-danger {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #71717a;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.btn-icon-danger:hover {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.empty-state {
    padding: 20px;
    text-align: center;
    color: #3f3f46;
    font-size: 0.8rem;
    border: 1px dashed #27272a;
    border-radius: var(--radius-sm);
}

/* ===== BG Modes ===== */
.bg-mode-selector {
    display: flex;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: var(--radius-md);
    padding: 4px;
}

.bg-mode-btn {
    flex: 1;
    padding: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #71717a;
    border-radius: var(--radius-sm);
    text-align: center;
}

.bg-mode-btn.active {
    background: #27272a;
    color: #fafafa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.bg-modifier {
    display: none;
}

.bg-modifier.active {
    display: block;
}

/* ===== Alert ===== */
.alert-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid #ef4444;
    border-radius: var(--radius-sm);
    padding: var(--space-3);
    font-size: 0.8rem;
    color: #fca5a5;
}

.alert-box strong {
    color: #ef4444;
    display: block;
    margin-bottom: 4px;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 9999;
    animation: toastIn 0.3s var(--ease-snappy);
    pointer-events: none;
}

.toast.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s;
}

.toast-success {
    background: #166534;
    color: #bbf7d0;
    border: 1px solid #22c55e;
}

.toast-error {
    background: #7f1d1d;
    color: #fecaca;
    border: 1px solid #ef4444;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== Preview Panel (iFrame Container) ===== */
.preview-panel {
    flex: 1;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-4);
}

.live-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d4d4d8;
}

.live-indicator .dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* ===== Device Frame & Toggles ===== */
.view-toggles {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.view-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-snappy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.view-btn.active {
    background: #fafafa;
    color: #000;
    border-color: #fafafa;
}

.device-frame {
    width: 100%;
    background: #000;
    border: 12px solid #18181b;
    border-radius: 40px;
    box-shadow: 0 0 0 2px #27272a, 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    display: flex;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0 auto;
}

.device-frame.mobile-view {
    max-width: 400px;
    height: 100%;
    max-height: 850px;
}

.device-frame.desktop-view {
    max-width: 100%;
    height: 700px;
    border-radius: 12px;
    border-width: 4px;
}

/* iPhone notch simulation */
.device-frame.mobile-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #18181b;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 50;
}

.device-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.profile-card {
    width: 100%;
    max-width: 420px;
    min-height: 220px;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
    transition: all var(--dur-fast) var(--ease-snappy);
}

.profile-card.style-glass {
    background: rgba(255, 255, 255, calc(0.06 * var(--card-opacity, 0.8)));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-card.style-solid {
    background: rgba(24, 24, 27, var(--card-opacity, 0.8));
}

.profile-card.style-border {
    background: rgba(0, 0, 0, calc(0.8 * var(--card-opacity, 0.8)));
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05) inset;
}

.profile-card.style-minimal {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.profile-card.style-neon {
    background: rgba(0, 0, 0, calc(0.9 * var(--card-opacity, 0.8)));
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), 0 0 60px rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.5);
}

.card-header h1 {
    font-size: var(--font-2xl);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.badges-wrapper {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: var(--space-1);
    min-height: 18px;
}

.card-body p {
    font-size: var(--font-sm);
    white-space: pre-wrap;
    line-height: 1.5;
}

.social-wrapper {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-2);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a1a1aa;
    transition: transform var(--dur-fast) var(--ease-snappy), color var(--dur-fast);
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.15);
    color: #fafafa;
}

/* ===== Overlays ===== */
.preview-crt-layer.active {
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
}

.preview-vignette-layer.active {
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.9) 100%);
}

/* ===== Utilities ===== */
.mt-6 {
    margin-top: 6px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ===== Internal Card Layouts ===== */

.profile-card.layout-left {
    align-items: flex-start;
    text-align: left;
}

.profile-card.layout-left .card-header,
.profile-card.layout-left .card-body,
.profile-card.layout-left .card-footer {
    width: 100%;
}

.profile-card.layout-left .badges-wrapper {
    justify-content: flex-start;
}

.profile-card.layout-left .social-wrapper {
    justify-content: flex-start;
}

.profile-card.layout-minimal {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: var(--space-4) var(--space-6);
    gap: var(--space-2);
}

.profile-card.layout-minimal .card-header {
    flex: 1;
    min-width: 50%;
}

.profile-card.layout-minimal .badges-wrapper {
    justify-content: flex-start;
    margin-bottom: 2px;
}

.profile-card.layout-minimal .card-body {
    flex-basis: 100%;
    order: 3;
    padding-top: var(--space-2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-card.layout-minimal .card-footer {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.profile-card.layout-minimal .social-wrapper {
    justify-content: flex-end;
    margin-top: 0;
}
/* ===== Floating Unsaved Bar ===== */
.unsaved-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: rgba(20, 20, 23, 0.95);
    border: 1px solid var(--c-border);
    backdrop-filter: blur(12px);
    padding: 12px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    opacity: 1;
}
.unsaved-bar.hidden {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    pointer-events: none;
}


/* ===== New BG Cards ===== */
.bg-card-wrapper {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.bg-card-wrapper.active {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 1px var(--c-accent);
}
.bg-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid transparent;
}
.bg-card-wrapper.active .bg-card-header {
    border-bottom: 1px solid #27272a;
    background: rgba(255, 255, 255, 0.04);
}
.bg-card-body {
    padding: 16px;
}


/* ===== Premium Color Pickers ===== */
input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    background: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), inset 0 0 0 2px rgba(0,0,0,0.2);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}
input[type="color"]:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--c-accent), 0 4px 12px rgba(0,0,0,0.5);
}

