* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background:
            radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 28%),
            radial-gradient(circle at left, rgba(16, 185, 129, 0.10), transparent 24%),
            linear-gradient(180deg, #f5f8ff 0%, #eef3fb 100%);
    color: #0f172a;
    min-height: 100vh;
}

.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 20px 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #129990, #0c645e);
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 14px 30px rgba(16, 158, 135, 0.35);
}

.brand h1 {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.brand p {
    color: #64748b;
    font-size: 0.95rem;
}

.top-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-family: inherit;
    cursor: pointer;
    font-weight: 700;
    transition: 0.25s ease;
}

.pill-btn.primary {
    background: linear-gradient(135deg, #129990, #0c645e);
    color: #fff;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.25);
}

.pill-btn.secondary {
    background: rgba(255, 255, 255, 0.85);
    color: #334155;
    border: 1px solid #e2e8f0;
}

.hero {
    background: linear-gradient(135deg, rgba(15, 42, 38, 0.96), rgba(30, 41, 59, 0.96));
    color: white;
    border-radius: 32px;
    padding: 34px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
    margin-bottom: 26px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -40px auto auto -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(99, 241, 227, 0.35), transparent 70%);
    filter: blur(10px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 22px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    margin-bottom: 12px;
    line-height: 1.5;
}

.hero p {
    color: rgba(226, 232, 240, 0.9);
    line-height: 2;
    font-size: 1rem;
    max-width: 760px;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 18px;
    backdrop-filter: blur(10px);
}

.stat-card strong {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.stat-card span {
    color: rgba(226, 232, 240, 0.8);
    font-size: 0.95rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.95fr;
    gap: 24px;
    align-items: start;
}

.section-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.section-header {
    padding: 22px 22px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.section-header h3 {
    font-size: 1.15rem;
}

.section-header span {
    color: #64748b;
    font-size: 0.92rem;
}

.search-bar {
    padding: 16px 22px 0;
}

.search-bar input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 14px 16px;
    font-family: inherit;
    background: #fff;
    outline: none;
    transition: 0.2s ease;
}

.search-bar input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.course-list {
    padding: 18px;
    display: grid;
    gap: 16px;
}

.course-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    transition: 0.25s ease;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
    border-color: #c7d2fe;
}

.video-placeholder {
    background:
            linear-gradient(135deg, rgba(51, 125, 115, 0.95), rgba(11, 177, 157, 0.85)),
            radial-gradient(circle at top right, rgba(255,255,255,0.2), transparent 35%);
    min-height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.video-placeholder::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 18px;
}

.video-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 18px;
}

.play-badge {
    width: 66px;
    height: 66px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    backdrop-filter: blur(8px);
}

.video-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.video-content p {
    font-size: 0.9rem;
    opacity: 0.92;
    line-height: 1.8;
}

.course-body {
    padding: 18px 18px 16px;
}

.course-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: #eef2ff;
    color: #4338ca;
}

.tag.green {
    background: #ecfdf5;
    color: #047857;
}

.tag.orange {
    background: #fff7ed;
    color: #c2410c;
}

.course-body h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.7;
}

.course-body p {
    color: #64748b;
    line-height: 2;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.course-info {
    color: #475569;
    font-size: 0.92rem;
}

.buy-btn {
    border: none;
    border-radius: 14px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #0c6455, #059680);
    color: white;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(16, 185, 129, 0.2);
}

.my-courses {
    padding: 18px;
    display: grid;
    gap: 14px;
}

.my-course-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: 0.2s ease;
}

.my-course-item:hover {
    border-color: #c7d2fe;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.my-course-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.my-course-top h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.my-course-top p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.9;
}

.progress-wrap {
    background: #f1f5f9;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1d483d, #5cf6c8);
}

.my-course-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.continue-btn {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    background: #eff6ff;
    color: #0c645e;
}

.empty-state {
    padding: 24px;
    text-align: center;
    color: #64748b;
    line-height: 2;
}

.empty-state strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
    margin-bottom: 6px;
}

@media (max-width: 1100px) {
    .content-grid,
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 14px;
    }

    .topbar,
    .hero {
        border-radius: 22px;
        padding: 18px;
    }

    .section-card {
        border-radius: 22px;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .top-actions {
        width: 100%;
    }

    .pill-btn {
        flex: 1;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: start;
    }
}