/* Global Nurse Gateway — Public Styles */

/* ---- Design tokens ---- */
:root {
    --gng-primary: #38A8D8;
    --gng-primary-hover: #2a96c6;
    --gng-text-dark: #1d2327;
    --gng-text-body: #495057;
    --gng-text-muted: #64748b;
    --gng-text-light: #94a3b8;
    --gng-border: #e2e4e7;
    --gng-border-light: #f0f2f5;
    --gng-bg-surface: #fff;
    --gng-bg-muted: #f8f9fa;
    --gng-radius-sm: 6px;
    --gng-radius-md: 8px;
    --gng-radius-lg: 10px;
    --gng-focus-ring: 0 0 0 2px rgba(56,168,216,0.15);
    --gng-shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --gng-shadow-hover: 0 4px 16px rgba(0,0,0,0.08);
}

/* ---- Blur / subscription preview ---- */
.gng-blurred-field {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    display: inline-block;
}

.gng-blur-notice {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

.gng-nurse-card-blurred {
    position: relative;
}

/* ---- Subscription banner (search page) ---- */
.gng-subscription-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff8e1;
    border: 1px solid #f9a825;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 20px;
    position: sticky;
    top: 32px;
    z-index: 100;
}

.gng-sub-banner-text {
    font-size: 14px;
    color: #333;
}

.gng-sub-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---- Subscription card on agency dashboard ---- */
.gng-subscription-card {
    margin-bottom: 20px;
}

.gng-sub-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.gng-sub-badge-active {
    background: #e8f5e9;
    color: #1a7e3b;
}

.gng-sub-badge-preview {
    background: #fff8e1;
    color: #b06a00;
}
.gng-sub-badge-trial {
    background: #e3f2fd;
    color: #1565c0;
}

.gng-sub-status-active,
.gng-sub-status-inactive {
    padding: 4px 0;
}

/* ---- Photo upload (profile setup) ---- */
.gng-photo-upload-section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
    padding: 16px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.gng-photo-preview {
    flex: 0 0 80px;
}

.gng-photo-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
}

.gng-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 36px;
}

.gng-photo-upload-controls {
    flex: 1;
}

/* ---- Base */
.gng-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.5;
}

/* Form container */
.gng-form-container {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.gng-form-container.gng-form-wide {
    max-width: none;
}

.gng-form-container h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #1d2327 !important;
}

.gng-subtitle {
    color: #666;
    margin: 0 0 24px;
}

.gng-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1d2327;
    margin: 28px 0 14px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    letter-spacing: -0.01em;
}

.gng-section-title:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* Form fields */
.gng-form .gng-field {
    margin-bottom: 16px;
}

.gng-form label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
    color: #495057;
}

.gng-form input[type="text"],
.gng-form input[type="email"],
.gng-form input[type="password"],
.gng-form input[type="number"],
.gng-form input[type="url"],
.gng-form input[type="date"],
.gng-form input[type="month"],
.gng-form select,
.gng-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gng-form input:focus,
.gng-form select:focus,
.gng-form textarea:focus {
    outline: none;
    border-color: #38A8D8;
    box-shadow: 0 0 0 2px rgba(56,168,216,0.15);
}

.gng-form textarea {
    resize: vertical;
    max-height: 200px;
}

.gng-field-row {
    display: flex;
    gap: 16px;
}

.gng-field-row .gng-field {
    flex: 1;
}

/* Error styling */
.gng-error {
    display: block;
    color: #d32f2f;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

.gng-form input.gng-field-error,
.gng-form select.gng-field-error {
    border-color: #d32f2f;
}

/* Checkboxes — shared accent */
.gng-checkbox-field input[type="checkbox"],
.gng-checkbox-item input[type="checkbox"] {
    accent-color: #38A8D8;
}

/* Consent / standalone checkboxes */
.gng-checkbox-field label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    font-size: 13px;
    cursor: pointer;
    line-height: 1.5;
    color: #495057;
}

.gng-checkbox-field input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Multi-select option grid */
.gng-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.gng-checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400 !important;
    font-size: 13px;
    cursor: pointer;
    min-width: 160px;
    padding: 6px 10px;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.gng-checkbox-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.gng-checkbox-item input[type="checkbox"]:checked + span,
.gng-checkbox-item:has(input:checked) {
    border-color: #cbd5e1;
    background: #f8fafc;
}

/* Inline check — plain checkbox label (not a pill/tag) */
.gng-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #495057;
    cursor: pointer;
}

.gng-inline-check input[type="checkbox"] {
    accent-color: #38A8D8;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Repeatable rows (employment history, languages) */
.gng-repeatable-row {
    background: #fafbfc;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.gng-repeatable-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.gng-repeatable-row-header strong {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

/* Remove link — subtle text, not a button */
.gng-remove-link {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 2px 0;
    transition: color 0.15s;
}

.gng-remove-link:hover {
    color: #e03131;
}

/* Consent section */
.gng-consent-section {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
    margin: 24px 0;
}

.gng-consent-section h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

/* Buttons */
.gng-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    border: none;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background-color 0.15s, box-shadow 0.15s;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

.gng-btn:hover {
    filter: brightness(0.96);
}

.gng-btn:focus {
    outline: 2px solid #38A8D8;
    outline-offset: 2px;
}

.gng-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gng-btn-primary {
    background-color: #38A8D8 !important;
    color: #fff !important;
}

.gng-btn-primary:hover {
    background-color: #2a96c6 !important;
}

.gng-btn-secondary {
    background-color: #f1f3f5 !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
}

.gng-btn-secondary:hover {
    background-color: #e9ecef !important;
}

.gng-btn-danger {
    background-color: transparent;
    color: #868e96;
    border: 1px solid #dee2e6;
}

.gng-btn-danger:hover {
    background-color: #fff5f5;
    color: #c92a2a;
    border-color: #ffc9c9;
}

.gng-btn-sm {
    padding: 4px 10px !important;
    font-size: 11px !important;
}

/* Messages */
.gng-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.gng-message-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.gng-message-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.gng-message-warning {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

/* Alt action link */
.gng-alt-action {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #666;
}

.gng-alt-action a {
    color: #38A8D8;
    text-decoration: none;
}

.gng-alt-action a:hover {
    text-decoration: underline;
}

/* Dashboard */
.gng-dashboard {
    max-width: 900px;
    margin: 0 auto;
}

.gng-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.gng-dashboard-header h2 {
    margin: 0;
    color: #1d2327 !important;
    font-size: 20px;
    font-weight: 700;
}

.gng-welcome-name {
    color: #38A8D8 !important;
}

.gng-dashboard-actions {
    margin-bottom: 24px;
}

/* Cards */
.gng-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.gng-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.gng-card-header h3 {
    margin: 0;
}

.gng-card h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #1d2327;
}

/* Account page cards */
.gng-account-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}

.gng-account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.gng-account-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #38A8D8;
}

/* Standing card */
.gng-standing-info {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    justify-content: space-around;
}

.gng-standing-level {
    text-align: center;
}

.gng-level-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #38A8D8;
    line-height: 1;
}

.gng-level-label,
.gng-points-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.gng-standing-points {
    text-align: center;
}

.gng-points-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1;
}

/* Tier badges */
.gng-tier-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gng-tier-bronze {
    background: #f5e6d3;
    color: #8d6e3f;
}

.gng-tier-silver {
    background: #e8e8e8;
    color: #666;
}

.gng-tier-gold {
    background: #fff8e1;
    color: #7a6000;
}

.gng-tier-platinum {
    background: #e3f2fd;
    color: #1565c0;
}

/* Progress bar */
.gng-progress-section {
    margin-bottom: 20px;
}

.gng-progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.gng-progress-fill {
    height: 100%;
    background: #38A8D8;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.gng-progress-text {
    font-size: 13px;
    color: #666;
    margin: 6px 0 0;
}

/* Referral banner on signup page */
.gng-referral-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #eaf5fb;
    border: 1px solid #b8dff0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a5276;
    margin-bottom: 20px;
}

.gng-referral-banner svg {
    flex-shrink: 0;
    color: #38A8D8;
}

/* Referral link */
.gng-referral-link {
    border-top: 1px solid #eee;
    padding-top: 16px;
    margin-top: 16px;
}

.gng-copy-field {
    display: flex;
    gap: 8px;
}

.gng-copy-field input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 13px;
    background: #f9f9f9;
}

/* Profile table */
.gng-profile-table {
    width: 100%;
    border-collapse: collapse;
}

.gng-profile-table th {
    text-align: left;
    padding: 10px 14px;
    color: #64748b;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: 160px;
    vertical-align: top;
}

.gng-profile-table td {
    padding: 10px 14px;
    font-size: 14px;
    color: #1d2327;
}

.gng-profile-table tr:nth-child(even) {
    background: #f8f9fa;
}

.gng-profile-table tr {
    border-bottom: 1px solid #f1f3f5;
}

/* Character count */
.gng-char-count {
    font-size: 12px;
    color: #999;
    text-align: right;
    display: block;
}

/* Prefs saved */
.gng-prefs-saved {
    color: #2e7d32;
    font-size: 13px;
    margin-left: 8px;
}

/* Search page */
.gng-search-filters {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.gng-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.gng-search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gng-search-full {
    grid-column: 1 / -1;
}

.gng-search-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.gng-search-field input,
.gng-search-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 13px;
    color: #1d2327;
    background: #f9f9f9;
    transition: border-color 0.15s, background 0.15s;
    box-sizing: border-box;
}

.gng-search-field input:focus,
.gng-search-field select:focus {
    border-color: #38A8D8;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(56,168,216,0.15);
}

.gng-search-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.gng-search-field .gng-field-label-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    gap: 10px;
}

.gng-search-field .gng-field-label-row label:first-child {
    margin-bottom: 0;
    flex-shrink: 0;
}

.gng-search-field .gng-same-as-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #6d7680;
    cursor: pointer;
    user-select: none;
    background: #f6f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 7px 2px 5px;
    white-space: nowrap;
}

.gng-search-field .gng-same-as-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 2px solid #bbb;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    margin: 0;
    transition: background 0.15s, border-color 0.15s;
}

.gng-search-field .gng-same-as-toggle input[type="checkbox"]:checked {
    background: #38A8D8;
    border-color: #38A8D8;
}

.gng-search-field .gng-same-as-toggle input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gng-filter-actions {
    display: flex;
    gap: 8px;
}

/* Results */
.gng-results-header {
    margin-bottom: 16px;
    font-size: 14px;
    color: #666;
}

.gng-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* Nurse card (search result) */
.gng-nurse-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

.gng-nurse-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.gng-nurse-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.gng-nurse-card h4 {
    margin: 0 0 4px;
    font-size: 16px;
}

.gng-nurse-card .gng-nurse-meta {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px;
}

.gng-nurse-card .gng-nurse-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.gng-spec-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.gng-nurse-card .gng-nurse-details {
    font-size: 13px;
    color: #555;
}

.gng-nurse-card .gng-nurse-details span {
    display: block;
    margin-bottom: 4px;
}

.gng-housing-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Loading */
.gng-loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

.gng-empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

/* Pagination */
.gng-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

.gng-pagination button {
    padding: 8px 14px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.gng-pagination button.active {
    background: #38A8D8;
    color: #fff;
    border-color: #38A8D8;
}

.gng-pagination button:hover:not(.active) {
    background: #f5f5f5;
}

/* Responsive — tablet and below */
@media (max-width: 782px) {
    .gng-form-container {
        padding: 24px 16px;
    }

    .gng-field-row {
        flex-direction: column;
        gap: 0;
    }

    .gng-filter-grid,
    .gng-search-grid {
        grid-template-columns: 1fr;
    }

    .gng-results-grid {
        grid-template-columns: 1fr;
    }

    .gng-standing-info {
        flex-direction: column;
        text-align: center;
    }

    .gng-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .gng-copy-field {
        flex-direction: column;
    }

    .gng-share-buttons {
        flex-direction: column;
    }

    .gng-inbox-layout { grid-template-columns: 1fr; }
    .gng-thread-list { border-right: none; border-bottom: 1px solid #e2e4e7; max-height: 200px; }
    .gng-profile-hero { flex-direction: column; }
    .gng-search-toolbar { flex-direction: column; align-items: flex-start; }
    .gng-profile-contact .gng-contact-form .gng-field-row { flex-direction: column; gap: 0; }
    .gng-shortlist-page .gng-search-results { grid-template-columns: 1fr; }
}

/* Share buttons */
.gng-share-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.gng-btn-whatsapp {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.gng-btn-whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
    color: #fff;
}

.gng-btn-facebook {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.gng-btn-facebook:hover {
    background: #145dbf;
    border-color: #145dbf;
    color: #fff;
}

/* Search page heading */
.gng-search-page > h2 {
    color: #1d2327;
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
}

/* ── "Same as nationality" label row ── */
.gng-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.gng-field-label-row > label:first-child {
    margin-bottom: 0;
}

.gng-same-as-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 400;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    line-height: 1.4;
}

.gng-same-as-toggle input[type="checkbox"] {
    width: 13px;
    height: 13px;
    margin: 0;
    cursor: pointer;
    accent-color: #38A8D8;
    flex-shrink: 0;
}

/* Synced select — visually dimmed, not interactable */
select.gng-select-synced {
    opacity: 0.55;
    pointer-events: none;
}

/* ============================================================
   v1.3.0 — Shortlist, Messaging, Inbox, Public Profile, Saved Searches
   ============================================================ */

/* Nurse card actions row */
.gng-nurse-card-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* Shortlisted button state */
.gng-btn-shortlisted {
    background: #fff7e0;
    color: #b08000;
    border-color: #e8c940;
}

.gng-btn-shortlisted:hover {
    background: #fef3c7;
}

/* Modal overlay */
.gng-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gng-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.gng-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 480px;
    margin: 0 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 1;
}

.gng-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.gng-modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.gng-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 0 4px;
}

.gng-modal-close:hover { color: #333; }

.gng-modal-body {
    padding: 16px 20px;
}

.gng-modal-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid #eee;
}

.gng-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.gng-textarea:focus {
    border-color: #38A8D8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(56,168,216,0.15);
}

/* Inbox layout */
.gng-inbox-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    overflow: hidden;
    min-height: 500px;
}

.gng-thread-list {
    border-right: 1px solid #e2e4e7;
    overflow-y: auto;
    max-height: 600px;
    background: #fafbfc;
}

.gng-thread-list-header {
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    border-bottom: 1px solid #e2e4e7;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.gng-thread-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f3f3f3;
    position: relative;
}

.gng-thread-item:hover { background: #f8fcff; }
.gng-thread-item.gng-thread-active { background: #eaf5fb; border-left: 3px solid #38A8D8; }
.gng-thread-item.gng-thread-unread { font-weight: 700; }

.gng-thread-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.gng-thread-info { flex: 1; min-width: 0; }
.gng-thread-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gng-thread-sub { font-size: 11px; color: #888; }
.gng-thread-time { font-size: 11px; color: #aaa; }

.gng-unread-badge {
    background: #38A8D8;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    min-width: 20px;
    text-align: center;
}

.gng-message-pane {
    display: flex;
    flex-direction: column;
}

.gng-message-area {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gng-inbox-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #aaa;
}

.gng-message-area .gng-message {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.gng-msg-out {
    align-self: flex-end;
    background: #38A8D8;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.gng-msg-in {
    align-self: flex-start;
    background: #f0f0f0;
    color: #222;
    border-bottom-left-radius: 4px;
}

.gng-msg-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
}

.gng-message-compose {
    padding: 12px 16px;
    border-top: 1px solid #e2e4e7;
    background: #fafbfc;
}

.gng-compose-bar {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gng-compose-bar:focus-within {
    border-color: #38A8D8;
    box-shadow: 0 0 0 2px rgba(56,168,216,0.10);
}

.gng-compose-bar textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: none;
    outline: none;
    resize: none;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    padding: 12px 14px 8px;
    min-height: 44px;
    max-height: 120px;
    background: transparent;
    color: #1d2327;
}

.gng-compose-bar textarea::placeholder {
    color: #94a3b8;
}

.gng-compose-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 8px;
}

.gng-compose-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #e2e4e7;
    background: #fff;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.gng-compose-share-btn:hover {
    color: #38A8D8;
    border-color: #38A8D8;
}

.gng-compose-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border-radius: 6px;
    border: none;
    background: #38A8D8;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.gng-compose-send-btn:hover {
    background: #2a96c6;
}

.gng-compose-send-btn svg {
    width: 14px;
    height: 14px;
}

/* Public profile toggle */
.gng-public-profile-toggle { margin-bottom: 12px; }

.gng-profile-status-text {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px;
}

.gng-profile-url-card {
    margin-top: 12px;
    padding: 12px 14px;
    background: #f0f8ff;
    border: 1px solid #bde0f5;
    border-radius: 8px;
}

.gng-profile-url-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 4px;
}

.gng-profile-url-link {
    font-size: 13px;
    color: #38A8D8;
    word-break: break-all;
}
.gng-date-range-row { display: flex; gap: 16px; flex-wrap: wrap; }
.gng-date-range-row > div { display: flex; flex-direction: column; gap: 4px; }
.gng-date-range-row label { font-size: 12px; font-weight: 600; color: #555; }

/* Shortlist page */
.gng-shortlist-count { font-size: 13px; color: #64748b; margin-bottom: 20px; }

.gng-shortlist-page .gng-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Result card (shortlist nurse cards) */
.gng-result-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gng-result-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

/* Avatar in result cards */
.gng-result-card .gng-card-photo,
.gng-result-card .gng-photo-placeholder {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50%;
    margin-bottom: 14px;
}
.gng-result-card .gng-photo-placeholder {
    background: #f0f2f5 !important;
    border: 2px solid #e2e4e7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}
.gng-result-card .gng-photo-placeholder .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #94a3b8;
}

/* Card body in result cards */
.gng-result-card .gng-card-body {
    width: 100%;
    margin-bottom: 12px;
}
.gng-result-card .gng-card-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}
.gng-result-card .gng-card-name {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1d2327 !important;
    text-decoration: none !important;
}
.gng-result-card .gng-card-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}
.gng-result-card .gng-card-meta span {
    display: inline;
}
.gng-result-card .gng-card-meta span + span::before {
    content: "\00b7";
    margin: 0 6px;
    color: #cbd5e1;
}
.gng-result-card .gng-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

/* Card actions in result cards */
.gng-result-card .gng-card-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f2f5;
}
.gng-result-card .gng-card-actions .gng-btn {
    padding: 6px 14px !important;
    font-size: 12px !important;
    border-radius: 6px;
    flex: 0 0 auto;
}

.gng-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.gng-page-header h2 {
    margin: 0;
    color: #1d2327 !important;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none !important;
    border: none !important;
}
.gng-page-header h2 a {
    color: inherit !important;
    text-decoration: none !important;
}

/* Back / secondary link in page header */
.gng-page-header .gng-btn-secondary {
    background: none !important;
    border: none !important;
    color: #64748b !important;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 0 !important;
    box-shadow: none !important;
}
.gng-page-header .gng-btn-secondary:hover {
    color: #38A8D8 !important;
}

/* Search toolbar */
.gng-search-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.gng-saved-searches-dropdown { position: relative; }

.gng-saved-searches-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 6px 0;
}

.gng-saved-search-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
}

.gng-saved-search-item:hover { background: #f5f5f5; }

.gng-saved-search-label {
    flex: 1;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gng-delete-saved-search {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
    line-height: 1;
}

.gng-delete-saved-search:hover { color: #c00; }

/* Agency dashboard saved searches list */
.gng-saved-search-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gng-saved-search-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.gng-saved-search-list li:last-child { border-bottom: none; }
.gng-saved-search-name { flex: 1; font-size: 14px; font-weight: 600; }

/* Public nurse profile page */
.gng-public-profile {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 24px;
}

.gng-profile-hero {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
    padding: 28px;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.gng-profile-photo-lg {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #38A8D8;
}

.gng-photo-placeholder-lg {
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gng-photo-placeholder-lg .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #94a3b8;
}

.gng-profile-name {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #1d2327;
}

.gng-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.gng-profile-meta strong {
    font-weight: 600;
    color: #495057;
}

.gng-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.gng-profile-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.gng-profile-section {
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.gng-profile-section h2 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 12px;
}

.gng-profile-section p {
    font-size: 14px;
    line-height: 1.7;
    color: #495057;
    margin: 0;
}

.gng-spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gng-profile-cta {
    text-align: center;
    padding: 24px;
    background: #f0f8ff;
    border-radius: 10px;
    border: 1px solid #bde0f5;
    margin-top: 24px;
}

.gng-profile-cta p {
    margin-bottom: 12px;
    color: #64748b;
    font-size: 14px;
}

.gng-profile-cta .gng-btn { margin: 0 4px; }

/* Portfolio link */
.gng-portfolio-link {
    color: #38A8D8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.gng-portfolio-link:hover {
    text-decoration: underline;
}

/* Public profile contact form */
.gng-profile-contact .gng-contact-form .gng-field {
    margin-bottom: 14px;
}
.gng-profile-contact .gng-contact-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}
.gng-profile-contact .gng-contact-form input,
.gng-profile-contact .gng-contact-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.15s;
}
.gng-profile-contact .gng-contact-form input:focus,
.gng-profile-contact .gng-contact-form textarea:focus {
    outline: none;
    border-color: #38A8D8;
    box-shadow: 0 0 0 2px rgba(56,168,216,0.15);
}
.gng-profile-contact .gng-contact-form .gng-field-row {
    display: flex;
    gap: 14px;
}
.gng-profile-contact .gng-contact-form .gng-field-row .gng-field {
    flex: 1;
}

/* Standalone profile page body */
.gng-profile-page-body {
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1d2327;
    -webkit-font-smoothing: antialiased;
}

.gng-profile-page-wrap {
    min-height: 100vh;
}

/* Profile page topbar */
.gng-profile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #0d0d0d;
}

.gng-profile-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.gng-profile-topbar-mark {
    background: #38A8D8;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 7px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.gng-profile-topbar-actions {
    display: flex;
    gap: 8px;
}

/* Employment timeline */
.gng-employment-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gng-timeline-item {
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #38A8D8;
}

.gng-timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 2px;
}

.gng-timeline-sub {
    font-size: 13px;
    color: #64748b;
}

.gng-timeline-date {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Profile page badge variants */
.gng-badge-available {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
}

/* Profile meta separator dots */
.gng-profile-meta .gng-meta-item + .gng-meta-item::before {
    content: "\00b7";
    margin: 0 8px;
    color: #cbd5e1;
}

/* Unread dot in action buttons */
.gng-unread-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e03c3c;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    margin-left: 4px;
}

/* Header actions row */
.gng-header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Reusable layout helpers — replaces common inline styles */
.gng-card-subsection {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e4e7;
}
.gng-inline-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.gng-inline-row-end {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.gng-status-msg {
    font-size: 13px;
    display: block;
    margin-top: 8px;
}
.gng-contact-msg {
    margin-left: 10px;
    font-size: 13px;
}
.gng-inline-msg {
    display: none;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
}
.gng-external-link-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-left: 4px;
}

/* ── Pipeline Tabs ─────────────────────────────────────────── */
.gng-pipeline-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e2e4e7;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.gng-pipeline-tab {
    padding: 10px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #646970;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}
.gng-pipeline-tab:hover {
    color: #1d2327;
}
.gng-pipeline-tab.active {
    color: #38A8D8;
    border-bottom-color: #38A8D8;
    font-weight: 600;
}
.gng-tab-count {
    display: inline-block;
    background: #f0f0f1;
    color: #646970;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 4px;
}
.gng-pipeline-tab.active .gng-tab-count {
    background: #e1f3fa;
    color: #38A8D8;
}
.gng-card-pipeline {
    padding: 6px 0;
}
.gng-pipeline-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}
.gng-pipeline-select:focus {
    border-color: #38A8D8;
    outline: none;
    box-shadow: 0 0 0 1px #38A8D8;
}
.gng-page-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ── Available Now Badge ───────────────────────────────────── */
.gng-badge-available-now {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    white-space: nowrap;
}
.gng-pulse-dot {
    width: 7px;
    height: 7px;
    background: #4caf50;
    border-radius: 50%;
    display: inline-block;
    animation: gng-pulse 1.5s ease-in-out infinite;
}
@keyframes gng-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ── Subscription Gating UI ────────────────────────────────── */
.gng-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.gng-subscribe-cta-btn {
    background: #e2e4e7;
    color: #646970;
    border: 1px solid #dcdcde;
    font-size: 12px;
}
.gng-upsell-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fd 100%);
    border: 2px dashed #38A8D8;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    margin: 0;
}
.gng-upsell-card .gng-upsell-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.gng-upsell-card h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #1d2327;
}
.gng-upsell-card p {
    margin: 0 0 16px;
    color: #646970;
    font-size: 14px;
}
.gng-subscription-cta-banner {
    background: #fef9e7;
    border: 1px solid #f0c674;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 16px;
}
.gng-subscription-cta-banner p {
    margin: 0 0 12px;
    color: #5a4e00;
    font-weight: 500;
}

/* ── Quick Filter Bar ──────────────────────────────────────── */
.gng-quick-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.gng-btn-available-filter {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    font-weight: 600;
}
.gng-btn-available-filter:hover {
    background: #c8e6c9;
}
.gng-btn-available-filter.active {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}

/* Quick filter checkboxes */
.gng-quick-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    cursor: pointer;
    color: #555;
}
.gng-quick-checkbox input {
    margin: 0;
}

/* ---- Metric cards (agency dashboard) ---- */
.gng-metric-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.gng-metric-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gng-metric-card:hover {
    border-color: #38A8D8;
    box-shadow: 0 2px 8px rgba(56,168,216, 0.1);
}
.gng-metric-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #38A8D8;
    line-height: 1.2;
}
.gng-metric-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ---- Pipeline bar (dashboard) ---- */
.gng-pipeline-bar {
    display: flex;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f0f0f0;
}
.gng-pipeline-segment {
    min-width: 4px;
    transition: width 0.3s;
}
.gng-pipeline-seg-new { background: #90caf9; }
.gng-pipeline-seg-contacted { background: #80cbc4; }
.gng-pipeline-seg-interviewing { background: #ffcc02; }
.gng-pipeline-seg-credentialing { background: #ff9800; }
.gng-pipeline-seg-placed { background: #4caf50; }
.gng-pipeline-seg-rejected { background: #ef5350; }

.gng-pipeline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #555;
}
.gng-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.gng-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* ---- Activity feed (dashboard) ---- */
.gng-activity-feed {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gng-activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.gng-activity-item:last-child {
    border-bottom: none;
}
.gng-activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.gng-activity-text {
    flex: 1;
}
.gng-activity-time {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* ---- Notify toggle (saved search bell) ---- */
.gng-notify-toggle {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    transition: color 0.2s, border-color 0.2s;
}
.gng-notify-toggle:hover {
    color: #38A8D8;
    border-color: #38A8D8;
}
.gng-notify-toggle.active {
    color: #38A8D8;
    border-color: #38A8D8;
    background: #e3f2fd;
}

/* ---- Activity badges ---- */
.gng-badge-new {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}
.gng-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #2e7d32;
}
.gng-active-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4caf50;
    display: inline-block;
}
.gng-badge-inactive {
    display: inline-block;
    font-size: 11px;
    color: #999;
}

/* ---- Verified badge ---- */
.gng-badge-verified {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    cursor: default;
}

/* ---- Template picker ---- */
.gng-template-picker-wrap {
    margin-bottom: 8px;
}
.gng-template-picker {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}

/* ---- Responsive: metric cards ---- */
@media (max-width: 768px) {
    .gng-metric-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .gng-quick-filters {
        flex-wrap: wrap;
    }
}

/* ======================================
   Tier 3: Nurse Engagement & Gamification
   ====================================== */

/* ---- Profile Completeness Meter ---- */
.gng-profile-meter-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}
.gng-profile-meter {
    background: #e9ecef;
    border-radius: 8px;
    height: 16px;
    overflow: hidden;
    margin-bottom: 8px;
}
.gng-profile-meter-bar {
    height: 100%;
    border-radius: 8px;
    transition: width 0.4s ease;
    min-width: 2%;
}
.gng-profile-meter-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}
.gng-profile-meter-score {
    font-size: 22px;
    font-weight: 700;
}
.gng-profile-meter-label {
    font-size: 13px;
    font-weight: 600;
}
.gng-missing-list {
    margin-top: 10px;
}
.gng-missing-list h4 {
    font-size: 13px;
    margin: 0 0 6px;
    color: #555;
}
.gng-missing-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gng-missing-list li {
    padding: 4px 0;
    font-size: 13px;
    color: #666;
}
.gng-missing-list li::before {
    content: "\2022";
    color: #38A8D8;
    font-weight: bold;
    margin-right: 6px;
}
.gng-missing-list a {
    color: #38A8D8;
    text-decoration: none;
}
.gng-missing-list a:hover {
    text-decoration: underline;
}

/* ---- Job Readiness Checklist ---- */
.gng-readiness-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}
.gng-badge-job-ready-inline {
    color: #38A8D8;
    font-weight: 600;
    font-size: 14px;
    margin: 8px 0 12px;
}
.gng-readiness-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gng-readiness-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.gng-readiness-item:last-child {
    border-bottom: none;
}
.gng-readiness-icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 14px;
}
.gng-readiness-item.complete .gng-readiness-icon {
    color: #28a745;
}
.gng-readiness-item.incomplete .gng-readiness-icon {
    color: #dc3545;
}
.gng-readiness-item.incomplete a {
    color: #38A8D8;
    text-decoration: none;
    font-size: 12px;
    margin-left: auto;
}
.gng-readiness-item.incomplete a:hover {
    text-decoration: underline;
}

/* ---- Profile Views Card ---- */
.gng-views-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}
.gng-views-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
    justify-content: space-around;
}
.gng-views-stat {
    text-align: center;
}
.gng-views-count {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #38A8D8;
}
.gng-views-label {
    display: block;
    font-size: 12px;
    color: #888;
}
.gng-who-viewed h4 {
    font-size: 13px;
    margin: 0 0 8px;
    color: #555;
}
.gng-who-viewed-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gng-who-viewed-list li {
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}
.gng-who-viewed-list li:last-child {
    border-bottom: none;
}
.gng-who-viewed-date {
    color: #999;
    font-size: 12px;
}
.gng-who-viewed-gated {
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin: 0;
}

/* ---- Leaderboard (full page) ---- */
.gng-leaderboard {
    max-width: 700px;
    margin: 0 auto;
}
.gng-leaderboard-timeframe {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.gng-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}
.gng-leaderboard-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #38A8D8;
    color: #38A8D8;
    font-size: 13px;
    font-weight: 600;
}
.gng-leaderboard-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.gng-leaderboard-table tr:hover {
    background: #f8f9fa;
}
.gng-leaderboard-rank {
    font-weight: 700;
    color: #38A8D8;
}
.gng-leaderboard-own-rank {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f0f8ff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

/* ---- Leaderboard Widget (dashboard) ---- */
.gng-leaderboard-widget h3 {
    margin-top: 0;
    margin-bottom: 12px;
}
.gng-leaderboard-mini {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gng-leaderboard-mini li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.gng-leaderboard-mini li:last-child {
    border-bottom: none;
}
.gng-leaderboard-mini .gng-leaderboard-rank {
    font-weight: 700;
    min-width: 28px;
}
.gng-leaderboard-mini .gng-leaderboard-count {
    margin-left: auto;
    font-size: 12px;
    color: #888;
}

/* ---- Search Card Badges ---- */
.gng-badge-allstar {
    display: inline-block;
    background: #28a745;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}
.gng-badge-job-ready {
    display: inline-block;
    background: #38A8D8;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ---- Responsive: Tier 3 ---- */
@media (max-width: 600px) {
    .gng-views-stats {
        flex-direction: column;
        gap: 10px;
    }
    .gng-leaderboard-timeframe {
        flex-wrap: wrap;
    }
    .gng-who-viewed-list li {
        flex-direction: column;
        gap: 2px;
    }
}

/* ==========================================================================
   v2.1.0 — Notification Bell, Message Toast, Resume Upload, Badges
   ========================================================================== */

/* ---- Notification Bell ---- */
.gng-notif-bell-wrap {
    position: relative;
    display: inline-block;
    margin-left: 12px;
    vertical-align: middle;
}
.gng-notif-bell-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    position: relative;
    color: #555;
    transition: color .2s;
}
.gng-notif-bell-btn:hover {
    color: #38A8D8;
}
.gng-notif-bell-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}
.gng-notif-badge {
    position: absolute;
    top: 2px;
    right: 0;
    background: #e53e3e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
    pointer-events: none;
}

/* ---- Notification Dropdown ---- */
.gng-notif-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    max-height: 420px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 1000;
    overflow: hidden;
}
.gng-notif-dropdown.gng-notif-open {
    display: block;
}
.gng-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 14px;
    color: #1a202c;
}
.gng-notif-mark-all {
    background: none;
    border: none;
    color: #38A8D8;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    padding: 0;
}
.gng-notif-mark-all:hover {
    text-decoration: underline;
}
.gng-notif-list {
    overflow-y: auto;
    max-height: 360px;
}
.gng-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
    color: inherit;
}
.gng-notif-item:hover {
    background: #f8fafc;
}
.gng-notif-item.gng-notif-unread {
    background: #eff6ff;
}
.gng-notif-item.gng-notif-unread:hover {
    background: #dbeafe;
}
.gng-notif-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
}
.gng-notif-icon-message {
    background: #38A8D8;
}
.gng-notif-icon-view {
    background: #9f7aea;
}
.gng-notif-icon-shortlist {
    background: #ed8936;
}
.gng-notif-icon-standing {
    background: #48bb78;
}
.gng-notif-content {
    flex: 1;
    min-width: 0;
}
.gng-notif-title {
    font-size: 13px;
    line-height: 1.4;
    color: #2d3748;
    margin: 0 0 2px 0;
}
.gng-notif-item.gng-notif-unread .gng-notif-title {
    font-weight: 600;
}
.gng-notif-time {
    font-size: 11px;
    color: #a0aec0;
}
.gng-notif-empty {
    padding: 32px 16px;
    text-align: center;
    color: #a0aec0;
    font-size: 13px;
}
.gng-notif-loading {
    padding: 24px 16px;
    text-align: center;
    color: #a0aec0;
    font-size: 13px;
}

/* ---- Message Unread Badge (on dashboard Messages button) ---- */
.gng-msg-link-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.gng-msg-unread-badge {
    background: #e53e3e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 5px;
    margin-left: 6px;
}

/* ---- Message Sent Toast ---- */
.gng-msg-toast {
    text-align: center;
    padding: 8px 16px;
    margin: 8px auto;
    background: #c6f6d5;
    color: #276749;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    max-width: 200px;
    animation: gngToastIn .3s ease;
}
@keyframes gngToastIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Resume Upload ---- */
.gng-resume-field {
    margin-bottom: 20px;
}
.gng-resume-current {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #4a5568;
}
.gng-resume-current a {
    color: #38A8D8;
    font-weight: 500;
}
.gng-resume-upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.gng-resume-upload-row label.gng-btn {
    cursor: pointer;
    margin: 0;
}
.gng-resume-status {
    font-size: 13px;
    color: #718096;
}
.gng-resume-status.gng-status-success {
    color: #276749;
    font-weight: 500;
}
.gng-resume-status.gng-status-error {
    color: #c53030;
    font-weight: 500;
}
.gng-field-hint {
    font-size: 12px;
    color: #a0aec0;
    margin-top: 4px;
}

/* ---- LinkedIn Share Button ---- */
.gng-btn-linkedin {
    background: #0077b5;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background .2s;
}
.gng-btn-linkedin:hover {
    background: #005e93;
    color: #fff;
}

/* ---- Notification loading spinner ---- */
.gng-notif-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #38A8D8;
    border-top-color: transparent;
    border-radius: 50%;
    animation: gng-spin 0.6s linear infinite;
    margin-left: 6px;
    vertical-align: middle;
}
@keyframes gng-spin {
    to { transform: rotate(360deg); }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .gng-notif-loading::after,
    .gng-pulse-dot {
        animation: none;
    }
    .gng-msg-toast {
        animation: none;
    }
    .gng-result-card {
        transition: none;
    }
    .gng-form-step {
        animation: none;
    }
}

/* ---- Search filter groups: v2.4.0 ---- */
.gng-filter-group {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.gng-filter-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-align: left;
    transition: background 0.15s;
}

.gng-filter-group-toggle:hover {
    background: #f3f4f6;
}

.gng-filter-group-toggle:focus-visible {
    outline: 2px solid #38A8D8;
    outline-offset: -2px;
}

.gng-filter-toggle-icon {
    font-size: 10px;
    color: #9ca3af;
    transition: transform 0.2s;
}

.gng-filter-group-open .gng-filter-toggle-icon {
    transform: rotate(180deg);
}

.gng-filter-group-body {
    padding: 12px 16px 16px;
}

/* ---- Profile step wizard: v2.4.0 ---- */
.gng-profile-progress {
    margin-bottom: 24px;
}

.gng-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 4px;
}

.gng-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 2px;
    flex: 1;
    min-width: 0;
}

.gng-step-dot:focus-visible {
    outline: 2px solid #38A8D8;
    outline-offset: 2px;
    border-radius: 4px;
}

.gng-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.gng-step-dot.gng-step-active .gng-step-num {
    background: #38A8D8;
    color: #fff;
}

.gng-step-dot.gng-step-complete .gng-step-num {
    background: #10b981;
    color: #fff;
}

.gng-step-label {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.gng-step-dot.gng-step-active .gng-step-label {
    color: #38A8D8;
    font-weight: 600;
}

.gng-step-dot.gng-step-complete .gng-step-label {
    color: #10b981;
}

.gng-step-indicator {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}

.gng-step-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.gng-step-nav #gng-step-next,
.gng-step-nav #gng-step-submit {
    margin-left: auto;
}

.gng-form-step {
    animation: gng-step-fade 0.25s ease;
}

@keyframes gng-step-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Keyboard focus styles: v2.4.0 ---- */
.gng-thread-item:focus-visible {
    outline: 2px solid #38A8D8;
    outline-offset: -2px;
}

.gng-notif-item:focus-visible {
    outline: 2px solid #38A8D8;
    outline-offset: -2px;
}

.gng-notif-bell-btn[aria-expanded="true"] {
    background: rgba(56,168,216, 0.1);
    border-radius: 50%;
}

/* ---- Standing explainer: v2.3.0 ---- */
.gng-standing-explainer {
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

.gng-standing-explainer-toggle {
    background: none;
    border: none;
    color: #38A8D8;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    text-align: left;
}

.gng-standing-explainer-toggle:hover {
    color: #2b8ab3;
}

.gng-toggle-icon {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.gng-standing-details {
    margin-top: 12px;
}

.gng-explainer-intro {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
}

.gng-explainer-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 14px;
}

.gng-explainer-table th,
.gng-explainer-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.gng-explainer-table thead th {
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gng-explainer-table td:last-child {
    text-align: center;
    font-weight: 600;
    color: #38A8D8;
}

.gng-explainer-table thead th:last-child {
    text-align: center;
}

.gng-explainer-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gng-explainer-benefits li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
}

.gng-explainer-benefits li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.gng-standing-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: #1f2937;
}

/* ---- Responsive: v2.1.0 + v2.4.0 ---- */
@media (max-width: 600px) {
    .gng-notif-dropdown {
        width: 300px;
        right: -60px;
    }
    .gng-resume-upload-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .gng-step-label {
        display: none;
    }
    .gng-progress-steps {
        gap: 2px;
    }
    .gng-step-num {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

