/* ═══════════════════════════════════════════════════════════
   ZimLoad Marketplace — CSS
   Design: matches Mowifi plugin (Sora font, purple/blue gradient)
   Scoped to .zl-wrap — will not affect Astra theme
═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap');

.zl-wrap {
    --acc:    #6C3EFF;
    --acc2:   #3E8BFF;
    --surf:   #ffffff;
    --bg:     #f7f7fc;
    --text:   #1a1a2e;
    --muted:  #6b6b8a;
    --border: #e8e8f4;
    --r:      14px;
    --rl:     20px;
    --sh:     0 8px 32px rgba(108,62,255,0.12), 0 2px 8px rgba(0,0,0,0.06);
    --shh:    0 16px 48px rgba(108,62,255,0.2), 0 4px 16px rgba(0,0,0,0.08);
    --grad:   linear-gradient(135deg, var(--acc) 0%, var(--acc2) 100%);
    font-family: 'Sora', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    border-radius: var(--rl);
    overflow: hidden;
    box-shadow: var(--sh);
    border: 1px solid var(--border);
}

/* ── FLASH ── */
.zl-flash {
    padding: 14px 22px;
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    font-size: 13px;
    font-weight: 600;
    color: #15803d;
    border-bottom: 1px solid #dcfce7;
}
.zl-flash-warn { background: #fffbeb; border-left-color: #f59e0b; color: #92400e; }
.zl-flash-info { background: #eff6ff; border-left-color: #3b82f6; color: #1e40af; }

/* ── HEADER ── */
.zl-header {
    background: var(--grad);
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 66px;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}

.zl-header::before {
    content: '';
    position: absolute;
    top: -40px; right: -30px;
    width: 140px; height: 140px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}

.zl-header::after {
    content: '';
    position: absolute;
    bottom: -50px; left: 30%;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.zl-header-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    padding: 12px 0;
    position: relative;
    z-index: 1;
}

.zl-header-avatar {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    position: relative;
    flex-shrink: 0;
}

.zl-online-dot {
    position: absolute;
    bottom: 0; right: 0;
    width: 11px; height: 11px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid rgba(108,62,255,0.8);
}

.zl-header-name { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; }
.zl-header-sub  { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 1px; }

/* ── NAV TABS ── */
.zl-header-nav {
    display: flex;
    align-items: stretch;
    flex: 1;
    overflow-x: auto;
    position: relative;
    z-index: 1;
    padding: 0 8px;
    gap: 2px;
}

.zl-nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    height: 66px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    color: rgba(255,255,255,0.6);
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}

.zl-nav-tab:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.08); }
.zl-nav-tab.active { color: #fff; border-bottom-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.1); }

/* ── HEADER USER ── */
.zl-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 12px 0;
    position: relative;
    z-index: 1;
}

.zl-user-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 5px 14px 5px 5px;
}

.zl-user-av {
    width: 30px; height: 30px;
    background: rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px;
    flex-shrink: 0;
}

.zl-user-name { font-size: 12px; font-weight: 600; color: #fff; line-height: 1; display: block; }
.zl-user-role { font-size: 10px; color: rgba(255,255,255,0.6); margin-top: 2px; display: block; }

/* ── BUTTONS ── */
.zl-wrap .zl-btn-primary,
.zl-wrap .zl-btn-primary:visited {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px;
    background: var(--grad);
    color: #fff !important;
    border: none; border-radius: 30px;
    font-size: 13px; font-weight: 600; font-family: 'Sora', sans-serif;
    cursor: pointer; text-decoration: none !important;
    transition: all 0.2s; line-height: 1;
    box-shadow: 0 4px 14px rgba(108,62,255,0.35);
}
.zl-wrap .zl-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(108,62,255,0.45); color: #fff !important; }

.zl-btn-ghost {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 17px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 30px;
    color: rgba(255,255,255,0.8) !important;
    font-size: 12px; font-weight: 600; font-family: 'Sora', sans-serif;
    cursor: pointer; text-decoration: none !important;
    transition: all 0.2s;
}
.zl-btn-ghost:hover { background: rgba(255,255,255,0.22); color: #fff !important; }

.zl-btn-sm  { padding: 7px 15px !important; font-size: 12px !important; }
.zl-btn-lg  { padding: 13px 28px !important; font-size: 14px !important; }
.zl-btn-full { width: 100%; justify-content: center; }

.zl-btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--acc);
    border-radius: 30px;
    color: var(--acc) !important;
    font-size: 13px; font-weight: 600; font-family: 'Sora', sans-serif;
    cursor: pointer; text-decoration: none !important;
    transition: all 0.2s;
}
.zl-btn-outline:hover { background: var(--acc); color: #fff !important; }

.zl-btn-ok {
    display: inline-flex; align-items: center;
    padding: 7px 15px;
    background: linear-gradient(135deg,#22c55e,#16a34a);
    color: #fff !important; border: none; border-radius: 30px;
    font-size: 12px; font-weight: 600; font-family: 'Sora', sans-serif;
    cursor: pointer; transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(34,197,94,0.3);
}
.zl-btn-ok:hover { opacity: 0.9; transform: translateY(-1px); }

.zl-btn-danger {
    display: inline-flex; align-items: center;
    padding: 7px 15px;
    background: linear-gradient(135deg,#ef4444,#dc2626);
    color: #fff !important; border: none; border-radius: 30px;
    font-size: 12px; font-weight: 600; font-family: 'Sora', sans-serif;
    cursor: pointer; transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(239,68,68,0.3);
}
.zl-btn-danger:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── CONTENT ── */
.zl-content { padding: 24px 22px 36px; }

/* ── PAGE HEADER ── */
.zl-page-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    flex-wrap: wrap; gap: 12px;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1.5px solid var(--border);
}
.zl-page-head h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 0 0 4px; letter-spacing: -0.3px; }
.zl-page-head p  { font-size: 13px; color: var(--muted); margin: 0; }

/* ── FILTER CHIPS ── */
.zl-chips-bar { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.zl-chip {
    display: inline-flex; align-items: center;
    padding: 6px 14px; border-radius: 20px;
    border: 1.5px solid var(--border); background: var(--surf);
    font-size: 12px; font-weight: 600; color: var(--muted);
    font-family: 'Sora', sans-serif;
    text-decoration: none !important; transition: all 0.18s; cursor: pointer;
}
.zl-chip:hover { border-color: var(--acc); color: var(--acc); }
.zl-chip.active { background: var(--grad); color: #fff !important; border-color: transparent; box-shadow: 0 3px 12px rgba(108,62,255,0.3); }

/* ── CARDS GRID ── */
.zl-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

/* ── LOAD CARD ── */
.zl-card {
    background: var(--surf);
    border: 1.5px solid var(--border);
    border-radius: var(--rl);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(108,62,255,0.06);
    transition: all 0.22s;
}
.zl-card:hover { transform: translateY(-4px); box-shadow: var(--shh); border-color: rgba(108,62,255,0.2); }

.zl-card-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px 0;
}

.zl-category-tag {
    display: inline-flex; align-items: center;
    padding: 4px 11px; border-radius: 20px;
    background: #f0eeff; color: var(--acc);
    border: 1px solid #ddd8ff;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}

.zl-bid-badge {
    font-size: 12px; color: var(--muted);
    background: var(--bg); padding: 4px 10px;
    border-radius: 20px; border: 1px solid var(--border); font-weight: 600;
}

.zl-card-route {
    font-size: 16px; font-weight: 700; color: var(--text);
    margin: 10px 16px 12px; line-height: 1.3;
}
.zl-arrow-icon { color: var(--acc); }

/* ── CARD PHOTOS ── */
.zl-card-photos {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 4px; margin: 0 16px 12px;
}
.zl-card-photos a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--border); transition: all 0.2s; }
.zl-card-photos a:hover { border-color: var(--acc); transform: scale(1.04); }
.zl-card-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── CARD META ── */
.zl-card-meta { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 7px; }
.zl-meta-row { display: flex; justify-content: space-between; align-items: center; }
.zl-meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-weight: 600; }
.zl-meta-val   { font-size: 13px; font-weight: 500; color: var(--text); }
.zl-price-tag  { font-size: 16px; font-weight: 700; color: var(--acc); font-family: 'Sora', sans-serif; }

/* ── INFO NOTES ── */
.zl-info-note {
    margin: 0 16px 16px; padding: 10px 13px;
    border-radius: 10px; font-size: 12px;
    background: #f0eeff; border: 1px solid #ddd8ff; color: var(--muted);
}
.zl-info-note a { color: var(--acc); font-weight: 600; text-decoration: none; }
.zl-note-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.zl-note-ok   { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }

/* ── BID PANEL ── */
.zl-bid-panel {
    margin: 0 16px 16px;
    border: 2px solid var(--acc);
    border-radius: 14px; overflow: hidden;
}
.zl-bid-panel-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px;
    background: var(--grad);
    color: #fff; font-size: 13px; font-weight: 700;
    flex-wrap: wrap; gap: 6px;
}
.zl-credit-hint { font-size: 11px; font-weight: 500; opacity: 0.9; }
.zl-credit-hint a { color: #fff; font-weight: 700; }

.zl-bid-form { padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 10px; }

/* ── FORM ── */
.zl-form-card { background: var(--surf); border: 1.5px solid var(--border); border-radius: var(--rl); padding: 26px; box-shadow: 0 2px 12px rgba(108,62,255,0.06); max-width: 700px; }
.zl-form { display: flex; flex-direction: column; gap: 16px; }
.zl-form-section { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.zl-form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zl-form-group { display: flex; flex-direction: column; gap: 5px; }
.zl-form-group label { font-size: 12px; font-weight: 600; color: var(--text); }
.zl-form-group label small { font-weight: 400; color: var(--muted); }
.zl-hint { font-size: 11px; color: var(--muted); }
.zl-form-actions { display: flex; gap: 12px; align-items: center; padding-top: 8px; border-top: 1px solid var(--border); }

.zl-wrap input[type=text],
.zl-wrap input[type=email],
.zl-wrap input[type=number],
.zl-wrap input[type=password],
.zl-wrap input[type=datetime-local],
.zl-wrap select,
.zl-wrap textarea {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 13px; font-family: 'Sora', sans-serif;
    color: var(--text); background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box; line-height: 1.4;
}
.zl-wrap input:focus, .zl-wrap select:focus, .zl-wrap textarea:focus {
    outline: none; border-color: var(--acc);
    box-shadow: 0 0 0 3px rgba(108,62,255,0.12);
    background: #fff;
}
.zl-wrap input::placeholder, .zl-wrap textarea::placeholder { color: #bbb; }
.zl-wrap textarea { resize: vertical; min-height: 68px; }

.zl-input-combo { display: flex; }
.zl-combo-cur    { width: 80px !important; border-radius: 10px 0 0 10px !important; border-right: none !important; }
.zl-combo-input  { border-radius: 0 10px 10px 0 !important; flex: 1; }
.zl-combo-prefix { display: flex; align-items: center; padding: 0 12px; background: var(--bg); border: 1.5px solid var(--border); border-right: none; border-radius: 10px 0 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ── UPLOAD ── */
.zl-upload-area {
    border: 2px dashed var(--border); border-radius: var(--rl);
    padding: 28px 20px; text-align: center; cursor: pointer;
    background: var(--bg); transition: all 0.2s; position: relative;
}
.zl-upload-area:hover, .zl-upload-area.zl-drag-over {
    border-color: var(--acc); background: #f0eeff;
    box-shadow: 0 0 0 4px rgba(108,62,255,0.08);
}
.zl-upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100% !important; height: 100% !important; padding: 0 !important; border: none !important; background: none !important; cursor: pointer; z-index: 2; }
.zl-upload-icon  { font-size: 34px; display: block; margin-bottom: 8px; }
.zl-upload-title { font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 4px; }
.zl-upload-hint  { font-size: 12px; color: var(--muted); margin: 0; }
.zl-upload-previews { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 10px; }
.zl-preview-item { border-radius: 10px; overflow: hidden; border: 1.5px solid var(--border); }
.zl-preview-item img  { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.zl-preview-item span { display: block; font-size: 11px; color: var(--muted); padding: 4px 7px; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── PAGINATION ── */
.zl-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.zl-page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 13px; font-weight: 600;
    text-decoration: none !important; color: var(--acc) !important;
    background: var(--surf); transition: all 0.2s; font-family: 'Sora', sans-serif;
}
.zl-page-btn:hover { background: #f0eeff; border-color: var(--acc); }
.zl-page-btn.active { background: var(--grad); color: #fff !important; border-color: transparent; box-shadow: 0 3px 10px rgba(108,62,255,0.3); }

/* ── MY LOADS ITEMS ── */
.zl-load-item {
    background: var(--surf); border: 1.5px solid var(--border);
    border-radius: var(--rl); margin-bottom: 18px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(108,62,255,0.06); transition: all 0.22s;
}
.zl-load-item:hover { box-shadow: var(--shh); border-color: rgba(108,62,255,0.2); }
.zl-bid-card-accepted { border-top: 3px solid #22c55e; }
.zl-bid-card-rejected { border-top: 3px solid #ef4444; opacity: 0.8; }
.zl-bid-card-pending  { border-top: 3px solid #f59e0b; }

.zl-load-photo-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; padding: 12px 16px; background: #f0eeff; border-bottom: 1px solid #ddd8ff; }
.zl-load-photo-strip a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; border: 1px solid #ddd8ff; transition: all 0.2s; }
.zl-load-photo-strip a:hover { border-color: var(--acc); }
.zl-load-photo-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

.zl-load-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.zl-load-meta-text { font-size: 12px; color: var(--muted); margin: 5px 0 0; }
.zl-load-meta-text strong { color: var(--acc); font-family: 'Sora', sans-serif; font-size: 13px; }
.zl-load-item-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── STATUS TAGS ── */
.zl-status-tag { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; font-family: 'Sora', sans-serif; }
.zl-status-open      { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.zl-status-awarded   { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.zl-status-cancelled { background: #f9fafb; color: var(--muted); border: 1px solid var(--border); }
.zl-status-pending   { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.zl-status-accepted  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.zl-status-rejected  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.zl-status-paid      { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ── BIDS AREA ── */
.zl-bids-area { padding: 14px 18px 18px; }
.zl-bids-area-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); }
.zl-bids-area-head strong { color: var(--text); }
.zl-pending-dot { background: var(--grad); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.zl-muted-text { font-size: 13px; color: var(--muted); font-style: italic; margin: 0; }

.zl-bid-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--bg); flex-wrap: wrap; transition: border-color 0.2s; margin-bottom: 8px; }
.zl-bid-item:hover { border-color: rgba(108,62,255,0.3); }
.zl-bid-pending  { border-left: 3px solid #f59e0b; }
.zl-bid-accepted { border-left: 3px solid #22c55e; background: #f0fdf4; border-color: #bbf7d0; }
.zl-bid-rejected { border-left: 3px solid #ef4444; background: #fef2f2; opacity: 0.75; }
.zl-bid-item-left { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 0; }
.zl-bid-av { width: 32px; height: 32px; background: var(--grad); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; margin-top: 2px; }
.zl-bid-item-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 4px; align-items: center; }
.zl-time-tag { font-size: 12px; color: var(--muted); background: var(--surf); padding: 3px 9px; border-radius: 20px; border: 1px solid var(--border); }
.zl-note-text { font-size: 12px; color: var(--muted); font-style: italic; width: 100%; }
.zl-bid-item-right { display: flex; gap: 7px; flex-shrink: 0; }

/* ── BID DETAIL STRIP ── */
.zl-bid-detail-strip { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 18px; background: #f0eeff; border-top: 1px solid #ddd8ff; font-size: 13px; }
.zl-bid-detail-strip > div { display: flex; flex-direction: column; gap: 2px; }

/* ── CONTACT REVEAL ── */
.zl-contact-reveal { background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: 10px; padding: 13px 16px; margin: 0 18px 14px; font-size: 13px; color: #15803d; }
.zl-contact-reveal strong { display: block; margin-bottom: 5px; }
.zl-contact-reveal a { color: #15803d; font-weight: 600; }

/* ── EMPTY STATE ── */
.zl-empty { text-align: center; padding: 50px 20px; }
.zl-empty > div { font-size: 44px; margin-bottom: 14px; }
.zl-empty h3 { font-size: 17px; font-weight: 700; color: var(--text); margin: 0 0 7px; }
.zl-empty p  { font-size: 13px; color: var(--muted); margin: 0; }

/* ── AUTH ── */
.zl-auth-wrap { display: flex; justify-content: center; padding: 10px 0; }
.zl-auth-box  { width: 100%; max-width: 450px; background: var(--surf); border: 1.5px solid var(--border); border-radius: var(--rl); padding: 30px; box-shadow: 0 4px 24px rgba(108,62,255,0.1); }
.zl-auth-header { text-align: center; margin-bottom: 24px; }
.zl-auth-icon { font-size: 36px; display: block; margin-bottom: 12px; }
.zl-auth-header h2 { font-size: 22px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.zl-auth-header p  { font-size: 13px; color: var(--muted); margin: 0; }
.zl-auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.zl-auth-switch a { color: var(--acc); font-weight: 600; text-decoration: none; }

.zl-role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.zl-role-card input { display: none; }
.zl-role-inner { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 16px 12px; border: 2px solid var(--border); border-radius: var(--r); cursor: pointer; transition: all 0.2s; background: var(--bg); text-align: center; }
.zl-role-inner:hover { border-color: var(--acc); background: #f0eeff; }
.zl-role-card input:checked + .zl-role-inner { border-color: var(--acc); background: #f0eeff; box-shadow: 0 0 0 3px rgba(108,62,255,0.12); }
.zl-role-ico { font-size: 26px; }
.zl-role-inner strong { font-size: 13px; font-weight: 700; color: var(--text); }
.zl-role-inner small  { font-size: 11px; color: var(--muted); }

/* ── TOPUP PAGE ── */
.zl-credits-hero { display: flex; align-items: center; gap: 20px; background: var(--grad); border-radius: var(--rl); padding: 22px 28px; margin-bottom: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.zl-credits-hero::before { content:''; position:absolute; top:-40px; right:-30px; width:140px; height:140px; background:rgba(255,255,255,0.07); border-radius:50%; }
.zl-credit-block { display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; z-index: 1; }
.zl-credit-num   { font-size: 38px; font-weight: 700; color: rgba(255,255,255,0.9); line-height: 1; font-family: 'Sora', sans-serif; }
.zl-num-green    { color: #4ade80; }
.zl-num-white    { color: #fff; }
.zl-credit-label { font-size: 11px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.7px; white-space: nowrap; }
.zl-credit-sep   { width: 1px; height: 50px; background: rgba(255,255,255,0.2); }
.zl-credit-desc  { margin-left: auto; color: rgba(255,255,255,0.75); font-size: 13px; line-height: 1.7; position: relative; z-index: 1; }
.zl-credit-desc strong { color: #fff; }

.zl-how-it-works { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 26px; }
.zl-how-step { display: flex; gap: 12px; align-items: flex-start; background: var(--surf); border: 1.5px solid var(--border); border-radius: var(--r); padding: 14px; }
.zl-step-dot { width: 26px; height: 26px; background: var(--grad); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; margin-top: 2px; box-shadow: 0 3px 10px rgba(108,62,255,0.3); }
.zl-how-step strong { display: block; font-size: 13px; color: var(--text); margin-bottom: 3px; }
.zl-how-step p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

.zl-section-heading { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 14px; letter-spacing: -0.2px; }

.zl-packs-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 22px; }
.zl-pack-card { background: var(--surf); border: 1.5px solid var(--border); border-radius: var(--rl); padding: 22px 16px; text-align: center; box-shadow: 0 2px 12px rgba(108,62,255,0.06); transition: all 0.22s; position: relative; display: flex; flex-direction: column; gap: 5px; }
.zl-pack-card:hover { transform: translateY(-4px); box-shadow: var(--shh); border-color: rgba(108,62,255,0.2); }
.zl-pack-popular { border-color: var(--acc); border-width: 2px; }
.zl-popular-label { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 11px; border-radius: 20px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 3px 10px rgba(108,62,255,0.35); }
.zl-pack-qty   { font-size: 44px; font-weight: 700; color: var(--text); line-height: 1; font-family: 'Sora', sans-serif; }
.zl-pack-unit  { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.zl-pack-price { font-size: 20px; font-weight: 700; color: var(--acc); font-family: 'Sora', sans-serif; }
.zl-pack-per   { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.zl-paynow-badge { background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--r); padding: 13px 18px; font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 22px; }
.zl-paynow-badge strong { color: var(--text); }

.zl-history-table { background: var(--surf); border: 1.5px solid var(--border); border-radius: var(--r); overflow: hidden; }
.zl-history-table table { width: 100%; border-collapse: collapse; }
.zl-history-table th { padding: 10px 13px; background: var(--bg); font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-weight: 700; text-align: left; border-bottom: 1.5px solid var(--border); font-family: 'Sora', sans-serif; }
.zl-history-table td { padding: 11px 13px; font-size: 13px; border-bottom: 1px solid var(--bg); }
.zl-history-table tr:last-child td { border-bottom: none; }

/* ── RESPONSIVE ── */
@media(max-width:768px){
    .zl-header { padding: 0 14px; }
    .zl-header-nav { padding: 0; }
    .zl-nav-tab { padding: 0 9px; font-size: 11px; }
    .zl-header-sub { display: none; }
    .zl-content { padding: 16px 14px 28px; }
    .zl-cards-grid { grid-template-columns: 1fr; }
    .zl-form-2col { grid-template-columns: 1fr; }
    .zl-packs-grid { grid-template-columns: 1fr 1fr; }
    .zl-how-it-works { grid-template-columns: 1fr; }
    .zl-bid-item { flex-direction: column; align-items: flex-start; }
    .zl-bid-item-right { width: 100%; }
    .zl-load-item-head { flex-direction: column; }
    .zl-page-head { flex-direction: column; align-items: flex-start; }
    .zl-credits-hero { flex-direction: column; align-items: flex-start; }
    .zl-credit-sep { width: 100%; height: 1px; }
    .zl-credit-desc { margin-left: 0; }
    .zl-header-user .zl-user-meta { display: none; }
}
@media(max-width:480px){
    .zl-packs-grid { grid-template-columns: 1fr; }
    .zl-role-selector { grid-template-columns: 1fr; }
    .zl-upload-previews,.zl-card-photos,.zl-load-photo-strip { grid-template-columns: repeat(2,1fr); }
}

/* ── UPLOAD BUTTONS (Gallery + Camera) ── */
.zl-upload-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 14px;
}

.zl-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 30px;
    border: 2px solid var(--border);
    background: var(--surf);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.zl-upload-btn:hover {
    border-color: var(--acc);
    color: var(--acc);
    background: #f0eeff;
}

.zl-upload-btn-cam {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(108,62,255,0.3);
}

.zl-upload-btn-cam:hover {
    opacity: 0.9;
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108,62,255,0.4);
}

/* Remove image button on preview */
.zl-preview-item {
    position: relative;
}

.zl-remove-img {
    position: absolute;
    top: 4px; right: 4px;
    width: 20px; height: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background 0.15s;
}

.zl-remove-img:hover { background: #ef4444; }

/* ── FILE INPUT HIDDEN (CSS, not inline style — mobile compatible) ── */
.zl-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    pointer-events: none;
}

/* Make label buttons look tappable on mobile */
.zl-upload-btn {
    -webkit-tap-highlight-color: rgba(108,62,255,0.15);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

/* ── TRANSPORT MODE GRID ── */
.zl-transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 4px;
}

.zl-transport-opt input { display: none; }

.zl-transport-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    background: var(--bg);
    transition: all 0.18s;
}

.zl-transport-inner:hover {
    border-color: var(--acc);
    background: #f0eeff;
}

.zl-transport-opt input:checked + .zl-transport-inner {
    border-color: var(--acc);
    background: #f0eeff;
    box-shadow: 0 0 0 3px rgba(108,62,255,0.12);
}

.zl-transport-ico { font-size: 20px; flex-shrink: 0; }
.zl-transport-lbl { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; }

/* ── CURRENT BEST BID on card ── */
.zl-best-bid {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #22c55e !important;
    font-family: 'Sora', sans-serif;
}

.zl-no-bid {
    font-size: 12px !important;
    color: var(--muted) !important;
    font-style: italic;
}

/* ── TRANSPORT MODE TAG on card ── */
.zl-mode-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--acc) !important;
    background: #f0eeff;
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid #ddd8ff;
}

/* ── RESPONSIVE transport grid ── */
@media(max-width: 600px) {
    .zl-transport-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Flash error state */
.zl-flash-error {
    padding: 14px 22px;
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-bottom: 1px solid #fecaca;
    font-size: 13px;
    font-weight: 600;
    color: #b91c1c;
}

/* Button loading state */
.zl-btn-primary:disabled,
.zl-btn-ok:disabled,
.zl-btn-danger:disabled {
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
