
/* =========================================================
   SOKOCONNECT KENYA — PROFESSIONAL WEBSITE DESIGN
   Complete stylesheet for updated index.html
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --green: #075b42;
    --green-dark: #063d2e;
    --green-light: #e8f4ee;
    --green-bright: #11845d;
    --orange: #f39a32;
    --orange-dark: #df801b;
    --text: #1d2924;
    --muted: #68766f;
    --background: #f6f8f6;
    --white: #ffffff;
    --border: #e3eae5;
    --shadow: 0 8px 28px rgba(12, 55, 37, 0.08);
    --shadow-hover: 0 15px 35px rgba(12, 55, 37, 0.14);
    --radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
}

button, input, select, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(17, 132, 93, 0.25);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

[hidden] {
    display: none !important;
}

/* =========================================================
   HEADER AND SPEEDING SHOPPING CART LOGO
========================================================= */

.helpline-bar {
    width: 100%;
    background: var(--green-dark);
    color: var(--white);
}

.helpline-container {
    width: min(1440px, 94%);
    min-height: 34px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 13px;
}

.helpline-container a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.helpline-container a:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.manual-till-instructions {
    margin: 12px 0 18px;
    padding: 14px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--green-dark);
    border-radius: 8px;
    background: #f5faf7;
}

.manual-till-instructions p {
    margin: 0 0 10px;
}

.manual-till-instructions small {
    display: block;
    margin-top: 8px;
}

.site-header {
    width: 100%;
    min-height: 82px;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.035);
}

.header-container {
    width: min(1440px, 94%);
    min-height: 82px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--green-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 23px;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: -0.8px;
    position: relative;
    flex-shrink: 0;
}

.logo-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 39px;
    position: relative;
    filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.12));
    animation: cartDrive 2.8s ease-in-out infinite;
}

.logo-cart::before {
    content: "";
    position: absolute;
    width: 23px;
    height: 3px;
    left: -19px;
    top: 12px;
    border-radius: 5px;
    background: var(--orange);
    box-shadow:
        -7px 7px 0 -0.5px var(--orange),
        -13px -6px 0 -0.5px var(--orange);
    opacity: 0.9;
}

.logo-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    line-height: 1.05;
}

.logo-name > span {
    color: var(--orange-dark);
    margin-left: 5px;
}

.logo-name strong {
    display: block;
    width: 100%;
    color: var(--green-dark);
    font-size: 13px;
    letter-spacing: 3px;
    text-align: center;
    margin-top: 4px;
}

@keyframes cartDrive {
    0%, 100% {
        transform: translateX(0) rotate(0);
    }
    45% {
        transform: translateX(4px) rotate(-3deg);
    }
    60% {
        transform: translateX(2px) rotate(1deg);
    }
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.main-navigation button {
    background: transparent;
    border: none;
    color: #43534a;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s ease;
    white-space: nowrap;
}

.main-navigation button:hover {
    background: var(--green-light);
    color: var(--green);
}

.cart-nav-button {
    background: var(--green);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 17px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    transition: 0.2s ease;
}

.cart-nav-button:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

/* =========================================================
   PAGE VISIBILITY
========================================================= */

.page-section {
    display: none;
    width: 100%;
    min-height: 60vh;
    animation: pageAppear 0.3s ease;
}

.page-section.active {
    display: block;
}

@keyframes pageAppear {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   HOMEPAGE HERO — MODERN SUPERMARKET BACKGROUND
========================================================= */

.hero-section {
    position: relative;
    min-height: 490px;
    padding: 85px 7%;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(3, 48, 34, 0.97) 0%,
            rgba(5, 73, 49, 0.88) 40%,
            rgba(5, 73, 49, 0.35) 72%,
            rgba(5, 73, 49, 0.12) 100%
        ),
        url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=2000&q=85")
        center 48% / cover no-repeat,
        linear-gradient(120deg, #063d2e, #11845d);
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    right: -100px;
    top: -120px;
    pointer-events: none;
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    right: 100px;
    bottom: -220px;
    pointer-events: none;
}

.hero-content {
    width: min(760px, 100%);
    position: relative;
    z-index: 2;
    color: white;
}

.hero-tagline {
    display: inline-block;
    color: #263328;
    background: var(--orange);
    border-radius: 30px;
    padding: 8px 17px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -2.5px;
    margin-bottom: 22px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.hero-content h1 span {
    color: var(--orange);
}

.hero-content > p:not(.hero-tagline) {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 32px;
}

/* =========================================================
   BUTTONS
========================================================= */

.primary-btn,
.secondary-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    padding: 13px 21px;
    min-height: 46px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.22s ease;
    text-align: center;
}

.primary-btn {
    color: white;
    background: var(--green);
    box-shadow: 0 5px 13px rgba(7, 91, 66, 0.15);
}

.primary-btn:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(7, 91, 66, 0.2);
}

.hero-content .primary-btn {
    background: var(--orange);
    color: #263328;
    padding: 15px 27px;
    font-size: 14px;
}

.hero-content .primary-btn:hover {
    background: #ffb24e;
}

.secondary-btn {
    background: #edf1ee;
    color: #43534a;
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    background: #e0e9e3;
    transform: translateY(-1px);
}

/* =========================================================
   HOMEPAGE SERVICE CARDS
========================================================= */

.home-services {
    width: min(1240px, 92%);
    margin: 0 auto;
    padding: 65px 0 45px;
    text-align: center;
}

.home-services > h2 {
    color: var(--green-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.home-services > p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 38px;
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.home-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 275px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(17, 132, 93, 0.25);
}

.home-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #dff7e7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 19px;
}

.home-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 9px;
}

.home-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 22px;
    flex: 1;
}

.home-card .primary-btn {
    width: 100%;
    max-width: 210px;
}

/* =========================================================
   HOMEPAGE PROMOTIONAL PANELS
========================================================= */

.home-promotion {
    width: min(1240px, 92%);
    margin: 22px auto 55px;
    border-radius: 23px;
    overflow: hidden;
    position: relative;
}

.premium-promotion {
    background:
        radial-gradient(circle at 90% 10%, rgba(243, 154, 50, 0.22), transparent 30%),
        linear-gradient(120deg, #fff0df, #f4f8f3 65%, #d9eee4);
    border: 1px solid #f0dfc9;
}

.promotion-content {
    padding: 35px 40px;
}

.promotion-label {
    display: inline-block;
    color: var(--orange-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.promotion-content h2,
.marketing-promotion-content h2 {
    color: var(--green-dark);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.25;
    margin-bottom: 9px;
}

.promotion-content > p:not(.promotion-label) {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.premium-benefits {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 25px;
    margin: 20px 0;
}

.premium-benefits li {
    color: #34483c;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    padding-left: 27px;
}

.premium-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 19px;
    height: 19px;
    line-height: 19px;
    text-align: center;
    color: white;
    background: #11845d;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.promotion-price {
    color: var(--green-dark) !important;
    font-size: 25px !important;
    font-weight: 800;
    margin: 17px 0 !important;
}

.promotion-price span {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.promotion-content .primary-btn {
    background: var(--orange);
    color: #263328;
}

.promotion-content .primary-btn:hover {
    background: #ffb24e;
}

/* Marketing promotion */

.marketing-promotion {
    background:
        linear-gradient(100deg, rgba(3, 52, 37, 0.96), rgba(7, 91, 66, 0.91)),
        linear-gradient(120deg, #063d2e, #11845d);
    color: white;
    padding: 0;
}

.marketing-promotion-content {
    padding: 38px 42px;
    max-width: 850px;
}

.marketing-promotion-content .promotion-label {
    color: #ffd08e;
}

.marketing-promotion-content h2 {
    color: white;
}

.marketing-promotion-content > p:not(.promotion-label) {
    color: rgba(255, 255, 255, 0.87);
    max-width: 700px;
    margin: 12px 0;
    font-size: 14px;
}

.marketing-promotion-content h3 {
    color: white;
    font-size: 20px;
    margin: 18px 0;
}

.marketing-promotion-content h3 strong {
    color: #ffc04f;
    font-size: 27px;
}

.marketing-call-button {
    background: var(--orange) !important;
    color: #182a20 !important;
    padding: 14px 23px;
}

.marketing-call-button:hover {
    background: #ffb94f !important;
}

/* =========================================================
   SECTION HEADINGS AND BACK BUTTON
========================================================= */

.section-heading {
    width: min(1200px, 92%);
    margin: 0 auto 30px;
    padding: 48px 0 12px;
    text-align: center;
    position: relative;
}

.section-heading h1 {
    color: var(--green-dark);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 4vw, 39px);
    font-weight: 800;
    margin-bottom: 8px;
}

.section-heading p {
    color: var(--muted);
    font-size: 15px;
}

.back-button {
    position: absolute;
    left: 0;
    top: 48px;
    border: 1px solid var(--border);
    background: white;
    color: var(--green);
    border-radius: 9px;
    padding: 9px 15px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s ease;
}

.back-button:hover {
    background: var(--green-light);
    border-color: var(--green);
}

/* =========================================================
   MARKETPLACE SEARCH
========================================================= */

.marketplace-search {
    width: min(850px, 90%);
    margin: 20px auto 35px;
}

.marketplace-search input,
#secondhand-search {
    width: 100%;
    display: block;
    margin: 20px auto 35px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.035);
}

#secondhand-search {
    width: min(850px, 90%);
}

.marketplace-search input:focus,
#secondhand-search:focus {
    border-color: var(--green-bright);
    outline: 3px solid rgba(17, 132, 93, 0.1);
}

#buyer > h3 {
    width: min(1200px, 92%);
    margin: 0 auto 15px;
    color: var(--green-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
}

/* =========================================================
   CATEGORY BUTTONS
========================================================= */

.category-container,
.subcategory-container {
    width: min(1200px, 92%);
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.category-container button,
.subcategory-container button {
    border: 1px solid #dce8df;
    background: white;
    color: #40564a;
    border-radius: 30px;
    padding: 11px 19px;
    min-height: 42px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.025);
}

.category-container button:hover,
.subcategory-container button:hover {
    color: white;
    background: var(--green);
    border-color: var(--green);
    transform: translateY(-2px);
}

.category-container button.active,
.category-container button.selected,
.subcategory-container button.active,
.subcategory-container button.selected {
    color: white;
    background: var(--green);
    border-color: var(--green);
}

/* =========================================================
   PRODUCT GRIDS AND CARDS
========================================================= */

.product-grid {
    width: min(1200px, 92%);
    margin: 25px auto 55px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.product-card,
.worker-card,
.listing-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover,
.worker-card:hover,
.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card img,
.worker-card img,
.listing-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #edf2ee;
}

.product-card-content,
.worker-card-content,
.listing-card-content {
    padding: 18px;
}

.product-card h3,
.worker-card h3,
.listing-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 7px;
}

.product-card p,
.worker-card p,
.listing-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.product-card .price,
.product-price,
.listing-price {
    color: var(--green);
    font-size: 19px;
    font-weight: 800;
    margin: 10px 0;
}

.product-card button,
.worker-card button,
.listing-card button {
    margin-top: 10px;
}

.empty-message,
#worker-directory-status {
    width: 100%;
    text-align: center;
    color: var(--muted);
    padding: 35px 15px;
    background: white;
    border: 1px dashed #ccd9cf;
    border-radius: 12px;
    grid-column: 1 / -1;
}

/* =========================================================
   SHOPPING CART
========================================================= */

.shopping-cart-section {
    width: min(1050px, 92%);
    margin: 55px auto 80px;
    padding: 35px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.shopping-cart-section > h2 {
    color: var(--green-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 25px;
    margin-bottom: 20px;
}

.shopping-cart-section > h3 {
    color: var(--green);
    margin: 20px 0;
    font-size: 19px;
}

#cart-items {
    padding: 15px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 9px;
}

.checkout-form {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.checkout-form h3 {
    color: var(--green-dark);
    margin-bottom: 15px;
}

.form-note {
    color: var(--muted);
    font-size: 12px;
    margin-top: 15px;
}

/* =========================================================
   FORMS AND INPUTS
========================================================= */

form {
    width: 100%;
}

label {
    display: block;
    color: #34483c;
    font-size: 13px;
    font-weight: 700;
    margin: 17px 0 7px;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    color: var(--text);
    background: white;
    border: 1px solid #dce5de;
    border-radius: 9px;
    font-size: 13px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #a0aaa3;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green-bright);
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 132, 93, 0.09);
}

input[type="file"] {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px dashed #cbd9ce;
    border-radius: 9px;
    background: #f8faf8;
    color: var(--muted);
    font-size: 12px;
}

form .primary-btn,
form .secondary-btn {
    margin-top: 22px;
    margin-right: 8px;
}

form p[hidden] {
    display: none !important;
}

.form-status {
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
}

.form-status.info {
    color: #17456f;
    background: #eaf3ff;
    border-color: #b8d5fa;
}

.form-status.success {
    color: var(--green-dark);
    background: var(--green-light);
    border-color: var(--green-bright);
}

.form-status.error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.form-status.warning {
    color: #9a3412;
    background: #fff7ed;
    border-color: #fed7aa;
}

/* =========================================================
   BUSINESS DIRECTORY AND GENERAL PANELS
========================================================= */

#business-directory,
#business-dashboard,
#secondhand,
#careers {
    padding-bottom: 75px;
}

.business-registration,
.dashboard-panel,
.listing-registration,
.worker-registration-section,
.worker-login-section,
.worker-directory-section {
    width: min(850px, 92%);
    margin: 30px auto;
    padding: 32px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: var(--shadow);
}

.business-registration > h2,
.dashboard-panel > h2,
.listing-registration > h2,
.worker-registration-section > h2,
.worker-login-section > h2,
.worker-directory-section > h2 {
    color: var(--green-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 23px;
    margin-bottom: 8px;
}

.business-registration > p,
.listing-registration > p,
.worker-registration-section > p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 22px;
}

/* =========================================================
   SUBSCRIPTION PLANS AND PREMIUM BENEFITS
========================================================= */

.subscription-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 25px 0 30px;
    align-items: stretch;
}

.plan-card {
    background: #f8fbf8;
    border: 1px solid #dce9df;
    border-radius: 14px;
    padding: 25px 18px;
    text-align: center;
    transition: 0.2s ease;
    position: relative;
}

.plan-card:hover {
    border-color: var(--green);
    transform: translateY(-3px);
}

.plan-card h3 {
    color: var(--green-dark);
    font-size: 17px;
    margin-bottom: 8px;
}

.plan-card h2 {
    color: var(--green);
    font-size: 29px;
    font-weight: 800;
    margin-bottom: 5px;
}

.plan-card p {
    color: var(--muted);
    font-size: 13px;
}

.premium-plan-card {
    background: linear-gradient(145deg, #fff8e9, #f4fbf5);
    border: 2px solid var(--orange);
    padding-top: 36px;
}

.premium-plan-card h3 {
    color: var(--green-dark);
}

.premium-plan-card h2 {
    color: var(--orange-dark);
}

.premium-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: #273329;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 5px 18px;
    border-radius: 0 0 8px 8px;
}

.premium-plan-card ul {
    list-style: none;
    text-align: left;
    margin: 17px 0 0;
}

.premium-plan-card li {
    color: #43534a;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 0 6px 22px;
    position: relative;
}

.premium-plan-card li::before {
    content: "✓";
    color: var(--green-bright);
    font-weight: 900;
    position: absolute;
    left: 0;
}

/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-panel {
    max-width: 950px;
}

.dashboard-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.dashboard-heading h2 {
    color: var(--green-dark);
    font-family: 'Poppins', sans-serif;
}

.dashboard-heading p {
    color: var(--muted);
    font-size: 13px;
}

.subscription-information {
    margin: 25px 0;
    padding: 22px;
    border-radius: 12px;
    background: var(--green-light);
    border: 1px solid #d3e8da;
}

.subscription-information h3 {
    color: var(--green-dark);
    margin-bottom: 12px;
}

.subscription-information p {
    font-size: 13px;
    margin: 7px 0;
}

.dashboard-panel hr,
#careers hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 35px 0;
}

.dashboard-panel > h2 {
    margin-top: 30px;
}

/* =========================================================
   SECOND-HAND MARKETPLACE
========================================================= */

#secondhand > .listing-registration {
    margin-top: 55px;
}

#listing-fee-display {
    margin-top: 12px;
    padding: 12px 15px;
    color: var(--green-dark);
    background: var(--green-light);
    border: 1px solid #d3e8da;
    border-radius: 9px;
    font-weight: 700;
    font-size: 13px;
}

/* =========================================================
   JOBS & SERVICES — MARKETING APP BANNER
========================================================= */

.marketing-app-banner {
    width: min(1150px, 92%);
    margin: 25px auto 45px;
    padding: 35px 40px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 85% 25%, rgba(243, 154, 50, 0.2), transparent 28%),
        linear-gradient(115deg, #063d2e, #08734f);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(6, 61, 46, 0.15);
}

.marketing-app-banner > div:first-child {
    max-width: 780px;
}

.marketing-app-tag {
    display: inline-block;
    color: #ffd18e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.marketing-app-banner h2 {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.25;
    margin-bottom: 10px;
}

.marketing-app-banner p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    margin-bottom: 13px;
}

.marketing-app-banner h3 {
    color: white;
    font-size: 19px;
    margin: 15px 0 20px;
}

.marketing-app-banner h3 strong {
    color: #ffc04f;
    font-size: 25px;
}

.marketing-app-banner .primary-btn {
    background: var(--orange);
    color: #1d2a20;
}

.marketing-app-banner .primary-btn:hover {
    background: #ffb94f;
}

.marketing-app-icon {
    font-size: 100px;
    min-width: 125px;
    text-align: center;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
    animation: phoneFloat 3s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-9px) rotate(4deg);
    }
}

/* =========================================================
   JOBS & CAREERS — VACANCY SEARCH AND EMPLOYER DASHBOARD
========================================================= */

#jobs-careers {
    padding-bottom: 80px;
}

.jobs-search-section,
.employer-section {
    width: min(1150px, 92%);
    margin: 30px auto 45px;
}

.jobs-search-section > h2,
.employer-section > h2 {
    color: var(--green-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 25px;
    margin-bottom: 8px;
}

.jobs-search-section > p,
.employer-section > p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 22px;
}

/* Job search panel */

.jobs-search-panel {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 22px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin: 25px 0;
}

.jobs-search-panel input,
.jobs-search-panel select {
    min-width: 0;
}

.jobs-search-panel button {
    white-space: nowrap;
}

/* Job vacancy cards */

.job-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 23px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.job-card h3 {
    color: var(--green-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    margin-bottom: 8px;
}

.job-card p {
    color: var(--muted);
    font-size: 13px;
    margin: 5px 0;
    line-height: 1.7;
}

.job-card .job-company {
    color: var(--green);
    font-weight: 700;
}

.job-card .job-salary {
    color: var(--green-dark);
    font-weight: 800;
    font-size: 16px;
    margin: 12px 0;
}

.job-card .job-type,
.job-card .job-category {
    display: inline-block;
    background: var(--green-light);
    color: var(--green);
    border-radius: 20px;
    padding: 6px 11px;
    font-size: 11px;
    font-weight: 700;
    margin: 5px 5px 5px 0;
    width: fit-content;
}

.job-card button {
    margin-top: auto;
    width: 100%;
}

/* Job details and application */

.job-details-panel,
.job-application-panel {
    width: min(850px, 92%);
    margin: 25px auto;
    padding: 30px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.job-details-panel h2,
.job-application-panel h2 {
    color: var(--green-dark);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 15px;
}

.job-details-panel p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    margin: 10px 0;
}

/* Employer registration and login */

.employer-section > .dashboard-panel {
    max-width: 850px;
    margin: 25px auto;
}

.employer-section .dashboard-panel h3 {
    color: var(--green-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    margin-bottom: 12px;
}

.employer-section .dashboard-panel > p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 15px;
}

/* Employer dashboard */

#employer-dashboard {
    max-width: 1150px;
    margin: 35px auto;
    padding: 32px;
}

#employer-dashboard .dashboard-heading {
    margin-bottom: 25px;
}

#employer-dashboard h2 {
    color: var(--green-dark);
    font-family: 'Poppins', sans-serif;
}

.employer-job-form-section,
.employer-listings-section,
.employer-applications-section {
    margin: 30px 0;
}

.employer-job-form-section > h2,
.employer-listings-section > h2,
.employer-applications-section > h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.employer-job-form-section > p,
.employer-listings-section > p,
.employer-applications-section > p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 18px;
}

/* Employer's own vacancy cards */

.employer-job-card {
    background: #f8fbf8;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.employer-job-card h3 {
    color: var(--green-dark);
    font-size: 17px;
    margin-bottom: 8px;
}

.employer-job-card p {
    color: var(--muted);
    font-size: 13px;
    margin: 6px 0;
}

.employer-job-card .job-management-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.job-management-actions button {
    margin: 0;
}

/* Employer application records */

.employer-application-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.employer-application-card h3 {
    color: var(--green-dark);
    font-size: 16px;
    margin-bottom: 8px;
}

.employer-application-card p {
    color: var(--muted);
    font-size: 13px;
    margin: 6px 0;
}

.employer-application-card a {
    color: var(--green);
    font-weight: 700;
    text-decoration: underline;
}

.employer-application-card button {
    margin-top: 12px;
}

/* Job status labels */

.job-status {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 20px;
    background: var(--green-light);
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    margin: 7px 0;
}

.job-status.closed {
    background: #fff0e8;
    color: #b65a20;
}

/* Jobs status messages */

#jobs-search-status,
#employer-registration-status,
#employer-login-status,
#employer-job-status {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 12px;
}

#jobs-search-status:empty {
    display: none;
}

/* =========================================================
   JOBS & CAREERS — MOBILE RESPONSIVENESS
========================================================= */

@media (max-width: 900px) {
    .jobs-search-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jobs-search-panel input:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .jobs-search-section,
    .employer-section {
        width: 94%;
    }

    .jobs-search-section > h2,
    .employer-section > h2 {
        font-size: 21px;
    }

    .jobs-search-panel {
        grid-template-columns: 1fr;
        padding: 17px;
        gap: 10px;
    }

    .jobs-search-panel input:first-child {
        grid-column: auto;
    }

    .jobs-search-panel button {
        width: 100%;
    }

    .job-card {
        padding: 17px;
    }

    .job-card h3 {
        font-size: 16px;
    }

    .job-details-panel,
    .job-application-panel {
        width: 94%;
        padding: 22px 17px;
    }

    #employer-dashboard {
        width: 94%;
        padding: 22px 17px;
    }

    .employer-job-card,
    .employer-application-card {
        padding: 16px;
    }

    .employer-job-card .job-management-actions {
        flex-direction: column;
    }

    .job-management-actions button {
        width: 100%;
    }
}
/* =========================================================
   WORKER SEARCH AND PROFILES
========================================================= */

.worker-search-panel {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 12px;
    margin: 22px 0;
}

.worker-search-panel button {
    width: 100%;
}

.worker-directory-section {
    max-width: 1150px;
}

.worker-directory-section .product-grid {
    width: 100%;
}

.worker-registration-section,
.worker-login-section {
    max-width: 850px;
}

#worker-current-photos,
#business-current-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
}

#worker-current-photos img,
#business-current-photos img {
    width: 105px;
    height: 105px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #062f24;
    color: white;
    padding: 48px 5% 25px;
    text-align: center;
}

.footer-content {
    width: min(900px, 100%);
    margin: auto;
}

.footer-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    margin: 7px 0;
}

.footer-content p:last-child {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 12px;
}

/* =========================================================
   STATUS MESSAGES
========================================================= */

#business-registration-status,
#business-login-status,
#business-profile-status,
#business-renewal-status,
#business-product-status,
#worker-registration-status,
#worker-login-status,
#worker-profile-status,
#worker-renewal-status {
    display: block;
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
}

/* =========================================================
   TABLET RESPONSIVENESS
========================================================= */

@media (max-width: 1050px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px 0;
        gap: 10px;
    }

    .site-header,
    .header-container {
        min-height: auto;
    }

    .main-navigation {
        order: 3;
        width: 100%;
    }

    .home-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-section {
        background-position: center;
    }
}

/* =========================================================
   MOBILE RESPONSIVENESS
========================================================= */

@media (max-width: 650px) {
    body {
        font-size: 14px;
    }

    .header-container {
        width: 94%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 12px 0;
    }

    .logo {
        font-size: 18px;
        gap: 6px;
    }

    .logo-cart {
        font-size: 31px;
    }

    .logo-name strong {
        font-size: 11px;
    }

    .cart-nav-button {
        padding: 10px 12px;
        font-size: 12px;
    }

    .main-navigation {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 5px 0 8px;
        scrollbar-width: thin;
    }

    .main-navigation button {
        flex-shrink: 0;
        font-size: 12px;
        padding: 9px 11px;
    }

    .hero-section {
        min-height: 440px;
        padding: 60px 7%;
        background-position: 60% center;
        background-image:
            linear-gradient(
                90deg,
                rgba(3, 48, 34, 0.94),
                rgba(5, 73, 49, 0.75)
            ),
            url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1200&q=80");
    }

    .hero-content h1 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .hero-content > p:not(.hero-tagline) {
        font-size: 14px;
    }

    .hero-tagline {
        font-size: 10px;
        letter-spacing: 1.2px;
    }

    .home-services {
        padding: 50px 0 30px;
    }

    .home-services > h2 {
        font-size: 26px;
    }

    .home-card-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .home-card {
        min-height: 245px;
        padding: 27px 22px;
    }

    .home-promotion {
        width: 94%;
        margin: 18px auto 35px;
        border-radius: 16px;
    }

    .promotion-content,
    .marketing-promotion-content {
        padding: 26px 20px;
    }

    .promotion-content h2,
    .marketing-promotion-content h2 {
        font-size: 24px;
    }

    .premium-benefits {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .marketing-promotion-content h3 {
        font-size: 17px;
    }

    .marketing-promotion-content h3 strong {
        font-size: 23px;
    }

    .section-heading {
        padding-top: 75px;
        margin-bottom: 25px;
    }

    .section-heading h1 {
        font-size: 27px;
    }

    .back-button {
        top: 22px;
        left: 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 94%;
    }

    .product-card img,
    .worker-card img,
    .listing-card img {
        height: 145px;
    }

    .product-card-content,
    .worker-card-content,
    .listing-card-content {
        padding: 12px;
    }

    .product-card h3,
    .worker-card h3,
    .listing-card h3 {
        font-size: 13px;
    }

    .product-card p,
    .worker-card p,
    .listing-card p {
        font-size: 11px;
    }

    .category-container,
    .subcategory-container {
        justify-content: flex-start;
        gap: 8px;
    }

    .category-container button,
    .subcategory-container button {
        padding: 9px 13px;
        font-size: 11px;
    }

    .shopping-cart-section,
    .business-registration,
    .dashboard-panel,
    .listing-registration,
    .worker-registration-section,
    .worker-login-section,
    .worker-directory-section {
        padding: 23px 17px;
        width: 94%;
    }

    .subscription-plans {
        grid-template-columns: 1fr;
    }

    .worker-search-panel {
        grid-template-columns: 1fr;
    }

    .marketing-app-banner {
        width: 94%;
        padding: 25px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .marketing-app-icon {
        align-self: center;
        font-size: 75px;
    }

    .dashboard-heading {
        align-items: flex-start;
    }

    .primary-btn,
    .secondary-btn {
        padding: 12px 15px;
        font-size: 12px;
    }

    .site-footer {
        padding: 38px 5% 22px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .logo {
        font-size: 16px;
    }

    .logo-cart {
        font-size: 27px;
    }

    .cart-nav-button {
        font-size: 11px;
        padding: 9px;
    }

    .marketing-app-banner h2 {
        font-size: 23px;
    }
}
/* =========================================================
   SOKOCONNECT — HOMEPAGE DANCING CHARACTER
========================================================= */

.soko-dancing-boy {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto;
    width: 100%;
    pointer-events: none;
}

.soko-dancing-boy img {
    width: 130px;
    max-width: 35vw;
    height: auto;
    object-fit: contain;
    display: block;
}
/* =========================================================
   SOKOCONNECT - SECOND-HAND FIVE-PHOTO GALLERY
========================================================= */

.secondhand-gallery-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.secondhand-gallery-trigger img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.secondhand-gallery-trigger:hover img {
    transform: scale(1.04);
}

.secondhand-photo-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 7px 11px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.secondhand-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.92);
}

.secondhand-gallery-dialog {
    position: relative;
    width: min(900px, 100%);
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.secondhand-gallery-image {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.secondhand-gallery-close {
    position: absolute;
    top: -42px;
    right: 0;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 25px;
    cursor: pointer;
}

.secondhand-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: 27px;
    cursor: pointer;
}

.secondhand-gallery-prev {
    left: 10px;
}

.secondhand-gallery-next {
    right: 10px;
}

.secondhand-gallery-counter,
.secondhand-gallery-caption {
    color: #fff;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 600px) {
    .secondhand-gallery-modal {
        padding: 12px;
    }

    .secondhand-gallery-image {
        max-height: 70vh;
    }

    .secondhand-gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .secondhand-gallery-prev {
        left: 5px;
    }

    .secondhand-gallery-next {
        right: 5px;
    }
}


/* =====================================================
   SOKOCONNECT - PHOTO GALLERY COMPATIBILITY
   ===================================================== */

.secondhand-gallery-modal[hidden] {
    display: none !important;
}

.secondhand-gallery-window {
    position: relative;
    width: min(900px, 100%);
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.secondhand-gallery-main-image {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.secondhand-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: 27px;
    cursor: pointer;
    z-index: 2;
}

.secondhand-gallery-arrow[hidden] {
    display: none !important;
}

.secondhand-gallery-arrow:hover {
    background: #fff;
}

.secondhand-gallery-arrow:focus-visible,
.secondhand-gallery-close:focus-visible {
    outline: 3px solid #4da3ff;
    outline-offset: 3px;
}

.secondhand-gallery-counter {
    color: #fff;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 600px) {
    .secondhand-gallery-window {
        width: 100%;
        max-height: 90vh;
    }

    .secondhand-gallery-main-image {
        max-width: 100%;
        max-height: 70vh;
    }

    .secondhand-gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .secondhand-gallery-prev {
        left: 5px;
    }

    .secondhand-gallery-next {
        right: 5px;
    }
}
