﻿body {
    min-height: 100vh;
}

.market-body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: #132238;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 28%),
        radial-gradient(circle at top right, rgba(197, 219, 255, 0.45), rgba(197, 219, 255, 0) 30%),
        linear-gradient(180deg, #f3f7fc 0%, #eef2f8 38%, #f7f9fc 100%);
}

.site-shell {
    min-height: 100vh;
}

.market-nav {
    background: linear-gradient(135deg, rgba(12, 28, 52, 0.96), rgba(23, 53, 87, 0.92));
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(16, 37, 68, 0.16);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.brand-mark:hover,
.brand-mark:focus {
    color: #ffffff;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #f4f7ff, #8ebeff);
    color: #0f213b;
    font-size: 0.95rem;
    font-weight: 800;
}

.brand-logo {
    display: block;
    width: auto;
    height: 4.0rem;
    max-width: 16rem;
    object-fit: contain;
}

.brand-name {
    display: inline-block;
}

.market-nav .nav-link {
    color: rgba(240, 245, 255, 0.86);
    font-weight: 600;
}

.market-nav .nav-link:hover,
.market-nav .nav-link:focus {
    color: #ffffff;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #eef4ff;
    font-size: 0.92rem;
    font-weight: 600;
}

.message-stack {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hero-panel,
.detail-panel,
.detail-side-panel,
.payment-panel,
.table-panel,
.empty-state {
    border: 1px solid rgba(205, 216, 232, 0.8);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(32, 55, 88, 0.08);
}

.hero-panel {
    padding: 2rem;
}

.detail-panel,
.detail-side-panel,
.payment-panel,
.table-panel,
.empty-state {
    padding: 1.5rem;
}

.eyebrow {
    display: inline-block;
    color: #486482;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.display-title {
    max-width: 11ch;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.section-title,
.detail-title {
    font-size: clamp(1.6rem, 2.4vw, 2.25rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.smallish {
    font-size: 1.1rem;
    line-height: 1.4;
}

.lead-copy,
.section-copy,
.detail-copy {
    color: #4f627d;
    font-size: 1rem;
    line-height: 1.7;
}

.metric-grid,
.detail-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.metric-card {
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(210, 220, 234, 0.85);
    background: linear-gradient(180deg, #ffffff, #f4f7fb);
}

.metric-card.soft {
    background: linear-gradient(180deg, #fbfcfe, #f2f5fa);
}

.metric-label,
.meta-label,
.muted-mini,
.premium-label {
    display: block;
    color: #6d7e97;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.metric-value {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.55rem;
    font-weight: 800;
    color: #12263f;
}

.teacher-filter-bar {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.teacher-filter {
    display: inline-flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 140px;
    padding: 0.85rem 1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(204, 215, 230, 0.85);
    background: rgba(255, 255, 255, 0.72);
    color: #12263f;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.teacher-filter:hover,
.teacher-filter:focus,
.teacher-filter.active {
    color: #12263f;
    transform: translateY(-2px);
    border-color: rgba(109, 145, 209, 0.95);
    box-shadow: 0 14px 28px rgba(40, 78, 133, 0.12);
}

.teacher-filter small {
    color: #5a6b84;
}

.material-card {
    height: 100%;
    border: 1px solid rgba(205, 216, 232, 0.82);
    border-radius: 1.4rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 252, 0.95));
    box-shadow: 0 20px 46px rgba(33, 59, 97, 0.08);
    overflow: hidden;
}

.material-card-body,
.material-card-footer {
    padding: 1.4rem;
}

.material-card-footer {
    padding-top: 0;
}

.material-card-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(14, 34, 61, 0.08);
    color: #1a3557;
    font-size: 0.85rem;
    font-weight: 700;
}

.material-title {
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.8rem;
}

.material-copy {
    color: #556982;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.material-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.material-meta strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1rem;
}

.mini-list {
    display: grid;
    gap: 0.85rem;
}

.mini-list-item {
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(208, 217, 230, 0.85);
    background: #ffffff;
    color: #132238;
    text-decoration: none;
}

.mini-list-item.static {
    cursor: default;
}

.mini-list-item:hover,
.mini-list-item:focus {
    color: #132238;
    border-color: rgba(98, 135, 196, 0.95);
}

.mini-list-item small {
    color: #60738d;
}

.table-panel {
    padding: 0;
    overflow: hidden;
}

.market-table {
    margin: 0;
}

.market-table thead th {
    background: linear-gradient(180deg, #f7f9fc, #eef3f8);
    color: #4c607b;
    border-bottom: 1px solid rgba(213, 221, 232, 0.9);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-table td,
.market-table th {
    padding: 1rem 1.15rem;
    border-color: rgba(222, 228, 237, 0.9);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.status-badge.success {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.14);
    color: #9a6700;
}

.status-badge.danger {
    background: rgba(220, 38, 38, 0.12);
    color: #991b1b;
}

.premium-field input.form-control {
    height: 3.5rem;
    border: 1px solid #d3ddeb;
    background: #fbfdff;
    box-shadow: none;
}

.premium-help {
    margin-top: 0.55rem;
    color: #637792;
    font-size: 0.92rem;
}

.qr-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(210, 220, 234, 0.9);
    background: linear-gradient(180deg, #ffffff, #f5f8fb);
}

.qr-image {
    display: block;
    width: min(100%, 280px);
    height: auto;
    border-radius: 1rem;
}

.balance-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #0f6b54;
    font-weight: 800;
}

.balance-chip.negative {
    background: rgba(220, 38, 38, 0.12);
    color: #991b1b;
}

.payout-form {
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
    border: 1px solid rgba(213, 220, 232, 0.9);
}

.viewer-notice {
    border: 1px solid #d8e1ef;
    background: linear-gradient(135deg, #f7fbff, #eef4ff);
    color: #294261;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
}

.viewer-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.viewer-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cfd8e6;
    background: #ffffff;
    color: #24364f;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

.protected-viewer {
    user-select: none;
    -webkit-user-select: none;
}

.page-stack {
    display: grid;
    gap: 1.5rem;
}

.page-sheet {
    background: linear-gradient(180deg, #f8fbff 0%, #edf2f8 100%);
    border: 1px solid #d7e0ed;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(37, 56, 88, 0.08);
}

.page-sheet-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(90deg, #17324d, #284f78);
    color: #f4f8fc;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-image {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    pointer-events: none;
    -webkit-user-drag: none;
}

.empty-state {
    text-align: center;
}

@media (max-width: 991px) {
    .hero-panel {
        padding: 1.5rem;
    }

    .display-title {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .page-sheet-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .material-meta,
    .detail-metrics,
    .metric-grid {
        grid-template-columns: 1fr;
    }
}

.min-vh-60 {
    min-height: 60vh;
}

.auth-panel {
    padding: 1.75rem;
    border: 1px solid rgba(205, 216, 232, 0.8);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(32, 55, 88, 0.08);
}

.upload-side-panel,
.upload-form-panel {
    min-height: 100%;
}

.upload-side-panel {
    position: sticky;
    top: 1.5rem;
}

.upload-meta-card {
    padding: 1.1rem 1.15rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(206, 216, 229, 0.88);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 247, 252, 0.92));
}

.upload-dropzone {
    padding: 1.25rem;
    border-radius: 1.35rem;
    border: 1px dashed rgba(98, 126, 168, 0.42);
    background: linear-gradient(180deg, rgba(249, 251, 255, 0.96), rgba(241, 246, 253, 0.92));
}

.premium-file-input {
    padding: 0.95rem 1rem;
    background: #ffffff;
}

.premium-file-input::file-selector-button {
    margin-right: 1rem;
    padding: 0.8rem 1rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #112743, #274d77);
    color: #f7fbff;
    font-weight: 700;
}

.publish-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.05rem 1.1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(210, 219, 232, 0.88);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 252, 0.95));
}

.publish-toggle .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
}

@media (max-width: 1199px) {
    .upload-side-panel {
        position: static;
    }
}

.premium-field textarea.form-control,
.premium-field select.form-select,
.admin-free-access-form textarea,
.admin-free-access-form select,
.admin-free-access-form input {
    border: 1px solid #d3ddeb;
    background: #fbfdff;
    box-shadow: none;
}

.review-form,
.admin-free-access-form,
.action-form,
.coupon-note {
    border: 1px solid rgba(210, 220, 234, 0.88);
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 252, 0.94));
}

.review-form,
.admin-free-access-form,
.action-form {
    padding: 1.1rem;
}

.coupon-note {
    padding: 0.85rem 1rem;
    color: #344761;
}

.review-list,
.admin-order-stack {
    display: grid;
    gap: 1rem;
}

.review-card,
.admin-order-card {
    padding: 1.15rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(210, 220, 234, 0.88);
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
}

.review-rating {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    color: #8a5a00;
    font-weight: 800;
    font-size: 0.85rem;
}

.action-form.success {
    border-color: rgba(34, 197, 94, 0.24);
}

.action-form.danger {
    border-color: rgba(220, 38, 38, 0.24);
}

.security-blocked-panel {
    padding: 2rem;
    border: 1px solid rgba(205, 216, 232, 0.8);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(255, 220, 220, 0.7), rgba(255, 255, 255, 0) 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 252, 0.96));
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(32, 55, 88, 0.08);
}

.library-search-card {
    padding: 1.25rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(210, 220, 234, 0.88);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 42px rgba(32, 55, 88, 0.08);
}

.category-section-stack {
    display: grid;
    gap: 2rem;
}

.category-material-section {
    padding: 1.25rem;
    border: 1px solid rgba(205, 216, 232, 0.8);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.64);
    backdrop-filter: blur(12px);
}

.category-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.lazy-viewer-shell {
    display: grid;
    gap: 1rem;
}

.lazy-viewer-toolbar {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(210, 220, 234, 0.88);
    background: rgba(255, 255, 255, 0.86);
}

.page-jump-form {
    min-width: 170px;
}

.lazy-page-frame {
    position: relative;
    min-height: 360px;
    background: #ffffff;
}

.viewer-loading {
    position: absolute;
    inset: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: rgba(244, 248, 253, 0.88);
    color: #31445f;
    font-weight: 800;
    z-index: 2;
}

.page-image.loading {
    opacity: 0.35;
}

.material-search-hero .display-title {
    max-width: 9ch;
}

.library-search-card.compact {
    padding: 1.35rem;
}

.result-filter-summary {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.viewer-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.viewer-page-status {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(200, 213, 232, 0.95);
    background: linear-gradient(135deg, #122945, #2c5d8f);
    color: #f8fbff;
    box-shadow: 0 18px 40px rgba(19, 45, 78, 0.14);
}

.viewer-page-status span {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.82;
}

.viewer-page-status strong {
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.zoom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.lazy-page-frame {
    overflow: auto;
    text-align: center;
}

.zoomable-page-image {
    margin: 0 auto;
    transition: width 0.18s ease, opacity 0.18s ease;
    transform-origin: top center;
}

.revoke-form {
    min-width: 220px;
}

.review-rating.rating-5 {
    background: rgba(22, 163, 74, 0.14);
    color: #166534;
}

.review-rating.rating-4 {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.review-rating.rating-3 {
    background: rgba(245, 158, 11, 0.16);
    color: #9a6700;
}

.review-rating.rating-2,
.review-rating.rating-1 {
    background: rgba(220, 38, 38, 0.12);
    color: #991b1b;
}

@media (max-width: 768px) {
    .lazy-viewer-toolbar {
        align-items: stretch;
        justify-content: stretch;
    }

    .lazy-viewer-toolbar > .btn,
    .page-jump-form,
    .zoom-controls {
        width: 100%;
    }

    .zoom-controls .btn,
    .zoom-controls .viewer-chip {
        flex: 1 1 auto;
        justify-content: center;
    }

    .viewer-topbar .btn {
        width: 100%;
    }
}

.market-toggler {
    display: inline-grid;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
}

.market-toggler span {
    display: block;
    width: 1.35rem;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

.marketplace-hero {
    overflow: hidden;
}

.marketplace-results .section-head {
    align-items: end;
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 1rem;
}

.marketplace-material-card {
    position: relative;
    min-height: 100%;
    border: 1px solid rgba(205, 216, 232, 0.82);
    border-radius: 1.15rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 252, 0.96));
    box-shadow: 0 16px 34px rgba(33, 59, 97, 0.07);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.marketplace-material-card:hover,
.marketplace-material-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(82, 120, 178, 0.65);
    box-shadow: 0 22px 44px rgba(33, 59, 97, 0.13);
}

.marketplace-card-link {
    display: grid;
    gap: 0.85rem;
    height: 100%;
    padding: 1rem;
    color: #132238;
    text-decoration: none;
}

.marketplace-card-top {
    min-height: 2.7rem;
}

.teacher-inline,
.teacher-profile-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.teacher-inline {
    min-width: 0;
}

.teacher-inline > div {
    min-width: 0;
}

.teacher-inline strong {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.98rem;
}

.teacher-inline small {
    display: block;
    color: #718199;
    font-size: 0.78rem;
}

.teacher-avatar {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 8px 18px rgba(27, 52, 84, 0.12);
}

.teacher-avatar.initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dfeaff, #89b7ff);
    color: #12263f;
    font-weight: 800;
    text-transform: uppercase;
}

.teacher-avatar.large {
    width: 4rem;
    height: 4rem;
    font-size: 1.35rem;
}

.marketplace-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.marketplace-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    padding: 0.25rem 0.52rem;
    border-radius: 999px;
    background: rgba(14, 34, 61, 0.07);
    color: #263b56;
    font-size: 0.76rem;
    font-weight: 800;
}

.marketplace-title {
    min-height: 2.8rem;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.32;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.marketplace-copy {
    margin: 0;
    color: #5d7089;
    font-size: 0.9rem;
    line-height: 1.55;
}

.marketplace-copy.empty {
    color: #8594a8;
    font-style: italic;
}

.marketplace-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #10233b, #1f456f);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(16, 35, 59, 0.14);
}

.marketplace-price-row span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.78;
}

.marketplace-price-row strong {
    font-size: 1.08rem;
    font-weight: 900;
    white-space: nowrap;
}

.marketplace-price-row small {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    opacity: 0.82;
}

.marketplace-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(210, 220, 234, 0.82);
}

.marketplace-stats span {
    display: block;
    color: #718199;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.marketplace-stats strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.95rem;
    color: #132238;
}

.marketplace-empty {
    grid-column: 1 / -1;
}

.teacher-profile-form {
    padding: 1rem;
    border: 1px solid rgba(210, 220, 234, 0.88);
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 252, 0.94));
}

.teacher-profile-form .form-control {
    border: 1px solid #d3ddeb;
    background: #fbfdff;
}

.transfer-proof {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.92));
}

@media (min-width: 1500px) {
    .marketplace-grid {
        grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    }
}

@media (max-width: 991px) {
    .market-mobile-menu {
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 1.25rem;
        background: rgba(8, 22, 41, 0.5);
    }

    .market-mobile-menu .navbar-nav {
        align-items: stretch !important;
        gap: 0.45rem !important;
    }

    .market-mobile-menu .nav-link,
    .market-mobile-menu .btn,
    .market-mobile-menu .user-chip {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .marketplace-grid {
        grid-template-columns: 1fr;
    }

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