.teacher-public-page {
    background: #fff !important;
    padding: 64px 16px 96px;
}

.teacher-public-container {
    max-width: 1220px;
    margin: 0 auto;
}

.teacher-public-hero {
    margin-bottom: 48px;
}

.creator-hero-card {
    position: relative;
    border-radius: 10px;
    padding: 20px 30px;
    color: #f8fbff;
    overflow: hidden;
    background: #fff;
    color:#000;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  border: 1px solid #f1f1f1;
}



.creator-hero-top,
.creator-hero-stats {
    position: relative;
    z-index: 1;
}

.creator-hero-top {
    display: flex;
    gap: 32px;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.creator-hero-profile {
    display: flex;
    gap: 24px;
    align-items: center;
    flex: 1 1 420px;
}

.creator-avatar {
    flex-shrink: 0;
}

.creator-avatar img,
.creator-avatar .avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    object-fit: cover;
    display: block;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.creator-avatar .avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.creator-hero-info h1 {
    font-size: 28px;
    margin: 4px 0 10px;
}

.creator-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    color: #333;
}

.creator-bio {
    margin: 0;
    color: #333;
    font-size: 14px;
    max-width: 520px;
    line-height: 1.55;
}

.creator-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.creator-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.creator-pill svg {
    color: #cbd5ff;
}

.creator-pill--accent {
    background: rgba(14, 165, 233, 0.18);
}

.creator-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
}

.creator-follow-btn {
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(120deg, #0d44d5, #61b1ff);
    color: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.creator-follow-btn:hover {
    transform: translateY(-2px);
}

.creator-follow-btn.is-following {
     background: linear-gradient(120deg, #0d44d5, #61b1ff);
    color: #fff;
    box-shadow: none;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.creator-follow-btn.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.creator-hero-stats {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.creator-stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #ccc;
    backdrop-filter: blur(6px);
}

.creator-stat-card p {
    margin: 0;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: #333;
}

.creator-stat-card strong {
    display: block;
    font-size: 32px;
    margin: 8px 0 4px;
}

.creator-stat-card span {
    font-size: 13px;
    color: #333;
}

.teacher-course-section {
    margin-top: 56px;
}

.teacher-course-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
    gap: 16px;
}

.teacher-course-header h2 {
    margin: 0;
    font-size: 30px;
    color: #0f172a;
}

.teacher-course-header p {
    margin: 4px 0 0;
    color: #475569;
}

.creator-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.creator-product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.creator-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 70px rgba(15, 23, 42, 0.18);
}

.creator-product-cover {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.creator-product-cover img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.creator-product-category {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    font-size: 12px;
}

.creator-price-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
    color: #0f172a;
    background: #fef3c7;
}

.creator-price-badge.is-coin {
    background: #fff8eb;
    color: #d97706;
}

.creator-price-badge.is-currency {
    background: #dcfce7;
    color: #166534;
}

.creator-product-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
}

.creator-product-meta-top {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #64748b;
}

.creator-product-title {
    margin: 0;
    font-size: 16px;
}

.creator-product-title a {
    color: #0f172a;
    text-decoration: none;
}

.creator-product-title a:hover {
    color: #4f46e5;
}

.creator-product-description {
    margin: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.creator-product-price-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #0f172a;
}

.creator-product-price-line .price-original {
    font-weight: 500;
    text-decoration: line-through;
    color: #94a3b8;
}

.creator-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.creator-product-tags span {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}

.creator-product-stats {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #475569;
}

.creator-product-stats strong {
    font-size: 16px;
    color: #0f172a;
}

.teacher-empty-state {
    border: 1px dashed #cbd5f5;
    border-radius: 28px;
    padding: 60px 24px;
    text-align: center;
    background: #fff;
    color: #475569;
}

.teacher-empty-state svg {
    margin-bottom: 16px;
    color: #94a3b8;
}

.teacher-pagination {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.teacher-pagination .pagination-numbers {
    display: flex;
    gap: 8px;
}

.teacher-pagination a,
.teacher-pagination span {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.teacher-pagination .active {
    background: #0f172a;
    color: #fff;
}

.teacher-pagination .pagination-link {
    font-weight: 600;
    color: #0f172a;
}

.teacher-public-empty {
    padding: 80px 16px;
}

.teacher-empty-card {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 32px;
    padding: 56px;
    text-align: center;
    box-shadow: 0 35px 80px rgba(15, 23, 42, 0.12);
}

.teacher-empty-card p {
    color: #475569;
}

@media (max-width: 1100px) {
    .creator-hero-card {
        padding: 20px;
    }

    .creator-product-cover img {
        height: 200px;
    }
}

@media (max-width: 1024px) {
    .creator-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .creator-hero-profile {
        flex-direction: column;
        align-items: flex-start;
    }

    .creator-hero-profile {
    display: flex;
    gap: 24px;
    align-items: center;
    flex: 1 1 auto;
}

    .creator-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .teacher-public-page {
        padding: 48px 12px 80px;
    }

    .creator-hero-card {
        padding: 20px 30px;
    }

.creator-hero-info {
    text-align: center;
}

    .creator-hero-actions {
        justify-content: center;
    }

    .creator-avatar img,
    .creator-avatar .avatar-placeholder {
        width: 88px;
        height: 88px;
    }

    .creator-pills {
    justify-content: space-around;
}

    .creator-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .creator-product-cover img {
        height: 180px;
    }

    .creator-product-body {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .creator-hero-stats {
        grid-template-columns: 1fr;
    }

    .creator-products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .creator-hero-top {
        flex-direction: column;
    }

    .creator-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .creator-follow-btn {
        width: 100%;
    }

    .creator-product-cover img {
        height: 200px;
    }

    .creator-product-stats {
        flex-direction: column;
        align-items: flex-start;
    }
}.teacher-public-page {
    background: linear-gradient(180deg, #f3f6ff 0%, #fdfdff 60%, #f7fbff 100%);
    padding: 56px 16px 90px;
}

.teacher-public-container {
    max-width: 1160px;
    margin: 0 auto;
}

.teacher-public-hero {
    border-radius: 6px;
    padding: 0px;
    display: block;
    color: #f1f5ff;
    align-items: normal;
}

.teacher-hero-left {
    flex: 1 1 45%;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.teacher-identity {
    display: flex;
    align-items: center;
    gap: 24px;
}

.teacher-avatar {
    flex-shrink: 0;
}

.teacher-avatar img,
.teacher-avatar .avatar-placeholder {
    width: 108px;
    height: 108px;
    border-radius: 24px;
    object-fit: cover;
    display: block;
    box-shadow: 0 16px 36px rgba(8, 16, 44, 0.55);
}

.teacher-avatar .avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    color: #fff;
}

.teacher-hero-info h1 {
    font-size: 20px;
    margin: 0px 0 10px;
}

.teacher-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: #94a3c5;
}

.teacher-bio {
    margin: 0 0 10px;
    color: #c6d5ff;
    font-size: 13px;
    line-height: 1.6;
}

.teacher-hero-meta {
    display: flex;
    gap: 16px;
    width: 100%;
    flex-wrap: nowrap;
}

.teacher-hero-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8ff;
    flex: 1 1 0;
    min-height: 64px;
}

.teacher-hero-meta .meta-item.stacked {
    align-items: center;
}

.meta-item .meta-label {
    display: block;
    font-size: 11px;
    color: #94a3c5;
    text-transform: capitalize;
    margin-bottom: -5px;
}

.teacher-hero-meta strong {
    font-size: 12px;
    color: #f8fbff;
}

.teacher-hero-meta svg {
    color: #6fd3ff;
}

.teacher-hero-right {
    flex: 1 1 52%;
    max-width: 52%;
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 16px;
    align-items: stretch;
    min-width: 260px;
}

.teacher-stat-card {
    background: rgba(15, 23, 55, 0.6);
    border-radius: 20px;
    padding: 18px 22px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    justify-content: center;
}

.teacher-stat-card span {
    color: #9fb3d9;
    letter-spacing: 0.16em;
    font-size: 11px;
    text-transform: uppercase;
}

.teacher-stat-card strong {
    display: block;
    font-size: 28px;
    margin-top: 0;
}

.teacher-stat-card .stat-rating {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: anchor-center;
}

.stat-rating-count {
    font-size: 12px;
    color: #94a3c5;
}

.teacher-course-section {
    margin-top: 44px;
    padding: 0px;
}

.teacher-course-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
}

.teacher-course-header h2 {
    font-size: 26px;
    margin: 0;
    color: #0f172a;
}

.teacher-course-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
}

.teacher-course-list .info-before-description {
    margin: 6px 0;
}

.teacher-course-list .etinion-course-info {
    margin-bottom: 4px;
}

.teacher-course-list .etinion-course-meta-inline,
.teacher-course-list .etinion-course-footer-inline {
    display: none;
}

.teacher-empty-state {
    border: 1px dashed #cbd5f5;
    border-radius: 24px;
    padding: 60px 20px;
    text-align: center;
    color: #475569;
    background: #f8fbff;
}

.teacher-empty-state svg {
    color: #94a3b8;
    margin-bottom: 16px;
}

.teacher-course-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.teacher-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    color: #4c51bf;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.teacher-pill.subtle {
    background: rgba(148, 163, 184, 0.25);
    color: #475569;
}

.teacher-course-pagination {
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 6px 14px;
}

.pagination-pages a,
.pagination-pages span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    color: #0f172a;
}

.pagination-pages .active {
    background: #0f172a;
    color: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.pagination-link {
    color: #0f172a;
    font-weight: 600;
}

.teacher-public-empty {
    padding: 80px 16px;
}

.teacher-empty-card {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.1);
}

.teacher-empty-card h1 {
    margin-bottom: 8px;
}

.teacher-empty-card p {
    color: #64748b;
}

@media (max-width: 1024px) {
    .teacher-public-hero {
        padding: 0px;
    }

    .teacher-hero-left,
    .teacher-hero-right {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }

    .teacher-identity {
        align-items: flex-start;
    }

    .teacher-hero-meta {
        flex-wrap: wrap;
    }

    .teacher-hero-right {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }

    .teacher-hero-meta {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
    }

    .teacher-avatar img,
    .teacher-avatar .avatar-placeholder {
        width: 88px;
        height: 88px;
    }

    .teacher-course-section {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .teacher-public-page {
        padding: 40px 12px 72px;
    }

    .teacher-public-hero {
        padding: 0px;
        flex-direction: column;
    }

    .teacher-avatar img,
    .teacher-avatar .avatar-placeholder {
        width: 72px;
        height: 72px;
    }

    .teacher-identity {
        flex-direction: row;
        gap: 12px;
    }

    .teacher-hero-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .teacher-hero-meta .meta-item {
        flex: 1 1 160px;
    }

    .teacher-hero-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .teacher-hero-right {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
        width: 100%;
    }

    .teacher-course-section {
        padding: 0px;
    }

    .teacher-course-pagination {
        flex-direction: column;
    }

    .teacher-course-list .etinion-course-card.list-mode {
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 0px 0 !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .teacher-course-list .etinion-course-card.list-mode .etinion-course-cover {
        width: 120px !important;
        min-width: 120px !important;
        height: 120px !important;
        border-radius: 6px !important;
        overflow: hidden !important;
    }

    .teacher-course-list .etinion-course-card.list-mode .etinion-course-cover img {
        object-fit: cover !important;
    }

    .teacher-course-list .etinion-course-card.list-mode .etinion-course-body {
        padding: 0 !important;
        gap: 6px !important;
        margin: 0 !important;
    }

    .teacher-course-list .etinion-course-card.list-mode .etinion-course-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .teacher-course-list .etinion-course-card.list-mode .etinion-course-info,
    .teacher-course-list .etinion-course-card.list-mode .etinion-course-description,
    .teacher-course-list .etinion-course-card.list-mode .etinion-course-meta-info {
        display: none !important;
    }

    .teacher-course-list .etinion-course-meta-inline {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 10px !important;
        color: #4b5563 !important;
    }

    .teacher-course-list .etinion-meta-inline-item {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .teacher-course-list .etinion-meta-inline-item svg {
        width: 10px !important;
        height: 10px !important;
    }

    .teacher-course-list .etinion-course-footer-inline {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .teacher-course-list .etinion-course-pricing {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    .teacher-course-list .etinion-course-price-rating {
        display: none !important;
    }

    .teacher-course-list .etinion-course-rating.inline-rating {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .teacher-course-list .etinion-course-rating.inline-rating .rating-star {
        width: 12px !important;
        height: 12px !important;
    }

    .teacher-course-list .etinion-course-rating.inline-rating .rating-inline-count {
        font-size: 10px !important;
        color: #6b7280 !important;
    }

    .teacher-course-list .etinion-course-cover .etinion-course-category-badge {
        top: 6px !important;
        left: 6px !important;
        font-size: 9px !important;
        padding: 2px 6px !important;
    }

    .teacher-course-card .etinion-course-rating {
    flex-direction: row !important;
    margin-right: 10px !important;
}
}

@media (max-width: 768px) {
      .teacher-hero-right {
        grid-template-columns: repeat(1, minmax(140px, 1fr));
    }
}