/* =====================================================
   ZimLink — profile.css  (Improved)
   Brand: green #25bd25 | Dark accents | Clean cards
   ===================================================== */

:root {
    --green:        #25bd25;
    --green-dark:   #1ea01e;
    --green-soft:   rgba(37, 189, 37, 0.08);
    --green-glow:   rgba(37, 189, 37, 0.18);
    --bg:           #f0f4f0;
    --card:         #ffffff;
    --border:       #e4ebe4;
    --text:         #1a1a1a;
    --muted:        #6b7c6b;
    --danger:       #e53935;
    --yellow:       #ffc107;
    --radius:       14px;
    --radius-sm:    9px;
    --shadow:       0 2px 16px rgba(0,0,0,0.07);
    --shadow-md:    0 6px 28px rgba(0,0,0,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

/* =====================================================
   HEADER
   ===================================================== */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    height: 64px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    box-shadow: 0 3px 16px rgba(37,189,37,0.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-section img {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    border: 2px solid rgba(255,255,255,0.5);
    object-fit: cover;
}
.logo-text {
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-links a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a:hover { background: rgba(255,255,255,0.18); color: white; }

.header-right { display: flex; align-items: center; gap: 10px; }

.notif-btn-wrap {
    position: relative;
    flex-shrink: 0;
}

.notif-btn {
    position: relative;
    background: rgba(255,255,255,0.15);
    border: none;
    outline: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    /* Reset default browser <button> chrome (padding/font/appearance) —
       same fix as .nav-bell-icon in styles.css. Without this the icon
       can sit slightly off-center depending on browser default styles. */
    padding: 0;
    margin: 0;
    font-family: inherit;
    line-height: normal;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.notif-btn:hover { background: rgba(255,255,255,0.28); }
.notif-btn:focus-visible { box-shadow: 0 0 0 2px rgba(255,255,255,0.5); }
.notif-badge {
    position: absolute;
    top: -2px; right: -2px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.notif-panel {
    position: absolute;
    top: 48px;
    right: 0;
    width: 360px;
    max-height: 480px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    border: 1px solid #eee;
    z-index: 999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.notif-panel.open { display: flex; }
.notif-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid #f0f0f0;
}
.notif-panel-title { font-weight: 700; font-size: 14px; color: var(--text); }
.notif-panel-mark-read {
    font-size: 12px; color: var(--green); font-weight: 600;
    cursor: pointer; background: none; border: none;
}
.notif-panel-mark-read:hover { text-decoration: underline; }
.notif-panel-list { overflow-y: auto; flex: 1; }
.notif-empty { padding: 32px 16px; text-align: center; color: #94a3b8; font-size: 13px; }
.notif-row {
    display: flex; gap: 10px; padding: 12px 16px;
    border-bottom: 1px solid #f6f6f6; cursor: pointer;
    transition: background 0.15s; position: relative;
}
.notif-row:hover { background: #fafafa; }
.notif-row.unread { background: #f3fdf3; }
.notif-row-icon {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--green-soft, #e8f9e8); color: var(--green);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 13px;
}
.notif-row-body { flex: 1; min-width: 0; }
.notif-row-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.notif-row-text {
    font-size: 12.5px; color: #64748b; line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.notif-row-time { font-size: 11px; color: #aab1bb; margin-top: 3px; }
.notif-row-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--green);
    position: absolute; top: 16px; right: 14px; flex-shrink: 0;
}
@media (max-width: 768px) {
    .notif-panel { right: 12px; left: 12px; width: auto; top: 64px; }
}

.logout-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.logout-btn:hover { background: rgba(229,57,53,0.7); border-color: transparent; }

/* =====================================================
   PROFILE HERO
   ===================================================== */
.profile-hero {
    background: linear-gradient(135deg, #1a3d1a 0%, #0e280e 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 36px 36px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 50%, rgba(37,189,37,0.15) 0%, transparent 55%),
        radial-gradient(circle at 90% 20%, rgba(37,189,37,0.08) 0%, transparent 45%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

/* Avatar */
.avatar-wrap {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}
.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    border: 4px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    color: white;
    overflow: hidden;
    transition: border-color 0.2s;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-wrap:hover .avatar { border-color: var(--green); }
.avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
}
.avatar-wrap:hover .avatar-overlay { opacity: 1; }

/* Hero info */
.hero-info { flex: 1; min-width: 260px; }

.hero-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.hero-name-row h1 {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}
.role-badge {
    background: var(--green);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.verified-badge {
    background: rgba(255,255,255,0.14);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px 3px 6px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.verified-badge img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 2px;
}

.hero-fullname {
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    margin-bottom: 12px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.hero-meta span {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hero-meta i { color: var(--green); }

.hero-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-rating .stars { color: var(--yellow); font-size: 16px; display: flex; gap: 2px; }
.hero-rating .rating-text { color: rgba(255,255,255,0.55); font-size: 13px; }

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}
.hero-stat {
    padding: 18px 28px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hero-stat:last-child { border-right: none; }
.hstat-num {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
}
.hstat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   BODY LAYOUT
   ===================================================== */
.profile-body {
    max-width: 1200px;
    margin: 28px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 24px;
    align-items: start;
}

/* =====================================================
   SIDEBAR CARDS
   ===================================================== */
.side-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    border: 1px solid var(--border);
}
.side-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.side-card-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.side-card-header h3 i { color: var(--green); }

.bio-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}
#bioInput {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    color: var(--text);
    transition: border-color 0.2s;
    margin-bottom: 10px;
}
#bioInput:focus { outline: none; border-color: var(--green); }
.bio-actions { display: flex; gap: 8px; }

/* Quick Links */
.quick-links { display: flex; flex-direction: column; gap: 2px; }
.qlink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}
.qlink i { color: var(--green); width: 16px; text-align: center; }
.qlink:hover { background: var(--green-soft); color: var(--text); }

/* Account settings */
.account-settings { display: flex; flex-direction: column; gap: 2px; }
.setting-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--muted);
    text-align: left;
    transition: background 0.2s, color 0.2s;
    width: 100%;
}
.setting-row i:first-child { color: var(--green); width: 16px; text-align: center; }
.setting-row span { flex: 1; }
.setting-row i:last-child { font-size: 11px; color: var(--border); }
.setting-row:hover { background: var(--green-soft); color: var(--text); }
.setting-row.danger { color: var(--danger); }
.setting-row.danger i:first-child { color: var(--danger); }
.setting-row.danger:hover { background: rgba(229,57,53,0.06); }

/* =====================================================
   TABS
   ===================================================== */
.main-content { min-width: 0; }

.tab-nav {
    display: flex;
    gap: 4px;
    background: var(--card);
    border-radius: var(--radius);
    padding: 6px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}
.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.tab-btn:hover { background: var(--green-soft); color: var(--green); }
.tab-btn.active { background: var(--green); color: white; box-shadow: 0 3px 10px var(--green-glow); }
.tab-btn.active .tab-count { background: rgba(255,255,255,0.25); color: white; }
.tab-count {
    background: var(--green-soft);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.tab-panel { display: none; animation: fadeIn 0.25s ease; }
.tab-panel.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* =====================================================
   PANEL HEADER
   ===================================================== */
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.panel-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

/* =====================================================
   FILTER BAR
   ===================================================== */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-bar input,
.filter-bar select {
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    background: var(--card);
    color: var(--text);
    transition: border-color 0.2s;
}
.filter-bar input { flex: 1; min-width: 160px; }
.filter-bar input:focus,
.filter-bar select:focus { outline: none; border-color: var(--green); }

/* =====================================================
   PRODUCT FORM
   ===================================================== */
.product-form {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: none;
}
.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.form-header h3 {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-group { flex: 1; display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fafffe;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-soft);
}
.form-group small { font-size: 12px; color: var(--muted); }

/* ── CHIP INPUT — used for product colour/size variant entry ── */
.chip-input-wrap {
    width: 100%;
    min-height: 44px;
    padding: 6px 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fafffe;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.chip-input-wrap:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-soft);
}
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.chip-list:empty { display: none; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green-soft);
    color: var(--green-dark);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 4px 6px 4px 12px;
    font-size: 13px;
    font-weight: 600;
}
.chip-remove {
    cursor: pointer;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    font-size: 12px;
    line-height: 1;
    color: var(--text);
}
.chip-remove:hover { background: rgba(0,0,0,0.12); }
.chip-input-wrap input {
    flex: 1;
    min-width: 120px;
    border: none !important;
    padding: 6px 4px !important;
    background: transparent !important;
    box-shadow: none !important;
}
.chip-input-wrap input:focus { outline: none; box-shadow: none !important; }

.input-prefix-wrap { position: relative; }
.input-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 14px;
    pointer-events: none;
}
.input-prefix-wrap input { padding-left: 28px !important; }

/* Image drop zone */
.image-drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: var(--muted);
}
.image-drop-zone:hover { border-color: var(--green); background: var(--green-soft); }
.image-drop-zone i { font-size: 28px; color: var(--green); margin-bottom: 8px; display: block; }
.image-drop-zone p { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.image-drop-zone small { font-size: 12px; }

.image-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.image-preview img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
}

/* Multi-image staged previews (Add Product form) */
.img-preview-thumb {
    position: relative;
    width: 90px;
    height: 90px;
}
.img-preview-thumb img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    display: block;
}
.img-preview-thumb.is-cover img { border-color: var(--green); }
.img-preview-cover-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: var(--green);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 2px 6px;
    border-radius: 5px;
    text-transform: uppercase;
}
.img-preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--border);
    color: var(--danger, #d63636);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.img-preview-remove:hover { background: var(--danger, #d63636); color: #fff; border-color: var(--danger, #d63636); }

.form-actions { display: flex; gap: 12px; margin-top: 8px; }

/* =====================================================
   PRODUCTS GRID
   ===================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-image {
    width: 100%;
    height: 180px;
    background: #f0f4f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image .no-img-icon { font-size: 48px; color: #ccd8cc; }
.product-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--green);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 10px;
}
.product-status-badge.sold { background: #888; }
.product-status-badge.outofstock { background: #f59e0b; }

.product-details { padding: 16px; }
.product-category {
    display: inline-block;
    background: var(--green-soft);
    color: var(--green-dark);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}
.product-condition {
    display: inline-block;
    background: #f0f4f0;
    color: var(--muted);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 5px;
    margin-bottom: 8px;
}
.product-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--green);
    font-family: 'Syne', sans-serif;
    margin-bottom: 8px;
}
.product-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.product-meta span { display: flex; align-items: center; gap: 4px; }
.product-meta i { color: var(--green); }
.product-desc {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-actions { display: flex; gap: 8px; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: white;
    border: none;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 18px var(--green-glow); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: #f0f4f0;
    color: var(--muted);
    border: 1.5px solid var(--border);
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-ghost:hover { background: #e4ebe4; color: var(--text); }

.btn-sm {
    padding: 7px 14px !important;
    font-size: 13px !important;
    border-radius: 16px !important;
}

.icon-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    transition: background 0.2s, color 0.2s;
    font-size: 14px;
}
.icon-btn:hover { background: var(--green-soft); color: var(--green); }

/* Product card buttons */
.buy-btn, .edit-btn, .delete-btn, .restock-btn {
    flex: 1;
    padding: 9px 8px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.buy-btn { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: white; }
.buy-btn:hover { box-shadow: 0 3px 12px var(--green-glow); transform: translateY(-1px); }
.edit-btn { background: #f0f4f0; color: var(--muted); flex: 0 0 38px; }
.edit-btn:hover { background: #dceadc; color: var(--green); }
.delete-btn { background: #fff0f0; color: var(--danger); flex: 0 0 38px; }
.delete-btn:hover { background: #ffd6d6; }
.restock-btn { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.restock-btn:hover { box-shadow: 0 3px 12px rgba(245,158,11,0.35); transform: translateY(-1px); }

/* =====================================================
   REVIEWS
   ===================================================== */
.review-form-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.review-form-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}
.rating-input {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--muted);
}
.rate-stars { display: flex; gap: 4px; cursor: pointer; }
.rate-stars i { font-size: 22px; color: #ddd; transition: color 0.15s; }
.rate-stars i.active { color: var(--yellow); }
.rating-val { font-size: 13px; color: var(--muted); }
#reviewText {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 14px;
    transition: border-color 0.2s;
}
#reviewText:focus { outline: none; border-color: var(--green); }

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    background: var(--card);
    border-radius: 24px;
    padding: 22px 24px;
    box-shadow: 0 10px 28px rgba(17, 36, 17, 0.08);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(17, 36, 17, 0.11);
}

.review-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.reviewer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(37, 189, 37, 0.18), rgba(37, 189, 37, 0.32));
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    font-size: 22px;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-main {
    flex: 1;
    min-width: 0;
}

.review-topline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.reviewer-meta {
    min-width: 0;
}

.reviewer-name {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 4px;
}

.reviewer-handle {
    font-size: 14px;
    color: var(--muted);
}

.review-score-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.review-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--yellow);
    font-size: 18px;
    flex-shrink: 0;
}

.review-rating .empty {
    color: #d5dbd5;
}

.review-date {
    font-size: 14px;
    color: #7c857c;
    white-space: nowrap;
}

.review-content {
    font-size: 15px;
    color: #5f6e5f;
    line-height: 1.7;
    max-width: 760px;
    word-break: break-word;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}
.empty-state i {
    font-size: 52px;
    color: #c8d8c8;
    display: block;
    margin-bottom: 16px;
}
.empty-state h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* =====================================================
   TOAST
   ===================================================== */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1a2e1a;
    color: white;
    padding: 13px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 6px 28px rgba(0,0,0,0.25);
    border: 1px solid rgba(37,189,37,0.3);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s;
    opacity: 0;
    z-index: 9999;
    white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* =====================================================
   MODALS
   ===================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--card);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: popIn 0.3s ease;
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 0;
}
.modal-header h2 { font-size: 18px; font-weight: 700; }
.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}
.modal-body h4 { color: var(--text); margin: 16px 0 6px; font-size: 15px; }
.modal-body h4:first-child { margin-top: 0; }
.modal-footer {
    padding: 16px 24px 22px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Contact modal phone display */
.phone-display {
    background: var(--green-soft);
    border: 1px solid rgba(37,189,37,0.2);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    margin: 16px 0;
}
.phone-display i { font-size: 28px; color: var(--green); display: block; margin-bottom: 8px; }
.phone-display h3 { font-size: 26px; font-weight: 800; color: var(--text); }
.phone-display p { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .profile-body { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
    .sidebar .side-card { margin-bottom: 0; }
    .hero-stats { width: 100%; justify-content: stretch; }
    .hero-stat { flex: 1; }
}

@media (max-width: 768px) {
    .main-header { padding: 0 16px; }
    .nav-links { display: none; }
    .profile-hero { padding: 24px 16px; }
    .hero-content { flex-direction: column; align-items: flex-start; gap: 20px; }
    .hero-stats { width: 100%; }
    .hero-stat { padding: 14px 16px; }
    .profile-body { padding: 0 12px; margin: 16px auto; }
    .tab-btn span:not(.tab-count) { display: none; }
    .tab-btn { padding: 10px 14px; }
    .form-row { flex-direction: column; gap: 0; }
    .products-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   MOBILE RESPONSIVE FIXES
   ================================================================ */

/* ---- Header ---- */
@media (max-width: 768px) {
    .main-header {
        padding: 0 12px;
        height: 56px;
    }
    .nav-links { display: none; }
    .logo-text { font-size: 18px; }
    .header-right { gap: 6px; }
    .logout-btn { font-size: 12px; padding: 6px 10px; }
    .logout-btn i { display: none; }
    .notif-btn { width: 34px; height: 34px; }
}

/* ---- Hero banner ---- */
@media (max-width: 768px) {
    .profile-hero { padding: 20px 14px 16px; }
    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        text-align: center;
    }
    .avatar { width: 82px; height: 82px; font-size: 32px; }
    .hero-info { min-width: unset; width: 100%; }
    .hero-name-row { justify-content: center; flex-wrap: wrap; }
    .hero-name-row h1 { font-size: 20px; }
    .hero-fullname { font-size: 13px; }
    .hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .hero-meta span { font-size: 12px; }
    .hero-stats {
        width: 100%;
        border-radius: 10px;
        overflow: hidden;
    }
    .hero-stat { padding: 12px 14px; flex: 1; }
    .hstat-num  { font-size: 20px; }
    .hstat-label { font-size: 10px; }
}

/* ---- Profile body layout ---- */
@media (max-width: 1024px) {
    .profile-body {
        grid-template-columns: 1fr;
        padding: 0 12px;
        margin: 14px auto;
        gap: 14px;
    }
    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 12px;
    }
    .sidebar .side-card { margin-bottom: 0; }
}

/* ---- Tab nav ---- */
@media (max-width: 600px) {
    .tab-nav {
        gap: 2px;
        padding: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }
    .tab-btn {
        flex-shrink: 0;
        padding: 8px 10px;
        font-size: 12px;
        gap: 4px;
    }
    .tab-btn i { display: block; }
    /* hide text labels on very small screens, keep icons */
    .tab-btn span:not(.tab-count) { display: none; }
}

/* ---- Product form ---- */
@media (max-width: 600px) {
    .product-form { padding: 16px; }
    .form-row { flex-direction: column; gap: 0; }
    .form-actions { flex-direction: column; }
    .form-actions button { width: 100%; }
}

/* ---- Products grid ---- */
@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }
    .product-card .product-image { height: 130px; }
    .product-card .product-name  { font-size: 12px; }
    .product-card .product-price { font-size: 16px; }
    .product-card .product-details { padding: 10px; gap: 4px; }
    .product-card .product-desc { display: none; }
    .product-actions { gap: 6px; }
    .product-actions button { padding: 7px 6px; font-size: 11px; }
}

/* ---- Filter bar ---- */
@media (max-width: 600px) {
    .filter-bar { flex-direction: column; }
    .filter-bar input,
    .filter-bar select { width: 100%; }
}

/* ---- Side cards ---- */
@media (max-width: 480px) {
    .side-card { padding: 16px; }
    .sidebar { grid-template-columns: 1fr; }
}

/* ---- Panel header ---- */
@media (max-width: 480px) {
    .panel-header { flex-wrap: wrap; gap: 10px; }
    .panel-header h2 { font-size: 17px; }
    .panel-header .btn-primary { font-size: 13px; padding: 8px 14px; }
    .review-item { padding: 18px; border-radius: 20px; }
    .review-head { gap: 12px; }
    .reviewer-avatar { width: 48px; height: 48px; flex-basis: 48px; }
    .review-topline { flex-direction: column; gap: 10px; }
    .review-score-wrap { gap: 10px; justify-content: flex-start; }
    .reviewer-name { font-size: 16px; }
    .review-rating { font-size: 16px; }
    .review-date,
    .reviewer-handle,
    .review-content { font-size: 13px; }
}

/* ---- Orders ---- */
.order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--card);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    gap: 10px;
    flex-wrap: wrap;
}
.order-row-left { display: flex; flex-direction: column; gap: 3px; }
.order-row-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-ref { font-family: monospace; font-size: 13px; font-weight: 700; color: var(--text); }
.order-items-summary { font-size: 12px; color: var(--muted); }
.order-total { font-weight: 700; color: var(--green); font-size: 15px; }
.order-status-badge {
    font-size: 11px; font-weight: 700; padding: 3px 10px;
    border-radius: 12px; text-transform: uppercase; letter-spacing: 0.4px;
}
.status-paid        { background: #d4edda; color: #155724; }
.status-pending_payment { background: #fff3cd; color: #856404; }
.status-packaging   { background: #cce5ff; color: #004085; }
.status-dispatched  { background: #e8d5ff; color: #5a2d91; }
.status-delivered   { background: #d4edda; color: #155724; }
.status-refunded,
.status-refund_requested { background: #f8d7da; color: #721c24; }
.orders-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.orders-summary-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.orders-summary-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.orders-summary-card strong {
    color: var(--text);
    font-size: 24px;
    line-height: 1.1;
}
.orders-summary-card small {
    color: var(--muted);
    font-size: 12px;
}
.orders-section-title {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    margin: 16px 0 8px;
}

/* ---- Activity rows ---- */
.activity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--card);
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 6px;
}
.activity-text { color: var(--text); }
.activity-date { font-size: 11px; color: var(--muted); }

@media (max-width: 720px) {
    .orders-summary { grid-template-columns: 1fr; }
}

/* ================================================================
   OWN PRODUCT BUTTON
   ================================================================ */
.own-product-btn {
    flex: 1;
    padding: 9px 8px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #f8fdf8;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.own-product-btn i { color: var(--green); }

/* ================================================================
   SWITCH ROLE — 30-day lock
   ================================================================ */

.setting-row-locked {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

.role-lock-msg {
    font-size: 11px;
    font-weight: 700;
    color: var(--danger, #e53935);
    background: rgba(229,57,53,0.1);
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: auto;
    margin-right: 6px;
    white-space: nowrap;
}

/* ================================================================
   CHANGE PASSWORD MODAL
   ================================================================ */

.pwd-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.pwd-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text, #1a1a1a);
    letter-spacing: 0.2px;
}

.pwd-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pwd-input {
    width: 100%;
    height: 44px;
    border: 1.5px solid var(--border, #e0e0e0);
    border-radius: 10px;
    padding: 0 42px 0 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text, #1a1a1a);
    background: white;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pwd-input:focus {
    border-color: rgb(37,189,37);
    box-shadow: 0 0 0 3px rgba(37,189,37,0.12);
}

.pwd-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s;
}
.pwd-eye:hover { color: var(--text, #1a1a1a); }

/* Strength bar */
.pwd-strength-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.pwd-strength-bar {
    flex: 1;
    height: 5px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.pwd-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s ease, background 0.3s ease;
}
.pwd-strength-fill.weak   { background: #e53935; }
.pwd-strength-fill.fair   { background: #fb8c00; }
.pwd-strength-fill.good   { background: #fdd835; }
.pwd-strength-fill.strong { background: rgb(37,189,37); }

.pwd-strength-label {
    font-size: 11px;
    font-weight: 700;
    width: 44px;
    text-align: right;
    color: #999;
}
.pwd-strength-label.weak   { color: #e53935; }
.pwd-strength-label.fair   { color: #fb8c00; }
.pwd-strength-label.good   { color: #fdd835; }
.pwd-strength-label.strong { color: rgb(37,189,37); }

/* Requirements checklist */
.pwd-requirements {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pwd-requirements li {
    font-size: 12px;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color 0.2s;
}

.pwd-requirements li i {
    font-size: 7px;
    transition: color 0.2s;
}

.pwd-requirements li.met {
    color: rgb(37,189,37);
}

.pwd-requirements li.met i::before {
    content: "\f00c";   /* fa-check */
}

/* Match message */
.pwd-match-msg {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}
.pwd-match-msg.match-ok   { color: rgb(37,189,37); }
.pwd-match-msg.match-fail { color: #e53935; }

/* ================================================================
   VERIFICATION BUTTON STATES
   Matches .setting-row pattern from account settings card
   ================================================================ */

/* Pill label shown inside the setting-row for status */
.verif-status-pill {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
    margin-right: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Pending: amber */
.verif-status-pill.verif-pending {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #d97706;
}

/* Approved: green */
.verif-status-pill.verif-approved {
    background: var(--green-soft);
    border: 1px solid rgba(37,189,37,0.25);
    color: var(--green-dark);
}

/* Declined: red */
.verif-status-pill.verif-declined {
    background: rgba(229,57,53,0.08);
    border: 1px solid rgba(229,57,53,0.3);
    color: var(--danger);
}

/* When approved — row becomes non-interactive */
#verifActionBtn.verif-done {
    cursor: default;
    pointer-events: none;
}
#verifActionBtn.verif-done:hover {
    background: none;
}
#verifActionBtn.verif-done i:first-child {
    color: var(--green);
}

/* When pending — amber tint on icon */
#verifActionBtn.verif-pending-state i:first-child {
    color: #d97706;
}