/* Search Page Styles - OathNet Design */

/* Override body animation for search page */
body {
    animation: none !important;
}

.nav-bar,
.footer {
    opacity: 1 !important;
    animation: none !important;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-logo:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-logo-img {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.nav-logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: rgba(5, 5, 15, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    min-width: 160px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

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

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

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

.search-main {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-main.has-results {
    align-items: flex-start;
    padding-top: 100px;
}

.search-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.search-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.search-header {
    text-align: center;
    margin-bottom: 50px;
}

.search-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.search-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.search-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: visible;
    z-index: 10;
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(147, 51, 234, 0.6) 0%,
        rgba(59, 130, 246, 0.6) 50%,
        rgba(34, 211, 238, 0.6) 100%);
}

.search-input-wrapper {
    margin-bottom: 20px;
    position: relative;
    z-index: 100;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 6px;
    transition: all 0.3s ease;
}

.search-input-container:focus-within {
    border-color: rgba(147, 51, 234, 0.4);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 2;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 20px 14px 55px;
    color: #ffffff;
    font-size: 1.05rem;
    font-family: 'Pixelify Sans', cursive;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.settings-btn {
    background: transparent;
    border: none;
    padding: 10px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-btn:hover {
    background: rgba(147, 51, 234, 0.1);
    color: rgba(147, 51, 234, 1);
}

.scan-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
    border: none;
    padding: 12px 30px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Pixelify Sans', cursive;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.scan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #6366f1 100%);
}

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

/* Modules Dropdown */
.modules-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(5, 5, 15, 0.98);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 16px;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 9999;
    box-shadow: 0 10px 50px rgba(147, 51, 234, 0.2);
    backdrop-filter: blur(30px);
    width: 280px;
    max-height: 500px;
    overflow-y: auto;
}

.modules-dropdown.active {
    opacity: 1;
    visibility: visible;
}

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

.modules-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(147, 51, 234, 0.3);
}

.modules-header h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.modules-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    position: relative;
}

.module-item:hover {
    background: rgba(147, 51, 234, 0.1);
    color: #ffffff;
}

.module-item input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(147, 51, 234, 0.5);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.module-item input[type="radio"]:checked {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: #8b5cf6;
}

.module-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
}

.module-item svg {
    color: rgba(147, 51, 234, 0.8);
    flex-shrink: 0;
}

.module-item span {
    flex: 1;
}

/* Module Info Button & Tooltip */
.module-info-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: auto;
    cursor: help;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.module-info-btn:hover {
    opacity: 1;
}

.module-info-btn svg {
    width: 14px;
    height: 14px;
    color: rgba(147, 51, 234, 0.8);
}

.module-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: rgba(5, 5, 15, 0.98);
    border: 1px solid rgba(147, 51, 234, 0.4);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    white-space: normal;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}

.module-info-btn:hover .module-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.mode-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 4px;
    gap: 4px;
}

.mode-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Pixelify Sans', cursive;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.search-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.stat-item svg {
    color: rgba(147, 51, 234, 0.8);
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, rgba(147, 51, 234, 0.2), rgba(59, 130, 246, 0.2));
    border: 1px solid rgba(147, 51, 234, 0.3);
    padding: 6px 15px;
    border-radius: 50px;
    color: rgba(147, 51, 234, 1);
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-badge svg {
    color: rgba(147, 51, 234, 1);
}

/* Results Container */
.results-container {
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    display: none;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.3s ease-out;
}

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

.results-container.active {
    display: block;
}

/* Breach Results Styling */
.breach-results-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.breach-entry {
    background: rgba(5, 5, 15, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    animation: slideInUp 0.4s ease-out forwards;
    opacity: 0;
}

.breach-entry:nth-child(1) { animation-delay: 0.05s; }
.breach-entry:nth-child(2) { animation-delay: 0.1s; }
.breach-entry:nth-child(3) { animation-delay: 0.15s; }
.breach-entry:nth-child(4) { animation-delay: 0.2s; }
.breach-entry:nth-child(5) { animation-delay: 0.25s; }
.breach-entry:nth-child(6) { animation-delay: 0.3s; }
.breach-entry:nth-child(7) { animation-delay: 0.35s; }
.breach-entry:nth-child(8) { animation-delay: 0.4s; }
.breach-entry:nth-child(9) { animation-delay: 0.45s; }
.breach-entry:nth-child(10) { animation-delay: 0.5s; }
.breach-entry:nth-child(n+11) { animation-delay: 0.55s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breach-entry:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.breach-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breach-icon {
    width: 45px;
    height: 45px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(139, 92, 246, 1);
    flex-shrink: 0;
}

.breach-title {
    flex: 1;
}

.breach-title h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    text-transform: capitalize;
}

.breach-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 12px;
    font-size: 0.75rem;
    color: rgba(239, 68, 68, 1);
    text-transform: uppercase;
    font-weight: 600;
}

.breach-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breach-field {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 15px;
    align-items: start;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Pixelify Sans', cursive;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-5px);
}

.breach-entry:hover .copy-btn {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: rgba(34, 197, 94, 1);
}

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

.field-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-value {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    word-break: break-all;
}

.field-value.mono {
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.results-query {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-top: 5px;
}

.results-grid {
    display: grid;
    gap: 20px;
}

.result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.result-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(147, 51, 234, 0.3);
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.1);
}

.result-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.result-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(59, 130, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(147, 51, 234, 1);
}

.result-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.result-card-body {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.result-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
}

.result-value {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.no-results svg {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    .search-main {
        padding-top: 80px;
    }

    .search-main-title {
        font-size: 2.5rem;
    }

    .search-subtitle {
        font-size: 1rem;
    }

    .search-card {
        padding: 20px;
    }

    .search-input-container {
        flex-wrap: wrap;
    }

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

    .search-options {
        flex-direction: column;
        align-items: stretch;
    }

    .mode-toggle {
        width: 100%;
    }

    .mode-btn {
        flex: 1;
    }

    .search-stats {
        flex-direction: column;
        gap: 10px;
    }

    .modules-list {
        grid-template-columns: 1fr;
    }

    .nav-logo-text {
        display: none;
    }
}

/* Bulk Search Interface */
.bulk-search-interface {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    animation: slideDown 0.3s ease;
}

.bulk-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bulk-search-header h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.close-bulk-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-bulk-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.bulk-queries-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
}

.bulk-queries-input:focus {
    outline: none;
    border-color: rgba(147, 51, 234, 0.4);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
}

.bulk-queries-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Pixelify Sans', cursive;
}

/* Collapsible Results */
.bulk-result-item {
    margin-bottom: 15px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.bulk-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(139, 92, 246, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.bulk-result-header:hover {
    background: rgba(139, 92, 246, 0.15);
}

.bulk-result-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.bulk-result-icon {
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(139, 92, 246, 1);
}

.bulk-result-info h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.bulk-result-info p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
    font-family: 'Courier New', monospace;
}

.bulk-result-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bulk-result-toggle svg {
    width: 16px;
    height: 16px;
    color: rgba(139, 92, 246, 1);
    transition: transform 0.3s ease;
}

.bulk-result-item.expanded .bulk-result-toggle svg {
    transform: rotate(180deg);
}

.bulk-result-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.bulk-result-item.expanded .bulk-result-content {
    max-height: 5000px;
}

.bulk-result-body {
    padding: 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

/* Custom Scrollbar - Purple/Violet */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6 0%, #6366f1 100%);
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9333ea 0%, #7c3aed 100%);
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 rgba(0, 0, 0, 0.3);
}

/* Mode Toggle Wrapper - New Design */
.mode-toggle-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.bulk-search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bulk-search-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.bulk-search-btn svg {
    color: rgba(139, 92, 246, 0.6);
}

.mode-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.mode-btn {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-btn.active {
    background: rgba(139, 92, 246, 0.2);
    color: rgba(139, 92, 246, 1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.mode-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.manual-icon {
    width: 14px;
    height: 14px;
}

/* Manual Services Grid */
.manual-services {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    animation: slideDown 0.3s ease;
}

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

.manual-services-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.service-card svg {
    color: rgba(139, 92, 246, 0.6);
    transition: all 0.2s ease;
}

.service-card:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.service-card:hover svg {
    color: rgba(139, 92, 246, 1);
    transform: scale(1.1);
}

.service-card.selected {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    color: rgba(139, 92, 246, 1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.service-card.selected svg {
    color: rgba(139, 92, 246, 1);
}

/* Hide settings button in manual mode */
.mode-manual .settings-btn {
    display: none !important;
}

@media (max-width: 768px) {
    .mode-toggle-wrapper {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .bulk-search-btn,
    .mode-toggle {
        width: 100%;
        justify-content: center;
    }

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

/* Profile Dropdown Styles */
.profile-dropdown {
    position: relative;
    z-index: 1000;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-username {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

.profile-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(5, 5, 15, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    cursor: pointer;
}

.profile-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.profile-menu-item svg {
    flex-shrink: 0;
    color: rgba(139, 92, 246, 0.8);
}

.profile-menu-item:last-child {
    color: rgba(239, 68, 68, 0.8);
}

.profile-menu-item:last-child:hover {
    background: rgba(239, 68, 68, 0.1);
    color: rgba(239, 68, 68, 1);
}

.profile-menu-item:last-child svg {
    color: rgba(239, 68, 68, 0.8);
}

@media (max-width: 768px) {
    .profile-username {
        display: none;
    }

    .profile-trigger {
        padding: 8px 12px;
    }
}

