/* ============================================================================
   SALARY GUIDE WIDGET STYLES - Careerscape Branded
   Version: 1.0.0
   ============================================================================ */

:root {
    --sg-primary: #F97316;
    --sg-primary-dark: #EA580C;
    --sg-primary-light: #FFEDD5;
    --sg-dark: #1E293B;
    --sg-dark-deep: #0F172A;
    --sg-text: #334155;
    --sg-text-light: #64748B;
    --sg-text-muted: #94A3B8;
    --sg-border: #E2E8F0;
    --sg-bg: #F8FAFC;
    --sg-white: #FFFFFF;
    --sg-radius: 12px;
    --sg-radius-lg: 16px;
    --sg-radius-xl: 24px;
    --sg-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --sg-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --sg-shadow-orange: 0 10px 15px -3px rgba(249, 115, 22, 0.25);
}

/* Prevent iOS Safari zoom on input focus */
@supports (-webkit-touch-callout: none) {
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ============================================================================
   HERO WIDGET
   ============================================================================ */
.sg-hero {
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-hero-container {
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

@media (max-width: 968px) {
    .sg-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .sg-hero-content {
        align-items: center;
    }
    
    .sg-hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
}

.sg-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: #FDBA74;
    margin: 0 0 24px 0;
    width: fit-content;
}

.sg-hero-badge svg {
    width: 16px;
    height: 16px;
    color: #34D399;
}

.sg-hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 24px 0;
}

@media (max-width: 768px) {
    .sg-hero-title {
        font-size: 36px;
    }
}

.sg-hero-title-line1 {
    display: block;
    color: white;
}

.sg-hero-title-accent {
    display: block;
    color: var(--sg-primary);
}

.sg-hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: #CBD5E1;
    margin: 0 0 32px 0;
    max-width: 520px;
}

@media (max-width: 968px) {
    .sg-hero-description {
        margin-left: auto;
        margin-right: auto;
    }
}

.sg-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 968px) {
    .sg-hero-buttons {
        justify-content: center;
    }
}

.sg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: var(--sg-btn-padding, 14px 28px);
    font-size: var(--sg-btn-font-size, 16px);
    font-weight: var(--sg-btn-font-weight, 600);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.sg-btn-primary {
    background: var(--sg-primary);
    color: white;
    box-shadow: var(--sg-shadow-orange);
}

.sg-btn-primary:hover {
    background: var(--sg-primary-dark);
    transform: translateY(-2px);
    color: white;
}

.sg-btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sg-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.sg-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sg-hero-visual.header-dropdown-active {
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 1200px) {
    .sg-hero-visual {
        min-height: 240px;
        transform: scale(0.9);
        transform-origin: center center;
    }
}

@media (max-width: 1024px) {
    .sg-hero-visual {
        min-height: 200px;
        transform: scale(0.8);
    }
}

@media (max-width: 968px) {
    .sg-hero-visual {
        display: none;
    }
}

.sg-hero-stat-box {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--sg-radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.sg-hero-stat-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--sg-primary);
    line-height: 1;
}

.sg-hero-stat-label {
    font-size: 14px;
    color: #94A3B8;
    margin-top: 8px;
}

@media (max-width: 1200px) {
    .sg-hero-stat-box {
        width: 180px;
        height: 180px;
    }
    
    .sg-hero-stat-number {
        font-size: 48px;
    }
    
    .sg-hero-stat-label {
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .sg-hero-stat-box {
        width: 160px;
        height: 160px;
    }
    
    .sg-hero-stat-number {
        font-size: 36px;
    }
    
    .sg-hero-stat-label {
        font-size: 12px;
    }
}

.sg-hero-floating-card {
    position: absolute;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--sg-radius);
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    z-index: 1;
}

.sg-hero-floating-card-label {
    font-size: 12px;
    color: #94A3B8;
    margin-bottom: 4px;
}

.sg-hero-floating-card-value {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

@media (max-width: 1200px) {
    .sg-hero-floating-card {
        padding: 12px;
    }
    
    .sg-hero-floating-card-label {
        font-size: 11px;
    }
    
    .sg-hero-floating-card-value {
        font-size: 20px;
    }
}

@media (max-width: 1024px) {
    .sg-hero-floating-card {
        padding: 10px;
    }
    
    .sg-hero-floating-card-label {
        font-size: 10px;
    }
    
    .sg-hero-floating-card-value {
        font-size: 18px;
    }
}

.sg-hero-floating-card.top-left {
    top: 0;
    left: 0;
}

.sg-hero-floating-card.top-right {
    top: 20px;
    right: 0;
}

.sg-hero-floating-card.bottom {
    bottom: 20px;
    left: -20px;
}

/* ============================================================================
   SEARCH WIDGET
   ============================================================================ */
.sg-search {
    background: transparent;
}

.sg-search-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.sg-search-header {
    text-align: center;
    margin-bottom: 32px;
}

.sg-search-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--sg-dark);
    margin: 0 0 12px 0;
}

.sg-search-subtitle {
    font-size: 16px;
    color: var(--sg-text-light);
    margin: 0;
}

.sg-search-box {
    background: var(--sg-bg);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-lg);
    padding: 20px;
}

.sg-search-row {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    .sg-search-row {
        flex-direction: column;
    }
}

.sg-search-field {
    flex: 1;
    position: relative;
}

.sg-search-field svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--sg-text-muted);
    pointer-events: none;
}

.sg-search-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 48px;
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    font-size: 16px;
    background: var(--sg-white);
    color: var(--sg-text);
    transition: all 0.2s ease;
    font-family: inherit;
}

.sg-search-input:focus {
    outline: none;
    border-color: var(--sg-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.sg-search-input::placeholder {
    color: var(--sg-text-muted);
}

.sg-search-select {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 48px;
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    font-size: 16px;
    background: var(--sg-white);
    color: var(--sg-text);
    appearance: none;
    cursor: pointer;
    font-family: inherit;
}

.sg-search-select:focus {
    outline: none;
    border-color: var(--sg-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Autocomplete Dropdown */
.sg-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sg-white);
    border: 1px solid var(--sg-border);
    border-top: none;
    border-radius: 0 0 var(--sg-radius) var(--sg-radius);
    box-shadow: var(--sg-shadow-lg);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.sg-autocomplete-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--sg-border);
}

.sg-autocomplete-item:last-child {
    border-bottom: none;
}

.sg-autocomplete-item:hover {
    background: var(--sg-bg);
}

.sg-autocomplete-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--sg-dark);
}

.sg-autocomplete-salary {
    font-size: 14px;
    font-weight: 600;
    color: var(--sg-primary);
}

/* No Results */
.sg-no-results {
    text-align: center;
    padding: 48px 24px;
    background: var(--sg-white);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
}

.sg-no-results p {
    font-size: 16px;
    color: var(--sg-text-light);
    margin: 0;
}

.sg-search-button {
    height: 48px;
    padding: 0 24px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .sg-search-field.location {
        max-width: 100%;
    }
    .sg-search-button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================================
   CATEGORY CARDS WIDGET
   ============================================================================ */
.sg-categories {
    background: var(--sg-bg);
}

.sg-categories-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.sg-categories-header {
    text-align: center;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .sg-categories-header {
        margin-bottom: 32px;
    }
}

.sg-categories-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--sg-dark);
    margin: 0 0 12px 0;
}

@media (max-width: 768px) {
    .sg-categories-title {
        font-size: 24px;
    }
}

.sg-categories-subtitle {
    font-size: 16px;
    color: var(--sg-text-light);
    margin: 0;
}

@media (max-width: 768px) {
    .sg-categories-subtitle {
        font-size: 14px;
    }
}

.sg-categories-grid {
    display: grid;
    grid-template-columns: repeat(var(--sg-grid-cols, 3), 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .sg-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .sg-categories-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
}

.sg-category-card {
    position: relative;
    background: var(--sg-white);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    display: block;
}

@media (max-width: 768px) {
    .sg-category-card {
        padding: 20px;
    }
}

.sg-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--category-color, var(--sg-primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sg-category-card:hover {
    border-color: var(--sg-primary);
    box-shadow: var(--sg-shadow-lg);
    transform: translateY(-4px);
}

.sg-category-card:hover::before {
    opacity: 1;
}

.sg-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.sg-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: var(--category-color, var(--sg-primary));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sg-category-icon svg {
    width: 24px;
    height: 24px;
}

.sg-category-count {
    font-size: 12px;
    font-weight: 500;
    color: var(--sg-text-light) !important;
    background: var(--sg-bg);
    padding: 4px 10px;
    border-radius: 100px;
}

.sg-category-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--sg-dark);
    margin: 0 0 8px 0;
    transition: color 0.2s ease;
}

@media (max-width: 768px) {
    .sg-category-name {
        font-size: 17px;
    }
}

.sg-category-card:hover .sg-category-name {
    color: var(--sg-primary);
}

.sg-category-description {
    font-size: 14px;
    color: var(--sg-text-light);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.sg-category-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sg-primary);
    transition: gap 0.2s ease;
    white-space: nowrap;
}

.sg-category-card:hover .sg-category-link {
    gap: 10px;
}

.sg-category-link svg {
    width: 16px;
    height: 16px;
}

/* Category color variations */
.sg-category-card[data-category="accounting_finance"] { --category-color: #F97316; }
.sg-category-card[data-category="information_technology"] { --category-color: #3B82F6; }
.sg-category-card[data-category="healthcare"] { --category-color: #14B8A6; }
.sg-category-card[data-category="legal_compliance"] { --category-color: #64748B; }
.sg-category-card[data-category="marketing_creative"] { --category-color: #EC4899; }
.sg-category-card[data-category="administrative"] { --category-color: #8B5CF6; }
.sg-category-card[data-category="sales"] { --category-color: #22C55E; }
.sg-category-card[data-category="construction_realestate"] { --category-color: #F59E0B; }
.sg-category-card[data-category="human_resources"] { --category-color: #6366F1; }

/* ============================================================================
   STATS WIDGET
   ============================================================================ */
.sg-stats {
    background: var(--sg-white);
}

.sg-stats-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.sg-stats-header {
    text-align: center;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .sg-stats-header {
        margin-bottom: 32px;
    }
}

.sg-stats-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--sg-dark);
    margin: 0 0 12px 0;
}

@media (max-width: 768px) {
    .sg-stats-title {
        font-size: 24px;
    }
}

.sg-stats-subtitle {
    font-size: 16px;
    color: var(--sg-text-light);
    margin: 0;
}

@media (max-width: 768px) {
    .sg-stats-subtitle {
        font-size: 14px;
    }
}

.sg-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
    position: relative;
}

@media (max-width: 968px) {
    .sg-stats-grid {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .sg-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .sg-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

.sg-stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.sg-stat-value {
    font-size: 56px;
    font-weight: 700;
    color: var(--sg-primary);
    line-height: 1;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

@media (max-width: 968px) {
    .sg-stat-value {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .sg-stat-value {
        font-size: 36px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .sg-stat-value {
        font-size: 28px;
        margin-bottom: 6px;
    }
}

.sg-stat-label {
    font-size: 15px;
    color: var(--sg-text-light);
    line-height: 1.5;
    max-width: 200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .sg-stat-label {
        font-size: 13px;
        max-width: none;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .sg-stat-label {
        font-size: 11px;
        line-height: 1.3;
    }
}

.sg-stats-banner {
    background: linear-gradient(135deg, var(--sg-dark-deep) 0%, var(--sg-dark) 100%);
    border-radius: var(--sg-radius-xl);
    padding: var(--sg-banner-padding, 48px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    color: white;
}

@media (max-width: 768px) {
    .sg-stats-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.sg-stats-banner-title {
    font-size: var(--sg-banner-title-font-size, 24px);
    font-weight: var(--sg-banner-title-font-weight, 700);
    margin: 0 0 12px 0;
    color: white;
}

.sg-stats-banner-text {
    font-size: var(--sg-banner-text-font-size, 15px);
    color: #CBD5E1;
    line-height: 1.6;
    margin: 0;
}

.sg-stats-chart {
    width: 160px;
    height: 160px;
    position: relative;
}

@media (max-width: 768px) {
    .sg-stats-chart {
        margin: 0 auto;
        width: 140px;
        height: 140px;
    }
}

.sg-stats-chart svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.sg-stats-chart-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.sg-stats-chart-fill {
    fill: none;
    stroke: var(--sg-primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 0 264;
    transition: stroke-dasharray 2s ease-out;
}

.sg-stats-chart-fill.animate {
    stroke-dasharray: 232 264;
}

.sg-stats-chart-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.sg-stats-chart-label-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--sg-primary);
}

.sg-stats-chart-label-text {
    font-size: 12px;
    color: #94A3B8;
}

/* ============================================================================
   SALARY RANGE VISUAL WIDGET
   ============================================================================ */
.sg-salary-range {
    background: var(--sg-white);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-lg);
    padding: 32px;
}

.sg-salary-range-header {
    margin-bottom: 24px;
}

.sg-salary-range-values {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.sg-salary-range-amount {
    font-size: var(--sg-amount-font-size, 36px);
    font-weight: var(--sg-amount-font-weight, 700);
    color: var(--sg-amount-color, var(--sg-dark));
}

.sg-salary-range-separator {
    font-size: var(--sg-separator-font-size, 24px);
    color: var(--sg-separator-color, #CBD5E1);
}

.sg-salary-range-label {
    font-size: var(--sg-label-font-size, 14px);
    color: var(--sg-label-color, var(--sg-text-light));
    margin: 0;
}

.sg-salary-bar {
    position: relative;
    height: 12px;
    background: linear-gradient(90deg, var(--sg-bar-start, #E2E8F0) 0%, var(--sg-bar-mid, #FDBA74) 50%, var(--sg-bar-end, #F97316) 100%);
    border-radius: 100px;
    margin-bottom: 48px;
}

.sg-salary-bar-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: var(--sg-white);
    border: 4px solid var(--sg-marker-color, #F97316);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sg-salary-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 640px) {
    .sg-salary-tiers {
        grid-template-columns: 1fr;
    }
}

.sg-salary-tier {
    text-align: center;
    padding: 20px;
    border-radius: var(--sg-radius);
    background: var(--sg-bg);
    border: 1px solid var(--sg-border);
}

.sg-salary-tier.mid {
    background: var(--sg-primary-light);
    border: 2px solid var(--sg-mid-border, #FDBA74);
    position: relative;
}

.sg-salary-tier.mid::before {
    content: 'Midpoint';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sg-midpoint-bg, #F97316);
    color: var(--sg-midpoint-text, white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
}

.sg-salary-tier-label {
    font-size: var(--sg-tier-label-font-size, 11px);
    font-weight: var(--sg-tier-label-font-weight, 600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sg-tier-label-color, var(--sg-text-muted));
    margin-bottom: 8px;
}

.sg-salary-tier.mid .sg-salary-tier-label {
    color: var(--sg-mid-label-color, var(--sg-primary-dark));
}

.sg-salary-tier-value {
    font-size: var(--sg-tier-value-font-size, 22px);
    font-weight: var(--sg-tier-value-font-weight, 700);
    color: var(--sg-tier-value-color, var(--sg-dark));
    margin-bottom: 4px;
}

.sg-salary-tier-desc {
    font-size: var(--sg-tier-desc-font-size, 12px);
    color: var(--sg-tier-desc-color, var(--sg-text-muted));
}

/* ============================================================================
   JOB CARD WIDGET
   ============================================================================ */
.sg-job-card {
    display: block;
    background: var(--sg-white);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    padding: 24px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sg-job-card:hover {
    border-color: var(--sg-primary);
    box-shadow: var(--sg-shadow-lg);
    transform: translateY(-2px);
}

.sg-job-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

@media (max-width: 640px) {
    .sg-job-card-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

.sg-job-card-info {
    flex: 1;
    min-width: 0;
}

.sg-job-card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sg-job-card-title {
    font-size: var(--sg-card-title-font-size, 17px);
    font-weight: var(--sg-card-title-font-weight, 600);
    color: var(--sg-card-title-color, var(--sg-dark));
    margin: 0;
    transition: color 0.2s ease;
}

.sg-job-card:hover .sg-job-card-title {
    color: var(--sg-card-title-hover-color, var(--sg-primary));
}

.sg-job-card-arrow {
    width: 16px;
    height: 16px;
    color: var(--sg-text-muted);
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.sg-job-card:hover .sg-job-card-arrow {
    opacity: 1;
}

.sg-job-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sg-job-card-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--sg-primary-light);
    color: var(--sg-primary-dark);
}

.sg-job-card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--sg-text-light);
}

.sg-job-card-location svg {
    width: 14px;
    height: 14px;
}

.sg-job-card-salary {
    text-align: right;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .sg-job-card-salary {
        text-align: left;
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid var(--sg-border);
        margin-top: 4px;
    }
}

.sg-job-card-salary-mid {
    font-size: 20px;
    font-weight: 700;
    color: var(--sg-dark);
}

.sg-job-card-salary-range {
    font-size: 12px;
    color: var(--sg-text-muted);
}

/* ============================================================================
   JOBS LIST WIDGET
   ============================================================================ */
.sg-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sg-jobs-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 24px;
}

.sg-jobs-list-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--sg-dark);
    margin: 0;
    flex: 1;
}

.sg-jobs-list-count {
    font-size: 14px;
    color: var(--sg-text-light);
    flex-shrink: 0;
    white-space: nowrap;
}

.sg-jobs-list-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sg-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sg-jobs-list-back:hover {
    color: var(--sg-primary-dark);
}

.sg-jobs-list-back svg {
    width: 16px;
    height: 16px;
}

/* ============================================================================
   PAGINATION
   ============================================================================ */
.sg-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--sg-border);
}

.sg-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #235383;
    background: #fff;
    border: 1px solid #235383;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.sg-pagination-btn:hover:not(:disabled) {
    background: #235383;
    color: #fff;
}

.sg-pagination-btn:disabled {
    color: #93B4D4;
    border-color: #93B4D4;
    cursor: not-allowed;
}

.sg-pagination-btn svg {
    width: 16px;
    height: 16px;
}

.sg-pagination-info {
    font-size: 14px;
    color: var(--sg-text-muted);
    min-width: 100px;
    text-align: center;
}

@media (max-width: 480px) {
    .sg-pagination {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .sg-pagination-info {
        order: -1;
        width: 100%;
    }
    
    .sg-pagination-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================================================
   DYNAMIC CONTAINER STYLES
   ============================================================================ */
.sg-dynamic-container {
    background: var(--sg-bg);
}

/* Back Button */
.sg-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sg-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 24px;
    transition: color 0.2s ease;
    font-family: inherit;
}

.sg-back-btn:hover {
    color: var(--sg-primary-dark);
}

/* ============================================================================
   SKELETON LOADER
   ============================================================================ */
@keyframes sg-skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.sg-skeleton {
    background: linear-gradient(90deg, #E2E8F0 25%, #EDF2F7 50%, #E2E8F0 75%);
    background-size: 200% 100%;
    animation: sg-skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 6px;
}

.sg-skeleton-detail {
    padding: 0;
}

.sg-skeleton-back {
    width: 180px;
    height: 20px;
    margin-bottom: 24px;
}

.sg-skeleton-header {
    margin-bottom: 32px;
}

.sg-skeleton-title {
    height: 36px;
    width: 70%;
    margin-bottom: 12px;
}

.sg-skeleton-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.sg-skeleton-meta-item {
    height: 20px;
    width: 120px;
}

.sg-skeleton-badge {
    height: 28px;
    width: 140px;
    border-radius: 14px;
}

.sg-skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

@media (max-width: 968px) {
    .sg-skeleton-grid {
        grid-template-columns: 1fr;
    }
}

.sg-skeleton-salary-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.sg-skeleton-salary-header {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.sg-skeleton-salary-amount {
    height: 40px;
    width: 120px;
}

.sg-skeleton-salary-label {
    height: 16px;
    width: 160px;
    margin: 0 auto 24px;
}

.sg-skeleton-bar {
    height: 12px;
    width: 100%;
    margin-bottom: 24px;
    border-radius: 6px;
}

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

.sg-skeleton-tier {
    background: #F8FAFC;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.sg-skeleton-tier-label {
    height: 14px;
    width: 40px;
    margin: 0 auto 8px;
}

.sg-skeleton-tier-value {
    height: 24px;
    width: 80px;
    margin: 0 auto 8px;
}

.sg-skeleton-tier-desc {
    height: 12px;
    width: 60px;
    margin: 0 auto;
}

.sg-skeleton-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.sg-skeleton-section-title {
    height: 24px;
    width: 180px;
    margin-bottom: 16px;
}

.sg-skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 12px;
}

.sg-skeleton-text:last-child {
    width: 70%;
    margin-bottom: 0;
}

.sg-skeleton-list-item {
    height: 16px;
    width: 90%;
    margin-bottom: 10px;
}

.sg-skeleton-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.sg-back-btn svg {
    width: 16px;
    height: 16px;
}

/* Job Detail Styles */
.sg-job-detail-header {
    margin-bottom: 32px;
}

.sg-job-detail-title {
    font-size: var(--sg-job-title-font-size, 36px);
    font-weight: var(--sg-job-title-font-weight, 700);
    color: var(--sg-job-title-color, var(--sg-dark));
    margin: 0 0 12px 0;
    line-height: var(--sg-job-title-line-height, 1.2);
}

.sg-job-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sg-job-detail-experience {
    color: #64748B;
    font-size: 14px;
}

.sg-job-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    margin-bottom: 48px;
}

@media (max-width: 968px) {
    .sg-job-detail-grid {
        grid-template-columns: 1fr;
    }
}

.sg-job-detail-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sg-job-detail-section {
    background: var(--sg-section-bg, var(--sg-white));
    border: 1px solid var(--sg-section-border-color, var(--sg-border));
    border-radius: var(--sg-radius-lg);
    padding: 24px;
}

.sg-job-detail-section h3 {
    font-size: var(--sg-section-heading-font-size, 18px);
    font-weight: var(--sg-section-heading-font-weight, 700);
    color: var(--sg-section-heading-color, var(--sg-dark));
    margin: 0 0 16px 0;
}

.sg-job-detail-section p {
    font-size: var(--sg-section-body-font-size, 15px);
    line-height: 1.7;
    color: var(--sg-section-body-color, var(--sg-text));
    margin: 0;
}

.sg-job-detail-section ul {
    margin: 0;
    padding-left: 20px;
}

.sg-job-detail-section li {
    font-size: var(--sg-section-body-font-size, 15px);
    line-height: 1.7;
    color: var(--sg-section-body-color, var(--sg-text));
    margin-bottom: 8px;
}

.sg-job-detail-section li:last-child {
    margin-bottom: 0;
}

/* Sidebar */
.sg-job-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sg-job-detail-card {
    background: var(--sg-req-bg, var(--sg-white));
    border: 1px solid var(--sg-req-border-color, var(--sg-border));
    border-radius: var(--sg-radius-lg);
    padding: 24px;
}

.sg-job-detail-card h4 {
    font-size: var(--sg-req-heading-font-size, 16px);
    font-weight: var(--sg-req-heading-font-weight, 700);
    color: var(--sg-req-heading-color, var(--sg-dark));
    margin: 0 0 16px 0;
}

.sg-job-detail-card ul {
    margin: 0;
    padding-left: 18px;
}

.sg-job-detail-card li {
    font-size: var(--sg-req-list-font-size, 14px);
    line-height: 1.6;
    color: var(--sg-req-list-color, var(--sg-text));
    margin-bottom: 8px;
}

.sg-job-detail-cta {
    background: linear-gradient(135deg, var(--sg-dark-deep) 0%, var(--sg-dark) 100%);
    border-radius: var(--sg-radius-lg);
    padding: 24px;
    color: white;
}

.sg-job-detail-cta h4 {
    font-size: var(--sg-cta-title-font-size, 16px);
    font-weight: var(--sg-cta-title-font-weight, 700);
    margin: 0 0 8px 0;
    color: var(--sg-cta-title-color, white);
}

.sg-job-detail-cta p {
    font-size: var(--sg-cta-desc-font-size, 14px);
    color: var(--sg-cta-desc-color, #CBD5E1);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* Related Jobs */
.sg-related-jobs {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--sg-border);
}

.sg-related-jobs h3 {
    font-size: var(--sg-related-heading-font-size, 22px);
    font-weight: var(--sg-related-heading-font-weight, 700);
    color: var(--sg-related-heading-color, var(--sg-dark));
    margin: 0 0 24px 0;
}

/* Related Roles Meta Line (Location + Experience as separate lines) */
.sg-related-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: var(--sg-related-meta-font-size, 13px);
    font-weight: var(--sg-related-meta-font-weight, 400);
    color: var(--sg-related-meta-color, #64748B);
    margin-top: 4px;
}

.sg-related-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sg-related-location svg {
    flex-shrink: 0;
}

.sg-related-meta-separator {
    display: none;
}

.sg-related-experience {
    display: block;
}

.sg-related-experience::before {
    content: '•';
    margin-right: 6px;
}

/* Related Roles Card Badge */
.sg-related-jobs .sg-job-card-badge {
    margin-top: 8px;
}

/* Related Roles Card Salary Separator - show on all screen sizes */
.sg-related-jobs .sg-job-card-salary {
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--sg-border);
    margin-top: 12px;
    text-align: left;
    align-self: stretch;
    box-sizing: border-box;
}

/* Related Roles Card Content - vertical layout */
.sg-related-jobs .sg-job-card-content {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
}

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

@media (max-width: 768px) {
    .sg-related-jobs-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   TAX CALCULATOR WIDGET
   ============================================================================ */
.sg-tax-calc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sg-tax-calc-container {
    display: block;
}

/* Hide input panel when showing results */
.sg-tax-calc-container.has-results .sg-tax-calc-input-panel {
    display: none;
}

.sg-tax-calc-input-panel {
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 32px;
    border: 1px solid #E2E8F0;
    width: 100%;
}

.sg-tax-calc-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sg-tax-calc-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.sg-tax-calc-header-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.sg-tax-calc-header-text h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.sg-tax-calc-header-text p {
    font-size: 14px;
    color: #64748B;
    margin: 0;
}

/* Income Type Toggle */
.sg-tax-calc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #F8FAFC;
    border-radius: 16px;
}

.sg-tax-calc-toggle-option {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sg-tax-calc-toggle-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sg-tax-calc-toggle-icon.active {
    background: #D1FAE5;
    color: #059669;
}

.sg-tax-calc-toggle-icon.inactive {
    background: #E2E8F0;
    color: #475569 !important;
}

.sg-tax-calc-toggle-icon svg {
    width: 18px;
    height: 18px;
}

.sg-tax-calc-toggle-label {
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.sg-tax-calc-toggle-label .short {
    display: none;
}

.sg-tax-calc-toggle-label.active {
    color: #0F172A;
}

.sg-tax-calc-toggle-label.inactive {
    color: #475569 !important;
}

/* Toggle Switch */
.sg-tax-calc-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: #E2E8F0;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sg-tax-calc-switch.checked {
    background: #10B981;
}

.sg-tax-calc-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.sg-tax-calc-switch.checked .sg-tax-calc-switch-thumb {
    transform: translateX(24px);
}

/* Form Fields */
.sg-tax-calc-field {
    margin-bottom: 24px;
}

.sg-tax-calc-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.sg-tax-calc-input-wrapper {
    position: relative;
}

.sg-tax-calc-input-wrapper svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #94A3B8;
}

.sg-tax-calc-input {
    width: 100%;
    height: 56px;
    padding: 0 16px 0 48px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sg-tax-calc-input:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Select Dropdown */
.sg-tax-calc-select {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
}

.sg-tax-calc-select:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Slider */
.sg-tax-calc-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sg-tax-calc-slider-value {
    font-size: 18px;
    font-weight: 700;
    color: #10B981;
}

.sg-tax-calc-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #E2E8F0;
    appearance: none;
    cursor: pointer;
}

.sg-tax-calc-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: #10B981;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.sg-tax-calc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #10B981;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.sg-tax-calc-slider-hint {
    font-size: 12px;
    color: #64748B;
    margin-top: 8px;
}

/* Buttons */
.sg-tax-calc-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

/* Mode-specific button padding */
.sg-tax-calc-form.sg-mode-basic .sg-tax-calc-buttons {
    margin-top: var(--sg-btn-padding-basic, 32px);
}

.sg-tax-calc-form.sg-mode-advanced .sg-tax-calc-buttons {
    margin-top: var(--sg-btn-padding-advanced, 32px);
}

.sg-tax-calc-btn-primary {
    flex: 1;
    height: 56px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sg-tax-calc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.sg-tax-calc-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.sg-tax-calc-btn-reset {
    width: 56px;
    height: 56px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sg-tax-calc-btn-reset:hover {
    background: #F8FAFC;
}

.sg-tax-calc-btn-reset svg {
    width: 20px;
    height: 20px;
    color: #64748B;
}

/* Helper text styling */
.sg-tax-calc-helper-text {
    font-size: 11px;
    color: #94A3B8;
    margin-top: 12px;
}

/* Results Panel - hidden initially, shown when has-results */
.sg-tax-calc-results-panel {
    display: none;
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 32px;
    border: 1px solid #E2E8F0;
}

.sg-tax-calc-container.has-results .sg-tax-calc-results-panel {
    display: block;
}

/* Back Button - positioned top-left of takehome card */
.sg-tax-calc-back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 0;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sg-tax-calc-back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sg-tax-calc-back-btn svg {
    width: 20px;
    height: 20px;
}

.sg-tax-calc-placeholder {
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px;
}

.sg-tax-calc-placeholder-icon {
    width: 80px;
    height: 80px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.sg-tax-calc-placeholder-icon svg {
    width: 40px;
    height: 40px;
    color: #CBD5E1;
}

.sg-tax-calc-placeholder h3 {
    font-size: 20px;
    font-weight: 700;
    color: #94A3B8;
    margin: 0 0 8px 0;
}

.sg-tax-calc-placeholder p {
    font-size: 14px;
    color: #94A3B8;
    margin: 0;
    max-width: 300px;
}

/* Results Content */
.sg-tax-calc-results {
    animation: fadeIn 0.4s ease;
}

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

/* Main Take Home Card */
.sg-tax-calc-takehome {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 20px;
    padding: 24px;
    color: white;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
    margin-bottom: 20px;
    position: relative;
}

.sg-tax-calc-takehome-label,
.sg-tax-calc-takehome-amount,
.sg-tax-calc-takehome-rate {
    text-align: center;
}

.sg-tax-calc-takehome-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.sg-tax-calc-takehome-amount {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 8px;
}

@media (max-width: 480px) {
    .sg-tax-calc-takehome-amount {
        font-size: 32px;
    }
}

.sg-tax-calc-takehome-rate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    font-size: 13px;
    opacity: 0.9;
}

.sg-tax-calc-takehome-rate span {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
}

/* Pay Periods Grid */
.sg-tax-calc-periods {
    margin-bottom: 20px;
}

.sg-tax-calc-periods-title {
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    margin: 0 0 12px 0;
}

.sg-tax-calc-periods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .sg-tax-calc-periods-grid {
        grid-template-columns: 1fr;
    }
}

.sg-tax-calc-period-card {
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px;
    transition: all 0.3s ease;
}

.sg-tax-calc-period-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sg-tax-calc-period-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.sg-tax-calc-period-header svg {
    width: 14px;
    height: 14px;
    color: #94A3B8;
}

.sg-tax-calc-period-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94A3B8;
}

.sg-tax-calc-period-amount {
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 2px;
}

.sg-tax-calc-period-sublabel {
    font-size: 11px;
    color: #64748B;
}

/* Tax Breakdown List */
.sg-tax-calc-breakdown {
    margin-bottom: 20px;
}

.sg-tax-calc-breakdown-title {
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    margin: 0 0 12px 0;
}

.sg-tax-calc-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sg-tax-calc-breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s ease;
}

.sg-tax-calc-breakdown-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sg-tax-calc-breakdown-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sg-tax-calc-breakdown-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-tax-calc-breakdown-icon svg {
    width: 14px;
    height: 14px;
}

.sg-tax-calc-breakdown-icon.gross { background: #F1F5F9; color: #475569; }
.sg-tax-calc-breakdown-icon.federal { background: #DBEAFE; color: #2563EB; }
.sg-tax-calc-breakdown-icon.state { background: #EDE9FE; color: #7C3AED; }
.sg-tax-calc-breakdown-icon.fica { background: #FEF3C7; color: #D97706; }
.sg-tax-calc-breakdown-icon.retirement { background: #CFFAFE; color: #0891B2; }

.sg-tax-calc-breakdown-label {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}

.sg-tax-calc-breakdown-amount {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
}

.sg-tax-calc-breakdown-amount.income {
    color: #08A72C !important;
}

.sg-tax-calc-breakdown-amount.deduction {
    color: #DC2626 !important;
}

/* FICA Details */
.sg-tax-calc-fica-details {
    background: #F8FAFC;
    border-radius: 10px;
    padding: 12px;
}

.sg-tax-calc-fica-title {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.sg-tax-calc-fica-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 3px 0;
}

.sg-tax-calc-fica-row span:first-child {
    color: #64748B;
}

.sg-tax-calc-fica-row span:last-child {
    font-weight: 500;
    color: #DC2626 !important;
}

/* Tab System */
.sg-tax-calc-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #F1F5F9;
    padding: 6px;
    border-radius: 12px;
}

.sg-tax-calc-tab {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #334155 !important;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sg-tax-calc-tab:hover {
    color: #334155;
}

.sg-tax-calc-tab.active {
    background: #FFFFFF;
    color: #0F172A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sg-tax-calc-tab-content {
    display: none;
}

.sg-tax-calc-tab-content.active {
    display: block;
}

.sg-tax-calc-tab-content[data-tab-content="advanced"] {
    margin-bottom: 16px;
}

/* Advanced Form Sections */
.sg-tax-calc-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E2E8F0;
}

.sg-tax-calc-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sg-tax-calc-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    cursor: pointer;
}

.sg-tax-calc-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-tax-calc-section-icon svg {
    width: 18px;
    height: 18px;
}

.sg-tax-calc-section-icon.insurance { background: #FEE2E2; color: #DC2626; }
.sg-tax-calc-section-icon.retirement { background: #DBEAFE; color: #2563EB; }
.sg-tax-calc-section-icon.savings { background: #D1FAE5; color: #059669; }
.sg-tax-calc-section-icon.other { background: #FEF3C7; color: #D97706; }
.sg-tax-calc-section-icon.taxes { background: #EDE9FE; color: #7C3AED; }

.sg-tax-calc-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
    margin: 0;
}

.sg-tax-calc-section-subtitle {
    font-size: 12px;
    color: #64748B;
    margin: 2px 0 0 0;
}

.sg-tax-calc-section-toggle {
    margin-left: auto;
}

.sg-tax-calc-section-toggle svg {
    width: 20px;
    height: 20px;
    color: #94A3B8;
    transition: transform 0.2s ease;
}

.sg-tax-calc-section.expanded .sg-tax-calc-section-toggle svg {
    transform: rotate(180deg);
}

.sg-tax-calc-section-content {
    display: none;
    padding-top: 8px;
}

.sg-tax-calc-section.expanded .sg-tax-calc-section-content {
    display: block;
}

/* Input Grid for Fields - 2 columns on all sizes */
.sg-tax-calc-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.sg-tax-calc-input-grid .sg-tax-calc-field-small {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
}

.sg-tax-calc-input-grid .sg-tax-calc-input-wrapper-small {
    margin-top: auto !important;
}

@media (max-width: 480px) {
    .sg-tax-calc-input-grid {
        gap: 12px;
    }
}

/* Basic fields grid - full width initially, 2 columns when has results */
.sg-tax-calc-basic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.sg-tax-calc-basic-grid .sg-tax-calc-field {
    margin-bottom: 0;
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
}

.sg-tax-calc-basic-grid .sg-tax-calc-input-wrapper {
    margin-top: auto !important;
}

.sg-tax-calc-basic-grid .sg-tax-calc-select {
    margin-top: auto !important;
}

.sg-tax-calc-basic-grid .sg-tax-calc-field.full-width {
    grid-column: span 2;
}

@media (max-width: 480px) {
    .sg-tax-calc-basic-grid {
        gap: 16px;
    }
}

.sg-tax-calc-field-small {
    margin-bottom: 16px;
}

.sg-tax-calc-field-small:last-child {
    margin-bottom: 0;
}

.sg-tax-calc-input-grid .sg-tax-calc-field-small {
    margin-bottom: 0;
}

.sg-tax-calc-label-small {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 6px;
}

/* Force sublabel ($/year, % of salary, etc.) onto new line for consistent alignment - MOBILE ONLY */
@media (max-width: 480px) {
    .sg-tax-calc-input-grid .sg-tax-calc-label-small span {
        display: block;
        color: #94A3B8;
        font-weight: 400;
    }
}

.sg-tax-calc-input-small {
    width: 100%;
    height: 44px;
    padding: 0 12px 0 36px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #FFFFFF;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sg-tax-calc-input-small:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.sg-tax-calc-input-wrapper-small {
    position: relative;
}

.sg-tax-calc-input-wrapper-small svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #94A3B8;
}

/* Checkbox Style Toggle */
.sg-tax-calc-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
}

.sg-tax-calc-checkbox-row:last-child {
    border-bottom: none;
}

.sg-tax-calc-checkbox-label {
    font-size: 14px;
    color: #334155;
}

.sg-tax-calc-checkbox-hint {
    font-size: 12px;
    color: #94A3B8;
}

/* Mini Switch */
.sg-tax-calc-mini-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sg-tax-calc-mini-switch.checked {
    background: #10B981;
}

.sg-tax-calc-mini-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.sg-tax-calc-mini-switch.checked .sg-tax-calc-mini-switch-thumb {
    transform: translateX(20px);
}

/* Percentage Input */
.sg-tax-calc-pct-input {
    width: 80px;
    height: 36px;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
}

.sg-tax-calc-pct-input:focus {
    outline: none;
    border-color: #10B981;
}

/* Results - Additional Deductions */
.sg-tax-calc-deductions-summary {
    background: #F8FAFC;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
}

.sg-tax-calc-deductions-title {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sg-tax-calc-deductions-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid #E2E8F0;
}

.sg-tax-calc-deductions-row:last-child {
    border-bottom: none;
}

.sg-tax-calc-deductions-row span:first-child {
    color: #64748B;
}

.sg-tax-calc-deductions-row span:last-child {
    font-weight: 500;
    color: #DC2626 !important;
}

.sg-tax-calc-deductions-total {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding-top: 8px;
    margin-top: 6px;
    border-top: 2px solid #E2E8F0;
    font-weight: 600;
}

.sg-tax-calc-deductions-total span:first-child {
    color: #334155;
}

.sg-tax-calc-deductions-total span:last-child {
    color: #DC2626 !important;
}

/* ============================================
   TAX CALCULATOR - MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 600px) {
    /* Header */
    .sg-tax-calc-header {
        gap: 12px;
    }
    
    .sg-tax-calc-header-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
    
    .sg-tax-calc-header-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .sg-tax-calc-header-text h2 {
        font-size: 18px;
    }
    
    .sg-tax-calc-header-text p {
        font-size: 13px;
    }
    
    /* Tabs */
    .sg-tax-calc-tabs {
        padding: 4px;
        border-radius: 10px;
        margin-bottom: 16px;
    }
    
    .sg-tax-calc-tab {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    /* Income Toggle - Stack vertically on mobile */
    .sg-tax-calc-toggle {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .sg-tax-calc-toggle-option {
        gap: 8px;
    }
    
    .sg-tax-calc-toggle-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
    
    .sg-tax-calc-toggle-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .sg-tax-calc-toggle-label {
        font-size: 12px;
    }
    
    .sg-tax-calc-toggle-label .full {
        display: none;
    }
    
    .sg-tax-calc-toggle-label .short {
        display: inline;
    }
    
    .sg-tax-calc-switch {
        width: 44px;
        height: 24px;
        border-radius: 12px;
    }
    
    .sg-tax-calc-switch-thumb {
        width: 18px;
        height: 18px;
        top: 3px;
        left: 3px;
    }
    
    .sg-tax-calc-switch.checked .sg-tax-calc-switch-thumb {
        transform: translateX(20px);
    }
    
    /* Input Fields */
    .sg-tax-calc-field {
        margin-bottom: 16px;
    }
    
    .sg-tax-calc-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .sg-tax-calc-input {
        height: 48px;
        font-size: 16px;
        padding: 0 12px 0 40px;
        border-radius: 10px;
    }
    
    .sg-tax-calc-input-wrapper svg {
        left: 12px;
        width: 18px;
        height: 18px;
    }
    
    .sg-tax-calc-select {
        height: 48px;
        font-size: 16px;
        padding: 0 12px;
        border-radius: 10px;
    }
    
    /* Basic Grid - Single column on mobile */
    .sg-tax-calc-basic-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sg-tax-calc-basic-grid .sg-tax-calc-field.full-width {
        grid-column: span 1;
    }
    
    /* Advanced Sections */
    .sg-tax-calc-section {
        padding: 16px 0;
    }
    
    .sg-tax-calc-section-header {
        gap: 10px;
    }
    
    .sg-tax-calc-section-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .sg-tax-calc-section-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .sg-tax-calc-section-title {
        font-size: 14px;
    }
    
    .sg-tax-calc-section-subtitle {
        font-size: 11px;
    }
    
    .sg-tax-calc-section-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 0;
    }
    
    /* Helper Text */
    .sg-tax-calc-helper-text {
        font-size: 10px;
        margin-top: 8px;
    }
    
    /* Buttons */
    .sg-tax-calc-buttons {
        gap: 10px;
        margin-top: 20px;
    }
    
    .sg-tax-calc-btn-primary {
        height: 48px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .sg-tax-calc-btn-reset {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }
    
    .sg-tax-calc-btn-reset svg {
        width: 18px;
        height: 18px;
    }
    
    /* Input Panel */
    .sg-tax-calc-input-panel {
        padding: 16px;
        border-radius: 16px;
    }
    
    /* Results Panel */
    .sg-tax-calc-results-panel {
        padding: 16px;
        border-radius: 16px;
    }
    
    /* Take Home Card */
    .sg-tax-calc-takehome {
        padding: 20px 16px;
        border-radius: 16px;
        margin-bottom: 16px;
    }
    
    .sg-tax-calc-back-btn {
        width: 32px;
        height: 32px;
        top: 10px;
        left: 10px;
        border-radius: 8px;
    }
    
    .sg-tax-calc-back-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .sg-tax-calc-takehome-label {
        font-size: 11px;
    }
    
    .sg-tax-calc-takehome-amount {
        font-size: 32px;
    }
    
    .sg-tax-calc-takehome-rate {
        font-size: 12px;
    }
    
    .sg-tax-calc-takehome-rate span {
        padding: 2px 8px;
    }
    
    /* Pay Periods */
    .sg-tax-calc-periods {
        margin-bottom: 16px;
    }
    
    .sg-tax-calc-periods-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .sg-tax-calc-period-card {
        padding: 12px;
        border-radius: 10px;
    }
    
    .sg-tax-calc-period-label {
        font-size: 9px;
    }
    
    .sg-tax-calc-period-amount {
        font-size: 18px;
    }
    
    .sg-tax-calc-period-sublabel {
        font-size: 10px;
    }
    
    /* Tax Breakdown */
    .sg-tax-calc-breakdown {
        margin-bottom: 16px;
    }
    
    .sg-tax-calc-breakdown-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .sg-tax-calc-breakdown-list {
        gap: 6px;
    }
    
    .sg-tax-calc-breakdown-item {
        padding: 10px;
        border-radius: 8px;
    }
    
    .sg-tax-calc-breakdown-left {
        gap: 8px;
    }
    
    .sg-tax-calc-breakdown-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }
    
    .sg-tax-calc-breakdown-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .sg-tax-calc-breakdown-label {
        font-size: 12px;
    }
    
    .sg-tax-calc-breakdown-amount {
        font-size: 13px;
    }
    
    /* FICA Details */
    .sg-tax-calc-fica-details {
        padding: 10px;
        border-radius: 8px;
    }
    
    .sg-tax-calc-fica-title {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .sg-tax-calc-fica-row {
        font-size: 11px;
        padding: 2px 0;
    }
    
    /* Deductions Summary */
    .sg-tax-calc-deductions-summary {
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 12px;
    }
    
    .sg-tax-calc-deductions-title {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .sg-tax-calc-deductions-row {
        font-size: 11px;
        padding: 3px 0;
    }
    
    .sg-tax-calc-deductions-total {
        font-size: 12px;
        padding-top: 6px;
        margin-top: 4px;
    }
}

/* ============================================================================
   AJAX / API-DRIVEN COMPONENTS
   ============================================================================ */

/* Skeleton Loading */
@keyframes sg-shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.sg-skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 1000px 100%;
    animation: sg-shimmer 2s infinite;
    border-radius: 8px;
}

.sg-skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    width: 80%;
}

.sg-skeleton-title {
    height: 28px;
    width: 60%;
    margin-bottom: 16px;
}

.sg-skeleton-card {
    height: 120px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.sg-skeleton-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.sg-skeleton-row .sg-skeleton {
    flex: 1;
    height: 48px;
}

/* Loading States */
.sg-loading {
    text-align: center;
    padding: 48px;
}

.sg-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--sg-border);
    border-top-color: var(--sg-primary);
    border-radius: 50%;
    animation: sg-spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes sg-spin {
    to { transform: rotate(360deg); }
}

.sg-loading-text {
    color: var(--sg-text-light);
    font-size: 14px;
}

/* Hide content until loaded */
.sg-ajax-loading .sg-content {
    display: none;
}

.sg-ajax-loaded .sg-skeleton-wrap {
    display: none;
}

/* Search Results Container */
.sg-search-results {
    margin-top: 32px;
}

.sg-search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sg-border);
}

.sg-search-results-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--sg-dark);
    margin: 0;
}

.sg-search-results-count {
    font-size: 14px;
    color: var(--sg-text-light);
}

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

/* Job Result Card (from API) */
.sg-job-result-card {
    background: var(--sg-white);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

.sg-job-result-card:hover {
    border-color: var(--sg-primary);
    box-shadow: var(--sg-shadow-lg);
    transform: translateY(-2px);
}

.sg-job-result-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--sg-dark);
    margin: 0 0 8px 0;
}

.sg-job-result-card:hover .sg-job-result-title {
    color: var(--sg-primary);
}

.sg-job-result-category {
    font-size: 13px;
    color: var(--sg-text-light);
    margin-bottom: 12px;
}

.sg-job-result-salary {
    font-size: 16px;
    font-weight: 600;
    color: var(--sg-primary);
}

/* City Salary Table */
.sg-cities-table-wrap {
    margin-top: 32px;
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    overflow: hidden;
}

.sg-cities-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--sg-bg);
    border-bottom: 1px solid var(--sg-border);
}

.sg-cities-table-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--sg-dark);
    margin: 0;
}

.sg-cities-table-search {
    padding: 8px 12px;
    border: 1px solid var(--sg-border);
    border-radius: 8px;
    font-size: 14px;
    width: 200px;
}

.sg-cities-table-container {
    max-height: 500px;
    overflow-y: auto;
}

.sg-cities-table {
    width: 100%;
    border-collapse: collapse;
}

.sg-cities-table th,
.sg-cities-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sg-border);
}

.sg-cities-table th {
    background: var(--sg-bg);
    font-weight: 600;
    font-size: 13px;
    color: var(--sg-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
}

.sg-cities-table tbody tr:hover {
    background: var(--sg-bg);
}

.sg-cities-table .city-name {
    font-weight: 500;
    color: var(--sg-dark);
}

.sg-cities-table .salary-cell {
    font-weight: 600;
    color: var(--sg-primary);
}

.sg-cities-table .multiplier-cell {
    font-size: 13px;
}

.sg-cities-table .multiplier-high {
    color: #DC2626;
}

.sg-cities-table .multiplier-low {
    color: #16A34A;
}

.sg-cities-table .featured-row {
    background: #FFF7ED;
}

.sg-cities-table .featured-row:hover {
    background: #FFEDD5;
}

/* City Dropdown (API-populated) */
.sg-city-select-wrap {
    position: relative;
}

.sg-city-select {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 48px;
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    font-size: 16px;
    background: var(--sg-white);
    color: var(--sg-text);
    cursor: pointer;
    font-family: inherit;
}

.sg-city-select:focus {
    outline: none;
    border-color: var(--sg-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Job Detail Page (API-driven) */
.sg-job-detail-loading {
    padding: 48px;
    text-align: center;
}

.sg-job-detail-header {
    margin-bottom: 32px;
}

.sg-job-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--sg-text-light);
    margin-bottom: 16px;
}

.sg-job-detail-breadcrumb a {
    color: var(--sg-primary);
    text-decoration: none;
}

.sg-job-detail-breadcrumb a:hover {
    text-decoration: underline;
}

.sg-job-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--sg-dark);
    margin: 0 0 8px 0;
}

.sg-job-detail-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sg-text-light);
    font-size: 16px;
}

.sg-job-detail-location svg {
    width: 18px;
    height: 18px;
}

/* Category Jobs List (API-driven) */
.sg-category-jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.sg-category-jobs-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--sg-dark);
    margin: 0;
}

.sg-category-jobs-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sg-primary);
    text-decoration: none;
    font-weight: 500;
}

.sg-category-jobs-back:hover {
    text-decoration: underline;
}

.sg-category-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Empty State */
.sg-empty-state {
    text-align: center;
    padding: 64px 24px;
    background: var(--sg-bg);
    border-radius: var(--sg-radius);
}

.sg-empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--sg-text-muted);
}

.sg-empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--sg-dark);
    margin: 0 0 8px 0;
}

.sg-empty-state-text {
    font-size: 14px;
    color: var(--sg-text-light);
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sg-search-results-grid {
        grid-template-columns: 1fr;
    }
    
    .sg-category-jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .sg-cities-table-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .sg-cities-table-search {
        width: 100%;
    }
    
    .sg-job-detail-title {
        font-size: 24px;
    }
}
