/* Google Domains Style - Minimalist & Modern */
/* Google Domains Style - Minimalist & Modern */

: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 Styles */
.logo {
    font-size: 26px;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 400;
    text-decoration: none;
}

.logo-svg {
    height: 48px;
    width: 48px;
}

.logo-image {
    height: 48px;
    width: 48px;
    object-fit: contain;
    flex-shrink: 0;
    /* Remove any background */
    background: transparent;
    /* Add subtle styling */
    border-radius: 8px;
    padding: 4px;
    /* Smooth transition for theme changes */
    transition: all 0.3s ease;
}

/* Light mode - subtle background on hover */
/* .logo-image:hover removed */

/* Dark mode adjustments */
/* Logo Switching for Dark Mode */
body.dark-mode .logo-light {
    display: none !important;
}

body.dark-mode .logo-dark {
    display: block !important;
}

/* body.dark-mode .logo-image:hover removed */

/* Default Light Mode Colors */
.logo-cross {
    fill: #242424;
}
.logo-body {
    fill: #ff7545;
}
.logo-stroke {
    fill: #242424;
}
.logo-stroke-dark {
    fill: #ff7545;
}
.logo-tail-point {
    fill: #ffffff;
}
.logo-nose {
    fill: #242424;
}
.logo-ears {
    stroke: #242424;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 16px;
    fill: #ff7545; /* Ensure ears have body color */
}

/* Dark Mode Overrides */
body.dark-mode .logo-cross {
    fill: #ffffff;
}
body.dark-mode .logo-stroke.dark-mode-aware {
    fill: #ff7545;
}
body.dark-mode .logo-stroke-dark {
    fill: #ff7545; /* Keeps orange in dark mode */
}
body.dark-mode .logo-ears {
    stroke: #ff7545;
    stroke-linejoin: miter;
}
/* Fix for Specific Paths requiring White/Brand Swap */
body.dark-mode .logo-stroke { 
    /* The tail stroke needs to be white or orange in dark mode depending on part */
    fill: #ffffff; 
}
body.dark-mode .logo-ears {
    stroke: #ffffff; /* Outline white in dark mode */
}
/* Eyes logic: Dark in light mode, White in Dark mode */
.logo-nose, .logo-eyes {
    fill: #242424;
}
body.dark-mode .logo-nose, body.dark-mode .logo-eyes {
    fill: #ffffff; 
}

.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: 7px; /* Fine-tuned spacing */
    align-items: center;
}

.nav-actions .btn {
    margin-left: 16px; /* Restore spacing for buttons */
}

/* Dropdown Styles - R10 Inspired */
.apps-menu-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Force container size */
    height: 40px;
}

/* 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: 0 !important; /* Sharp Square */
}

.theme-toggle:hover {
    background-color: transparent !important;
    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: 0; /* Removed margin */
    border-radius: 0 !important; /* Sharp Square */
    transition: background-color 0.2s, color 0.2s;
}

.notification-btn:hover {
    background-color: transparent !important;
    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;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 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 */
/* Footer Redesign - Clean Dark Layout */
.footer-xfox {
    background-color: var(--background-color);
    color: var(--text-secondary);
    padding: 60px 0 0;
    font-family: 'Roboto', Arial, sans-serif; /* Base font for text */
    font-size: 14px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-xfox .container {
    max-width: 100%;
    padding: 0 40px;
}

/* 5 Column Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Common Column Styles */
.footer-col h4 {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    font-family: 'Roboto', Arial, sans-serif; /* Headings now also use Roboto */
}

/* Header Icons Reset */
.footer-col h4 i {
    width: auto;
    height: auto;
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-color);
}

/* Specific Border Colors per Column */
.col-popular h4 { border-bottom-color: var(--border-color); }
.col-popular h4::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background: #4285f4; }
.col-google h4 { border-bottom-color: var(--border-color); }
.col-google h4::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background: #ea4335; }
.col-site h4 { border-bottom-color: var(--border-color); }
.col-site h4::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background: #34a853; }
.col-link h4 { border-bottom-color: var(--border-color); }
.col-link h4::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background: #fbbc05; }

/* Links Styling */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: color 0.2s, transform 0.2s;
    font-family: 'Roboto', Arial, sans-serif; /* Links use Roboto */
}

.footer-col ul li a i {
    font-size: 11px;
    opacity: 0.7;
    width: 14px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-col ul li a:hover i {
    opacity: 1;
    color: inherit;
}

/* Corporate Column (Rightmost) */
.col-corporate {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 6px;
    margin-top: -20px;
    margin-bottom: -20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.footer-logo-xfox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}
.footer-logo-xfox i {
    font-size: 24px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-family: 'Roboto', Arial, sans-serif;
}

/* Social Links */
.social-links-xfox {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.social-links-xfox a {
    width: 36px;
    height: 36px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.social-links-xfox a:hover {
    background: var(--border-color);
    color: var(--primary-color);
}

/* Corporate Links Box */
.corporate-links-box {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 15px; /* Increased gap to 15px per request */
    margin-top: 15px;
    border: none;
    padding: 0;
    width: 100%;
    margin-bottom: 20px;
}

.corporate-links-box a {
    display: flex;
    align-items: stretch;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    overflow: hidden;
    
    /* "Sayfaya oturacak şekilde" -> Make them grow to fill the width */
    flex: 1; 
    min-width: 150px; 
}

.cor-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    background: rgba(0,0,0,0.02);
    border-right: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px; /* Matched to footer size */
}

.cor-text {
    display: flex;
    align-items: center;
    padding: 10px 15px; /* Adjusted padding */
    color: var(--text-secondary);
    font-size: 14px; /* Matched to footer standard (was 13px) */
    font-weight: 400; /* Regular weight like other footer links */
    font-family: 'Roboto', Arial, sans-serif;
    white-space: nowrap;
}

.corporate-links-box a:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.corporate-links-box a:hover .cor-icon {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05); /* Assuming primary-rgb exists, if not fallback is fine */
}

.corporate-links-box a:hover .cor-text {
    color: var(--text-color);
}

.corporate-links-box a:not(:last-child)::after {
    content: none;
}

.corporate-links-box a:not(:last-child)::after {
    content: '-';
    margin-left: 6px;
    color: var(--border-color);
}

.corporate-links-box a:hover {
    color: var(--primary-color);
    background: transparent;
    text-decoration: none;
}

/* Action Bar ("Show All") */
.footer-action-bar {
    margin-bottom: 40px;
    margin-right: calc(20% + 20px); /* Leave space for the corporate col which takes ~20% */
}

.btn-show-all {
    display: block;
    width: 100%;
    background: #363a43;
    color: #aab0c6;
    text-align: center;
    padding: 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.btn-show-all:hover {
    background: #424650;
    color: #fff;
    text-decoration: none;
}

/* Bottom Bar */
.footer-bottom-xfox {
    background-color: var(--background-color); /* Adapt to theme (White in Light, Dark in Dark) */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    
    /* Absolute positioning to span full footer width */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0; /* Ensure it stretches fully to both sides */
    width: auto; /* Allow left/right to dictate width */
    padding: 20px 40px; /* Match container padding for content alignment */
    box-sizing: border-box;
}

/* Fix full width bottom bar properly */
.footer-xfox {
    position: relative;
    padding-bottom: 70px; /* Space for absolute bottom bar */
}

.copyright-text { color: var(--text-secondary); }
.powered-by { color: var(--text-secondary); }

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .col-corporate {
        grid-column: span 2;
        margin: 0;
    }
    .footer-action-bar {
        margin-right: 0;
    }
}
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .col-corporate {
        grid-column: 1;
    }
    .footer-bottom-xfox {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* 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);
}

/* Ensure images in blog content are responsive */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

/* 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;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

.blog-card-image {
    width: 325px;
    height: 240px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background-color: #f1f5f9;
    /* Skeleton animation */
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.blog-card-image img.loaded {
    opacity: 1;
}

.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;
}

/* Dark Mode Skeleton */
body.dark-mode .blog-card-image {
    background: linear-gradient(90deg, #1a1b1e 25%, #2a2b2e 50%, #1a1b1e 75%);
    background-size: 200% 100%;
}

/* 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 */
    /* Ensure Apps Menu button aligns well */
    .apps-menu-container {
        display: flex;
        align-items: center;
        width: 40px; /* Force container size on mobile too */
        height: 40px;
    }
    
    .apps-menu-btn {
        padding: 6px;
        height: 36px; /* Slightly smaller icon on mobile */
        width: 36px;
        margin-right: 0;
    }

    /* Fix Dropdown width on Mobile - Full width fixed position like Notifications */
    /* Fix Dropdown width on Mobile - Full width fixed position like Notifications */
    /* Fix Dropdown width on Mobile - Full width fixed position like Notifications */
    .apps-dropdown {
        position: fixed !important;
        top: 64px !important; /* Just below navbar */
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: none !important;
        background: #fff !important; /* Force White Background */
        z-index: 2147483647 !important; /* Absolute Max Z-Index */
        opacity: 0;
        visibility: hidden;
        transform: none !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 8px !important;
        transition: opacity 0.2s ease, visibility 0.2s; /* Use Transition, not Animation */
    }
    
    .apps-menu-container:hover .apps-dropdown,
    .apps-menu-container.active .apps-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Duplicate removed */

    .apps-grid {
        grid-template-columns: 1fr 1fr 1fr; /* Keep 3 columns if width allows, or 3 is fine for full width */
        /* Actually 3 columns on full width mobile looks okay, let's stick to 3 or auto-fit */
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Animation Keyframes if not exists, or just rely on opacity transition */
    /* Since we removed transform, let's ensure opacity handles visibility */
}

/* 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: 0; /* Removed margin */
    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;
    }
}

/* Apps Menu Button - Force Square & Styles */
.apps-menu-btn {
    border-radius: 0 !important; /* Sharp square */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    margin-right: 0; /* Removed margin */
    transition: background-color 0.2s;
}

.apps-menu-btn:hover,
.apps-menu-container:hover .apps-menu-btn,
.apps-menu-container.active .apps-menu-btn {
    background-color: transparent !important; /* Removed hover bg */
    border-radius: 0 !important;
}

body.dark-mode .apps-menu-btn:hover,
body.dark-mode .apps-menu-container:hover .apps-menu-btn,
body.dark-mode .apps-menu-container.active .apps-menu-btn {
    background-color: transparent !important; /* Removed dark mode hover bg */
}

/* Dots Grid - Multi-colored like Google Apps */
.apps-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 5px);
    gap: 3px;
}

.apps-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

/* Specific Dot Colors */
.apps-dot:nth-child(1) { background-color: #EA4335; } /* Red */
.apps-dot:nth-child(2) { background-color: #4285F4; } /* Blue */
.apps-dot:nth-child(3) { background-color: #34A853; } /* Green */
.apps-dot:nth-child(4) { background-color: #FBBC05; } /* Yellow */
.apps-dot:nth-child(5) { background-color: #EA4335; } /* Red */
.apps-dot:nth-child(6) { background-color: #4285F4; } /* Blue */
.apps-dot:nth-child(7) { background-color: #34A853; } /* Green */
.apps-dot:nth-child(8) { background-color: #FBBC05; } /* Yellow */
.apps-dot:nth-child(9) { background-color: #EA4335; } /* Red */

/* Dropdown Styles - R10 Inspired */
/* .apps-menu-container moved to top to fix display issues */

.apps-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px; /* Wider for 3 columns */
    background: #e9ecef; /* Light gray background for the whole panel */
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px; /* Slightly squarer */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 2000;
    padding: 0; /* No padding on container, header/grid handle it */
    overflow: hidden;
}

.apps-menu-container:hover .apps-dropdown,
.apps-menu-container.active .apps-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.dark-mode .apps-dropdown {
    background: #202124;
    border-color: #3c4043;
}

.apps-header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
    color: #5f6368;
    background-color: #e9ecef; /* Match R10 header bg */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-transform: uppercase;
}

body.dark-mode .apps-header {
    background-color: #292a2d; /* Darker header in DM */
    color: #bdc1c6;
    border-bottom-color: #3c4043;
}

.apps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 Columns */
    gap: 0; /* No gap between items, borders handle separation */
    padding: 0;
    background: #fff;
}

body.dark-mode .apps-grid {
    background: #202124;
}

.app-item {
    display: flex;
    flex-direction: column; /* Stack text/icon if needed */
    align-items: center;
    justify-content: center;
    height: 100px;
    background: #fff;
    color: #5f6368;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s;
    border-right: 1px solid #f1f3f4; /* Vertical separators */
    border-bottom: 4px solid transparent; /* Colored bottom border placeholder */
    position: relative;
    overflow: hidden;
}

.app-item:last-child {
    border-right: none;
}

body.dark-mode .app-item {
    background: #202124;
    border-right-color: #3c4043;
    color: #e8eaed;
}

.app-item:hover {
    background: #f8f9fa;
}

body.dark-mode .app-item:hover {
    background: #292a2d;
    filter: brightness(1.1);
}

/* Specific Colors for Items (Text & Bottom Border) */
.app-item.item-blue {
    color: #4285F4;
    border-bottom-color: #4285F4;
}
.app-item.item-red {
    color: #EA4335;
    border-bottom-color: #EA4335;
}
.app-item.item-yellow {
    color: #FBBC05;
    border-bottom-color: #FBBC05;
}

/* Add R10-style Mascot Watermark (simulated with CSS since we lack SVG) */
.app-item::before {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23000000" opacity="0.05"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1; /* Very faint */
    pointer-events: none;
}

/* 404 Styles Removed for Redesign */

/* 404 Styles Removed for Redesign */

/* Minimal "Search Console" 404 Design */
.not-found-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    font-family: 'Roboto', Arial, sans-serif;
    padding: 40px 20px;
}

.not-found-card {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.nf-icon-container {
    width: 80px;
    height: 80px;
    background: var(--surface-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 24px;
    position: relative;
    border: 1px solid var(--border-color);
}

.nf-pulse {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0;
    animation: ripple 2s infinite;
}

.nf-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 64px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-color);
    letter-spacing: -1px;
}

.nf-subtitle {
    font-family: 'Google Sans', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0 0 16px 0;
}

.nf-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.nf-description code {
    background: var(--surface-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary-color);
}

/* Specific 404 Search Box Adjustments */
.nf-search-box {
    margin: 0 auto 40px !important; /* Override default search box margin if any */
    max-width: 480px;
    box-shadow: var(--shadow-card);
}

.nf-search-box:focus-within {
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

/* Suggestions */
.nf-suggestions {
    margin-bottom: 32px;
}

.suggestions-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.suggestions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.suggestion-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.suggestion-pill:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.suggestion-pill i {
    font-size: 12px;
}

.nf-actions {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: 24px;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-link:hover {
    text-decoration: underline;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Dark Mode Overrides */
body.dark-mode .nf-icon-container {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .nf-description code {
    background: #333;
    color: #8ab4f8; /* Lighter blue for dark mode */
}

body.dark-mode .suggestion-pill {
    background: #2a2a2a;
    border-color: #444;
    color: #e8eaed;
}

body.dark-mode .suggestion-pill:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Mobile: Hide Footer Logo & Header Logo Text */
@media (max-width: 768px) {
    .footer-logo-xfox {
        display: none !important;
    }
    /* Hide the text XFOX on mobile, keep the logo image (Fox) */
    .logo-text {
        display: none !important;
    }
}

/* Whois Content Block (Moved from Inline Styles) */
.whois-content-block {
    margin-bottom: 60px;
    padding: 40px;
    background: var(--background-color); /* Default fallback */
    background: var(--surface-color); /* Use surface color */
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.whois-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}

.whois-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: start;
}

.whois-text {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.whois-subtitle {
    margin-bottom: 15px;
    color: var(--text-color);
}

.whois-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whois-list li {
    display: flex;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.whois-sub-section {
    margin-bottom: 30px;
}

.whois-h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

/* Mobile Fix for Whois Content */
@media (max-width: 768px) {
    .whois-content-block {
        padding: 24px 20px; /* Reduced padding to prevent overflow */
        margin-bottom: 40px;
    }
    
    .whois-grid {
        grid-template-columns: 1fr; /* Force single column on mobile */
        gap: 30px;
    }
    
    .whois-title {
        margin-bottom: 24px;
        font-size: 24px;
    }
}
