﻿/* ========================================
   DOMETRIX.IO - GLOBAL STYLES
   All styles for Homepage, SearchPage, DomainPage, and LoginPage
   ======================================== */

/* ========================================
   BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    overflow-x: hidden;
}

/* ========================================
   BACKGROUND
   ======================================== */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, rgba(120, 40, 200, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(40, 120, 200, 0.15) 0%, transparent 50%);
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

    .nav-links a {
        color: #ffffff;
        text-decoration: none;
        transition: color 0.3s;
        font-weight: 500;
    }

        .nav-links a:hover {
            color: #667eea;
        }

/* Navigation Buttons */
.cta-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn-login {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid #667eea;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

    .btn-login:hover {
        background: rgba(102, 126, 234, 0.1);
    }

.btn-register {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
}

    .btn-register:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }

/* ========================================
   USER MENU (Logged-in users)
   ======================================== */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

    .user-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: #667eea;
    }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

    .user-dropdown.active {
        display: block;
    }

.user-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

    .user-dropdown-item:hover {
        background: rgba(102, 126, 234, 0.1);
        padding-left: 1.5rem;
    }

.user-dropdown-logout {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #ff6b6b;
}

    .user-dropdown-logout:hover {
        background: rgba(255, 107, 107, 0.1);
    }

/* ========================================
   NAV SEARCH BAR (All pages except Index)
   ======================================== */
.nav-search-container {
    flex: 1;
    max-width: 480px;
    margin: 0 1.5rem;
    position: relative;
}

.nav-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search-input {
    width: 100%;
    padding: 0.65rem 6rem 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

    .nav-search-input:focus {
        outline: none;
        border-color: #667eea;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
    }

    .nav-search-input::placeholder {
        color: #888;
    }

.nav-search-button {
    position: absolute;
    right: 4px;
    padding: 0.45rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

    .nav-search-button:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
    }

/* ========================================
   HERO SECTION (Homepage)
   ======================================== */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 5%;
    position: relative;
}

    .hero h1 {
        font-size: 4.5rem;
        margin-bottom: 1.5rem;
        background: linear-gradient(135deg, #ffffff 0%, #667eea 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: fadeInUp 1s ease-out;
    }

    .hero p {
        font-size: 1.5rem;
        color: #b0b0c0;
        margin-bottom: 3rem;
        max-width: 700px;
        animation: fadeInUp 1s ease-out 0.2s both;
    }

/* ========================================
   SEARCH BAR (Homepage)
   ======================================== */
.search-container {
    width: 100%;
    max-width: 700px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
    position: relative;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 1.5rem 4.5rem 1.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

    .search-input:focus {
        outline: none;
        border-color: #667eea;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    }

    .search-input::placeholder {
        color: #888;
    }

.search-button {
    position: absolute;
    right: 8px;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

    .search-button:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
    }

/* Search Input Blink Animation */
@keyframes blink {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.1);
    }

    50% {
        border-color: #667eea;
    }
}

.search-input.blink {
    animation: blink 0.6s ease-in-out;
}

/* ========================================
   SEARCH SUGGESTIONS DROPDOWN
   ======================================== */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

    .suggestions-dropdown.active {
        display: block;
    }

.suggestion-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: left;
}

    .suggestion-item:last-child {
        border-bottom: none;
    }

    .suggestion-item:hover {
        background: rgba(102, 126, 234, 0.1);
        padding-left: 2rem;
    }

.suggestion-name {
    color: #ffffff;
    font-weight: 500;
}

/* ========================================
   HERO BUTTONS (Hidden on Homepage)
   ======================================== */
.hero-buttons {
    display: none;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.primary-button {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

    .primary-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    }

.secondary-button {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid #667eea;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

    .secondary-button:hover {
        background: rgba(102, 126, 234, 0.1);
        transform: translateY(-3px);
    }

/* ========================================
   FEATURES SECTION (Homepage)
   ======================================== */
.features {
    padding: 8rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

    .feature-card:hover {
        transform: translateY(-10px);
        border-color: #667eea;
        background: rgba(102, 126, 234, 0.05);
        box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
    }

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-card p {
    color: #b0b0c0;
    line-height: 1.6;
}

/* ========================================
   STATS SECTION (Homepage)
   ======================================== */
.stats {
    padding: 6rem 5%;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.stat-item h2 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #b0b0c0;
    font-size: 1.1rem;
}

/* ========================================
   SEARCH HEADER (SearchPage)
   ======================================== */
.search-header {
    padding: 3rem 5%;
    text-align: center;
}

    .search-header h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        background: linear-gradient(135deg, #ffffff 0%, #667eea 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.search-info {
    color: #b0b0c0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.search-query {
    color: #667eea;
    font-weight: 600;
}

/* ========================================
   RESULTS TABLE (SearchPage)
   ======================================== */
.results-container {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.results-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: rgba(102, 126, 234, 0.1);
}

th {
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #667eea;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

    tbody tr:hover {
        background: rgba(102, 126, 234, 0.05);
    }

td {
    padding: 1.5rem;
    color: #ffffff;
}

.domain-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

    .domain-link:hover {
        color: #764ba2;
        text-decoration: underline;
    }

.metric-value {
    font-weight: 600;
    color: #ffffff;
}

.traffic-value {
    color: #28c878;
}

/* ========================================
   DOMAIN HEADER (DomainPage)
   ======================================== */
.domain-header {
    padding: 3rem 5%;
    text-align: center;
}

    .domain-header h1 {
        font-size: 3rem;
        margin-bottom: 2rem;
        background: linear-gradient(135deg, #ffffff 0%, #667eea 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

/* Stat Cards (DomainPage) */
.stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

    .stat-card:hover {
        transform: translateY(-5px);
        border-color: #667eea;
        background: rgba(102, 126, 234, 0.05);
    }

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #b0b0c0;
    font-size: 1rem;
}

/* ========================================
   CONTENT SECTIONS (DomainPage)
   ======================================== */
.content-section {
    padding: 3rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.chart-container {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 3rem;
}

/* ========================================
   KEYWORDS TABLE (DomainPage)
   ======================================== */
.keywords-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    margin-bottom: 3rem;
}

    .keywords-table th {
        font-size: 0.9rem;
    }

    .keywords-table td {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

/* Position Badges */
.position-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.position-top {
    background: rgba(40, 200, 120, 0.2);
    color: #28c878;
}

.position-mid {
    background: rgba(255, 200, 40, 0.2);
    color: #ffc828;
}

.position-low {
    background: rgba(200, 40, 40, 0.2);
    color: #c82828;
}

/* ========================================
   SIMILAR DOMAINS (DomainPage)
   ======================================== */
.similar-domains {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.domain-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

    .domain-card:hover {
        transform: translateY(-5px);
        border-color: #667eea;
        background: rgba(102, 126, 234, 0.05);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    }

    .domain-card h3 {
        color: #667eea;
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }

.domain-metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: #b0b0c0;
}

    .domain-metric strong {
        color: #ffffff;
    }

/* ========================================
   LOGIN PAGE
   ======================================== */
.login-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 5%;
}

.login-box {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .login-header h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        background: linear-gradient(135deg, #ffffff 0%, #667eea 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .login-header p {
        color: #b0b0c0;
        font-size: 0.95rem;
    }

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.5rem;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #b0b0c0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

    .tab-btn.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        color: #ffffff;
        font-weight: 500;
        font-size: 0.95rem;
    }

    .form-group input {
        width: 100%;
        padding: 0.9rem 1.2rem;
        background: rgba(255, 255, 255, 0.05);
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        color: white;
        font-size: 1rem;
        transition: all 0.3s;
    }

        .form-group input:focus {
            outline: none;
            border-color: #667eea;
            background: rgba(255, 255, 255, 0.08);
        }

        .form-group input::placeholder {
            color: #888;
        }

.forgot-password {
    text-align: right;
    margin-bottom: 1rem;
}

    .forgot-password a {
        color: #667eea;
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s;
    }

        .forgot-password a:hover {
            color: #764ba2;
        }

.recaptcha-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1.5rem;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #b0b0c0;
    font-size: 0.9rem;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
    }

    .divider span {
        padding: 0 1rem;
    }

.btn-google {
    width: 100%;
    padding: 1rem;
    background: white;
    border: none;
    border-radius: 10px;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

    .btn-google:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    }

    .btn-google svg {
        width: 20px;
        height: 20px;
    }

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #b0b0c0;
    font-size: 0.95rem;
}

    .register-link a {
        color: #667eea;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s;
    }

        .register-link a:hover {
            color: #764ba2;
        }

.password-toggle {
    position: relative;
}

    .password-toggle input {
        padding-right: 3rem;
    }

.toggle-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

    .toggle-icon:hover {
        color: #667eea;
    }

/* ========================================
   ENHANCED LOGIN/REGISTER STYLES
   ======================================== */

/* Form validation errors */
.text-danger {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

/* Validation summary */
.validation-summary-errors {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.validation-summary-errors ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.validation-summary-errors li {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Checkbox styling */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: #b0b0c0;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label:hover {
    color: #ffffff;
}

/* Form links */
.form-links {
    margin-bottom: 1rem;
    text-align: center;
}

.form-links.secondary-links {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.link-primary {
    color: #667eea;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.link-primary:hover {
    color: #764ba2;
    text-decoration: underline;
}

.link-secondary {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.link-secondary:hover {
    color: #667eea;
}

/* External logins section */
.external-logins {
    margin-top: 1.5rem;
}

.btn-external {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.btn-external:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.btn-external:last-child {
    margin-bottom: 0;
}

.provider-icon {
    font-size: 1.2rem;
}

/* Alert messages */
.alert-success {
    background: rgba(40, 200, 120, 0.1);
    border: 1px solid rgba(40, 200, 120, 0.3);
    color: #28c878;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-info {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: rgba(200, 40, 40, 0.1);
    border: 1px solid rgba(200, 40, 40, 0.3);
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-dismissible {
    position: relative;
    padding-right: 2.5rem;
}

    .alert-dismissible .btn-close {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        background: none;
        border: none;
        color: inherit;
        font-size: 1.2rem;
        cursor: pointer;
        opacity: 0.7;
        line-height: 1;
    }

        .alert-dismissible .btn-close:hover {
            opacity: 1;
        }

        .alert-dismissible .btn-close::after {
            content: '\00d7';
        }

.confirmation-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Button disabled state */
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   MANAGE ACCOUNT PAGE
   ======================================== */
.manage-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 5%;
}

.manage-box {
    width: 100%;
    max-width: 750px;
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.manage-content {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.manage-sidebar {
    flex-shrink: 0;
    width: 160px;
}

.manage-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.manage-nav-item {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: #b0b0c0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

    .manage-nav-item:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.05);
    }

    .manage-nav-item.active {
        color: #ffffff;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

.manage-body {
    flex: 1;
    min-width: 0;
}

    .manage-body h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
        color: #ffffff;
    }

.manage-email-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .manage-email-row .form-control {
        flex: 1;
    }

.manage-email-verified {
    color: #28c878;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.manage-email-verify-btn {
    background: none;
    border: 1px solid #667eea;
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

    .manage-email-verify-btn:hover {
        background: rgba(102, 126, 234, 0.1);
    }

.manage-personal-data p {
    color: #b0b0c0;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

    .manage-personal-data p strong {
        color: #ff6b6b;
    }

.manage-personal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.manage-btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

    .manage-btn-danger:hover {
        box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4) !important;
    }

/* Mobile responsiveness */
@media (max-width: 768px) {
    .login-box {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .login-header h1 {
        font-size: 1.75rem;
    }

    .login-header p {
        font-size: 0.9rem;
    }

    .form-group input {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .manage-box {
        padding: 2rem 1.5rem;
    }

    .manage-content {
        flex-direction: column;
    }

    .manage-sidebar {
        width: 100%;
    }

    .manage-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .manage-nav-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .manage-personal-actions {
        flex-direction: column;
    }
}

/* ========================================
   EMPTY STATES
   ======================================== */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #b0b0c0;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #b0b0c0;
}

    .no-results h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: #ffffff;
    }

/* ========================================
   FOOTER
   ======================================== */
footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b0c0;
    margin-top: 4rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
    }

    .nav-search-container {
        display: none;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    /* Search Bar */
    .search-input {
        padding: 1.2rem 1rem;
        font-size: 1rem;
    }

    .search-button {
        position: relative;
        right: 0;
        width: 100%;
        margin-top: 1rem;
    }

    .search-wrapper {
        flex-direction: column;
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .primary-button, .secondary-button {
        width: 100%;
    }

    /* Search Header */
    .search-header h1 {
        font-size: 2rem;
    }

    /* Domain Header */
    .domain-header h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Tables */
    .results-table, .keywords-table {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }

    th, td {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .keywords-table table {
        min-width: 800px;
    }

    /* Login Page */
    .login-box {
        padding: 2rem 1.5rem;
    }

    .login-header h1 {
        font-size: 1.75rem;
    }
}
