/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        'Inter',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
}

.nav-logo i {
    margin-right: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
    background-color: #eff6ff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #10b981;
    color: white;
}

.btn-primary:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #ef4444;
    color: white;
}

.btn-secondary:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background-color: #2563eb;
    color: white;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.green {
    background-color: #10b981;
}

.stat-icon.red {
    background-color: #ef4444;
}

.stat-icon.blue {
    background-color: #2563eb;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-content p {
    color: #64748b;
    font-weight: 500;
}

/* Dashboard Section */
.dashboard-section {
    padding: 60px 0;
    background: #f8fafc;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.view-all:hover {
    text-decoration: underline;
}

.card-content {
    padding: 24px;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.loading i {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Review and Report Items */
.review-item,
.report-item {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.review-item:hover,
.report-item:hover {
    background-color: #f8fafc;
}

.review-item:last-child,
.report-item:last-child {
    border-bottom: none;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.service-name {
    font-weight: 600;
    color: #1e293b;
}

.item-date {
    font-size: 12px;
    color: #64748b;
}

.item-content {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.user-id {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.services-section .card-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.services-section .card-header h2 {
    color: #e2e8f0;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.services-section .card-header h2 i {
    color: #3b82f6;
    margin-right: 12px;
    font-size: 1.1em;
}

.services-section .featured-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin-top: 8px;
    margin-bottom: 24px;
    font-weight: 400;
    letter-spacing: 0.025em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    padding: 40px 24px;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card.premium {
    background: linear-gradient(
        135deg,
        rgba(30, 41, 59, 0.9) 0%,
        rgba(51, 65, 85, 0.9) 50%,
        rgba(15, 23, 42, 0.95) 100%
    );
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-card.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: shimmer 4s infinite;
    z-index: 1;
}

.service-card.premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.service-card.premium:hover {
    box-shadow:
        0 32px 64px rgba(59, 130, 246, 0.25),
        0 0 0 1px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.premium-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.service-content {
    z-index: 10;
    position: relative;
    margin-bottom: 20px;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow:
        0 8px 16px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(3deg);
    box-shadow:
        0 12px 24px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.service-card .service-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f1f5f9;
    letter-spacing: -0.025em;
    line-height: 1.2;
    z-index: 10;
    position: relative;
}

.service-tagline {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.025em;
    z-index: 10;
    position: relative;
}

.service-hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.98) 0%,
        rgba(15, 23, 42, 0.95) 70%,
        rgba(15, 23, 42, 0.85) 100%
    );
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    padding: 20px;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.service-card:hover .service-hover-overlay {
    transform: translateY(0);
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:hover .feature-item:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:hover .feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:hover .feature-item:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item i {
    color: #3b82f6;
    font-size: 16px;
    min-width: 16px;
}

.advertise-card {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.advertise-card:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.advertise-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.advertise-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.advertise-content p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.4;
}

.cta-text {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reviews-count {
    color: #10b981;
    font-weight: 500;
}

.reports-count {
    color: #ef4444;
    font-weight: 500;
}

/* Scammer Search Functionality */
.search-section {
    padding: 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.search-container {
    max-width: 500px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #64748b;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    padding-right: 40px;
}

.search-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.search-input::placeholder {
    color: #94a3b8;
}

.clear-search {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #64748b;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: none;
}

.clear-search:hover {
    background: #f1f5f9;
    color: #ef4444;
}

.clear-search.visible {
    display: block;
}

.search-help {
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-help i {
    color: #94a3b8;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-results .report-item {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
    margin-bottom: 8px;
}

.search-results .report-item:hover {
    background: #fee2e2;
}

.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.search-no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.search-stats {
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid #ef4444;
}

.search-stats h4 {
    margin: 0 0 4px 0;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
}

.search-stats p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

/* Forms */
.form-section {
    padding: 60px 0;
    background: white;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.form-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-label.required::after {
    content: ' *';
    color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.form-help {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.form-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 4px;
}

.form-success {
    color: #10b981;
    font-size: 14px;
    margin-top: 4px;
}

/* Alert Messages */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Footer */
.footer {
    background: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 30px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 16px;
    }

    .service-card {
        min-height: 260px;
        padding: 28px 20px;
    }

    .service-card:hover {
        transform: translateY(-8px) scale(1.01);
    }

    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .service-card .service-name {
        font-size: 18px;
    }

    .service-tagline {
        font-size: 13px;
    }

    .service-hover-overlay {
        padding: 16px;
    }

    .feature-item {
        font-size: 13px;
        gap: 10px;
    }

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

    .form {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .hero-section {
        padding: 60px 0;
    }

    .dashboard-section,
    .stats-section,
    .form-section {
        padding: 40px 0;
    }

    .stat-card {
        padding: 20px;
    }

    .card-content {
        padding: 16px;
    }

    .services-grid {
        padding: 24px 12px;
        gap: 20px;
    }

    .service-card {
        min-height: 240px;
        padding: 24px 16px;
        border-radius: 16px;
    }

    .service-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 12px;
    }

    .service-card .service-name {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .service-tagline {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .premium-badge {
        top: 12px;
        right: 12px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .service-hover-overlay {
        padding: 12px;
    }

    .feature-item {
        font-size: 12px;
        gap: 8px;
    }
}

/* Autocomplete Suggestions */
.name-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
    background-color: #f1f5f9;
}

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

.suggestion-name {
    font-weight: 500;
    color: #1e293b;
}

.suggestion-count {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.form-group {
    position: relative;
}

/* Improve datalist styling for better browser support */
datalist {
    display: none;
}

input[list]::-webkit-calendar-picker-indicator {
    display: none;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.25rem;
}
.mt-2 {
    margin-top: 0.5rem;
}
.mt-3 {
    margin-top: 0.75rem;
}
.mt-4 {
    margin-top: 1rem;
}
.mt-5 {
    margin-top: 1.25rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}
.mb-2 {
    margin-bottom: 0.5rem;
}
.mb-3 {
    margin-bottom: 0.75rem;
}
.mb-4 {
    margin-bottom: 1rem;
}
.mb-5 {
    margin-bottom: 1.25rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}
