/* ======================================================================= */
/* DASHBOARD STYLES - helloindex.css */
/* Яскравий Koodi стиль з тінями та кольорами */
/* ======================================================================= */

/* ======================================================================= */
/* Loading styles removed - using preloader.js instead */
/* ======================================================================= */

/* ======================================================================= */
/* MAIN DASHBOARD LAYOUT */
/* ======================================================================= */

.dashboard-main {
    padding-top: 40px;
    padding-bottom: 60px;
    min-height: 100vh;
    background-color: var(--bg);
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* ======================================================================= */
/* WELCOME SECTION - Яскрава картка привітання */
/* ======================================================================= */

.welcome-section {
    background: var(--lime);
    border-radius: 25px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    gap: 25px;
    border: 3px solid var(--black);
    box-shadow: 8px 8px 0px var(--black);
    transition: all 0.2s ease;
}

.welcome-section:hover {
    box-shadow: 10px 10px 0px var(--black);
    transform: translate(-2px, -2px);
}

.welcome-mascot {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.welcome-mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.welcome-message {
    flex-grow: 1;
}

.welcome-greeting {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--black);
    margin: 0;
}

.welcome-greeting span,
.welcome-greeting .greeting-username {
    color: var(--pink);
    font-weight: 900;
}

/* Greeting Rotator - анімований текст привітання */
.greeting-rotator {
    position: relative;
    min-height: 40px;
    perspective: 1000px;
}

.greeting-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: rotateX(90deg);
    transform-origin: center center;
    transition: all 0.5s ease;
    backface-visibility: hidden;
    pointer-events: none;
}

.greeting-item.active {
    opacity: 1;
    transform: rotateX(0deg);
    pointer-events: auto;
    position: relative;
}

.greeting-item.exit {
    opacity: 0;
    transform: rotateX(-90deg);
}

/* ======================================================================= */
/* SECTION TITLES */
/* ======================================================================= */

.section-title {
    font-size: 2em;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 25px;
}

/* ======================================================================= */
/* CONTINUE LEARNING CARD - Головна картка курсу */
/* ======================================================================= */

.continue-section {
    background: transparent;
}

.continue-card {
    background: var(--blue);
    border-radius: 25px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--black);
    box-shadow: 8px 8px 0px var(--black);
    transition: all 0.2s ease;
}

.continue-card:hover {
    box-shadow: 10px 10px 0px var(--black);
    transform: translate(-2px, -2px);
}

.continue-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.continue-progress-fill {
    height: 100%;
    background: var(--lime);
    transition: width 0.5s ease;
    width: 0%;
}

.continue-progress-text {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.2em;
    font-weight: 900;
    color: var(--lime);
    background: var(--black);
    padding: 8px 16px;
    border-radius: 12px;
}

.continue-label {
    display: inline-block;
    font-size: 0.85em;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    background: var(--white);
    padding: 6px 14px;
    border-radius: 8px;
}

.continue-title {
    font-size: 3em;
    font-weight: 900;
    color: var(--white);
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 0px var(--black);
}

.continue-subtitle {
    font-size: 1.2em;
    color: var(--white);
    margin: 0 0 30px 0;
    font-weight: 500;
}

.continue-subtitle span {
    font-weight: 700;
}

.continue-actions {
    display: flex;
    gap: 20px;
}

.continue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background: var(--lime);
    color: var(--black);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.2s ease;
    border: 3px solid var(--black);
    box-shadow: 5px 5px 0px var(--black);
}

.continue-btn:hover {
    box-shadow: 7px 7px 0px var(--black);
    transform: translate(-2px, -2px);
}

.view-course-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 30px;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.2s ease;
    border: 3px solid var(--black);
    box-shadow: 5px 5px 0px var(--black);
}

.view-course-btn:hover {
    box-shadow: 7px 7px 0px var(--black);
    transform: translate(-2px, -2px);
}

/* No Course Card */
.no-course-card {
    background: var(--white);
    border-radius: 25px;
    padding: 60px 40px;
    text-align: center;
    border: 3px dashed var(--black);
}

.no-course-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: var(--black);
    border: 3px solid var(--black);
    box-shadow: 5px 5px 0px var(--black);
}

.no-course-card h3 {
    font-size: 2em;
    color: var(--black);
    margin: 0 0 15px 0;
    font-weight: 900;
}

.no-course-card p {
    color: var(--darkgray);
    margin: 0 0 30px 0;
    font-size: 1.2em;
}

.start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background: var(--lime);
    color: var(--black);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.2s ease;
    border: 3px solid var(--black);
    box-shadow: 6px 6px 0px var(--black);
}

.start-btn:hover {
    box-shadow: 8px 8px 0px var(--black);
    transform: translate(-2px, -2px);
}

/* ======================================================================= */
/* PROGRESS SECTION - Картки курсів */
/* ======================================================================= */

.progress-section {
    background: transparent;
}

.progress-courses {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.progress-course-card {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: all 0.2s ease;
    border: 3px solid var(--black);
    box-shadow: 6px 6px 0px var(--black);
    text-decoration: none;
    color: inherit;
}

.progress-course-card:hover {
    box-shadow: 8px 8px 0px var(--black);
    transform: translate(-2px, -2px);
}

.progress-course-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-course-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--black);
}

.progress-course-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.progress-course-info h4 {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--black);
    margin: 0;
}

.progress-course-info p {
    font-size: 0.9em;
    color: var(--darkgray);
    margin: 5px 0 0 0;
    font-weight: 500;
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex-grow: 1;
    height: 12px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--black);
}

.progress-bar-fill {
    height: 100%;
    background: var(--lime);
    border-radius: 8px;
    transition: width 0.5s ease;
}

.progress-percentage {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--black);
    min-width: 50px;
    text-align: right;
}

.show-all-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.2s ease;
}

.show-all-link:hover {
    color: var(--pink);
    transform: translateX(5px);
}

.show-all-link i {
    font-size: 0.9em;
}

/* ======================================================================= */
/* QUICK ACTIONS SECTION - Яскраві картки */
/* ======================================================================= */

.quick-actions-section {
    background: transparent;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.quick-action-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 3px solid var(--black);
    box-shadow: 6px 6px 0px var(--black);
}

.quick-action-card:hover {
    box-shadow: 8px 8px 0px var(--black);
    transform: translate(-2px, -2px);
}

/* Кольорові картки */
.quick-action-card:nth-child(1) {
    background: var(--blue);
}

.quick-action-card:nth-child(2) {
    background: var(--lime);
}

.quick-action-card:nth-child(3) {
    background: var(--pink);
}

.quick-action-card:nth-child(4) {
    background: var(--orange);
}

.quick-action-card:nth-child(5) {
    background: var(--white);
    border: 3px solid var(--lime);
    box-shadow: 6px 6px 0px var(--lime);
}

.quick-action-card:nth-child(5):hover {
    box-shadow: 8px 8px 0px var(--lime);
}

.quick-action-card:nth-child(5) .quick-action-icon {
    background: var(--lime) !important;
}

.quick-action-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    color: var(--black);
    background: var(--white) !important;
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0px var(--black);
}

.quick-action-info h4 {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--black);
    margin: 0;
}

.quick-action-info p {
    font-size: 0.9em;
    color: var(--black);
    margin: 5px 0 0 0;
    opacity: 0.8;
}

.quick-action-card:nth-child(3) .quick-action-info h4,
.quick-action-card:nth-child(3) .quick-action-info p {
    color: var(--white);
}

/* ======================================================================= */
/* PINNED NOTES SECTION */
/* ======================================================================= */

.pinned-notes-section {
    background: transparent;
}

.pinned-notes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.pinned-note-card {
    background: var(--white);
    border-radius: 15px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    border: 3px solid var(--black);
    box-shadow: 5px 5px 0px var(--black);
    transition: all 0.2s ease;
    border-left: 6px solid var(--blue);
}

.pinned-note-card:hover {
    box-shadow: 7px 7px 0px var(--black);
    transform: translate(-2px, -2px);
}

.pinned-note-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.pinned-note-info {
    flex: 1;
    min-width: 0;
}

.pinned-note-info h4 {
    font-size: 1em;
    font-weight: 700;
    color: var(--black);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pinned-note-info p {
    font-size: 0.85em;
    color: var(--darkgray);
    margin: 4px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ======================================================================= */
/* RIGHT SIDEBAR */
/* ======================================================================= */

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 160px;
    height: fit-content;
}

/* User Profile Card */
.user-profile-card {
    background: var(--white);
    border-radius: 25px;
    padding: 35px 30px;
    text-align: center;
    border: 3px solid var(--black);
    box-shadow: 8px 8px 0px var(--black);
}

.user-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--lime);
    box-shadow: 5px 5px 0px var(--black);
    background: #f5f5f5;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.user-info h3 {
    font-size: 1.5em;
    font-weight: 900;
    color: var(--black);
    margin: 0;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.user-subscription {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    border: 2px solid var(--black);
}

.user-subscription.free {
    background: var(--lightgray);
    color: var(--darkgray);
}

.user-subscription.pro {
    background: var(--blue);
    color: var(--white);
}

.user-subscription.premium {
    background: linear-gradient(135deg, var(--orange), var(--pink));
    color: var(--white);
}

.user-joined {
    font-size: 0.9em;
    color: var(--darkgray);
    font-weight: 500;
}

.edit-profile-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 1em;
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.edit-profile-link:hover {
    color: var(--pink);
}

/* User Stats Grid */
.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
    padding: 25px 0;
    border-top: 3px solid var(--black);
    border-bottom: 3px solid var(--black);
}

.user-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    background: var(--bg);
    padding: 12px;
    border-radius: 12px;
    border: 2px solid var(--black);
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    border: 2px solid var(--black);
}

.stat-icon.fire {
    background: var(--lime);
    color: var(--black);
}

.stat-icon.trophy {
    background: var(--orange);
    color: var(--black);
}

.stat-icon.badge {
    background: var(--blue);
    color: var(--white);
}

.stat-icon.streak {
    background: var(--pink);
    color: var(--white);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .stat-value {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
}

.stat-info .stat-label {
    font-size: 0.75em;
    color: var(--darkgray);
    font-weight: 600;
}

.view-profile-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--lime);
    color: var(--black);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.2s ease;
    border: 3px solid var(--black);
    box-shadow: 5px 5px 0px var(--black);
}

.view-profile-btn:hover {
    box-shadow: 7px 7px 0px var(--black);
    transform: translate(-2px, -2px);
}

/* Certificates Button */
.certificates-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--orange);
    color: var(--black);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1em;
    text-align: center;
    margin-top: 12px;
    transition: all 0.2s ease;
    border: 3px solid var(--black);
    box-shadow: 5px 5px 0px var(--black);
}

.certificates-btn:hover {
    box-shadow: 7px 7px 0px var(--black);
    transform: translate(-2px, -2px);
}

.certificates-btn i {
    margin-right: 8px;
}

/* Subscription Card */
.subscription-card {
    background: var(--pink);
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    border: 3px solid var(--black);
    box-shadow: 8px 8px 0px var(--black);
}

.subscription-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    color: var(--black);
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0px var(--black);
}

.subscription-card h4 {
    font-size: 1.5em;
    font-weight: 900;
    color: var(--white);
    margin: 0 0 12px 0;
}

.subscription-card p {
    font-size: 1em;
    color: var(--white);
    margin: 0 0 25px 0;
    line-height: 1.5;
    opacity: 0.9;
}

.subscription-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1em;
    transition: all 0.2s ease;
    border: 3px solid var(--black);
    box-shadow: 5px 5px 0px var(--black);
}

.subscription-btn:hover {
    box-shadow: 7px 7px 0px var(--black);
    transform: translate(-2px, -2px);
}

/* ======================================================================= */
/* MY COURSES SECTION */
/* ======================================================================= */

.my-courses-section,
.my-projects-section {
    background: transparent;
}

.courses-loading {
    text-align: center;
    padding: 30px;
    color: var(--darkgray);
    font-size: 1.1em;
}

.courses-loading i {
    margin-right: 10px;
    color: var(--lime);
}

.my-courses-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.course-card-dashboard {
    background: var(--white);
    border-radius: 18px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    border: 3px solid var(--black);
    box-shadow: 5px 5px 0px var(--black);
    transition: all 0.2s ease;
}

.course-card-dashboard:hover {
    box-shadow: 7px 7px 0px var(--black);
    transform: translate(-2px, -2px);
}

.course-card-icon {
    font-size: 2.5em;
    width: 60px;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.course-card-info {
    flex: 1;
}

.course-card-info h4 {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--black);
    margin: 0;
}

.course-card-info p {
    font-size: 0.9em;
    color: var(--darkgray);
    margin: 5px 0 0 0;
    font-weight: 500;
}

.course-level-badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--black);
    font-size: 0.6em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 10px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-card-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 150px;
}

.course-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.course-progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    transition: width 0.5s ease;
}

.course-progress-text {
    font-size: 1.1em;
    font-weight: 700;
}

.course-lessons-text {
    font-size: 0.85em;
}

.no-courses-message {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    border: 3px dashed var(--black);
}

.no-courses-message i {
    font-size: 3em;
    color: var(--lime);
    margin-bottom: 15px;
    display: block;
}

.no-courses-message p {
    color: var(--darkgray);
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* ======================================================================= */
/* MY PROJECTS SECTION */
/* ======================================================================= */

.my-projects-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.project-item-dashboard {
    background: var(--white);
    border-radius: 15px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: inherit;
    border: 3px solid var(--black);
    box-shadow: 5px 5px 0px var(--black);
    transition: all 0.2s ease;
}

.project-item-dashboard:hover {
    box-shadow: 7px 7px 0px var(--black);
    transform: translate(-2px, -2px);
}

.project-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    color: var(--white);
    border: 2px solid var(--black);
}

.project-item-icon.html-css-js {
    background: var(--orange);
}

.project-item-icon.react {
    background: #61DAFB;
}

.project-item-icon.vue {
    background: #42b883;
}

.project-item-icon.nodejs {
    background: #68A063;
}

.project-item-icon.python {
    background: #3776AB;
}

.project-item-icon.java {
    background: #007396;
}

.project-item-info {
    flex: 1;
}

.project-item-info h4 {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

.project-item-info p {
    font-size: 0.85em;
    color: var(--darkgray);
    margin: 4px 0 0 0;
}

.project-arrow {
    color: var(--darkgray);
    font-size: 1em;
}

/* ======================================================================= */
/* RECOMMENDED SECTION */
/* ======================================================================= */

.recommended-section {
    background: transparent;
}

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

.recommended-card {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 3px solid var(--black);
    box-shadow: 6px 6px 0px var(--black);
    transition: all 0.2s ease;
    position: relative;
}

.recommended-card:hover {
    box-shadow: 8px 8px 0px var(--black);
    transform: translate(-2px, -2px);
}

.recommended-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lime);
    color: var(--black);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    border: 2px solid var(--black);
    white-space: nowrap;
}

.recommended-icon {
    width: 70px;
    height: 70px;
    margin: 20px auto 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    color: var(--white);
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0px var(--black);
}

.recommended-card h4 {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 8px 0;
}

.recommended-card p {
    font-size: 0.9em;
    color: var(--darkgray);
    margin: 0;
}

/* ======================================================================= */
/* LEAGUE CARD (SIDEBAR) */
/* ======================================================================= */

.league-card {
    background: var(--lime);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 3px solid var(--black);
    box-shadow: 6px 6px 0px var(--black);
}

.league-icon {
    font-size: 3em;
    line-height: 1;
}

.league-info {
    flex: 1;
}

.league-info h4 {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 10px 0;
}

.league-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.league-progress-bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.league-progress-fill {
    height: 100%;
    background: var(--black);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.league-progress-text {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--black);
}

/* ======================================================================= */
/* WEEKLY STATS SECTION */
/* ======================================================================= */

.weekly-stats-section {
    background: transparent;
}

.weekly-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.weekly-stat-card {
    background: var(--white);
    border-radius: 18px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 3px solid var(--black);
    box-shadow: 5px 5px 0px var(--black);
    transition: all 0.2s ease;
}

.weekly-stat-card:hover {
    box-shadow: 7px 7px 0px var(--black);
    transform: translate(-2px, -2px);
}

.weekly-stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    color: var(--black);
    border: 2px solid var(--black);
    flex-shrink: 0;
}

.weekly-stat-info {
    display: flex;
    flex-direction: column;
}

.weekly-stat-value {
    font-size: 1.6em;
    font-weight: 900;
    color: var(--black);
    line-height: 1.2;
}

.weekly-stat-label {
    font-size: 0.85em;
    color: var(--darkgray);
    font-weight: 500;
}

/* ======================================================================= */
/* ACTIVITY CALENDAR SECTION */
/* ======================================================================= */

.activity-calendar-section {
    background: transparent;
}

.activity-calendar-card {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    border: 3px solid var(--black);
    box-shadow: 6px 6px 0px var(--black);
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
    text-align: center;
}

.calendar-header-row span {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--darkgray);
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.activity-day {
    aspect-ratio: 1;
    border-radius: 50%;
    background: #ebedf0;
    border: none;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 32px;
    max-height: 32px;
}

.activity-day:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.activity-day.empty {
    background: #ebedf0;
}

.activity-day.low {
    background: #9be9a8;
}

.activity-day.medium {
    background: #40c463;
}

.activity-day.high {
    background: #30a14e;
}

.activity-day.today {
    box-shadow: 0 0 0 2px var(--pink);
}

.calendar-legend {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8em;
    color: var(--darkgray);
}

.legend-box {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
}

.legend-box.empty {
    background: #ebedf0;
}

.legend-box.low {
    background: #9be9a8;
}

.legend-box.medium {
    background: #40c463;
}

.legend-box.high {
    background: #30a14e;
}

/* ======================================================================= */
/* DAILY QUOTE SECTION */
/* ======================================================================= */

.daily-quote-section {
    background: transparent;
}

.quote-card {
    background: var(--white);
    border-radius: 25px;
    padding: 35px 40px;
    text-align: center;
    border: 4px solid var(--black);
    box-shadow: 8px 8px 0px var(--black);
    position: relative;
}

.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quote-icon {
    width: 60px;
    height: 60px;
    background: var(--lime);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0px var(--black);
}

.quote-sort-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 3px solid var(--black);
    background: var(--blue);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 4px 4px 0px var(--black);
}

.quote-sort-btn:hover {
    box-shadow: 5px 5px 0px var(--black);
    transform: translate(-1px, -1px);
}

.quote-sort-btn:active {
    box-shadow: 2px 2px 0px var(--black);
    transform: translate(2px, 2px);
}

.quote-text {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 15px 0;
    line-height: 1.5;
    font-style: italic;
}

.quote-author {
    font-size: 1em;
    color: var(--darkgray);
    font-weight: 600;
}

.quote-counter {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed rgba(0,0,0,0.1);
    font-size: 0.85em;
    color: var(--darkgray);
}

/* ======================================================================= */
/* DICTIONARY SECTION - Яскравий стиль */
/* ======================================================================= */

.dictionary-section {
    background: transparent;
}

.dictionary-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.dict-tab {
    padding: 14px 28px;
    border-radius: 15px;
    border: 3px solid var(--black);
    background: var(--white);
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 4px 4px 0px var(--black);
}

.dict-tab:hover {
    box-shadow: 6px 6px 0px var(--black);
    transform: translate(-2px, -2px);
}

.dict-tab.active {
    box-shadow: 5px 5px 0px var(--black);
}

/* Кольори для активних табів */
.dict-tab[data-lang="html"].active {
    background: #E44D26;
    color: white;
}

.dict-tab[data-lang="css"].active {
    background: #264de4;
    color: white;
}

.dict-tab[data-lang="js"].active {
    background: #F7DF1E;
    color: black;
}

.dict-tab[data-lang="react"].active {
    background: #61DAFB;
    color: black;
}

.dictionary-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Яскраві картки словника */
.dict-term-card {
    background: var(--white);
    border-radius: 20px;
    border: 4px solid;
    overflow: hidden;
    transition: all 0.2s ease;
}

.dict-term-card:hover {
    transform: translate(-3px, -3px);
}

.dict-term-header {
    padding: 15px 20px;
    border-bottom: 3px solid var(--black);
}

.dict-term-title {
    font-size: 1.3em;
    font-weight: 800;
    color: var(--black);
    display: block;
}

.dict-term-body {
    padding: 18px 20px;
}

.dict-term-text {
    font-size: 1.05em;
    color: var(--black);
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* Dictionary Code Examples */
.dict-example {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed rgba(0,0,0,0.15);
}

.dict-example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dict-example-label {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--black);
}

/* Copy Button */
.copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 2px solid var(--black);
    background: var(--lime);
    font-weight: 600;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 2px 2px 0px var(--black);
}

.copy-btn:hover {
    box-shadow: 3px 3px 0px var(--black);
    transform: translate(-1px, -1px);
}

.copy-btn:active {
    box-shadow: 1px 1px 0px var(--black);
    transform: translate(1px, 1px);
}

.copy-btn.copied {
    background: #4CAF50;
    color: white;
}

.copy-btn i {
    font-size: 0.9em;
}

.copy-text {
    color: var(--black);
}

.copy-btn.copied .copy-text {
    color: white;
}

.dict-example pre {
    margin: 0;
    background: #1e1e1e;
    border-radius: 12px;
    padding: 15px;
    overflow-x: auto;
    border: 2px solid var(--black);
}

.dict-example code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    color: #9cdcfe;
    white-space: pre;
    line-height: 1.5;
}

/* Посилання на повний словник */
.dict-full-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.2s ease;
    border: 3px solid var(--black);
    box-shadow: 5px 5px 0px var(--black);
}

.dict-full-link:hover {
    box-shadow: 7px 7px 0px var(--black);
    transform: translate(-2px, -2px);
}

.dict-link-badge {
    background: var(--lime);
    color: var(--black);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
}

/* ======================================================================= */
/* RESPONSIVE STYLES */
/* ======================================================================= */

@media (max-width: 1200px) {
    .recommended-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .dashboard-container {
        grid-template-columns: 1fr 320px;
        gap: 30px;
    }

    .progress-courses {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pinned-notes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        padding: 0 30px;
    }

    .dashboard-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .progress-courses {
        grid-template-columns: repeat(3, 1fr);
    }

    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .weekly-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .weekly-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quote-card {
        padding: 25px;
    }

    .quote-text {
        font-size: 1.2em;
    }

    .dictionary-tabs {
        gap: 8px;
    }

    .dict-tab {
        padding: 10px 18px;
        font-size: 0.85em;
    }
    .dashboard-main {
        padding-top: 30px;
        padding-bottom: 40px;
    }

    .dashboard-container {
        padding: 0 20px;
        gap: 35px;
    }

    .dashboard-content {
        gap: 40px;
    }

    .welcome-section {
        padding: 25px;
        flex-direction: column;
        text-align: center;
        box-shadow: 6px 6px 0px var(--black);
    }

    .welcome-greeting {
        font-size: 1.4em;
    }

    .welcome-mascot {
        width: 80px;
        height: 80px;
    }

    .section-title {
        font-size: 1.6em;
    }

    .continue-card {
        padding: 30px 25px;
        box-shadow: 6px 6px 0px var(--black);
    }

    .continue-title {
        font-size: 2em;
    }

    .continue-actions {
        flex-direction: column;
    }

    .continue-btn, .view-course-btn {
        width: 100%;
        justify-content: center;
    }

    .progress-courses {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .progress-course-card {
        box-shadow: 5px 5px 0px var(--black);
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .quick-action-card {
        box-shadow: 5px 5px 0px var(--black);
    }

    .dashboard-sidebar {
        grid-template-columns: 1fr;
    }

    .user-profile-card, .subscription-card {
        box-shadow: 6px 6px 0px var(--black);
    }

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

    .course-card-dashboard {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .course-card-progress {
        width: 100%;
        align-items: stretch;
    }

    .league-card {
        box-shadow: 5px 5px 0px var(--black);
    }
}

@media (max-width: 576px) {
    .dashboard-container {
        padding: 0 15px;
        gap: 30px;
    }

    .dashboard-content {
        gap: 30px;
    }

    .welcome-section {
        padding: 20px;
        border-radius: 20px;
    }

    .welcome-mascot {
        width: 70px;
        height: 70px;
    }

    .welcome-greeting {
        font-size: 1.2em;
    }

    .section-title {
        font-size: 1.4em;
    }

    .continue-card {
        border-radius: 20px;
        padding: 25px 20px;
    }

    .continue-progress-text {
        font-size: 1em;
        padding: 6px 12px;
    }

    .continue-title {
        font-size: 1.8em;
    }

    .continue-subtitle {
        font-size: 1em;
    }

    .continue-btn, .view-course-btn {
        padding: 15px 25px;
        font-size: 1em;
    }

    .progress-courses {
        grid-template-columns: 1fr;
    }

    .progress-course-card {
        padding: 20px;
        border-radius: 15px;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .quick-action-card {
        padding: 25px 15px;
        border-radius: 15px;
    }

    .quick-action-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5em;
    }

    .quick-action-info h4 {
        font-size: 1em;
    }

    .quick-action-info p {
        font-size: 0.8em;
    }

    .user-profile-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .user-avatar {
        width: 80px;
        height: 80px;
    }

    .user-info h3 {
        font-size: 1.3em;
    }

    .user-stats-grid {
        gap: 10px;
    }

    .user-stat {
        padding: 10px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9em;
    }

    .stat-info .stat-value {
        font-size: 1em;
    }

    .subscription-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .subscription-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }

    .recommended-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .recommended-card {
        padding: 20px;
    }

    .recommended-icon {
        width: 60px;
        height: 60px;
        margin: 15px auto 12px;
    }

    .course-card-dashboard {
        padding: 15px 18px;
    }

    .course-card-icon {
        font-size: 2em;
        width: 50px;
    }

    .project-item-dashboard {
        padding: 15px 18px;
    }

    .league-card {
        padding: 20px;
    }

    .league-icon {
        font-size: 2.5em;
    }

    .weekly-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .weekly-stat-card {
        padding: 18px 15px;
    }

    .weekly-stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
    }

    .weekly-stat-value {
        font-size: 1.3em;
    }

    .activity-calendar-card {
        padding: 20px;
    }

    .activity-grid {
        gap: 5px;
    }

    .calendar-legend {
        flex-wrap: wrap;
        gap: 10px;
    }

    .quote-card {
        padding: 20px;
    }

    .quote-icon {
        font-size: 2em;
    }

    .quote-text {
        font-size: 1.1em;
    }

    .dictionary-tabs {
        justify-content: center;
    }

    .dict-tab {
        padding: 8px 14px;
        font-size: 0.8em;
    }

    .dictionary-content {
        padding: 20px;
    }
}

/* ======================================================================= */
/* TRIAL POPUP */
/* ======================================================================= */

.trial-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.trial-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.trial-popup-modal {
    background: #fff;
    border: 3px solid #1a1a1a;
    border-radius: 25px;
    box-shadow: 8px 8px 0px #1a1a1a;
    padding: 40px 35px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(0.8) translateY(30px);
    transition: transform 0.3s ease;
}

.trial-popup-overlay.active .trial-popup-modal {
    transform: scale(1) translateY(0);
}

.trial-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #1a1a1a;
    line-height: 1;
    transition: transform 0.2s;
}

.trial-popup-close:hover {
    transform: scale(1.2);
}

.trial-popup-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.trial-popup-title {
    font-family: 'Rubik', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.trial-popup-subtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.trial-popup-features {
    text-align: left;
    margin-bottom: 25px;
}

.trial-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

.trial-feature-item i {
    color: #C6DF2B;
    background: #1a1a1a;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.trial-popup-cta {
    display: block;
    width: 100%;
    padding: 16px;
    background: #C6DF2B;
    color: #1a1a1a;
    border: 3px solid #1a1a1a;
    border-radius: 15px;
    box-shadow: 4px 4px 0px #1a1a1a;
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trial-popup-cta:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #1a1a1a;
}

.trial-popup-cta:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #1a1a1a;
}

.trial-popup-note {
    font-size: 13px;
    color: #888;
    margin-top: 12px;
}

/* ======================================================================= */
/* TRIAL EXPIRY REMINDER BANNER */
/* ======================================================================= */

.trial-expiry-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: linear-gradient(135deg, #FF4E99, #FF9F00);
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.trial-expiry-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.trial-expiry-content i {
    font-size: 18px;
    flex-shrink: 0;
}

.trial-expiry-content span {
    flex: 1;
}

.trial-expiry-btn {
    background: #fff;
    color: #1a1a1a;
    padding: 8px 20px;
    border-radius: 10px;
    border: 2px solid #1a1a1a;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.trial-expiry-btn:hover {
    background: #C6DF2B;
}

.trial-expiry-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .trial-popup-modal {
        padding: 30px 20px;
    }

    .trial-popup-title {
        font-size: 22px;
    }

    .trial-expiry-content {
        flex-wrap: wrap;
        font-size: 13px;
    }

    .trial-expiry-btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   DASHBOARD EDIT MODE
   ============================================ */

/* Edit Bar */
.dashboard-edit-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.dashboard-edit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white);
    color: var(--black);
    border: 3px solid var(--black);
    border-radius: 14px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 4px 4px 0px var(--black);
    transition: all 0.2s ease;
}

.dashboard-edit-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--black);
}

.dashboard-edit-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px var(--black);
}

.dashboard-edit-btn.active {
    background: var(--lime);
    color: var(--black);
}

.dashboard-edit-btn i {
    font-size: 14px;
}

/* Section Hide Button */
.section-hide-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 2px solid var(--black);
    border-radius: 10px;
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 10;
}

.section-hide-btn:hover {
    background: var(--pink);
    color: var(--white);
    border-color: var(--pink);
    transform: scale(1.1);
    box-shadow: 3px 3px 0px rgba(0,0,0,0.2);
}

/* Edit Mode Active */
.dashboard-content.edit-mode [data-section-id] {
    position: relative;
    border: 2px dashed var(--gray);
    border-radius: 20px;
    padding-top: 16px;
    transition: all 0.3s ease;
}

.dashboard-content.edit-mode [data-section-id]:hover {
    border-color: var(--pink);
    background: rgba(255, 78, 153, 0.02);
}

.dashboard-content.edit-mode .section-hide-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Section Fade Out Animation */
@keyframes sectionFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
        max-height: 600px;
    }
    50% {
        opacity: 0;
        transform: scale(0.96);
    }
    100% {
        opacity: 0;
        transform: scale(0.96);
        max-height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
}

[data-section-id].section-hiding {
    animation: sectionFadeOut 0.4s ease forwards;
}

[data-section-id].section-hidden {
    display: none !important;
}

/* Hidden Sections Restore Bar */
.hidden-sections-bar {
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 20px;
    box-shadow: 6px 6px 0px var(--black);
    padding: 24px 28px;
    margin-top: 20px;
}

.hidden-sections-bar h4 {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hidden-sections-bar h4 i {
    color: var(--gray);
    font-size: 18px;
}

.hidden-sections-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hidden-section-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f5f5f5;
    border: 2px solid var(--black);
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hidden-section-chip:hover {
    background: var(--lime);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0px var(--black);
}

.hidden-section-chip i {
    font-size: 12px;
    color: var(--blue);
}

/* Dashboard Edit Toast */
.dashboard-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 16px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    z-index: 99999;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.3);
    border: 2px solid var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 420px;
    background: var(--blue);
    color: var(--white);
}

.dashboard-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-edit-btn {
        padding: 8px 14px;
        font-size: 13px;
        border-width: 2px;
        box-shadow: 3px 3px 0px var(--black);
        border-radius: 12px;
    }

    .dashboard-edit-btn span {
        display: none;
    }

    .section-hide-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
        top: 8px;
        right: 8px;
    }

    .hidden-sections-bar {
        padding: 18px 20px;
        border-width: 2px;
        box-shadow: 4px 4px 0px var(--black);
    }

    .hidden-section-chip {
        padding: 8px 14px;
        font-size: 12px;
        border-width: 2px;
    }

    .dashboard-toast {
        bottom: 20px;
        right: 16px;
        left: 16px;
        max-width: none;
        font-size: 13px;
        border-width: 2px;
    }

    .course-hide-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
        top: -8px;
        right: -4px;
    }
}

/* Course Card Wrapper & Hide Button */
.course-card-wrapper {
    position: relative;
}

.course-hide-btn {
    position: absolute;
    top: -10px;
    right: -6px;
    width: 32px;
    height: 32px;
    border: 2px solid var(--black);
    border-radius: 50%;
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 10;
}

.course-hide-btn:hover {
    background: var(--pink);
    color: var(--white);
    border-color: var(--pink);
    transform: scale(1.15);
    box-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}

.dashboard-content.edit-mode .course-hide-btn {
    opacity: 1;
    pointer-events: auto;
}

.dashboard-content.edit-mode .course-card-wrapper {
    transition: all 0.2s ease;
}

.dashboard-content.edit-mode .course-card-wrapper:hover {
    transform: translate(-1px, -1px);
}

/* Course fade out animation */
@keyframes courseFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
        max-height: 120px;
    }
    100% {
        opacity: 0;
        transform: scale(0.9) translateX(20px);
        max-height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
}

.course-card-wrapper.course-hiding {
    animation: courseFadeOut 0.35s ease forwards;
}

/* No visible courses message */
.no-visible-courses {
    text-align: center;
    padding: 30px 20px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    border: 2px dashed var(--gray);
    border-radius: 16px;
    background: #fafafa;
}

.no-visible-courses i {
    margin-right: 8px;
    font-size: 16px;
}

/* Hidden group labels */
.hidden-group-label {
    width: 100%;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    margin-bottom: 4px;
}

.hidden-group-label:first-child {
    margin-top: 0;
}

/* Hidden course chip (same as section chip but with course color accent) */
.hidden-course-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f5f5f5;
    border: 2px solid var(--black);
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hidden-course-chip:hover {
    background: var(--orange);
    color: var(--white);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0px var(--black);
}

.hidden-course-chip i {
    font-size: 12px;
    color: var(--orange);
}

.hidden-course-chip:hover i {
    color: var(--white);
}

/* =========================================================================
   МОБІЛЬНИЙ ЗАСТОСУНОК — КАРТОЧКА В САЙДБАРІ
   ========================================================================= */

.mobile-app-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid var(--lime);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    animation: mobileCardGlow 3s ease-in-out infinite;
}

@keyframes mobileCardGlow {
    0%, 100% { border-color: var(--lime); box-shadow: 0 0 10px rgba(198, 223, 43, 0.1); }
    50% { border-color: var(--blue); box-shadow: 0 0 15px rgba(78, 140, 255, 0.15); }
}

.mobile-app-card.mobile-active {
    border-color: var(--lime);
    animation: none;
}

.mobile-app-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--lime);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    font-size: 1.4em;
    color: var(--dark);
}

.mobile-active .mobile-app-card-icon {
    background: var(--lime);
}

.mobile-app-card h4 {
    color: var(--white);
    font-size: 1em;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.mobile-app-card p {
    color: var(--darkgray);
    font-size: 0.85em;
    margin: 0 0 14px 0;
}

.mobile-app-card-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--lime);
    color: var(--dark);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-app-card-btn:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.mobile-app-card-btn.mobile-installed {
    background: transparent;
    border: 2px solid var(--lime);
    color: var(--lime);
    cursor: default;
}

.mobile-app-card-btn.mobile-installed:hover {
    transform: none;
    background: transparent;
}
