/**
 * Sound Harvester Design System
 * TSI App - Conservation Sound Library
 * Dark forest theme with warm gold accents
 */

/* =============================================================================
   CSS CUSTOM PROPERTIES
   ============================================================================= */
:root {
    /* Core palette */
    --sh-bg-deep: #060e06;
    --sh-bg-primary: #0a1f0a;
    --sh-bg-elevated: #122412;
    --sh-bg-surface: #1a3318;
    --sh-bg-surface-hover: #224220;
    --sh-bg-input: #0d1a0d;

    /* Glass */
    --sh-glass: rgba(10, 31, 10, 0.82);
    --sh-glass-border: rgba(201, 162, 39, 0.2);
    --sh-glass-border-hover: rgba(201, 162, 39, 0.45);

    /* Accent colors */
    --sh-gold: #c9a227;
    --sh-gold-bright: #e0b830;
    --sh-gold-glow: rgba(201, 162, 39, 0.5);
    --sh-gold-subtle: rgba(201, 162, 39, 0.12);
    --sh-green-accent: #4caf50;
    --sh-green-soft: #6fbf73;
    --sh-green-neon: #00e676;

    /* Text */
    --sh-text-primary: #f0ead6;
    --sh-text-secondary: #b8c5a8;
    --sh-text-muted: #6e7f60;
    --sh-text-link: #c9a227;

    /* Status */
    --sh-status-approved: #43a047;
    --sh-status-pending: #fbc02d;
    --sh-status-rejected: #e53935;
    --sh-status-review: #42a5f5;
    --sh-status-running: #26c6da;
    --sh-status-queued: #ab47bc;

    /* Partner brand colors */
    --sh-partner-du: #1e5631;
    --sh-partner-nwtf: #d32f2f;
    --sh-partner-rmef: #795548;
    --sh-partner-wtu: #4e342e;
    --sh-partner-pf: #ff9800;
    --sh-partner-delta: #0277bd;

    /* Difficulty */
    --sh-diff-beginner: #66bb6a;
    --sh-diff-intermediate: #ffa726;
    --sh-diff-advanced: #ef5350;
    --sh-diff-expert: #ab47bc;

    /* Typography */
    --sh-font-heading: 'Bebas Neue', 'Oswald', sans-serif;
    --sh-font-body: 'Barlow', sans-serif;
    --sh-font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --sh-radius-sm: 6px;
    --sh-radius-md: 10px;
    --sh-radius-lg: 16px;
    --sh-radius-xl: 24px;

    /* Shadows */
    --sh-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
    --sh-shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.5);
    --sh-shadow-gold: 0 0 30px rgba(201, 162, 39, 0.15);

    /* Transitions */
    --sh-transition: 0.3s ease;
    --sh-transition-fast: 0.15s ease;
}


/* =============================================================================
   RESET & BASE
   ============================================================================= */
.sh-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sh-page {
    font-family: var(--sh-font-body);
    background: var(--sh-bg-deep);
    color: var(--sh-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

.sh-page a {
    color: var(--sh-text-link);
    text-decoration: none;
    transition: color var(--sh-transition);
}

.sh-page a:hover {
    color: var(--sh-gold-bright);
}


/* =============================================================================
   ATMOSPHERE BACKGROUND
   ============================================================================= */
.sh-atmosphere {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 25%, rgba(201, 162, 39, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 75%, rgba(76, 175, 80, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(201, 162, 39, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}


/* =============================================================================
   HEADER
   ============================================================================= */
.sh-header {
    background: var(--sh-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--sh-glass-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sh-header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sh-header-title h1 {
    font-family: var(--sh-font-heading);
    font-size: 2.2rem;
    letter-spacing: 0.12em;
    color: var(--sh-gold);
    text-shadow: 0 0 20px var(--sh-gold-glow);
}

.sh-header-subtitle {
    font-size: 0.8rem;
    color: var(--sh-text-muted);
    font-style: italic;
}

.sh-header-version {
    font-family: var(--sh-font-mono);
    font-size: 0.7rem;
    color: var(--sh-green-accent);
    background: rgba(76, 175, 80, 0.12);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.sh-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}


/* =============================================================================
   STATS BAR
   ============================================================================= */
.sh-stats-bar {
    display: flex;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--sh-bg-primary);
    border-bottom: 1px solid var(--sh-glass-border);
    overflow-x: auto;
    flex-wrap: wrap;
}

.sh-stat-card {
    background: var(--sh-bg-surface);
    border: 1px solid var(--sh-glass-border);
    border-radius: var(--sh-radius-md);
    padding: 0.75rem 1.25rem;
    min-width: 160px;
    flex: 1;
    text-align: center;
    transition: border-color var(--sh-transition);
}

.sh-stat-card:hover {
    border-color: var(--sh-glass-border-hover);
}

.sh-stat-value {
    font-family: var(--sh-font-heading);
    font-size: 1.8rem;
    color: var(--sh-gold);
    line-height: 1.2;
}

.sh-stat-label {
    font-size: 0.75rem;
    color: var(--sh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* =============================================================================
   TAB NAVIGATION
   ============================================================================= */
.sh-tabs {
    display: flex;
    gap: 0;
    background: var(--sh-bg-primary);
    border-bottom: 2px solid var(--sh-glass-border);
    padding: 0 2rem;
    overflow-x: auto;
}

.sh-tab {
    font-family: var(--sh-font-heading);
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: var(--sh-text-muted);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.85rem 1.5rem;
    cursor: pointer;
    transition: all var(--sh-transition);
    white-space: nowrap;
}

.sh-tab:hover {
    color: var(--sh-text-secondary);
    background: var(--sh-gold-subtle);
}

.sh-tab.active {
    color: var(--sh-gold);
    border-bottom-color: var(--sh-gold);
    text-shadow: 0 0 10px var(--sh-gold-glow);
}

.sh-tab-badge {
    font-family: var(--sh-font-mono);
    font-size: 0.65rem;
    background: var(--sh-gold-subtle);
    color: var(--sh-gold);
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    margin-left: 0.5rem;
    vertical-align: middle;
}


/* =============================================================================
   TAB CONTENT
   ============================================================================= */
.sh-tab-content {
    display: none;
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.sh-tab-content.active {
    display: block;
    animation: shFadeIn 0.3s ease;
}

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


/* =============================================================================
   GLASS CARD
   ============================================================================= */
.sh-card {
    background: var(--sh-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--sh-glass-border);
    border-radius: var(--sh-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--sh-shadow-card);
    transition: border-color var(--sh-transition), box-shadow var(--sh-transition);
}

.sh-card:hover {
    border-color: var(--sh-glass-border-hover);
}

.sh-card.elevated {
    border-color: var(--sh-gold);
    box-shadow: var(--sh-shadow-gold);
}

.sh-card-title {
    font-family: var(--sh-font-heading);
    font-size: 1.15rem;
    color: var(--sh-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.06em;
}

.sh-card-title .icon {
    font-size: 1.2rem;
}


/* =============================================================================
   SEARCH & FILTERS
   ============================================================================= */
.sh-search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.sh-search-input {
    flex: 2;
    min-width: 200px;
    background: var(--sh-bg-input);
    border: 1px solid var(--sh-glass-border);
    border-radius: var(--sh-radius-md);
    padding: 0.7rem 1rem;
    color: var(--sh-text-primary);
    font-family: var(--sh-font-body);
    font-size: 0.95rem;
    transition: border-color var(--sh-transition);
}

.sh-search-input:focus {
    outline: none;
    border-color: var(--sh-gold);
    box-shadow: 0 0 0 3px var(--sh-gold-subtle);
}

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

.sh-filter-select {
    flex: 1;
    min-width: 140px;
    background: var(--sh-bg-input);
    border: 1px solid var(--sh-glass-border);
    border-radius: var(--sh-radius-md);
    padding: 0.7rem 0.85rem;
    color: var(--sh-text-primary);
    font-family: var(--sh-font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color var(--sh-transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e7f60' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.2rem;
}

.sh-filter-select:focus {
    outline: none;
    border-color: var(--sh-gold);
}

.sh-filter-select option {
    background: var(--sh-bg-elevated);
    color: var(--sh-text-primary);
}


/* =============================================================================
   BUTTONS
   ============================================================================= */
.sh-btn {
    font-family: var(--sh-font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    padding: 0.65rem 1.3rem;
    border: 1px solid var(--sh-glass-border);
    border-radius: var(--sh-radius-md);
    cursor: pointer;
    transition: all var(--sh-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    text-decoration: none;
}

.sh-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sh-btn-primary {
    background: linear-gradient(135deg, var(--sh-gold), #b08d1e);
    color: #0a1f0a;
    border-color: var(--sh-gold);
    font-weight: 600;
}

.sh-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--sh-gold-bright), var(--sh-gold));
    box-shadow: 0 0 20px var(--sh-gold-glow);
    transform: translateY(-1px);
}

.sh-btn-secondary {
    background: var(--sh-bg-surface);
    color: var(--sh-text-primary);
    border-color: var(--sh-glass-border);
}

.sh-btn-secondary:hover:not(:disabled) {
    border-color: var(--sh-gold);
    color: var(--sh-gold);
    background: var(--sh-gold-subtle);
}

.sh-btn-outline {
    background: transparent;
    color: var(--sh-gold);
    border-color: var(--sh-gold);
}

.sh-btn-outline:hover:not(:disabled) {
    background: var(--sh-gold-subtle);
    box-shadow: 0 0 15px rgba(201, 162, 39, 0.1);
}

.sh-btn-success {
    background: var(--sh-status-approved);
    color: #fff;
    border-color: var(--sh-status-approved);
}

.sh-btn-success:hover:not(:disabled) {
    background: #2e7d32;
}

.sh-btn-danger {
    background: transparent;
    color: var(--sh-status-rejected);
    border-color: var(--sh-status-rejected);
}

.sh-btn-danger:hover:not(:disabled) {
    background: rgba(229, 57, 53, 0.15);
}

.sh-btn-sm {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.sh-btn-lg {
    font-size: 1.1rem;
    padding: 0.85rem 2rem;
}

.sh-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

.sh-btn-icon.sm {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}


/* =============================================================================
   SOUND CARD GRID
   ============================================================================= */
.sh-sound-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.sh-sound-card {
    background: var(--sh-glass);
    border: 1px solid var(--sh-glass-border);
    border-radius: var(--sh-radius-lg);
    overflow: hidden;
    transition: all var(--sh-transition);
    cursor: pointer;
    position: relative;
}

.sh-sound-card:hover {
    border-color: var(--sh-gold);
    box-shadow: var(--sh-shadow-gold);
    transform: translateY(-3px);
}

.sh-sound-card-header {
    background: var(--sh-bg-surface);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.sh-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sh-gold), #b08d1e);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--sh-transition);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.sh-play-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--sh-gold);
    opacity: 0;
    animation: none;
}

.sh-play-btn.playing::before {
    opacity: 1;
    animation: shPlayPulse 1.5s ease infinite;
}

.sh-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--sh-gold-glow);
}

.sh-play-btn svg {
    width: 20px;
    height: 20px;
    fill: #0a1f0a;
    transition: all var(--sh-transition-fast);
}

.sh-play-btn.playing svg {
    fill: var(--sh-bg-deep);
}

@keyframes shPlayPulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.sh-sound-info {
    flex: 1;
    min-width: 0;
}

.sh-sound-name {
    font-family: var(--sh-font-heading);
    font-size: 1.1rem;
    color: var(--sh-text-primary);
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-sound-species {
    font-size: 0.8rem;
    color: var(--sh-text-secondary);
    margin-top: 0.1rem;
}

.sh-sound-card-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sh-sound-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sh-sound-duration {
    font-family: var(--sh-font-mono);
    font-size: 0.8rem;
    color: var(--sh-text-muted);
}

.sh-sound-credit {
    font-size: 0.78rem;
    color: var(--sh-text-secondary);
    font-style: italic;
}

.sh-sound-card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(201, 162, 39, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sh-sound-plays {
    font-size: 0.75rem;
    color: var(--sh-text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}


/* =============================================================================
   SOUND CARD EXPANDED VIEW
   ============================================================================= */
.sh-sound-expanded {
    display: none;
    padding: 1.25rem;
    background: var(--sh-bg-elevated);
    border-top: 1px solid var(--sh-glass-border);
}

.sh-sound-card.expanded .sh-sound-expanded {
    display: block;
    animation: shFadeIn 0.25s ease;
}

.sh-waveform-placeholder {
    height: 60px;
    background: var(--sh-bg-surface);
    border-radius: var(--sh-radius-sm);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sh-waveform-bars {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 100%;
    padding: 8px;
}

.sh-waveform-bar {
    width: 3px;
    background: var(--sh-gold);
    opacity: 0.4;
    border-radius: 2px;
    transition: height 0.2s ease;
}

.sh-sound-card.playing .sh-waveform-bar {
    animation: shWaveform 0.8s ease infinite alternate;
    opacity: 0.8;
}

@keyframes shWaveform {
    0% { height: 20%; }
    100% { height: 80%; }
}

.sh-expanded-credits {
    font-size: 0.85rem;
    color: var(--sh-text-secondary);
    margin-bottom: 0.75rem;
}

.sh-expanded-credits strong {
    color: var(--sh-text-primary);
}

.sh-expanded-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}


/* =============================================================================
   BADGES
   ============================================================================= */
.sh-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Difficulty */
.sh-badge-beginner {
    background: rgba(102, 187, 106, 0.15);
    color: var(--sh-diff-beginner);
    border: 1px solid rgba(102, 187, 106, 0.3);
}

.sh-badge-intermediate {
    background: rgba(255, 167, 38, 0.15);
    color: var(--sh-diff-intermediate);
    border: 1px solid rgba(255, 167, 38, 0.3);
}

.sh-badge-advanced {
    background: rgba(239, 83, 80, 0.15);
    color: var(--sh-diff-advanced);
    border: 1px solid rgba(239, 83, 80, 0.3);
}

.sh-badge-expert {
    background: rgba(171, 71, 188, 0.15);
    color: var(--sh-diff-expert);
    border: 1px solid rgba(171, 71, 188, 0.3);
}

/* Status */
.sh-badge-approved {
    background: rgba(67, 160, 71, 0.15);
    color: var(--sh-status-approved);
    border: 1px solid rgba(67, 160, 71, 0.3);
}

.sh-badge-pending {
    background: rgba(251, 192, 45, 0.15);
    color: var(--sh-status-pending);
    border: 1px solid rgba(251, 192, 45, 0.3);
}

.sh-badge-rejected {
    background: rgba(229, 57, 53, 0.15);
    color: var(--sh-status-rejected);
    border: 1px solid rgba(229, 57, 53, 0.3);
}

.sh-badge-review {
    background: rgba(66, 165, 245, 0.15);
    color: var(--sh-status-review);
    border: 1px solid rgba(66, 165, 245, 0.3);
}

.sh-badge-running {
    background: rgba(38, 198, 218, 0.15);
    color: var(--sh-status-running);
    border: 1px solid rgba(38, 198, 218, 0.3);
}

.sh-badge-queued {
    background: rgba(171, 71, 188, 0.15);
    color: var(--sh-status-queued);
    border: 1px solid rgba(171, 71, 188, 0.3);
}


/* =============================================================================
   PARTNER BADGES & COLORS
   ============================================================================= */
.sh-partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

.sh-partner-du {
    background: rgba(30, 86, 49, 0.2);
    color: #4caf50;
    border: 1px solid rgba(30, 86, 49, 0.5);
}

.sh-partner-nwtf {
    background: rgba(211, 47, 47, 0.15);
    color: #ef5350;
    border: 1px solid rgba(211, 47, 47, 0.35);
}

.sh-partner-rmef {
    background: rgba(121, 85, 72, 0.2);
    color: #a1887f;
    border: 1px solid rgba(121, 85, 72, 0.4);
}

.sh-partner-wtu {
    background: rgba(78, 52, 46, 0.25);
    color: #bcaaa4;
    border: 1px solid rgba(78, 52, 46, 0.5);
}

.sh-partner-pf {
    background: rgba(255, 152, 0, 0.15);
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.35);
}

.sh-partner-delta {
    background: rgba(2, 119, 189, 0.15);
    color: #4fc3f7;
    border: 1px solid rgba(2, 119, 189, 0.35);
}


/* =============================================================================
   PARTNER CARDS
   ============================================================================= */
.sh-partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sh-partner-card {
    background: var(--sh-glass);
    border: 1px solid var(--sh-glass-border);
    border-radius: var(--sh-radius-lg);
    overflow: hidden;
    transition: all var(--sh-transition);
}

.sh-partner-card:hover {
    border-color: var(--sh-glass-border-hover);
    box-shadow: var(--sh-shadow-card);
}

.sh-partner-card-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.sh-partner-card-header.du    { background: linear-gradient(135deg, rgba(30,86,49,0.4), rgba(30,86,49,0.15)); }
.sh-partner-card-header.nwtf  { background: linear-gradient(135deg, rgba(211,47,47,0.3), rgba(211,47,47,0.1)); }
.sh-partner-card-header.rmef  { background: linear-gradient(135deg, rgba(121,85,72,0.35), rgba(121,85,72,0.12)); }
.sh-partner-card-header.wtu   { background: linear-gradient(135deg, rgba(78,52,46,0.4), rgba(78,52,46,0.15)); }
.sh-partner-card-header.pf    { background: linear-gradient(135deg, rgba(255,152,0,0.25), rgba(255,152,0,0.08)); }
.sh-partner-card-header.delta { background: linear-gradient(135deg, rgba(2,119,189,0.3), rgba(2,119,189,0.1)); }

.sh-partner-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--sh-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sh-font-heading);
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.sh-partner-logo.du    { background: var(--sh-partner-du); }
.sh-partner-logo.nwtf  { background: var(--sh-partner-nwtf); }
.sh-partner-logo.rmef  { background: var(--sh-partner-rmef); }
.sh-partner-logo.wtu   { background: var(--sh-partner-wtu); }
.sh-partner-logo.pf    { background: var(--sh-partner-pf); }
.sh-partner-logo.delta { background: var(--sh-partner-delta); }

.sh-partner-card-name {
    font-family: var(--sh-font-heading);
    font-size: 1.2rem;
    color: var(--sh-text-primary);
    letter-spacing: 0.04em;
}

.sh-partner-card-short {
    font-size: 0.78rem;
    color: var(--sh-text-muted);
}

.sh-partner-card-body {
    padding: 1.25rem 1.5rem;
}

.sh-partner-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.sh-partner-stat {
    text-align: center;
}

.sh-partner-stat-value {
    font-family: var(--sh-font-heading);
    font-size: 1.4rem;
    color: var(--sh-gold);
}

.sh-partner-stat-label {
    font-size: 0.7rem;
    color: var(--sh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sh-partner-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sh-partner-review-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-family: var(--sh-font-mono);
    font-size: 0.65rem;
    background: var(--sh-status-pending);
    color: #0a1f0a;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 700;
}


/* =============================================================================
   LICENSE BADGE
   ============================================================================= */
.sh-license-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    color: var(--sh-text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sh-license-badge .cc-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}


/* =============================================================================
   STAR RATING
   ============================================================================= */
.sh-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 0.85rem;
}

.sh-star {
    color: var(--sh-text-muted);
    transition: color var(--sh-transition-fast);
    cursor: default;
}

.sh-star.filled {
    color: var(--sh-gold);
    text-shadow: 0 0 6px var(--sh-gold-glow);
}

.sh-stars.interactive .sh-star {
    cursor: pointer;
}

.sh-stars.interactive .sh-star:hover,
.sh-stars.interactive .sh-star:hover ~ .sh-star {
    /* handled in JS for correct direction */
}

.sh-rating-text {
    font-family: var(--sh-font-mono);
    font-size: 0.75rem;
    color: var(--sh-text-muted);
    margin-left: 0.3rem;
}


/* =============================================================================
   TABLES
   ============================================================================= */
.sh-table-wrap {
    overflow-x: auto;
    border-radius: var(--sh-radius-lg);
    border: 1px solid var(--sh-glass-border);
}

.sh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.sh-table thead {
    background: var(--sh-bg-surface);
}

.sh-table th {
    font-family: var(--sh-font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--sh-gold);
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid var(--sh-glass-border);
    white-space: nowrap;
}

.sh-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(201, 162, 39, 0.06);
    color: var(--sh-text-secondary);
    vertical-align: middle;
}

.sh-table tbody tr {
    transition: background var(--sh-transition-fast);
}

.sh-table tbody tr:hover {
    background: var(--sh-gold-subtle);
}

.sh-table tbody tr:last-child td {
    border-bottom: none;
}

.sh-table-actions {
    display: flex;
    gap: 0.35rem;
}


/* =============================================================================
   OUTREACH FUNNEL
   ============================================================================= */
.sh-funnel {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.sh-funnel-stage {
    text-align: center;
    flex: 1;
    max-width: 160px;
}

.sh-funnel-bar {
    background: var(--sh-bg-surface);
    border: 1px solid var(--sh-glass-border);
    border-radius: var(--sh-radius-sm) var(--sh-radius-sm) 0 0;
    margin: 0 auto 0.5rem;
    width: 80%;
    position: relative;
    overflow: hidden;
    transition: all var(--sh-transition);
}

.sh-funnel-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--sh-gold), var(--sh-gold-bright));
    border-radius: var(--sh-radius-sm) var(--sh-radius-sm) 0 0;
    transition: height 0.8s ease;
}

.sh-funnel-count {
    font-family: var(--sh-font-heading);
    font-size: 1.6rem;
    color: var(--sh-gold);
    line-height: 1;
}

.sh-funnel-label {
    font-size: 0.72rem;
    color: var(--sh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

.sh-funnel-arrow {
    color: var(--sh-text-muted);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    flex-shrink: 0;
}


/* =============================================================================
   FORMS & MODALS
   ============================================================================= */
.sh-form-group {
    margin-bottom: 1rem;
}

.sh-form-label {
    display: block;
    font-family: var(--sh-font-heading);
    font-size: 0.85rem;
    color: var(--sh-text-secondary);
    margin-bottom: 0.3rem;
    letter-spacing: 0.04em;
}

.sh-form-input,
.sh-form-textarea,
.sh-form-select {
    width: 100%;
    background: var(--sh-bg-input);
    border: 1px solid var(--sh-glass-border);
    border-radius: var(--sh-radius-sm);
    padding: 0.65rem 0.85rem;
    color: var(--sh-text-primary);
    font-family: var(--sh-font-body);
    font-size: 0.9rem;
    transition: border-color var(--sh-transition);
}

.sh-form-input:focus,
.sh-form-textarea:focus,
.sh-form-select:focus {
    outline: none;
    border-color: var(--sh-gold);
    box-shadow: 0 0 0 3px var(--sh-gold-subtle);
}

.sh-form-textarea {
    resize: vertical;
    min-height: 80px;
}

.sh-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.sh-modal-overlay.active {
    display: flex;
    animation: shFadeIn 0.2s ease;
}

.sh-modal {
    background: var(--sh-bg-elevated);
    border: 1px solid var(--sh-glass-border);
    border-radius: var(--sh-radius-xl);
    padding: 2rem;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--sh-shadow-elevated);
}

.sh-modal-title {
    font-family: var(--sh-font-heading);
    font-size: 1.4rem;
    color: var(--sh-gold);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sh-modal-close {
    background: transparent;
    border: none;
    color: var(--sh-text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color var(--sh-transition);
    line-height: 1;
}

.sh-modal-close:hover {
    color: var(--sh-text-primary);
}

.sh-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sh-glass-border);
}


/* =============================================================================
   LOADING / SKELETON
   ============================================================================= */
.sh-skeleton {
    background: linear-gradient(
        90deg,
        var(--sh-bg-surface) 25%,
        var(--sh-bg-surface-hover) 50%,
        var(--sh-bg-surface) 75%
    );
    background-size: 200% 100%;
    animation: shSkeletonShimmer 1.5s infinite;
    border-radius: var(--sh-radius-sm);
}

@keyframes shSkeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.sh-skeleton-text {
    height: 1em;
    margin-bottom: 0.5rem;
}

.sh-skeleton-text.short { width: 40%; }
.sh-skeleton-text.medium { width: 65%; }
.sh-skeleton-text.long { width: 90%; }

.sh-skeleton-card {
    height: 200px;
}

.sh-skeleton-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.sh-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 14, 6, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

.sh-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--sh-glass-border);
    border-top-color: var(--sh-gold);
    border-radius: 50%;
    animation: shSpin 0.8s linear infinite;
}

@keyframes shSpin {
    to { transform: rotate(360deg); }
}


/* =============================================================================
   STATUS DOT
   ============================================================================= */
.sh-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.4rem;
    vertical-align: middle;
}

.sh-status-dot.online   { background: var(--sh-status-approved); box-shadow: 0 0 6px rgba(67,160,71,0.6); }
.sh-status-dot.warning  { background: var(--sh-status-pending); box-shadow: 0 0 6px rgba(251,192,45,0.6); }
.sh-status-dot.offline  { background: var(--sh-status-rejected); box-shadow: 0 0 6px rgba(229,57,53,0.6); }


/* =============================================================================
   CREDIT DISPLAY COMPONENT
   ============================================================================= */
.sh-credit-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: var(--sh-bg-surface);
    border-radius: var(--sh-radius-sm);
    border: 1px solid rgba(201, 162, 39, 0.08);
}

.sh-credit-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sh-gold-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--sh-gold);
    flex-shrink: 0;
}

.sh-credit-name {
    font-size: 0.85rem;
    color: var(--sh-text-primary);
    font-weight: 500;
}

.sh-credit-role {
    font-size: 0.72rem;
    color: var(--sh-text-muted);
}

.sh-credit-verified {
    color: var(--sh-status-approved);
    font-size: 0.8rem;
    margin-left: auto;
}


/* =============================================================================
   PAGINATION
   ============================================================================= */
.sh-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sh-glass-border);
}

.sh-pagination-btn {
    font-family: var(--sh-font-mono);
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    background: var(--sh-bg-surface);
    border: 1px solid var(--sh-glass-border);
    border-radius: var(--sh-radius-sm);
    color: var(--sh-text-secondary);
    cursor: pointer;
    transition: all var(--sh-transition);
}

.sh-pagination-btn:hover:not(:disabled) {
    border-color: var(--sh-gold);
    color: var(--sh-gold);
}

.sh-pagination-btn.active {
    background: var(--sh-gold);
    color: #0a1f0a;
    border-color: var(--sh-gold);
    font-weight: 700;
}

.sh-pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.sh-pagination-info {
    font-size: 0.78rem;
    color: var(--sh-text-muted);
    margin: 0 0.5rem;
}


/* =============================================================================
   CONTRIBUTOR DASHBOARD SPECIFIC
   ============================================================================= */
.sh-contributor-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--sh-glass);
    border-bottom: 1px solid var(--sh-glass-border);
    flex-wrap: wrap;
}

.sh-contributor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sh-gold), #b08d1e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sh-font-heading);
    font-size: 2rem;
    color: #0a1f0a;
    flex-shrink: 0;
    border: 3px solid var(--sh-gold);
    box-shadow: 0 0 20px var(--sh-gold-glow);
}

.sh-contributor-info {
    flex: 1;
    min-width: 200px;
}

.sh-contributor-name {
    font-family: var(--sh-font-heading);
    font-size: 2rem;
    color: var(--sh-text-primary);
    letter-spacing: 0.06em;
}

.sh-contributor-type {
    font-size: 0.85rem;
    color: var(--sh-text-secondary);
    margin-top: 0.15rem;
}

.sh-contributor-socials {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.sh-contributor-social-link {
    font-size: 0.78rem;
    color: var(--sh-text-muted);
    background: var(--sh-bg-surface);
    padding: 0.3rem 0.6rem;
    border-radius: var(--sh-radius-sm);
    border: 1px solid var(--sh-glass-border);
    transition: all var(--sh-transition);
}

.sh-contributor-social-link:hover {
    color: var(--sh-gold);
    border-color: var(--sh-gold);
}

.sh-contributor-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sh-impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1.5rem 2rem;
}

.sh-impact-stat {
    background: var(--sh-glass);
    border: 1px solid var(--sh-glass-border);
    border-radius: var(--sh-radius-md);
    padding: 1.25rem;
    text-align: center;
}

.sh-impact-stat-value {
    font-family: var(--sh-font-heading);
    font-size: 2.2rem;
    color: var(--sh-gold);
    line-height: 1;
}

.sh-impact-stat-label {
    font-size: 0.78rem;
    color: var(--sh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.3rem;
}

.sh-conservation-impact {
    background: var(--sh-glass);
    border: 1px solid var(--sh-glass-border);
    border-radius: var(--sh-radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 2rem;
}

.sh-conservation-impact h3 {
    font-family: var(--sh-font-heading);
    color: var(--sh-gold);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.sh-conservation-message {
    font-size: 0.9rem;
    color: var(--sh-text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.sh-share-btn {
    background: linear-gradient(135deg, #1da1f2, #0d8ecf);
    color: #fff;
    border: none;
    border-radius: var(--sh-radius-md);
    padding: 0.6rem 1.2rem;
    font-family: var(--sh-font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--sh-transition);
}

.sh-share-btn:hover {
    box-shadow: 0 0 20px rgba(29, 161, 242, 0.3);
    transform: translateY(-1px);
}

.sh-credit-preview {
    background: var(--sh-bg-surface);
    border: 1px dashed var(--sh-glass-border);
    border-radius: var(--sh-radius-md);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}

.sh-credit-preview-title {
    font-family: var(--sh-font-heading);
    font-size: 0.85rem;
    color: var(--sh-text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.sh-credit-preview-text {
    font-size: 0.9rem;
    color: var(--sh-text-primary);
    font-style: italic;
}


/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */
.sh-flex { display: flex; }
.sh-flex-col { flex-direction: column; }
.sh-flex-wrap { flex-wrap: wrap; }
.sh-items-center { align-items: center; }
.sh-justify-between { justify-content: space-between; }
.sh-justify-center { justify-content: center; }
.sh-gap-sm { gap: 0.5rem; }
.sh-gap-md { gap: 1rem; }
.sh-gap-lg { gap: 1.5rem; }

.sh-mt-1 { margin-top: 0.5rem; }
.sh-mt-2 { margin-top: 1rem; }
.sh-mt-3 { margin-top: 1.5rem; }
.sh-mb-1 { margin-bottom: 0.5rem; }
.sh-mb-2 { margin-bottom: 1rem; }
.sh-mb-3 { margin-bottom: 1.5rem; }

.sh-text-gold { color: var(--sh-gold); }
.sh-text-green { color: var(--sh-green-accent); }
.sh-text-muted { color: var(--sh-text-muted); }
.sh-text-center { text-align: center; }
.sh-text-right { text-align: right; }

.sh-hidden { display: none !important; }
.sh-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.sh-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--sh-text-muted);
}

.sh-empty-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.sh-empty-state p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.sh-section-title {
    font-family: var(--sh-font-heading);
    font-size: 1.3rem;
    color: var(--sh-gold);
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.sh-divider {
    border: none;
    border-top: 1px solid var(--sh-glass-border);
    margin: 1.5rem 0;
}


/* =============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================= */
@media (max-width: 1200px) {
    .sh-partner-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 900px) {
    .sh-header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.85rem 1.25rem;
    }

    .sh-stats-bar {
        padding: 0.75rem 1rem;
        gap: 0.6rem;
    }

    .sh-stat-card {
        min-width: 130px;
    }

    .sh-tabs {
        padding: 0 1rem;
    }

    .sh-tab {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .sh-tab-content {
        padding: 1.25rem;
    }

    .sh-sound-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .sh-funnel {
        flex-wrap: wrap;
    }

    .sh-contributor-header {
        padding: 1.25rem;
    }

    .sh-impact-stats {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .sh-header-title h1 {
        font-size: 1.6rem;
    }

    .sh-stats-bar {
        flex-direction: column;
    }

    .sh-stat-card {
        min-width: auto;
    }

    .sh-tabs {
        padding: 0 0.5rem;
    }

    .sh-tab {
        padding: 0.6rem 0.75rem;
        font-size: 0.82rem;
    }

    .sh-tab-content {
        padding: 1rem;
    }

    .sh-search-bar {
        flex-direction: column;
    }

    .sh-sound-grid {
        grid-template-columns: 1fr;
    }

    .sh-partner-grid {
        grid-template-columns: 1fr;
    }

    .sh-partner-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .sh-modal {
        padding: 1.25rem;
        border-radius: var(--sh-radius-lg);
    }

    .sh-funnel {
        gap: 0.5rem;
    }

    .sh-funnel-stage {
        max-width: none;
        min-width: 60px;
    }

    .sh-funnel-arrow {
        display: none;
    }

    .sh-contributor-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .sh-contributor-name {
        font-size: 1.5rem;
    }

    .sh-impact-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .sh-pagination {
        flex-wrap: wrap;
    }
}
