/* ================================================
   SMART ACADEMY PUBLIC PROFILE - STYLES
   v1.0.0 - Music Industry CV/Profile
   ================================================ */

:root {
    --sapp-primary: #3b82f6;
    --sapp-primary-hover: #2563eb;
    --sapp-primary-light: rgba(59, 130, 246, 0.15);
    --sapp-success: #22c55e;
    --sapp-warning: #f59e0b;
    --sapp-danger: #ef4444;
    
    --sapp-bg: #0a0f1a;
    --sapp-bg-card: rgba(255, 255, 255, 0.03);
    --sapp-bg-card-hover: rgba(255, 255, 255, 0.06);
    --sapp-border: rgba(255, 255, 255, 0.08);
    --sapp-border-hover: rgba(59, 130, 246, 0.3);
    
    --sapp-text: #ffffff;
    --sapp-text-secondary: rgba(255, 255, 255, 0.7);
    --sapp-text-muted: rgba(255, 255, 255, 0.5);
    
    --sapp-radius-sm: 8px;
    --sapp-radius-md: 12px;
    --sapp-radius-lg: 16px;
    --sapp-radius-xl: 24px;
    
    --sapp-transition: 0.2s ease;
}

* {
    box-sizing: border-box;
}

/* Force dark background on entire page */
body:has(.sapp-page) {
    background: var(--sapp-bg) !important;
}

.sapp-page {
    min-height: 100vh;
    background: var(--sapp-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--sapp-text);
    padding-bottom: 80px;
}

/* ================================================
   OWNER CONTROLS BAR
   ================================================ */

.sapp-controls-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--sapp-border);
    padding: 12px 24px;
}

.sapp-controls-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sapp-status-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sapp-status-label {
    font-size: 14px;
    color: var(--sapp-text-secondary);
}

.sapp-status-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--sapp-border) !important;
    border-radius: 20px !important;
    color: var(--sapp-text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: var(--sapp-transition) !important;
}

.sapp-status-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.sapp-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sapp-danger);
    transition: var(--sapp-transition);
}

.sapp-status-btn.is-online .sapp-status-dot {
    background: var(--sapp-success) !important;
    box-shadow: 0 0 8px var(--sapp-success) !important;
}

.sapp-controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sapp-profile-url {
    font-size: 13px;
    color: var(--sapp-text-muted);
    font-family: monospace;
}

.sapp-btn-icon {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--sapp-border) !important;
    border-radius: 8px !important;
    color: var(--sapp-text-secondary) !important;
    cursor: pointer !important;
    transition: var(--sapp-transition) !important;
}

.sapp-btn-icon:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--sapp-text) !important;
}

.sapp-offline-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 13px;
}

/* ================================================
   COVER PHOTO
   ================================================ */

.sapp-cover {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0a0f1a 100%);
    background-size: cover;
    background-position: center;
}

.sapp-cover-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--sapp-bg) 0%, transparent 100%);
}

.sapp-cover.sapp-editable:hover .sapp-cover-btn {
    opacity: 1 !important;
}

.sapp-cover-upload {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

.sapp-cover-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    opacity: 0 !important;
    transition: var(--sapp-transition) !important;
}

.sapp-cover-btn:hover {
    background: rgba(0, 0, 0, 0.8) !important;
}

/* ================================================
   PROFILE HEADER
   ================================================ */

.sapp-header {
    position: relative;
    margin-top: -80px;
    padding: 0 24px;
    z-index: 2;
}

.sapp-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.sapp-avatar-wrapper {
    flex-shrink: 0;
}

.sapp-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--sapp-bg);
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.sapp-header-info {
    flex: 1;
    padding-bottom: 16px;
}

.sapp-name {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.sapp-headline {
    font-size: 18px;
    color: var(--sapp-text-secondary);
    margin: 0 0 8px 0;
}

.sapp-headline:empty::before {
    content: attr(data-placeholder);
    color: var(--sapp-text-muted);
    font-style: italic;
}

.sapp-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--sapp-text-muted);
    margin: 0;
}

.sapp-header-actions {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
}

/* ================================================
   BUTTONS
   ================================================ */

.sapp-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: var(--sapp-radius-md) !important;
    border: none !important;
    cursor: pointer !important;
    transition: var(--sapp-transition) !important;
    text-decoration: none !important;
}

.sapp-btn-primary {
    background: var(--sapp-primary) !important;
    color: #fff !important;
}

.sapp-btn-primary:hover {
    background: var(--sapp-primary-hover) !important;
    transform: translateY(-2px) !important;
}

.sapp-btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--sapp-text) !important;
    border: 1px solid var(--sapp-border) !important;
}

.sapp-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--sapp-border-hover) !important;
}

/* ================================================
   CONTENT LAYOUT
   ================================================ */

.sapp-content {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

.sapp-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sapp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ================================================
   SECTIONS
   ================================================ */

.sapp-section {
    background: var(--sapp-bg-card);
    border: 1px solid var(--sapp-border);
    border-radius: var(--sapp-radius-lg);
    padding: 24px;
}

.sapp-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--sapp-text);
}

.sapp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sapp-section-header h2 {
    margin: 0;
}

.sapp-visibility-toggle {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 1px solid var(--sapp-border) !important;
    border-radius: 6px !important;
    color: var(--sapp-text-muted) !important;
    cursor: pointer !important;
    transition: var(--sapp-transition) !important;
    padding: 0 !important;
}

.sapp-visibility-toggle:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--sapp-text-muted) !important;
}

.sapp-visibility-toggle svg {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
    flex-shrink: 0 !important;
}

.sapp-visibility-toggle .icon-hidden {
    display: none !important;
}

.sapp-visibility-toggle.is-visible .icon-visible {
    display: block !important;
    color: var(--sapp-success) !important;
}

.sapp-visibility-toggle:not(.is-visible) .icon-visible {
    display: none !important;
}

.sapp-visibility-toggle:not(.is-visible) .icon-hidden {
    display: block !important;
    color: var(--sapp-danger) !important;
}

/* ================================================
   BIO SECTION
   ================================================ */

.sapp-bio {
    font-size: 15px;
    line-height: 1.7;
    color: var(--sapp-text-secondary);
    min-height: 24px;
}

.sapp-bio.is-empty::before,
.sapp-bio:empty::before {
    content: attr(data-placeholder);
    color: var(--sapp-text-muted);
    font-style: italic;
}

.sapp-is-owner .sapp-bio {
    padding: 12px;
    margin: -12px;
    border-radius: 8px;
    cursor: text;
}

.sapp-is-owner .sapp-bio:hover {
    background: rgba(255, 255, 255, 0.03);
}

.sapp-editable-text,
.sapp-editable-textarea {
    cursor: text;
    border-radius: 6px;
    transition: var(--sapp-transition);
}

.sapp-is-owner .sapp-editable-text:hover,
.sapp-is-owner .sapp-editable-textarea:hover {
    background: rgba(255, 255, 255, 0.03);
}

.sapp-is-owner .sapp-editable-text:focus,
.sapp-is-owner .sapp-editable-textarea:focus {
    outline: 2px solid var(--sapp-primary);
    outline-offset: 4px;
}

/* ================================================
   SKILLS SECTION
   ================================================ */

.sapp-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sapp-skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--sapp-primary-light);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #93c5fd;
}

.sapp-skill-remove {
    display: none !important;
    width: 16px !important;
    height: 16px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    border-radius: 50% !important;
    color: inherit !important;
    font-size: 14px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: var(--sapp-transition) !important;
}

.sapp-is-owner .sapp-skill-tag:hover .sapp-skill-remove {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sapp-skill-remove:hover {
    background: rgba(239, 68, 68, 0.5) !important;
}

.sapp-add-skill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    background: transparent !important;
    border: 1px dashed var(--sapp-border) !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    color: var(--sapp-text-muted) !important;
    cursor: pointer !important;
    transition: var(--sapp-transition) !important;
}

.sapp-add-skill:hover {
    border-color: var(--sapp-primary) !important;
    color: var(--sapp-primary) !important;
}

/* Skills Picker */
.sapp-skills-picker {
    margin-top: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--sapp-border);
    border-radius: var(--sapp-radius-md);
    padding: 16px;
}

.sapp-skills-picker-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.sapp-skills-picker-header input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--sapp-border);
    border-radius: 8px;
    color: var(--sapp-text);
    font-size: 14px;
}

.sapp-skills-picker-header input:focus {
    outline: none;
    border-color: var(--sapp-primary);
}

.sapp-skills-picker-close {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 1px solid var(--sapp-border) !important;
    border-radius: 8px !important;
    color: var(--sapp-text-muted) !important;
    font-size: 20px !important;
    cursor: pointer !important;
}

.sapp-skills-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.sapp-skill-suggestion {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--sapp-border);
    border-radius: 16px;
    font-size: 12px;
    color: var(--sapp-text-secondary);
    cursor: pointer;
    transition: var(--sapp-transition);
}

.sapp-skill-suggestion:hover {
    background: var(--sapp-primary);
    border-color: var(--sapp-primary);
    color: #fff;
}

/* ================================================
   EXPERIENCE SECTION
   ================================================ */

.sapp-experience-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sapp-experience-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sapp-border);
    border-radius: var(--sapp-radius-md);
    transition: var(--sapp-transition);
}

.sapp-experience-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.sapp-exp-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sapp-primary-light);
    border-radius: 10px;
    color: #93c5fd;
}

.sapp-exp-content {
    flex: 1;
    min-width: 0;
}

.sapp-exp-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--sapp-text);
}

.sapp-exp-company {
    font-size: 14px;
    color: var(--sapp-text-secondary);
    margin: 0 0 4px 0;
}

.sapp-exp-period {
    font-size: 13px;
    color: var(--sapp-text-muted);
    margin: 0 0 8px 0;
}

.sapp-exp-description {
    font-size: 14px;
    color: var(--sapp-text-secondary);
    margin: 0;
    line-height: 1.6;
}

.sapp-exp-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: var(--sapp-transition);
}

.sapp-experience-item:hover .sapp-exp-actions {
    opacity: 1;
}

.sapp-exp-edit,
.sapp-exp-delete {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--sapp-border) !important;
    border-radius: 6px !important;
    color: var(--sapp-text-muted) !important;
    cursor: pointer !important;
    transition: var(--sapp-transition) !important;
}

.sapp-exp-edit:hover {
    background: var(--sapp-primary) !important;
    border-color: var(--sapp-primary) !important;
    color: #fff !important;
}

.sapp-exp-delete:hover {
    background: var(--sapp-danger) !important;
    border-color: var(--sapp-danger) !important;
    color: #fff !important;
}

.sapp-add-experience {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 16px !important;
    background: transparent !important;
    border: 1px dashed var(--sapp-border) !important;
    border-radius: var(--sapp-radius-md) !important;
    color: var(--sapp-text-muted) !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: var(--sapp-transition) !important;
}

.sapp-add-experience:hover {
    border-color: var(--sapp-primary) !important;
    color: var(--sapp-primary) !important;
}

/* ================================================
   RELEASES SECTION
   ================================================ */

.sapp-releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.sapp-release-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sapp-border);
    border-radius: var(--sapp-radius-md);
    text-decoration: none;
    color: inherit;
    transition: var(--sapp-transition);
}

.sapp-release-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--sapp-border-hover);
    transform: translateY(-2px);
}

.sapp-release-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 8px;
    color: #fff;
}

.sapp-release-info {
    flex: 1;
    min-width: 0;
}

.sapp-release-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--sapp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sapp-release-distributor {
    display: block;
    font-size: 12px;
    color: var(--sapp-text-muted);
}

.sapp-release-arrow {
    flex-shrink: 0;
    color: var(--sapp-text-muted);
    transition: var(--sapp-transition);
}

.sapp-release-card:hover .sapp-release-arrow {
    color: var(--sapp-primary);
    transform: translate(2px, -2px);
}

/* ================================================
   SIDEBAR CARDS
   ================================================ */

.sapp-sidebar-card {
    background: var(--sapp-bg-card);
    border: 1px solid var(--sapp-border);
    border-radius: var(--sapp-radius-lg);
    padding: 20px;
}

.sapp-sidebar-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--sapp-text);
}

.sapp-sidebar-card .sapp-section-header {
    margin-bottom: 16px;
}

.sapp-sidebar-card .sapp-section-header h3 {
    margin: 0;
}

/* Open For */
.sapp-open-for-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sapp-open-for-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sapp-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--sapp-text-muted);
    cursor: pointer;
    transition: var(--sapp-transition);
}

.sapp-open-for-item input {
    display: none;
}

.sapp-open-for-item.is-active {
    background: var(--sapp-primary-light);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.sapp-is-owner .sapp-open-for-item:hover {
    border-color: var(--sapp-primary);
}

/* Social Links */
.sapp-social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sapp-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sapp-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--sapp-text-secondary);
    font-size: 14px;
    transition: var(--sapp-transition);
}

.sapp-social-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--sapp-text);
}

.sapp-social-link svg {
    flex-shrink: 0;
}

/* Share Card */
.sapp-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.sapp-share-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--sapp-border) !important;
    border-radius: 8px !important;
    color: var(--sapp-text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: var(--sapp-transition) !important;
}

.sapp-share-btn:hover {
    background: var(--sapp-primary) !important;
    border-color: var(--sapp-primary) !important;
}

.sapp-share-btn.copied {
    background: var(--sapp-success) !important;
    border-color: var(--sapp-success) !important;
}

.sapp-share-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--sapp-border);
}

.sapp-share-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--sapp-text-secondary);
    transition: var(--sapp-transition);
}

.sapp-share-icon:hover {
    background: var(--sapp-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ================================================
   MODALS
   ================================================ */

.sapp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sapp-modal-content {
    background: #1a1f2e;
    border: 1px solid var(--sapp-border);
    border-radius: var(--sapp-radius-xl);
    padding: 32px;
    max-width: 480px;
    width: 100%;
    position: relative;
    margin: auto;
    max-height: none;
}

@media (max-width: 600px) {
    .sapp-modal {
        padding: 16px;
        align-items: flex-start;
    }
    
    .sapp-modal-content {
        padding: 24px;
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: var(--sapp-radius-lg);
    }
}

.sapp-modal-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    color: var(--sapp-text-muted) !important;
    font-size: 24px !important;
    cursor: pointer !important;
    transition: var(--sapp-transition) !important;
}

.sapp-modal-close:hover {
    color: var(--sapp-text) !important;
}

.sapp-modal h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px 0;
    text-align: center;
}

#sapp-qr-code {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
}

/* Experience Modal Form */
.sapp-modal-form .sapp-form-row {
    margin-bottom: 20px;
}

.sapp-modal-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sapp-text-secondary);
    margin-bottom: 8px;
}

.sapp-modal-form input[type="text"],
.sapp-modal-form input[type="month"],
.sapp-modal-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--sapp-border);
    border-radius: 8px;
    color: var(--sapp-text);
    font-size: 14px;
    transition: var(--sapp-transition);
}

.sapp-modal-form input:focus,
.sapp-modal-form textarea:focus {
    outline: none;
    border-color: var(--sapp-primary);
}

.sapp-type-toggle {
    display: flex;
    gap: 12px;
}

.sapp-type-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sapp-border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--sapp-transition);
}

.sapp-type-option input {
    display: none;
}

.sapp-type-option:has(input:checked) {
    background: var(--sapp-primary-light);
    border-color: var(--sapp-primary);
}

.sapp-form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sapp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.sapp-checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--sapp-primary);
}

.sapp-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.sapp-form-actions .sapp-btn {
    flex: 1 !important;
}

/* ================================================
   EMPTY STATES
   ================================================ */

.sapp-empty-note {
    font-size: 13px;
    color: var(--sapp-text-muted);
    font-style: italic;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1024px) {
    .sapp-content {
        grid-template-columns: 1fr;
    }
    
    .sapp-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .sapp-controls-inner {
        flex-wrap: wrap;
    }
    
    .sapp-profile-url {
        display: none;
    }
    
    .sapp-cover {
        height: 200px;
    }
    
    .sapp-header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .sapp-avatar {
        width: 120px;
        height: 120px;
        margin-top: -60px;
    }
    
    .sapp-name {
        font-size: 24px;
    }
    
    .sapp-headline {
        font-size: 16px;
    }
    
    .sapp-header-actions {
        justify-content: center;
    }
    
    .sapp-content {
        padding: 0 16px;
    }
    
    .sapp-section {
        padding: 20px;
    }
    
    .sapp-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sapp-header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .sapp-header-actions .sapp-btn {
    width: 100% !important;
}
    
    .sapp-releases-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   CONNECTIONS
   ================================================ */

/* Connection Button States */
.sapp-connect-btn.is-pending {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: var(--sapp-warning) !important;
}

.sapp-connect-btn.is-connected {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
    color: var(--sapp-success) !important;
}

/* Connections Card in Sidebar */
.sapp-connections-card .sapp-section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 16px !important;
}

.sapp-connections-card h3 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.sapp-count {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--sapp-text-muted) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
}

.sapp-pending-badge {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: var(--sapp-primary) !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    transition: var(--sapp-transition) !important;
}

.sapp-pending-badge:hover {
    background: var(--sapp-primary-hover) !important;
    transform: scale(1.05) !important;
}

/* Connections Grid */
.sapp-connections-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.sapp-connection-item {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2px solid var(--sapp-border) !important;
    transition: var(--sapp-transition) !important;
}

.sapp-connection-item:hover {
    border-color: var(--sapp-primary) !important;
    transform: scale(1.1) !important;
}

.sapp-connection-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.sapp-connection-item.sapp-view-all {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--sapp-text-secondary) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border: none !important;
}

.sapp-connection-item.sapp-view-all:hover {
    background: var(--sapp-primary) !important;
    color: #fff !important;
}

/* Requests Modal */
.sapp-modal-list {
    max-width: 500px !important;
}

.sapp-requests-list,
.sapp-connections-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

.sapp-request-item,
.sapp-connection-list-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: var(--sapp-radius-md) !important;
    gap: 12px !important;
}

.sapp-request-user,
.sapp-connection-user {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    color: inherit !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.sapp-request-user img,
.sapp-connection-user img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.sapp-request-info,
.sapp-connection-info {
    min-width: 0 !important;
}

.sapp-request-name,
.sapp-connection-name {
    display: block !important;
    font-weight: 600 !important;
    color: var(--sapp-text) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.sapp-request-headline,
.sapp-connection-headline {
    display: block !important;
    font-size: 13px !important;
    color: var(--sapp-text-muted) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.sapp-request-actions {
    display: flex !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.sapp-btn-sm {
    padding: 6px 12px !important;
    font-size: 13px !important;
}

.sapp-request-item.is-removing {
    opacity: 0.5 !important;
    pointer-events: none !important;
}

/* Connection List Item (in modal) */
.sapp-connection-list-item .sapp-btn {
    flex-shrink: 0 !important;
}

/* Empty state */
.sapp-requests-list:empty::after,
.sapp-connections-list:empty::after {
    content: 'Geen resultaten' !important;
    display: block !important;
    text-align: center !important;
    color: var(--sapp-text-muted) !important;
    padding: 24px !important;
}

/* Message Modal */
.sapp-message-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sapp-message-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--sapp-text);
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sapp-message-form textarea:focus {
    outline: none;
    border-color: var(--sapp-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.sapp-message-form textarea::placeholder {
    color: var(--sapp-text-muted);
}

/* Spinning animation for loading state */
@keyframes sapp-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sapp-spin {
    animation: sapp-spin 1s linear infinite;
}

/* ================================================
   SHARE RELEASE TO COMMUNITY
   ================================================ */

.sapp-release-card-wrapper {
    position: relative;
}

.sapp-share-release-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--sapp-text-muted);
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 2;
}

.sapp-release-card-wrapper:hover .sapp-share-release-btn {
    opacity: 1;
}

.sapp-share-release-btn:hover {
    background: var(--sapp-primary);
    border-color: var(--sapp-primary);
    color: white;
    transform: scale(1.1);
}

.sapp-share-release-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--sapp-radius-md);
    margin-bottom: 16px;
}

.sapp-share-release-preview .sapp-release-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    border-radius: var(--sapp-radius-sm);
    color: var(--sapp-primary);
}

.sapp-share-release-preview .sapp-release-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sapp-share-release-preview .sapp-release-name {
    font-weight: 600;
    color: var(--sapp-text);
    font-size: 16px;
}

.sapp-share-release-preview .sapp-release-distributor {
    font-size: 13px;
    color: var(--sapp-text-muted);
}

.sapp-share-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sapp-share-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--sapp-radius-sm);
    color: var(--sapp-text);
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sapp-share-form textarea:focus {
    outline: none;
    border-color: var(--sapp-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.sapp-share-form textarea::placeholder {
    color: var(--sapp-text-muted);
}

/* ================================================
   SHOWCASE SECTION
   ================================================ */

.sapp-showcase-section .sapp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sapp-showcase-section .sapp-section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sapp-showcase-section .sapp-count {
    font-size: 14px;
    font-weight: 500;
    color: var(--sapp-text-muted);
    background: var(--sapp-bg-card);
    padding: 2px 8px;
    border-radius: 99px;
}

.sapp-view-all-link {
    font-size: 14px;
    color: var(--sapp-primary);
    text-decoration: none;
    transition: var(--sapp-transition);
}

.sapp-view-all-link:hover {
    color: var(--sapp-primary-hover);
    text-decoration: underline;
}

.sapp-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .sapp-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sapp-showcase-grid {
        grid-template-columns: 1fr;
    }
}

.sapp-showcase-item {
    background: var(--sapp-bg-card);
    border: 1px solid var(--sapp-border);
    border-radius: var(--sapp-radius-md);
    overflow: hidden;
    transition: var(--sapp-transition);
}

.sapp-showcase-item:hover {
    border-color: var(--sapp-border-hover);
    transform: translateY(-2px);
}

.sapp-showcase-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
}

.sapp-showcase-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sapp-showcase-item:hover .sapp-showcase-thumb img {
    transform: scale(1.05);
}

.sapp-showcase-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: var(--sapp-transition);
}

.sapp-showcase-item:hover .sapp-showcase-play {
    opacity: 1;
}

.sapp-showcase-play:hover {
    background: var(--sapp-primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.sapp-showcase-info {
    padding: 14px;
}

.sapp-showcase-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--sapp-text);
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sapp-showcase-desc {
    font-size: 12px;
    color: var(--sapp-text-muted);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.sapp-showcase-stats {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sapp-showcase-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--sapp-text-muted);
}

.sapp-showcase-stats svg {
    opacity: 0.7;
}

.sapp-empty-showcase {
    text-align: center;
    padding: 40px 20px;
    background: var(--sapp-bg-card);
    border: 1px dashed var(--sapp-border);
    border-radius: var(--sapp-radius-md);
}

.sapp-empty-showcase p {
    color: var(--sapp-text-muted);
    margin: 0 0 16px 0;
}

.sapp-empty-showcase .sapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ================================================
   SHOWCASE MODAL
   ================================================ */

.sapp-showcase-form h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sapp-showcase-form h3 svg {
    color: var(--sapp-primary);
}

.sapp-showcase-form-content {
    margin-top: 24px;
}

.sapp-showcase-form .sapp-form-group {
    margin-bottom: 20px;
}

.sapp-showcase-form .sapp-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--sapp-text-secondary);
    margin-bottom: 8px;
}

.sapp-showcase-form input[type="text"],
.sapp-showcase-form input[type="url"],
.sapp-showcase-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--sapp-bg-card);
    border: 1px solid var(--sapp-border);
    border-radius: var(--sapp-radius-md);
    color: var(--sapp-text);
    font-size: 14px;
    transition: var(--sapp-transition);
}

.sapp-showcase-form input:focus,
.sapp-showcase-form textarea:focus {
    outline: none;
    border-color: var(--sapp-primary);
    box-shadow: 0 0 0 3px var(--sapp-primary-light);
}

.sapp-showcase-upload {
    border: 2px dashed var(--sapp-border);
    border-radius: var(--sapp-radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--sapp-transition);
}

.sapp-showcase-upload:hover {
    border-color: var(--sapp-primary);
    background: var(--sapp-primary-light);
}

.sapp-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--sapp-text-muted);
}

.sapp-upload-placeholder svg {
    opacity: 0.5;
}

.sapp-upload-preview {
    position: relative;
}

.sapp-upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--sapp-radius-sm);
}

.sapp-remove-upload {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--sapp-danger);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Visibility Options */
.sapp-visibility-choice {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--sapp-border);
}

.sapp-visibility-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.sapp-visibility-option {
    cursor: pointer;
}

.sapp-visibility-option input {
    display: none;
}

.sapp-visibility-card {
    padding: 16px;
    background: var(--sapp-bg-card);
    border: 2px solid var(--sapp-border);
    border-radius: var(--sapp-radius-md);
    text-align: center;
    transition: var(--sapp-transition);
}

.sapp-visibility-option input:checked + .sapp-visibility-card {
    border-color: var(--sapp-primary);
    background: var(--sapp-primary-light);
}

.sapp-visibility-card svg {
    margin-bottom: 8px;
    color: var(--sapp-text-muted);
}

.sapp-visibility-option input:checked + .sapp-visibility-card svg {
    color: var(--sapp-primary);
}

.sapp-vis-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--sapp-text);
    margin-bottom: 4px;
}

.sapp-vis-desc {
    display: block;
    font-size: 12px;
    color: var(--sapp-text-muted);
}

/* Unlock Notice */
.sapp-unlock-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--sapp-radius-md);
}

.sapp-unlock-icon {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sapp-unlock-icon svg {
    color: #ef4444;
}

.sapp-unlock-text {
    flex: 1;
}

.sapp-unlock-text strong {
    display: block;
    font-size: 13px;
    color: #ef4444;
    margin-bottom: 2px;
}

.sapp-unlock-text span {
    font-size: 12px;
    color: var(--sapp-text-muted);
}

.sapp-unlock-link {
    font-size: 12px;
    color: var(--sapp-primary);
    text-decoration: none;
    white-space: nowrap;
}

.sapp-unlock-link:hover {
    text-decoration: underline;
}

/* Showcase badge for profile-only items */
.sapp-showcase-item.sapp-profile-only {
    position: relative;
}

.sapp-showcase-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.sapp-showcase-badge svg {
    color: white;
    opacity: 0.8;
}

/* Section header actions */
.sapp-section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Empty showcase state */
.sapp-empty-showcase svg {
    margin-bottom: 12px;
}

.sapp-empty-hint {
    display: block;
    font-size: 13px;
    color: var(--sapp-text-muted);
    margin-top: 4px;
}

/* Spinner animation */
.sapp-spin {
    animation: sappSpin 1s linear infinite;
}

@keyframes sappSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .sapp-visibility-options {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   ROLE BADGE & SELECTOR
   ================================================ */

.sapp-role-badge-wrapper {
    margin-bottom: 8px;
}

.sapp-editable-role {
    cursor: pointer;
}

.sapp-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--sapp-primary-light);
    color: var(--sapp-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.sapp-role-badge.sapp-role-empty {
    background: rgba(255, 255, 255, 0.05);
    color: var(--sapp-text-muted);
    border: 1px dashed var(--sapp-border);
}

.sapp-editable-role:hover .sapp-role-badge {
    border-color: var(--sapp-primary);
}

/* Role colors per type */
.sapp-role-artist { background: rgba(239, 68, 68, 0.15); color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }
.sapp-role-producer { background: rgba(168, 85, 247, 0.15); color: #a855f7; border-color: rgba(168, 85, 247, 0.3); }
.sapp-role-songwriter { background: rgba(236, 72, 153, 0.15); color: #ec4899; border-color: rgba(236, 72, 153, 0.3); }
.sapp-role-dj { background: rgba(14, 165, 233, 0.15); color: #0ea5e9; border-color: rgba(14, 165, 233, 0.3); }
.sapp-role-vocalist { background: rgba(249, 115, 22, 0.15); color: #f97316; border-color: rgba(249, 115, 22, 0.3); }
.sapp-role-instrumentalist { background: rgba(34, 197, 94, 0.15); color: #22c55e; border-color: rgba(34, 197, 94, 0.3); }
.sapp-role-engineer { background: rgba(99, 102, 241, 0.15); color: #6366f1; border-color: rgba(99, 102, 241, 0.3); }
.sapp-role-manager { background: rgba(20, 184, 166, 0.15); color: #14b8a6; border-color: rgba(20, 184, 166, 0.3); }
.sapp-role-a_and_r { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border-color: rgba(251, 191, 36, 0.3); }
.sapp-role-label_owner { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; border-color: rgba(139, 92, 246, 0.3); }
.sapp-role-publisher { background: rgba(16, 185, 129, 0.15); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.sapp-role-promoter { background: rgba(244, 63, 94, 0.15); color: #f43f5e; border-color: rgba(244, 63, 94, 0.3); }
.sapp-role-videographer { background: rgba(217, 70, 239, 0.15); color: #d946ef; border-color: rgba(217, 70, 239, 0.3); }
.sapp-role-photographer { background: rgba(34, 211, 238, 0.15); color: #22d3ee; border-color: rgba(34, 211, 238, 0.3); }
.sapp-role-designer { background: rgba(251, 146, 60, 0.15); color: #fb923c; border-color: rgba(251, 146, 60, 0.3); }
.sapp-role-other { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border-color: rgba(148, 163, 184, 0.3); }

/* Role Modal */
.sapp-role-form h3 {
    margin-bottom: 4px;
}

.sapp-role-subtitle {
    color: var(--sapp-text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.sapp-role-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.sapp-role-option {
    cursor: pointer;
}

.sapp-role-option input {
    display: none;
}

.sapp-role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    background: var(--sapp-bg-card);
    border: 2px solid var(--sapp-border);
    border-radius: var(--sapp-radius-md);
    text-align: center;
    transition: var(--sapp-transition);
}

.sapp-role-card svg {
    width: 24px;
    height: 24px;
    color: var(--sapp-text-muted);
}

.sapp-role-card span {
    font-size: 11px;
    font-weight: 500;
    color: var(--sapp-text-secondary);
}

.sapp-role-option input:checked + .sapp-role-card {
    border-color: var(--sapp-primary);
    background: var(--sapp-primary-light);
}

.sapp-role-option input:checked + .sapp-role-card svg {
    color: var(--sapp-primary);
}

.sapp-role-option:hover .sapp-role-card {
    border-color: var(--sapp-border-hover);
}

.sapp-role-custom-wrap {
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--sapp-border);
}

.sapp-role-custom-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--sapp-text-secondary);
    margin-bottom: 8px;
}

.sapp-role-custom-wrap input {
    width: 100%;
    padding: 12px 14px;
    background: var(--sapp-bg-card);
    border: 1px solid var(--sapp-border);
    border-radius: var(--sapp-radius-md);
    color: var(--sapp-text);
    font-size: 14px;
}

.sapp-role-custom-wrap input:focus {
    outline: none;
    border-color: var(--sapp-primary);
    box-shadow: 0 0 0 3px var(--sapp-primary-light);
}

@media (max-width: 600px) {
    .sapp-role-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sapp-role-card {
        padding: 12px 6px;
    }
    
    .sapp-role-card span {
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .sapp-role-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
