/* ==========================================================================
   OnlinePixelz - Modern White Theme Design System
   High-Authority Launchpad & SaaS Directory (DA 53)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    /* Pure Light Palette */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-elevated: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-input: #ffffff;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Brand Accents */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-border: #c7d2fe;

    --success: #10b981;
    --success-light: #ecfdf5;
    --success-border: #a7f3d0;

    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --warning-border: #fde68a;

    --danger: #ef4444;
    --danger-light: #fef2f2;

    /* Borders & Shadows */
    --border-subtle: #e2e8f0;
    --border-light: #cbd5e1;
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.09), 0 8px 10px -6px rgba(0, 0, 0, 0.03);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

img, svg, video, canvas, iframe {
    max-width: 100%;
    height: auto;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================================================
   Authority Metrics Top Bar (DA 53 Highlight)
   ========================================================================== */
.authority-topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 0;
    font-size: 13px;
}

.authority-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.metrics-pills {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.metric-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-primary);
}

.metric-badge.green {
    background: var(--success-light);
    border-color: var(--success-border);
    color: #065f46;
}

.metric-badge.indigo {
    background: var(--primary-light);
    border-color: var(--primary-border);
    color: var(--primary);
}

.authority-pitch {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.authority-pitch strong {
    color: var(--text-primary);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo-img {
    height: 42px;
    width: auto;
    max-height: 46px;
    max-width: 190px;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.brand-logo:hover .brand-logo-img {
    opacity: 0.92;
    transform: translateY(-1px);
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.brand-name span {
    color: var(--primary);
}

.brand-domain-badge {
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-subtle);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4.5px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--bg-subtle);
    border-color: var(--border-light);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Drawer & Backdrop */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 86vw;
    background: #ffffff;
    z-index: 9999;
    box-shadow: -4px 0 28px rgba(0, 0, 0, 0.14);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-main);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.mobile-nav-close:hover {
    background: var(--bg-subtle);
    color: var(--danger);
}

.mobile-nav-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mobile-nav-metrics {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    color: var(--primary);
}

.mobile-nav-item:hover, .mobile-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-nav-cta {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-outline {
    background: #ffffff;
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-subtle);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 13px 26px;
    font-size: 15px;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   Hero Section (Clean, High-Impact White)
   ========================================================================== */
.hero-section {
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 64px 0 54px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 250px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-badge .star {
    color: #f59e0b;
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1.2px;
    max-width: 820px;
    margin: 0 auto 16px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-stats-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin: 32px auto 0;
    max-width: 780px;
    padding: 16px 24px;
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-subtle);
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Home Outrank Teaser Bar */
.home-outrank-teaser {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    border: 1.5px solid #fde68a;
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.08);
}

.teaser-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.teaser-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.teaser-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.teaser-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

.teaser-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.teaser-btn {
    background: linear-gradient(135deg, #d97706, #b45309);
    border: none;
    font-size: 13.5px;
}

/* ==========================================================================
   Search & Filter Bar
   ========================================================================== */
.controls-bar {
    margin: 36px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 480px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 15px;
}

.search-input {
    width: 100%;
    height: 44px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0 16px 0 42px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.sort-select {
    height: 44px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    font-family: var(--font-body);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Category Filter Pills */
.category-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 28px;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.pill-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.pill-item:hover {
    background: var(--bg-subtle);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.pill-item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

/* ==========================================================================
   Tool / Directory Grid & Cards
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 22px;
    margin-bottom: 48px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.tool-card.featured {
    border-color: var(--warning-border);
    background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.08);
}

.tool-card.featured::before {
    content: 'FEATURED';
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #b45309;
    background: var(--warning-light);
    border: 1px solid var(--warning-border);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.tool-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.tool-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.tool-title-group {
    flex: 1;
    min-width: 0;
}

.tool-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.tool-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-title a {
    color: var(--text-primary);
}

.tool-title a:hover {
    color: var(--primary);
}

.dofollow-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    color: #065f46;
    background: var(--success-light);
    border: 1px solid var(--success-border);
    padding: 1px 6px;
    border-radius: 4px;
}

.tool-tagline {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.tool-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 3px 8px;
    border-radius: 6px;
    text-decoration: none;
}

.tool-category-badge:hover {
    color: var(--primary);
}

.tool-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Upvote Button */
.upvote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.upvote-btn i {
    color: var(--text-light);
    transition: var(--transition);
}

.upvote-btn:hover {
    border-color: var(--primary-border);
    background: var(--primary-light);
}

.upvote-btn:hover i {
    color: var(--primary);
}

.upvote-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.upvote-btn.active i {
    color: var(--primary);
}

/* Outbound Visit Button */
.visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    font-size: 12.5px;
    font-weight: 600;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

.visit-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* ==========================================================================
   Tool Detail Page
   ========================================================================== */
.tool-detail-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 40px 0;
    margin-bottom: 36px;
}

.tool-detail-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.tool-detail-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.tool-detail-logo {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.tool-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.tool-detail-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tool-detail-tagline {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.tool-meta-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tool-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-bottom: 60px;
}

.tool-preview-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.tool-screenshot {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.content-box {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.content-box h2 {
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.content-box p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 14px;
}

/* Embed Badge Widget Generator */
.badge-generator-box {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.badge-preview {
    margin: 16px 0;
    padding: 16px;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px dashed var(--border-subtle);
}

.code-copy-block {
    position: relative;
}

.code-snippet {
    width: 100%;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: monospace;
    font-size: 12px;
    color: var(--text-primary);
    resize: none;
    height: 75px;
}

/* ==========================================================================
   Pricing & Submission Portal (/submit.php - Compact 2-Column Layout)
   ========================================================================== */
.submit-compact-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px 0 20px;
    margin-bottom: 24px;
}

.submit-compact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.submit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
    margin-bottom: 50px;
}

.submit-layout > * {
    min-width: 0;
    max-width: 100%;
}

/* Compact Plan Selector (2x2 Grid) */
.compact-plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.plan-card-compact {
    background: #ffffff;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 13px 15px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card-compact:hover {
    border-color: var(--primary-border);
    background: #fafbff;
}

.plan-card-compact.selected {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15), var(--shadow-sm);
}

.compact-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.compact-plan-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.compact-plan-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--border-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.plan-card-compact.selected .compact-plan-radio {
    border-color: var(--primary);
    background: var(--primary);
}

.plan-card-compact.selected .compact-plan-radio::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

.compact-plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.compact-plan-price {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.compact-plan-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    color: var(--text-muted);
}

.compact-plan-tag.popular {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
}

.compact-plan-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Compact Submission Form */
.submit-form-compact {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.form-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title i {
    color: var(--primary);
}

/* Sticky Sidebar */
.submit-sidebar-sticky {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 380px;
    max-width: 100%;
    min-width: 0;
}

.preview-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

#previewCard {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

#previewCard .tool-title-row {
    min-width: 0;
    overflow: hidden;
}

#previewCard .tool-title {
    min-width: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#previewCard .tool-tagline {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#previewCard .tool-desc {
    word-break: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-summary-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--border-subtle);
}

.summary-line:last-of-type {
    border-bottom: none;
}

.summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 8px;
    border-top: 2px solid var(--border-subtle);
}

.summary-total-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-total-val {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
}

@media (max-width: 992px) {
    .submit-layout {
        grid-template-columns: 1fr;
    }
    .submit-sidebar-sticky {
        position: static;
        width: 100%;
    }
}


.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    min-width: 0;
}

.form-row .form-group {
    min-width: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-label span.req {
    color: var(--danger);
}

.form-control {
    width: 100%;
    height: 44px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

textarea.form-control {
    height: auto;
    padding: 12px 14px;
}

.fetch-url-wrap {
    display: flex;
    gap: 8px;
}

.live-preview-box {
    background: var(--bg-main);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    margin: 20px 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
    padding: 56px 0 28px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* Modal for Cashfree Checkout */
.cf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cf-modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 95%;
    max-width: 520px;
    padding: 32px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}


/* ==========================================================================
   Pagination Component (Clean White Theme)
   ========================================================================== */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 10px;
    margin-top: 24px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 16px;
}

.pagination-info {
    font-size: 13.5px;
    color: var(--text-muted);
}

.pagination-info strong {
    color: var(--text-primary);
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.page-btn:hover:not(.disabled):not(.active) {
    background: var(--bg-subtle);
    border-color: var(--border-light);
    color: var(--primary);
    transform: translateY(-1px);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
    cursor: default;
}

.page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
    background: var(--bg-subtle);
    border-color: var(--border-subtle);
    color: var(--text-light);
}

/* ==========================================================================
   Outbid Leaderboard Styles (Claim #1 Mechanics)
   ========================================================================== */
.outbid-hero {
    position: relative;
    padding: 44px 0 28px;
    background: radial-gradient(circle at 50% -20%, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
}

.outbid-live-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-secondary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    margin-bottom: 20px;
}

.live-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulseAnim 1.8s infinite;
}

@keyframes livePulseAnim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.outbid-live-bar strong.count-updated {
    display: inline-block;
    animation: countFlash 0.6s ease-in-out;
    color: #10b981;
}

@keyframes countFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.18); color: #10b981; }
    100% { transform: scale(1); }
}

.outbid-live-bar .divider {
    color: var(--border-subtle);
}

.outbid-live-bar .rules-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}
.outbid-live-bar .rules-link:hover {
    color: var(--primary);
}

.claimed-celebration-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    max-width: 680px;
    margin: 0 auto 20px;
    text-align: left;
    font-size: 13.5px;
}
.claimed-celebration-box .trophy-icon {
    font-size: 24px;
    color: #d97706;
}

.outbid-headline {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.bid-stepper-box {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 4px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    gap: 10px;
}

.stepper-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-main);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s ease;
}
.stepper-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.bid-stepper-box .price-value {
    color: #d97706;
    font-weight: 800;
    font-size: 38px;
    letter-spacing: -0.5px;
    min-width: 140px;
    text-align: center;
}

/* 1-Row Quick Action Bar */
.outbid-action-bar {
    max-width: 760px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    gap: 8px;
}

.action-field {
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 48px;
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease;
}
.action-field:focus-within {
    border-color: var(--primary);
    background: #ffffff;
}

.action-field .field-icon {
    color: var(--text-muted);
    font-size: 14px;
    margin-right: 10px;
}

.action-field input, .action-field select {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
}

.url-field {
    flex: 1;
}

.cat-field {
    width: 220px;
}

.claim-submit-btn {
    height: 48px;
    padding: 0 24px;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}
.claim-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.input-error-shake {
    animation: shakeAnim 0.4s ease;
    border-color: var(--danger) !important;
}
@keyframes shakeAnim {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Tabs */
.outbid-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.outbid-tabs {
    display: inline-flex;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}
.tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}
.tab-pill.active {
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Category Filter Pills */
.outbid-category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}
.filter-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.filter-pill.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

/* 2-Column Grid Layout */
.outbid-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.leaderboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}
.ranked-count-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* Ranked Cards */
.ranked-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranked-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}
.ranked-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.ranked-card.rank-gold {
    border: 1.5px solid #f59e0b;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1);
}
.ranked-card.rank-silver {
    border: 1.5px solid #cbd5e1;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.ranked-card.rank-bronze {
    border: 1.5px solid #fde68a;
}

.rank-indicator {
    width: 44px;
    text-align: center;
    flex-shrink: 0;
}
.rank-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
}
.rank-badge.gold {
    color: #d97706;
}
.rank-badge.gold .crown-icon {
    font-size: 16px;
    margin-bottom: 2px;
}
.rank-badge.silver {
    color: #64748b;
}
.rank-badge.silver .medal-icon {
    font-size: 15px;
    margin-bottom: 2px;
}
.rank-badge.bronze {
    color: #b45309;
}
.rank-badge.default {
    color: var(--text-light);
    font-size: 16px;
}

.ranked-tool-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ranked-tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranked-tool-info {
    flex: 1;
    min-width: 0;
}
.ranked-tool-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.ranked-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}
.ranked-title a {
    color: var(--text-primary);
    text-decoration: none;
}
.ranked-title a:hover {
    color: var(--primary);
}

.dofollow-pill {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.category-pill-tag {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ranked-tagline {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranked-tool-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}
.visit-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.visit-link:hover {
    text-decoration: underline;
}

.ranked-actions-col {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.bid-amount-box {
    text-align: right;
}
.bid-amount-box .bid-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}
.bid-amount-box .bid-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-outbid-action {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.btn-outbid-action:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Sidebar Styling */
.outbid-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.sidebar-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}
.box-title {
    font-size: 14.5px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.view-all-link {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.sidebar-ranked-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
.sidebar-ranked-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.sidebar-rank-num {
    width: 22px;
    font-weight: 700;
    color: var(--text-light);
    font-size: 12px;
}
.sidebar-tool-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-subtle);
    flex-shrink: 0;
}
.sidebar-tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-tool-meta {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-tool-name {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}
.sidebar-tool-name:hover {
    color: var(--primary);
}
.sidebar-bid-badge {
    font-weight: 700;
    font-size: 12px;
    color: var(--text-primary);
}

.claim-today-btn {
    width: 100%;
    justify-content: center;
    font-size: 12.5px;
    border-color: #fde68a;
    color: #b45309;
    background: #fffbeb;
}
.claim-today-btn:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #ffffff;
}

.live-pill {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #ef4444;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.activity-feed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.activity-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
}
.activity-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}
.activity-body {
    flex: 1;
}
.activity-text {
    line-height: 1.4;
    color: var(--text-secondary);
}
.activity-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.rule-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 12.5px;
}
.rule-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bg-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}
.rule-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 2px;
    font-size: 13px;
}
.rule-item p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    padding: 20px;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.outbid-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(12px) scale(0.98);
    transition: all 0.2s ease;
}
.modal-overlay.active .outbid-modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.modal-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fffbeb;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.modal-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 2px;
}
.modal-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}
.modal-close-btn {
    border: none;
    background: transparent;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}
.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
}

.modal-tool-details-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
@media (max-width: 580px) {
    .modal-tool-details-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.target-rank-banner {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.tool-scrape-preview {
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 18px;
    position: relative;
}
.scrape-loading-indicator {
    font-size: 12px;
    color: var(--primary);
    text-align: center;
    padding: 6px 0;
    font-weight: 600;
}
.scrape-content {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.2s ease;
}
.preview-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    object-fit: cover;
    flex-shrink: 0;
}
.preview-info {
    flex: 1;
    min-width: 0;
}
.preview-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}
.preview-tagline {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.preview-url {
    font-size: 11px;
    color: var(--primary);
}

.bid-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.currency-prefix {
    position: absolute;
    left: 16px;
    font-size: 20px;
    font-weight: 800;
    color: #d97706;
}
.bid-number-input {
    width: 100%;
    padding: 12px 16px 12px 36px;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
}
.bid-number-input:focus {
    border-color: #d97706;
}

.bid-boost-chips {
    display: flex;
    gap: 8px;
}
.boost-chip {
    flex: 1;
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}
.boost-chip:hover {
    border-color: #d97706;
    color: #d97706;
    background: #fffbeb;
}
.active-pulse {
    transform: scale(0.96);
}

.modal-checkout-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
    transition: all 0.15s ease;
    margin-bottom: 12px;
}
.modal-checkout-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4);
}
.modal-checkout-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.payment-guarantee-note {
    font-size: 11.5px;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.modal-error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-bottom: 16px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .outbid-layout-grid {
        grid-template-columns: 1fr;
    }
    .outbid-headline {
        font-size: 32px;
    }
    .outbid-action-bar {
        flex-direction: column;
        padding: 10px;
    }
    .action-field {
        width: 100%;
    }
    .cat-field {
        width: 100%;
    }
    .claim-submit-btn {
        width: 100%;
        justify-content: center;
    }
    .ranked-card {
        flex-wrap: wrap;
    }
    .ranked-actions-col {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px dashed var(--border-subtle);
    }
}

/* Leaderboard Pagination */
.leaderboard-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    gap: 12px;
    flex-wrap: wrap;
}

.page-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.15s ease;
}

.page-nav-btn:hover:not(.disabled) {
    background: var(--bg-main);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.page-nav-btn.disabled {
    opacity: 0.45;
    pointer-events: none;
    background: var(--bg-subtle);
    border-color: var(--border-subtle);
    color: var(--text-muted);
}

.page-info-pill {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-info-pill strong {
    color: var(--text-primary);
}

.page-rank-range {
    color: var(--text-muted);
    font-size: 12px;
}

/* ==========================================================================
   Cashfree Compliance, Policy Pages, Contact & Pricing Styles
   ========================================================================== */
.policy-hero {
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 44px 0 36px;
    text-align: center;
    margin-bottom: 36px;
}
.policy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.policy-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.policy-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.policy-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 36px 40px;
    max-width: 900px;
    margin: 0 auto;
}
.policy-section {
    margin-bottom: 32px;
}
.policy-section:last-child {
    margin-bottom: 0;
}
.policy-section h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}
.policy-section p {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 12px;
}
.policy-list {
    margin-left: 20px;
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 14px;
}
.policy-list li {
    margin-bottom: 8px;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto;
}
.contact-info-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.contact-form-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.contact-detail-item {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
}
.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.contact-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 2px;
}
.contact-value {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary);
}
.contact-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Refund Scenarios */
.refund-scenarios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 18px 0;
}
.scenario-box {
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.scenario-box.green {
    background: var(--success-light);
    border: 1px solid var(--success-border);
    color: #065f46;
}
.scenario-box.green .scenario-icon {
    color: var(--success);
    font-size: 20px;
}
.scenario-box.green h3 {
    color: #065f46;
    font-size: 15px;
    margin-bottom: 4px;
}
.scenario-box.green p {
    color: #047857;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}
.scenario-box.amber {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.scenario-box.amber .scenario-icon {
    color: #d97706;
    font-size: 20px;
}
.scenario-box.amber h3 {
    color: #92400e;
    font-size: 15px;
    margin-bottom: 4px;
}
.scenario-box.amber p {
    color: #b45309;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}
.scenario-box.red {
    background: var(--danger-light);
    border: 1px solid #fca5a5;
    color: #991b1b;
}
.scenario-box.red .scenario-icon {
    color: var(--danger);
    font-size: 20px;
}
.scenario-box.red h3 {
    color: #991b1b;
    font-size: 15px;
    margin-bottom: 4px;
}
.scenario-box.red p {
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Pricing Page Styles */
.pricing-trust-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.trust-item strong {
    display: block;
    font-size: 14.5px;
    color: var(--text-primary);
}
.trust-item span {
    display: block;
    font-size: 12.5px;
    color: var(--text-muted);
}

.pricing-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.catalog-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.catalog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.featured-catalog-card {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.12);
}
.popular-ribbon {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.05em;
}
.catalog-card-header {
    margin-bottom: 20px;
}
.catalog-plan-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.catalog-plan-badge.popular {
    background: var(--primary-light);
    color: var(--primary);
}
.catalog-plan-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.catalog-plan-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    min-height: 38px;
    line-height: 1.4;
    margin-bottom: 12px;
}
.catalog-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.catalog-currency {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}
.catalog-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}
.catalog-period {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-left: 2px;
}
.catalog-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex-grow: 1;
}
.catalog-features-list li {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 11px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}
.catalog-features-list li > i {
    flex-shrink: 0;
    margin-top: 2.5px;
    font-size: 12.5px;
    width: 14px;
    text-align: center;
}
.catalog-features-list li > span {
    flex: 1;
    min-width: 0;
}
.catalog-features-list li.disabled {
    color: var(--text-light);
    text-decoration: line-through;
}
.catalog-feature-pill {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    vertical-align: middle;
    margin-left: 3px;
    white-space: nowrap;
}
.catalog-feature-pill.green {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}
.catalog-feature-pill.orange {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

/* Specifications Table */
.services-spec-table-wrap {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}
.services-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}
.services-spec-table th {
    background: var(--bg-main);
    color: var(--text-primary);
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1.5px solid var(--border-subtle);
}
.services-spec-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}
.services-spec-table tr:last-child td {
    border-bottom: none;
}
.dofollow-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--success-light);
    color: #065f46;
    border: 1px solid var(--success-border);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.cashfree-compliance-notice {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    text-align: center;
}
.compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

/* ==========================================================================
   Badges Page Layout
   ========================================================================== */
.badges-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* ==========================================================================
   Comprehensive Responsive System (Desktops, Laptops, Tablets, & Mobiles)
   ========================================================================== */

/* --- Medium Laptops & Large Tablets (max-width: 1080px) --- */
@media (max-width: 1080px) {
    .container {
        padding: 0 18px;
    }
    .pricing-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .submit-layout {
        gap: 24px;
    }
}

/* --- Tablets & Small Screens (max-width: 860px) --- */
@media (max-width: 860px) {
    /* Header & Mobile Toggle */
    .nav-links {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .site-header {
        height: 64px;
    }
    .nav-inner {
        height: 64px;
    }
    .brand-logo-img {
        height: 36px;
        max-width: 150px;
    }
    .nav-submit-btn {
        padding: 7px 14px;
        font-size: 13px;
    }

    /* Authority Top Bar */
    .authority-topbar {
        padding: 6px 0;
    }
    .authority-inner {
        justify-content: center;
        gap: 8px;
        text-align: center;
    }
    .metrics-pills {
        justify-content: center;
        gap: 6px;
    }

    /* Grids & Two-Column Layouts */
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
        gap: 18px;
    }
    .tool-content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .badges-layout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .submit-layout {
        grid-template-columns: 1fr;
    }
    .submit-sidebar-sticky {
        position: static;
        width: 100%;
        margin-top: 20px;
    }
    .outbid-layout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* --- Mobile Landscape & Large Phones (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-section {
        padding: 44px 0 36px;
    }
    .hero-title {
        font-size: clamp(26px, 5.5vw, 42px);
        letter-spacing: -0.8px;
        line-height: 1.22;
        margin-bottom: 14px;
    }
    .hero-subtitle {
        font-size: clamp(14px, 3.2vw, 17px);
        line-height: 1.55;
        margin-bottom: 24px;
        padding: 0 4px;
    }
    .hero-stats-banner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        max-width: 460px;
        padding: 16px;
        margin: 24px auto 0;
    }
    .hero-stat-divider {
        display: none;
    }
    .hero-stat-value {
        font-size: 20px;
    }
    .hero-stat-label {
        font-size: 11.5px;
    }

    /* Outrank Home Teaser Bar */
    .home-outrank-teaser {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px 18px;
    }
    .teaser-left {
        align-items: flex-start;
        gap: 12px;
    }
    .teaser-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
    .teaser-title {
        font-size: 14.5px;
    }
    .teaser-sub {
        font-size: 12.5px;
    }
    .teaser-actions {
        width: 100%;
    }
    .teaser-btn {
        width: 100%;
        justify-content: center;
    }

    /* Directory Controls */
    .controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin: 20px 0 16px;
    }
    .search-box {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }
    .controls-bar > div:last-child {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
    }
    .sort-select {
        flex: 1;
        min-width: 0;
    }

    /* Outrank Leaderboard Action Bar */
    .outbid-headline {
        font-size: clamp(22px, 5vw, 36px);
        margin-bottom: 18px;
    }
    .outbid-action-bar {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
        border-radius: var(--radius-md);
    }
    .action-field {
        width: 100%;
        height: 44px;
    }
    .cat-field {
        width: 100%;
    }
    .claim-submit-btn {
        width: 100%;
        height: 46px;
        justify-content: center;
    }

    /* Pricing & Trust Banner */
    .pricing-trust-banner {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px 18px;
    }

    /* Policy & Contact Forms */
    .policy-card {
        padding: 28px 24px;
    }
    .contact-info-card, .contact-form-card {
        padding: 24px 20px;
    }
}

/* --- Mobile Phones (max-width: 640px) --- */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    /* Authority Pitch Hide */
    .authority-pitch {
        display: none;
    }

    /* Hero CTA full-width buttons */
    .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Tools Grid single column */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 36px;
    }
    .tool-card {
        padding: 18px 16px;
    }
    .tool-header {
        gap: 12px;
        margin-bottom: 10px;
    }
    .tool-logo {
        width: 44px;
        height: 44px;
    }
    .tool-title {
        font-size: 15.5px;
    }
    .tool-tagline {
        font-size: 12.5px;
    }
    .tool-desc {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    .tool-meta-row {
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 12px;
    }
    .tool-actions {
        gap: 6px;
    }
    .upvote-btn, .visit-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-height: 34px;
    }

    /* Leaderboard Ranked Cards */
    .ranked-card {
        flex-wrap: wrap;
        padding: 14px 16px;
        gap: 12px;
    }
    .rank-indicator {
        width: 36px;
    }
    .ranked-tool-logo {
        width: 40px;
        height: 40px;
    }
    .ranked-title {
        font-size: 15px;
    }
    .ranked-tagline {
        font-size: 12.5px;
    }
    .ranked-actions-col {
        width: 100%;
        justify-content: space-between;
        margin-top: 6px;
        padding-top: 10px;
        border-top: 1px dashed var(--border-subtle);
    }

    /* Leaderboard Pagination */
    .leaderboard-pagination {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
    }
    .page-nav-btn {
        justify-content: center;
        width: 100%;
    }
    .page-info-pill {
        justify-content: center;
    }

    /* Form Rows */
    .form-row, .contact-form-row {
        grid-template-columns: 1fr !important;
        gap: 14px;
        margin-bottom: 14px;
    }

    /* Pricing Catalog Grid */
    .pricing-catalog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .refund-scenarios-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Service Specs Table horizontal scroll */
    .services-spec-table-wrap {
        padding: 20px 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .services-spec-table {
        min-width: 600px;
    }

    /* Tool Detail Page */
    .tool-detail-header {
        padding: 28px 0;
        margin-bottom: 24px;
    }
    .tool-detail-main {
        flex-direction: column;
        gap: 16px;
    }
    .tool-detail-title {
        font-size: 24px;
    }
    .tool-detail-actions {
        width: 100%;
        flex-direction: column;
    }
    .tool-detail-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Prevent mobile input zooming on iOS */
    .form-control, .search-input, .bid-number-input {
        font-size: 16px;
    }
}

/* --- Compact Mobile Screens (max-width: 520px) --- */
@media (max-width: 520px) {
    /* Compact Plans Grid */
    .compact-plans-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Header Nav Action Compact */
    .nav-submit-btn span {
        display: none;
    }
    .nav-submit-btn {
        padding: 8px 11px;
    }

    /* Footer Grid Single Column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    /* Stepper Box in Leaderboard */
    .bid-stepper-box {
        padding: 3px 8px;
        gap: 6px;
    }
    .stepper-btn {
        width: 28px;
        height: 28px;
    }
    .bid-stepper-box .price-value {
        font-size: 26px;
        min-width: 90px;
    }

    /* Outbid Boost Chips */
    .bid-boost-chips {
        flex-wrap: wrap;
    }
    .boost-chip {
        min-width: calc(50% - 6px);
        padding: 8px 0;
    }
}

/* --- Ultra-Compact Phones (max-width: 380px) --- */
@media (max-width: 380px) {
    .container {
        padding: 0 12px;
    }
    .hero-stats-banner {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .brand-logo-img {
        max-width: 120px;
        height: 30px;
    }
    .metric-badge {
        font-size: 10.5px;
        padding: 2px 6px;
    }
}

/* Dynamic Click Counter Animation Styles */
.click-counter-item {
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}
.click-counter-item:hover {
    color: var(--primary, #2563eb) !important;
    text-decoration: underline;
}
.click-count-bump {
    animation: clickPulse 0.5s ease-in-out;
    color: #16a34a !important;
}
@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.22); font-weight: 800; }
    100% { transform: scale(1); }
}

