/* ==========================================================================
   ACADEMIAQR - CARNET & COCKPIT DOCENTE (PORTAL DE GESTIÓN DEL MAESTRO)
   Estilos visuales modernos, neurodiseño y experiencia de aula móvil y desktop
   ========================================================================== */

.teacher-cockpit-section {
    width: 100%;
    max-width: 580px;
    margin: 1.5rem auto 5rem;
    padding: 0 1rem;
}

/* Tarjeta Principal del Cockpit */
.cockpit-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -15px rgba(6, 78, 59, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.6);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.cockpit-header {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    color: white;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cockpit-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cockpit-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #34d399;
}

.cockpit-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

.cockpit-sub {
    font-size: 0.72rem;
    color: #a7f3d0;
    margin: 0;
}

/* Selector de Grados Activos */
.cockpit-grades-wrap {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.8rem 1.1rem;
}

.cockpit-section-label {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grades-scroll-pills {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    scrollbar-width: thin;
}

.grade-pill-btn {
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.grade-pill-btn:hover {
    border-color: #10b981;
    color: #047857;
    background: #f0fdf4;
}

.grade-pill-btn.is-active {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    color: #ffffff;
    border-color: #047857;
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.25);
}

.grade-pill-btn .pill-count {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    padding: 1px 6px;
    font-size: 0.68rem;
}

.grade-pill-btn.is-active .pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* ==========================================================================
   RUTA CORTA: ESCÁNER QR DE CARNET DEL ALUMNO
   ========================================================================== */
.cockpit-shortcut-banner {
    background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 100%);
    border: 2px dashed #34d399;
    border-radius: 18px;
    padding: 1.1rem;
    margin: 1.2rem;
    text-align: center;
    position: relative;
}

.shortcut-badge-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #047857;
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}

.shortcut-action-desc {
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.btn-open-camera-shortcut {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.35);
    transition: transform 0.15s, background 0.15s;
}

.btn-open-camera-shortcut:hover {
    transform: scale(1.01);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.shortcut-quick-input-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.35rem 0.75rem;
    margin-top: 0.8rem;
    gap: 0.5rem;
}

.shortcut-quick-input {
    border: none;
    outline: none;
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
    width: 100%;
}

.shortcut-quick-submit {
    background: #0284c7;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* ==========================================================================
   DIRECTORIO DE ALUMNOS DEL GRADO
   ========================================================================== */
.cockpit-students-section {
    padding: 0 1.2rem 1.2rem;
}

.students-search-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.9rem;
}

.students-search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    color: #0f172a;
    width: 100%;
}

.cockpit-students-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 380px;
    overflow-y: auto;
}

.cockpit-student-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
    transition: all 0.15s ease;
}

.cockpit-student-card:hover {
    border-color: #10b981;
    background: #f0fdf4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.student-card-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.student-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #10b981;
}

.student-card-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.student-card-sub {
    font-size: 0.74rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-student-manage-action {
    background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 2px 8px rgba(6, 78, 59, 0.2);
    transition: transform 0.1s;
}

.btn-student-manage-action:hover {
    transform: scale(1.03);
    background: #059669;
}

/* Barra de Programación Global de Aula */
.cockpit-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 1.1rem 1.2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.cockpit-tool-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cockpit-tool-btn i {
    font-size: 1.1rem;
}

.cockpit-tool-btn:hover {
    border-color: #047857;
    background: #ecfdf5;
    color: #064e3b;
}

/* Modal de Escáner de Cámara para Ruta Corta */
.teacher-camera-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.teacher-camera-card {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.teacher-camera-header {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    color: white;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.teacher-camera-body {
    padding: 1rem;
    background: #0f172a;
    position: relative;
}

.teacher-qr-viewport {
    width: 100%;
    min-height: 280px;
    border-radius: 16px;
    overflow: hidden;
}

/* ==========================================================================
   REVERSO DEL CARNET DOCENTE: AULA ACTIVA & GESTIÓN DE ALUMNOS (INTEGRADO)
   Optimización vertical homologada (+20% altura para mejor aprovechamiento)
/* ==========================================================================
   REVERSO DEL CARNET DOCENTE: AULA ACTIVA & GESTIÓN DE ALUMNOS (INTEGRADO)
   Optimización vertical homologada y adaptabilidad completa de pantalla
   ========================================================================== */
.carnet-face.teacher-card-back {
    padding: 0 !important;
    background: #f8fafc;
    border: 2px solid #a7f3d0;
    display: flex;
    flex-direction: column;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden;
}

.carnet-face.teacher-front {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Reducción compacta y fluida del anverso para ajuste vertical perfecto */
.card-header-branded.teacher-header {
    padding: clamp(0.45rem, 1.2vh, 0.75rem) 0.8rem clamp(1.15rem, 2.2vh, 1.55rem) 0.8rem !important;
    flex-shrink: 0;
}

.teacher-front .student-photo-wrapper {
    margin: calc(-1 * clamp(36px, 5.2vh, 44px)) auto 0 auto !important;
    width: clamp(72px, 10.5vh, 90px) !important;
    height: clamp(72px, 10.5vh, 90px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

.teacher-front .student-photo-wrapper .student-photo-img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    margin: 0 auto !important;
}

.teacher-front .card-body-content {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 0.15rem 0.85rem clamp(0.3rem, 0.9vh, 0.65rem) 0.85rem !important;
}

.student-full-name {
    font-size: clamp(0.98rem, 2vh, 1.18rem) !important;
    margin: 0 !important;
    line-height: 1.15 !important;
}

.teacher-badge-official {
    font-size: clamp(0.60rem, 1.1vh, 0.68rem) !important;
    padding: clamp(0.12rem, 0.3vh, 0.2rem) 0.6rem !important;
    margin: 0 !important;
}

.teacher-specialty-banner {
    margin: 0 auto !important;
    padding: clamp(0.12rem, 0.3vh, 0.2rem) 0.55rem !important;
    font-size: clamp(0.60rem, 1.1vh, 0.68rem) !important;
}

.teacher-subjects-tags {
    margin-top: 0.15rem !important;
    gap: 0.25rem !important;
}

.teacher-subject-tag {
    font-size: clamp(0.60rem, 1.1vh, 0.68rem) !important;
    padding: 0.12rem 0.42rem !important;
}

.teacher-front .qr-code-display-box {
    margin: 0 auto !important;
    padding: clamp(0.25rem, 0.7vh, 0.45rem) clamp(0.45rem, 1.2vh, 0.7rem) !important;
    border-radius: clamp(10px, 1.8vh, 14px) !important;
}

#teacherQrCanvas, #teacherQrImage {
    width: clamp(84px, 14.5vh, 115px) !important;
    height: clamp(84px, 14.5vh, 115px) !important;
    min-height: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

#teacherQrCanvas canvas, #teacherQrCanvas img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.qr-caption-dual {
    padding: 0.12rem 0.45rem !important;
    font-size: clamp(0.56rem, 1vh, 0.65rem) !important;
    margin-top: clamp(0.12rem, 0.35vh, 0.22rem) !important;
}

/* Reverso Compacto */
.teacher-back-header {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    color: white;
    padding: clamp(0.38rem, 0.8vh, 0.55rem) 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(6, 78, 59, 0.2);
    flex-shrink: 0;
}

.back-header-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-header-badge {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #34d399;
}

.back-header-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
}

.back-header-sub {
    font-size: 0.68rem;
    color: #d1fae5;
    margin-top: 0.1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.back-grade-tag {
    background: #10b981;
    color: white;
    padding: 1px 5px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 0.64rem;
}

.back-quick-flip-btn {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-quick-flip-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

.teacher-back-body {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    padding: clamp(0.3rem, 0.7vh, 0.55rem) 0.65rem;
    display: flex;
    flex-direction: column;
    gap: clamp(0.25rem, 0.6vh, 0.45rem);
}

/* Filtros Rápidos de Aula: Menús Desplegables de Grado y Curso */
.cockpit-filters-wrap-compact {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: clamp(0.28rem, 0.55vh, 0.42rem) 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.cockpit-filter-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cockpit-filter-label {
    font-size: clamp(0.55rem, 0.92vh, 0.63rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #475569;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cockpit-select-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.cockpit-select-dropdown {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: clamp(0.24rem, 0.55vh, 0.35rem) 1.35rem clamp(0.24rem, 0.55vh, 0.35rem) 0.45rem;
    font-family: inherit;
    font-size: clamp(0.66rem, 1.1vh, 0.76rem);
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cockpit-select-dropdown:hover {
    border-color: #94a3b8;
    background: #ffffff;
}

.cockpit-select-dropdown:focus {
    border-color: #059669;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.18);
}

.cockpit-select-arrow {
    position: absolute;
    right: 0.45rem;
    pointer-events: none;
    font-size: 0.58rem;
    color: #64748b;
}

.cockpit-student-course-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.08rem 0.4rem;
    border-radius: 6px;
    margin-top: 2px;
}

.cockpit-grades-wrap-compact {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: clamp(0.25rem, 0.5vh, 0.38rem) 0.55rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}

.cockpit-section-label-mini {
    font-size: clamp(0.60rem, 1vh, 0.68rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cockpit-tools-compact {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25rem;
    flex-shrink: 0;
}

.cockpit-tool-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    padding: clamp(0.25rem, 0.5vh, 0.35rem) 0.15rem;
    border-radius: 10px;
    font-size: clamp(0.58rem, 1vh, 0.64rem);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    text-align: center;
    color: #1e293b;
    transition: all 0.15s ease;
}

.cockpit-tool-chip i {
    font-size: clamp(0.82rem, 1.4vh, 0.95rem);
}

.cockpit-tool-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    border-color: #10b981;
}

.cockpit-students-section-compact {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: clamp(0.35rem, 0.7vh, 0.55rem);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.cockpit-students-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

.cockpit-students-title {
    font-size: clamp(0.62rem, 1.1vh, 0.68rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #475569;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.cockpit-students-badge {
    background: #ecfdf5;
    color: #047857;
    font-size: clamp(0.58rem, 1vh, 0.65rem);
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid #a7f3d0;
}

.students-search-bar-compact {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: clamp(0.22rem, 0.45vh, 0.3rem) 0.5rem;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

.students-search-bar-compact input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: clamp(0.70rem, 1.2vh, 0.78rem);
    font-weight: 600;
    color: #0f172a;
}

.cockpit-students-list {
    flex: 1 1 0;
    min-height: 50px;
    max-height: none !important;
    overflow-y: auto;
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-right: 2px;
}

.cockpit-student-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: clamp(0.24rem, 0.5vh, 0.35rem) 0.5rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.student-card-avatar {
    width: clamp(26px, 3.8vh, 32px);
    height: clamp(26px, 3.8vh, 32px);
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #10b981;
}

.student-card-name {
    font-size: clamp(0.72rem, 1.3vh, 0.80rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.02rem;
}

.student-card-sub {
    font-size: clamp(0.60rem, 1.1vh, 0.68rem);
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-student-manage-action {
    background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
    color: white;
    border: none;
    border-radius: 7px;
    padding: clamp(0.22rem, 0.4vh, 0.28rem) 0.55rem;
    font-size: clamp(0.62rem, 1.1vh, 0.70rem);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 1px 4px rgba(6, 78, 59, 0.2);
}

.back-telegram-compact {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: clamp(0.25rem, 0.5vh, 0.35rem) 0.55rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s;
    flex-shrink: 0;
}

.back-telegram-compact:hover {
    transform: scale(1.01);
}

.telegram-icon-mini {
    width: clamp(20px, 3vh, 24px);
    height: clamp(20px, 3vh, 24px);
    border-radius: 6px;
    background: rgba(2, 132, 199, 0.15);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.8rem, 1.3vh, 0.95rem);
}

.telegram-chip-tag {
    background: #0284c7;
    color: white;
    font-size: clamp(0.56rem, 1vh, 0.64rem);
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.back-flip-return-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: clamp(0.28rem, 0.65vh, 0.42rem);
    border-radius: 8px;
    font-size: clamp(0.66rem, 1.2vh, 0.72rem);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.15s;
    flex-shrink: 0;
}

.back-flip-return-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
