/* ========================================
   FarPaper Panel - CSS Styles
   Light Theme with Coral Primary
   ======================================== */

/* CSS Variables */
:root {
    --panel-primary: #FF5A68;
    --panel-primary-hover: #E84855;
    --panel-primary-light: rgba(255, 90, 104, 0.1);
    --panel-secondary: #6B7280;
    --panel-success: #10B981;
    --panel-danger: #EF4444;
    --panel-warning: #F59E0B;
    --panel-bg: #F8FAFC;
    --panel-surface: #FFFFFF;
    --panel-surface-2: #F1F5F9;
    --panel-surface-3: #E2E8F0;
    --panel-border: #E2E8F0;
    --panel-text: #1E293B;
    --panel-text-muted: #64748B;
    --panel-text-dim: #94A3B8;
    --panel-shadow: rgba(0, 0, 0, 0.08);
    --panel-sidebar-width: 260px;
    --panel-header-height: 64px;
    --panel-transition: 0.2s ease;
    --panel-radius: 8px;
    --panel-radius-lg: 12px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* ========================================
   Authentication Styles
   ======================================== */
.auth-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-y: auto;
    padding: 24px 16px;
    z-index: 9999;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--panel-surface);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 1;
    margin: auto;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo svg {
    width: 56px;
    height: 56px;
    color: var(--panel-primary);
    margin-bottom: 16px;
}

.auth-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--panel-text);
    margin-bottom: 8px;
}

.auth-logo p {
    font-size: 14px;
    color: var(--panel-text-muted);
}

.auth-form h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--panel-text);
    margin-bottom: 24px;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--panel-text);
    margin-bottom: 8px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--panel-border);
    border-radius: 10px;
    background: var(--panel-surface);
    color: var(--panel-text);
    transition: all 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--panel-primary);
    box-shadow: 0 0 0 4px var(--panel-primary-light);
}

.auth-form input::placeholder {
    color: var(--panel-text-dim);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--panel-text-muted);
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--panel-text);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.input-hint {
    display: block;
    font-size: 12px;
    color: var(--panel-text-dim);
    margin-top: 6px;
}

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

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--panel-text-muted);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--panel-border);
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--panel-primary);
}

.forgot-link {
    font-size: 14px;
    color: var(--panel-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--panel-primary-hover);
    text-decoration: underline;
}

.auth-error {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #DC2626;
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 16px;
}

.btn .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn .spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--panel-text-muted);
}

.auth-footer a {
    color: var(--panel-primary);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Auth Background Animation */
.auth-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.auth-bg-shape:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.auth-bg-shape:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.auth-bg-shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(10px, 10px) scale(1.02);
    }
}

/* User Menu in Header */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--panel-surface-2);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu-trigger:hover {
    background: var(--panel-surface-3);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--panel-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-initials {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--panel-text);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-workspace {
    font-size: 11px;
    color: var(--panel-text-muted);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--panel-shadow);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.user-menu.open .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--panel-text);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.user-menu-item:hover {
    background: var(--panel-surface-2);
}

.user-menu-item svg {
    width: 18px;
    height: 18px;
    color: var(--panel-text-muted);
}

.user-menu-item.danger {
    color: var(--panel-danger);
}

.user-menu-item.danger svg {
    color: var(--panel-danger);
}

.user-menu-divider {
    height: 1px;
    background: var(--panel-border);
    margin: 8px 0;
}

.user-menu-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--panel-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px 4px;
}

.workspace-item {
    justify-content: flex-start;
}

/* Scrollable workspace list */
.workspace-list-scroll {
    max-height: 200px;
    overflow-y: auto;
    margin: 0 -8px;
    padding: 0 8px;
}

.workspace-list-scroll::-webkit-scrollbar {
    width: 6px;
}

.workspace-list-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.workspace-list-scroll::-webkit-scrollbar-thumb {
    background: var(--panel-border);
    border-radius: 3px;
}

.workspace-list-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--panel-text-dim);
}

.workspace-item .ws-indicator {
    width: 16px;
    color: var(--panel-primary);
    font-weight: bold;
}

.workspace-item .ws-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-item .ws-role {
    font-size: 10px;
    color: var(--panel-text-dim);
    background: var(--panel-surface-2);
    padding: 2px 6px;
    border-radius: 4px;
}

.workspace-item.active {
    background: var(--panel-primary-light);
}

.admin-item {
    color: var(--panel-primary);
}

.admin-item svg {
    color: var(--panel-primary);
}

/* Responsive Auth */
@media (max-width: 480px) {
    .auth-card {
        margin: 16px;
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--panel-bg);
    color: var(--panel-text);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   Layout
   ======================================== */
.panel-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ========================================
   Sidebar
   ======================================== */
.panel-sidebar {
    width: var(--panel-sidebar-width);
    background: var(--panel-surface);
    border-right: 1px solid var(--panel-border);
    box-shadow: 2px 0 8px var(--panel-shadow);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    height: var(--panel-header-height);
    padding: 0 20px;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
}

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

.logo svg {
    width: 32px;
    height: 32px;
    fill: var(--panel-primary);
}

.logo span {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--panel-primary), #FF8A5B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

/* Sidebar Section Header */
.sidebar-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--panel-text-dim);
}

.sidebar-actions {
    display: flex;
    gap: 4px;
}

.sidebar-action-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--panel-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--panel-transition);
}

.sidebar-action-btn svg {
    width: 14px;
    height: 14px;
}

.sidebar-action-btn:hover {
    background: var(--panel-surface-2);
    color: var(--panel-text);
}

/* Catalog Tree */
.catalog-tree {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 4px;
}

.tree-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    text-align: center;
    color: var(--panel-text-muted);
}

.tree-empty p {
    margin-bottom: 12px;
    font-size: 13px;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--panel-radius);
    color: var(--panel-text-muted);
    cursor: pointer;
    transition: all var(--panel-transition);
    position: relative;
    user-select: none;
}

.tree-item:hover {
    background: var(--panel-surface-2);
    color: var(--panel-text);
}

.tree-item.active {
    background: var(--panel-primary-light);
    color: var(--panel-text);
}

.tree-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--panel-primary);
    border-radius: 0 2px 2px 0;
}

.tree-item-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tree-item-icon svg {
    width: 16px;
    height: 16px;
}

.tree-item-name {
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tree-item-actions {
    display: none;
    gap: 2px;
}

.tree-item:hover .tree-item-actions {
    display: flex;
}

.tree-item-btn {
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--panel-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--panel-transition);
}

.tree-item-btn svg {
    width: 14px;
    height: 14px;
}

.tree-item-btn:hover {
    background: var(--panel-surface-3);
    color: var(--panel-text);
}

/* Tree Folder */
.tree-folder {
    margin-bottom: 4px;
}

.tree-folder-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: var(--panel-radius);
    color: var(--panel-text-muted);
    cursor: pointer;
    transition: all var(--panel-transition);
}

.tree-folder-header:hover {
    background: var(--panel-surface-2);
    color: var(--panel-text);
}

.tree-folder-toggle {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--panel-transition);
}

.tree-folder-toggle svg {
    width: 12px;
    height: 12px;
}

.tree-folder.collapsed .tree-folder-toggle {
    transform: rotate(-90deg);
}

.tree-folder-icon svg {
    width: 16px;
    height: 16px;
    color: var(--panel-warning);
}

.tree-folder-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.tree-folder-children {
    padding-left: 20px;
    overflow: hidden;
}

.tree-folder.collapsed .tree-folder-children {
    display: none;
}

/* Folder actions */
.tree-folder-actions {
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.tree-folder-header:hover .tree-folder-actions {
    opacity: 1;
}

/* Drag & Drop styles */
.tree-item.dragging,
.tree-folder.dragging {
    opacity: 0.5;
}

.tree-folder.drag-over > .tree-folder-header {
    background: var(--panel-primary-light);
    border-radius: var(--panel-radius);
}

.catalog-tree.drag-over-root {
    background: var(--panel-primary-light);
    border-radius: var(--panel-radius);
}

.tree-item[draggable="true"],
.tree-folder-header[draggable="true"] {
    cursor: grab;
}

.tree-item[draggable="true"]:active,
.tree-folder-header[draggable="true"]:active {
    cursor: grabbing;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--panel-radius);
    color: var(--panel-text-muted);
    text-decoration: none;
    transition: all var(--panel-transition);
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-item:hover {
    background: var(--panel-surface-2);
    color: var(--panel-text);
}

.nav-item.active {
    background: var(--panel-primary);
    color: var(--panel-text);
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--panel-border);
}

/* ========================================
   Main Content
   ======================================== */
.panel-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    height: var(--panel-header-height);
    padding: 0 24px;
    background: var(--panel-surface);
    border-bottom: 1px solid var(--panel-border);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.header-left h1 {
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.panel-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.content-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 24px;
    overflow: auto;
    display: none;
}

.content-section.active {
    display: block;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--panel-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--panel-transition);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--panel-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--panel-primary-hover);
}

.btn-secondary {
    background: var(--panel-surface-2);
    color: var(--panel-text);
}

.btn-secondary:hover {
    background: var(--panel-surface-3);
}

.btn-danger {
    background: var(--panel-danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Product action buttons */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.product-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-actions .btn svg {
    flex-shrink: 0;
}

.product-actions .btn.has-changes {
    background: var(--panel-warning, #f59e0b);
    animation: pulse-save 1s ease-in-out infinite;
}

@keyframes pulse-save {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--panel-surface-2);
    color: var(--panel-text);
}

.btn-icon:hover {
    background: var(--panel-surface-3);
}

/* ========================================
   Catalog Grid
   ======================================== */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.catalog-card {
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius-lg);
    overflow: hidden;
    transition: all var(--panel-transition);
    cursor: pointer;
}

.catalog-card:hover {
    border-color: var(--panel-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--panel-shadow);
}

.catalog-card-new {
    border-style: dashed;
    border-width: 2px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-card-new:hover {
    background: var(--panel-surface-2);
}

.catalog-card-content {
    text-align: center;
    padding: 40px 20px;
}

.catalog-card-content svg {
    width: 48px;
    height: 48px;
    stroke: var(--panel-text-muted);
    margin-bottom: 16px;
}

.catalog-card-content span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.catalog-card-content p {
    font-size: 13px;
    color: var(--panel-text-dim);
}

.catalog-card-preview {
    height: 160px;
    background: var(--panel-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.catalog-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-card-info {
    padding: 16px;
}

.catalog-card-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.catalog-card-info p {
    font-size: 13px;
    color: var(--panel-text-muted);
}

.catalog-card-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--panel-text-dim);
}

/* ========================================
   Editor
   ======================================== */
.editor-container {
    display: flex;
    height: 100%;
    gap: 0;
    margin: -24px;
}

.editor-sidebar {
    width: 280px;
    background: var(--panel-surface);
    border-right: 1px solid var(--panel-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.editor-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.editor-sidebar-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.page-count {
    font-size: 12px;
    color: var(--panel-text-muted);
}

.editor-thumbnails {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.editor-thumbnail {
    position: relative;
    border-radius: var(--panel-radius);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all var(--panel-transition);
    background: var(--panel-surface-2);
    flex-shrink: 0;
}

.editor-thumbnail:hover {
    border-color: var(--panel-surface-3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.editor-thumbnail.active {
    border-color: var(--panel-primary);
    box-shadow: 0 0 0 2px var(--panel-primary);
}

/* Spread container */
.editor-thumbnail-spread {
    display: flex;
    gap: 3px;
    padding: 6px;
    justify-content: center;
    align-items: stretch;
    background: var(--panel-surface-2);
}

.editor-thumbnail-page {
    flex: 1;
    max-width: 50%;
    position: relative;
    cursor: pointer;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-thumbnail-page:hover {
    outline: 2px solid var(--panel-primary);
}

/* Single page spread */
.editor-thumbnail-spread:has(.editor-thumbnail-page:only-child) .editor-thumbnail-page {
    max-width: 60%;
}

.editor-thumbnail-page img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.editor-thumb-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--panel-primary);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 18px;
    text-align: center;
    font-weight: 600;
}

.editor-thumbnail img {
    width: 100%;
    display: block;
}

.editor-thumbnail-number {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--panel-text-muted);
    padding: 6px 0;
    background: var(--panel-surface-3);
}

.editor-thumbnail-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--panel-primary);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Editor Main */
.editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--panel-bg);
}

.editor-toolbar {
    height: 48px;
    background: var(--panel-surface);
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 16px;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-group:not(:last-child)::after {
    content: '';
    width: 1px;
    height: 24px;
    background: var(--panel-border);
    margin-left: 12px;
}

.toolbar-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--panel-radius);
    background: transparent;
    color: var(--panel-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--panel-transition);
}

.toolbar-btn svg {
    width: 18px;
    height: 18px;
}

.toolbar-btn:hover {
    background: var(--panel-surface-2);
    color: var(--panel-text);
}

.toolbar-btn.active {
    background: var(--panel-primary);
    color: white;
}

.toolbar-btn.danger:hover {
    background: var(--panel-danger);
    color: white;
}

.toolbar-zoom-level {
    font-size: 13px;
    color: var(--panel-text-muted);
    min-width: 50px;
    text-align: center;
}

/* Editor Canvas */
.editor-canvas-wrapper {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.editor-canvas {
    position: relative;
    background: white;
    box-shadow: 0 4px 20px var(--panel-shadow);
    display: none;
}

.editor-canvas.active {
    display: block;
}

.editor-canvas img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 200px);
    user-select: none;
}

.editor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.editor-no-page {
    text-align: center;
    color: var(--panel-text-muted);
}

.editor-no-page svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.editor-canvas.active .editor-no-page {
    display: none;
}

/* Editor Product Marker */
.editor-product-marker {
    position: absolute;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
    cursor: move;
    z-index: 10;
}

.editor-product-marker-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--panel-primary);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--panel-transition);
}

.editor-product-marker-inner svg {
    width: 16px;
    height: 16px;
}

.editor-product-marker:hover .editor-product-marker-inner,
.editor-product-marker.selected .editor-product-marker-inner {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(255, 90, 104, 0.4);
}

.editor-product-marker.selected .editor-product-marker-inner {
    border-color: var(--panel-success);
}

/* Editor Hotspot */
.editor-hotspot {
    position: absolute;
    background: rgba(255, 90, 104, 0.15);
    border: 2px dashed var(--panel-primary);
    cursor: move;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.editor-hotspot:hover {
    background: rgba(255, 90, 104, 0.25);
}

.editor-hotspot.selected {
    border-style: solid;
    border-color: var(--panel-success);
    background: rgba(76, 175, 80, 0.15);
}

.editor-hotspot.drawing {
    border-style: dotted;
    background: rgba(255, 90, 104, 0.2);
    pointer-events: none;
}

.editor-hotspot-inner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.8;
    transition: all 0.2s;
}

.editor-hotspot:hover .editor-hotspot-inner {
    opacity: 1;
    transform: scale(1.1);
}

.editor-hotspot-inner svg {
    margin-left: 4px; /* Visual centering for play icon */
}

.editor-hotspot-label {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.editor-hotspot-resize {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 12px;
    height: 12px;
    background: var(--panel-primary);
    border: 2px solid white;
    border-radius: 2px;
    cursor: se-resize;
    z-index: 10;
}

.editor-hotspot.selected .editor-hotspot-resize {
    background: var(--panel-success);
}

/* Editor Properties Panel */
.editor-properties {
    width: 280px;
    background: var(--panel-surface);
    border-left: 1px solid var(--panel-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.properties-header {
    padding: 16px;
    border-bottom: 1px solid var(--panel-border);
}

.properties-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.properties-section {
    padding: 16px;
    border-bottom: 1px solid var(--panel-border);
}

.properties-section.hidden {
    display: none;
}

.properties-section h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--panel-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.empty-message {
    color: var(--panel-text-dim);
    font-size: 13px;
    text-align: center;
    padding: 20px;
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--panel-text-muted);
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group textarea,
.form-group select,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius);
    background: var(--panel-surface-2);
    color: var(--panel-text);
    font-size: 14px;
    transition: border-color var(--panel-transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-select:focus {
    outline: none;
    border-color: var(--panel-primary);
}

.form-group input[type="color"] {
    width: 100%;
    height: 40px;
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius);
    background: var(--panel-surface-2);
    cursor: pointer;
}

.form-group input[type="range"] {
    width: calc(100% - 50px);
    margin-right: 8px;
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--panel-text-dim);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--panel-primary);
}

/* ========================================
   Settings
   ======================================== */
.settings-container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-card {
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius-lg);
    padding: 24px;
}

.settings-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
}

/* Settings Save Card */
.settings-save-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--panel-surface);
    border: 2px solid var(--panel-primary);
}

.settings-save-card .btn-lg {
    padding: 12px 32px;
    font-size: 16px;
    gap: 10px;
}

.settings-save-status {
    font-size: 14px;
    color: var(--panel-success);
}

.settings-save-status.saving {
    color: var(--panel-text-muted);
}

/* Feed Preview */
.feed-preview {
    background: var(--panel-surface-2);
    border-radius: var(--panel-radius);
    padding: 16px;
    margin-top: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.feed-preview.hidden {
    display: none;
}

.feed-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--panel-border);
}

.feed-preview-header h4 {
    margin: 0;
    font-size: 14px;
    color: var(--panel-text);
}

.feed-preview-count {
    background: var(--panel-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.feed-product-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feed-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: var(--panel-surface);
    border-radius: var(--panel-radius);
    border: 1px solid var(--panel-border);
}

.feed-product-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--panel-surface-2);
}

.feed-product-info {
    flex: 1;
    min-width: 0;
}

.feed-product-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--panel-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-product-id {
    font-size: 11px;
    color: var(--panel-text-muted);
}

.feed-product-stock {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

.feed-product-stock.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: var(--panel-success);
}

.feed-product-stock.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--panel-danger);
}

/* Feed URL Display */
.feed-url-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--panel-surface-2);
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius);
    margin-bottom: 16px;
}

.feed-url-display.hidden {
    display: none;
}

.feed-url-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feed-url-label {
    font-size: 11px;
    color: var(--panel-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feed-url-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--panel-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.feed-url-link:hover {
    text-decoration: underline;
}

.feed-url-link svg {
    flex-shrink: 0;
}

.feed-url-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* Input with Button */
.input-with-button {
    display: flex;
    gap: 8px;
}

.input-with-button input {
    flex: 1;
}

.input-with-button .btn {
    flex-shrink: 0;
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    border: none;
    color: var(--panel-text-muted);
    padding: 6px;
    cursor: pointer;
    border-radius: var(--panel-radius-sm);
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: var(--panel-surface);
    color: var(--panel-primary);
}

/* Match Results */
.match-results {
    background: var(--panel-surface-2);
    border-radius: var(--panel-radius);
    padding: 16px;
    margin-top: 12px;
}

.match-results.hidden {
    display: none;
}

.match-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.match-results-header h4 {
    margin: 0;
    font-size: 14px;
}

.match-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.match-stat {
    text-align: center;
}

.match-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--panel-primary);
}

.match-stat-label {
    font-size: 11px;
    color: var(--panel-text-muted);
}

.match-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* ========================================
   Preview
   ======================================== */
.preview-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: -24px;
    overflow-y: auto;
}

.preview-main {
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.preview-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: -24px;
}

.preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--panel-surface);
    border-bottom: 1px solid var(--panel-border);
}

.preview-tabs {
    display: flex;
    gap: 8px;
}

.preview-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--panel-radius);
    background: transparent;
    color: var(--panel-text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--panel-transition);
}

.preview-tab svg {
    width: 18px;
    height: 18px;
}

.preview-tab:hover {
    background: var(--panel-surface-2);
    color: var(--panel-text);
}

.preview-tab.active {
    background: var(--panel-primary);
    color: white;
}

.preview-actions {
    display: flex;
    gap: 12px;
}

.preview-frame-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--panel-bg);
    overflow: hidden;
    min-height: 500px;
}

.preview-frame-wrapper.preview-frame-large {
    min-height: 650px;
}

.preview-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    border: none;
    border-radius: var(--panel-radius-lg);
    box-shadow: 0 10px 40px var(--panel-shadow);
    background: white;
    transition: all 0.3s ease;
}

.preview-frame-wrapper.tablet iframe {
    max-width: 768px;
    height: 80%;
}

.preview-frame-wrapper.mobile iframe {
    max-width: 375px;
    height: 80%;
}

/* Preview Settings Panel */
.preview-settings {
    background: var(--panel-surface);
    border-top: 1px solid var(--panel-border);
    padding: 20px 24px;
}

.preview-settings-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.preview-settings-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.preview-settings-header small {
    color: var(--panel-text-muted);
    font-size: 12px;
}

.preview-settings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.preview-settings-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius);
    padding: 16px;
}

.preview-settings-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--panel-text);
}

.preview-settings-card .form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.preview-settings-card .form-row:last-child {
    margin-bottom: 0;
}

.preview-settings-card .form-row.checkboxes {
    flex-wrap: wrap;
    gap: 8px;
}

.preview-settings-card .form-group {
    flex: 1;
    margin-bottom: 0;
}

.preview-settings-card .form-group label {
    font-size: 11px;
    color: var(--panel-text-muted);
    margin-bottom: 4px;
}

.preview-settings-card select,
.preview-settings-card input[type="color"] {
    width: 100%;
    padding: 6px 8px;
    font-size: 12px;
}

.preview-settings-card input[type="color"] {
    height: 32px;
    padding: 2px;
}

.preview-settings-card input[type="range"] {
    width: 100%;
}

.preview-settings-card input[type="url"],
.preview-settings-card input[type="text"] {
    width: 100%;
    padding: 6px 8px;
    font-size: 12px;
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius);
    background: var(--panel-bg);
    color: var(--panel-text);
}

.preview-settings-card input:disabled,
.preview-settings-card .input-disabled {
    background: var(--panel-surface);
    color: var(--panel-text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

.preview-settings-card small {
    display: block;
    font-size: 10px;
    color: var(--panel-text-muted);
    margin-top: 4px;
}

.checkbox-label.compact {
    font-size: 12px;
    padding: 6px 10px;
    background: var(--panel-surface);
    border-radius: var(--panel-radius);
    border: 1px solid var(--panel-border);
}

.checkbox-label.compact span {
    font-size: 11px;
}

.preview-settings-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--panel-border);
}

.preview-settings-note {
    font-size: 12px;
    color: var(--panel-text-muted);
}

/* Responsive preview settings */
@media (max-width: 1400px) {
    .preview-settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.embed-code-section {
    padding: 24px;
    background: var(--panel-surface);
    border-top: 1px solid var(--panel-border);
}

.embed-code-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.embed-code-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.embed-code-wrapper code {
    flex: 1;
    padding: 12px 16px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius);
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 13px;
    color: var(--panel-text-muted);
    overflow-x: auto;
    white-space: nowrap;
}

/* ========================================
   Modal
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--panel-surface);
    border-radius: var(--panel-radius-lg);
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--panel-border);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: var(--panel-text-muted);
    font-size: 24px;
    cursor: pointer;
    border-radius: var(--panel-radius);
    transition: all var(--panel-transition);
}

.modal-close:hover {
    background: var(--panel-surface-2);
    color: var(--panel-text);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--panel-border);
}

/* Delete Options */
.delete-options-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delete-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-option:hover {
    background: var(--panel-surface-1);
}

.delete-option input[type="radio"] {
    margin-top: 2px;
    accent-color: var(--panel-primary);
}

.delete-option input[type="radio"]:checked + .option-content .option-title {
    color: var(--panel-primary);
}

.delete-option-danger input[type="radio"]:checked + .option-content .option-title {
    color: var(--panel-danger);
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option-title {
    font-weight: 500;
    font-size: 14px;
}

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

.delete-option-danger {
    border-color: rgba(239, 68, 68, 0.3);
}

.delete-option-danger:hover {
    background: rgba(239, 68, 68, 0.05);
}

/* Processing Modal */
.modal-processing {
    text-align: center;
    padding: 40px;
    max-width: 360px;
}

.processing-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid var(--panel-surface-2);
    border-top-color: var(--panel-primary);
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal-processing h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.modal-processing p {
    color: var(--panel-text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.processing-progress {
    height: 8px;
    background: var(--panel-surface-2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--panel-primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* Upload Modal */
.modal-upload {
    max-width: 480px;
    width: 100%;
}

.upload-dropzone {
    border: 2px dashed var(--panel-border);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--panel-surface);
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
    border-color: var(--panel-primary);
    background: rgba(37, 99, 235, 0.05);
}

.upload-dropzone.has-file {
    display: none;
}

.dropzone-icon {
    width: 48px;
    height: 48px;
    color: var(--panel-text-muted);
    margin-bottom: 16px;
}

.upload-dropzone:hover .dropzone-icon,
.upload-dropzone.drag-over .dropzone-icon {
    color: var(--panel-primary);
}

.dropzone-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--panel-text);
    margin-bottom: 4px;
}

.dropzone-hint {
    font-size: 14px;
    color: var(--panel-text-muted);
    margin-bottom: 8px;
}

.dropzone-browse {
    color: var(--panel-primary);
    cursor: pointer;
    text-decoration: underline;
}

.dropzone-limit {
    font-size: 12px;
    color: var(--panel-text-muted);
}

.upload-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
}

.upload-file-info.hidden {
    display: none;
}

.upload-file-info .file-icon {
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.upload-file-info .file-icon svg {
    width: 20px;
    height: 20px;
    color: #ef4444;
}

.upload-file-info .file-details {
    flex: 1;
    min-width: 0;
}

.upload-file-info .file-name {
    display: block;
    font-weight: 500;
    color: var(--panel-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-file-info .file-size {
    font-size: 12px;
    color: var(--panel-text-muted);
}

.upload-file-info .file-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--panel-text-muted);
    transition: all 0.2s;
}

.upload-file-info .file-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.upload-file-info .file-remove svg {
    width: 16px;
    height: 16px;
}

.upload-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--panel-border);
}

.modal-upload .modal-footer {
    gap: 12px;
}

.modal-upload .btn-primary svg {
    margin-right: 6px;
}

.modal-upload .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.processing-percent {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: var(--panel-text-muted);
}

/* Upload File List (Multiple Files) */
.upload-file-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.upload-file-list.hidden {
    display: none;
}

.upload-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
}

.upload-file-item .file-icon {
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.upload-file-item .file-icon svg {
    width: 16px;
    height: 16px;
    color: #ef4444;
}

.upload-file-item .file-details {
    flex: 1;
    min-width: 0;
}

.upload-file-item .file-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--panel-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-file-item .file-size {
    font-size: 11px;
    color: var(--panel-text-muted);
}

.upload-file-item .file-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--panel-text-muted);
    transition: all 0.2s;
    flex-shrink: 0;
}

.upload-file-item .file-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.upload-file-item .file-remove svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   Dashboard Queue Section
   ======================================== */
.dashboard-queue-section {
    margin-bottom: 24px;
}

.dashboard-queue-section.hidden {
    display: none;
}

.dashboard-card-full {
    width: 100%;
}

.dashboard-card-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.queue-count-badge {
    background: var(--panel-primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    transition: all 0.2s;
}

.queue-item:hover {
    border-color: var(--panel-primary);
}

.queue-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.queue-item-icon svg {
    width: 20px;
    height: 20px;
}

.queue-item-icon.uploading {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.queue-item-icon.queued {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.queue-item-icon.processing {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.queue-item-icon.completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.queue-item-icon.failed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.queue-item-info {
    flex: 1;
    min-width: 0;
}

.queue-item-name {
    font-weight: 500;
    color: var(--panel-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.queue-item-status {
    font-size: 12px;
    color: var(--panel-text-muted);
}

.queue-item-progress {
    width: 120px;
    flex-shrink: 0;
}

.queue-progress-bar {
    height: 6px;
    background: var(--panel-surface-2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.queue-progress-fill {
    height: 100%;
    background: var(--panel-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.queue-progress-fill.completed {
    background: #10b981;
}

.queue-progress-fill.failed {
    background: #ef4444;
}

.queue-progress-text {
    font-size: 11px;
    color: var(--panel-text-muted);
    text-align: right;
}

.queue-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.queue-item-action {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--panel-text-muted);
    transition: all 0.2s;
}

.queue-item-action:hover {
    background: var(--panel-surface-2);
    color: var(--panel-text);
}

.queue-item-action.success:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.queue-item-action.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.queue-item-action svg {
    width: 16px;
    height: 16px;
}

/* Spinning animation for processing icon */
.queue-item-icon.processing svg,
.queue-item-icon.uploading svg {
    animation: spin 1.5s linear infinite;
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1001;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius);
    box-shadow: 0 10px 30px var(--panel-shadow);
    animation: slideInRight 0.3s ease;
    min-width: 280px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--panel-success);
}

.toast.error {
    border-left: 4px solid var(--panel-danger);
}

.toast.warning {
    border-left: 4px solid var(--panel-warning);
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--panel-success);
}

.toast.error .toast-icon {
    color: var(--panel-danger);
}

.toast-message {
    flex: 1;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    color: var(--panel-text-muted);
    cursor: pointer;
    padding: 4px;
}

/* ========================================
   Context Menu (Popover)
   ======================================== */
.context-menu {
    position: fixed;
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    min-width: 180px;
    padding: 6px;
    z-index: 1002;
    display: none;
}

.context-menu.active {
    display: block;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    background: none;
    color: var(--panel-text);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: all var(--panel-transition);
}

.context-menu-item svg {
    width: 16px;
    height: 16px;
    color: var(--panel-text-muted);
}

.context-menu-item:hover {
    background: var(--panel-surface-2);
}

.context-menu-item.danger {
    color: var(--panel-danger);
}

.context-menu-item.danger svg {
    color: var(--panel-danger);
}

.context-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.context-menu-divider {
    height: 1px;
    background: var(--panel-border);
    margin: 6px 0;
}

/* ========================================
   Welcome Section
   ======================================== */
.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    color: var(--panel-text-muted);
}

.welcome-icon svg {
    width: 100%;
    height: 100%;
}

.welcome-container h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.welcome-container > p {
    color: var(--panel-text-muted);
    margin-bottom: 32px;
    max-width: 400px;
}

.welcome-actions {
    display: flex;
    gap: 16px;
}

/* ========================================
   Header Tabs
   ======================================== */
.header-tabs {
    display: flex;
    gap: 4px;
    background: var(--panel-surface-2);
    padding: 4px;
    border-radius: var(--panel-radius);
}

.header-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: none;
    color: var(--panel-text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--panel-transition);
}

.header-tab svg {
    width: 16px;
    height: 16px;
}

.header-tab:hover {
    color: var(--panel-text);
}

.header-tab.active {
    background: var(--panel-surface);
    color: var(--panel-text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.header-breadcrumb {
    font-size: 13px;
    color: var(--panel-text-muted);
    margin-top: 2px;
}

/* Responsive header */
@media (max-width: 900px) {
    .panel-header {
        grid-template-columns: auto 1fr auto;
    }
    
    .header-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 100%;
    }
    
    .header-tab {
        padding: 6px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .header-tab span {
        display: none;
    }
    
    .header-tab svg {
        margin: 0;
    }
}

@media (max-width: 640px) {
    .panel-header {
        grid-template-columns: 1fr auto;
        padding: 0 16px;
    }
    
    .header-center {
        display: none;
    }
    
    .header-left h1 {
        font-size: 16px;
    }
}

/* ========================================
   Button Sizes
   ======================================== */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--panel-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--panel-surface-3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--panel-secondary);
}

/* ========================================
   Drag & Drop Highlight
   ======================================== */
.catalog-card-new.drag-over {
    background: var(--panel-primary-light);
    border-color: var(--panel-primary);
}

.catalog-card-new.drag-over svg {
    stroke: var(--panel-primary);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1200px) {
    .editor-properties {
        width: 240px;
    }
}

@media (max-width: 992px) {
    .panel-sidebar {
        width: 60px;
    }

    .sidebar-header .logo span,
    .nav-item span,
    .sidebar-footer .nav-item span {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 12px;
    }

    .editor-sidebar {
        width: 160px;
    }

    .editor-properties {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        z-index: 20;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .editor-properties.active {
        transform: translateX(0);
    }
}

/* ========================================
   Workspace Settings Styles
   ======================================== */

.workspace-container {
    padding: 24px;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.workspace-card {
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 24px;
}

.workspace-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--panel-border);
}

.workspace-card-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.workspace-card-header h3 svg {
    color: var(--panel-text-muted);
}

/* Workspace Header */
.workspace-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.workspace-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.workspace-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workspace-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--panel-primary), var(--panel-primary-dark));
    color: white;
    font-size: 32px;
    font-weight: bold;
}

.workspace-details h2 {
    margin: 0 0 4px;
    font-size: 24px;
}

.workspace-slug {
    color: var(--panel-text-muted);
    font-size: 14px;
    margin: 0;
}

.workspace-desc {
    color: var(--panel-text-dim);
    font-size: 14px;
    margin: 8px 0 0;
}

.workspace-stats {
    display: flex;
    gap: 32px;
}

.workspace-stats .stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.workspace-stats .stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--panel-text);
}

.workspace-stats .stat-label {
    font-size: 13px;
    color: var(--panel-text-muted);
}

/* Members List */
.members-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--panel-surface-2);
    border-radius: 10px;
    transition: background 0.2s;
}

.member-item:hover {
    background: var(--panel-surface-3);
}

.member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--panel-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-avatar span {
    color: var(--panel-primary);
    font-weight: 600;
    font-size: 14px;
}

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

.member-name {
    display: block;
    font-weight: 500;
    color: var(--panel-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-email {
    display: block;
    font-size: 13px;
    color: var(--panel-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-role {
    flex-shrink: 0;
}

.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.role-badge.role-owner {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #333;
}

.role-badge.role-admin {
    background: var(--panel-primary-light);
    color: var(--panel-primary);
}

.role-badge.role-editor {
    background: var(--panel-surface-3);
    color: var(--panel-text);
}

.role-badge.role-viewer {
    background: var(--panel-surface-2);
    color: var(--panel-text-muted);
}

.member-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.member-item:hover .member-actions {
    opacity: 1;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: var(--panel-surface);
    color: var(--panel-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--panel-primary-light);
    color: var(--panel-primary);
}

.btn-icon.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--panel-danger);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

/* Invitations List */
.invitations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.invitation-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--panel-surface-2);
    border-radius: 10px;
}

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

.invitation-email {
    display: block;
    font-weight: 500;
    color: var(--panel-text);
}

.invitation-role {
    display: block;
    font-size: 13px;
    color: var(--panel-text-muted);
}

.invitation-meta {
    flex-shrink: 0;
}

.invitation-expires {
    font-size: 12px;
    color: var(--panel-text-dim);
}

.invitation-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.empty-message {
    text-align: center;
    padding: 24px;
    color: var(--panel-text-muted);
    font-size: 14px;
}

/* Modal Small */
.modal-sm {
    max-width: 440px;
}

/* ========================================
   Analytics Section Styles
   ======================================== */

.analytics-container {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.analytics-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.analytics-header p {
    color: var(--panel-text-muted);
    font-size: 14px;
}

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

.analytics-period-select {
    padding: 8px 12px;
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius);
    background: var(--panel-surface);
    font-size: 14px;
    cursor: pointer;
}

.analytics-realtime {
    margin-bottom: 24px;
}

.realtime-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    font-size: 14px;
    color: var(--panel-success);
}

.realtime-dot {
    width: 8px;
    height: 8px;
    background: var(--panel-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Analytics Cards */
.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.analytics-card {
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.analytics-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.analytics-card-icon svg {
    width: 24px;
    height: 24px;
}

.analytics-card-icon.views {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.analytics-card-icon.visitors {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.analytics-card-icon.downloads {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.analytics-card-icon.shares {
    background: rgba(249, 115, 22, 0.1);
    color: #F97316;
}

.analytics-card-content {
    display: flex;
    flex-direction: column;
}

.analytics-card-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.analytics-card-label {
    font-size: 13px;
    color: var(--panel-text-muted);
}

/* Analytics Charts */
.analytics-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.analytics-chart-card {
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius-lg);
    padding: 20px;
}

.analytics-chart-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.analytics-chart-card.small {
    /* smaller card */
}

.chart-container {
    height: 200px;
    display: flex;
    flex-direction: column;
}

.chart-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding-bottom: 8px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--panel-primary) 0%, rgba(255, 90, 104, 0.6) 100%);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.chart-bar:hover {
    opacity: 0.8;
}

.chart-bar::after {
    content: attr(data-value);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--panel-text-muted);
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.chart-bar:hover::after {
    opacity: 1;
}

/* Stacked Bar Chart Styles */
.chart-bar-stack {
    flex: 1;
    min-width: 4px;
    max-width: 24px;
    height: 100%;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.chart-bar-stack:hover {
    transform: scaleX(1.2);
    z-index: 10;
}

.chart-bar-stack:hover .chart-bar-value {
    opacity: 1;
}

.chart-segment {
    position: absolute;
    left: 1px;
    right: 1px;
    min-height: 2px;
    transition: all 0.3s ease;
}

.chart-segment:only-child {
    border-radius: 3px;
}

.chart-bar-stack:hover .chart-segment {
    filter: brightness(1.15);
    left: 0;
    right: 0;
}

.chart-bar-value {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    color: var(--panel-text);
    padding: 2px 6px;
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
    z-index: 100;
}

/* Empty bar placeholder */
.chart-bar-stack.empty {
    background: var(--panel-surface-2);
    border-radius: 3px;
    opacity: 0.3;
}

/* Chart Legend */
.chart-legend {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--panel-border);
}

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

.legend-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--panel-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend-total {
    font-size: 12px;
    color: var(--panel-text-muted);
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--panel-surface-2);
    border-radius: 8px;
    font-size: 13px;
    cursor: default;
    transition: all 0.2s;
}

.legend-item:hover {
    background: var(--panel-surface);
    transform: translateX(4px);
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-name {
    flex: 1;
    color: var(--panel-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legend-value {
    font-weight: 600;
    color: var(--panel-text);
    font-size: 13px;
    min-width: 40px;
    text-align: right;
}

.legend-percent {
    font-size: 11px;
    color: var(--panel-text-muted);
    min-width: 35px;
    text-align: right;
}

.legend-empty {
    text-align: center;
    padding: 20px;
    color: var(--panel-text-muted);
    font-size: 13px;
}

.chart-labels {
    display: flex;
    gap: 4px;
}

.chart-label {
    flex: 1;
    text-align: center;
    font-size: 10px;
    color: var(--panel-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Device Breakdown */
.device-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.device-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--panel-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.device-icon svg {
    width: 18px;
    height: 18px;
    color: var(--panel-text-muted);
}

.device-info {
    flex: 1;
}

.device-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.device-bar-wrapper {
    height: 6px;
    background: var(--panel-surface-2);
    border-radius: 3px;
    overflow: hidden;
}

.device-bar {
    height: 100%;
    background: var(--panel-primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.device-percent {
    font-size: 13px;
    font-weight: 600;
    color: var(--panel-text-muted);
    min-width: 40px;
    text-align: right;
}

/* Analytics Table */
.analytics-table-card {
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius-lg);
    padding: 20px;
}

.analytics-table-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
}

.analytics-table th,
.analytics-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--panel-border);
}

.analytics-table th {
    font-weight: 600;
    font-size: 13px;
    color: var(--panel-text-muted);
    background: var(--panel-surface-2);
}

.analytics-table th:first-child {
    border-radius: 8px 0 0 8px;
}

.analytics-table th:last-child {
    border-radius: 0 8px 8px 0;
}

.analytics-table tbody tr:hover {
    background: var(--panel-surface-2);
}

.analytics-table td {
    font-size: 14px;
}

.analytics-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--panel-text-muted);
}

.analytics-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Catalog Rank and Name Styles */
.analytics-table td:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalog-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 6px;
    background: var(--panel-primary);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.catalog-rank.deleted {
    background: var(--panel-text-muted);
    opacity: 0.6;
}

.catalog-name {
    font-weight: 500;
}

.catalog-slug-suffix {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    background: var(--panel-surface-2);
    border-radius: 4px;
    font-size: 10px;
    font-family: monospace;
    color: var(--panel-text-muted);
    text-transform: uppercase;
}

.catalog-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
}

.catalog-badge.deleted {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Catalog Row Styles */
.catalog-row.catalog-deleted {
    opacity: 0.7;
    background: var(--panel-surface-2);
}

.catalog-row.catalog-deleted .catalog-name {
    color: var(--panel-text-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(0,0,0,0.2);
}

/* Separator for Deleted Catalogs */
.catalog-separator td {
    padding: 0 !important;
    border: none !important;
}

.separator-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}

.separator-line::before,
.separator-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--panel-border);
}

.separator-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--panel-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .analytics-charts {
        grid-template-columns: 1fr;
    }

    .analytics-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .analytics-cards {
        grid-template-columns: 1fr;
    }

    .analytics-header {
        flex-direction: column;
        gap: 16px;
    }
}

/* ========================================
   Dashboard Section Styles
   ======================================== */

.dashboard-container {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.dashboard-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard-header p {
    color: var(--panel-text-muted);
    font-size: 14px;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-stat-card {
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.dashboard-stat-card:hover {
    border-color: var(--panel-primary);
    box-shadow: 0 4px 12px var(--panel-shadow);
}

.dashboard-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-stat-icon svg {
    width: 24px;
    height: 24px;
}

.dashboard-stat-icon.catalogs {
    background: rgba(255, 90, 104, 0.1);
    color: var(--panel-primary);
}

.dashboard-stat-icon.pages {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.dashboard-stat-icon.products {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.dashboard-stat-icon.views {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.dashboard-stat-content {
    display: flex;
    flex-direction: column;
}

.dashboard-stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.dashboard-stat-label {
    font-size: 13px;
    color: var(--panel-text-muted);
}

/* Dashboard Content Row */
.dashboard-content-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-card {
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius-lg);
    padding: 20px;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dashboard-card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.dashboard-card-link {
    font-size: 13px;
    color: var(--panel-primary);
    text-decoration: none;
}

.dashboard-card-link:hover {
    text-decoration: underline;
}

/* Recent Catalogs List */
.dashboard-recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--panel-surface-2);
    border-radius: var(--panel-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-recent-item:hover {
    background: var(--panel-surface-3);
}

.dashboard-recent-thumb {
    width: 48px;
    height: 64px;
    background: var(--panel-surface-3);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.dashboard-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-recent-info {
    flex: 1;
    min-width: 0;
}

.dashboard-recent-name {
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-recent-meta {
    font-size: 12px;
    color: var(--panel-text-muted);
    display: flex;
    gap: 12px;
}

.dashboard-recent-arrow {
    color: var(--panel-text-muted);
    opacity: 0;
    transition: opacity 0.2s;
}

.dashboard-recent-item:hover .dashboard-recent-arrow {
    opacity: 1;
}

/* Empty State */
.dashboard-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--panel-text-muted);
}

.dashboard-empty svg {
    opacity: 0.3;
    margin-bottom: 12px;
}

.dashboard-empty p {
    margin-bottom: 16px;
}

/* Quick Actions */
.dashboard-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.dashboard-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--panel-surface-2);
    border: none;
    border-radius: var(--panel-radius);
    cursor: pointer;
    font-size: 14px;
    color: var(--panel-text);
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.dashboard-action-btn:hover {
    background: var(--panel-primary-light);
    color: var(--panel-primary);
}

.dashboard-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--panel-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-action-icon svg {
    width: 18px;
    height: 18px;
}

/* Tips */
.dashboard-tips {
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 90, 104, 0.05) 0%, rgba(255, 90, 104, 0.1) 100%);
    border-radius: var(--panel-radius);
    border-left: 3px solid var(--panel-primary);
}

.dashboard-tips h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.dashboard-tips p {
    font-size: 13px;
    color: var(--panel-text-muted);
    line-height: 1.5;
}

/* Performance Grid */
.dashboard-performance {
    margin-bottom: 24px;
}

.dashboard-perf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.dashboard-perf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--panel-surface-2);
    border-radius: var(--panel-radius);
}

.dashboard-perf-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-perf-icon svg {
    width: 20px;
    height: 20px;
}

.dashboard-perf-icon.views {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.dashboard-perf-icon.visitors {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.dashboard-perf-icon.downloads {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.dashboard-perf-icon.shares {
    background: rgba(249, 115, 22, 0.1);
    color: #F97316;
}

.dashboard-perf-content {
    display: flex;
    flex-direction: column;
}

.dashboard-perf-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.dashboard-perf-label {
    font-size: 12px;
    color: var(--panel-text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-content-row {
        grid-template-columns: 1fr;
    }

    .dashboard-perf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-perf-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ========================================
   Catalog Main/Overview Section
   ======================================== */
.catalog-main-container {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.catalog-main-header {
    display: flex;
    gap: 24px;
    background: var(--panel-surface);
    border-radius: var(--panel-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px var(--panel-shadow);
}

.catalog-main-thumbnail {
    flex-shrink: 0;
    width: 160px;
    height: 200px;
    border-radius: var(--panel-radius);
    overflow: hidden;
    background: var(--panel-surface-2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.catalog-main-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-main-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.catalog-main-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--panel-text);
    margin: 0 0 8px 0;
}

.catalog-slug {
    font-size: 14px;
    color: var(--panel-text-muted);
    font-family: monospace;
    background: var(--panel-surface-2);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 16px;
}

.catalog-main-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

/* Stats Grid */
.catalog-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.catalog-stat-card {
    background: var(--panel-surface);
    border-radius: var(--panel-radius-lg);
    padding: 20px;
    box-shadow: 0 1px 3px var(--panel-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-icon.views {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.stat-icon.visitors {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-icon.pages {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-icon.products {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.stat-icon.hotspots {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.stat-icon.downloads {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--panel-text);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--panel-text-muted);
    margin-top: 4px;
}

/* Info Cards */
.catalog-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.info-card {
    background: var(--panel-surface);
    border-radius: var(--panel-radius-lg);
    padding: 20px;
    box-shadow: 0 1px 3px var(--panel-shadow);
}

.info-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--panel-text);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h3 svg {
    color: var(--panel-text-muted);
}

.info-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 13px;
    color: var(--panel-text-muted);
}

.info-value {
    font-size: 13px;
    color: var(--panel-text);
    font-weight: 500;
}

.info-value.link {
    color: var(--panel-primary);
    cursor: pointer;
    text-decoration: none;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-value.link:hover {
    text-decoration: underline;
}

.info-value.status-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Quick Actions */
.catalog-quick-actions {
    background: var(--panel-surface);
    border-radius: var(--panel-radius-lg);
    padding: 20px;
    box-shadow: 0 1px 3px var(--panel-shadow);
}

.catalog-quick-actions h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--panel-text);
    margin: 0 0 16px 0;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--panel-surface-2);
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius);
    cursor: pointer;
    transition: all var(--panel-transition);
    font-size: 13px;
    color: var(--panel-text);
    font-weight: 500;
}

.quick-action-btn svg {
    width: 24px;
    height: 24px;
    color: var(--panel-text-muted);
}

.quick-action-btn:hover {
    background: var(--panel-surface);
    border-color: var(--panel-primary);
    color: var(--panel-primary);
}

.quick-action-btn:hover svg {
    color: var(--panel-primary);
}

.quick-action-btn.danger:hover {
    border-color: var(--panel-danger);
    color: var(--panel-danger);
}

.quick-action-btn.danger:hover svg {
    color: var(--panel-danger);
}

.quick-action-btn.warning:hover {
    border-color: #f59e0b;
    color: #f59e0b;
}

.quick-action-btn.warning:hover svg {
    color: #f59e0b;
}

/* Responsive */
@media (max-width: 1024px) {
    .catalog-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .catalog-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog-main-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .catalog-main-actions {
        justify-content: center;
    }

    .catalog-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .catalog-stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Profile Modal
   ======================================== */
.modal-profile-content {
    max-width: 520px;
}

.profile-avatar-section {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.profile-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--panel-primary) 0%, var(--panel-primary-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.profile-avatar-initials {
    font-size: 36px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.profile-avatar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.profile-form .form-group {
    margin: 0;
}

.profile-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--panel-text);
    margin-bottom: 6px;
}

.profile-form .form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius);
    font-size: 14px;
    transition: all var(--panel-transition);
    background: var(--panel-surface);
    color: var(--panel-text);
}

.profile-form .form-group input:focus {
    outline: none;
    border-color: var(--panel-primary);
    box-shadow: 0 0 0 3px var(--panel-primary-light);
}

.profile-form .form-group input:disabled {
    background: var(--panel-surface-2);
    color: var(--panel-text-muted);
    cursor: not-allowed;
}

.form-divider {
    height: 1px;
    background: var(--panel-border);
    margin: 8px 0;
}

.form-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--panel-text);
    margin-bottom: 4px;
}

.profile-error {
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--panel-radius);
    color: var(--panel-danger);
    font-size: 13px;
    margin-top: 16px;
}

.profile-success {
    padding: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--panel-radius);
    color: var(--panel-success);
    font-size: 13px;
    margin-top: 16px;
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--panel-text-muted);
    cursor: pointer;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: var(--panel-radius);
    transition: all var(--panel-transition);
}

.btn-ghost:hover {
    background: var(--panel-surface-2);
    color: var(--panel-danger);
}

@media (max-width: 480px) {
    .profile-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-profile-content {
        max-width: 100%;
        margin: 16px;
    }
}
