/* Çocuk İsimleri - Main CSS - Optimized */

:root {
    --primary-color: #1f6f78;
    --secondary-color: #2a9d8f;
    --accent-color: #e07a5f;
    --highlight-color: #f2b462;
    --danger-color: #d96559;
    --success-color: #2f9f88;
    --warning-color: #f2b462;
    --light-color: #f7f1e8;
    --dark-color: #1f2328;
    --muted-color: #5f6b75;
    --surface-color: #ffffff;
    --surface-muted: #f5efe6;
    --border-color: rgba(31, 35, 40, 0.12);
    --shadow-sm: 0 8px 18px rgba(16, 24, 32, 0.08);
    --shadow-lg: 0 24px 50px rgba(16, 24, 32, 0.18);
    --radius-sm: 12px;
    --radius-lg: 20px;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
    /* Spacing scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--surface-muted);
    background-image:
        radial-gradient(circle at 12% 8%, rgba(31, 111, 120, 0.12), transparent 42%),
        radial-gradient(circle at 88% 18%, rgba(242, 180, 98, 0.18), transparent 46%),
        radial-gradient(circle at 50% 100%, rgba(42, 157, 143, 0.12), transparent 55%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

main {
    position: relative;
    z-index: 1;
    animation: pageFade 0.6s ease both;
    min-height: 60vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: 0.2px;
}

a {
    color: var(--primary-color);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Navbar */
.navbar {
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(16, 24, 32, 0.08);
}

.navbar-shell {
    max-width: 1480px;
}

.navbar-brand {
    font-size: 1.6rem;
    font-family: var(--font-display);
    letter-spacing: 0.4px;
    color: var(--dark-color) !important;
}

.navbar .nav-link {
    color: var(--muted-color) !important;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
    margin: 0 4px;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--dark-color) !important;
    background: rgba(31, 111, 120, 0.12);
}

.navbar .nav-link.btn {
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    border: none;
    box-shadow: 0 10px 24px rgba(31, 111, 120, 0.25);
}

.navbar .nav-link.btn.btn-outline-primary {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(31, 111, 120, 0.4);
    box-shadow: none;
}

.navbar .nav-link.btn.btn-outline-primary:hover {
    background: rgba(31, 111, 120, 0.12) !important;
}

.navbar-toggler {
    border-radius: 10px;
    border-color: rgba(31, 111, 120, 0.25);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(31, 111, 120, 0.2);
}

/* Hero Section */
.hero-section {
    min-height: 420px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-shadow: none;
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -140px;
    right: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 65%);
    opacity: 0.7;
    animation: float 12s ease-in-out infinite;
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    bottom: -180px;
    left: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    opacity: 0.7;
    animation: float 14s ease-in-out infinite;
}

.hero-section .container-lg {
    position: relative;
    z-index: 1;
}

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

.hero-section .lead {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg) !important;
}

.card-title a {
    color: var(--dark-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--primary-color);
}

/* Badges */
.badge {
    padding: 0.45rem 0.75rem;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 999px;
}

/* Buttons */
.btn {
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    box-shadow: 0 12px 24px rgba(31, 111, 120, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: rgba(31, 111, 120, 0.4);
}

.btn-outline-primary:hover {
    background: rgba(31, 111, 120, 0.12);
    color: var(--dark-color);
}

.btn-light {
    font-weight: 600;
    color: var(--dark-color);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.9);
}

/* Forms */
.form-control {
    border-radius: 14px;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    font-size: 1rem;
    background: var(--surface-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(31, 111, 120, 0.2);
}

.form-control::placeholder {
    color: #8b97a1;
}

.autocomplete-list {
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    max-height: 260px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.15s ease;
}

.autocomplete-item:hover {
    background-color: var(--surface-muted);
}

.autocomplete-item small {
    color: var(--muted-color);
}

.premium-blur {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0 0 10px 10px;
    pointer-events: none;
}

.premium-locked {
    position: relative;
}

/* Search Bar */
.search-section {
    background: linear-gradient(135deg, rgba(31, 111, 120, 0.98) 0%, rgba(42, 157, 143, 0.95) 55%, rgba(242, 180, 98, 0.92) 100%);
    padding: 20px 0;
}

.search-hero {
    background: linear-gradient(135deg, rgba(31, 111, 120, 0.98) 0%, rgba(42, 157, 143, 0.95) 55%, rgba(242, 180, 98, 0.92) 100%);
    position: relative;
    overflow: hidden;
}

.search-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.18), transparent 45%);
    opacity: 0.7;
}

.search-hero .container-lg {
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    gap: 5px;
}

.page-link {
    border-radius: 8px;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    box-shadow: 0 10px 20px rgba(31, 111, 120, 0.2);
}

/* Rating */
.rating-star {
    transition: all 0.2s ease;
}

.rating-star:hover {
    transform: scale(1.2);
}

/* Footer */
footer,
.site-footer {
    background: linear-gradient(160deg, #1f2328 0%, #19323a 60%, #1f6f78 100%);
    color: #f7f1e8;
    margin-top: 60px;
}

footer a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

footer a:hover {
    color: var(--highlight-color) !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-links a:hover {
    background-color: rgba(242, 180, 98, 0.25);
    transform: translateY(-3px);
}

/* Utilities */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 60%, var(--highlight-color) 100%);
}

.bg-light {
    background-color: var(--surface-muted) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-muted {
    color: var(--muted-color) !important;
}

.text-warning {
    color: var(--highlight-color) !important;
}

.text-info {
    color: #2f6f99 !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .card-body {
        padding: 15px;
    }

    .btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Animations */
@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0);
    }
}

.row.g-3 > [class*="col"],
.row.g-4 > [class*="col"],
.row.g-5 > [class*="col"] {
    animation: fadeUp 0.6s ease both;
}

.row.g-3 > [class*="col"]:nth-child(1),
.row.g-4 > [class*="col"]:nth-child(1),
.row.g-5 > [class*="col"]:nth-child(1) {
    animation-delay: 0.05s;
}

.row.g-3 > [class*="col"]:nth-child(2),
.row.g-4 > [class*="col"]:nth-child(2),
.row.g-5 > [class*="col"]:nth-child(2) {
    animation-delay: 0.1s;
}

.row.g-3 > [class*="col"]:nth-child(3),
.row.g-4 > [class*="col"]:nth-child(3),
.row.g-5 > [class*="col"]:nth-child(3) {
    animation-delay: 0.15s;
}

.row.g-3 > [class*="col"]:nth-child(4),
.row.g-4 > [class*="col"]:nth-child(4),
.row.g-5 > [class*="col"]:nth-child(4) {
    animation-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border {
    color: var(--primary-color);
}

/* Alert */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Category Card */
.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    background-color: var(--light-color);
}

/* Name Grid */
.name-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .name-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-muted);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Footer SEO Section */
.text-pink {
    color: #d86a6a !important;
}

.text-purple {
    color: #2f6f99 !important;
}

footer a:hover {
    color: var(--highlight-color) !important;
}

footer .badge:hover {
    background-color: var(--highlight-color) !important;
    color: white !important;
}

footer ul li a {
    transition: all 0.3s ease;
    display: inline-block;
}

footer ul li a:hover {
    transform: translateX(5px);
    color: white !important;
}

/* Trending Keywords Section */
.bg-light .badge {
    font-weight: 400;
    transition: all 0.3s ease;
}

.bg-light .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Mega Menu Styles */
.dropdown-menu {
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

.dropdown-menu-lg {
    min-width: 280px;
}

.dropdown-menu-lg .dropdown-item {
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
}

.dropdown-menu-lg .dropdown-item:hover {
    background-color: var(--surface-muted);
    padding-left: 1.5rem;
}

.dropdown-menu-lg .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Navbar improvements */
.navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeIn 0.3s ease;
}

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

.navbar .nav-link.btn {
    margin-top: 5px;
}

/* Search suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestions .suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(31, 35, 40, 0.08);
}

.search-suggestions .suggestion-item:hover {
    background-color: var(--surface-muted);
}

/* Footer Styles - Consolidated */
.footer-link {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 1 !important;
    color: #fff !important;
}

.footer-backlink-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-backlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    line-height: 1.2;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-backlink:hover,
.footer-backlink:focus-visible {
    color: #fff;
    background: rgba(242, 180, 98, 0.25);
    border-color: rgba(242, 180, 98, 0.48);
    transform: translateY(-1px);
}

/* Name Discovery Cards */
.name-discovery-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.name-discovery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.name-discovery-card .btn {
    font-size: 0.85rem;
}

/* Accordion Styles */
.accordion-button:not(.collapsed) {
    background-color: rgba(31, 111, 120, 0.12);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(31, 111, 120, 0.2);
}

/* Badge Styles */
.badge.bg-white {
    transition: all 0.2s ease;
}

.badge.bg-white:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn-print-hide {
        display: none;
    }
}

/* ============================================
   ENHANCED RESPONSIVE DESIGN
   ============================================ */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    html {
        font-size: 14px;
    }
    
    .container-lg {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section {
        min-height: 300px;
        padding: 30px 0;
    }
    
    .hero-section h1,
    .display-4 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar .nav-link {
        padding: 0.5rem 0.75rem;
        margin: 2px 0;
    }
    
    .name-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .badge {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
    }
    
    footer {
        padding: 30px 0;
    }
    
    footer .row > div {
        margin-bottom: 20px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
    
    /* Mobile table scroll */
    .table-responsive-mobile {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Stack buttons on mobile */
    .d-flex.gap-2 {
        flex-direction: column;
    }
    
    .d-flex.gap-2 > .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    /* Improve touch targets */
    .btn, .nav-link, a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .name-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .navbar .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Side-by-side cards on tablet */
    .row.g-3 > .col-md-6,
    .row.g-4 > .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 450px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container-lg {
        max-width: 1140px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .hover-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Disable hover animations on touch */
    .navbar .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .navbar .dropdown.show .dropdown-menu {
        display: block;
    }
}

/* High DPI / Retina Display */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --surface-color: #1a1a1a;
        --surface-muted: #2d2d2d;
        --dark-color: #f0f0f0;
        --muted-color: #a0a0a0;
        --border-color: rgba(255, 255, 255, 0.12);
    }
    
    /* Uncomment below to enable dark mode
    body {
        background-color: var(--surface-muted);
        color: var(--dark-color);
    }
    
    .card {
        background: var(--surface-color);
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }
    */
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Lazy Loading Image Placeholder */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Performance: Use GPU acceleration for animations */
.hover-card,
.btn,
.card,
.navbar {
    will-change: transform;
    transform: translateZ(0);
}

/* Pink Text Utility */
.text-pink {
    color: #e91e8c !important;
}

.btn-outline-pink {
    color: #e91e8c;
    border-color: #e91e8c;
}

.btn-outline-pink:hover {
    background-color: #e91e8c;
    color: white;
}

/* ============================================
   2026 GLOBAL MODERNIZATION LAYER
   ============================================ */

:root {
    --brand-ink: #13263c;
    --brand-ocean: #14607d;
    --brand-aqua: #1b8a8f;
    --brand-mint: #66c2b8;
    --brand-sand: #eef2f5;
    --brand-surface: rgba(255, 255, 255, 0.88);
    --brand-border: rgba(19, 38, 60, 0.14);
    --brand-shadow: 0 24px 40px rgba(15, 31, 48, 0.12);
    --brand-shadow-soft: 0 12px 26px rgba(15, 31, 48, 0.1);
    --radius-xl: 24px;
}

body.site-body {
    background:
        radial-gradient(circle at 2% -8%, rgba(102, 194, 184, 0.26), transparent 26%),
        radial-gradient(circle at 98% 1%, rgba(20, 96, 125, 0.14), transparent 30%),
        linear-gradient(180deg, #f4f8fa 0%, #eef3f6 100%);
    color: var(--brand-ink);
}

.site-body .site-nav {
    border-bottom: 1px solid var(--brand-border);
    background: var(--brand-surface);
    box-shadow: var(--brand-shadow-soft);
}

.site-body .navbar-brand {
    letter-spacing: 0.2px;
}

.site-body .navbar .nav-link {
    position: relative;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1.2;
}

.site-body .navbar .nav-link.active {
    background: rgba(20, 96, 125, 0.13);
    color: var(--brand-ink) !important;
}

.site-body .navbar .nav-link.active::after {
    content: "";
    position: absolute;
    inset: auto 18% -5px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-ocean), var(--brand-aqua));
}

.site-body .navbar .navbar-nav {
    align-items: center;
}

.site-body .navbar .navbar-nav > .nav-item {
    flex-shrink: 0;
}

.site-body .navbar .nav-link i {
    flex-shrink: 0;
}

.site-body .navbar .nav-link.btn {
    margin-top: 0;
    padding: 0.55rem 1rem !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
}

.site-body .search-hero {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.site-body main {
    position: relative;
}

.site-body main::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 24px;
    width: min(1280px, calc(100% - 32px));
    height: calc(100% - 48px);
    background: rgba(255, 255, 255, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-xl);
    pointer-events: none;
    z-index: 0;
    backdrop-filter: blur(2px);
}

.site-body main > * {
    position: relative;
    z-index: 1;
}

.hero-section {
    border-radius: clamp(18px, 2.4vw, 30px);
    margin: 20px auto 0;
    width: min(1280px, calc(100% - 30px));
    box-shadow: var(--brand-shadow);
    overflow: hidden;
}

.hero-section h1,
.hero-section .display-4 {
    font-size: clamp(1.8rem, 2.7vw, 3rem);
    line-height: 1.1;
}

.card {
    border: 1px solid var(--brand-border);
    box-shadow: var(--brand-shadow-soft);
    border-radius: clamp(16px, 1.7vw, 24px);
}

.card .card-header {
    background: rgba(20, 96, 125, 0.05);
    border-bottom: 1px solid rgba(20, 96, 125, 0.1);
}

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

.btn {
    border-radius: 12px;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-ocean) 0%, var(--brand-aqua) 100%);
    box-shadow: 0 12px 22px rgba(20, 96, 125, 0.24);
}

.btn-outline-primary {
    border-color: rgba(20, 96, 125, 0.45);
}

.btn-outline-primary:hover {
    background: rgba(20, 96, 125, 0.12);
}

.form-control,
.form-select {
    border-color: rgba(19, 38, 60, 0.18);
    border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(20, 96, 125, 0.55);
    box-shadow: 0 0 0 0.22rem rgba(20, 96, 125, 0.2);
}

.breadcrumb {
    display: inline-flex;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(2px);
}

.page-link {
    border-radius: 10px;
}

.badge {
    letter-spacing: 0.02em;
}

.autocomplete-list {
    border: 1px solid rgba(19, 38, 60, 0.16);
    box-shadow: var(--brand-shadow-soft);
}

.site-footer {
    margin-top: 72px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer .footer-link {
    opacity: 0.9;
}

.site-footer .footer-link:hover {
    opacity: 1;
}

.auth-shell {
    min-height: 100vh;
    background: linear-gradient(135deg, #135a78 0%, #1f7a89 55%, #2da595 100%);
    display: flex;
    align-items: center;
}

.auth-shell .card {
    border: 0;
    border-radius: 26px;
}

.contact-icon {
    font-size: 40px;
    color: var(--brand-ocean);
}

#backToTop {
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    box-shadow: 0 12px 26px rgba(20, 96, 125, 0.3);
}

.fade-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.fade-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .site-body main::before {
        width: calc(100% - 18px);
        top: 14px;
        height: calc(100% - 22px);
        border-radius: 18px;
    }

    .hero-section {
        width: calc(100% - 18px);
        margin-top: 14px;
    }
}

@media (min-width: 992px) {
    .site-body .navbar .nav-link {
        margin: 0 2px;
        padding: 0.45rem 0.72rem;
    }
}

@media (min-width: 1200px) {
    .site-body .navbar .navbar-nav {
        flex-wrap: nowrap;
    }

    .site-body .navbar .nav-link {
        margin: 0 1px;
        padding: 0.42rem 0.58rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   UI IMPROVEMENTS PACK
   ============================================ */

.mobile-nav-simple {
    border-top: 1px solid rgba(19, 38, 60, 0.12);
    margin-top: 0.65rem;
    padding-top: 0.65rem;
}

.mobile-nav-simple .nav-link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
    margin: 0.12rem 0;
}

.site-search-form .position-relative {
    position: relative;
}

.search-loader {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(19, 38, 60, 0.45);
    pointer-events: none;
}

.autocomplete-item.active {
    background: rgba(20, 96, 125, 0.14);
}

.autocomplete-empty {
    padding: 0.8rem 0.9rem;
    color: var(--muted-color);
    font-size: 0.9rem;
}

.name-list-card .card-title {
    font-size: 1.08rem;
}

.name-card-meta {
    font-size: 0.88rem;
}

.name-card-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.name-card-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
}

.name-card-actions .btn-outline-danger {
    flex: 0 0 42px;
    padding: 0;
}

.name-detail-hub .nav-tabs {
    gap: 0.4rem;
    border-bottom: 0;
}

.name-detail-hub .nav-tabs .nav-link {
    border: 1px solid rgba(19, 38, 60, 0.14);
    border-radius: 999px;
    color: var(--muted-color);
}

.name-detail-hub .nav-tabs .nav-link.active {
    background: rgba(20, 96, 125, 0.14);
    color: var(--brand-ink);
    border-color: rgba(20, 96, 125, 0.2);
}

.premium-billing-toggle .btn-group .btn {
    min-width: 200px;
}

.premium-plan-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(19, 38, 60, 0.16);
}

.premium-plan-card.is-selected {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(20, 96, 125, 0.22);
    border-color: rgba(20, 96, 125, 0.45);
}

.premium-compare-table th,
.premium-compare-table td {
    vertical-align: middle;
}

.premium-compare-table th:not(:first-child),
.premium-compare-table td:not(:first-child) {
    text-align: center;
}

.premium-trust-row .card {
    border-radius: 16px;
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: rgba(19, 38, 60, 0.96);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.45rem 0.3rem calc(0.45rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-bottom-link {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    font-size: 0.72rem;
    min-width: 66px;
}

.mobile-bottom-link i {
    font-size: 1rem;
}

.mobile-bottom-link:hover,
.mobile-bottom-link:focus-visible {
    color: #fff;
}

body.site-body {
    padding-bottom: 0;
}

@media (max-width: 991.98px) {
    body.site-body {
        padding-bottom: 78px;
    }
}

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid rgba(20, 96, 125, 0.55);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .premium-billing-toggle .btn-group {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .premium-billing-toggle .btn-group .btn {
        min-width: 0;
        width: 100%;
    }
}

/* ============================================
   GLOBAL PAGE MODERNIZATION
   ============================================ */

.site-body main .card {
    overflow: hidden;
}

.site-body main .card-body {
    padding: clamp(1rem, 2vw, 1.35rem);
}

.site-body main .table-responsive {
    border-radius: 16px;
    border: 1px solid rgba(19, 38, 60, 0.12);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 30px rgba(15, 31, 48, 0.08);
}

.site-body main .table {
    margin-bottom: 0;
}

.site-body main .table > :not(caption) > * > * {
    padding: 0.82rem 0.95rem;
}

.site-body main .table thead th {
    background: rgba(20, 96, 125, 0.08);
    border-bottom: 1px solid rgba(20, 96, 125, 0.16);
    color: var(--brand-ink);
    font-weight: 700;
}

.site-body main .list-group {
    border-radius: 14px;
    overflow: hidden;
}

.site-body main .list-group-item {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(19, 38, 60, 0.1);
}

.site-body main .accordion-item {
    border: 1px solid rgba(19, 38, 60, 0.14);
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 0.55rem;
    box-shadow: 0 8px 20px rgba(15, 31, 48, 0.06);
}

.site-body main .accordion-button {
    font-weight: 700;
    color: var(--brand-ink);
    background: rgba(255, 255, 255, 0.82);
}

.site-body main .accordion-button:not(.collapsed) {
    background: rgba(20, 96, 125, 0.12);
    color: var(--brand-ink);
}

.site-body main .alert {
    border: 1px solid rgba(19, 38, 60, 0.14);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 31, 48, 0.08);
}

.site-body main .badge {
    letter-spacing: 0.015em;
    font-weight: 700;
}

.site-body main .btn {
    min-height: 40px;
}

.site-body main .hero-section .btn {
    min-height: 44px;
}

.site-body main .seo-content .card {
    border-left: 4px solid rgba(20, 96, 125, 0.28);
}

.site-body main .breadcrumb {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

@media (max-width: 767.98px) {
    .site-body main .card-body {
        padding: 0.95rem;
    }

    .site-body main .table > :not(caption) > * > * {
        padding: 0.7rem 0.62rem;
        font-size: 0.92rem;
    }
}
