/* =============================================
   ServiceHub Dashboard v4.0 — Premium CSS
   Font: Sora + DM Sans | Design: International Standard
   ============================================= */

/* --- VARIABLES --- */
:root {
    --sh-primary:     #4f46e5;
    --sh-primary-dark:#3730a3;
    --sh-accent:      #06b6d4;
    --sh-success:     #10b981;
    --sh-warning:     #f59e0b;
    --sh-danger:      #ef4444;
    --sh-purple:      #8b5cf6;

    --sh-bg:          #f1f5f9;
    --sh-card:        #ffffff;
    --sh-border:      #e2e8f0;
    --sh-text:        #0f172a;
    --sh-text-muted:  #64748b;
    --sh-text-light:  #94a3b8;

    --sh-radius:      14px;
    --sh-radius-sm:   8px;
    --sh-shadow:      0 1px 3px rgba(0,0,0,.06), 0 4px 20px rgba(0,0,0,.06);
    --sh-shadow-lg:   0 8px 40px rgba(0,0,0,.12);
    --sh-font:        'Sora', 'Segoe UI', sans-serif;
    --sh-font-body:   'DM Sans', 'Segoe UI', sans-serif;
    --sh-transition:  0.22s cubic-bezier(.4,0,.2,1);
}

/* --- BASE RESET --- */
.sh-wrapper *, .sh-wrapper *::before, .sh-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.sh-wrapper {
    font-family: var(--sh-font-body);
    background: var(--sh-bg);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow-lg);
    max-width: 1200px;
    margin: 24px auto;
    overflow: hidden;
    color: var(--sh-text);
    position: relative;
}

/* --- LOGIN GATE --- */
.sh-login-gate {
    font-family: var(--sh-font);
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
}
.sh-login-gate .sh-login-icon { font-size: 60px; color: var(--sh-primary); margin-bottom: 16px; }
.sh-login-gate h3 { font-size: 24px; margin-bottom: 8px; }
.sh-login-gate a { color: var(--sh-primary); text-decoration: none; font-weight: 600; }

/* --- TOAST --- */
.sh-toast-success {
    position: fixed; top: 24px; right: 24px; z-index: 99999;
    background: var(--sh-success); color: white;
    padding: 14px 24px; border-radius: var(--sh-radius-sm);
    box-shadow: var(--sh-shadow-lg);
    display: flex; align-items: center; gap: 10px;
    font-family: var(--sh-font); font-weight: 600; font-size: 15px;
    animation: shSlideIn 0.4s ease, shFadeOut 0.4s 3s forwards;
}
@keyframes shSlideIn { from{transform:translateX(120%);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes shFadeOut { to{opacity:0;transform:translateX(120%)} }

/* =============================================
   HEADER / COVER PHOTO
   ============================================= */
.sh-header {
    position: relative;
    height: 260px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 28px 32px;
    transition: background-image 0.4s ease;
}
.sh-header-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.2) 60%, rgba(79,70,229,0.3) 100%);
}

/* Bell */
.sh-bell-wrap {
    position: absolute; top: 20px; right: 20px; z-index: 10;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.sh-bell-icon { font-size: 20px; color: white; }

/* Cover edit button */
.sh-change-cover-btn {
    position: absolute; top: 20px; right: 74px; z-index: 10;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: white; transition: var(--sh-transition);
}
.sh-change-cover-btn:hover { background: rgba(255,255,255,0.3); }
.sh-change-cover-btn .dashicons { font-size: 18px; height: auto; width: auto; }

/* Identity Row */
.sh-identity {
    position: relative; z-index: 2;
    display: flex; align-items: flex-end; gap: 20px; width: 100%;
}

/* Avatar */
.sh-avatar-wrap { position: relative; flex-shrink: 0; }
.sh-avatar-img {
    width: 110px; height: 110px; border-radius: 50%;
    border: 4px solid #fff; object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    background: white;
}
.sh-avatar-edit-btn {
    position: absolute; bottom: 4px; right: 2px;
    background: var(--sh-primary); color: white;
    width: 32px; height: 32px; border-radius: 50%;
    border: 2px solid white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--sh-transition);
}
.sh-avatar-edit-btn:hover { background: var(--sh-primary-dark); transform: scale(1.1); }
.sh-avatar-edit-btn .dashicons { font-size: 14px; height: auto; width: auto; }

/* User Info */
.sh-user-info { color: white; padding-bottom: 6px; }
.sh-user-name { font-family: var(--sh-font); font-size: 26px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 4px; }
.sh-user-email { font-size: 14px; opacity: 0.82; margin-bottom: 10px; }
.sh-user-stats { display: flex; gap: 20px; font-size: 13px; opacity: 0.9; }
.sh-user-stats strong { font-family: var(--sh-font); }

/* =============================================
   NAV TABS
   ============================================= */
.sh-nav {
    background: var(--sh-card);
    border-bottom: 1px solid var(--sh-border);
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    overflow-x: auto;
}
.sh-tabs {
    list-style: none;
    display: flex;
    gap: 2px;
    align-items: stretch;
}
.sh-tab {
    display: flex; align-items: center; gap: 7px;
    padding: 16px 18px; cursor: pointer;
    font-family: var(--sh-font); font-size: 13.5px; font-weight: 500;
    color: var(--sh-text-muted);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: var(--sh-transition);
    user-select: none;
}
.sh-tab:hover { color: var(--sh-primary); }
.sh-tab.active { color: var(--sh-primary); border-bottom-color: var(--sh-primary); }
.sh-tab .dashicons { font-size: 16px; height: auto; width: auto; }
.sh-logout-btn {
    display: flex; align-items: center; gap: 7px;
    padding: 16px 18px; text-decoration: none;
    font-family: var(--sh-font); font-size: 13.5px; font-weight: 600;
    color: var(--sh-danger); border-bottom: 3px solid transparent;
    white-space: nowrap; transition: var(--sh-transition);
}
.sh-logout-btn:hover { color: #b91c1c; background: #fef2f2; }
.sh-logout-btn .dashicons { height: auto; width: auto; font-size: 16px; }

/* =============================================
   CONTENT AREA
   ============================================= */
.sh-content { padding: 32px; background: var(--sh-bg); min-height: 450px; }
.sh-pane { display: none; animation: shPaneIn 0.28s ease; }
.sh-pane.active { display: block; }
@keyframes shPaneIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* Section Header */
.sh-section-header { margin-bottom: 24px; }
.sh-section-header h3 {
    font-family: var(--sh-font); font-size: 20px; font-weight: 700;
    color: var(--sh-text); display: flex; align-items: center; gap: 10px;
    margin-bottom: 4px;
}
.sh-section-header h3 .dashicons { color: var(--sh-primary); height: auto; width: auto; font-size: 20px; }
.sh-section-header p { color: var(--sh-text-muted); font-size: 14px; }

/* =============================================
   STAT CARDS
   ============================================= */
.sh-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px; margin-bottom: 32px;
}
.sh-stat-card {
    border-radius: var(--sh-radius);
    padding: 22px 24px;
    position: relative; overflow: hidden;
    color: white; cursor: default;
    transition: var(--sh-transition);
}
.sh-stat-card:hover { transform: translateY(-3px); box-shadow: var(--sh-shadow-lg); }
.sh-card-blue   { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.sh-card-amber  { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.sh-card-green  { background: linear-gradient(135deg, #10b981, #34d399); }
.sh-card-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.sh-stat-card-inner { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.sh-stat-icon-wrap { background: rgba(255,255,255,0.2); border-radius: 12px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; }
.sh-stat-icon-wrap .dashicons { font-size: 26px; height: auto; width: auto; }
.sh-stat-details { display: flex; flex-direction: column; }
.sh-stat-number { font-family: var(--sh-font); font-size: 32px; font-weight: 700; line-height: 1; }
.sh-stat-label  { font-size: 13px; opacity: 0.88; margin-top: 4px; font-weight: 500; }
.sh-stat-wave {
    position: absolute; bottom: -20px; right: -20px;
    width: 100px; height: 100px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

/* =============================================
   TABLE
   ============================================= */
.sh-section { background: var(--sh-card); border-radius: var(--sh-radius); padding: 24px; box-shadow: var(--sh-shadow); margin-bottom: 24px; }
.sh-section h3 { font-family: var(--sh-font); font-size: 17px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.sh-section h3 .dashicons { color: var(--sh-primary); height: auto; width: auto; }
.sh-table-wrap { overflow-x: auto; }
.sh-table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 14px; }
.sh-table thead tr { background: #f8fafc; }
.sh-table th { padding: 12px 16px; text-align: left; font-family: var(--sh-font); font-size: 12px; font-weight: 600; color: var(--sh-text-muted); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--sh-border); }
.sh-table td { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; color: var(--sh-text); vertical-align: middle; }
.sh-table tr:last-child td { border-bottom: none; }
.sh-table tr:hover td { background: #f8fafc; }
.sh-td-name { display: flex; align-items: center; gap: 10px; flex-direction: column; align-items: flex-start; }
.sh-td-name small { color: var(--sh-text-muted); font-size: 12px; }
.sh-order-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.sh-order-dot.completed { background: var(--sh-success); }
.sh-order-dot.processing { background: var(--sh-primary); }
.sh-order-dot.on-hold { background: var(--sh-warning); }
.sh-td-amount { font-family: var(--sh-font); font-weight: 700; color: var(--sh-text); }
.sh-empty-row { text-align: center; color: var(--sh-text-muted); padding: 40px; }
.sh-empty-row .dashicons { margin-right: 8px; height: auto; width: auto; }

/* BADGES */
.sh-badge {
    display: inline-flex; align-items: center;
    padding: 4px 12px; border-radius: 20px;
    font-family: var(--sh-font); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.sh-badge-completed  { background: #dcfce7; color: #166534; }
.sh-badge-processing { background: #dbeafe; color: #1e40af; }
.sh-badge-on-hold    { background: #fef3c7; color: #92400e; }
.sh-badge-active     { background: #dcfce7; color: #166534; }
.sh-badge-inactive   { background: #f1f5f9; color: #64748b; }

/* =============================================
   ACTION BUTTONS (dynamic from admin)
   ============================================= */
.sh-action-buttons {
    display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px;
}
.sh-action-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 24px; border-radius: var(--sh-radius-sm);
    color: white; text-decoration: none;
    font-family: var(--sh-font); font-size: 14px; font-weight: 600;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transition: var(--sh-transition);
}
.sh-action-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); color: white; }
.sh-action-btn .dashicons { height: auto; width: auto; font-size: 17px; }

/* =============================================
   SERVICE / PRODUCT CARDS GRID
   ============================================= */
.sh-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

/* Service Card */
.sh-service-card {
    background: var(--sh-card);
    border-radius: var(--sh-radius);
    padding: 22px;
    box-shadow: var(--sh-shadow);
    border: 1px solid var(--sh-border);
    display: flex; flex-direction: column;
    transition: var(--sh-transition);
}
.sh-service-card:hover { transform: translateY(-3px); box-shadow: var(--sh-shadow-lg); }
.sh-svc-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sh-svc-order-num { font-family: var(--sh-font); font-size: 12px; font-weight: 600; color: var(--sh-text-muted); }
.sh-svc-card-title { font-family: var(--sh-font); font-size: 16px; font-weight: 700; color: var(--sh-text); margin-bottom: 14px; flex: 1; }
.sh-svc-card-meta { font-size: 13px; color: var(--sh-text-muted); display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.sh-svc-card-meta .dashicons { font-size: 14px; height: auto; width: auto; margin-right: 5px; }
.sh-btn-detail {
    background: white; border: 1.5px solid var(--sh-primary); color: var(--sh-primary);
    padding: 10px 16px; border-radius: var(--sh-radius-sm); cursor: pointer;
    font-family: var(--sh-font); font-size: 13px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: var(--sh-transition); margin-top: auto;
}
.sh-btn-detail:hover { background: var(--sh-primary); color: white; }
.sh-btn-detail .dashicons { height: auto; width: auto; font-size: 14px; }

/* Product Card */
.sh-product-card {
    background: var(--sh-card);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    border: 1px solid var(--sh-border);
    overflow: hidden;
    transition: var(--sh-transition);
}
.sh-product-card:hover { transform: translateY(-3px); box-shadow: var(--sh-shadow-lg); }
.sh-product-thumb { height: 160px; overflow: hidden; }
.sh-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sh-product-thumb-placeholder {
    width: 100%; height: 100%; background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex; align-items: center; justify-content: center;
}
.sh-product-thumb-placeholder .dashicons { font-size: 40px; color: var(--sh-primary); height: auto; width: auto; }
.sh-product-info { padding: 18px; }
.sh-product-info h4 { font-family: var(--sh-font); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.sh-product-info p { font-size: 13px; color: var(--sh-text-muted); margin-bottom: 14px; line-height: 1.6; }
.sh-product-footer { display: flex; justify-content: space-between; align-items: center; }
.sh-product-price { font-family: var(--sh-font); font-size: 18px; font-weight: 700; color: var(--sh-primary); }

/* Download Card */
.sh-download-card {
    background: var(--sh-card); border-radius: var(--sh-radius); padding: 20px;
    box-shadow: var(--sh-shadow); border: 1px solid var(--sh-border);
    display: flex; align-items: center; gap: 16px;
    transition: var(--sh-transition);
}
.sh-download-card:hover { transform: translateX(4px); box-shadow: var(--sh-shadow-lg); }
.sh-dl-icon { background: #e0e7ff; width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sh-dl-icon .dashicons { font-size: 24px; color: var(--sh-primary); height: auto; width: auto; }
.sh-dl-info { flex: 1; }
.sh-dl-info h4 { font-family: var(--sh-font); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.sh-dl-info p { font-size: 13px; color: var(--sh-text-muted); }
.sh-dl-btn {
    background: var(--sh-primary); color: white; text-decoration: none;
    padding: 9px 18px; border-radius: var(--sh-radius-sm);
    font-family: var(--sh-font); font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
    transition: var(--sh-transition);
}
.sh-dl-btn:hover { background: var(--sh-primary-dark); color: white; }
.sh-dl-btn .dashicons { height: auto; width: auto; font-size: 14px; }

/* Empty States */
.sh-empty-state-card {
    text-align: center; padding: 60px 20px;
    background: var(--sh-card); border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow); border: 1px dashed var(--sh-border);
}
.sh-empty-state-card .dashicons { font-size: 56px; color: #cbd5e1; margin-bottom: 16px; height: auto; width: auto; display: block; }
.sh-empty-state-card h4 { font-family: var(--sh-font); font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--sh-text-muted); }
.sh-empty-state-card p { font-size: 14px; color: var(--sh-text-light); }

/* =============================================
   SUPPORT CENTER
   ============================================= */
.sh-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.sh-support-channel {
    background: var(--sh-card);
    border-radius: var(--sh-radius);
    padding: 28px;
    box-shadow: var(--sh-shadow);
    border: 1px solid var(--sh-border);
}
.sh-support-channel h4 { font-family: var(--sh-font); font-size: 18px; font-weight: 700; margin: 14px 0 8px; }
.sh-support-channel > p { font-size: 14px; color: var(--sh-text-muted); margin-bottom: 18px; }
.sh-support-channel-icon {
    width: 60px; height: 60px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
}
.sh-wa-icon { background: #dcfce7; color: #16a34a; }
.sh-wa-icon svg { width: 30px; height: 30px; }
.sh-email-icon { background: #dbeafe; color: #1e40af; }
.sh-email-icon .dashicons { font-size: 30px; height: auto; width: auto; }
.sh-support-info-row {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; background: #f8fafc; border-radius: var(--sh-radius-sm);
    margin-bottom: 18px; font-size: 14px;
}
.sh-support-info-row .dashicons { color: var(--sh-primary); height: auto; width: auto; }
.sh-support-info-row a { color: var(--sh-primary); text-decoration: none; font-weight: 600; }

/* Support Form */
.sh-support-form { margin-top: 4px; }
.sh-input-group { margin-bottom: 14px; }
.sh-input-group label { display: block; font-size: 13px; font-weight: 600; color: var(--sh-text-muted); margin-bottom: 6px; }
.sh-form-input {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--sh-border); border-radius: var(--sh-radius-sm);
    font-family: var(--sh-font-body); font-size: 14px; color: var(--sh-text);
    transition: var(--sh-transition); background: #fafbfc;
    outline: none; resize: vertical;
}
.sh-form-input:focus { border-color: var(--sh-primary); background: white; box-shadow: 0 0 0 3px rgba(79,70,229,0.12); }

.sh-wa-btn {
    width: 100%; padding: 13px;
    background: #16a34a; color: white; border: none;
    border-radius: var(--sh-radius-sm); cursor: pointer;
    font-family: var(--sh-font); font-size: 15px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: var(--sh-transition);
}
.sh-wa-btn:hover { background: #15803d; transform: translateY(-1px); }
.sh-email-btn {
    width: 100%; padding: 13px;
    background: var(--sh-primary); color: white; border: none;
    border-radius: var(--sh-radius-sm); cursor: pointer;
    font-family: var(--sh-font); font-size: 15px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: var(--sh-transition);
}
.sh-email-btn:hover { background: var(--sh-primary-dark); transform: translateY(-1px); }
.sh-email-status {
    margin-top: 12px; padding: 10px 14px; border-radius: var(--sh-radius-sm);
    font-size: 13px; font-weight: 600; display: none;
}
.sh-email-status.success { background: #dcfce7; color: #166534; display: block; }
.sh-email-status.error   { background: #fef2f2; color: #991b1b; display: block; }

/* =============================================
   SETTINGS
   ============================================= */
.sh-settings-layout { display: flex; flex-direction: column; gap: 24px; }
.sh-settings-card {
    background: var(--sh-card); border-radius: var(--sh-radius); padding: 28px;
    box-shadow: var(--sh-shadow); border: 1px solid var(--sh-border);
}
.sh-settings-card h4 {
    font-family: var(--sh-font); font-size: 16px; font-weight: 700;
    display: flex; align-items: center; gap: 8px; margin-bottom: 22px;
    padding-bottom: 16px; border-bottom: 1px solid var(--sh-border);
}
.sh-settings-card h4 .dashicons { color: var(--sh-primary); height: auto; width: auto; }
.sh-photo-settings-grid { display: flex; gap: 32px; flex-wrap: wrap; }
.sh-photo-setting-item { display: flex; align-items: flex-start; gap: 18px; flex: 1; min-width: 240px; }
.sh-photo-preview-wrap { flex-shrink: 0; }
.sh-profile-preview { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sh-border); }
.sh-cover-preview-wrap { width: 140px; height: 80px; border-radius: var(--sh-radius-sm); overflow: hidden; }
.sh-cover-preview { width: 100%; height: 100%; object-fit: cover; }
.sh-photo-setting-item strong { display: block; font-family: var(--sh-font); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.sh-photo-setting-item p { font-size: 12px; color: var(--sh-text-muted); margin-bottom: 10px; }
.sh-btn-outline {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--sh-radius-sm);
    border: 1.5px solid var(--sh-border); background: white;
    font-family: var(--sh-font); font-size: 13px; font-weight: 600;
    cursor: pointer; color: var(--sh-text); transition: var(--sh-transition);
}
.sh-btn-outline:hover { border-color: var(--sh-primary); color: var(--sh-primary); }
.sh-btn-outline .dashicons { height: auto; width: auto; font-size: 14px; }

.sh-settings-row { display: flex; gap: 16px; margin-bottom: 0; }
.sh-settings-field { flex: 1; margin-bottom: 16px; }
.sh-settings-field label { display: block; font-size: 13px; font-weight: 600; color: var(--sh-text-muted); margin-bottom: 7px; }
.sh-settings-field small { display: block; font-size: 12px; color: var(--sh-text-light); margin-top: 5px; }
.sh-profile-form .sh-btn-primary { margin-top: 8px; }

/* Shared Buttons */
.sh-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--sh-radius-sm);
    background: var(--sh-primary); color: white; border: none;
    font-family: var(--sh-font); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: var(--sh-transition);
}
.sh-btn-primary:hover { background: var(--sh-primary-dark); transform: translateY(-1px); }
.sh-btn-primary .dashicons { height: auto; width: auto; font-size: 16px; }

/* =============================================
   MODALS
   ============================================= */
.sh-modal-overlay {
    display: none; position: fixed; z-index: 99999;
    inset: 0; background: rgba(15,23,42,0.65);
    backdrop-filter: blur(4px);
    justify-content: center; align-items: center;
    padding: 20px;
}
.sh-modal-overlay.sh-modal-open { display: flex; }
.sh-modal-box {
    background: white; padding: 32px; border-radius: 18px;
    width: 100%; max-width: 520px;
    position: relative; box-shadow: 0 24px 60px rgba(0,0,0,0.2);
    animation: shPopIn 0.28s cubic-bezier(.34,1.56,.64,1);
}
.sh-crop-box { max-width: 680px; }
@keyframes shPopIn { from{opacity:0;transform:scale(0.88)} to{opacity:1;transform:scale(1)} }
.sh-modal-close {
    position: absolute; top: 16px; right: 18px;
    background: #f1f5f9; border: none; width: 34px; height: 34px;
    border-radius: 50%; font-size: 20px; cursor: pointer;
    color: var(--sh-text-muted); line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: var(--sh-transition);
}
.sh-modal-close:hover { background: #e2e8f0; color: var(--sh-text); }
.sh-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 16px; margin-bottom: 18px;
    border-bottom: 1px solid var(--sh-border);
}
.sh-modal-header h3 { font-family: var(--sh-font); font-size: 18px; font-weight: 700; }
.sh-modal-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #f8fafc;
    font-size: 14px;
}
.sh-modal-row strong { color: var(--sh-text-muted); font-weight: 600; font-size: 13px; }
.sh-modal-total { font-family: var(--sh-font); font-size: 17px; font-weight: 700; color: var(--sh-primary); }
.sh-modal-items { margin-top: 16px; }
.sh-modal-items h5 { font-family: var(--sh-font); font-size: 13px; font-weight: 700; color: var(--sh-text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.sh-modal-items ul { list-style: none; }
.sh-modal-items ul li { display: flex; justify-content: space-between; padding: 8px 12px; background: #f8fafc; border-radius: 6px; margin-bottom: 4px; font-size: 14px; }
.sh-item-qty { color: var(--sh-text-muted); font-size: 13px; }
.sh-modal-alert { padding: 12px 16px; border-radius: var(--sh-radius-sm); margin-top: 16px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sh-modal-alert .dashicons { height: auto; width: auto; }
.sh-alert-success { background: #dcfce7; color: #166534; }
.sh-alert-info    { background: #e0f2fe; color: #075985; }

/* Crop Modal */
#sh-crop-cover-area, #sh-crop-avatar-area { margin: 16px 0; }
.sh-crop-actions { display: flex; gap: 12px; margin-top: 16px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .sh-header { height: auto; padding: 50px 20px 22px; }
    .sh-identity { flex-direction: column; align-items: flex-start; }
    .sh-nav { padding: 0 12px; }
    .sh-tab { padding: 14px 12px; font-size: 12px; }
    .sh-tab-label { display: none; }
    .sh-content { padding: 20px 16px; }
    .sh-stat-row { grid-template-columns: repeat(2, 1fr); }
    .sh-support-grid { grid-template-columns: 1fr; }
    .sh-settings-row { flex-direction: column; }
    .sh-photo-settings-grid { flex-direction: column; }
    .sh-action-buttons { flex-direction: column; }
    .sh-change-cover-btn { right: 74px; }
}
@media (max-width: 480px) {
    .sh-stat-row { grid-template-columns: 1fr 1fr; }
    .sh-cards-grid { grid-template-columns: 1fr; }
    .sh-modal-box { padding: 22px; }
}

/* ── EXTRA v4.5 ADDITIONS ──────────────────────────── */

/* Type tags in table */
.sh-type-tag { display:inline-flex;align-items:center;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em; }
.sh-type-service { background:#ede9fe;color:#6d28d9; }
.sh-type-product  { background:#dbeafe;color:#1e40af; }

/* Product thumbnail in card */
.sh-prd-thumb { height:140px;overflow:hidden;border-radius:10px;margin-bottom:14px; }
.sh-prd-thumb img { width:100%;height:100%;object-fit:cover; }

/* Support grid — ALWAYS side by side */
.sh-support-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    align-items:start;
}
@media(max-width:760px){ .sh-support-grid { grid-template-columns:1fr; } }

/* Notification badge on tab */
.sh-tab-notif { position:relative; }
.sh-notif-badge {
    position:absolute;top:10px;right:2px;
    background:var(--sh-danger);color:white;
    font-family:var(--sh-font);font-size:10px;font-weight:700;
    min-width:18px;height:18px;border-radius:20px;padding:0 5px;
    display:flex;align-items:center;justify-content:center;
    border:2px solid white;
}

/* Notifications list */
.sh-notifs-list { display:flex;flex-direction:column;gap:12px; }
.sh-notif-item {
    background:var(--sh-card);border-radius:var(--sh-radius);
    border:1.5px solid var(--sh-border);
    box-shadow:var(--sh-shadow);overflow:hidden;
    transition:var(--sh-transition);
}
.sh-notif-item.sh-notif-unread { border-left:4px solid var(--sh-primary); }
.sh-notif-row { display:flex;align-items:flex-start;gap:14px;padding:18px 20px; }
.sh-notif-thumb { width:72px;height:56px;border-radius:8px;overflow:hidden;flex-shrink:0; }
.sh-notif-thumb img { width:100%;height:100%;object-fit:cover; }
.sh-notif-text { flex:1;min-width:0; }
.sh-notif-top { display:flex;align-items:center;gap:10px;margin-bottom:6px;flex-wrap:wrap; }
.sh-notif-title { font-family:var(--sh-font);font-size:15px;font-weight:700;color:var(--sh-text);margin:0; }
.sh-notif-date { font-size:12px;color:var(--sh-text-light);white-space:nowrap; }
.sh-notif-unread-dot { width:8px;height:8px;border-radius:50%;background:var(--sh-primary);flex-shrink:0; }
.sh-notif-preview { font-size:13px;color:var(--sh-text-muted);line-height:1.5; }
.sh-notif-expand-btn {
    background:none;border:none;cursor:pointer;padding:4px;color:var(--sh-text-muted);
    border-radius:6px;transition:var(--sh-transition);flex-shrink:0;
}
.sh-notif-expand-btn:hover { background:#f1f5f9;color:var(--sh-primary); }
.sh-notif-expand-btn .dashicons { height:auto;width:auto;font-size:20px; }
.sh-notif-expand-btn.expanded .dashicons { transform:rotate(180deg); }
.sh-notif-body-full { padding:0 20px 20px; }
.sh-notif-full-img { width:100%;max-height:280px;object-fit:cover;border-radius:10px;margin-bottom:16px; }
.sh-notif-full-body { font-size:14px;color:var(--sh-text);line-height:1.75; }
.sh-notif-full-body h1,.sh-notif-full-body h2,.sh-notif-full-body h3 { font-family:var(--sh-font);margin-bottom:12px; }
.sh-notif-full-body a { color:var(--sh-primary); }
.sh-notif-full-body ul,.sh-notif-full-body ol { padding-left:20px;margin-bottom:12px; }

/* Fixed-size action buttons */
.sh-action-buttons { display:flex;flex-wrap:wrap;gap:14px;margin-top:8px; }
.sh-action-btn {
    display:inline-flex;align-items:center;justify-content:center;gap:10px;
    color:white;text-decoration:none;
    font-family:var(--sh-font);font-size:14px;font-weight:600;
    border-radius:var(--sh-radius-sm);
    box-shadow:0 4px 14px rgba(0,0,0,0.15);
    transition:var(--sh-transition);
    flex-shrink:0;
    /* width & height come from inline style (set by admin) */
}
.sh-action-btn:hover { filter:brightness(1.1);transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,0.2);color:white; }
.sh-action-btn .dashicons { height:auto;width:auto;font-size:17px;flex-shrink:0; }

/* ── Support channel color themes ───────────────── */
.sh-tg-channel .sh-support-channel-icon { background:#e1f0fa; color:#229ed9; }
.sh-tg-icon { background:#e1f0fa !important; }
.sh-tg-icon svg { color:#229ed9; }
.sh-dc-channel .sh-support-channel-icon { background:#eef0ff; color:#5865f2; }
.sh-dc-icon { background:#eef0ff !important; }
.sh-dc-icon svg { color:#5865f2; }
