/* =====================================================================
 * Prime Koders — professional look (like Upwork / Fiverr).
 * Loaded after every other stylesheet. Clean white pages, one brand
 * colour (green by default), solid buttons, thin borders, soft shadows,
 * no glows, no glass and no playful motion. Dark mode stays available.
 * Colours still come from Admin → Settings → Theme (accent, corners).
 * =================================================================== */

/* ---------- Colour tokens ---------- */
:root, [data-theme="light"] {
    --bg: #ffffff;
    --bg-soft: #f7f8f7;
    --surface: #ffffff;
    --surface-2: #f7f8f7;
    --surface-3: #eef1ee;
    --border: #e4e7e4;
    --border-strong: #cfd5cf;
    --text: #2a2d2a;
    --text-strong: #0f1410;
    --muted: #5f655f;
    --subtle: #8e958e;
    --hover: rgba(15, 20, 16, 0.045);
    --header-bg: #ffffff;
    --overlay: rgba(15, 20, 16, 0.5);
    --input-bg: #ffffff;
    --shadow: 0 1px 2px rgba(15, 20, 16, 0.04), 0 1px 6px rgba(15, 20, 16, 0.04);
    --shadow-lg: 0 10px 30px rgba(15, 20, 16, 0.1);
    --green-text: #108a00;
    --amber-text: #9a5b00;
    --red-text: #c0262d;
    --cyan-text: #0b6e5f;
    --indigo-text: #0d5c2e;
    --body-glow-1: transparent;
    --body-glow-2: transparent;
}
[data-theme="dark"] {
    --bg: #0e110f;
    --bg-soft: #121612;
    --surface: #161a17;
    --surface-2: #1b201c;
    --surface-3: #222823;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --text: #dfe5df;
    --text-strong: #ffffff;
    --muted: #9aa39b;
    --subtle: #6d766e;
    --hover: rgba(255, 255, 255, 0.05);
    --header-bg: #121612;
    --input-bg: #121612;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.45);
    --green-text: #6fdc5f;
    --amber-text: #f5c35b;
    --red-text: #ff8a8a;
    --cyan-text: #5ad8c3;
    --indigo-text: #9be38f;
    --body-glow-1: transparent;
    --body-glow-2: transparent;
}

/* Prime green (default accent). accent-2 is a deeper green for hovers and highlights. */
[data-accent="green"] { --accent: #14a800; --accent-2: #0d7a3e; --accent-rgb: 20, 168, 0; --accent2-rgb: 13, 122, 62; }
[data-theme="dark"][data-accent="green"] { --accent: #2fbf1d; --accent-2: #3fcf7e; --accent-rgb: 47, 191, 29; --accent2-rgb: 63, 207, 126; }

/* One solid brand colour everywhere a gradient used to be */
:root { --gradient: var(--accent); --accent-soft: rgba(var(--accent-rgb), 0.1); --accent-line: rgba(var(--accent-rgb), 0.45); }

/* Business-like corners */
:root, [data-radius="rounded"] { --radius: 12px; --radius-sm: 8px; --radius-pill: 999px; }
[data-radius="soft"] { --radius: 16px; --radius-sm: 10px; }
[data-radius="sharp"] { --radius: 4px; --radius-sm: 3px; --radius-pill: 4px; }

/* ---------- Base ---------- */
body { background: var(--bg); background-image: none; font-size: 15px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { letter-spacing: -0.015em; font-weight: 700; }
h2 { font-size: 1.5rem; }
a:hover { color: var(--accent-2); }
.gradient-text { background: none; color: var(--accent); -webkit-text-fill-color: currentColor; }
::selection { background: rgba(var(--accent-rgb), 0.2); }

/* No bouncing, tilting or floating */
.category-tile:hover, .category-tile:hover i, .theme-toggle:hover i, .btn:hover, .btn:active,
.project-card:hover, .campaign-card:hover, .dev-card:hover, .sector-card:hover, .intent-card:hover,
.sector-card:hover .sector-icon, .conv-item:hover, .pay-option:hover .pay-option-body, .role-card:hover .role-card-body { transform: none; }
.hero-visual .float-card, .hero-blob, .empty-state > i, .streak-chip.lit .fa-fire { animation: none; }
.hero-blob { display: none; }

/* ---------- Announcement bar ---------- */
.announce, .announce-promo, .announce-info, .announce-success { background: #0f1410; color: #fff; }
.announce-warning { background: #9a5b00; }
.announce-inner { min-height: 36px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header { background: var(--header-bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--border); box-shadow: none; }
.logo { font-weight: 700; letter-spacing: -0.02em; }
.logo-mark { background: var(--accent); box-shadow: none; border-radius: 8px; }
.logo-text span { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent); -webkit-text-fill-color: var(--accent); }
.main-nav a { color: var(--text); font-weight: 500; border-radius: 8px; }
.main-nav a i { display: none; }
.main-nav a:hover { background: transparent; color: var(--accent); }
.main-nav a.active { background: transparent; color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-search input[type="search"] { background: var(--surface); border: 1px solid var(--border-strong); }
.nav-search input[type="search"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15); }
.icon-btn { border-radius: 50%; color: var(--text); }
.count-badge { background: var(--accent); box-shadow: 0 0 0 2px var(--header-bg); animation: none; }
.lvl-dot { background: var(--accent); }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--radius-pill); font-weight: 600; transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--accent-2); color: #fff; box-shadow: none; }
[data-theme="dark"] .btn-primary { color: #06210a; }
[data-theme="dark"] .btn-primary:hover { color: #06210a; }
.btn-secondary { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: rgba(var(--accent-rgb), 0.06); color: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { color: var(--accent); }
.btn-ghost:hover { background: rgba(var(--accent-rgb), 0.06); color: var(--accent-2); }
.btn-danger { background: transparent; border-color: rgba(192, 38, 45, 0.45); }
.btn-success { background: rgba(var(--accent-rgb), 0.08); color: var(--green-text); border-color: rgba(var(--accent-rgb), 0.4); }
.btn-lg { padding: 13px 24px; }
.ripple { display: none; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="url"], input[type="date"], select, textarea {
    border-radius: var(--radius-sm);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14) !important; }
.switch input:checked + .switch-track { background: var(--accent); }

/* ---------- Cards and grids ---------- */
.card { box-shadow: none; border-color: var(--border); }
.card-glass { background: var(--surface); backdrop-filter: none; }
.project-card, .campaign-card, .dev-card { transition: box-shadow 0.2s, border-color 0.2s; }
.project-card:hover, .campaign-card:hover, .dev-card:hover { box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.project-card:hover .card-media img, .campaign-card:hover .card-media img { transform: none; }
.card-media { border-bottom: 1px solid var(--border); }
.card-title { font-weight: 600; font-size: 1rem; }
.card-title a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.price { font-weight: 700; }
.ribbon { background: #0f1410; box-shadow: none; font-weight: 700; }
.quick-btn { background: #ffffff; color: #0f1410; border: 1px solid var(--border); backdrop-filter: none; }
.quick-btn:hover { transform: none; background: var(--surface-2); color: var(--accent); }
.quick-btn.active { background: #ffffff; color: #e0245e; }
.badge-equity, .badge-free, .badge-ending { background: #ffffff; color: #0f1410; border-color: var(--border); backdrop-filter: none; }
.stars, .fa-star { color: #f5a623; }
.pill-indigo { background: rgba(var(--accent-rgb), 0.1); color: var(--indigo-text); }
.stat-icon { background: rgba(var(--accent-rgb), 0.1); color: var(--accent); border-radius: 10px; }
.category-tile { gap: 8px; padding: 16px; box-shadow: none; }
.category-tile i { background: transparent; color: var(--accent); width: auto; height: auto; font-size: 1.5rem; border-radius: 0; }
.category-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.dev-card { padding-top: 24px; }
.avatar { border-width: 1px; border-color: var(--border); }
.avatar-xl { border-width: 3px; }
.verified, .fa-circle-check.verified { color: var(--accent); }
.pagination .current { background: var(--accent); }
.checkout-steps li.current { background: var(--accent); box-shadow: none; }
.tag { border-radius: 999px; }
.chip.active, .segmented a.active, .segmented button.active { box-shadow: none; }
.summary-strip a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tabs-ui button.active, .tabs-ui a.active { border-bottom-color: var(--accent); }

/* ---------- Hero (home) ---------- */
.hero { padding: 56px 0 44px; background: var(--bg); border-bottom: 1px solid var(--border); }
.hero-pro .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); }
.hero-eyebrow { background: transparent; border: 0; padding: 0; color: var(--accent); font-weight: 700; letter-spacing: 0.02em; }
.hero-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-3); margin-bottom: 12px; }
.hero-tabs button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.hero-tabs button.active { background: var(--surface); color: var(--text-strong); box-shadow: var(--shadow); }
.hero-search { max-width: 620px; border: 1px solid var(--border-strong); box-shadow: 0 6px 24px rgba(15, 20, 16, 0.08); padding: 6px 6px 6px 18px; }
.hero-search input[type="search"] { font-size: 1rem; padding: 10px 6px; }
.hero-search .btn { padding: 12px 22px; }
.hero-tags { margin-top: 16px; }
.hero-tags a { background: var(--surface); border-color: var(--border-strong); font-weight: 500; }
.hero-tags a:hover { border-color: var(--accent); color: var(--accent); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; color: var(--muted); font-size: 0.88rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof strong { color: var(--text-strong); }
.hero-proof i { color: var(--accent); }

/* Product-style collage on the right of the hero */
.hero-panel { position: relative; display: grid; gap: 14px; }
.hp-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(15, 20, 16, 0.08); color: var(--text); }
.hp-card:hover { color: var(--text); border-color: var(--border-strong); }
.hp-card img.hp-cover { width: 120px; height: 72px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.hp-card .hp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hp-card strong { color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-card small { color: var(--muted); }
.hp-card .hp-price { font-weight: 700; color: var(--text-strong); white-space: nowrap; }
.hp-project { margin-right: 40px; }
.hp-dev { margin-left: 40px; }
.hp-pay { margin-right: 70px; }
.hp-badge { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: rgba(var(--accent-rgb), 0.12); color: var(--green-text); white-space: nowrap; }
.hp-momo { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 0.75rem; background: #ffcb05; color: #1b1b1b; flex-shrink: 0; }
.hp-check { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 0.8rem; flex-shrink: 0; }

/* Payment / trust strip */
.trust-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 34px; padding: 22px 0; color: var(--subtle); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.trust-strip span.label { font-weight: 500; font-size: 0.85rem; color: var(--muted); letter-spacing: 0; }
.trust-strip i { margin-right: 6px; }

/* Sections */
.section { padding: 40px 0; }
.section-head h2 { font-size: 1.6rem; }
.section-head h2 i { display: none; }
.section-head a { font-weight: 600; }
.stats-band { gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat-big { border: 0; border-radius: 0; border-right: 1px solid var(--border); background: var(--surface); }
.stat-big:last-child { border-right: 0; }
.stat-big strong { font-weight: 700; color: var(--text-strong); }
.steps .step { box-shadow: none; }
.step::before { background: var(--accent); box-shadow: none; }
.step i { color: var(--accent); }
.promo-banner { background: #0f1410; }
.promo-banner .btn { background: var(--accent); color: #fff; }
.promo-banner img { opacity: 0.25; }
.slider { background: #0f1410; }
.cta-band { background: #0f1410; color: #fff; border: 0; padding: 56px 24px; }
.cta-band h2 { color: #fff; font-size: 2rem; }
.cta-band p { color: rgba(255, 255, 255, 0.75); }
.value-card { display: flex; flex-direction: column; gap: 10px; }
.value-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.value-card li { display: flex; gap: 10px; align-items: flex-start; }
.value-card li i { color: var(--accent); margin-top: 4px; }

/* Help hero, profile cover and fund banner: calm, flat */
.help-hero { background: var(--surface-2); border: 1px solid var(--border); }
.profile-cover { background: #0f1410; }
.profile-cover::after { display: none; }
.fund-banner { background: var(--surface-2); border: 1px solid var(--border); }

/* ---------- Auth pages ---------- */
.auth-side { background: #0f1410; }

/* ---------- Dashboards ---------- */
.dash-sidebar, .sidebar { box-shadow: none; }
.side-link.active, .sidebar a.active { background: rgba(var(--accent-rgb), 0.08); color: var(--accent); }


/* ---------- Gamification switched off (Admin → Settings → Gamification) ---------- */
.gamify-off .xp-chip, .gamify-off .xp-mini, .gamify-off .gamify-only, .gamify-off .streak-chip,
.gamify-off .lvl-dot, .gamify-off .level-ring, .gamify-off [data-tour="streak"] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1410; color: rgba(255, 255, 255, 0.72); border-top: 0; }
.site-footer h4, .site-footer .logo, .site-footer .logo-text { color: #fff; }
.site-footer .logo-text span { color: #6fdc5f; -webkit-text-fill-color: #6fdc5f; }
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: rgba(255, 255, 255, 0.6); }
.site-footer .footer-bottom { border-top-color: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.6); }
.site-footer .theme-segment { background: rgba(255, 255, 255, 0.08); }
.site-footer .theme-segment button { color: rgba(255, 255, 255, 0.7); }

/* ---------- Chat and calls in the brand colour ---------- */
.msg-row.mine .bubble { background: var(--accent); }
[data-theme="light"] .msg-row.theirs .bubble { background: #f1f3f1; border-color: #f1f3f1; }
.chat-messages { background-image: none; background-color: var(--bg-soft); }
.send-btn { background: var(--accent); box-shadow: none; }
.call-bg::after { background: linear-gradient(180deg, rgba(5, 8, 6, 0.3), rgba(5, 8, 6, 0.9)); }

/* ---------- Install page ---------- */
.install-wrap { max-width: 1100px; padding-top: 32px; padding-bottom: 48px; }
.install-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
    .hero-pro .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .hp-project, .hp-dev, .hp-pay { margin: 0; }
    .stat-big { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 640px) {
    .hero { padding: 32px 0 28px; }
    .hero-search { padding: 4px 4px 4px 12px; }
    .hero-search .btn span { display: none; }
    .hero-proof { gap: 10px 18px; }
    .trust-strip { gap: 10px 20px; font-size: 0.9rem; }
    .hp-card img.hp-cover { width: 84px; height: 56px; }
}
.home-slider { min-height: 260px; }
.cta-actions { justify-content: center; margin-top: 8px; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: #fff; }
.hero-search > i { align-self: center; }
