/* ═══════════════════════════════════════════════════════════════════════════════
   MAIN STYLESHEET
   Aduma Marketing 2026 - SEO Agent

   Single entry point for all styles.
   All HTML files should link to: /css/main.css
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Import order matters - base styles first, then components, then page-specific */
@import url('dashboard.css');      /* Core dashboard styles + CSS variables */
@import url('landing.css');        /* Landing page styles */
@import url('components.css');     /* Shared components */
@import url('pages.css');          /* Additional page styles */
@import url('wizard.css');         /* Project wizard styles */

/* ═══════════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY STYLES
   Skip links, focus indicators, and screen reader utilities
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Skip link - visible only on focus for keyboard users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 500;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible styles for better keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   QUICK TOOLS SHARED STYLES
   Styles shared across all tool pages (meta generator, schema generator, etc.)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Tool Page Layout */
.tool-page {
    min-height: 100vh;
    background: var(--color-bg-primary);
    padding: 2rem;
}

.tool-container {
    max-width: 1400px;
    margin: 0 auto;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.tool-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.tool-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.tool-header .back-link:hover {
    color: var(--color-primary);
}

/* Tool Grid Layout */
.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
}

/* Tool Panels */
.tool-panel {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.tool-panel-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-tertiary);
}

.tool-panel-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.tool-panel-body {
    padding: 1.5rem;
}

/* Tool Form Elements */
.tool-form-group {
    margin-bottom: 1.25rem;
}

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

.tool-form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.tool-form-group input,
.tool-form-group textarea,
.tool-form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tool-form-group input:focus,
.tool-form-group textarea:focus,
.tool-form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.tool-form-group input::placeholder,
.tool-form-group textarea::placeholder {
    color: var(--color-text-tertiary);
}

/* Tool Buttons */
.tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

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

.tool-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.tool-btn-secondary {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.tool-btn-secondary:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-border-light);
}

.tool-btn-success {
    background: var(--color-success);
    color: white;
}

.tool-btn-success:hover {
    opacity: 0.9;
}

/* Tool Preview/Output */
.tool-output {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-height: 400px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Tool Tabs */
.tool-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--color-bg-primary);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.tool-tab {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: var(--color-text-secondary);
    border: none;
}

.tool-tab:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
}

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

/* Tool Stats/Badges */
.tool-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--color-bg-tertiary);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.tool-stat:last-child {
    margin-bottom: 0;
}

.tool-stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

.tool-stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Character Counters */
.char-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.375rem;
    font-size: 0.75rem;
}

.char-counter .count {
    color: var(--color-text-tertiary);
}

.char-counter .count.warning {
    color: var(--color-warning);
}

.char-counter .count.error {
    color: var(--color-error);
}

.char-counter .count.success {
    color: var(--color-success);
}

/* Toggle Switches */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--color-border);
}

.toggle-row:last-child {
    border-bottom: none;
}

.toggle-label {
    font-size: 0.875rem;
    color: var(--color-text-primary);
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    transition: all 0.2s;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--color-text-tertiary);
    border-radius: 50%;
    transition: all 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    background: white;
    transform: translateX(20px);
}

/* Copy to Clipboard Animation */
.copy-feedback {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-success);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.copy-feedback.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Accordion Styles */
.accordion {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.accordion:last-child {
    margin-bottom: 0;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--color-bg-tertiary);
    cursor: pointer;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: var(--color-bg-hover);
}

.accordion-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-tertiary);
    transition: transform 0.2s;
}

.accordion.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding: 1.25rem;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}

.accordion.open .accordion-body {
    display: block;
}

/* Preset Selector */
.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.preset-btn {
    padding: 0.875rem 1rem;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.preset-btn:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-border-light);
}

.preset-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.data-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-tertiary);
    background: var(--color-bg-tertiary);
}

.data-table td {
    font-size: 0.875rem;
    color: var(--color-text-primary);
}

.data-table tr:hover td {
    background: var(--color-bg-tertiary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--color-text-tertiary);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .tool-page {
        padding: 1rem;
    }

    .tool-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

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

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

/* ═══════════════════════════════════════════════════════════════════════════════
   SITE DETECTION / URL ANALYSIS STYLES
   Styles for the site detection panel in project wizard
   ═══════════════════════════════════════════════════════════════════════════════ */

/* URL Input with Analyze Button */
.url-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.url-input-wrapper .input-with-icon {
    flex: 1;
}

.btn-analyze {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
    min-width: 120px;
}

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

.btn-analyze .icon-loading {
    animation: spin 1s linear infinite;
}

.btn-analyze:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

/* Site Detection Panel */
.site-detection-panel {
    margin-top: 1rem;
    padding: 1.25rem;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.detection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detection-status .status-icon {
    width: 20px;
    height: 20px;
    color: var(--color-success);
}

.detection-status .status-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-success);
}

.detection-status.warning .status-icon,
.detection-status.warning .status-text {
    color: var(--color-warning);
}

.detection-status.error .status-icon,
.detection-status.error .status-text {
    color: var(--color-error);
}

.btn-close-detection {
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-tertiary);
    transition: all 0.2s;
}

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

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

/* Detection Grid */
.detection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .detection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.detection-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detection-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detection-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.detection-value.success {
    color: var(--color-success);
}

.detection-value.warning {
    color: var(--color-warning);
}

.detection-value.error {
    color: var(--color-error);
}

/* Detection Suggestions */
.detection-suggestions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.suggestions-title {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--color-text-primary);
}

.suggestion-chip svg {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
}

.suggestion-chip.applied {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--color-primary);
}

.suggestion-chip.applied svg {
    color: var(--color-success);
}

#applyDetection {
    margin-top: 1rem;
}

/* Site Detection Error */
.site-detection-error {
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    animation: shake 0.5s ease;
}

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

.site-detection-error svg {
    width: 18px;
    height: 18px;
    color: var(--color-error);
    flex-shrink: 0;
}

.site-detection-error span {
    font-size: 0.875rem;
    color: var(--color-error);
}

/* Competitor URL Validation */
.competitor-inputs {
    position: relative;
}

.competitor-url-status {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.competitor-url-status svg {
    width: 100%;
    height: 100%;
}

.competitor-url-status.valid svg {
    color: var(--color-success);
}

.competitor-url-status.invalid svg {
    color: var(--color-error);
}

.competitor-url-status.loading svg {
    color: var(--color-text-tertiary);
    animation: spin 1s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   AUTHENTICATION MODAL STYLES
   Login/Join modal for dashboard access
   ═══════════════════════════════════════════════════════════════════════════════ */

.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: var(--color-bg-secondary, #1a1a2e);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-modal-overlay.active .auth-modal {
    transform: translateY(0) scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--color-text-tertiary, #94a3b8);
    transition: all 0.2s ease;
    z-index: 10;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary, #fff);
}

.auth-modal-close svg {
    width: 20px;
    height: 20px;
}

.auth-modal-header {
    padding: 1.5rem 1.5rem 0;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 10px;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary, #94a3b8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab:hover {
    color: var(--color-text-primary, #fff);
}

.auth-tab.active {
    background: var(--color-primary, #6366f1);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.auth-modal-body {
    padding: 1.5rem;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary, #fff);
    margin: 0 0 0.5rem;
}

.auth-form-header p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary, #94a3b8);
    margin: 0;
}

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

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary, #94a3b8);
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--color-text-primary, #fff);
    transition: all 0.2s ease;
}

.form-group input::placeholder {
    color: var(--color-text-tertiary, #64748b);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

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

.password-input-wrapper input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--color-text-tertiary, #64748b);
    transition: all 0.2s ease;
}

.toggle-password:hover {
    color: var(--color-text-primary, #fff);
    background: rgba(255, 255, 255, 0.1);
}

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

.password-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-tertiary, #64748b);
    margin-top: 0.5rem;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary, #94a3b8);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary, #6366f1);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--color-primary, #6366f1);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-password {
    font-size: 0.875rem;
    color: var(--color-primary, #6366f1);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--color-primary-hover, #818cf8);
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #ef4444;
    display: none;
}

.auth-error.visible {
    display: block;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn.loading span {
    opacity: 0;
}

.btn.loading .btn-spinner {
    display: block;
    position: absolute;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.btn-spinner {
    display: none;
}

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

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border, rgba(255, 255, 255, 0.1));
}

.auth-divider span {
    font-size: 0.8125rem;
    color: var(--color-text-tertiary, #64748b);
}

.social-auth {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary, #fff);
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .auth-modal {
        border-radius: 12px;
    }

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

    .social-auth {
        flex-direction: column;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   USER DROPDOWN MENU STYLES
   Dropdown menu for user profile in dashboard sidebar
   ═══════════════════════════════════════════════════════════════════════════════ */

.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 0.5rem;
    background: var(--color-bg-secondary, #1a1a2e);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

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

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-secondary, #94a3b8);
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary, #fff);
}

.user-dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--color-border, rgba(255, 255, 255, 0.1));
    margin: 0.5rem 0;
}

.user-dropdown-item.logout-btn {
    color: #ef4444;
}

.user-dropdown-item.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SEO FIXER MODAL STYLES
   Styles for the Fix Issues modal and fix results
   ═══════════════════════════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--color-bg-secondary, #1a1a2e);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.fix-modal {
    max-width: 800px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
}

.modal-header h3 {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary, #fff);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 1.5rem;
    color: var(--color-text-tertiary, #64748b);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary, #fff);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
}

/* Fix Progress */
.fix-progress-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.fix-status {
    margin-bottom: 0.75rem;
}

.fix-status .status-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary, #94a3b8);
}

.fix-progress-container .progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.fix-progress-container .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary, #6366f1), var(--color-primary-hover, #818cf8));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.fix-stats {
    display: flex;
    gap: 1.5rem;
}

.fix-stats span {
    font-size: 0.875rem;
    color: var(--color-text-tertiary, #64748b);
}

.fix-stats strong {
    color: var(--color-text-primary, #fff);
}

/* Fix Results */
.fix-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fix-section {
    margin-bottom: 1.5rem;
}

.fix-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary, #fff);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
}

.fix-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.fix-item.auto {
    border-left: 3px solid #10b981;
}

.fix-item.download {
    border-left: 3px solid #6366f1;
}

.fix-item.manual {
    border-left: 3px solid #f59e0b;
}

.fix-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.fix-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary, #fff);
}

.fix-description {
    font-size: 0.875rem;
    color: var(--color-text-secondary, #94a3b8);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.fix-instructions {
    font-size: 0.8125rem;
    color: var(--color-text-tertiary, #64748b);
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.fix-instructions strong {
    color: var(--color-text-secondary, #94a3b8);
}

.fix-url {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--color-primary, #6366f1);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    word-break: break-all;
}

.fix-code-container {
    position: relative;
    margin-top: 0.75rem;
}

.fix-code {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    padding: 1rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--color-text-primary, #fff);
    max-height: 200px;
}

.fix-code code {
    font-family: inherit;
    white-space: pre-wrap;
    word-break: break-word;
}

.fix-code-container .copy-code-btn,
.fix-code-container .download-file-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.copy-code-btn,
.download-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
}

/* Spinner animation */
.spinner {
    animation: spin 1s linear infinite;
}

/* Issue Detail Modal */
.issue-modal {
    max-width: 600px;
}

.issue-detail-section {
    margin-bottom: 1.25rem;
}

.issue-detail-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-tertiary, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem;
}

.issue-detail-section p {
    font-size: 0.9375rem;
    color: var(--color-text-primary, #fff);
    margin: 0;
    line-height: 1.6;
}

.issue-detail-section code {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-primary, #6366f1);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    word-break: break-all;
}

/* Severity badges */
.severity-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.severity-badge.critical {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.severity-badge.high {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.severity-badge.medium {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.severity-badge.low {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

/* Category tag */
.category-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--color-primary, #6366f1);
}

/* Button outline style */
.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.2));
    color: var(--color-text-primary, #fff);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Empty state in fix results */
.fix-results .empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-tertiary, #64748b);
}
