/* ======================================
   GLOBAL RESET & BASE
====================================== */
body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: #f8fafc;
    color: #111827;
}

a {
    text-decoration: none;
}

/* ======================================
   HEADER / NAVBAR
====================================== */
.header {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar .nav-link {
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: #16a34a;
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #16a34a;
    border-radius: 2px;
}

/* FIX Bootstrap toggler */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,0.7)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ======================================
   BUTTONS
====================================== */
.btn {
    transition: all 0.25s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border: none;
    border-radius: 8px;
    font-weight: 600;
}

/* ======================================
   HERO SECTION
====================================== */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa, #eef7f2);
    padding: 80px 0;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
}

.hero-title span {
    color: #16a34a;
}

.hero-image {
    max-height: 420px;
}

/* SEARCH */
.search-bar {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.search-bar input {
    border: none;
    padding: 14px;
}

.search-bar button {
    background: #16a34a;
    border: none;
}

/* ======================================
   FEATURES
====================================== */
.feature-strip {
    background: #e9f5ee;
    border-radius: 12px;
    padding: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    transition: 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.feature-box .icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    margin: 0 auto 10px;
}

/* ======================================
   STATS
====================================== */
.stat-card,
.stats-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.stats-number {
    font-size: 28px;
    font-weight: 700;
}

/* ======================================
   AUTH (LOGIN / REGISTER)
====================================== */
.auth-wrapper {
    background: #f8fafc;
}

.auth-left {
    background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.auth-left-content {
    max-width: 520px;
}

/* IMAGE GRID */
.auth-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-image-grid img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* CARD */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* FORM */
.form-control {
    border-radius: 8px;
    padding: 10px 12px;
}

/* ======================================
   ROLE SELECTOR (BUYER / SUPPLIER)
====================================== */
.role-selector {
    display: flex;
    gap: 12px;
}

.role-card {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
    cursor: pointer;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.role-card strong {
    display: block;
    font-size: 15px;
}

.role-card small {
    font-size: 12px;
    color: #6b7280;
}

.role-card:hover {
    border-color: #16a34a;
}

/* ACTIVE */
input[type="radio"]:checked + .role-card {
    border-color: #16a34a;
    background: #ecfdf5;
    color: #16a34a;
    font-weight: 600;
}

/* ======================================
   FOOTER
====================================== */
.footer a:hover {
    color: #198754 !important;
}

.footer .badge {
    transition: all 0.2s ease;
}

.footer .badge:hover {
    background: #198754;
    color: #fff;
}

/* =========================================================
   PRICING PAGE
========================================================= */

.pricing-page{

    background:#f8fafc;
}


/* CARD */

.pricing-card{

    background:#ffffff;

    border-radius:28px;

    padding:40px 32px;

    border:1px solid #e5e7eb;

    box-shadow:
        0 10px 30px rgba(15,23,42,.05);

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    height:100%;

    transition:all .3s ease;
}


.pricing-card:hover{

    transform:translateY(-8px);

    box-shadow:
        0 20px 45px rgba(15,23,42,.08);
}


/* FEATURED */

.featured-plan{

    border:2px solid #22c55e;

    position:relative;
}


/* TOP SECTION */

.pricing-card-top{

    flex:1;
}


/* TITLE */

.pricing-title{

    font-size:36px;

    font-weight:800;

    margin-bottom:20px;

    color:#0f172a;
}


/* PRICE */

.pricing-price{

    font-size:46px;

    font-weight:800;

    margin-bottom:20px;

    color:#111827;
}

.pricing-price small{

    font-size:18px;

    color:#6b7280;

    font-weight:500;
}


/* DESCRIPTION */

.pricing-description{

    color:#6b7280;

    margin-bottom:28px;

    min-height:52px;
}


/* FEATURES */

.pricing-features{

    list-style:none;

    padding:0;

    margin:0;
}

.pricing-features li{

    padding:12px 0;

    border-bottom:1px dashed #e5e7eb;

    color:#374151;

    font-weight:500;
}


/* BUTTON */

.pricing-btn{

    width:100%;

    border-radius:999px;

    padding:14px 20px;

    font-weight:700;

    margin-top:32px;
}


/* BADGE */

.popular-badge{

    display:inline-block;

    background:#dcfce7;

    color:#166534;

    font-size:12px;

    font-weight:700;

    padding:8px 14px;

    border-radius:999px;

    margin-bottom:20px;

    letter-spacing:.5px;
}

/* ======================================
   UTILITIES
====================================== */
.text-purple {
    color: #6f42c1;
}

/* ======================================
   RESPONSIVE
====================================== */
@media (max-width: 992px) {
    .auth-left {
        display: none;
    }

    .hero-title {
        font-size: 32px;
    }
}

/* =====================================================
   CATEGORY SECTION
===================================================== */

.category-card{
    position: relative;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 24px;
    padding: 40px 24px;
    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;

    box-shadow:
        0 4px 20px rgba(15, 23, 42, 0.04);

    height: 100%;
}

/* HOVER EFFECT */
.category-card:hover{
    transform: translateY(-8px);

    border-color: rgba(34,197,94,0.35);

    box-shadow:
        0 20px 40px rgba(34,197,94,0.12);

    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f8fffa 100%
    );
}

/* ICON */
.category-icon{
    width: 80px;
    height: 80px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 42px;
    line-height: 1;

    border-radius: 50%;

    background: rgba(34,197,94,0.08);

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

/* ICON ANIMATION */
.category-card:hover .category-icon{
    transform: scale(1.08);

    background: rgba(34,197,94,0.15);
}

/* TITLE */
.category-card h5{
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

/* SUBTEXT */
.category-card small{
    color: #64748b;
    font-size: 0.95rem;
}

/* OPTIONAL CATEGORY COUNT */


.category-count{
    display: inline-block;
    margin-top: 12px;

    padding: 6px 14px;

    border-radius: 999px;

    background: rgba(34,197,94,0.08);

    color: #16a34a;

    font-size: 13px;
    font-weight: 600;
}

/* MOBILE */
@media(max-width: 991px){

    .category-card{
        padding: 30px 20px;
    }

    .category-icon{
        width: 70px;
        height: 70px;
        font-size: 36px;
    }

    .category-card h5{
        font-size: 1.05rem;
    }

}