﻿/* Global Styles */
@import 'keys.css';



:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --danger-color: #ef4444;
    --bg-card: #f8fafc;
}

/* Fix Dropdown Overlap */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    z-index: 10001;
    /* Ensure it floats above everything */
    left: auto;
    right: 0;
    top: 100%;
    margin-top: 0.25rem;
    padding: 0.25rem 0;

}

.dropdown-content.show {
    display: block;
    animation: fadeIn 0.15s ease;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}


/* Dark mode removed per user request */

/* Cookie Banner Button Fix */
.gdpr-banner .btn-outline {
    background: white !important;
    color: #1e293b !important;
    /* Forces dark text */
    border: 1px solid white !important;
}

.gdpr-banner .btn-outline:hover {
    background: #f1f5f9 !important;
    color: var(--primary-color) !important;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: linear-gradient(-45deg, #f8fafc, #e2e8f0, #f1f5f9, #f8fafc);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
}

/* Background Shades for Logged In Panel */
body.logged-in {
    background-color: #ffffff;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(200, 245, 255, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 60%, rgba(255, 250, 210, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(240, 248, 255, 0.3) 0%, transparent 30%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

body.dark-mode.logged-in {
    background-color: #0f172a;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(15, 80, 100, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 90% 60%, rgba(80, 70, 20, 0.2) 0%, transparent 50%);
}


@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Specific background for login/register modals to pop */
.modal-overlay {
    backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.4);
}

/* Header & Nav */
.header {
    background: var(--card-bg);
    padding: 1rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1100;
}

.page-header {
    background: var(--card-bg);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Buttons */
/* Buttons */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1200;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Base button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease-in-out;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
}

/* Responsive Nav Styles */
@media (max-width: 768px) {

    /* Mobile Grid Layout for Header */
    .mobile-header-grid {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        /* Logo | Hammer | CTA */
        align-items: center;
        width: 100%;
    }

    .nav-brand-container {
        justify-self: start;
    }

    .centered-hammer {
        justify-self: end;
        display: flex !important;
        margin: 0 !important;
        /* Override any auto margins */
    }

    .mobile-cta-container {
        justify-self: center;
        display: block !important;
    }

    .mobile-get-started {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .nav-links {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-color);
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.8rem;
        width: 100%;
        text-align: center;
        border-radius: 8px;
    }

    .nav-links a:hover {
        background: var(--bg-color);
    }

    /* Hide desktop-only buttons in the dropdown if they are redundant */
    .desktop-only {
        display: none !important;
    }

    .desktop-auth-btns {
        display: none !important;
    }

    #mobileLoginBtn,
    #mobileRegBtn {
        display: inline-flex !important;
    }
}

/* Fix Duplicate Buttons on Desktop */
@media (min-width: 769px) {

    .mobile-cta-container,
    .centered-hammer {
        display: none !important;
    }

    .mobile-header-grid {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    #mobileLoginBtn,
    #mobileRegBtn,
    .w-100-center-d-none {
        display: none !important;
    }
}

/* Category Pills Container */
.category-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .category-pills-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        /* Space for scrollbar */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .category-pills-container::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .category-pill {
        flex: 0 0 auto;
        /* Prevent shrinking */
        white-space: nowrap;
    }
}

.category-pill {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.category-pill.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Sponsored Wrapper Animation Fix */
.sponsored-wrapper-animated {
    padding: 2rem 0;
    overflow: hidden;
    background: white;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.sponsored-strip {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.sponsored-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.sponsored-logos {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.sponsor-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.2s;
    text-decoration: none;
}

.sponsor-item:hover {
    opacity: 1;
}

.sponsor-logo-img {
    height: 24px;
    width: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
}

.btn-outline {
    border: 2px solid var(--border-color);
    color: var(--text-main);
    background: white;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f8fafc;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero .btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero .btn-white {
    background: white;
    color: var(--primary-color);
}

.hero .btn-trans {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(5px);
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Moving Character Animation */
.floating-char {
    position: absolute;
    top: 20%;
    left: -100px;
    font-size: 4rem;
    animation: moveChar 15s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

@keyframes moveChar {
    0% {
        left: -100px;
        transform: rotate(0deg) translateY(0);
    }

    25% {
        transform: rotate(10deg) translateY(-20px);
    }

    50% {
        transform: rotate(0deg) translateY(0);
    }

    75% {
        transform: rotate(-10deg) translateY(20px);
    }

    100% {
        left: 110%;
        transform: rotate(0deg) translateY(0);
    }
}

/* Main Layout Structure */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    /* Increased max-width for more breathing room */
    margin: 0 auto;
    padding: 2rem 4rem;
    /* Increased horizontal padding */
    flex: 1;
    /* Ensures container pushes footer down */
}

/* API Details Grid Fix */
.api-details-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: start;
    /* Changed from stretch to start to avoid weird height stretching if content differs greatly */
}

/* Prevent Grid Blowout from Code Blocks */
.api-details-grid>div {
    min-width: 0;
}

/* Footer Animation */
.animated-footer {
    background: linear-gradient(270deg, #1e293b, #3b82f6, #0f172a, #8b5cf6);
    /* Brighter colors: Slate, Blue, Slate, Violet */
    background-size: 400% 400%;
    animation: gradientFooter 10s ease infinite;
    /* Faster animation */
    color: white;
    margin-top: auto;
    /* Pushes to bottom if flex container */
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes gradientFooter {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }

    .api-details-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .api-card img {
        height: 160px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* API Grid */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h3 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.api-grid {
    display: grid;
    /* Force max 3 columns by setting min-width ~1/3 of typical container or using auto-fit with max-width */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Ensure max 3 on large screens explicitly if needed */
@media (min-width: 1200px) {
    .api-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


.api-card {
    background: rgba(255, 255, 255, 0.65);
    /* Deeper glass (0.65) */
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Clearer border */
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    /* Deep blur */
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    /* Deep shadow */
    position: relative;
    cursor: pointer;
    text-decoration: none;
    z-index: 1;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.api-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    /* Stronger hover shadow */
    background: rgba(255, 255, 255, 0.85);
    /* Keep some glass */
    border-color: var(--primary-color);
}

.api-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.api-card .desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.api-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.api-price {
    font-weight: 700;
    color: var(--primary-color);
}

.api-method {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
}

.method-GET {
    background: #dcfce7;
    color: #166534;
}

.method-POST {
    background: #dbeafe;
    color: #1e40af;
}

.method-PUT {
    background: #ffedd5;
    color: #9a3412;
}

.method-DELETE {
    background: #fee2e2;
    color: #991b1b;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    /* Increased from 500px for better desktop experience */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

/* Responsive Nav Styles */
/* Responsive Nav Styles (Additional) */
@media (max-width: 768px) {
    /* .nav and .mobile-menu-toggle styles moved to primary media query above to support Grid Layout */

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 1.5rem;
        background: var(--card-bg);
        /* Use var for dark mode support */
        position: absolute;
        top: 100%;
        /* Push below header */
        left: 0;
        right: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid var(--border-color);
        z-index: 1000;
        /* Ensure strictly above content */
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a,
    .nav-links button.btn-text {
        padding: 1rem;
        text-align: left;
        /* Align left as requested/standard */
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        display: block;
        color: var(--text-main);
    }

    /* Fix Dropdowns on Mobile */
    .dropdown-menu-container {
        width: 100%;
        display: block !important;
    }

    .dropdown-menu-container button.btn-text {
        width: 100%;
        text-align: left;
        display: flex;
        justify-content: space-between;
    }

    .dropdown-content {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 1.5rem !important;
        background: rgba(0, 0, 0, 0.02);
        display: none;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        width: 100%;
    }

    .dropdown-content.show {
        display: block !important;
    }


    .nav-links form {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .nav h1 {
        font-size: 1.2rem;
    }

    /* Footer Mobile Alignment */
    .footer-content {
        flex-direction: column;
        align-items: center;
        /* Center align items */
        text-align: center;
        /* Center text */
        gap: 2rem;
    }

    .footer-section {
        width: 100%;
        text-align: center;
    }

    .footer-section h4 {
        margin-bottom: 1rem;
    }

    .footer-section ul li {
        margin-bottom: 0.8rem;
    }

    .footer-brand {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Footer Content - Professional Columns */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    padding-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 2;
    min-width: 250px;
}

.footer-section {
    flex: 1;
    min-width: 160px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .container {
        padding: 0 1rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-brand {
        flex: 1 1 100%;
        text-align: center;
    }

    .footer-section {
        flex: 1 1 45%;
        /* Two columns on mobile */
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.75rem;
    color: var(--text-main);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* Forms */
.form-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.form-row .form-group {
    flex: 1;
    min-width: 240px;
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(5px);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s ease;
}

/* Responsive Table Wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.table-responsive table {
    margin-bottom: 0;
    border: none;
}


.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(5px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Code Editor Textarea */
textarea.json-editor {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace !important;
    font-size: 0.9rem;
    background: #1e293b !important;
    color: #a5f3fc;
    border-color: #334155;
}

textarea.json-editor::placeholder {
    color: #64748b;
}

textarea.json-editor:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.form-group input:focus+label {
    color: var(--primary-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab {
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tab:hover {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.tab.active {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
    font-weight: 600;
}

.tab-content {
    display: none !important;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block !important;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness Fixes */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .settings-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .settings-tab {
        border-bottom: 1px solid #e2e8f0;
        border-radius: 8px !important;
        background: #f8fafc;
        margin-bottom: 5px;
    }

    .settings-tab.active {
        background: #eff6ff;
        color: #3b82f6;
        border-left: 4px solid #3b82f6;
        border-bottom: 1px solid #e2e8f0;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start !important;
    }

    /* API Details Mobile Fix */
    .api-details-grid {
        display: flex !important;
        flex-direction: column;
    }

    .api-details-grid>div {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Disable sticky sidebar on mobile */
    .api-details-grid .card[style*="position:sticky"] {
        position: static !important;
        top: auto !important;
    }
}

/* Dashboard Specifics */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    background: var(--bg-color);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.api-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .container {
        padding: 0 1rem;
    }

    .api-details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .api-card img {
        height: 160px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}


.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* -------------------------------------------------------------------------- */
/*                               Modern Navigation                             */
/* -------------------------------------------------------------------------- */

/* Header Refinement */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: none;
    /* Clean flat look, let border do the work */
    padding: 1rem 2rem;
}

body.dark-mode .header {
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navigation Access Control */
.desktop-auth-btns {
    display: flex;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 768px) {
    .desktop-auth-btns {
        display: none;
    }

    #mobileLoginBtn,
    #mobileRegBtn {
        display: block !important;
        margin-bottom: 0.5rem;
    }
}

/* Nav Links */
.nav-links {
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Dropdown Menus - Premium Style */
.dropdown-menu-container {
    position: relative;
}

.btn-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
    padding: 0.5rem 0;
}

.btn-text:hover {
    color: var(--primary-color) !important;
}

.dropdown-content {
    display: block;
    /* Always block for animation state */
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--card-bg);
    min-width: 200px;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 0.5rem;
    z-index: 99999;
    /* Boost z-index significantly */
    border: 1px solid var(--border-color);
    white-space: nowrap;
    /* Prevent text wrapping */
}

/* Fix for hover gap - invisible bridge */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    /* Extend upwards to overlap with button */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

body.dark-mode .dropdown-content {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    background: #1e293b;
    border: 1px solid #334155;
}

/* Hover triggering (CSS-only fallback + JS class) */
.dropdown-menu-container:hover .dropdown-content,
.dropdown-content.show {
    visibility: visible;
    opacity: 1;
    top: 100%;
    /* Slide up effect */
    transform: translateX(-50%) translateY(10px);
    /* Keep X center */
}

/* Adjust transform for active state to be clean */
.dropdown-menu-container:hover .dropdown-content,
.dropdown-content.show {
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 2px;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-content a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
    transform: translateX(4px);
    /* Subtle nudge */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: transparent;
        padding: 0 0 0 1rem;
        transform: none;
        visibility: visible;
        opacity: 1;
        display: none;
        /* Use display for mobile toggle */
        border: none;
    }

    .dropdown-content.show {
        display: block;
        transform: none;
    }

    .dropdown-menu-container {
        width: 100%;
        text-align: center;
    }

    .btn-text {
        width: 100%;
        justify-content: center;
    }

    .nav-links {
        gap: 0.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                        Toolbox AI Inspired Design                          */
/* -------------------------------------------------------------------------- */

/* AWESOME HERO - Mesh Gradient Animation */
.awesome-hero {
    position: relative;
    padding: 8rem 2rem 10rem;
    /* Extra padding bottom for sponsored strip overlap */
    background: #0f172a;
    /* Fallback */
    overflow: hidden;
    color: white;
    text-align: center;
}

.hero-bg-animation {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.4), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.4), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.4), transparent 40%);
    filter: blur(80px);
    /* The Awesome Blur Effect */
    animation: moveMesh 20s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes moveMesh {
    0% {
        transform: rotate(0deg) scale(1);
    }

    100% {
        transform: rotate(10deg) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.awesome-hero h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.awesome-hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* HERO SEARCH BAR - Prominent Design */
.hero-search-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-search-form {
    display: flex;
    gap: 10px;
    background: white;
    padding: 0.5rem;
    padding-left: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-icon {
    font-size: 1.2rem;
    opacity: 0.5;
}

.hero-search-form input {
    width: 100%;
    border: none;
    font-size: 1.1rem;
    padding: 0.8rem 0;
    outline: none;
    background: transparent;
    color: #1e293b;
}

.btn-search {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.popular-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #94a3b8;
    align-items: center;
}

.popular-tags a {
    color: #cbd5e1;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
    transition: color 0.2s;
}

.popular-tags a:hover {
    color: white;
    border-bottom-color: white;
}

/* SPONSORED STRIP - Toolbox AI Vibe */
.sponsored-strip {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.sponsored-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-transform: uppercase;
    border-right: 1px solid var(--border-color);
    padding-right: 1.5rem;
    margin-right: 1rem;
    white-space: nowrap;
}

.sponsored-logos {
    flex: 1;
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    align-items: center;
    /* Hide Scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sponsored-logos::-webkit-scrollbar {
    display: none;
}

.sponsor-item {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.sponsor-item:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .awesome-hero {
        padding: 6rem 1rem 8rem;
    }

    .awesome-hero h2 {
        font-size: 2.5rem;
    }

    .hero-search-form {
        flex-direction: column;
        padding: 0.5rem;
    }

    .search-input-wrapper {
        padding: 0.5rem;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 0.5rem;
    }

    .sponsored-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .sponsored-label {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        padding-bottom: 0.5rem;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* SPONSORED STRIP STYLING (Premium Override) */
.sponsored-strip {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.05),
        inset 0 0 20px rgba(59, 130, 246, 0.05);
    /* Subtle inner blue glow */
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    gap: 1.5rem;
    animation: strip-float 6s ease-in-out infinite;
}

/* Animated gradient border effect */
.sponsored-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    background-size: 200% 100%;
    animation: border-shimmer 3s linear infinite;
}

.sponsored-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    white-space: nowrap;
    border: 1px solid #e2e8f0;
    /* Reset margins that might be set elsewhere */
    margin: 0;
}

.sponsored-logos {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
}

.sponsor-item {
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, color 0.2s, text-shadow 0.2s;
    font-size: 0.95rem;
    opacity: 1;
    /* Override opacity from earlier */
}

.sponsor-item:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Animations */
@keyframes strip-float {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }

    50% {
        transform: translateY(-3px);
        box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.08);
    }
}

@keyframes border-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Dark mode adjustments */
body.dark-mode .sponsored-strip {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

body.dark-mode .sponsored-label {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

/* FAQ SECTION STYLES */
.faq-section {
    background: #f8fafc;
}

.faq-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.6;
    animation: floatBlob 10s infinite alternate;
}

/* Maintenance Mode (Moved from inline) */
.maintenance-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.maintenance-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.maintenance-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.maintenance-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3b82f6;
}

.maintenance-text {
    color: #64748b;
    margin-bottom: 2rem;
}

.maintenance-login-container {
    display: none;
    margin-top: 20px;
    text-align: left;
}


.blob-1 {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.2);
    top: -50px;
    left: -50px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.15);
    bottom: -100px;
    right: -100px;
    animation-duration: 15s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: rgba(16, 185, 129, 0.15);
    top: 30%;
    right: 20%;
    animation-duration: 12s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.faq-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.9);
}

.faq-item.active {
    border-color: var(--primary-color);
    background: white;
}

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 150px;
    margin-top: 1rem;
}

/* Dark Mode FAQ */
/* Services Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.admin-service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.service-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 5px;
}

.service-icon-box {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.service-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
}

.service-stat-item {
    display: flex;
    flex-direction: column;
}

.service-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.service-stat-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.mt-auto-flex-gap {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.flex-1 {
    flex: 1;
}

/* --- SPONSORED STRIP (PREMIUM FIX) --- */
.sponsored-wrapper-animated {
    width: 100%;
    /* Subtle modern gradient background */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    pointer-events: none;
    /* Ensure clicks pass through if needed, or remove if interactive */
}

/* Mesh pattern overlay */
.sponsored-wrapper-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.05) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(16, 185, 129, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(139, 92, 246, 0.05) 0px, transparent 50%);
    pointer-events: none;
}

.sponsored-strip {
    display: flex;
    align-items: center;
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 99px;
    /* Pill shape */
    padding: 0.5rem 0.75rem;
    /* Compact padding */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 2px 4px -1px rgba(0, 0, 0, 0.02),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    max-width: fit-content;
    margin: 0 auto;
    position: relative;
    gap: 1.5rem;
    pointer-events: auto;
    /* Re-enable pointer events for content */
    animation: strip-float 6s ease-in-out infinite;
}

.sponsored-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    /* Muted text for elegance */
    background: rgba(0, 0, 0, 0.03);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.sponsored-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sponsor-item {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.sponsor-item:hover {
    opacity: 1;
    transform: translateY(-1px);
    color: var(--primary-color);
}

.sponsor-item img {
    height: 20px;
    width: auto;
    margin-right: 8px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.sponsor-item:hover img {
    filter: grayscale(0%);
}

/* Higher Z-Index for Dropdowns */
.dropdown-content {
    z-index: 9999 !important;
}


/* Table Card Fix */
.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.table-responsive {
    background: #fff;
    border-radius: 8px;
}

/* Directory Layout Responsive */
.directory-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.directory-sidebar {
    background: var(--bg-glass);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    height: fit-content;
}

@media (max-width: 900px) {
    .directory-layout {
        grid-template-columns: 1fr;
        /* Stack vertically */
    }

    .directory-sidebar {
        margin-bottom: 2rem;
    }
}

/* Professional Design Update */
.card {
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden;
}

.btn {
    border-radius: 10px !important;
}

/* Admin Settings Card */
.admin-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.admin-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 1rem;
}

/* Newsletter Animation */
.newsletter-section {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 6rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-section h2 {
    color: white !important;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.newsletter-section input[type="email"] {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    width: 100%;
    transition: all 0.3s ease;
}

.newsletter-section input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-section input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: white !important;
    outline: none;
}

.newsletter-section button {
    border-radius: 50px;
    padding: 1rem 2.5rem !important;
    background: white !important;
    color: #e73c7e !important;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.newsletter-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 10px;
    border-radius: 60px;
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- SPONSORED STRIP (PREMIUM FIX) --- */
.sponsored-wrapper-animated {
    width: 100%;
    /* Subtle modern gradient background */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Mesh pattern overlay */
.sponsored-wrapper-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.05) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(16, 185, 129, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(139, 92, 246, 0.05) 0px, transparent 50%);
    pointer-events: none;
}

.sponsored-strip {
    display: flex;
    align-items: center;
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 99px;
    /* Pill shape */
    padding: 0.5rem 0.75rem;
    /* Compact padding */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 2px 4px -1px rgba(0, 0, 0, 0.02),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    max-width: fit-content;
    margin: 0 auto;
    position: relative;
    gap: 1.5rem;
    animation: strip-float 6s ease-in-out infinite;
}

.sponsored-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    /* Muted text for elegance */
    background: rgba(0, 0, 0, 0.03);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.sponsored-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sponsor-item {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.sponsor-item:hover {
    opacity: 1;
    transform: translateY(-1px);
    color: var(--primary-color);
}

.sponsor-item img {
    height: 20px;
    width: auto;
    margin-right: 8px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.sponsor-item:hover img {
    filter: grayscale(0%);
}

/* Dark Mode Overrides */
body.dark-mode .sponsored-wrapper-animated {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .sponsored-wrapper-animated::before {
    background-image:
        radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
}

body.dark-mode .sponsored-strip {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

body.dark-mode .sponsored-label {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.02);
}

body.dark-mode .sponsor-item {
    color: #cbd5e1;
}

body.dark-mode .sponsor-item:hover {
    color: #60a5fa;
}

/* CMS & Error Pages */
.error-404-container {
    text-align: center;
    padding: 5rem 0;
}

.error-404-container h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-404-container p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.cms-card {
    padding: 3rem;
    min-height: 500px;
}

.cms-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: right;
}

/* Verification Page */
.verify-wrapper {
    min-height: 60vh;
    align-items: center;
}

.verify-card {
    text-align: center;
    padding: 3rem;
}

.verify-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.verify-success {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.verify-danger {
    color: var(--danger-color);
    margin-bottom: 1rem;
}

.verify-text {
    margin-bottom: 2rem;
}

/* CMS Typography (Externalized) */
.cms-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.cms-content h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.cms-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.cms-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.cms-content ul,
.cms-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.cms-content li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* Wallet & Payments */
.wallet-alert {
    text-align: center;
    padding: 2rem;
}

.wallet-alert button {
    margin-top: 1rem;
}

.payment-input-group {
    font-size: 1.5rem;
    padding: 1rem;
    max-width: 300px;
}

.payment-methods-container {
    margin-top: 2rem;
}

.payment-card {
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #fff;
}

.payment-card h4 {
    margin-bottom: 15px;
}

.stripe-header {
    color: #635bff;
}

.paypal-header {
    color: #003087;
}

.stripe-form-container {
    display: none;
    margin-top: 15px;
    max-width: 400px;
}

.stripe-element {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    background: white;
}

.stripe-error {
    color: red;
    margin-top: 5px;
}

.payment-message {
    margin-top: 1rem;
}

.paypal-container {
    max-width: 400px;
}

.credit-info-box {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.status-approved {
    color: green;
}

.status-pending {
    color: orange;
}

.status-rejected {
    color: red;
}

/* Service Cards */
.service-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-meta {
    margin-bottom: 1rem;
    border: none;
    padding: 0;
    justify-content: space-between;
}

.badge-category {
    background: var(--bg-color);
    color: var(--text-muted);
}

.badge-premium {
    background: #d1fae5;
    color: #065f46;
}

.badge-free {
    background: #d1fae5;
    color: #065f46;
}

.service-title {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.service-desc {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.service-price {
    margin-bottom: 1rem;
}

.service-price-unit {
    font-size: 0.8em;
    font-weight: normal;
    color: var(--text-muted);
}

.service-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}

.service-btn-block {
    text-align: center;
}

.badge-fee {
    background: #fef3c7;
    color: #92400e;
}

.activation-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.activation-cost {
    font-weight: bold;
    color: var(--primary-color);
}

/* LICENSE ERROR PAGE */
.license-error-body {
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: Inter, sans-serif;
}

.license-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.license-icon-box {
    width: 80px;
    height: 80px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.license-icon-box i {
    font-size: 2.5rem;
    color: #ef4444;
    font-style: normal;
}

.license-h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
}

.license-p {
    font-size: 1rem;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 2rem;
}

.license-contact-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* =========================================
   Footer Styles
   ========================================= */
.animated-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid #1e293b;
}

.footer-content {
    display: flex;
    flex-direction: column;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    flex: 2;
    min-width: 300px;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #64748b;
    max-width: 350px;
    line-height: 1.6;
}

.footer-section {
    flex: 1;
    min-width: 150px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #475569;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
    }
}

/* =========================================
   Utility Classes (Policy 2.C Compliance)
   ========================================= */
/* Layout & Display */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-inline-block {
    display: inline-block !important;
}

.flex-column {
    flex-direction: column !important;
}

.justify-center {
    justify-content: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.align-center {
    align-items: center !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.gap-1 {
    gap: 0.25rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-10 {
    gap: 10px !important;
}

.gap-15 {
    gap: 15px !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

/* Spacing (Scale: 1=0.25rem, 2=0.5rem, 3=1rem, 4=1.5rem, 5=3rem) */
.m-0 {
    margin: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.ml-1 {
    margin-left: 0.25rem !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.p-0 {
    padding: 0 !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

.pt-5 {
    padding-top: 3rem !important;
}

.pb-2 {
    padding-bottom: 0.5rem !important;
}

/* Typography */
.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-white {
    color: #fff !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.font-bold {
    font-weight: bold !important;
}

.font-medium {
    font-weight: 500 !important;
}

.fs-sm {
    font-size: 0.875rem !important;
}

.fs-lg {
    font-size: 1.25rem !important;
}

.fs-xl {
    font-size: 1.5rem !important;
}

.fs-display {
    font-size: 4rem !important;
}

.no-underline {
    text-decoration: none !important;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.cursor-pointer {
    cursor: pointer !important;
}

/* Component Helpers */
.maintenance-login-container {
    display: none;
    margin-top: 20px;
    text-align: left;
}

.btn-maint-login {
    margin-top: 10px;
}

.social-icon-link {
    color: #cbd5e1;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.social-icon-link:hover {
    color: var(--primary-color) !important;
    /* Force override for specificity */
}

.social-icon-link.hover-facebook:hover {
    color: #3b82f6 !important;
}

.social-icon-link.hover-twitter:hover {
    color: #3b82f6 !important;
}

/* X/Twitter */
.social-icon-link.hover-instagram:hover {
    color: #ec4899 !important;
}

.social-icon-link.hover-linkedin:hover {
    color: #0ea5e9 !important;
}

.social-icon-link.hover-discord:hover {
    color: #5865F2 !important;
}

/* Home Page Search Widget */
.hero-search-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin-top: 5px;
    z-index: 1000;
    text-align: left;
    overflow: hidden;
}

.suggestions-list li {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    color: var(--text-main);
}

.suggestions-list li:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.suggestions-list li span.type {
    font-size: 0.75rem;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    color: #64748b;
}

/* Admin Page Utilities & Modals */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header-actions {
    display: flex;
    gap: 10px;
}

.status-published {
    background: #dcfce7;
    color: #166534;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-draft {
    background: #fef9c3;
    color: #854d0e;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.code-editor-textarea {
    min-height: 300px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 10px;
    width: 100%;
    resize: vertical;
}

.admin-action-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-action-view {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-action-view:hover {
    background: var(--primary-color);
    color: white;
}

.admin-form-panel {
    display: none;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.admin-grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.sponsor-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.sponsor-card {
    text-align: center;
    position: relative;
}

.btn-delete-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ef4444;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.sponsor-logo-preview {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.sponsor-logo-img {
    height: 40px;
    object-fit: contain;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}


/* Admin Table Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.admin-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: var(--text-main);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table small {
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.admin-badge-count {
    background: #eef2ff;
    color: #4f46e5;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
}

/* Responsive Utilities */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {

    /* Settings Page Responsive */
    .settings-tabs {
        flex-wrap: wrap;
    }

    .settings-tab {
        flex: 1 1 45%;
        text-align: center;
        margin-bottom: 5px;
    }

    .admin-grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    /* API Details Mobile Fixes */
    .live-test-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .live-test-card .btn {
        width: 100%;
    }

    /* Code block overflow fix */
    .code-content,
    .code-content-pre {
        overflow-x: auto;
    }
}

/* Batch 5: Blog & Directory */
.container-center-padded {
    padding: 4rem;
    text-align: center;
}

.divider-vertical-30 {
    width: 1px;
    height: 30px;
    background: var(--border-color);
    margin: 0 5px;
}

.col-center-padded-4 {
    text-align: center;
    padding: 4rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.text-right-sm-muted {
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.text-center-mt-10 {
    text-align: center;
    margin-top: 10px;
}

.no-results-box {
    text-align: center;
    padding: 4rem;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.mb-1-muted {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.flex-between-start-mb-1 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.category-badge-sm {
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--text-muted);
}

.verified-icon-inline {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}

.card-meta-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.text-sm-normal {
    font-size: 0.8rem;
    font-weight: normal;
}

.activation-fee-subtext {
    font-size: 0.75rem;
    color: #d97706;
    font-weight: 600;
    margin-top: 2px;
}

/* Batch 6: Settings & Users */
.form-row-flex {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.form-row-flex-auto {
    width: auto;
}

.m-0 {
    margin: 0;
}

.text-danger-sm-block {
    display: block;
    color: #b91c1c;
    margin-top: 2px;
}

.settings-icon {
    height: 24px;
}

.flex-grow-1 {
    flex-grow: 1;
}

.font-bold {
    font-weight: bold;
}

.settings-submit-container {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.code-editor-textarea {
    min-height: 100px;
}

.settings-section-header-custom {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.tab-container-mb {
    margin-bottom: 2rem;
}

.empty-state {
    padding: 4rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.badge-category {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.badge-premium {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-free {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.badge-fee {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.service-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.service-price-unit {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.service-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.service-btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

.activation-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.activation-label {
    color: var(--text-muted);
}

.activation-cost {
    font-weight: 600;
    color: #f59e0b;
}

/* Batch 2: Admin Sponsors, Add Funds, API Details */
.sponsor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mt-0 {
    margin-top: 0;
}

.flex-gap-10 {
    display: flex;
    gap: 10px;
}

.flex-1 {
    flex: 1;
}

.form-hint {
    font-size: 0.8rem;
    color: #64748b;
    align-self: center;
}

.empty-state-text {
    text-align: center;
    padding: 2rem;
}

.hidden {
    display: none !important;
}

.sponsor-card-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.sponsor-card-link {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.funds-header-row {
    margin-bottom: 2rem;
    align-items: center;
}

.balance-card-primary {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
}

.section-title-mb {
    margin-bottom: 20px;
}

.amount-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.custom-amount-wrapper {
    display: none;
    margin-bottom: 20px;
}

.section-title-mt {
    margin-bottom: 20px;
    margin-top: 30px;
}

.payment-method-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.payment-method-container {
    margin-top: 10px;
}

.payment-error-alert {
    display: none;
    margin-top: 20px;
}

.mb-15 {
    margin-bottom: 15px;
}

.pos-relative {
    position: relative;
}

.alert-sm {
    font-size: 0.9rem;
}

.d-block {
    display: block;
}

.resp-error-msg {
    padding: 10px;
    color: var(--text-muted);
}

.grid-gap-10 {
    display: grid;
    gap: 10px;
}

.media-preview-v {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.media-preview {
    max-width: 100%;
    border-radius: 8px;
}

/* Batch 7: View Page Utilities */
.mt-2 {
    margin-top: 2rem;
}

.page-card-content {
    padding: 3rem;
    min-height: 500px;
}

.page-meta-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: right;
}

/* --- Final Cleanup Utility Classes --- */
.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.w-100 {
    width: 100%;
}

.m-0 {
    margin: 0;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

/* Overlaps with previous, but fine */
.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-5 {
    padding: 3rem;
}

.p-15 {
    padding: 15px;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.fw-bold {
    font-weight: 700;
}

.fw-600 {
    font-weight: 600;
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-primary {
    color: var(--primary-color);
}

.bg-light {
    background-color: #f8fafc;
}

.border-light {
    border: 1px solid #e2e8f0;
}

.border-ddd {
    border: 1px solid #ddd;
}

.rounded {
    border-radius: 0.375rem;
}

.cursor-pointer {
    cursor: pointer;
}

.pos-relative {
    position: relative;
}

/* Specific Component Utilities */
.sponsor-logo-lg {
    font-size: 2rem;
}

.h-24 {
    height: 24px;
}

.border-l-accent {
    border-left: 4px solid var(--accent-color);
}

.bg-card {
    background: var(--bg-card);
}

.max-w-600 {
    max-width: 600px;
}

.filter-panel {
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
}

.filter-loading {
    display: none;
    color: #0284c7;
    margin-top: 5px;
}

.filter-error {
    display: none;
    color: #ef4444;
    margin-top: 5px;
}

.filter-keys {
    margin-top: 15px;
    display: none;
}

.keys-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.edit-form-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #fdfdfd;
}

.print-btn {
    background: #4f46e5;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.print-btn:hover {
    background: #4338ca;
}

.verify-text {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 2rem;
}

.service-status {
    font-weight: 600;
}

/* --- Final Cleanup Utility Classes --- */
.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.w-100 {
    width: 100%;
}

.m-0 {
    margin: 0;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-5 {
    padding: 3rem;
}

.p-15 {
    padding: 15px;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.fw-bold {
    font-weight: 700;
}

.fw-600 {
    font-weight: 600;
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-primary {
    color: var(--primary-color);
}

.bg-light {
    background-color: #f8fafc;
}

.border-light {
    border: 1px solid #e2e8f0;
}

.border-ddd {
    border: 1px solid #ddd;
}

.rounded {
    border-radius: 0.375rem;
}

.cursor-pointer {
    cursor: pointer;
}

.pos-relative {
    position: relative;
}

.sponsor-logo-lg {
    font-size: 2rem;
}

.h-24 {
    height: 24px;
}

.border-l-accent {
    border-left: 4px solid var(--accent-color);
}

.bg-card {
    background: var(--bg-card);
}

.max-w-600 {
    max-width: 600px;
}

.filter-panel {
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
}

.filter-loading {
    display: none;
    color: #0284c7;
    margin-top: 5px;
}

.filter-error {
    display: none;
    color: #ef4444;
    margin-top: 5px;
}

.filter-keys {
    margin-top: 15px;
    display: none;
}

.keys-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.edit-form-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #fdfdfd;
}

.print-btn {
    background: #4f46e5;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.print-btn:hover {
    background: #4338ca;
}

.verify-text {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 2rem;
}

.service-status {
    font-weight: 600;
}

/* Envato Compliance - Inline Style Replacements */
.auth-modal-close {
    top: 15px;
    right: 15px;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 20px;
}

.auth-tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.auth-heading {
    text-align: center;
    margin-bottom: 20px;
}

.auth-form-hidden {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-auto {
    width: auto !important;
}

.verification-alert {
    margin: 20px 0;
    border-left: 5px solid #f59e0b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.verification-btn {
    border-color: #b45309;
    color: #b45309;
}

.form-inline {
    margin: 0;
}

.cookie-content {
    flex: 1;
    margin-right: 2rem;
}

.cookie-text {
    color: #cbd5e1;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

/* Task 2 & 3: Inline Style Fixes */
.fs-lg {
    font-size: 1.1rem;
}

.fs-xl {
    font-size: 1.2rem;
}

.fs-sm {
    font-size: 0.9rem;
}

.hr-divider {
    margin: 15px 0;
    border-color: var(--border-color);
}

/* FAQ Section Custom Design */
.faq-section-custom {
    position: relative;
    padding: 6rem 0;
    background: #f8fafc;
    overflow: hidden;
}

body.dark-mode .faq-section-custom {
    background: #0f172a;
}

.faq-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    filter: blur(80px);
    opacity: 0.1;
    border-radius: 50%;
    animation: floatBlob 10s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    opacity: 0.05;
    animation-delay: -2s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -50px) scale(1.1);
    }
}

.faq-container-rel {
    position: relative;
    z-index: 1;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.faq-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.faq-grid-custom {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 500px;
    /* Approximate max height */
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* --- ADMIN SERVICES PAGE FIXES --- */

.footer-social-gap {
    gap: 1.5rem !important;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.admin-service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.admin-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.admin-service-card .service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.admin-service-card .service-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: block;
}

.admin-service-card .service-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.admin-service-card .service-icon-box {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.service-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
}

.service-stat-item {
    display: flex;
    flex-direction: column;
}

.service-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.1rem;
}

.service-stat-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.mt-auto-flex-gap {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
}

.flex-1 {
    flex: 1;
}

/* Method Badges */
.method-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
}

.method-GET {
    background: #dcfce7;
    color: #166534;
}

.method-POST {
    background: #dbeafe;
    color: #1e40af;
}

.method-PUT {
    background: #ffedd5;
    color: #9a3412;
}

.method-DELETE {
    background: #fee2e2;
    color: #991b1b;
}

/* Grid gap utility if missing */
.grid-1-2-gap-20 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .grid-1-2-gap-20 {
        grid-template-columns: 1fr;
    }
}

/* --- TOGGLE SWITCHES & GDPR BANNER --- */

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.toggle-switch input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 48px;
    height: 26px;
    background: #e2e8f0;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    outline: none;
    z-index: 10;
    opacity: 0;
    /* Make invisible but clickable */
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.toggle-switch input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-switch input[type="checkbox"]:checked {
    background: var(--primary-color);
}

.toggle-switch input[type="checkbox"]:checked::after {
    transform: translateX(22px);
}

/* Also apply to .checkbox-auto if used as standalone toggle */
.checkbox-auto {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 22px;
    background: #e2e8f0;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.checkbox-auto::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.checkbox-auto:checked {
    background: var(--primary-color);
}

.checkbox-auto:checked::after {
    transform: translateX(18px);
}

/* GDPR Banner */
#gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: white;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out;
    display: none;
    /* Fix: Hidden by default, JS enables it */
}

.gdpr-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.cookie-text {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin: 0;
}

@media (max-width: 768px) {
    .gdpr-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .d-flex.gap-3 {
        width: 100%;
        justify-content: center;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Grid gap utility if missing */
.grid-1-2-gap-20 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .grid-1-2-gap-20 {
        grid-template-columns: 1fr;
    }
}

/* --- Settings Layout Fixes --- */
.settings-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.settings-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.settings-nav-item {
    display: block;
    padding: 12px 20px;
    color: #64748b;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.settings-nav-item:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.settings-nav-item.active {
    background: #eff6ff;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.settings-content-area {
    flex-grow: 1;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    min-width: 0;
}

@media (max-width: 768px) {
    .settings-container {
        flex-direction: column;
    }

    .settings-sidebar {
        width: 100%;
        position: static;
    }
}

.settings-content-area input[type="text"],
.settings-content-area input[type="password"],
.settings-content-area input[type="email"],
.settings-content-area input[type="url"],
.settings-content-area select,
.settings-content-area textarea {
    max-width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.settings-content-area label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1.5rem;
}

/* --- Services Grid Fixes --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.admin-service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.service-icon-box {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.service-category {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0.25rem;
}

.service-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-top: auto;
}

.service-stat-item {
    display: flex;
    flex-direction: column;
}

.service-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.1rem;
}

.service-stat-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.mt-auto-flex-gap {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.flex-1 {
    flex: 1;
}

/* --- HOME BLOG SECTION REDESIGN --- */
.home-blog-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    /* Dark premium background */
    color: #fff;
}

/* Background blobs for "full screen" effect */
.home-blog-section::before,
.home-blog-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
}

.home-blog-section::before {
    top: -200px;
    right: -100px;
    background: #4f46e5;
    /* Primary */
    animation: blobFloat 20s infinite alternate;
}

.home-blog-section::after {
    bottom: -200px;
    left: -100px;
    background: #06b6d4;
    /* Secondary */
    animation: blobFloat 25s infinite alternate-reverse;
}

.home-blog-section .section-header h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.home-blog-section .section-header p {
    color: #94a3b8;
    font-size: 1.1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.home-blog-card {
    background: rgba(255, 255, 255, 0.03);
    /* Dark glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.blog-date {
    font-size: 0.85rem;
    color: #61DAFB;

    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Layout Fixes for Blog & Newsletter Matching */
.home-blog-section {
    margin-bottom: 0 !important;
    padding-bottom: 80px !important;
    border-bottom: none !important;
}


@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.newsletter-section {
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #312e81) !important;
    background-size: 400% 400% !important;
    animation: gradientBG 15s ease infinite !important;
    color: #fff !important;
    margin-top: 0 !important;
    padding-top: 80px;
    padding-bottom: 80px;
    border-top: none !important;
    position: relative;
    z-index: 2;
}


.newsletter-section .container {
    position: relative;
    z-index: 2;
}

/* Ensure no container constraints */
body.landing-page .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.home-blog-card h4 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #fff;
    /* White text for dark mode */
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.modal-tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.modal-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
}

/* Fix for broken design on Services page - Grid Layout */
#servicesGrid {
    padding: 1.5rem;
}

.tab-pricing-header {
    margin-top: 1rem;
}

.home-blog-card p {
    color: #cbd5e1;
    /* Light gray text */
    flex-grow: 1;
    margin-bottom: 25px;
}

.read-more {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.read-more i {
    transition: transform 0.3s;
}

.home-blog-card:hover .read-more {
    gap: 12px;
    color: #61DAFB;
}

/* --- Admin Services Header Grid --- */
.dashboard-header-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
    flex: 1;
}

.action-bar {
    display: flex;
    gap: 0.5rem;
}

.filter-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
}

.tabs-subtle {
    display: flex;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
}

.tab-pill {
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s;
}

.tab-pill.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.8rem;
}

.input-icon-wrapper input {
    padding-left: 30px;
}

@media(max-width: 768px) {
    .dashboard-header-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        align-items: flex-start;
        width: 100%;
    }

    .filter-bar {
        justify-content: flex-start;
    }
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.blog-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blob-b {
    position: absolute;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 51, 234, 0.05));
    border-radius: 50%;
    filter: blur(60px);
    animation: blob-float 15s infinite alternate;
}

.blob-b-1 {
    width: 600px;
    height: 600px;
    top: -100px;
    right: -200px;
    animation-delay: -5s;
}

.blob-b-2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    left: -100px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(16, 185, 129, 0.05));
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, 40px) scale(1.05);
    }
}



/* --- Dashboard PHP Page Utilities --- */
.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.flex-gap-10-center {
    display: flex;
    gap: 10px;
    align-items: center;
}

.view-all-centered {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 20px;
}

.services-grid-dashboard {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0;
}

.services-list-view {
    display: none;
}

.api-card-dashboard {
    padding: 1.5rem;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cost-display {
    font-weight: 700;
    color: var(--primary-color);
}

.service-title-dash {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.service-desc-dash {
    font-size: 0.9rem;
    flex-grow: 1;
}

.card-actions-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.btn-flex-1 {
    flex: 1;
    justify-content: center;
}

.desc-sm-muted {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-success {
    color: var(--success-color);
    font-weight: 600;
}

.status-failed {
    color: var(--danger-color);
    font-weight: 600;
}


/* --- API DETAILS PAGE STYLES --- */

/* Grid Layout */
.api-details-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.left-col-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Space between cards */
}

@media (max-width: 992px) {
    .api-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Header Card */
.api-header-card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.api-header-flex {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.api-info-col {
    flex: 1;
}

.api-action-col {
    width: 300px;
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 768px) {
    .api-header-flex {
        flex-direction: column;
    }

    .api-action-col {
        width: 100%;
        text-align: left;
    }
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.back-link:hover {
    color: var(--primary-color);
}

.api-category-label {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.api-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.api-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Price & Auth Actions */
.api-price-display {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.api-price-unit {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.activation-fee-info {
    font-size: 0.9rem;
    color: #f59e0b;
    background: #fffbeb;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #fcd34d;
    display: inline-block;
    width: fit-content;
    align-self: flex-end;
}

@media (max-width:768px) {
    .activation-fee-info {
        align-self: flex-start;
    }
}

.activation-fee-amount {
    font-weight: 700;
}

.auth-prompt-link {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.auth-prompt-anchor {
    color: var(--text-muted);
    text-decoration: underline;
}

/* Screenshots & Docs */
.screenshot-card {
    padding: 0.5rem;
    overflow: hidden;
    background: #000;
}

.screenshot-img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.mb-1-5 {
    margin-bottom: 1.5rem;
}

.bg-card-padded {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.label-block-600-mb-10 {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.label-sm-muted {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

.select-w-100-styled {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: white;
    font-size: 0.95rem;
}

.flex-align-gap-10-styled {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.mono-text-break {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    color: #334155;
    background: #e2e8f0;
    padding: 4px 8px;
    border-radius: 4px;
}

.desc-italic-muted {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Code Tabs */
.code-tabs-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
}

.code-tab {
    flex: 1;
    border: none;
    background: none;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.code-tab.active {
    background: white;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.code-tab:hover {
    background: #e2e8f0;
}

.pos-relative {
    position: relative;
}

.code-content-pre {
    margin: 0;
    padding: 1.5rem;
    background: #0f172a;
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    display: none;
    /* Hidden by default */
}

.code-content-pre.active {
    display: block;
}

.copy-btn-abs {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
}

.copy-btn-abs:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Live Test Console */
.live-test-card {
    position: sticky;
    top: 20px;
}

.live-test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.active-badge {
    background: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.test-limit-info {
    font-size: 0.85rem;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.dummy-key-msg {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.8rem;
}

.text-0-9-rem {
    font-size: 0.9rem;
}

.text-0-8-rem-muted-mb-5 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.json-editor {
    width: 100%;
    background: #1e293b;
    color: #e2e8f0;
    font-family: monospace;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.9rem;
    resize: vertical;
}

.btn-center-w-100 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

/* Response Box */
.response-container {
    margin-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.http-status-badge {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    background: #e2e8f0;
    color: #64748b;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
}

/* status-success already exists */

.resp-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.resp-tab-btn {
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.resp-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.resp-preview-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    min-height: 100px;
}

.media-preview {
    max-width: 100%;
    border-radius: 8px;
}

.media-preview-v {
    width: 100%;
    border-radius: 8px;
    max-height: 200px;
    object-fit: cover;
}

.img-max-100-rounded {
    max-width: 100%;
    border-radius: 8px;
}

.grid-gap-10 {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.btn-text-underline-primary {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.resp-error-msg {
    font-size: 0.9rem;
    color: #ef4444;
}

.api-raw-container {
    position: relative;
}

.code-pre-custom {
    background: #1e293b;
    color: #cbd5e1;
    padding: 10px;
    border-radius: 6px;
    overflow: auto;
    font-size: 0.85rem;
    max-height: 400px;
    margin: 0;
}

.copy-btn-abs-custom {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.75rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-view-demo {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
}

.cursor-pointer {
    cursor: pointer;
}

/* Confirm Modal Utilities */
.confirm-modal-content {
    max-width: 400px;
    text-align: center;
}

.confirm-modal-header {
    border-bottom: none;
    justify-content: center;
}

.confirm-modal-title {
    margin: 0;
}

.confirm-modal-icon {
    color: #ef4444;
    margin-right: 10px;
}

.confirm-modal-message {
    margin: 20px 0;
    color: var(--text-main);
}

.confirm-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Envato Compliance & API Details Response Tabs */
.resp-tabs {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
}

.resp-tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.resp-tab-btn.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.resp-tab-btn:hover {
    color: var(--primary-color);
}

/* Admin Settings Layout (Fix for Broken Tabs) */
.settings-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.settings-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.settings-nav-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
    font-weight: 500;
    color: var(--text-muted);
}

.settings-nav-item:last-child {
    border-bottom: none;
}

.settings-nav-item:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.settings-nav-item.active {
    background: #f1f5f9;
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    font-weight: 600;
}

.settings-content-area {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 2rem;
}

.settings-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.settings-content.active {
    display: block;
}

@media (max-width: 768px) {
    .settings-container {
        flex-direction: column;
    }

    .settings-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        border-bottom: none;
    }

    .settings-nav-item {
        white-space: nowrap;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
    }
}

/* --- Responsive Table Wrapper --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.table-responsive .admin-table {
    margin-bottom: 0;
    border: none;
}

/* --- Custom Confirmation Modal --- */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.confirm-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.confirm-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.confirm-modal-overlay.active .confirm-box {
    transform: scale(1);
}

.confirm-icon {
    width: 48px;
    height: 48px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem auto;
}

.confirm-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.confirm-desc {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-msg {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--primary-color);
}

.toast-msg.show {
    transform: translateX(0);
}

.toast-msg.success {
    border-left-color: #10b981;
}

.toast-msg.error {
    border-left-color: #ef4444;
}

.toast-msg.info {
    border-left-color: #3b82f6;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-msg.success .toast-icon {
    color: #10b981;
}

.toast-msg.error .toast-icon {
    color: #ef4444;
}

.toast-msg.info .toast-icon {
    color: #3b82f6;
}

.toast-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
}

/* --- MOBILE MODAL FIXES (Appended) --- */
.modal-overlay,
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    /* Ensure above header */
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(2px);
}

.modal-overlay.active,
.confirm-modal-overlay.active {
    display: flex;
}

.modal-content,
.confirm-box {
    background: #fff;
    /* Ensure contrast */
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    /* Prevent overflowing screen */
    overflow-y: auto;
    /* Scrollable content */
    position: relative;
    animation: modalSlideUp 0.3s ease-out;
    margin: auto;
    /* Centering */
}

.modal-lg {
    max-width: 800px;
}

/* Ensure header inside modal doesn't overlap content */
.modal-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-content form {
    padding: 1.5rem;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile specific tweaks */
@media (max-width: 768px) {
    .modal-content {
        max-height: 85vh;
        /* slightly less on mobile to account for browser bars */
        width: 95%;
    }
}

/* Mobile Dropdown Logic */
@media (max-width: 768px) {
    .dropdown-content.active {
        display: block !important;
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: #f8fafc;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-msg {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 450px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--primary-color);
    pointer-events: auto;
}

.toast-msg.show {
    transform: translateX(0);
}

.toast-msg.success {
    border-left-color: var(--success-color);
}

.toast-msg.success .toast-icon {
    color: var(--success-color);
}

.toast-msg.error {
    border-left-color: var(--danger-color);
}

.toast-msg.error .toast-icon {
    color: var(--danger-color);
}

.toast-text {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
}

.toast-icon {
    font-size: 1.25rem;
}

/* Settings Page Layout Fix */
.settings-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.settings-sidebar {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column !important;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.settings-nav-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.settings-nav-item:last-child {
    border-bottom: none;
}

.settings-nav-item:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.settings-nav-item.active {
    background: #eff6ff;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.settings-content-area {
    flex-grow: 1;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.settings-content {
    display: none;
}

.settings-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@media (max-width: 768px) {
    .settings-container {
        flex-direction: column;
    }

    .settings-sidebar {
        width: 100%;
        flex-direction: row !important;
        overflow-x: auto;
    }

    .settings-nav-item {
        white-space: nowrap;
        border-bottom: none;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .settings-nav-item.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }
}

/* Floating Save Button */
.settings-floating-save {
    position: sticky;
    bottom: 20px;
    background: white;
    padding: 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 12px 12px;
    z-index: 50;
}

.settings-content-area {
    padding-bottom: 0 !important;
    overflow: hidden;
}

/* Force Vertical Layout for Settings Sidebar (Override generic tabs style) */
.settings-sidebar.tabs {
    display: flex;
    flex-direction: column !important;
    width: 250px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: auto !important;
}

.settings-sidebar.tabs .settings-nav-item {
    border-bottom: 1px solid var(--border-color);
    border-right: none;
}

.settings-sidebar.tabs .settings-nav-item:last-child {
    border-bottom: none;
}

/* FIX: Force Toggle Switch Visibility */
.toggle-switch input[type='checkbox'] {
    opacity: 1 !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    display: inline-block !important;
    width: 48px !important;
    height: 26px !important;
    z-index: 10 !important;
}

/* Compliance Refactoring Utilities */
.fs-lg {
    font-size: 1.1rem;
}

.fs-sm {
    font-size: 0.9rem;
}

.fs-xl {
    font-size: 1.2rem;
}

.hr-divider {
    margin: 15px 0;
    border-color: var(--border-color);
}

.auth-modal-close {
    top: 15px;
    right: 15px;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 20px;
}

.auth-tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.auth-heading {
    text-align: center;
    margin-bottom: 20px;
}

.auth-form-hidden {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-auto {
    width: auto;
}

.verification-alert {
    margin: 20px 0;
    border-left: 5px solid #f59e0b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.verification-btn {
    border-color: #b45309;
    color: #b45309;
}

.form-inline {
    margin: 0;
}

.cookie-content {
    flex: 1;
    margin-right: 2rem;
}

.cookie-text {
    color: #cbd5e1;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

/* Status Classes Fix */
.status-published {
    background: #dcfce7;
    color: #166534;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.status-draft {
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

/* Fix Mobile Menu Toggle Visibility */
@media (max-width: 768px) {
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        z-index: 1000;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .mobile-menu-toggle {
        display: flex !important;
    }
}
/* Badge Status Colors */
.badge-success { background-color: #10b981 !important; color: white !important; }
.badge-danger { background-color: #ef4444 !important; color: white !important; }
.badge-warning { background-color: #f59e0b !important; color: white !important; }
.badge-secondary { background-color: #64748b !important; color: white !important; }
