/* ============================================================
   Site Backup & Error Checker - Styles v1.3.0
   ============================================================ */

/* ===================== RESET & BASE ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a1a;
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===================== BACKGROUND EFFECTS ===================== */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.bg-glow-1 {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    animation: floatGlow1 15s ease-in-out infinite;
}

.bg-glow-2 {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(118, 75, 226, 0.06) 0%, transparent 70%);
    animation: floatGlow2 20s ease-in-out infinite;
}

@keyframes floatGlow1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.1); }
}

@keyframes floatGlow2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-5%, -10%) scale(1.15); }
}

/* ===================== GLASSMORPHISM BASE ===================== */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.glass-strong {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

/* ===================== AUTH OVERLAY ===================== */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: slideUp 0.5s ease;
}

.auth-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea, #764be2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
}

.auth-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.auth-card p {
    color: #888;
    margin-bottom: 32px;
    font-size: 14px;
}

.auth-input-group {
    position: relative;
    margin-bottom: 24px;
}

.auth-input-group input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.auth-input-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.auth-input-group input::placeholder {
    color: #555;
}

.auth-toggle-visibility {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.2s;
}

.auth-toggle-visibility:hover {
    color: #667eea;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764be2);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-auth:active {
    transform: translateY(0);
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes clickPulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===================== MAIN CONTAINER ===================== */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* ===================== HEADER ===================== */
.header {
    text-align: center;
    margin-bottom: 32px;
    padding: 32px 24px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.header h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764be2, #b065e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.version-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 16px;
}

.header-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
    transition: background 0.3s;
}

.status-dot.online {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.status-dot.offline {
    background: #f87171;
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
}

.status-dot.connecting {
    background: #fbbf24;
    animation: pulse 1.5s infinite;
}

.session-badge {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: #4ade80;
}

.session-badge.active {
    display: flex;
}

.btn-logout {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: 20px;
    color: #f87171;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(248, 113, 113, 0.2);
}

/* ===================== URL SECTION ===================== */
.url-section {
    margin-bottom: 24px;
    padding: 24px;
}

.url-input-group {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
}

.url-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.url-input-group input {
    flex: 1;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: none;
    border-right: none;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.url-input-group input:focus {
    border-color: rgba(102, 126, 234, 0.3);
}

.url-input-group input::placeholder {
    color: #444;
}

.btn-open {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea, #764be2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 0 12px 12px 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-open:hover {
    background: linear-gradient(135deg, #7b8ff0, #8a5ce8);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ===================== SITE STATUS ===================== */
.site-status {
    display: none;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.site-status.active {
    display: block;
}

.site-info {
    margin-bottom: 12px;
}

.site-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.site-info-row .label {
    color: #888;
    min-width: 60px;
}

.site-info-row .value {
    color: #e0e0e0;
    word-break: break-all;
}

.site-info-row .value.title {
    color: #fff;
    font-weight: 600;
}

.site-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.site-status-badge.open {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.site-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-action.primary {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.btn-action.primary:hover {
    background: rgba(102, 126, 234, 0.2);
}

.btn-action.danger {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.btn-action.danger:hover {
    background: rgba(248, 113, 113, 0.2);
}

/* ===================== SCREENSHOT PREVIEW ===================== */
.screenshot-preview {
    display: none;
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.screenshot-preview.active {
    display: block;
}

.screenshot-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================== MODULES GRID ===================== */
.modules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.module-card {
    padding: 24px;
    transition: all 0.3s;
}

.module-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.module-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.module-icon.backup {
    background: rgba(102, 126, 234, 0.15);
}

.module-icon.errors {
    background: rgba(251, 191, 36, 0.15);
}

.module-icon.search {
    background: rgba(168, 85, 247, 0.15);
}

.module-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.module-header p {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.module-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: rgba(102, 126, 234, 0.3);
}

.input-group input::placeholder {
    color: #444;
}

.btn-module {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-module:hover {
    transform: translateY(-1px);
}

.btn-module:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-module.backup {
    background: linear-gradient(135deg, #667eea, #764be2);
}

.btn-module.backup:hover:not(:disabled) {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-module.errors {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.btn-module.errors:hover:not(:disabled) {
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-module.search {
    background: linear-gradient(135deg, #a855f7, #6366f1);
}

.btn-module.search:hover:not(:disabled) {
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

/* ===================== PROGRESS BAR ===================== */
.progress-container {
    display: none;
    margin-top: 8px;
}

.progress-container.active {
    display: block;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-fill.backup {
    background: linear-gradient(90deg, #667eea, #764be2);
}

.progress-fill.errors {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.progress-fill.search {
    background: linear-gradient(90deg, #a855f7, #6366f1);
}

.progress-text {
    font-size: 12px;
    color: #888;
}

/* ===================== RESULTS SECTIONS ===================== */
.results-section {
    display: none;
    margin-bottom: 24px;
    padding: 24px;
}

.results-section.active {
    display: block;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.results-summary {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.summary-item .count {
    font-weight: 700;
    font-size: 18px;
}

.summary-item .count.errors {
    color: #f87171;
}

.summary-item .count.warnings {
    color: #fbbf24;
}

.summary-item .count.found {
    color: #a855f7;
}

.summary-item .count.categories {
    color: #667eea;
}

.summary-item .label {
    color: #888;
}

.results-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ===================== TABS ===================== */
.result-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-tab {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.result-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e0e0e0;
}

.result-tab.active {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    color: #667eea;
    font-weight: 600;
}

/* ===================== ERROR RESULTS ===================== */
.error-category-block {
    margin-bottom: 16px;
}

.error-category-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #fff;
}

.error-count {
    color: #888;
    font-size: 12px;
    font-weight: 400;
}

.error-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.error-item {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    border-left: 3px solid transparent;
    word-break: break-word;
}

.error-item.level-error {
    background: rgba(248, 113, 113, 0.05);
    border-left-color: #f87171;
    color: #fca5a5;
}

.error-item.level-warning {
    background: rgba(251, 191, 36, 0.05);
    border-left-color: #fbbf24;
    color: #fde68a;
}

.error-item.level-info {
    background: rgba(96, 165, 250, 0.05);
    border-left-color: #60a5fa;
    color: #93c5fd;
}

.error-level {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 8px;
    text-transform: uppercase;
}

.level-error .error-level {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.level-warning .error-level {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.level-info .error-level {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

.error-source {
    margin-top: 4px;
    font-size: 11px;
    color: #666;
}

/* ===================== SEARCH RESULTS ===================== */
.search-category-block {
    margin-bottom: 16px;
}

.search-category-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(168, 85, 247, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #fff;
}

.search-count {
    color: #888;
    font-size: 12px;
    font-weight: 400;
}

.search-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-item {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.search-type {
    display: inline-block;
    padding: 1px 6px;
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 8px;
    text-transform: uppercase;
}

.search-value {
    color: #e0e0e0;
}

.search-details {
    margin-top: 4px;
    font-size: 11px;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 32px;
    color: #666;
    font-size: 14px;
}

/* ===================== LOGIN / INTERACTION OVERLAY ===================== */
.interact-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(12px);
    z-index: 9000;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}



.login-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 560px;
    animation: slideUp 0.4s ease;
    margin: 20px auto;
    max-height: none;
}


.login-panel-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-panel-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.login-panel-header p {
    font-size: 13px;
    color: #888;
}

/* ===================== LOGIN STEPS ===================== */
.login-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-step {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s;
}

.login-step:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764be2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.step-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.step-description {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    line-height: 1.5;
}

.btn-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
}

.btn-step:hover {
    transform: translateY(-1px);
}

.btn-step.primary {
    background: linear-gradient(135deg, #667eea, #764be2);
}

.btn-step.primary:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-step.success {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

.btn-step.success:hover {
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

/* ===================== COOKIE METHODS ===================== */
.cookie-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-method {
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.cookie-method-title {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cookie-command {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #4ade80;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 11px;
    resize: none;
    outline: none;
    margin-bottom: 8px;
}

.cookie-paste-area {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #e0e0e0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s;
}

.cookie-paste-area:focus {
    border-color: rgba(102, 126, 234, 0.3);
}

.cookie-paste-area::placeholder {
    color: #444;
}

/* ===================== LOGIN EXTENSION STATUS ===================== */
.extension-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 12px;
}

.extension-status .ext-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
}

.extension-status .ext-dot.detected {
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
}

.extension-status .ext-dot.not-detected {
    background: #fbbf24;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
}

.extension-status .ext-text {
    color: #999;
}

/* ===================== LOGIN PREVIEW ===================== */
.login-preview {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: none;
}

.login-preview.active {
    display: block;
}

.login-preview-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.login-preview img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.login-preview-status {
    margin-top: 8px;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
}

.login-preview-status.logged-in {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.login-preview-status.not-logged {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* ===================== LOGIN PANEL FOOTER ===================== */
.login-panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 12px;
    flex-wrap: wrap;
}

.btn-login-cancel {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
}

.btn-login-done {
    padding: 10px 24px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login-done:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

/* ===================== TOAST NOTIFICATIONS ===================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 11000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 380px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: toastIn 0.3s ease forwards;
    word-break: break-word;
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

.toast.success {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.toast.error {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.toast.warning {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.toast.info {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

.toast-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(50px); }
}

/* ===================== LOADING OVERLAY ===================== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9500;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    font-size: 15px;
    color: #e0e0e0;
    font-weight: 500;
}

.loading-subtext {
    font-size: 12px;
    color: #888;
}

/* ===================== FOOTER ===================== */
.footer {
    text-align: center;
    padding: 20px;
    color: #444;
    font-size: 12px;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .main-container {
        padding: 16px 12px 32px;
    }

    .header {
        padding: 24px 16px;
    }

    .header h1 {
        font-size: 22px;
    }

    .header-top {
        flex-direction: column;
        gap: 8px;
    }

    .header-status {
        flex-direction: column;
        gap: 8px;
    }

    .url-section {
        padding: 16px;
    }

    .url-input-group {
        flex-direction: column;
        gap: 8px;
    }

    .url-prefix {
        border-radius: 12px;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        justify-content: center;
        padding: 10px;
    }

    .url-input-group input {
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .btn-open {
        border-radius: 12px;
        justify-content: center;
    }

    .site-actions {
        flex-direction: column;
    }

    .module-card {
        padding: 16px;
    }

    .input-group {
        flex-direction: column;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .login-panel {
        padding: 20px;
        margin: 10px;
    }

    .login-panel-footer {
        flex-direction: column;
    }

    .login-panel-footer .btn-login-cancel,
    .login-panel-footer .btn-login-done {
        width: 100%;
        justify-content: center;
    }

    .auth-card {
        padding: 32px 24px;
        margin: 16px;
    }

    .toast-container {
        left: 12px;
        right: 12px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 18px;
    }

    .logo {
        width: 36px;
        height: 36px;
    }

    .module-header h3 {
        font-size: 14px;
    }

    .btn-module {
        font-size: 13px;
        padding: 8px 16px;
    }

    .login-step {
        padding: 14px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

