/* ==========================================================================
   GENGE MALL VENDOR PORTAL STYLES
   ========================================================================== */

:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --secondary: #0F172A;
    --bg-dark: #090D16;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-light: #F8FAFC;
    --text-muted: #94A3B8;
    --accent-gold: #F59E0B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
}

.hidden { display: none !important; }

/* Login Overlay */
.vendor-login-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #090D16 0%, #0F172A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1.5rem;
}

.vendor-login-box {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.vendor-logo {
    height: 70px;
    margin-bottom: 1rem;
}

.vendor-login-box h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.vendor-login-box .sub-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.2rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.vendor-password-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}

.vendor-password-input-wrap input {
    flex: 1;
    min-width: 0;
}

.vendor-password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    min-height: 46px;
    padding: 0;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.25rem;
    cursor: pointer;
}

.vendor-password-toggle:hover,
.vendor-password-toggle:focus-visible {
    color: var(--primary);
    border-color: var(--primary);
}

.vendor-btn-primary {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.vendor-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.vendor-error-msg {
    margin-top: 1rem;
    color: #EF4444;
    font-size: 0.88rem;
}

.vendor-login-footer {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.vendor-login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Dashboard Layout */
.vendor-header {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.vendor-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vendor-brand img {
    height: 45px;
}

.v-shop-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.v-role-badge {
    font-size: 0.75rem;
    color: var(--primary);
}

.vendor-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.v-header-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.v-logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.vendor-container {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Package Card */
.vendor-package-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.pkg-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
}

.pkg-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0.3rem 0;
}

.pkg-name-row h2 {
    font-size: 1.6rem;
    font-weight: 800;
}

.pkg-price-badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

.pkg-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pkg-stats-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.pkg-usage-box {
    min-width: 220px;
}

.usage-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.3rem;
}

.usage-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #F59E0B);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.usage-text {
    font-size: 0.85rem;
}

.upgrade-pkg-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #fff;
    border: none;
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.upgrade-pkg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* Grid Layout */
.vendor-grid-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .vendor-grid-layout {
        grid-template-columns: 1fr;
    }
}

.vendor-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.8rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-post-limit {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-gold);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.vendor-submit-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #10B981, #059669);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.upload-status-msg {
    margin-top: 1rem;
    font-size: 0.88rem;
    text-align: center;
}

/* Products Grid */
.vendor-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}

.vendor-prod-item {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vendor-prod-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.vendor-prod-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vendor-prod-body h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.vendor-prod-body .price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.vendor-prod-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.v-delete-btn {
    width: 100%;
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.85rem;
}

/* Upgrade Package Modal */
.upgrade-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    padding: 1.5rem;
}

.upgrade-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.upgrade-modal-content {
    background: #0F172A;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 950px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.pkg-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pkg-card.featured {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
}

.pkg-card.vip {
    border-color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.1);
}

.pkg-tag {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    margin-bottom: 0.8rem;
}

.pkg-tag.popular { background: var(--primary); color: #000; }
.pkg-tag.vip-tag { background: var(--accent-gold); color: #000; }

.pkg-card .price {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0.8rem 0;
}

.pkg-card .price span { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }

.pkg-card ul {
    list-style: none;
    margin: 1rem 0 1.5rem 0;
}

.pkg-card ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.pkg-card ul li ion-icon { color: var(--primary); }

.select-pkg-btn {
    margin-top: auto;
    width: 100%;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.select-pkg-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ── Back to Mall Button ─────────────────────── */
.v-back-mall-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.v-back-mall-btn:hover {
    background: #10B981;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

/* ── Countdown Box in Package Card ───────────── */
.pkg-countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 10px 16px;
    min-width: 100px;
}

.countdown-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #10B981;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin-bottom: 4px;
    transition: all 0.3s;
}

.countdown-days {
    font-size: 1.35rem;
    font-weight: 900;
    color: #10B981;
    line-height: 1;
}

.countdown-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.countdown-sub {
    font-size: 0.76rem;
    font-weight: 700;
    color: #cbd5e1;
}

/* ── Package Timeline Bar ────────────────────── */
.pkg-timeline-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.timeline-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.timeline-bar-wrap {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.timeline-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #F59E0B);
    border-radius: 6px;
    transition: width 0.4s ease;
}

/* ── Vendor Quick Stats ───────────────────────── */
.vendor-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 1.5rem;
}

.vstat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    transition: transform 0.2s, border-color 0.2s;
}

.vstat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.4);
}

.vstat-card ion-icon {
    font-size: 1.4rem;
    color: #10B981;
}

.vstat-card strong {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.vstat-card span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ── Inquiries Card ───────────────────────────── */
.inquiries-card {
    margin-top: 1.5rem;
}

.inquiries-info-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inq-tip-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
}

.inq-tip-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.inq-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.65rem 1.2rem;
    background: #10B981;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.inq-btn-primary:hover {
    background: #059669;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.inq-btn-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.65rem 1.2rem;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #0b1329;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.inq-btn-upgrade:hover {
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

/* ------------------------------------------------------
   VENDOR PROFILE EDITOR CARD
   ------------------------------------------------------ */
.vendor-profile-edit-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.profile-edit-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}
.profile-edit-header h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-edit-header ion-icon { color: var(--primary); font-size: 1.2rem; }
.profile-edit-body { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.vp-avatar-section { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.vp-avatar-wrap { position: relative; width: 90px; height: 90px; cursor: pointer; }
.vp-avatar-ring { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); box-shadow: 0 0 0 3px rgba(16,185,129,0.25); display: block; transition: filter 0.2s; }
.vp-avatar-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; gap: 3px; }
.vp-avatar-wrap:hover .vp-avatar-overlay { opacity: 1; }
.vp-avatar-wrap:hover .vp-avatar-ring { filter: brightness(0.7); }
.vp-avatar-overlay ion-icon { color: #fff; font-size: 1.4rem; }
.vp-avatar-overlay span { color: #fff; font-size: 0.65rem; font-weight: 700; text-align: center; line-height: 1.2; }
#vp-profile-pic-input { display: none; }
.vp-change-pic-label { display: inline-flex; align-items: center; gap: 5px; background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.4); color: var(--primary); font-size: 0.75rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.vp-change-pic-label:hover { background: var(--primary); color: #fff; }
.profile-edit-fields { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 0.75rem; }
.profile-field-group { display: flex; flex-direction: column; gap: 4px; }
.profile-field-group label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.profile-field-group label ion-icon { font-size: 0.85rem; color: var(--primary); }
.profile-field-group input, .profile-field-group textarea { background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); border-radius: 10px; padding: 0.55rem 0.8rem; color: var(--text-light); font-size: 0.85rem; font-family: 'Outfit', sans-serif; outline: none; transition: border-color 0.2s; width: 100%; }
.profile-field-group input:focus, .profile-field-group textarea:focus { border-color: var(--primary); background: rgba(16,185,129,0.06); }
.profile-field-group input[readonly] { opacity: 0.55; cursor: not-allowed; }
.profile-field-group textarea { resize: vertical; min-height: 56px; }
.profile-save-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; border-radius: 12px; padding: 0.65rem 1.4rem; font-size: 0.88rem; font-weight: 800; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 12px rgba(16,185,129,0.35); margin-top: 0.25rem; }
.profile-save-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,185,129,0.5); }
.profile-save-msg { font-size: 0.8rem; font-weight: 700; margin-top: 4px; min-height: 18px; }

/* ------------------------------------------------------
   VENDOR PRODUCTS AUTO-SLIDER
   ------------------------------------------------------ */
.vendor-products-slider-wrap { position: relative; width: 100%; overflow: hidden; }
.vps-track { display: flex; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.vps-card { min-width: 100%; box-sizing: border-box; padding: 0 2px; }
.vps-card-inner { background: rgba(255,255,255,0.04); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.vps-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.vps-card-body { padding: 0.85rem; display: flex; flex-direction: column; gap: 6px; }
.vps-card-title { font-size: 0.9rem; font-weight: 800; color: #fff; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vps-card-meta { font-size: 0.75rem; color: var(--text-muted); }
.vps-card-price { font-size: 1rem; font-weight: 900; color: #34d399; }
.vps-card-actions { display: flex; gap: 6px; margin-top: 4px; }
.vps-delete-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35); color: #f87171; font-size: 0.78rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.vps-delete-btn:hover { background: #ef4444; color: #fff; }
.vps-share-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.4); color: #34d399; font-size: 0.78rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.vps-share-btn:hover { background: #10b981; color: #fff; }
.vps-nav-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px 4px; gap: 8px; }
.vps-nav-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.07); border: 1px solid var(--border-color); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; font-size: 1rem; flex-shrink: 0; }
.vps-nav-btn:hover { background: var(--primary); border-color: var(--primary); }
.vps-dots { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
.vps-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.25); cursor: pointer; transition: all 0.25s; border: none; padding: 0; }
.vps-dot.active { background: var(--primary); transform: scale(1.3); }
.vps-counter { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; white-space: nowrap; }
@media (max-width: 768px) {
    .vendor-header {
        flex-wrap: wrap;
        gap: 0.8rem;
        padding: 0.85rem 1rem;
    }

    .vendor-header-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .vendor-container {
        padding-inline: 1rem;
    }
}

@media (max-width: 600px) {
    .vendor-login-overlay {
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.75rem
            max(0.75rem, env(safe-area-inset-bottom, 0px));
    }

    .vendor-login-box {
        margin: auto;
        padding: 1.5rem 1rem;
        border-radius: 18px;
    }

    .vendor-header {
        position: static;
        padding: 0.75rem;
    }

    .vendor-brand {
        width: 100%;
        min-width: 0;
        gap: 0.65rem;
    }

    .vendor-brand img {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .vendor-brand > div {
        min-width: 0;
    }

    .v-shop-title {
        overflow-wrap: anywhere;
        font-size: 1rem;
    }

    .vendor-header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        width: 100%;
    }

    .vendor-header-actions > * {
        justify-content: center;
        min-width: 0;
        width: 100%;
        padding: 0.65rem 0.4rem;
        font-size: 0.74rem;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
    }

    .vendor-container {
        width: 100%;
        margin: 1rem auto;
        padding-inline: 0.75rem;
    }

    .vendor-package-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 16px;
    }

    .pkg-info-left {
        min-width: 0;
    }

    .pkg-name-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pkg-name-row h2 {
        font-size: 1.3rem;
        overflow-wrap: anywhere;
    }

    .pkg-price-badge {
        max-width: 100%;
        font-size: 0.75rem;
    }

    .pkg-sub {
        overflow-wrap: anywhere;
        line-height: 1.5;
    }

    .pkg-timeline-row {
        gap: 5px;
    }

    .timeline-label {
        font-size: 0.64rem;
    }

    .pkg-stats-right {
        display: grid;
        grid-template-columns: minmax(76px, 0.5fr) minmax(0, 1fr);
        align-items: center;
        gap: 0.75rem;
        min-width: 0;
    }

    .pkg-countdown-box {
        min-width: 0;
        padding: 0.6rem 0.35rem;
    }

    .pkg-usage-box {
        min-width: 0;
    }

    .upgrade-pkg-btn {
        grid-column: 1 / -1;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: 0.7rem 0.8rem;
    }

    .vendor-quick-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .vstat-card {
        min-width: 0;
        padding: 0.8rem;
    }

    .vstat-card strong {
        font-size: 1.2rem;
        overflow-wrap: anywhere;
    }

    .vstat-card span {
        line-height: 1.35;
    }

    .vendor-profile-edit-card,
    .vendor-card {
        min-width: 0;
        padding: 1rem;
        border-radius: 16px;
    }

    .profile-edit-body {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .vp-avatar-section {
        width: 100%;
    }

    .vp-avatar-wrap {
        align-self: center;
    }

    .profile-edit-fields {
        min-width: 0;
        width: 100%;
    }

    .profile-save-btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .vendor-grid-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 0.65rem;
        margin-bottom: 1rem;
    }

    .card-header h3 {
        min-width: 0;
        font-size: 1rem;
        line-height: 1.35;
    }

    .badge-post-limit {
        max-width: 100%;
        overflow-wrap: anywhere;
        font-size: 0.72rem;
    }

    .form-row-2 {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .form-group {
        margin-bottom: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea,
    .profile-field-group input,
    .profile-field-group textarea {
        min-width: 0;
        font-size: 16px;
    }

    .form-group input[type="file"] {
        padding: 0.65rem;
        font-size: 0.82rem;
    }

    .vendor-submit-btn {
        min-height: 48px;
        padding: 0.8rem;
        line-height: 1.35;
    }

    .vendor-products-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .inquiries-card .inq-btn-primary,
    .inquiries-card .inq-btn-upgrade {
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: 0.7rem;
        text-align: center;
    }

    .upgrade-modal-overlay {
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.75rem
            max(0.75rem, env(safe-area-inset-bottom, 0px));
    }

    .upgrade-modal-content {
        max-height: calc(100vh - 1.5rem);
        max-height: calc(
            100dvh - max(0.75rem, env(safe-area-inset-top, 0px)) -
                max(0.75rem, env(safe-area-inset-bottom, 0px))
        );
        overflow-y: auto;
        padding: 1.5rem 1rem;
        border-radius: 18px;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }

    .modal-header {
        padding-right: 1.5rem;
    }

    .packages-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        margin-top: 1rem;
    }

    .pkg-card {
        min-width: 0;
        padding: 1.35rem 1rem;
    }
}

@media (max-width: 360px) {
    .vendor-header-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .pkg-stats-right {
        grid-template-columns: 76px minmax(0, 1fr);
    }
}
