/* ========================================
   DETAY - ADMIN PANEL STYLES
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #060608;
    --bg-secondary: #0c0c12;
    --bg-tertiary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #555570;
    --accent: #e63946;
    --accent-light: #ff6b6b;
    --accent-glow: rgba(230, 57, 70, 0.3);
    --accent-secondary: #c1121f;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(230, 57, 70, 0.3);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Custom Kick Icon ---- */
.custom-kick {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M37 .036h164.448v113.621h54.71v-56.82h54.731V.036h164.448v170.777h-54.73v56.82h-54.711v56.8h54.71v56.82h54.73V512.03H310.89v-56.82h-54.73v-56.8h-54.711v113.62H37V.036z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M37 .036h164.448v113.621h54.71v-56.82h54.731V.036h164.448v170.777h-54.73v56.82h-54.711v56.8h54.71v56.82h54.73V512.03H310.89v-56.82h-54.73v-56.8h-54.711v113.62H37V.036z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Login Screen ---- */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-screen.hidden {
    display: none;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary), var(--accent));
}

.login-card h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-card .login-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.login-input-group {
    position: relative;
    margin-bottom: 20px;
}

.login-input-group input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.login-input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.login-input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.login-btn:active {
    transform: translateY(0);
}

.login-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 14px;
    display: none;
}

.login-error.show {
    display: block;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-4px); }
}

/* ---- Admin Dashboard ---- */
.admin-dashboard {
    display: none;
    min-height: 100vh;
}

.admin-dashboard.active {
    display: block;
}

/* ---- Top Bar ---- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 30px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-left h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.topbar-left .badge {
    padding: 4px 10px;
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-light);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.topbar-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.topbar-btn.danger {
    color: var(--danger);
}

.topbar-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* ---- Dashboard Content ---- */
.dashboard-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ---- Stats Bar ---- */
.stats-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    text-align: center;
}

.stat-card .stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Add Link Section ---- */
.add-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: var(--accent);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select {
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.color-preview {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-preview input[type="color"] {
    width: 42px;
    height: 42px;
    padding: 2px;
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.color-preview input[type="text"] {
    flex: 1;
}

.add-btn {
    grid-column: 1 / -1;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.add-btn:active {
    transform: translateY(0);
}

/* ---- Links List ---- */
.links-list-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: grab;
}

.admin-link-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.admin-link-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.admin-link-item .drag-handle {
    color: var(--text-muted);
    cursor: grab;
    font-size: 1rem;
    padding: 4px;
}

.admin-link-item .drag-handle:hover {
    color: var(--text-secondary);
}

.admin-link-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.admin-link-info {
    flex: 1;
    min-width: 0;
}

.admin-link-info .link-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.admin-link-info .link-url {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-link-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.action-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.action-btn.edit:hover {
    color: var(--accent);
    border-color: rgba(168, 85, 247, 0.3);
}

.action-btn.delete:hover {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 14px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 0.9rem;
}

/* ---- Modal ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal {
    width: 100%;
    max-width: 480px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    animation: slideUp 0.3s ease;
}

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

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.modal .form-grid {
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.modal-btn.cancel {
    background: var(--bg-card);
    color: var(--text-primary);
}

.modal-btn.cancel:hover {
    background: var(--bg-card-hover);
}

.modal-btn.save {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff;
    border: none;
}

.modal-btn.save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* ---- Toast Notification ---- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.toast.success {
    background: var(--success);
    color: #fff;
}

.toast.error {
    background: var(--danger);
    color: #fff;
}

.toast.hide {
    animation: toastOut 0.3s ease forwards;
}

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

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

/* ---- Icon Picker ---- */
.icon-picker-wrapper {
    position: relative;
}

.icon-picker-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    width: 100%;
}

.icon-picker-trigger:hover {
    border-color: var(--border-hover);
}

.icon-picker-trigger .selected-icon {
    font-size: 1.1rem;
}

.icon-picker-trigger .selected-text {
    flex: 1;
    color: var(--text-secondary);
}

.icon-picker-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.icon-picker-dropdown.open {
    display: block;
    animation: fadeIn 0.2s ease;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.icon-option {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid transparent;
    transition: var(--transition);
}

.icon-option:hover {
    color: var(--accent);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.icon-option.selected {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(168, 85, 247, 0.1);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card-hover);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .topbar {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .topbar-right {
        width: 100%;
        justify-content: flex-end;
    }

    .dashboard-content {
        padding: 20px 14px;
    }

    .stats-bar {
        flex-direction: column;
        gap: 10px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .add-section,
    .links-list-section {
        padding: 20px 16px;
    }

    .admin-link-item {
        flex-wrap: wrap;
    }

    .admin-link-info {
        flex: 1;
        min-width: calc(100% - 120px);
    }

    .modal {
        padding: 24px 20px;
    }

    .icon-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ========================================
   POSITION SETTINGS STYLES
   ======================================== */
.position-section {
    margin-top: 30px;
}

.position-preview {
    width: 100%;
    height: 300px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-position: 0 0, 25px 25px;
    background-size: 50px 50px;
}

.preview-float-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 250px;
}

.preview-character {
    position: relative;
    z-index: 10;
    margin-bottom: -40px;
}

.preview-character img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.preview-hoverboard {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.preview-link-placeholder {
    width: 100%;
    height: 30px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.preview-wardrobe-shell {
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
}

.preview-wardrobe-toggle {
    position: absolute;
    left: 0;
    top: 76px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(230, 57, 70, 0.55);
    background: rgba(10, 12, 18, 0.88);
    color: rgba(255, 255, 255, 0.86);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.7rem;
    box-shadow: 0 0 18px rgba(230, 57, 70, 0.18);
}

.preview-wardrobe-toggle span {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.preview-wardrobe-toggle small {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.45rem;
    letter-spacing: 0.08em;
    color: var(--accent-light);
}

.preview-wardrobe-panel {
    position: absolute;
    inset: 0;
    transform-origin: center top;
}

.preview-wardrobe-bracket {
    position: absolute;
    top: 36px;
    width: 20px;
    height: 120px;
    border-color: rgba(230, 57, 70, 0.8);
    filter: drop-shadow(0 0 8px rgba(230, 57, 70, 0.34));
}

.preview-wardrobe-bracket-left {
    left: calc(50% - 74px);
    border-left: 3px solid rgba(230, 57, 70, 0.82);
    border-radius: 8px 0 0 8px;
}

.preview-wardrobe-bracket-right {
    right: calc(50% - 74px);
    border-right: 3px solid rgba(230, 57, 70, 0.82);
    border-radius: 0 8px 8px 0;
}

.preview-wardrobe-left-card,
.preview-wardrobe-right-card {
    position: absolute;
    border: 1px solid rgba(230, 57, 70, 0.22);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(10, 12, 18, 0.68), rgba(10, 12, 18, 0.18));
    backdrop-filter: blur(4px);
    box-shadow: 0 0 24px rgba(230, 57, 70, 0.09);
    font-family: 'Space Grotesk', sans-serif;
}

.preview-wardrobe-left-card {
    left: -52px;
    top: 28px;
    width: 120px;
    padding: 9px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preview-wardrobe-left-card span,
.preview-wardrobe-right-card b {
    color: var(--accent-light);
    font-size: 0.48rem;
    letter-spacing: 0.12em;
}

.preview-wardrobe-left-card strong {
    color: var(--text-primary);
    font-size: 0.72rem;
}

.preview-wardrobe-left-card em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.58rem;
    padding: 4px 6px;
    border-radius: 7px;
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.12);
}

.preview-wardrobe-right-card {
    right: -42px;
    top: 34px;
    width: 84px;
    min-height: 116px;
    padding: 9px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-wardrobe-right-card span {
    display: block;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.22));
}

.preview-wardrobe-right-card span:nth-child(2) { width: 34px; }
.preview-wardrobe-right-card span:nth-child(3) { width: 54px; }
.preview-wardrobe-right-card span:nth-child(4) { width: 28px; }
.preview-wardrobe-right-card span:nth-child(5) { width: 44px; }

.position-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.slider-group {
    background: var(--bg-card);
    padding: 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.slider-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.slider-group label i {
    color: var(--accent);
    margin-right: 8px;
}

.slider-value {
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    margin-left: auto;
    margin-right: 2px;
}

.pos-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    outline: none;
}

.pos-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: transform 0.2s;
}

.pos-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.position-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

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

/* Device Tabs */
.device-tabs {
    display: flex;
    gap: 5px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.device-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.device-btn:hover {
    color: var(--text-primary);
}

.device-btn.active {
    background: var(--bg-card-hover);
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Mobile Preview Mode */
.position-preview.mobile {
    max-width: 320px;
    margin: 0 auto 20px;
    border: 2px solid var(--border-hover);
    border-radius: 30px; /* Looks like a phone */
}

/* ---- Robust Kick Icon Rendering ---- */
i.custom-kick,
.icon-option .custom-kick,
.admin-link-icon .custom-kick,
.selected-icon.custom-kick {
    display: inline-block;
    width: 1em;
    height: 1em;
    min-width: 1em;
    background-color: currentColor;
    font-style: normal;
    vertical-align: -0.125em;
}
