/* ==========================================================================
   CyberGuard Security & Website Health Auditor
   Modern Dark Glassmorphic Design System & Responsive Stylesheet
   ========================================================================== */

:root {
    --bg-primary: #070b16;
    --bg-secondary: #0d1527;
    --bg-card: rgba(15, 23, 42, 0.78);
    --bg-card-hover: rgba(22, 34, 61, 0.92);
    --bg-glass-input: rgba(8, 14, 27, 0.88);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(56, 189, 248, 0.5);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-cyan: #06b6d4;
    --accent-sky: #38bdf8;
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    --shadow-card: 0 16px 36px -12px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 24px rgba(6, 182, 212, 0.25);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(circle at 10% 12%, rgba(59, 130, 246, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 90% 18%, rgba(139, 92, 246, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(6, 182, 212, 0.09) 0%, transparent 55%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Top Sticky Navigation Bar
   ========================================================================== */
.top-navbar {
    background: rgba(10, 16, 31, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.brand-logo-link:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.site-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.3);
    background: rgba(13, 21, 39, 0.9);
    display: block;
    flex-shrink: 0;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #ffffff 40%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.brand-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Freelancer Action Button */
.btn-hire-freelancer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(6, 182, 212, 0.28));
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #e0f2fe;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.18);
    white-space: nowrap;
}

.btn-hire-freelancer:hover {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45);
}

.btn-hire-freelancer:active {
    transform: translateY(0);
}

.btn-hire-freelancer svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 36px 20px 48px;
    width: 100%;
}

/* Hero Header */
header {
    text-align: center;
    margin-bottom: 32px;
}

.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    color: #60a5fa;
    font-weight: 600;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.pill-tag .dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-sky);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-sky);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 30%, #93c5fd 70%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

p.subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.92rem, 2.5vw, 1.05rem);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   Search & Scanner Box
   ========================================================================== */
.search-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
    transition: var(--transition);
}

.search-card:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 20px 45px -12px rgba(6, 182, 212, 0.2);
}

.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.input-wrap {
    flex: 1;
    position: relative;
    width: 100%;
}

.input-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: color 0.2s;
}

.input-wrap:focus-within svg {
    color: var(--accent-sky);
}

.input-field {
    width: 100%;
    height: 54px;
    background: var(--bg-glass-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 18px 0 48px;
    font-size: 1rem;
    color: #ffffff;
    outline: none;
    transition: var(--transition);
}

.input-field:focus {
    border-color: var(--accent-sky);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    background: rgba(10, 16, 32, 0.98);
}

.input-field::placeholder {
    color: #475569;
}

.btn-submit {
    height: 54px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0 28px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.45);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -5px rgba(37, 99, 235, 0.55);
    background: linear-gradient(135deg, #1d4ed8, #0284c7);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.example-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.example-chips span {
    font-weight: 600;
    color: var(--text-muted);
}

.chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
}

.chip:hover {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-sky);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
}

/* Alert Error */
.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: #fca5a5;
    margin-bottom: 24px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   Results Overview Box
   ========================================================================== */
.overview-box {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

/* Score Circle */
.score-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(var(--grade-color, #10b981) calc(var(--score-pct, 0) * 1%), rgba(255, 255, 255, 0.08) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    flex-shrink: 0;
}

.score-inner {
    width: 88px;
    height: 88px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-grade {
    font-size: 2rem;
    font-weight: 800;
    color: var(--grade-color, #10b981);
    line-height: 1;
}

.score-points {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 3px;
}

.overview-info {
    min-width: 0;
}

.overview-info h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
    word-break: break-all;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.site-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.site-title-badge svg {
    color: var(--accent-sky);
    flex-shrink: 0;
}

.target-link {
    color: var(--accent-sky);
    text-decoration: none;
    word-break: break-all;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.target-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.target-link .external-icon {
    opacity: 0.7;
    transition: transform 0.2s, opacity 0.2s;
}

.target-link:hover .external-icon {
    opacity: 1;
    transform: translate(2px, -2px);
}

.stat-grid {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.stat-badge:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(56, 189, 248, 0.3);
}

.stat-badge svg {
    color: var(--accent-sky);
    flex-shrink: 0;
}

.stat-badge strong {
    color: #ffffff;
}

/* Technology Stack Badges Row */
.tech-stack-row {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(10, 16, 31, 0.7);
    padding: 9px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tech-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-sky);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tech-label svg {
    color: var(--accent-cyan);
}

.tech-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tech-pill {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #f0f9ff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.tech-pill:hover {
    border-color: var(--accent-sky);
    background: rgba(56, 189, 248, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.tech-emoji {
    font-size: 0.95rem;
    line-height: 1;
}

/* Metric Stack / Summary */
.metric-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 170px;
}

.metric-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 600;
    gap: 10px;
}

.metric-label-group {
    display: flex;
    align-items: center;
    gap: 7px;
}

.metric-label-group svg {
    flex-shrink: 0;
}

.item-pass { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }
.item-warn { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.item-fail { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.25); }

.cat-icon {
    margin-right: 4px;
    font-size: 1.05rem;
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================================================
   Filter Tabs Bar (Interactive)
   ========================================================================== */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.results-header h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.results-header h3 svg {
    color: var(--accent-sky);
}

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.filter-btn.active {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.45);
    color: var(--accent-sky);
}

.filter-btn.btn-filter-fail.active {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.filter-btn.btn-filter-warn.active {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.filter-btn.btn-filter-pass.active {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

/* ==========================================================================
   Checks Cards List & Responsive Layout
   ========================================================================== */
.cards-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.check-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition);
}

.check-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.check-card.is-hidden {
    display: none !important;
}

.check-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.check-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.check-title-group h3 {
    font-size: 1.04rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
}

.status-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    flex-shrink: 0;
}

.status-pass .status-icon { background: rgba(16, 185, 129, 0.18); color: #10b981; }
.status-warn .status-icon { background: rgba(245, 158, 11, 0.18); color: #f59e0b; }
.status-fail .status-icon { background: rgba(239, 68, 68, 0.18); color: #ef4444; }

.check-main {
    min-width: 0;
    width: 100%;
}

.check-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.check-rec {
    font-size: 0.84rem;
    background: rgba(10, 15, 29, 0.65);
    border-left: 3px solid var(--accent-sky);
    padding: 9px 13px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #cbd5e1;
    line-height: 1.45;
}

.check-rec strong {
    color: var(--accent-sky);
}

.badge-value {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    align-self: center;
    flex-shrink: 0;
}

.val-pass { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.val-warn { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.val-fail { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* ==========================================================================
   Freelancer Assistance Banner (CTA)
   ========================================================================== */
.freelancer-cta-box {
    background: linear-gradient(135deg, rgba(16, 25, 46, 0.95), rgba(30, 41, 59, 0.75));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.cta-content {
    flex: 1;
    min-width: 250px;
}

.cta-content h4 {
    font-size: 1.15rem;
    color: #f8fafc;
    margin-bottom: 4px;
    font-weight: 700;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    margin-top: auto;
    text-align: center;
    padding: 28px 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
    border-top: 1px solid var(--border-color);
    background: rgba(7, 11, 22, 0.6);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.footer-link {
    color: var(--accent-sky);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.86rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* ==========================================================================
   SHARE ACTIONS & REPORT MODAL
   ========================================================================== */

/* Overview Share Buttons Row */
.share-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.btn-action-share {
    background: linear-gradient(135deg, #0284c7, #6366f1);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: var(--transition);
}

.btn-action-share:hover {
    background: linear-gradient(135deg, #0ea5e9, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.btn-action-share svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.btn-action-share:hover svg {
    transform: rotate(15deg) scale(1.1);
}

.btn-action-download {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: var(--transition);
}

.btn-action-download:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.btn-action-download svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.btn-action-download:hover svg {
    transform: translateY(2px);
}

.btn-action-copy {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-action-copy:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(56, 189, 248, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-action-copy.copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}

/* Modal Overlay & Backdrop */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 20, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* Modal Card Container */
.modal-container {
    background: linear-gradient(145deg, #0b1329, #0f1c3d);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.12);
    overflow: hidden;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-icon {
    font-size: 1.25rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Live Image Card Banner Preview inside Modal */
.share-card-image-box {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #060b1c;
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.15);
    position: relative;
}

.share-card-rendered-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.share-card-rendered-img:hover {
    transform: scale(1.008);
}

.card-image-loading-placeholder {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(6, 11, 26, 0.95);
    color: var(--accent-sky);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Card Download & Share Row */
.card-image-download-row {
    display: flex;
    gap: 10px;
}

.btn-download-card-primary {
    flex: 1;
    background: linear-gradient(135deg, #10b981, #047857);
    color: #ffffff;
    border: none;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transition: var(--transition);
}

.btn-download-card-primary:hover {
    background: linear-gradient(135deg, #34d399, #059669);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.btn-share-image-native {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-share-image-native:hover {
    background: rgba(56, 189, 248, 0.28);
    color: #ffffff;
    border-color: #38bdf8;
    transform: translateY(-2px);
}

/* Social Buttons Grid */
.social-share-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
}

.social-share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

.share-btn svg {
    flex-shrink: 0;
}

.share-whatsapp {
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.share-facebook {
    background: #1877F2;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
}

.share-twitter {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.share-native {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Copy Link & Summary Section */
.share-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.share-field-wrap label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
}

.copy-input-row,
.copy-textarea-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.share-text-input {
    flex: 1;
    background: rgba(5, 10, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #38bdf8;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    min-width: 0;
}

.share-text-input:focus {
    border-color: var(--accent-sky);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.share-textarea {
    flex: 1;
    background: rgba(5, 10, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-family: inherit;
    resize: none;
    outline: none;
    line-height: 1.45;
    transition: var(--transition);
    min-width: 0;
}

.share-textarea:focus {
    border-color: var(--accent-sky);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.btn-copy-modal {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-copy-modal:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #ffffff;
    border-color: #38bdf8;
}

.btn-copy-modal.copied {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS OVERRIDES
   ========================================================================== */

/* Tablet & Smaller Screens (< 850px) */
@media (max-width: 850px) {
    .overview-box {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        padding: 22px 18px;
    }

    .overview-info h2 {
        justify-content: center;
    }

    .stat-grid {
        justify-content: center;
    }

    .metric-stack {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .metric-item {
        flex: 1;
        justify-content: center;
        flex-direction: column;
        padding: 10px 8px;
        gap: 4px;
    }

    .share-actions-row {
        justify-content: center;
    }
}

/* Mobile Screens (< 680px) */
@media (max-width: 680px) {
    .nav-container {
        padding: 10px 14px;
    }

    .site-logo {
        width: 36px;
        height: 36px;
    }

    .brand-title {
        font-size: 1.02rem;
    }

    .brand-tag {
        display: none;
    }

    .btn-hire-freelancer {
        padding: 7px 12px;
        font-size: 0.8rem;
        gap: 6px;
    }

    .btn-hire-freelancer svg {
        width: 15px;
        height: 15px;
    }

    .container {
        padding: 24px 14px 36px;
    }

    header {
        margin-bottom: 24px;
    }

    .pill-tag {
        padding: 4px 12px;
        font-size: 0.78rem;
        margin-bottom: 10px;
    }

    h1 {
        font-size: 1.65rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    p.subtitle {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    /* Stack Search Form on Mobile */
    .search-card {
        padding: 18px 16px;
        border-radius: var(--radius-md);
        margin-bottom: 24px;
    }

    .search-form {
        flex-direction: column;
        gap: 10px;
    }

    .input-wrap {
        width: 100%;
    }

    .input-field {
        height: 48px;
        font-size: 16px; /* Prevents auto-zoom on iOS */
        padding: 0 16px 0 44px;
    }

    .input-wrap svg {
        left: 14px;
        width: 18px;
        height: 18px;
    }

    .btn-submit {
        width: 100%;
        height: 48px;
        font-size: 0.95rem;
    }

    .example-chips {
        margin-top: 12px;
        gap: 6px;
    }

    /* Check Card Mobile Layout Transformation */
    .check-card {
        display: flex;
        flex-direction: column;
        padding: 14px 14px;
        gap: 10px;
        border-radius: var(--radius-md);
    }

    /* Mobile Header inside Card: Icon + Title + Status Badge */
    .check-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
    }

    .check-title-group {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        flex: 1;
    }

    .status-icon {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }

    .check-main h3 {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .check-desc {
        font-size: 0.84rem;
        margin-bottom: 6px;
    }

    .check-rec {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .badge-value {
        padding: 4px 8px;
        font-size: 0.75rem;
        align-self: center;
    }

    /* Hide desktop-only layout slots when mobile is active */
    .desktop-only-badge {
        display: none !important;
    }

    /* Freelancer CTA Banner Mobile */
    .freelancer-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
        gap: 16px;
    }

    .cta-content {
        min-width: 100%;
    }

    .cta-content h4 {
        font-size: 1.05rem;
    }

    .cta-content p {
        font-size: 0.84rem;
    }

    .freelancer-cta-box .btn-hire-freelancer {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    /* Filter Tabs on Mobile */
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filter-tabs {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    /* Share Buttons & Modal on Mobile */
    .share-actions-row {
        width: 100%;
        justify-content: center;
    }

    .btn-action-share,
    .btn-action-download,
    .btn-action-copy {
        flex: 1;
        min-width: 130px;
        justify-content: center;
    }

    .modal-container {
        max-height: 92vh;
        border-radius: 14px;
    }

    .modal-header {
        padding: 14px 16px;
    }

    .modal-body {
        padding: 16px;
        gap: 14px;
    }

    .social-share-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .share-btn {
        padding: 9px 8px;
        font-size: 0.8rem;
    }
}

/* Very Small Devices (< 380px) */
@media (max-width: 380px) {
    .brand-title {
        font-size: 0.92rem;
    }

    .btn-hire-freelancer span {
        font-size: 0.76rem;
    }

    .stat-badge {
        font-size: 0.78rem;
        padding: 4px 8px;
    }

    .share-actions-row {
        flex-direction: column;
    }

    .btn-action-share,
    .btn-action-download,
    .btn-action-copy {
        width: 100%;
    }

    .social-share-grid {
        grid-template-columns: 1fr;
    }

    .copy-input-row,
    .copy-textarea-row {
        flex-direction: column;
    }

    .btn-copy-modal {
        padding: 8px 12px;
        width: 100%;
    }
}

