/* ========================================
   BOTFORGE PANEL - ADDITIONAL STYLES
   UTF-8 Encoding
   ======================================== */

/* ========================================
   LOGO SIZE FIX FOR PANEL
   ======================================== */
.panel-body .logo-icon-img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
}

/* Panel Body */
.panel-body {
    background: var(--background);
    min-height: 100vh;
}

/* Panel Layout */
.panel-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* ========================================
   SIDEBAR
   ======================================== */

.panel-sidebar {
    width: 320px;
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    overflow-y: auto;
    flex-shrink: 0;
}

/* Custom Scrollbar */
.panel-sidebar::-webkit-scrollbar {
    width: 8px;
}

.panel-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.panel-sidebar::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 4px;
}

.panel-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.5);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-refresh {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(180deg);
}

/* ========================================
   SERVER CARDS
   ======================================== */

.servers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.server-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(var(--surface-light), var(--surface-light)) padding-box, 
                linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(236, 72, 153, 0.3)) border-box;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.server-card:hover {
    background: linear-gradient(var(--background), var(--background)) padding-box, linear-gradient(135deg, #7c3aed, #ec4899) border-box;
    
    transform: translateX(4px);
}

.server-card.active {
    background: linear-gradient(var(--background), var(--background)) padding-box, linear-gradient(135deg, #7c3aed, #ec4899) border-box;
    
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.server-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.server-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--surface-light);
    transition: border-color 0.3s ease;
}

.server-card:hover .server-status,
.server-card.active .server-status {
    border-color: var(--background);
}

.server-status.online {
    background: var(--success);
}

.server-info {
    flex: 1;
    min-width: 0;
}

.server-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.badge-owner {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

.server-arrow {
    flex-shrink: 0;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.server-card:hover .server-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ========================================
   EMPTY & LOADING STATES
   ======================================== */

.empty-state,
.loading-state,
.error-state {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
}

.empty-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3,
.error-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.empty-state p,
.error-state p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.panel-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Welcome Screen */
.welcome-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.welcome-content {
    text-align: center;
    max-width: 600px;
}

.welcome-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.welcome-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.welcome-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.welcome-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info {
    text-align: left;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   CONFIG SCREEN
   ======================================== */

.config-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.config-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.server-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.server-id-badge {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* ========================================
   SCAN STATUS
   ======================================== */

.scan-status {
    margin-bottom: 2rem;
}

.scan-checking,
.scan-success,
.scan-needed,
.scan-error,
.scan-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
}

.scan-checking {
    border: 1px solid var(--border);
}

.scan-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.scan-needed {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.scan-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.scan-info {
    flex: 1;
}

.scan-info strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.scan-info small {
    font-size: 0.875rem;
    opacity: 0.8;
}

.scan-progress {
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--border);
}

.scan-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scan-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.scan-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.scan-step.active {
    opacity: 1;
    background: rgba(124, 58, 237, 0.1);
}

.step-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.scan-step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.scan-step.active .step-text {
    color: var(--text);
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: var(--radius-sm);
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   TABS
   ======================================== */

.tabs-navigation {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(236, 72, 153, 0.3)) border-box;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: linear-gradient(var(--surface-light), var(--surface-light)) padding-box, linear-gradient(135deg, #7c3aed, #ec4899) border-box;
    border: 2px solid transparent;
    color: var(--text);
}

.tab-btn.active {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border: 2px solid transparent;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========================================
   SECTIONS
   ======================================== */

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
}

.config-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========================================
   MODULES GRID
   ======================================== */

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.module-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(var(--surface-light), var(--surface-light)) padding-box, 
                linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(236, 72, 153, 0.3)) border-box;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.module-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.module-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.module-icon {
    font-size: 3rem;
    flex-shrink: 0;
}
    line-height: 1;

.module-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.module-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.module-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.module-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.module-toggle {
    flex-shrink: 0;
}

/* ========================================
   TOGGLE SWITCH (Z !IMPORTANT - FIX)
   ======================================== */

.module-toggle {
    flex-shrink: 0 !important;
}

.toggle-switch {
    position: relative !important;
    width: 52px !important;
    height: 28px !important;
    background: #2a2a40 !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    border: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

.toggle-switch.active {
    background: #7c3aed !important;
}

.toggle-slider {
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    width: 22px !important;
    height: 22px !important;
    background: white !important;
    border-radius: 50% !important;
    transition: transform 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    display: block !important;
    box-sizing: border-box !important;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(24px) !important;
}

.toggle-switch:hover {
    opacity: 0.9 !important;
}

.toggle-switch:active .toggle-slider {
    width: 26px !important;
}
/* Tier Badge */
.tier-badge {
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-badge.pro {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: white;
}

.tier-badge.business {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
}

/* ========================================
   FORMS
   ======================================== */

.module-config {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text);
}

.form-control,
select.form-control,
textarea.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-control:hover {
    border-color: var(--primary-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-control-color {
    width: 80px;
    height: 40px;
    padding: 0.25rem;
    cursor: pointer;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* Role Checkboxes */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.role-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.role-checkbox:hover {
    border-color: var(--primary);
}

.role-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.role-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.role-name {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========================================
   DEPLOYMENT
   ======================================== */

.deploy-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.deploy-card {
    position: relative;
    padding: 2rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.deploy-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.deploy-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.deploy-badge {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    padding: 0.25rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.deploy-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.deploy-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.deploy-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pricing-tag {
    margin-bottom: 1.5rem;
}

.pricing-tag .price {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ========================================
   MODAL
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-info {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.modal-info h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.modal-info ol {
    padding-left: 1.5rem;
}

.modal-info li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.modal-info code {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--primary);
}

/* File List */
.files-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.file-item:hover {
    border-color: var(--primary);
}

.file-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.file-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.4);
}

/* ========================================
   NOTIFICATIONS
   ======================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-color: var(--success);
    color: var(--success);
}

.notification-error {
    border-color: var(--error);
    color: var(--error);
}

.notification-info {
    border-color: #3b82f6;
    color: #3b82f6;
}

.notification svg {
    flex-shrink: 0;
}

/* ========================================
   USER DROPDOWN
   ======================================== */

.user-dropdown {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.user-avatar svg {
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.user-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s ease;
}

.user-menu a:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.user-menu a:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.user-menu a:hover {
}

/* ========================================
   BUTTONS (DODATKOWE)
   ======================================== */

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-back:hover {
    color: var(--text);
    border-color: var(--primary);
}

.btn-back svg {
    flex-shrink: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .panel-sidebar {
        width: 280px;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .panel-layout {
        flex-direction: column;
    }
    
    .panel-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: 400px;
    }
    
    .panel-content {
        padding: 1rem;
    }
    
    .config-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .header-actions button {
        width: 100%;
    }
    
    .tabs-navigation {
        overflow-x: auto;
    }
    
    .welcome-stats {
        grid-template-columns: 1fr;
    }
    
    .deploy-options {
        grid-template-columns: 1fr;
    }
    
    .roles-grid {
        grid-template-columns: 1fr;
    }
}