﻿/* Google Domains Style - Minimalist & Modern */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@300;400;500&display=swap');

:root {
    --primary-color: #1a73e8;
    --primary-hover: #1765cc;
    --text-color: #202124;
    --text-secondary: #5f6368;
    --background-color: #ffffff;
    --surface-color: #f8f9fa;
    --border-color: #dadce0;
    --nav-height: 64px;
    --font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
    --shadow-card: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-hover: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}

/* Dark Mode Variables */
body.dark-mode {
    --text-color: #e8eaed;
    --text-secondary: #9aa0a6;
    --background-color: #202124;
    --surface-color: #292a2d;
    --border-color: #3c4043;
    --shadow-card: 0 1px 2px 0 rgba(0,0,0,0.3), 0 1px 3px 1px rgba(0,0,0,0.15);
    --shadow-hover: 0 1px 3px 0 rgba(0,0,0,0.3), 0 4px 8px 3px rgba(0,0,0,0.15);
}

body.dark-mode .hero {
    background: transparent;
}

body.dark-mode .features {
    background-color: #202124;
}

body.dark-mode .footer {
    background-color: #171717;
    border-top: 1px solid #3c4043;
}

body.dark-mode .search-box {
    background: #292a2d;
    border-color: #3c4043;
}

body.dark-mode .search-box input {
    color: #e8eaed;
    background: transparent;
}

body.dark-mode .search-box input::placeholder {
    color: #9aa0a6;
}

body.dark-mode .navbar {
    background-color: #292a2d;
    box-shadow: none !important;
}

body.dark-mode .nav-links {
    box-shadow: none !important;
}

body.dark-mode .card,
body.dark-mode .tool-card {
    background: #292a2d;
    border-color: #3c4043;
}

body.dark-mode .result-card {
    background: #292a2d;
    border-color: #3c4043;
}

body.dark-mode .result-header {
    background-color: #202124;
    border-bottom-color: #3c4043;
}

body.dark-mode .raw-data {
    background-color: #171717;
    border-color: #3c4043;
    color: #9aa0a6;
}

body.dark-mode .footer-bottom {
    border-top-color: #3c4043;
}

body.dark-mode .auth-container {
    background: #292a2d;
    border-color: #3c4043;
}

body.dark-mode .auth-logo {
    color: #e8eaed;
}

body.dark-mode .auth-title {
    color: #e8eaed;
}

body.dark-mode .auth-subtitle {
    color: #9aa0a6;
}

body.dark-mode .form-group label {
    color: #e8eaed;
}

body.dark-mode .form-group input {
    background: #202124;
    border-color: #3c4043;
    color: #e8eaed;
}

body.dark-mode .form-group input:focus {
    border-color: #8ab4f8;
    background: #202124;
}

body.dark-mode .form-group input::placeholder {
    color: #9aa0a6;
}

body.dark-mode .error-message {
    background: #5f2120;
    color: #f28b82;
}

body.dark-mode .btn-outline:hover {
    background-color: #3c4043;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif; /* Body text usually Roboto */
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .logo, .btn {
    font-family: 'Google Sans', sans-serif; /* Headings in Google Sans */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    cursor: pointer;
}

ul {
    list-style: none;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 32px; /* Wider padding for full-width look on desktop */
}

/* Utility Classes for Responsive Admin Links */
.mobile-only-admin { display: none; }

/* Navbar */
.navbar {
    height: var(--nav-height);
    background-color: #fff;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: none !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 26px;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

.logo i {
    font-size: 20px;
    /* Google Blue */
    color: #4285F4; 
}

.logo span {
    font-weight: 500;
    color: var(--text-color);
}

/* Multi-colored text for XFOX */
.logo-text span:nth-child(1) { color: #4285F4; } /* X - Blue */
.logo-text span:nth-child(2) { color: #EA4335; } /* F - Red */
.logo-text span:nth-child(3) { color: #FBBC05; } /* O - Yellow */
.logo-text span:nth-child(4) { color: #34A853; } /* X - Green */

/* Keep logo colors in dark mode */
body.dark-mode .logo-text span:nth-child(1) { color: #4285F4; }
body.dark-mode .logo-text span:nth-child(2) { color: #EA4335; }
body.dark-mode .logo-text span:nth-child(3) { color: #FBBC05; }
body.dark-mode .logo-text span:nth-child(4) { color: #34A853; }

body.dark-mode .logo i {
    color: #4285F4; /* Keep globe icon blue in dark mode */
}

body.dark-mode .auth-logo i {
    color: #4285F4; /* Keep globe icon blue in auth pages */
}

.nav-links {
    display: flex;
    gap: 32px;
    box-shadow: none !important;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-color);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Dark Mode Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    color: #5f6368;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 50%;
}

.theme-toggle:hover {
    background-color: rgba(60, 64, 67, 0.08);
    color: var(--text-color);
}

/* ... skipped ... */

.notification-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px; /* Consistent 40px width */
    height: 40px; /* Consistent 40px height */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    position: relative;
    margin-right: 8px;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.notification-btn:hover {
    background-color: rgba(60, 64, 67, 0.08);
    color: var(--text-color);
}

/* Ensure icons don't shrink and match notification icon size */
.theme-toggle i, .theme-toggle svg {
    flex-shrink: 0;
    font-size: 20px; /* Match notification icon size */
    width: 20px;
    height: 20px;
}


.theme-toggle .fa-moon {
    display: block;
}

.theme-toggle .bi-sun {
    display: none;
}

body.dark-mode .theme-toggle .fa-moon {
    display: none;
}

body.dark-mode .theme-toggle .bi-sun {
    display: block;
    color: #e8eaed; /* Ensure it's visible in dark mode */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 1px 2px rgba(60,64,67,0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background-color: #f6fafe;
    border-color: var(--border-color);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    display: flex;
    align-items: center;
    min-height: 500px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
}

.search-container {
    position: relative;
    max-width: 100%;
    margin-bottom: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Slightly rounded like Google inputs */
    padding: 8px 8px 8px 16px;
    transition: box-shadow 0.2s, border-color 0.2s;
    height: 56px;
}

.search-box:focus-within {
    box-shadow: 0 1px 6px rgba(32,33,36,0.28);
    border-color: transparent;
}

.search-icon {
    color: #9aa0a6;
    font-size: 20px;
    margin-right: 12px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
}

.btn-search {
    height: 40px;
    padding: 0 24px;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Google Sans', sans-serif;
}

.btn-search:hover {
    background-color: var(--primary-hover);
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
    display: block;
    margin: 0 auto;
}

/* Features / Tools Grid */
.features {
    padding: 64px 0;
    background-color: var(--surface-color);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 400;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 16px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.tool-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

.tool-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--primary-color);
    font-size: 32px;
}

.tool-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 500;
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.tool-link {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tool-link:hover {
    text-decoration: underline;
}

/* Results Section */
.results-container {
    margin-top: 32px;
    animation: fadeIn 0.3s ease;
}

.result-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.result-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.result-header h2 {
    font-size: 16px;
    font-weight: 500;
}

.status-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background-color: #e6f4ea;
    color: #137333;
}

.status-available {
    background-color: #e8f0fe;
    color: #1967d2;
}

.result-body {
    padding: 16px 20px;
}

.result-body h3 {
    font-size: 18px;
    margin-bottom: 12px;
    text-align: center;
}

.result-body p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: center;
}

.result-body .btn {
    font-size: 14px;
    padding: 8px 20px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.data-group h4 {
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 500;
}

.data-row {
    margin-bottom: 6px;
    font-size: 13px;
}

.data-label {
    font-weight: 500;
    color: var(--text-color);
}

.data-value {
    color: var(--text-secondary);
}

.raw-data {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    overflow-x: auto;
    white-space: pre-wrap;
    border: 1px solid var(--border-color);
}

/* Footer */
/* Footer Redesign - Modern Minimalist (Adaptive) */
.footer {
    background-color: var(--background-color);
    color: var(--text-secondary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col {
    background-color: transparent;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid transparent;
    height: 100%;
}

.footer-col:hover {
    background-color: transparent;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.footer-col h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.footer-col h4 i {
    width: 40px;
    height: 40px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-color);
}

.footer-col:hover h4 i {
    background-color: var(--surface-color);
    border-color: var(--border-color);
    color: var(--text-color);
    transform: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li:last-child {
    margin-bottom: 0;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.2s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-col a:hover {
    color: var(--primary-color);
    padding-left: 0;
    font-weight: normal;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    color: var(--text-color);
    opacity: 1;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.copyright {
    color: var(--text-secondary);
    font-size: 13px;
    opacity: 0.8;
}

.footer-links select:hover {
    border-color: var(--primary-color);
}

/* Footer Info Box */
.footer-info-box {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.footer-info-box:hover {
    border-color: var(--border-color);
    transform: none;
}

.footer-info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
}

.footer-info-box:hover .footer-info-icon {
    background-color: var(--background-color);
    color: var(--primary-color);
    border-color: var(--border-color);
    transform: none;
}

.footer-info-content {
    flex: 1;
}

.footer-info-content strong {
    color: var(--text-color);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.footer-info-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.footer-info-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.footer-info-content a:hover {
    opacity: 0.8;
}

/* Pricing Page Styles */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    background-color: rgba(66, 133, 244, 0.03); /* Very subtle tint of primary color */
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-color);
}

.pricing-header .price {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.pricing-header .price span {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
}

.pricing-features li {
    margin-bottom: 16px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.pricing-features li i {
    color: var(--primary-color);
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Footer Badges */
.badge-soon {
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive Pricing */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-card:last-child {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card:last-child {
        grid-column: auto;
        max-width: none;
    }
}

/* Responsive Footer */
/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-info-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
        gap: 16px;
    }
    
    .footer-info-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 24px;
    }

    .footer-branding {
        flex-direction: column;
        gap: 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-col {
        padding: 16px;
    }

    .footer-col h4 {
        font-size: 13px;
        margin-bottom: 12px;
        padding-bottom: 8px;
        gap: 8px;
    }
    
    .footer-col h4 i {
        font-size: 14px;
    }

    .footer-col a {
        font-size: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    

}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}



.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-post {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 48px 64px;
    box-shadow: var(--shadow-card);
    margin-bottom: 32px;
}

.blog-title {
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--text-color);
    font-weight: 400;
    line-height: 1.3;
}

.blog-meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.blog-content {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color);
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--text-color);
}

.blog-content h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--text-color);
}

/* Blog Card Layout - New Design */
.blog-section {
    padding: 64px 0;
    min-height: 100vh;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 0;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.blog-card-image {
    width: 325px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    flex: 1;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.blog-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.blog-card-badge i {
    font-size: 12px;
}

.blog-card-badge span:first-of-type {
    font-size: 18px;
    font-weight: 600;
    color: #202124;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #202124;
    line-height: 1.4;
    padding-right: 120px;
}

.blog-card-title:hover {
    color: var(--primary-color);
    cursor: pointer;
}

.blog-card-excerpt {
    color: #5f6368;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #5f6368;
    align-items: center;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-meta i {
    font-size: 12px;
}

/* Dark Mode Adjustments for Blog Card */
body.dark-mode .blog-card {
    background: #292a2d;
}

body.dark-mode .blog-card-title {
    color: #e8eaed;
}

body.dark-mode .blog-card-excerpt {
    color: #9aa0a6;
}

body.dark-mode .blog-card-meta {
    color: #9aa0a6;
}

body.dark-mode .blog-card-badge {
    background: #202124;
    border-color: #3c4043;
    color: #9aa0a6;
}

body.dark-mode .blog-card-badge span:first-of-type {
    color: #e8eaed;
}

/* Responsive Blog Card */
@media (max-width: 768px) {
    .blog-card {
        flex-direction: column;
    }
    
    .blog-card-image {
        width: 100%;
        height: 200px;
    }
    
    .blog-card-content {
        padding: 24px 20px;
    }
    
    .blog-card-title {
        font-size: 18px;
        padding-right: 100px;
    }
    
    .blog-card-badge {
        top: 16px;
        right: 16px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .blog-card-badge span:first-of-type {
        font-size: 16px;
    }
    
    .blog-card-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
}

.blog-content ul, .blog-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.blog-content li {
    margin-bottom: 8px;
}

/* Back to Blog Button */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 32px;
    transition: gap 0.2s;
    text-decoration: none;
}

.back-to-blog:hover {
    gap: 12px;
}

.back-to-blog i {
    font-size: 12px;
}

/* Responsive Blog Post */
@media (max-width: 992px) {
    .blog-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .blog-post {
        padding: 40px 48px;
    }
    
    .blog-title {
        font-size: 32px;
    }
    
    .blog-content {
        font-size: 16px;
    }
    
    .blog-content h2 {
        font-size: 26px;
        margin-top: 32px;
    }
    
    .blog-content h3 {
        font-size: 20px;
        margin-top: 28px;
    }
}

@media (max-width: 768px) {
    .blog-container {
        padding: 0 16px;
    }
    
    .blog-post {
        padding: 32px 24px;
    }
    
    .blog-title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .blog-content {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .blog-content h2 {
        font-size: 24px;
        margin-top: 28px;
        margin-bottom: 16px;
    }
    
    .blog-content h3 {
        font-size: 19px;
        margin-top: 24px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .blog-post {
        padding: 24px 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .blog-title {
        font-size: 24px;
    }
    
    .blog-content {
        font-size: 15px;
    }
    
    .blog-content h2 {
        font-size: 21px;
        margin-top: 24px;
    }
    
    .blog-content h3 {
        font-size: 18px;
        margin-top: 20px;
    }
    
    .blog-meta {
        font-size: 13px;
        gap: 12px;
    }
    
    .back-to-blog {
        margin-bottom: 20px;
    }
}

body.dark-mode .blog-post {
    background: #292a2d;
    border-color: #3c4043;
}

body.dark-mode .blog-title {
    color: #e8eaed;
}

body.dark-mode .blog-content {
    color: #e8eaed;
}

body.dark-mode .blog-content h2,
body.dark-mode .blog-content h3 {
    color: #e8eaed;
}

/* Navigation Responsiveness */
@media (max-width: 968px) {
    .desktop-only-admin { display: none !important; }
    .mobile-only-admin { display: block; }

    .nav-container {
        padding: 0 16px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .mobile-menu-btn {
        display: block;
        color: var(--text-color);
    }
    
    /* Ensure logo doesn't get squished */
    .logo-text {
        font-size: 18px;
    }
    
    /* Adjust actions for mobile */
    .nav-actions {
        gap: 12px;
        margin-left: 12px;
    }
    
    .logo {
        margin-right: auto;
    }

    .nav-actions .btn {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* Hide name on mobile if it breaks layout, or truncate */
    .nav-actions .btn[href="/profile.php"] {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dark mode support for mobile menu */
body.dark-mode .nav-links {
    background-color: #292a2d; /* Match navbar dark bg */
    border-bottom-color: #3c4043;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* Partner Logos */
.partner-logo-img {
    height: 48px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    background-color: var(--background-color);
    transition: all 0.3s ease;
    display: inline-block;
}

.partner-logo-img:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

body.dark-mode .partner-logo-img {
    background-color: var(--surface-color);
    border-color: #3c4043;
}

body.dark-mode .partner-logo-img:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

/* Trusted Partners Container */
.trusted-partners {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 64px;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.trusted-partners::-webkit-scrollbar {
    height: 6px;
}

.trusted-partners::-webkit-scrollbar-track {
    background: transparent;
}

.trusted-partners::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.trusted-partners::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

@media (max-width: 768px) {
    .partner-logo-img {
        height: 40px;
        max-width: 100px;
        padding: 10px 12px;
    }
    
    .trusted-partners {
        gap: 12px;
        padding: 15px 0;
        margin-top: 32px;
    }
}

/* Homepage specific partner logos - minimal spacing */
.trusted-partners-homepage {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    margin-bottom: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 15px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.trusted-partners-homepage::-webkit-scrollbar {
    height: 6px;
}

.trusted-partners-homepage::-webkit-scrollbar-track {
    background: transparent;
}

.trusted-partners-homepage::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.trusted-partners-homepage::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}


/* Transfer Alert Notification */
.transfer-alert {
    margin-top: 16px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.transfer-alert.show {
    opacity: 1;
    transform: translateY(0);
}

.transfer-alert-content {
    background: #fff;
    color: var(--text-color);
    padding: 16px 24px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-card);
    font-size: 15px;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    animation: slideInBounce 0.4s ease-out;
}

.transfer-alert-content i {
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
}

@keyframes slideInBounce {
    0% {
        transform: translateY(-15px);
        opacity: 0;
    }
    60% {
        transform: translateY(3px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Dark mode support for alert */
body.dark-mode .transfer-alert-content {
    background: var(--surface-color);
    border-left-color: var(--primary-color);
    box-shadow: var(--shadow-card);
}

/* Responsive alert */
@media (max-width: 768px) {
    .transfer-alert-content {
        padding: 14px 20px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .transfer-alert-content i {
        font-size: 18px;
    }
}

/* Mobile Responsive Styles for Recent Changes */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    body {
        position: relative;
    }
    
    * {
        max-width: 100%;
    }
    
    .hero {
        padding: 40px 0;
        min-height: auto;
        overflow: hidden;
    }
    
    .container {
        padding-left: 16px;
        padding-right: 16px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        width: 100%;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        overflow: hidden;
    }
    
    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 16px;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .hero-image {
        display: none;
    }
    
    .search-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        overflow: visible;
    }
    
    .search-box {
        height: 52px;
        padding: 6px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .search-icon {
        font-size: 18px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .search-box input {
        font-size: 15px;
        flex: 1;
        min-width: 0;
        border: none;
        outline: none;
        padding: 0;
    }
    
    .btn-search {
        height: 38px;
        padding: 0 16px;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Homepage Partner Logos Mobile */
    .trusted-partners-homepage {
        margin: 20px 0 0 0;
        padding: 12px 0;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .partner-logo-img {
        height: 36px;
        max-width: 90px;
        min-width: 70px;
        padding: 8px 12px;
        flex-shrink: 0;
    }
    
    /* Result Card Mobile */
    .result-card {
        max-width: 100%;
        margin: 0 16px;
        border-radius: 6px;
    }
    
    .result-header {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .result-header h2 {
        font-size: 15px;
    }
    
    .result-body {
        padding: 14px 16px;
    }
    
    .result-body h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .result-body p {
        font-size: 13px;
        margin-bottom: 14px;
    }
    
    .result-body .btn {
        font-size: 13px;
        padding: 7px 16px;
        width: 100%;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .data-group h4 {
        font-size: 10px;
        margin-bottom: 8px;
    }
    
    .data-row {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .raw-data {
        padding: 10px;
        font-size: 10px;
    }
    
    /* Homepage Partner Logos Mobile */
    .trusted-partners-homepage {
        margin-top: 20px;
        padding: 12px 0;
        gap: 16px;
    }
    
    .partner-logo-img {
        height: 36px;
        max-width: 90px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    /* Prevent horizontal scroll on small screens */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    * {
        max-width: 100%;
    }
    
    .hero {
        padding: 32px 0;
        overflow: hidden;
    }
    
    .container {
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        overflow: hidden;
    }
    
    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 14px;
    }
    
    .hero-content p {
        font-size: 15px;
        margin-bottom: 28px;
    }
    
    .search-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        overflow: visible;
    }
    
    .search-box {
        height: 48px;
        padding: 5px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .search-icon {
        font-size: 16px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .search-box input {
        font-size: 14px;
        flex: 1;
        min-width: 0;
        border: none;
        outline: none;
        padding: 0;
    }
    
    .btn-search {
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .trusted-partners-homepage {
        margin: 16px 0 0 0;
        padding: 10px 0;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .partner-logo-img {
        height: 32px;
        max-width: 80px;
        min-width: 60px;
        padding: 6px 10px;
        flex-shrink: 0;
    }
    
    /* Extra small screens */
    .result-card {
        margin: 0 8px;
        border-radius: 4px;
    }
    
    .result-header {
        padding: 12px;
    }
    
    .result-header h2 {
        font-size: 14px;
    }
    
    .result-body {
        padding: 12px;
    }
    
    .result-body h3 {
        font-size: 15px;
    }
    
    .result-body p {
        font-size: 12px;
    }
    
    .trusted-partners-homepage {
        margin-top: 16px;
        padding: 10px 0;
        gap: 12px;
    }
    
    .partner-logo-img {
        height: 32px;
        max-width: 80px;
        padding: 6px 10px;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-consent-content {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-content a:hover {
    opacity: 0.8;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-family: 'Google Sans', sans-serif;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: var(--primary-color);
    color: white;
}

.cookie-btn-accept:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 1px 2px rgba(60,64,67,0.3);
}

.cookie-btn-reject {
    background-color: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.cookie-btn-reject:hover {
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Dark mode styles for cookie banner */
body.dark-mode .cookie-consent {
    background-color: #292a2d;
    border-top-color: #3c4043;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .cookie-btn-reject:hover {
    background-color: #202124;
}

/* Responsive design for cookie banner */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-content {
        text-align: center;
        min-width: 100%;
    }
    
    .cookie-consent-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
    }
}


/* Apps Menu Dropdown */
.apps-menu-container {
    position: relative;
    display: inline-block;
}

.apps-menu-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px; /* Square with rounded corners as requested */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.apps-menu-btn:hover {
    background-color: rgba(60, 64, 67, 0.08); /* Hover effect like Google */
}

body.dark-mode .apps-menu-btn:hover {
    background-color: rgba(232, 234, 237, 0.08);
}

/* 3x3 Grid Icon */
.apps-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 4px);
    gap: 2px;
    width: 16px;
    height: 16px;
}

.apps-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    display: block;
}

/* Dot Colors - Row 1: Blue, Red, Yellow */
.apps-dot:nth-child(1) { background-color: #4285F4; }
.apps-dot:nth-child(2) { background-color: #EA4335; }
.apps-dot:nth-child(3) { background-color: #FBBC05; }
/* Dot Colors - Row 2: Green, Blue, Red */
.apps-dot:nth-child(4) { background-color: #34A853; }
.apps-dot:nth-child(5) { background-color: #4285F4; }
.apps-dot:nth-child(6) { background-color: #EA4335; }
/* Dot Colors - Row 3: Yellow, Green, Blue */
.apps-dot:nth-child(7) { background-color: #FBBC05; }
.apps-dot:nth-child(8) { background-color: #34A853; }
.apps-dot:nth-child(9) { background-color: #4285F4; }

/* Dropdown Menu - Standard State */
.apps-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2000;
    overflow: hidden;
}

/* Show on Hover or Active (Mobile) */
.apps-menu-container:hover .apps-dropdown,
.apps-menu-container.active .apps-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
    .apps-dropdown {
        position: fixed;
        top: 70px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
        margin: 0;
        transform: translateY(10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }
    
    .apps-menu-container.active .apps-dropdown {
        transform: translateY(0);
    }
}

.apps-header {
    background-color: #f8f9fa;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #202124;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-mode .apps-header {
    background-color: #212121;
    color: #e8eaed;
    border-bottom-color: #333;
}

body.dark-mode .apps-dropdown {
    background-color: #292a2d;
    border-color: #333;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 8px;
    text-decoration: none;
    color: #202124;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
    border-bottom: 4px solid transparent; 
    text-align: center;
    position: relative;
    height: 100px;
}

.app-item:hover {
    background-color: rgba(66, 133, 244, 0.04);
    color: var(--primary-color);
}

body.dark-mode .app-item {
    color: #e8eaed;
}

body.dark-mode .app-item:hover {
    background-color: #35363a;
}

/* Item Specific Colors (Bottom Border) */
.app-item.item-blue {
    border-bottom-color: #4285F4;
}
.app-item.item-red {
    border-bottom-color: #EA4335;
}
.app-item.item-yellow {
    border-bottom-color: #FBBC05;
}

/* Global Availability Check Table */
.table-global-check th, 
.table-global-check td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    font-size: 14px;
}

.table-global-check th {
    background-color: var(--surface-color);
    color: var(--text-secondary);
    font-weight: 500;
}

.table-global-check td {
    color: var(--text-color);
}

.check-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    min-width: 100px;
}

.check-status-pending {
    color: var(--text-secondary);
    background-color: transparent;
}

.check-status-ok {
    color: #137333;
    background-color: #e6f4ea;
}

.check-status-error {
    color: #c5221f;
    background-color: #fce8e6;
}

.ping-time {
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 12px;
    margin-left: auto;
}

body.dark-mode .table-global-check th,
body.dark-mode .table-global-check td {
    border-bottom-color: var(--border-color);
}

body.dark-mode .table-global-check th {
    background-color: var(--surface-color);
    color: var(--text-secondary);
}

body.dark-mode .check-status-ok {
    background-color: rgba(19, 115, 51, 0.2);
    color: #81c995;
}

body.dark-mode .check-status-error {
    background-color: rgba(197, 34, 31, 0.2);
    color: #f28b82;
}

/* SEO Tools Grid */
.seo-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

/* DA/PA Advanced Metrics Grid - Matches Reference Image */
.seo-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.metric-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    transition: all 0.2s ease;
}
.metric-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.metric-title {
    font-size: 13px;
    color: #5f6368;
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}
.metric-value {
    font-size: 26px;
    font-weight: 700;
    color: #4285F4; /* Blue like the image */
}
.metric-value.blue { color: #4285F4; }
.metric-value.green { color: #34A853; }
.metric-value.red { color: #EA4335; }

.history-box {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    color: #5f6368;
    background: #f8f9fa;
    font-style: italic;
}

body.dark-mode .metric-card {
    background: var(--surface-color);
    border-color: var(--border-color);
    color: var(--text-color);
}
body.dark-mode .metric-title { color: #9ca3af; }
body.dark-mode .history-box {
    background: var(--surface-color);
    border-color: var(--border-color);
    color: #9ca3af;
}

@media (max-width: 992px) {
    .seo-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .seo-metrics-grid { grid-template-columns: 1fr; }
}

.seo-tool-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.seo-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background-color: var(--background-color);
}

.seo-tool-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.9;
}

.seo-tool-card h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--surface-color);
    margin: 5% auto; 
    padding: 0;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.3s;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.close-modal {
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-color);
}

/* Tool Specific Layouts */
.tool-input-area textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: inherit;
    resize: vertical;
    margin-bottom: 16px;
}

.tool-output-area {
    margin-top: 24px;
    padding: 16px;
    background-color: var(--background-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-height: 100px;
}

.tool-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0}
    to {transform: translateY(0); opacity: 1}
}

/* Instagram Verified Badge & Domain Tools Cards */
.verified-badge-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0095f6;
    line-height: 1;
    vertical-align: middle;
}

.verified-badge-container .fa-certificate {
    font-size: 1.2em;
}

.verified-badge-container .fa-check {
    position: absolute;
    color: white;
    font-size: 0.55em;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.verified-badge-container.v-large {
    font-size: 24px;
}

.domain-tools-section {
    padding: 80px 0;
    margin-top: 20px;
}

.domain-tools-header {
    text-align: center;
    margin-bottom: 50px;
}

.domain-tools-header h2 {
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-color);
}

.domain-tools-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.domain-tools-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.domain-tools-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.domain-tool-card {
    flex: 1;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

body.dark-mode .domain-tool-card {
    background: #292a2d;
    border-color: #3c4043;
}

.domain-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.tool-card-icon {
    width: 48px;
    height: 48px;
    background: #e8f0fe;
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

body.dark-mode .tool-card-icon {
    background: rgba(26, 115, 232, 0.15);
}

.domain-tool-card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-color);
}

.domain-tool-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.tool-card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
}

.tool-card-link:hover {
    gap: 12px;
    text-decoration: none;
}

/* Admin Panel & New Elements Responsiveness */
@media (max-width: 992px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    /* Admin Dashboard Grid */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Admin Forms (Add/Edit Post) */
    form.result-card {
        padding: 20px !important;
    }
    
    form.result-card div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Slug Preview Area */
    div[style*="display: flex; align-items: center; gap: 8px; background: var(--surface-color)"] {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 12px !important;
    }
    
    div[style*="display: flex; align-items: center; gap: 8px; background: var(--surface-color)"] span {
        font-size: 11px !important;
        opacity: 0.7;
    }

    /* Admin Tables (Posts List) */
    .result-card table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .result-card table th, 
    .result-card table td {
        white-space: nowrap;
        padding: 12px 16px !important;
    }
    
    /* Blog Card Adjustments */
    .blog-card {
        flex-direction: column;
    }
    
    .blog-card-image {
        width: 100%;
        height: 220px;
    }
    
    .blog-card-content {
        padding: 24px !important;
    }
    
    .blog-card-badge {
        top: 15px;
        right: 15px;
    }
    
    .blog-card-title {
        padding-right: 0;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px !important;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    div[style*="display: flex; gap: 12px"] {
        flex-direction: column;
    }
}
/* Development Log (Updates Page) */
.update-section {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.update-header {
    background: #474b5e;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
}

.update-category {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

.category-new { background: #d4edda; color: #155724; }
.category-fix { background: #f8d7da; color: #721c24; }
.category-change { background: #cce5ff; color: #004085; }

.update-item {
    background: white;
    padding: 15px 20px;
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.update-item:last-child {
    border-bottom: none;
}

.update-date {
    color: #666;
    font-weight: 700;
    min-width: 90px;
}

.update-desc {
    color: #333;
    line-height: 1.5;
}

body.dark-mode .update-item {
    background: #2d2e31;
    border-color: #3c4043;
}

body.dark-mode .update-desc {
    color: #e8eaed;
}

body.dark-mode .update-date {
    color: #9aa0a6;
}

body.dark-mode .category-new { background: rgba(40, 167, 69, 0.2); color: #81c784; }
body.dark-mode .category-fix { background: rgba(220, 53, 69, 0.2); color: #e57373; }
body.dark-mode .category-change { background: rgba(0, 123, 255, 0.2); color: #64b5f6; }

@media (max-width: 600px) {
    .update-item {
        flex-direction: column;
        gap: 8px;
    }
    .update-date {
        min-width: auto;
    }
}

/* FIX: Mobile Header Improvements */
@media (max-width: 768px) {
    /* Reduce container padding to give more space */
    .nav-container {
        padding: 0 10px;
    }

    /* Logo area adjustments */
    .logo {
        font-size: 20px;
        margin-right: auto; /* Takes available space */
        flex-shrink: 1; /* Allow shrinking if absolutely needed */
    }
    
    .logo-text span {
        font-size: 20px; /* Smaller font for XFOX */
    }

    /* Nav actions (right side) adjustments */
    .nav-actions {
        gap: 6px; /* Smaller gap between icons/buttons */
        flex-shrink: 0; /* Prevent actions from collapsing */
    }

    /* Theme Toggle - Prevent shrinking during animation */
    .theme-toggle {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .theme-toggle i, 
    .theme-toggle svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0; /* Crucial for preventing icon shrink */
    }

    /* Hide User Name text on mobile, keep icon */
    .user-name-text {
        display: none;
    }

    /* Adjust Profile/Login buttons for mobile */
    .nav-actions .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Ensure Apps Menu button aligns well */
    .apps-menu-container {
        display: flex;
        align-items: center;
    }
    
    .apps-menu-btn {
        padding: 6px;
        height: 36px;
        width: 36px;
    }
}

/* Very small screens specific fixes */
@media (max-width: 380px) {
    .logo-text span {
        font-size: 18px; /* Even smaller logo */
    }
    
    .nav-actions {
        gap: 4px;
    }
    
    .btn-outline, .btn-primary {
         padding: 6px 10px; /* Minimal padding */
    }
}

/* Mobile Admin Menu Visibility Control */
.mobile-only-admin {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only-admin {
        display: block;
    }
    .desktop-only-admin {
        display: none !important;
    }
}

/* Notification System */
.notification-container {
    position: relative;
    display: inline-block;
}

/* Hover Interaction */
.notification-container:hover .notification-dropdown,
.notification-container.active .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px; /* Consistent 40px width */
    height: 40px; /* Consistent 40px height */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    position: relative;
    margin-right: 8px;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.notification-btn:hover {
    background-color: rgba(60, 64, 67, 0.08);
    color: var(--text-color);
}

.notification-btn i {
    font-size: 20px; /* Standard size */
}

.notification-badge {
    position: absolute;
    top: -2px; 
    right: -2px;
    background-color: #1a73e8; /* Bright Blue */
    color: white;
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    min-width: 18px; /* Slightly larger badge */
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff; /* White border to separate from icon/bg */
    box-sizing: content-box; /* Ensure border doesn't eat into size */
    z-index: 10;
}

/* Dark mode adjustments for badge border */
body.dark-mode .notification-badge {
    border-color: #202124; /* Match dark header bg */
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: -20px; /* Adjust alignment to button */
    width: 380px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 2px 6px 2px rgba(60,64,67,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 2000;
    overflow: hidden;
}

.notification-dropdown::before {
    /* Little arrow pointing up */
    content: "";
    position: absolute;
    top: -6px;
    right: 32px;
    width: 12px;
    height: 12px;
    background: #f1f3f4;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0,0,0,0.1);
    border-left: 1px solid rgba(0,0,0,0.1);
    z-index: 1;
}

.notification-header {
    background-color: #f1f3f4;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #5f6368;
    position: relative;
    z-index: 2; /* Cover the arrow bottom half */
}

.header-title {
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.mark-read-link {
    text-transform: uppercase;
    font-weight: 500;
    color: #5f6368;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.mark-read-link:hover {
    color: #202124;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid #f1f3f4;
    background: #fff;
    position: relative;
    transition: background-color 0.1s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    padding-left: 13px; /* 3px border + padding */
    border-left: 3px solid #1a73e8;
}

.notif-image-col {
    margin-right: 16px;
    flex-shrink: 0;
}

.notif-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #dadce0;
}

.notif-icon-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: #f1f3f4;
    color: #5f6368;
}

.notif-icon-fallback.info i { color: #1a73e8; }
.notif-icon-fallback.success i { color: #1e8e3e; }
.notif-icon-fallback.warning i { color: #f9ab00; }
.notif-icon-fallback.danger i { color: #d93025; }

.notif-content {
    flex: 1;
}

.notif-title {
    font-size: 14px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notif-message {
    font-size: 13px;
    color: #5f6368;
    line-height: 1.5;
    margin-bottom: 6px;
}

.notif-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: #1a73e8;
    text-decoration: none;
    margin-bottom: 4px;
}

.notif-link:hover {
    text-decoration: underline;
}

.notif-time {
    display: block;
    font-size: 11px;
    color: #9aa0a6;
}

.no-notifications {
    padding: 30px 20px;
    text-align: center;
    color: #5f6368;
}

/* Dark mode */
body.dark-mode .notification-dropdown {
    background: #28292c;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.3), 0 2px 6px 2px rgba(0,0,0,0.15);
}
body.dark-mode .notification-header {
    background-color: #202124;
    color: #bdc1c6;
}
body.dark-mode .notification-dropdown::before {
    background: #202124;
    border-color: rgba(255,255,255,0.05);
}
body.dark-mode .notification-item {
    background: #28292c;
    border-bottom-color: #3c4043;
}
body.dark-mode .notification-item:hover {
    background: #303134;
}
body.dark-mode .notif-title {
    color: #e8eaed;
}
body.dark-mode .notif-message {
    color: #9aa0a6;
}
body.dark-mode .notif-icon-fallback {
    background: #3c4043;
}
body.dark-mode .mark-read-link {
    color: #bdc1c6;
}
body.dark-mode .notification-btn {
    color: #e8eaed;
}

/* Mobile */
@media (max-width: 768px) {
    .notification-dropdown {
        position: fixed;
        top: 70px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: 80vh;
        overflow-y: auto;
    }
    .notification-dropdown::before {
        display: none;
    }
    
    /* Prevent navbar overflow */
    .nav-actions {
        gap: 8px; /* Reduce gap on mobile */
    }
    
    .nav-actions .btn {
        padding: 8px 12px; /* Smaller buttons */
        font-size: 13px;
    }
    
    .logo {
        font-size: 22px; /* Slightly smaller logo */
    }
}

/* Admin Icon Dark Mode Fix */
body.dark-mode .desktop-only-admin img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Hide elements on mobile */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }
}
