/* ═══════════════════════════════════════════════
   КУРС «ПОЗНАЙ СЕБЯ» — стили
   Тёплая палитра: amber/gold + нейтральный фон
   ═══════════════════════════════════════════════ */

/* ── OVERLAY КОНТЕЙНЕР ── */
.sc-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: #0f0f1a;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    -webkit-overflow-scrolling: touch;
}
.sc-overlay.active {
    transform: translateY(0);
}
.sc-overlay.closing {
    transform: translateY(100%);
}

/* ── HEADER ── */
.sc-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(15,15,26,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,200,87,0.08);
}
.sc-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,200,87,0.15);
    background: rgba(255,200,87,0.05);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    font-size: 18px;
}
.sc-back-btn:hover {
    background: rgba(255,200,87,0.12);
    border-color: rgba(255,200,87,0.3);
}
.sc-header-title {
    font-size: 17px;
    font-weight: 600;
    color: #f5f5f5;
    flex: 1;
}
.sc-header-progress {
    font-size: 12px;
    color: #a78bfa;
    font-weight: 500;
    background: rgba(167,139,250,0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

/* ── WELCOME SCREEN ── */
.sc-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 24px 40px;
    min-height: 100vh;
    text-align: center;
}
.sc-welcome-glow {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251,191,36,0.2) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    animation: sc-glow-pulse 3s ease-in-out infinite;
}
@keyframes sc-glow-pulse {
    0%,100% { box-shadow: 0 0 30px rgba(251,191,36,0.15); }
    50% { box-shadow: 0 0 50px rgba(251,191,36,0.25); }
}
.sc-welcome-glow svg {
    width: 48px;
    height: 48px;
    color: #fbbf24;
}
.sc-welcome-title {
    font-size: 26px;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 10px;
    line-height: 1.3;
}
.sc-welcome-title span {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sc-welcome-subtitle {
    font-size: 15px;
    color: #94a3b8;
    max-width: 320px;
    line-height: 1.5;
    margin-bottom: 32px;
}

/* Welcome cards - что получишь */
.sc-welcome-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 340px;
    margin-bottom: 36px;
}
.sc-benefit-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,200,87,0.1);
    text-align: left;
}
.sc-benefit-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(251,191,36,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}
.sc-benefit-text {
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.4;
}
.sc-benefit-text strong {
    color: #fbbf24;
    font-weight: 600;
}

/* Welcome stats - доп инфо */
.sc-welcome-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 36px;
}
.sc-stat {
    text-align: center;
}
.sc-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #fbbf24;
}
.sc-stat-label {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

/* Start button */
.sc-start-btn {
    width: 100%;
    max-width: 300px;
    padding: 16px 24px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 4px 20px rgba(251,191,36,0.3);
}
.sc-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(251,191,36,0.4);
}
.sc-start-btn:active {
    transform: scale(0.97);
}

/* ── MODULE MAP ── */
.sc-map {
    padding: 20px 16px 100px;
}
.sc-map-intro {
    text-align: center;
    margin-bottom: 24px;
}
.sc-map-intro h2 {
    font-size: 20px;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 6px;
}
.sc-map-intro p {
    font-size: 13px;
    color: #64748b;
}

/* Progress bar */
.sc-progress-bar {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    height: 6px;
    margin-bottom: 24px;
    overflow: hidden;
}
.sc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 8px;
    transition: width .5s ease;
}

/* Module cards */
.sc-modules {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.sc-module-card {
    position: relative;
    padding: 18px 18px;
    border-radius: 16px;
    cursor: pointer;
    transition: all .25s;
    overflow: hidden;
}
.sc-module-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(245,158,11,0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.sc-module-available {
    background: rgba(251,191,36,0.04);
}
.sc-module-available:hover {
    background: rgba(251,191,36,0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(251,191,36,0.1);
}
.sc-module-locked {
    background: rgba(255,255,255,0.02);
    opacity: 0.55;
    cursor: default;
}
.sc-module-locked::before {
    background: linear-gradient(135deg, rgba(100,116,139,0.15), transparent);
}
.sc-module-completed {
    background: rgba(74,222,128,0.04);
}
.sc-module-completed::before {
    background: linear-gradient(135deg, rgba(74,222,128,0.2), rgba(74,222,128,0.05));
}
.sc-module-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.sc-module-num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.sc-module-available .sc-module-num {
    background: rgba(251,191,36,0.15);
    color: #fbbf24;
}
.sc-module-locked .sc-module-num {
    background: rgba(100,116,139,0.1);
    color: #64748b;
}
.sc-module-completed .sc-module-num {
    background: rgba(74,222,128,0.15);
    color: #4ade80;
}
.sc-module-info {
    flex: 1;
}
.sc-module-title {
    font-size: 15px;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 3px;
}
.sc-module-locked .sc-module-title {
    color: #94a3b8;
}
.sc-module-desc {
    font-size: 12px;
    color: #64748b;
}
.sc-module-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.sc-module-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #64748b;
}
.sc-module-meta-item svg {
    width: 13px;
    height: 13px;
    opacity: 0.7;
}
.sc-module-badge {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}
.sc-badge-free {
    background: rgba(74,222,128,0.1);
    color: #4ade80;
}
.sc-badge-locked {
    background: rgba(100,116,139,0.1);
    color: #64748b;
}
.sc-badge-progress {
    background: rgba(251,191,36,0.1);
    color: #fbbf24;
}
.sc-badge-done {
    background: rgba(74,222,128,0.1);
    color: #4ade80;
}

/* ── LESSON LIST (inside module) ── */
.sc-lessons {
    padding: 20px 16px 100px;
}
.sc-lessons-header {
    margin-bottom: 20px;
}
.sc-lessons-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 4px;
}
.sc-lessons-header p {
    font-size: 13px;
    color: #64748b;
}

/* Lesson path */
.sc-lesson-path {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 24px;
}
.sc-lesson-path::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: rgba(255,200,87,0.12);
    border-radius: 2px;
}

.sc-lesson-item {
    position: relative;
    padding: 16px 16px 16px 24px;
    border-radius: 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all .2s;
}
.sc-lesson-item:hover {
    background: rgba(255,255,255,0.03);
}
.sc-lesson-dot {
    position: absolute;
    left: -20px;
    top: 20px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(251,191,36,0.3);
    background: #0f0f1a;
    z-index: 2;
    transition: all .2s;
}
.sc-lesson-available .sc-lesson-dot {
    border-color: #fbbf24;
    box-shadow: 0 0 8px rgba(251,191,36,0.3);
}
.sc-lesson-completed .sc-lesson-dot {
    border-color: #4ade80;
    background: #4ade80;
}
.sc-lesson-locked .sc-lesson-dot {
    border-color: #374151;
}
.sc-lesson-locked {
    opacity: 0.5;
    cursor: default;
}
.sc-lesson-title {
    font-size: 14px;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 4px;
}
.sc-lesson-locked .sc-lesson-title {
    color: #64748b;
}
.sc-lesson-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}
.sc-lesson-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.sc-lesson-tag {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    background: rgba(255,255,255,0.04);
    color: #94a3b8;
}
.sc-lesson-tag-time {
    color: #a78bfa;
}

/* ── LESSON VIEW (content) ── */
.sc-lesson-view {
    padding: 20px 16px 120px;
}
.sc-lesson-view-header {
    margin-bottom: 20px;
}
.sc-lesson-view-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 6px;
}
.sc-lesson-view-header p {
    font-size: 13px;
    color: #64748b;
}

/* Content blocks */
.sc-content-block {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,200,87,0.08);
    border-radius: 16px;
    padding: 20px 18px;
    margin-bottom: 16px;
}
.sc-content-block h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sc-content-text {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.7;
}
.sc-content-text strong {
    color: #f5f5f5;
    font-weight: 600;
}
.sc-content-text ul {
    padding-left: 18px;
    margin: 8px 0;
}
.sc-content-text li {
    margin-bottom: 6px;
}

/* Reflection questions */
.sc-reflection {
    background: rgba(167,139,250,0.05);
    border: 1px solid rgba(167,139,250,0.12);
    border-radius: 16px;
    padding: 20px 18px;
    margin-bottom: 16px;
}
.sc-reflection h3 {
    font-size: 15px;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 12px;
}
.sc-reflection-question {
    font-size: 14px;
    color: #e2e8f0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(167,139,250,0.08);
    font-style: italic;
}
.sc-reflection-question:last-child {
    border-bottom: none;
}

/* Homework */
.sc-homework {
    background: rgba(251,191,36,0.03);
    border: 1px solid rgba(251,191,36,0.12);
    border-radius: 16px;
    padding: 20px 18px;
    margin-bottom: 16px;
}
.sc-homework h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 8px;
}
.sc-homework-desc {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 14px;
    line-height: 1.5;
}
.sc-homework-textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,200,87,0.15);
    border-radius: 12px;
    padding: 14px;
    color: #f5f5f5;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
}
.sc-homework-textarea:focus {
    border-color: rgba(251,191,36,0.4);
}
.sc-homework-textarea::placeholder {
    color: #4b5563;
}
.sc-homework-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.sc-homework-save {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.sc-homework-save:hover {
    box-shadow: 0 4px 16px rgba(251,191,36,0.3);
}
.sc-homework-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.sc-homework-saved {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4ade80;
    padding: 8px 0;
}

/* AI Feedback on homework */
.sc-ai-feedback {
    background: rgba(74,222,128,0.04);
    border: 1px solid rgba(74,222,128,0.12);
    border-radius: 14px;
    padding: 16px;
    margin-top: 14px;
    display: none;
}
.sc-ai-feedback.visible {
    display: block;
    animation: sc-fade-in .3s ease;
}
.sc-ai-feedback-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #4ade80;
}
.sc-ai-feedback-text {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Complete lesson button */
.sc-complete-btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #0f2718;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    margin-top: 20px;
    box-shadow: 0 4px 16px rgba(74,222,128,0.2);
}
.sc-complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(74,222,128,0.3);
}
.sc-complete-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── LOADING ── */
.sc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}
.sc-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(251,191,36,0.15);
    border-top-color: #fbbf24;
    border-radius: 50%;
    animation: sc-spin .8s linear infinite;
}
@keyframes sc-spin {
    to { transform: rotate(360deg); }
}
.sc-loading-text {
    font-size: 14px;
    color: #64748b;
}

/* ── INFO CARD (доп инфа) ── */
.sc-info-card {
    background: linear-gradient(135deg, rgba(251,191,36,0.06), rgba(245,158,11,0.02));
    border: 1px solid rgba(251,191,36,0.1);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.sc-info-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(251,191,36,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}
.sc-info-content {
    flex: 1;
}
.sc-info-title {
    font-size: 13px;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 4px;
}
.sc-info-text {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

/* ── ARCANA HIGHLIGHT ── */
.sc-arcana-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(251,191,36,0.1);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 600;
    margin: 4px 2px;
}

/* ── ANIMATIONS ── */
@keyframes sc-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.sc-animate-in {
    animation: sc-fade-in .4s ease both;
}
.sc-animate-in:nth-child(2) { animation-delay: .05s; }
.sc-animate-in:nth-child(3) { animation-delay: .1s; }
.sc-animate-in:nth-child(4) { animation-delay: .15s; }
.sc-animate-in:nth-child(5) { animation-delay: .2s; }

/* ── PAYWALL ── */
.sc-paywall {
    text-align: center;
    padding: 32px 20px 40px;
    margin-top: 8px;
}
.sc-paywall-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.sc-paywall-title {
    font-size: 19px;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 20px;
    line-height: 1.4;
}
.sc-paywall-pain {
    text-align: left;
    max-width: 340px;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sc-paywall-pain-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.45;
}
.sc-pain-icon {
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 1px;
}
.sc-paywall-get {
    text-align: left;
    max-width: 340px;
    margin: 0 auto 24px;
    background: rgba(167,139,250,0.06);
    border: 1px solid rgba(167,139,250,0.12);
    border-radius: 12px;
    padding: 14px 16px;
}
.sc-paywall-get-title {
    font-size: 13px;
    font-weight: 700;
    color: #a78bfa;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sc-paywall-get-item {
    font-size: 13.5px;
    color: #e2e8f0;
    line-height: 1.5;
    margin-bottom: 4px;
}
.sc-paywall-price {
    margin-bottom: 16px;
}
.sc-paywall-price-value {
    font-size: 32px;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: -0.5px;
}
.sc-paywall-price-note {
    font-size: 12.5px;
    color: #94a3b8;
    margin-top: 4px;
}
.sc-paywall-btn {
    padding: 15px 40px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(251,191,36,0.25);
    width: 100%;
    max-width: 320px;
}
.sc-paywall-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(251,191,36,0.35);
}
.sc-paywall-btn:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}
.sc-paywall-guarantee {
    font-size: 12px;
    color: #64748b;
    margin-top: 12px;
}

/* ── FEEDBACK / RATING ── */
.sc-feedback {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.sc-feedback-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(251,191,36,0.2);
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
}
.sc-feedback-trigger:hover {
    background: rgba(251,191,36,0.06);
    border-color: rgba(251,191,36,0.4);
    color: #fbbf24;
}
.sc-feedback-step {
    display: none;
    animation: sc-fadeIn .3s ease;
}
.sc-feedback-step.active {
    display: block;
}
.sc-feedback-question {
    font-size: 14px;
    color: #e2e8f0;
    margin-bottom: 12px;
    font-weight: 500;
}
.sc-feedback-scale {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 8px;
}
.sc-feedback-scale-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sc-feedback-scale-btn:hover {
    background: rgba(251,191,36,0.1);
    border-color: rgba(251,191,36,0.3);
    color: #fbbf24;
}
.sc-feedback-scale-btn.selected {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: #fbbf24;
    color: #1a1a2e;
}
.sc-feedback-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 16px;
    padding: 0 4px;
}
.sc-feedback-textarea {
    width: 100%;
    min-height: 60px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #f5f5f5;
    font-size: 14px;
    resize: vertical;
    outline: none;
    margin-bottom: 12px;
    transition: border-color .2s;
}
.sc-feedback-textarea:focus {
    border-color: rgba(251,191,36,0.3);
}
.sc-feedback-next {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: rgba(251,191,36,0.15);
    color: #fbbf24;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.sc-feedback-next:hover {
    background: rgba(251,191,36,0.25);
}
.sc-feedback-thanks {
    text-align: center;
    padding: 16px;
    color: #4ade80;
    font-size: 14px;
    font-weight: 500;
}
.sc-feedback-note {
    text-align: center;
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

/* ── MODULE CHAT ── */
.sc-chat-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    margin: 20px 0 8px;
    background: rgba(167,139,250,0.08);
    border: 1px solid rgba(167,139,250,0.2);
    border-radius: 14px;
    color: #a78bfa;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.sc-chat-trigger:hover { background: rgba(167,139,250,0.15); }
.sc-chat-trigger-icon { font-size: 18px; }

.sc-chat-panel {
    display: none;
    flex-direction: column;
    margin-top: 16px;
    border: 1px solid rgba(167,139,250,0.2);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(12px);
}
.sc-chat-panel.open { display: flex; }

.sc-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(167,139,250,0.1);
    font-size: 13px;
    font-weight: 600;
    color: #c4b5fd;
}
.sc-chat-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}
.sc-chat-close:hover { color: #94a3b8; }

.sc-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    max-height: 350px;
    min-height: 120px;
    overflow-y: auto;
}

.sc-chat-msg {
    display: flex;
    max-width: 85%;
}
.sc-chat-user { align-self: flex-end; margin-left: auto; }
.sc-chat-assistant { align-self: flex-start; }

.sc-chat-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}
.sc-chat-user .sc-chat-bubble {
    background: rgba(167,139,250,0.2);
    color: #e2e8f0;
    border-bottom-right-radius: 4px;
}
.sc-chat-assistant .sc-chat-bubble {
    background: rgba(30,41,59,0.8);
    color: #cbd5e1;
    border-bottom-left-radius: 4px;
}

.sc-chat-typing .sc-chat-bubble {
    color: #64748b;
    font-style: italic;
}

@keyframes scChatPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.sc-chat-typing .sc-chat-bubble {
    animation: scChatPulse 1.5s ease-in-out infinite;
}

.sc-chat-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.sc-chat-input {
    flex: 1;
    background: rgba(30,41,59,0.6);
    border: 1px solid rgba(100,116,139,0.2);
    border-radius: 12px;
    padding: 10px 14px;
    color: #e2e8f0;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 100px;
}
.sc-chat-input:focus { border-color: rgba(167,139,250,0.4); }
.sc-chat-input::placeholder { color: #475569; }

.sc-chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.sc-chat-send:disabled { opacity: 0.4; cursor: not-allowed; }
.sc-chat-send:hover:not(:disabled) { opacity: 0.85; }

/* ── MOBILE ── */
@media (max-width: 400px) {
    .sc-welcome { padding: 40px 16px 30px; }
    .sc-welcome-title { font-size: 22px; }
    .sc-module-card { padding: 14px; }
    .sc-content-block { padding: 16px 14px; }
    .sc-homework-textarea { min-height: 100px; }
    .sc-feedback-scale-btn { width: 30px; height: 30px; font-size: 12px; }
    .sc-feedback-scale { gap: 4px; }
    .sc-chat-messages { max-height: 280px; }
    .sc-chat-msg { max-width: 90%; }
}
