/* ── GLOBAL ALERTS ── */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.alert-error    { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }
.alert-global   { max-width: 1100px; margin: 0 auto; border-radius: 0; }

/* ── AUTH PAGES ── */
.auth-wrap {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card   { width: 100%; max-width: 420px; background: var(--white); border-radius: 14px; border: 1px solid var(--border); padding: 36px 40px; }
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-logo   { font-size: 22px; font-weight: 700; color: var(--green); margin-bottom: 12px; }
.auth-title  { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.auth-sub    { font-size: 13px; color: var(--text-2); }
.auth-sub a  { color: var(--green); font-weight: 600; }
.auth-sub a:hover { text-decoration: underline; }
.auth-form   { display: flex; flex-direction: column; gap: 18px; }
.auth-terms  { font-size: 11px; color: var(--text-3); text-align: center; line-height: 1.5; }
.auth-terms a { color: var(--green); }

/* ── SHARED FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: border-color .2s;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); }
.form-group input.is-invalid,
.form-group select.is-invalid { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-error         { font-size: 12px; color: var(--red); }
.form-hint          { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.form-hint-inline   { font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 4px; }
.required           { color: var(--red); }
.form-row           { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-half      { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check         { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.form-check input[type="checkbox"] { accent-color: var(--green); width: 14px; height: 14px; }
.form-check-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
}
.form-check-group input[type="checkbox"] { accent-color: var(--green); width: 15px; height: 15px; }

/* Password toggle */
.input-pw-wrap { position: relative; }
.input-pw-wrap input { padding-right: 44px; }
.pw-toggle {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-3);
    padding: 2px;
}

/* Submit button */
.btn-submit {
    padding: 12px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.btn-submit:hover { background: #235f2d; }
.label-link       { font-size: 12px; font-weight: 400; color: var(--green); text-decoration: none; }
.label-link:hover { text-decoration: underline; }

/* Form actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Form card */
.form-card { background: var(--white); border-radius: 12px; border: 1px solid var(--border); padding: 28px 32px; }
.form-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* Page header */
.page-header { margin-bottom: 20px; }
.page-title  { font-size: 22px; font-weight: 700; margin-top: 6px; }
.back-link   { font-size: 13px; color: var(--green); text-decoration: none; font-weight: 500; display: inline-block; margin-bottom: 8px; }
.back-link:hover { text-decoration: underline; }

/* Buttons */
.btn-outline-green {
    padding: 8px 16px;
    background: none;
    border: 1.5px solid var(--green);
    border-radius: 8px;
    color: var(--green);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all .2s;
}
.btn-outline-green:hover { background: var(--green); color: white; }

.btn-outline-gray {
    padding: 10px 20px;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--text-2);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all .2s;
}
.btn-outline-gray:hover { border-color: var(--text-2); }

.btn-outline-red {
    padding: 8px 16px;
    background: none;
    border: 1.5px solid #FFCDD2;
    border-radius: 8px;
    color: var(--red);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.btn-outline-red:hover { background: #FFEBEE; }

.btn-sm-outline {
    padding: 5px 10px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-2);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.btn-sm-outline:hover { border-color: var(--green); color: var(--green); }

.btn-sm-red {
    padding: 5px 10px;
    background: none;
    border: 1px solid #FFCDD2;
    border-radius: 6px;
    color: var(--red);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.btn-sm-red:hover { background: #FFEBEE; }

/* ── PROFILE PAGE ── */
.profile-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}
.profile-sidebar {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 28px 20px;
    text-align: center;
    position: sticky;
    top: 80px;
}
.profile-avatar-wrap { margin-bottom: 16px; }
.profile-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--green-light);
}
.profile-avatar-placeholder {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.profile-name    { font-size: 16px; font-weight: 700; color: var(--text); }
.profile-email   { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.profile-city    { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.profile-bio     { font-size: 12px; color: var(--text-2); margin-top: 10px; line-height: 1.5; }
.profile-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.profile-actions form { margin: 0; }
.profile-actions form .btn-outline-red { width: 100%; text-align: center; }
.profile-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.profile-content-header h2 { font-size: 18px; font-weight: 700; }

/* Inactive product */
.prod-card-inactive { opacity: 0.6; }
.inactive-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .5px;
}
.prod-card-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

/* Avatar upload */
.avatar-upload-wrap { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.avatar-preview {
    width: 80px; height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    flex-shrink: 0;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder {
    width: 100%; height: 100%;
    background: var(--green);
    color: white;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-preview-current { margin-bottom: 10px; }
.img-preview-current img {
    max-height: 100px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 8px;
    display: block;
}

/* ── SEARCH / FILTER ── */
.search-header      { margin-bottom: 20px; }
.search-form-full   { display: block; margin-bottom: 10px; }
.search-result-info { font-size: 14px; color: var(--text-2); margin-top: 10px; }
.search-result-info strong { color: var(--text); }
.search-result-info em     { color: var(--green); font-style: normal; font-weight: 600; }

.filter-bar { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; }
.filter-bar-inner   { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-check       { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.filter-check input { accent-color: var(--green); }
.btn-clear-filter {
    padding: 6px 12px;
    background: none;
    border: 1px solid #FFCDD2;
    border-radius: 6px;
    color: var(--red);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
}
.btn-clear-filter:hover { background: #FFEBEE; }

/* ── HERO SLIDER ── */
@keyframes heroFade {
    0%    { opacity: 0; }
    2.5%  { opacity: 1; }
    22.5% { opacity: 1; }
    25%   { opacity: 0; }
    100%  { opacity: 0; }
}
@keyframes dotActive {
    0%    { background: rgba(255,255,255,0.4); width: 8px; }
    2.5%  { background: #fff; width: 22px; }
    22.5% { background: #fff; width: 22px; }
    25%   { background: rgba(255,255,255,0.4); width: 8px; }
    100%  { background: rgba(255,255,255,0.4); width: 8px; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-slider-wrap { position: relative; overflow: hidden; }
.hero-slider      { display: grid; }
.hero-slide       { grid-column: 1; grid-row: 1; color: #fff; opacity: 0; animation: heroFade 20s infinite both; }
.hero-slide-1     { animation-delay: 0s; }
.hero-slide-2     { animation-delay: 5s; }
.hero-slide-3     { animation-delay: 10s; }
.hero-slide-4     { animation-delay: 15s; }

.hero-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}
.hero-dot   { display: inline-block; height: 8px; width: 8px; border-radius: 4px; background: rgba(255,255,255,0.4); transition: width .3s, background .3s; animation: dotActive 20s infinite both; }
.hero-dot-1 { animation-delay: 0s; }
.hero-dot-2 { animation-delay: 5s; }
.hero-dot-3 { animation-delay: 10s; }
.hero-dot-4 { animation-delay: 15s; }

.slide-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.slide-text                { flex: 1; }
.slide-tag                 { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.8); margin-bottom: .6rem; letter-spacing: .04em; }
.slide-title               { font-size: 1.9rem; font-weight: 700; line-height: 1.25; margin-bottom: .75rem; color: #fff; }
.slide-sub                 { font-size: .975rem; color: rgba(255,255,255,.82); margin-bottom: 1.5rem; max-width: 520px; line-height: 1.6; }
.slide-actions             { display: flex; gap: .75rem; flex-wrap: wrap; }
.slide-btn-primary         { background: #fff; color: #1a1a1a; padding: .65rem 1.4rem; border-radius: 8px; font-weight: 600; font-size: .92rem; text-decoration: none; transition: opacity .15s; }
.slide-btn-primary:hover   { opacity: .9; }
.slide-btn-outline         { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); padding: .65rem 1.4rem; border-radius: 8px; font-weight: 500; font-size: .92rem; text-decoration: none; transition: border-color .15s, background .15s; }
.slide-btn-outline:hover   { border-color: #fff; background: rgba(255,255,255,.1); }
.slide-illo                { font-size: 6rem; line-height: 1; flex-shrink: 0; }

/* ── KATEGORI ── */
.kategori-section  { background: #fff; padding: 1.5rem 1.5rem 1.25rem; border-bottom: 1px solid #e8f0e0; }
.kategori-inner    { max-width: 1200px; margin: 0 auto; }
.kategori-title    { font-size: 1.1rem; font-weight: 700; color: #2d5a1b; margin-bottom: 1rem; }
.kat-scroll-wrap   { overflow: hidden; position: relative; }
.kat-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d4e8c2;
    box-shadow: 0 2px 8px rgba(0,0,0,.13);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #4a7a28;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s, opacity .2s;
}
.kat-arrow:hover   { background: #eaf5d8; }
.kat-arrow.hidden  { opacity: 0; pointer-events: none; }
.kat-arrow-left    { left: -6px; }
.kat-arrow-right   { right: -6px; }
.kat-scroll {
    display: grid;
    grid-template-rows: repeat(2, 88px);
    grid-auto-flow: column;
    grid-auto-columns: 130px;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}
.kat-scroll::-webkit-scrollbar { display: none; }
.kat-scroll.is-dragging        { cursor: grabbing; }
.kat-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .6rem .4rem;
    border-radius: 12px;
    background: #f8fdf3;
    border: 1px solid #e0efd0;
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .1s;
    cursor: pointer;
    height: 88px;
    box-sizing: border-box;
}
.kat-item:hover { background: #eaf5d8; border-color: #5e8b37; transform: translateY(-2px); }
.kat-icon  { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.kat-label { font-size: .68rem; color: #3a6e1e; font-weight: 500; text-align: center; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; }

/* ── INFINITE SCROLL SPINNER ── */
.infinite-spinner { display: inline-block; width: 32px; height: 32px; border: 3px solid #d4e8c2; border-top-color: #4a7a28; border-radius: 50%; animation: spin .75s linear infinite; }

@media (max-width: 640px) {
    .slide-illo  { display: none; }
    .slide-title { font-size: 1.35rem; }
    .slide-inner { padding: 2rem 1rem 2.5rem; }
}

/* ── WA BUTTON ── */
.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .15s;
    width: 100%;
    justify-content: center;
}
.btn-wa:hover          { background: #1ebe5d; transform: translateY(-1px); color: white; }
.btn-wa svg            { flex-shrink: 0; }
.btn-wa-login          { opacity: 0.75; }
.btn-wa-login:hover    { opacity: 1; }
.wa-login-note         { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 6px; }
.wa-unavailable {
    padding: 13px 16px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-3);
    text-align: center;
}

/* Seller box */
.seller-box {
    background: var(--bg);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.seller-box-left          { display: flex; align-items: center; gap: 12px; }
.seller-avatar            { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.seller-avatar img        { width: 100%; height: 100%; object-fit: cover; }
.seller-avatar-initial {
    width: 100%; height: 100%;
    background: var(--green);
    color: white;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.seller-name           { font-size: 14px; font-weight: 600; color: var(--text); }
.seller-location       { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.seller-products-count { font-size: 11px; color: var(--green); margin-top: 2px; }
.seller-username       { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.detail-cta      { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.related-section { margin-top: 48px; }

/* ── ADMIN PAGES ── */
.back-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.stat-card           { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.stat-card.stat-green { border-left: 3px solid var(--green); }
.stat-card.stat-red   { border-left: 3px solid var(--red); }
.stat-card.stat-blue  { border-left: 3px solid #1976D2; }
.stat-num   { font-size: 28px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.admin-filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

.admin-table-wrap { background: var(--white); border-radius: 10px; border: 1px solid var(--border); overflow: hidden; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
    background: var(--bg);
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.admin-table td                  { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td    { border-bottom: none; }
.admin-table tr:hover td         { background: #fafafa; }
.row-inactive td                 { opacity: .6; }

/* User cell */
.table-user                { display: flex; align-items: center; gap: 10px; }
.table-avatar              { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.table-avatar img          { width: 100%; height: 100%; object-fit: cover; }
.table-avatar-initial {
    width: 100%; height: 100%;
    background: var(--green);
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.table-user-name             { font-weight: 600; color: var(--text); }
.table-user-email            { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.table-phone                 { font-size: 12px; color: var(--text-2); }
.table-city                  { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.table-prod-count            { font-size: 12px; color: var(--green); font-weight: 600; text-decoration: none; }
.table-prod-count:hover      { text-decoration: underline; }
.table-actions               { display: flex; gap: 4px; flex-wrap: wrap; }

/* Badges */
.role-badge   { display: inline-block; padding: 2px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.role-admin   { background: #E3F2FD; color: #1565C0; }
.role-user    { background: var(--green-light); color: var(--green); }
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.status-active   { background: var(--green-light); color: var(--green); }
.status-inactive { background: #FFEBEE; color: var(--red); }

.wa-mini-link       { font-size: 11px; color: #25D366; font-weight: 600; text-decoration: none; margin-top: 2px; display: inline-block; }
.wa-mini-link:hover { text-decoration: underline; }

/* ── POST TYPE BADGES ── */
.type-badge { display: inline-block; padding: 3px 9px; border-radius: 100px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; position: absolute; top: 8px; left: 8px; }
.type-jual      { background: #E8F5E9; color: #2E7D32; }
.type-beli      { background: #E3F2FD; color: #1565C0; }
.type-kerjasama { background: #FFF8E1; color: #E65100; }
.type-wishlist  { background: #FCE4EC; color: #880E4F; }

/* ── OFFICIAL / PREMIUM BADGES ── */
.official-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; background: #E3F2FD; color: #1565C0; margin-top: 4px; }
.premium-badge  { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; background: #FFF8E1; color: #E65100; margin-top: 4px; }

/* ── DETAIL PAGE ── */
.detail-img-section  { display: flex; flex-direction: column; gap: 10px; }
.detail-img-main img { width: 100%; border-radius: 12px; object-fit: cover; max-height: 420px; }
.detail-img-thumbs   { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-img-thumbs .thumb {
    width: 72px; height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .15s;
}
.detail-img-thumbs .thumb.active,
.detail-img-thumbs .thumb:hover { border-color: var(--green); }

.detail-price-section { margin: 14px 0; }
.detail-price-alt     { font-size: 18px; color: var(--text-2); font-weight: 600; }
.detail-stock-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-2);
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 14px;
}

/* ── PRODUCT CARD ADJUSTMENTS ── */
.prod-price-desc { font-size: 11px; color: var(--text-3); }
.prod-price-nego { font-size: 14px; color: var(--text-2); font-style: italic; }
.prod-stock      { font-size: 11px; color: var(--text-3); margin: 2px 0; }
.prod-seller {
    font-size: 11px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}
.prod-meta      { align-items: flex-start; }
.prod-location  { flex-shrink: 0; }
.prod-commodity { font-size: 11px; color: var(--green); background: var(--green-light); display: inline-block; padding: 1px 7px; border-radius: 100px; margin-top: 4px; }
.seller-mini-avatar { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; vertical-align: middle; }

/* ── RADIO GROUP ── */
.radio-group                    { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.radio-label                    { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.radio-label input[type=radio]  { accent-color: var(--green); }

/* ── POST FORM ── */
.field-row           { display: flex; gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.field-row:last-of-type { border-bottom: none; }
.field-col           { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tip-col             { width: 210px; flex-shrink: 0; padding-top: 4px; }
.info-title          { font-size: 13px; font-weight: 700; color: var(--text); }
.info-optional       { font-size: 11px; font-weight: 400; color: var(--text-3); margin-left: 4px; }
.text-tips {
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.65;
    background: var(--bg);
    border-radius: 8px;
    padding: 12px 14px;
    border-left: 3px solid var(--green);
}
.tip-example { color: var(--green); font-weight: 600; margin-top: 3px; }

/* Type radio buttons */
.type-btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.type-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    user-select: none;
}
.type-btn:hover          { border-color: var(--green); color: var(--green); }
.type-btn input[type="radio"] { display: none; }
.type-btn-active         { border-color: var(--green); background: var(--green-light); color: var(--green); }

/* Input with Rp prefix */
.input-prefix-wrap { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: border-color .2s; }
.input-prefix-wrap:focus-within { border-color: var(--green); }
.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--bg);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    border-right: 1px solid var(--border);
    white-space: nowrap;
}
.input-prefix-wrap .form-group input[type="number"],
.input-prefix-wrap input[type="number"] { border: none !important; border-radius: 0 !important; flex: 1; min-width: 0; box-shadow: none; outline: none; }
.input-prefix-wrap input:focus { outline: none; box-shadow: none; }

/* Photo upload grid */
.photo-upload-grid  { display: flex; gap: 12px; flex-wrap: wrap; }
.photo-slot         { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.photo-slot-label {
    width: 112px; height: 112px;
    border: 2px dashed var(--border);
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    transition: border-color .2s, background .2s;
}
.photo-slot-label:hover     { border-color: var(--green); background: var(--green-light); }
.photo-slot-img             { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slot-placeholder     { font-size: 26px; color: var(--text-3); line-height: 1; }
.photo-slot-name            { font-size: 11px; color: var(--text-2); font-weight: 500; text-align: center; }

/* ── GLOBAL FOOTER SERVICE BANNER ── */
.footer-service-banner-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 44px;
}
.footer-service-banner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 28px 30px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(214, 235, 135, .34), transparent 30%),
        linear-gradient(135deg, #f6fbe8 0%, #edf7da 50%, #f7f2dc 100%);
    border: 1px solid #e2ead0;
    box-shadow: 0 18px 44px rgba(62, 84, 42, .08);
}
.footer-service-banner-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    color: #44652f;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.footer-service-banner h2 {
    margin: 14px 0 10px;
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -.03em;
    color: #1f321d;
    max-width: 720px;
}
.footer-service-banner p {
    max-width: 760px;
    color: #63715f;
    line-height: 1.7;
}
.footer-service-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ── SERVICE LANDING: WEBSITE PERTANIAN ── */
.agri-service-page { padding-bottom: 56px; }
.service-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: center;
    padding: 36px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(201, 230, 171, .85), transparent 32%),
        linear-gradient(135deg, #f8fdf3 0%, #eef8df 48%, #f4f1df 100%);
    border: 1px solid #dfe8cf;
    margin-bottom: 34px;
}
.service-kicker,
.service-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #476b24;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(71,107,36,.12);
}
.service-hero h1 {
    margin: 16px 0 14px;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -.03em;
    color: #173018;
}
.service-lead {
    max-width: 640px;
    font-size: 17px;
    line-height: 1.7;
    color: #53654e;
}
.service-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.service-proof-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.service-proof-row span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.7);
    color: #40642d;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(64,100,45,.12);
}
.service-hero-visual { position: relative; min-height: 420px; }
.service-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(6px);
    opacity: .9;
}
.service-orb-a {
    width: 220px;
    height: 220px;
    background: rgba(140, 195, 77, .25);
    top: -12px;
    right: 16px;
}
.service-orb-b {
    width: 170px;
    height: 170px;
    background: rgba(245, 197, 73, .24);
    bottom: 14px;
    left: 10px;
}
.service-dashboard-card {
    position: absolute;
    inset: 28px 18px 18px 36px;
    border-radius: 28px;
    background: linear-gradient(180deg, #1e4d25 0%, #163d1b 100%);
    color: #fff;
    box-shadow: 0 26px 80px rgba(30, 77, 37, .25);
    padding: 18px;
}
.service-dashboard-top { display: flex; gap: 8px; margin-bottom: 16px; }
.service-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
}
.service-dashboard-body {
    height: calc(100% - 26px);
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 16px;
}
.service-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.service-dashboard-panel {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.06);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.service-dashboard-panel strong {
    font-size: 18px;
    line-height: 1.2;
}
.service-dashboard-panel span {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255,255,255,.72);
}
.panel-main {
    background:
        linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04)),
        radial-gradient(circle at top right, rgba(198, 232, 117, .35), transparent 30%);
}
.service-section { margin-top: 42px; }
.service-section-head { margin-bottom: 18px; }
.service-section-head h2 {
    margin: 14px 0 8px;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: #1d261d;
    max-width: 820px;
}
.service-section-head p {
    max-width: 760px;
    color: #6c7568;
    line-height: 1.7;
}
.service-card-grid {
    display: grid;
    gap: 16px;
}
.service-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.service-info-card,
.service-feature-note,
.package-card,
.showcase-card,
.service-cta-banner,
.service-faq-list details {
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e7ebdf;
    box-shadow: 0 14px 40px rgba(48, 61, 42, .06);
}
.service-info-card {
    padding: 22px;
    background: linear-gradient(180deg, #fff 0%, #fbfcf8 100%);
}
.service-info-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
    color: #1c3218;
}
.service-info-card p { color: #667063; line-height: 1.68; }
.service-feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
}
.service-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.service-feature-item {
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e7ebdf;
}
.service-feature-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2c7a37;
    color: #fff;
    font-weight: 700;
}
.service-feature-item p,
.service-feature-note p {
    color: #63705f;
    line-height: 1.65;
}
.service-feature-note {
    padding: 22px;
    background: linear-gradient(180deg, #f8fdf1 0%, #f4f5e6 100%);
}
.service-feature-note strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    color: #204026;
}
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.showcase-tabs { margin-top: 24px; }
.showcase-tab-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.showcase-tab-btn {
    border: none;
    border-radius: 999px;
    padding: 16px 26px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    color: #1f271f;
    background: #fff;
    box-shadow: 0 10px 24px rgba(46, 61, 39, .08);
    cursor: pointer;
    transition: transform .18s, background .18s, color .18s, box-shadow .18s;
}
.showcase-tab-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(46, 61, 39, .12);
}
.showcase-tab-btn.is-active {
    background: #d8ea58;
    color: #1e2e0d;
}
.showcase-pane[hidden] { display: none !important; }
.showcase-card {
    padding: 14px;
    overflow: hidden;
}
.showcase-frame {
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.46);
}
.showcase-image {
    width: 100%;
    aspect-ratio: 1 / 1.12;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(26, 39, 21, .12);
    background: #f6f6f1;
}
.showcase-copy { padding: 16px 6px 6px; }
.showcase-copy h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #1e261d;
}
.showcase-copy p {
    color: #667062;
    line-height: 1.6;
    margin-bottom: 10px;
}
.showcase-copy span {
    display: inline-block;
    font-size: 12px;
    color: #436436;
    background: #edf7e7;
    border-radius: 999px;
    padding: 8px 10px;
}
.showcase-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 16px;
    min-height: 46px;
    border-radius: 14px;
    background: #1f6a34;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 12px 28px rgba(31, 106, 52, .18);
    transition: transform .18s, box-shadow .18s, background .18s;
}
.showcase-wa-btn svg {
    flex-shrink: 0;
}
.showcase-wa-btn span {
    display: inline-block;
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}
.showcase-wa-btn:hover {
    transform: translateY(-1px);
    background: #175629;
    box-shadow: 0 14px 30px rgba(23, 86, 41, .22);
}
.showcase-grid-inner { grid-template-columns: repeat(3, 1fr); }
.showcase-inner-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9f1 100%);
}
.showcase-image-inner {
    aspect-ratio: .95 / 1;
}
.showcase-inner-card .showcase-copy {
    padding-top: 14px;
}
.showcase-inner-card .showcase-copy h3 {
    font-size: 18px;
    margin-bottom: 0;
}
.showcase-olive { background: linear-gradient(180deg, #edf5df 0%, #dce8c0 100%); }
.showcase-forest { background: linear-gradient(180deg, #173a26 0%, #275637 100%); }
.showcase-forest .showcase-copy h3,
.showcase-forest .showcase-copy p { color: #eff6ea; }
.showcase-forest .showcase-copy span { background: rgba(237,247,231,.16); color: #f2f7ef; }
.showcase-sand { background: linear-gradient(180deg, #f7efd8 0%, #f2dfbb 100%); }
.showcase-mint { background: linear-gradient(180deg, #f6fbf1 0%, #ddecda 100%); }
.showcase-honey { background: linear-gradient(180deg, #fff4df 0%, #f1d59a 100%); }
.showcase-meadow { background: linear-gradient(180deg, #f5f4e4 0%, #dce6c2 100%); }
.showcase-field { background: linear-gradient(180deg, #edf1df 0%, #d0ddb4 100%); }
.showcase-ocean { background: linear-gradient(180deg, #eff4ff 0%, #cbdaf8 100%); }
.showcase-sage { background: linear-gradient(180deg, #f6f8f0 0%, #dbe5d3 100%); }
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.package-card { padding: 24px; }
.package-card-featured {
    background: linear-gradient(180deg, #1f4d22 0%, #285a27 100%);
    color: #fff;
    transform: translateY(-6px);
}
.package-tag {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #eef8df;
    color: #40642d;
}
.package-card-featured .package-tag {
    background: rgba(255,255,255,.16);
    color: #fff;
}
.package-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}
.package-price {
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 18px;
    color: #244122;
}
.package-card-featured .package-price { color: #fff; }
.package-list {
    display: grid;
    gap: 12px;
    color: #61705e;
    line-height: 1.6;
}
.package-card-featured .package-list { color: rgba(255,255,255,.82); }
.service-faq-list {
    display: grid;
    gap: 14px;
}
.service-faq-list details {
    padding: 18px 20px;
}
.service-faq-list summary {
    cursor: pointer;
    font-weight: 700;
    color: #21331e;
    list-style: none;
}
.service-faq-list summary::-webkit-details-marker { display: none; }
.service-faq-list p {
    margin-top: 12px;
    color: #67715f;
    line-height: 1.65;
}
.service-cta-banner {
    margin-top: 42px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    background: linear-gradient(135deg, #f5fbe8 0%, #e7f4d1 55%, #f6f1de 100%);
}
.service-cta-banner h2 {
    margin: 12px 0 10px;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -.03em;
}
.service-cta-banner p {
    max-width: 760px;
    color: #63705e;
    line-height: 1.7;
}
.service-cta-copy {
    display: grid;
    gap: 14px;
}
.service-cta-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.service-cta-points span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .68);
    border: 1px solid rgba(137, 153, 98, .18);
    color: #335126;
    font-weight: 600;
    font-size: 14px;
}
.service-cta-form {
    width: 100%;
    max-width: 520px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(142, 164, 112, .18);
    box-shadow: 0 18px 50px rgba(70, 93, 48, .09);
}
.service-cta-label {
    display: block;
    margin-bottom: 10px;
    color: #21331e;
    font-weight: 700;
}
.service-cta-input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #d6dfbf;
    background: #fff;
    color: #1d261b;
    font-size: 16px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.service-cta-input:focus {
    outline: none;
    border-color: #2f7d3c;
    box-shadow: 0 0 0 4px rgba(47, 125, 60, .12);
}
.service-cta-input.is-invalid {
    border-color: #c94b4b;
    box-shadow: 0 0 0 4px rgba(201, 75, 75, .10);
}
.service-cta-help,
.service-cta-error {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
}
.service-cta-help { color: #66725e; }
.service-cta-error { color: #b53a3a; }
.service-cta-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .footer-service-banner { grid-template-columns: 1fr; }
    .service-hero,
    .service-feature-layout,
    .service-cta-banner { grid-template-columns: 1fr; }
    .service-hero h1,
    .service-section-head h2,
    .service-cta-banner h2 { font-size: 34px; }
    .service-card-grid-3,
    .showcase-grid,
    .showcase-grid-inner,
    .package-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .form-row           { grid-template-columns: 1fr; }
    .auth-card          { padding: 28px 20px; }
    .profile-wrap       { grid-template-columns: 1fr; }
    .profile-sidebar    { position: static; }
    .filter-bar-inner   { gap: 8px; }
    .admin-stats        { grid-template-columns: repeat(2,1fr); }
    .admin-filter-bar   { gap: 8px; }
    .detail-wrap        { grid-template-columns: 1fr !important; }
    .footer-service-banner-wrap { padding: 0 16px 36px; }
    .footer-service-banner { padding: 22px 20px; border-radius: 20px; }
    .footer-service-banner h2 { font-size: 24px; }
    .footer-service-banner-actions { justify-content: flex-start; }
    .service-hero { padding: 24px; border-radius: 22px; }
    .service-hero h1,
    .service-section-head h2,
    .service-cta-banner h2 { font-size: 28px; }
    .service-lead { font-size: 15px; }
    .service-hero-visual { min-height: 320px; }
    .service-dashboard-card { inset: 18px 0 0; position: relative; }
    .service-feature-list,
    .service-card-grid-3,
    .showcase-grid,
    .showcase-grid-inner,
    .package-grid { grid-template-columns: 1fr; }
    .service-cta-form { max-width: none; }
    .service-cta-actions { justify-content: flex-start; }
    .showcase-tab-buttons { gap: 12px; }
    .showcase-tab-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}
.tt-swal-popup {
    border-radius: 20px !important;
    border: 1px solid #dbe8c0 !important;
}
@media (max-width: 700px) {
    .field-row          { flex-direction: column; }
    .tip-col            { width: 100%; }
    .form-row-half      { grid-template-columns: 1fr; }
    .photo-upload-grid  { gap: 8px; }
    .photo-slot-label   { width: 88px; height: 88px; }
}
