/* Base */
.ls-app {
    margin: -8px -20px 0 -20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f1f5f9;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Header - no overlap */
.ls-header {
    background: linear-gradient(135deg, #1E40AF 0%, #0891b2 50%, #06B6D4 100%);
    padding: 32px 40px;
    position: relative;
    overflow: hidden;
}

.ls-header-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.ls-header-left { display: flex; flex-direction: column; gap: 20px; }
.ls-brand { display: flex; align-items: center; gap: 12px; }
.ls-brand-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; }
.ls-brand-text { font-size: 20px; font-weight: 700; color: white; letter-spacing: -0.5px; }
.ls-header-welcome h1 { font-size: 28px; font-weight: 700; color: white; margin: 0; letter-spacing: -0.5px; }
.ls-header-welcome p { color: rgba(255,255,255,0.8); font-size: 15px; margin: 6px 0 0; }

.ls-header-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ls-shape { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.08); }
.ls-shape-1 { width: 400px; height: 400px; top: -150px; right: -100px; }
.ls-shape-2 { width: 250px; height: 250px; bottom: -100px; left: 10%; }
.ls-shape-3 { width: 180px; height: 180px; top: 30%; left: 25%; }

/* Content - no negative margin */
.ls-content { max-width: 1200px; margin: 0 auto; padding: 24px 40px 40px; }

/* Tabs - in gray area */
.ls-tabs-wrapper { margin-bottom: 24px; }
.ls-tabs { display: inline-flex; gap: 6px; background: white; padding: 6px; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.ls-tab { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #64748b; text-decoration: none; transition: all 0.2s; }
.ls-tab:hover { color: #1e293b; background: #f8fafc; }
.ls-tab.active { background: linear-gradient(135deg, #1E40AF, #3b82f6); color: white; }

/* Panel */
.ls-panel { background: white; border-radius: 20px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); overflow: hidden; }
.ls-panel-header { display: flex; align-items: center; gap: 16px; padding: 24px; border-bottom: 1px solid #f1f5f9; }
.ls-panel-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.ls-icon-stripe { background: linear-gradient(135deg, #635bff, #a960ee); }
.ls-icon-general { background: linear-gradient(135deg, #1E40AF, #06B6D4); }
.ls-icon-slack { background: linear-gradient(135deg, #4A154B, #E01E5A); }
.ls-icon-api { background: linear-gradient(135deg, #64748b, #94a3b8); }
.ls-panel-header h2 { margin: 0; font-size: 18px; color: #1e293b; }
.ls-panel-header p { margin: 4px 0 0; font-size: 14px; color: #64748b; }
.ls-pro-badge { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 700; margin-left: auto; }
.ls-panel-body { padding: 24px; }

/* Mode Selector */
.ls-mode-selector { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
.ls-mode-option { cursor: pointer; }
.ls-mode-option input { display: none; }
.ls-mode-box { display: flex; flex-direction: column; align-items: center; padding: 24px; border: 2px solid #e2e8f0; border-radius: 14px; text-align: center; transition: all 0.2s; }
.ls-mode-option.active .ls-mode-box { border-color: #1E40AF; background: #eff6ff; }
.ls-mode-icon { font-size: 32px; margin-bottom: 8px; }
.ls-mode-title { font-size: 16px; font-weight: 600; color: #1e293b; }
.ls-mode-desc { font-size: 13px; color: #64748b; margin-top: 4px; }

/* Form */
.ls-form-section { margin-bottom: 32px; }
.ls-form-section:last-child { margin-bottom: 0; }
.ls-form-section h3 { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #1e293b; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
.ls-section-badge { padding: 4px 10px; border-radius: 50px; font-size: 11px; font-weight: 600; }
.ls-badge-test { background: #fef3c7; color: #92400e; }
.ls-badge-live { background: #d1fae5; color: #065f46; }
.ls-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ls-form-field { display: flex; flex-direction: column; gap: 8px; }
.ls-form-field label { font-size: 13px; font-weight: 600; color: #475569; }
.ls-form-field input { padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; transition: all 0.2s; }
.ls-form-field input:focus { outline: none; border-color: #1E40AF; box-shadow: 0 0 0 3px rgba(30,64,175,0.1); }
.ls-hint { font-size: 12px; color: #94a3b8; margin: 0; }

/* URL Box */
.ls-url-box { display: flex; align-items: center; gap: 12px; background: #f8fafc; padding: 12px 16px; border-radius: 10px; border: 1px solid #e2e8f0; margin-top: 16px; }
.ls-url-label { font-size: 12px; font-weight: 600; color: #64748b; white-space: nowrap; }
.ls-url-box code { flex: 1; font-size: 13px; color: #475569; background: none; overflow: hidden; text-overflow: ellipsis; }
.ls-copy-btn { width: 32px; height: 32px; padding: 0; background: white; border: 1px solid #e2e8f0; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #64748b; transition: all 0.2s; flex-shrink: 0; }
.ls-copy-btn:hover { background: #1E40AF; border-color: #1E40AF; color: white; }
.ls-copy-btn.copied { background: #10b981; border-color: #10b981; color: white; }

/* Toggle */
.ls-toggle-field { display: flex; align-items: flex-start; gap: 16px; }
.ls-toggle { position: relative; width: 52px; height: 28px; flex-shrink: 0; }
.ls-toggle input { display: none; }
.ls-toggle-slider { position: absolute; inset: 0; background: #e2e8f0; border-radius: 100px; cursor: pointer; transition: all 0.2s; }
.ls-toggle-slider::before { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.ls-toggle input:checked + .ls-toggle-slider { background: linear-gradient(135deg, #1E40AF, #3b82f6); }
.ls-toggle input:checked + .ls-toggle-slider::before { transform: translateX(24px); }
.ls-toggle-field strong { color: #1e293b; }

/* Checkbox Grid */
.ls-checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ls-checkbox-card { cursor: pointer; }
.ls-checkbox-card input { display: none; }
.ls-checkbox-content { display: flex; align-items: center; gap: 12px; padding: 16px; border: 2px solid #e2e8f0; border-radius: 12px; transition: all 0.2s; }
.ls-checkbox-card input:checked + .ls-checkbox-content { border-color: #1E40AF; background: #eff6ff; }
.ls-checkbox-icon { font-size: 24px; }
.ls-checkbox-label { font-size: 14px; font-weight: 500; color: #1e293b; }

/* API List */
.ls-api-list { display: flex; flex-direction: column; gap: 12px; }
.ls-api-item { background: #f8fafc; border-radius: 12px; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ls-api-method { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; background: #1E40AF; color: white; }
.ls-method-get { background: #10b981; }
.ls-api-item code { font-size: 14px; color: #1e293b; font-weight: 500; background: none; }
.ls-api-params { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.ls-api-params span { padding: 4px 10px; background: white; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 12px; color: #64748b; }

/* Save Bar */
.ls-save-bar { margin-top: 24px; }
.ls-btn-save { background: linear-gradient(135deg, #1E40AF, #3b82f6); color: white; padding: 14px 28px; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.ls-btn-save:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,64,175,0.3); }

@media (max-width: 782px) {
    .ls-header { padding: 24px 20px; }
    .ls-content { padding: 20px; }
    .ls-tabs { flex-wrap: wrap; width: 100%; }
    .ls-mode-selector, .ls-form-grid, .ls-checkbox-grid { grid-template-columns: 1fr; }
}

/* Developer Tab */
.ls-dev-section { padding: 24px; border-bottom: 1px solid #f1f5f9; }
.ls-dev-section:last-child { border-bottom: none; }
.ls-dev-section h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: #1e293b; margin: 0 0 12px 0; }
.ls-dev-section > p { color: #64748b; font-size: 14px; margin: 0 0 20px 0; }

.ls-sdk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 20px; }
.ls-dev-card { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border-radius: 12px; padding: 20px; border: 1px solid #e2e8f0; transition: all 0.2s; }
.ls-dev-card:hover { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-2px); }
.ls-dev-card-content { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.ls-dev-card-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.ls-icon-php { background: linear-gradient(135deg, #777BB3, #4F5B93); }
.ls-icon-js { background: linear-gradient(135deg, #F7DF1E, #E5C616); color: #000 !important; }
.ls-icon-python { background: linear-gradient(135deg, #3776AB, #FFD43B); }
.ls-icon-dotnet { background: linear-gradient(135deg, #512BD4, #68217A); }
.ls-icon-go { background: linear-gradient(135deg, #00ADD8, #00A29C); }
.ls-dev-card-info h4 { font-size: 16px; font-weight: 600; color: #1e293b; margin: 0 0 2px 0; }
.ls-dev-version { display: inline-block; background: #10b981; color: white; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 8px; margin-bottom: 4px; }
.ls-dev-card-info p { color: #64748b; font-size: 13px; margin: 0; }
.ls-dev-card-actions { display: flex; gap: 12px; }
.ls-btn-sm { padding: 8px 14px !important; font-size: 13px !important; }
.ls-sdk-docs-link { text-align: center; padding-top: 8px; }

.ls-code-block { position: relative; background: #1e293b; border-radius: 10px; padding: 20px; overflow-x: auto; }
.ls-code-block pre { margin: 0; color: #e2e8f0; font-family: 'Monaco', 'Consolas', monospace; font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
.ls-code-block .ls-copy-btn { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.1); border: none; color: #94a3b8; padding: 8px; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.ls-code-block .ls-copy-btn:hover { background: rgba(255,255,255,0.2); color: white; }

.ls-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ls-feature-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; }
.ls-feature-item span { font-size: 14px; color: #475569; font-weight: 500; }

@media (max-width: 768px) {
    .ls-sdk-grid { grid-template-columns: 1fr; }
    .ls-dev-card-content { flex-direction: column; text-align: center; }
    .ls-dev-card-actions { flex-direction: column; }
    .ls-features-grid { grid-template-columns: 1fr 1fr; }
}
-e 

/* License activation styles */

            .ls-license-active, .ls-license-inactive { padding: 10px 0; }
            
            .ls-license-status {
                display: flex;
                align-items: center;
                gap: 16px;
                margin-bottom: 24px;
            }
            
            .ls-status-badge {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                padding: 10px 20px;
                border-radius: 50px;
                font-weight: 600;
                font-size: 14px;
            }
            
            .ls-status-valid {
                background: linear-gradient(135deg, #d1fae5, #a7f3d0);
                color: #065f46;
            }
            
            .ls-tier-badge {
                padding: 8px 16px;
                border-radius: 50px;
                font-weight: 600;
                font-size: 13px;
            }
            
            .ls-tier-starter { background: #e0e7ff; color: #4338ca; }
            .ls-tier-pro { background: linear-gradient(135deg, #1E40AF, #06B6D4); color: white; }
            .ls-tier-agency { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; }
            
            .ls-license-details {
                background: #f8fafc;
                border-radius: 12px;
                padding: 20px;
                margin-bottom: 24px;
            }
            
            .ls-detail-row {
                display: flex;
                justify-content: space-between;
                padding: 10px 0;
                border-bottom: 1px solid #e2e8f0;
            }
            
            .ls-detail-row:last-child { border-bottom: none; }
            .ls-detail-label { color: #64748b; font-size: 14px; }
            .ls-detail-value { font-weight: 500; font-size: 14px; }
            .ls-detail-value code { background: #e2e8f0; padding: 4px 10px; border-radius: 6px; font-size: 13px; }
            
            .ls-license-limits h4 {
                font-size: 14px;
                font-weight: 600;
                color: #64748b;
                margin-bottom: 16px;
            }
            
            .ls-limits-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 16px;
                margin-bottom: 24px;
            }
            
            .ls-limit-item {
                background: #f8fafc;
                border-radius: 12px;
                padding: 20px;
                text-align: center;
            }
            
            .ls-limit-value {
                display: block;
                font-size: 28px;
                font-weight: 800;
                color: #1E40AF;
                margin-bottom: 4px;
            }
            
            .ls-limit-label {
                display: block;
                font-size: 14px;
                font-weight: 600;
                color: #334155;
                margin-bottom: 4px;
            }
            
            .ls-limit-used {
                font-size: 12px;
                color: #64748b;
            }
            
            .ls-license-actions {
                display: flex;
                gap: 12px;
            }
            
            .ls-btn-outline-danger {
                background: white;
                border: 2px solid #fecaca;
                color: #dc2626;
            }
            
            .ls-btn-outline-danger:hover {
                background: #fef2f2;
                border-color: #dc2626;
            }
            
            /* Inactive License */
            .ls-free-notice {
                display: flex;
                align-items: flex-start;
                gap: 16px;
                background: linear-gradient(135deg, #f0fdf4, #ecfeff);
                border: 2px solid #10b981;
                border-radius: 16px;
                padding: 24px;
                margin-bottom: 32px;
            }
            
            .ls-free-icon {
                flex-shrink: 0;
                width: 56px;
                height: 56px;
                background: white;
                border-radius: 14px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            .ls-free-content h4 {
                font-size: 16px;
                font-weight: 700;
                color: #065f46;
                margin-bottom: 4px;
            }
            
            .ls-free-content p {
                color: #047857;
                font-size: 14px;
                margin: 0;
            }
            
            .ls-input-group {
                display: flex;
                gap: 12px;
            }
            
            .ls-input {
                flex: 1;
                padding: 14px 18px;
                border: 2px solid #e2e8f0;
                border-radius: 10px;
                font-size: 15px;
                font-family: monospace;
            }
            
            .ls-input:focus {
                outline: none;
                border-color: #1E40AF;
            }
            
            .ls-upgrade-cta {
                margin-top: 40px;
                padding-top: 32px;
                border-top: 2px solid #e2e8f0;
            }
            
            .ls-upgrade-cta h4 {
                font-size: 16px;
                font-weight: 700;
                margin-bottom: 20px;
            }
            
            .ls-plans-mini {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 16px;
                margin-bottom: 24px;
            }
            
            .ls-plan-mini {
                background: #f8fafc;
                border: 2px solid #e2e8f0;
                border-radius: 12px;
                padding: 20px;
                text-align: center;
            }
            
            .ls-plan-mini.ls-plan-featured {
                border-color: #06B6D4;
                background: linear-gradient(180deg, #ecfeff, #f8fafc);
            }
            
            .ls-plan-name {
                display: block;
                font-size: 16px;
                font-weight: 700;
                margin-bottom: 4px;
            }
            
            .ls-plan-limits {
                display: block;
                font-size: 12px;
                color: #64748b;
                margin-bottom: 8px;
            }
            
            .ls-plan-price {
                display: block;
                font-size: 18px;
                font-weight: 800;
                color: #1E40AF;
            }
            
            /* Messages */
            .ls-message {
                padding: 16px 20px;
                border-radius: 10px;
                margin-top: 20px;
                font-weight: 500;
            }
            
            .ls-message-success {
                background: #d1fae5;
                color: #065f46;
                border: 1px solid #10b981;
            }
            
            .ls-message-error {
                background: #fee2e2;
                color: #991b1b;
                border: 1px solid #f87171;
            }
            
            .ls-spin {
                animation: ls-spin 1s linear infinite;
            }
            
            @keyframes ls-spin {
                from { transform: rotate(0deg); }
                to { transform: rotate(360deg); }
            }
            
            @media (max-width: 768px) {
                .ls-plans-mini { grid-template-columns: 1fr; }
                .ls-limits-grid { grid-template-columns: 1fr; }
                .ls-input-group { flex-direction: column; }
            }
