body {
    font-family: "Roboto", "Open Sans", sans-serif;
    color: #1B2559;
    background-color: #F4F7FE;
}

.main {
    min-height: calc(100vh - 192px);
}

.login-main.main {
    min-height: calc(100vh - 192px);
    display: flex;
    align-items: center;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    padding-left: 25px;
    padding-right: 25px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Nunito", "Roboto", sans-serif;
    text-transform: none;
    position: relative;
    padding-bottom: 0;
    margin-bottom: 16px;
    color: #1B2559;
    font-weight: 700;
}

h2 span, h3 span, h4 span, h5 span {
   color: #487FFF;
}

a {
    color: #487FFF;
    text-decoration: none;
}

a:hover {
    color: #3a6de0;
}

img {
    max-width: 100%;
}

h1:after, h2:after, h3:after {
    display: none;
}

.logo {
    max-width: 250px;
}

.login .card-header {
    padding: 0;
    margin-bottom: 0;
    background-color: transparent;
    border-bottom: none;
}

.card.login {
    border: none;
    background-color: transparent;
}

.login  .card-body {
    flex: 1 1 auto;
    padding: 30px;
    border: 1px solid #E9EDF7;
    margin-top: 30px;
    border-radius: 16px;
    background-color: #ffffff;
}

.login .form-control {
    border-radius: 12px;
    height: 45px;
}

.form-control:focus, .form-select:focus {
    border-color: #487FFF;
    box-shadow: 0 0 0 4px rgba(72, 127, 255, 0.1);
}

.btn-check:focus+.btn-primary, .btn-primary:focus {
    color: #fff;
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    border-color: transparent;
    box-shadow: 0 0 0 4px rgba(72, 127, 255, 0.15);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    border-color: transparent;
    border-radius: 12px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a6de0 0%, #5535e0 100%);
    border-color: transparent;
}

.login .btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    border-color: transparent;
    border-radius: 12px;
    height: 50px;
    text-transform: none;
    font-weight: 700;
    letter-spacing: 0;
    font-family: "Nunito", sans-serif;
    font-size: 16px;
}

.login .btn-primary:hover {
    background: linear-gradient(135deg, #3a6de0 0%, #5535e0 100%);
    border-color: transparent;
}

footer {
    background-color: #ffffff !important;
    border-top: 1px solid #E9EDF7;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 50px !important;
}

span.heart {
    font-size: 24px;
    color: #e31b23;
    line-height: 15px;
    margin-left: 4px;
    vertical-align: text-top;
}

.navbar-expand-lg .navbar-collapse {
    flex-basis: auto;
    justify-content: flex-end;
    text-transform: uppercase;
}

.navbar-expand-lg .navbar-collapse i {
    font-size: 22px;
    line-height: 22px;
    vertical-align: top;
}

.nav-icons {
    display: inline-block;
    float: right;
    margin-left: 25px;
    width: 178px;
    margin-top: -3px;
}

.nav-icons li {
    width: auto;
    display: inline-block;
}

.navbar-expand-lg .navbar-nav .nav-icons .nav-link {
    padding-left: 5px !important;
    padding-right: 5px !important;
}

.navbar {
    background-color: #ffffff !important;
    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover {
    color: #487FFF;
}

.btn {
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0;
    border-radius: 12px;
    padding: 10px 24px;
    transition: all 300ms ease;
}

.form-control {
    border-radius: 12px;
    height: 45px;
}

.alert-info {
    color: #487FFF;
    background-color: #EEF4FF;
    border-color: #D6E4FF;
}

.form-select {
    border-radius: 12px;
    height: 45px;
}

li.nav-item.active a {
    color: #487FFF !important;
}

.cards-row .card{
    background: #fff;
    border-radius: 16px;
    border: none;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(72, 127, 255, 0.1);
    transition: all 300ms ease;
}

.cards-row .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(72, 127, 255, 0.18);
}

.cards-row .card-header {
    height: 200px;
    width: 100%;
    background: red;
    border-radius: 16px 16px 100% 0% / 50% 50% 50% 100% !important;
    display: grid;
    place-items: center;
}

.cards-row .card-header i {
    color: #fff;
    font-size: 72px;
}

.cards-row .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.cards-row .card-title {
    text-align: center;
    text-transform: uppercase;
    font-size: 22px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.cards-row .card-text {
    text-align: center;
    font-size: 62px;
    margin-bottom: 20px !important;
    font-weight: 500;
    line-height: 62px;
}

.cards-row .card-header{
    background: linear-gradient(to bottom left, #11998e, #38ef7d);
}

.other-dash h3 {
    margin-bottom: 25px;
}

h3 span {
    color: #487FFF;
}

.list-group {
    border-radius: 12px;
}

.list-group-item h5 {
    font-weight: 500;
    font-size: 20px;
    max-width: 410px;
}

.list-group.popular-book h5 {
    margin-bottom: 0;
    padding-bottom: 0;
}


.list-group.popular-book h5 span {
    font-size: 15px;
    font-family: "Open Sans", serif;
    display: inline-block;
    margin-left: 15px;
    text-transform: none;
    font-style: italic;
}

.book-status-select .form-select {
    max-width: 200px;
    display: inline-block;
    margin-left: 10px;
}

.table>:not(caption)>*>* {
    padding: 7px 10px;
    vertical-align: middle;
}

.title-margin {
    margin-bottom: 50px;
}

.teacher-margin-top {
    margin-top: 60px !important;
}

small {
    font-size: 12px;
}

tbody, td, tfoot, th, thead, tr {
    line-height: normal;
}

#book_suggestions ul li, #user_suggestions ul li  {
    cursor: pointer;
}

#book_suggestions ul li:hover, #user_suggestions ul li:hover {
    background-color: #ebebeb;
}

h5 .text-body-secondary {
    color: #959595;
    font-style: italic;
}

.add-book {
    position: relative;
}

.suggestions {
    position: absolute;
    background-color: #ebebeb;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    border: 1px solid #ddd;
    padding-left: 15px;
}

.suggestions p {
    margin-bottom: 7px;
    margin-top: 7px;
}

.suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

 .suggestions li {
    padding: 8px 12px;
}

.suggestions li:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

.suggestions li.list-group-item {
    background-color: transparent;
    border: 0;
    padding-left: 0;
}

.stats-details h2 {
    margin-bottom: 35px;
}

.loan-stats {
    margin-top: 35px;
}

.list-group-item h5 .badge.rounded-pill {
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    font-size: 20px;
    margin-right: 10px;
}

.page-item:first-child .page-link {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    border-color: transparent;
}


.page-item:last-child .page-link {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.page-link {
    color: #487FFF;
}

.page-link:hover {
    color: #3a6de0;
    background-color: #EEF4FF;
}

.box {
    background-color: #ffffff;
    padding: 15px;
}

.table.per-class>:not(caption)>*>* {
    padding: 5px 10px;
}

canvas {
    max-height: 450px;
}

.bg-danger .card-title {
    color: #ffffff;
    font-weight: 900;
}

.navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 10px;
    padding-left: 10px;
}

table .btn {
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 13px;
}

.class-card.card {
    background: #fff;
    border-radius: 16px;
    border: none;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(72, 127, 255, 0.1);
    transition: all 300ms ease;
}

.class-card.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(72, 127, 255, 0.18);
}

.class-card .card-header {
    height: 200px;
    width: 100%;
    background: red;
    border-radius: 16px 16px 100% 0% / 50% 50% 50% 100% !important;
    display: grid;
    place-items: center;
}

.class-card .card-header i {
    color: #fff;
    font-size: 72px;
}

.class-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    min-height: 231px;
}

.class-card .card-title {
    text-align: center;
    text-transform: uppercase;
    font-size: 26px;
    margin-top: 15px;
    margin-bottom: 20px;
    max-width: 209px;
}

.class-card .card-text {
    text-align: center;
    font-size: 52px;
    margin-bottom: 20px !important;
    font-weight: 500;
    line-height: 52px;
}

.card-text span {
    display: block;
    font-size: 22px;
    line-height: 22px;
    margin-top: 15px;
    opacity: 0.7;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.class-card.card .btn {
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 14px;
}

.class-card .card-footer {
    padding: 15px 10px;
    text-align: center;
    background-color: transparent;
}

.class-card .card-header {
    background: linear-gradient(to bottom left, #11998e, #38ef7d);
    font-size: 46px;
    color: #ffffff;
    font-weight: 600;
}

.classess-cards .col:nth-child(2) .card-header {
    background: linear-gradient(to bottom left, #F79F1F, #FFC312);
}

.classess-cards .col:nth-child(3) .card-header {
    background: linear-gradient(to bottom left, #A3CB38, #C4E538);
}

.classess-cards .col:nth-child(4) .card-header {
    background: linear-gradient(to bottom left, #1289A7, #12CBC4);
}

.classess-cards .col:nth-child(5) .card-header {
    background: linear-gradient(to bottom left, #D980FA, #FDA7DF);
}

.classess-cards .col:nth-child(6) .card-header {
    background: linear-gradient(to bottom left, #B53471, #ED4C67);
}

.classess-cards .col:nth-child(7) .card-header {
    background: linear-gradient(to bottom left, #EA2027, #EE5A24);
}

.classess-cards .col:nth-child(8) .card-header {
    background: linear-gradient(to bottom left, #006266, #009432);
}

.classess-cards .col:nth-child(9) .card-header {
    background: linear-gradient(to bottom left, #1B1464, #0652DD);
}

.classess-cards .col:nth-child(10) .card-header {
    background: linear-gradient(to bottom left, #5758BB, #9980FA);
}

.classess-cards .col:nth-child(11) .card-header {
    background: linear-gradient(to bottom left, #6F1E51, #833471);
}

.classess-cards .col:nth-child(12) .card-header {
    background: linear-gradient(to bottom left, #f6b93b, #fad390);
}

.classess-cards .col:nth-child(13) .card-header {
    background: linear-gradient(to bottom left, #e55039, #f8c291);
}

.classess-cards .col:nth-child(14) .card-header {
    background: linear-gradient(to bottom left, #4a69bd, #6a89cc);
}

.classess-cards .col:nth-child(15) .card-header {
    background: linear-gradient(to bottom left, #60a3bc, #82ccdd);
}

.classess-cards .col:nth-child(16) .card-header {
    background: linear-gradient(to bottom left, #78e08f, #b8e994);
}

.classess-cards .col:nth-child(17) .card-header {
    background: linear-gradient(to bottom left, #e58e26, #fa983a);
}

.classess-cards .col:nth-child(18) .card-header {
    background: linear-gradient(to bottom left, #b71540, #eb2f06);
}

.classess-cards .col:nth-child(19) .card-header {
    background: linear-gradient(to bottom left, #0c2461, #1e3799);
}

.classess-cards .col:nth-child(20) .card-header {
    background: linear-gradient(to bottom left, #0a3d62, #3c6382);
}

.classess-cards .col:nth-child(21) .card-header {
    background: linear-gradient(to bottom left, #079992, #38ada9);
}

.classess-cards .col:nth-child(22) .card-header {
    background: linear-gradient(to bottom left, #16a085, #1abc9c);
}

.classess-cards .col:nth-child(23) .card-header {
    background: linear-gradient(to bottom left, #27ae60, #2ecc71);
}

.classess-cards .col:nth-child(24) .card-header {
    background: linear-gradient(to bottom left, #2980b9, #3498db);
}

.classess-cards .col:nth-child(25) .card-header {
    background: linear-gradient(to bottom left, #8e44ad, #9b59b6);
}

.classess-cards .col:nth-child(26) .card-header {
    background: linear-gradient(to bottom left, #2c3e50, #34495e);
}

.classess-cards .col:nth-child(27) .card-header {
    background: linear-gradient(to bottom left, #f39c12, #f1c40f);
}

.classess-cards .col:nth-child(28) .card-header {
    background: linear-gradient(to bottom left, #d35400, #e67e22);
}

.classess-cards .col:nth-child(29) .card-header {
    background: linear-gradient(to bottom left, #c0392b, #e74c3c);
}

.classess-cards .col:nth-child(30) .card-header {
    background: linear-gradient(to bottom left, #f368e0, #ff9ff3);
}

.classess-cards .col:nth-child(31) .card-header {
    background: linear-gradient(to bottom left, #ff9f43, #feca57);
}

.classess-cards .col:nth-child(32) .card-header {
    background: linear-gradient(to bottom left, #ee5253, #ff6b6b);
}

.classess-cards .col:nth-child(33) .card-header {
    background: linear-gradient(to bottom left, #0abde3, #48dbfb);
}

.classess-cards .col:nth-child(34) .card-header {
    background: linear-gradient(to bottom left, #341f97, #5f27cd);
}

.classess-cards .col:nth-child(35) .card-header {
    background: linear-gradient(to bottom left, #2e86de, #54a0ff);
}

.classess-cards .col:nth-child(36) .card-header {
    background: linear-gradient(to bottom left, #01a3a4, #00d2d3);
}

.btn-primary {
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    border-color: transparent;
}

.btn-danger {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.btn-warning {
    color: #000;
    background-color: #f1c40f;
    border-color: #f1c40f;
}

.btn-info {
    color: #ffffff;
    background-color: #3498db;
    border-color: #3498db;
}

.btn-success {
    color: #fff;
    background-color: #0b9444;
    border-color: #0b9444;
    border-radius: 12px;
}

span.primary-color {
    color: #487FFF;
}

.book-info span.primary-color {
    display: inline-block;
    margin-left: 7px;
    font-weight: 700;
}

.cover {
  width: 100%;
  height: 315px;
  overflow: hidden;
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card.book-info {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(72, 127, 255, 0.1);
    border: none;
}

.card.book-info .col-md-8 {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.card.book-info .list-group {
    width: 100%;
}

.card.book-info span.info-title {
    display: inline-block;
    min-width: 190px;
}

.card.book-info h4 {
    width: 100%;
    padding-left: 15px;
    padding-top: 20px;
    margin-bottom: 15px;
    font-size: 24px;
    line-height: 30px;
}

.card.book-info h4 span.primary-color {
    margin-left: 0;
}

.list-cover {
  width: 50px;
  height: 55px;
  overflow: hidden;
}

.list-cover img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.navbar-light .navbar-toggler {
    color: transparent;
    border-color: transparent;
    padding: 0;
}

.navbar-light .navbar-toggler-icon {
    background-image: none;
    color: #487FFF;
    font-size: 36px;
    height: auto;
    width: auto;
}


.navbar-toggler {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    transition: 0.3s ease-in-out;
    flex-shrink: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-collapse .bi-x-lg {
    display: none;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    display: inline-block;
    margin-left: 5px;
    margin-right: 5px;
    font-size: 20px;
}

.last-added h5 {
    padding-left: 0 !important;
}

.vkupno-dodadeni {
    margin-bottom: -15px;
}

.active-loans .book-cover, .loan-class .book-cover, .last-added-book .book-cover {
    width: 50px;
    height: 60px;
    overflow: hidden;
    margin-right: 15px;
}

.active-loans .list-group-item {
    display: flex;
    align-items: center;
}

.active-loans .book-cover img, .loan-class .book-cover img, .last-added-book .book-cover img  {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.popular-book .book-cover {
    width: 50px;
    height: 60px;
    overflow: hidden;
    margin-right: 15px;
}

.popular-book  .list-group-item {
    display: flex;
    align-items: center;
}

.popular-book  .book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.popular-book  .badge.rounded-pill {
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    font-size: 20px;
    margin-right: 15px;
}

.top-students .list-group-item {
    padding-top: 15px;
    padding-bottom: 15px;
}

.list-group.top-students  h5 {
    margin-bottom: 0;
    padding-bottom: 0;
}


.list-group.top-students  h5 span {
    font-size: 15px;
    font-family: "Open Sans", serif;
    display: inline-block;
    margin-left: 15px;
    text-transform: none;
    font-style: italic;
}

.loan-class {
    display: flex;
    align-items: center;
}

.loan-class p {
    margin-bottom: 0;
}

.loan-class h5 {
    margin-bottom: 0;
    padding-bottom: 0;
}

.loan-class small {
    position: absolute;
    right: 15px;
    top: 15px;
}


.last-added-book  {
    display: flex;
    align-items: center;
}

.last-added-book  p {
    margin-bottom: 0;
    color: #487FFF;
    font-weight: 500;
}

.last-added-book  h5 {
    margin-bottom: 0;
    padding-bottom: 0;
}

.last-added-book  small {
    position: absolute;
    right: 15px;
    top: 15px;
}

h5 span.text-body-secondary em {
    font-size: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.popular-book.active-loans.pass-loans h5 span {
    display: block;
    margin-left: 0;
}

/* ========== Page Title in Header ========== */
.page-title-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 8px;
}

.page-title-header__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(72, 127, 255, 0.12) 0%, rgba(97, 66, 255, 0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-title-header__icon i {
    font-size: 22px;
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title-header__text {
    font-family: "Nunito", "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #1B2559;
    margin: 0;
    padding: 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

@media (max-width: 1199px) {
    .page-title-header {
        display: none;
    }
}

/* ========== Dashboard Greeting ========== */
.grettings-box-two__content h2 {
    line-height: 32px;
}

/* ========== Compact Sidebar Menu ========== */
.sidebar-menu__item:not(:last-child) {
    margin-block-end: 3px !important;
}

.sidebar-menu__link {
    padding: 5px 14px !important;
    border-radius: 8px;
    font-size: 14px;
}

.sidebar-menu__link .icon {
    font-size: 20px !important;
}

.sidebar-menu__link .text {
    font-size: 14px;
}

/* Секциски хедери (Учебници, Администрација) */
.sidebar-menu__item > span.text-gray-300.text-sm {
    padding-top: 10px !important;
    padding-bottom: 2px !important;
    margin-bottom: -2px;
    font-size: 10px !important;
}

/* Sidebar version badge */
.sidebar-version-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(39, 206, 167, 0.15) 0%, rgba(72, 127, 255, 0.15) 100%);
    color: #27CEA7;
    vertical-align: super;
    margin-left: 2px;
    border: 1px solid rgba(39, 206, 167, 0.2);
}

/* Sidebar: flex layout за правилна висина */
.sidebar {
    display: flex !important;
    flex-direction: column !important;
}

.sidebar-menu-wrapper {
    max-height: none !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
}

/* Менu wrapper padding */
.sidebar-menu-wrapper > .p-20.pt-10 {
    padding: 12px 16px 12px 16px !important;
}

/* Долниот CTA блок — простор на дното */
.sidebar-menu-wrapper::after {
    content: '';
    display: block;
    height: 24px;
}

/* Submenu */
.sidebar-submenu {
    margin-top: 4px !important;
}

.sidebar-submenu__item {
    margin-bottom: 4px !important;
}

/* ========== Premium Modals ========== */
.premium-modal {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(27, 37, 89, 0.15), 0 0 0 1px rgba(72, 127, 255, 0.06);
}

.premium-modal__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 60px 20px 24px;
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    position: relative;
    border-radius: 20px 20px 0 0;
}

.premium-modal__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27CEA7 0%, #487FFF 50%, #6142FF 100%);
}

/* Danger variant (delete modals) */
.premium-modal__header--danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.premium-modal__header--danger::after {
    background: linear-gradient(90deg, #fca5a5 0%, #ef4444 50%, #b91c1c 100%);
}
.premium-modal__btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
    transition: all 0.2s ease;
}
.premium-modal__btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239,68,68,0.4);
    color: #fff;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}
.premium-modal__alert {
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.premium-modal__alert i {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}
.premium-modal__alert p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}
.premium-modal__alert--danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.premium-modal__alert--danger i {
    color: #ef4444;
}
.premium-modal__alert--danger p {
    color: #991b1b;
}

.premium-modal__header-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.premium-modal__header-icon i {
    font-size: 22px;
    color: #fff;
}

.premium-modal__title {
    font-family: "Nunito", sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.premium-modal__subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.premium-modal__close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
}

.premium-modal__close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) rotate(90deg);
}

/* Premium Modal Body spacing */
.premium-modal .modal-body {
    padding-top: 20px !important;
}

/* Premium Modal Form Inputs */
.premium-modal__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Nunito", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.premium-modal__label i {
    font-size: 15px;
    color: #487FFF;
}

.premium-modal__input-wrap {
    position: relative;
}

.premium-modal__input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 2;
}

.premium-modal__input {
    padding-left: 46px !important;
    height: 46px;
    border-radius: 12px !important;
    border: 2px solid #e2e8f0 !important;
    font-size: 14px;
    transition: all 0.2s ease !important;
    background: #f8fafc;
}

.premium-modal__input:focus {
    border-color: #487FFF !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(72, 127, 255, 0.1) !important;
}

.premium-modal__input.is-valid {
    border-color: #27CEA7 !important;
    background: #f0fdf9 !important;
}

/* Premium Modal Footer */
.premium-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 20px 20px;
}


.premium-modal__btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #1B2559;
    background: #fff;
    border: 2px solid #cbd5e1;
    transition: all 0.2s ease;
}

.premium-modal__btn-cancel:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1B2559;
}

.premium-modal__btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(72, 127, 255, 0.3);
    transition: all 0.2s ease;
}

.premium-modal__btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(72, 127, 255, 0.4);
    color: #fff;
}

.premium-modal__btn-return {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #27CEA7 0%, #1ba97f 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(39, 206, 167, 0.3);
    transition: all 0.2s ease;
}

.premium-modal__btn-return:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(39, 206, 167, 0.4);
    color: #fff;
}

/* Premium Detail Sections */
.premium-details-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.premium-detail-section {
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
}

.premium-detail-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Nunito", sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #487FFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.premium-detail-section__title i {
    font-size: 16px;
}

.premium-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.premium-detail-row:not(:last-child) {
    border-bottom: 1px dashed #e9ecef;
}

.premium-detail-row__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.premium-detail-row__label i {
    font-size: 16px;
    color: #94a3b8;
}

.premium-detail-row__value {
    font-size: 14px;
    font-weight: 600;
    color: #1B2559;
    text-align: right;
}

/* Premium Badges */
.premium-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.premium-badge--active {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.12) 0%, rgba(255, 193, 7, 0.12) 100%);
    color: #e65100;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.premium-badge--returned {
    background: linear-gradient(135deg, rgba(39, 206, 167, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
    color: #1b8a5a;
    border: 1px solid rgba(39, 206, 167, 0.2);
}

/* ========== Premium Notification Dropdown ========== */
.premium-notification-dropdown {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(27, 37, 89, 0.18), 0 8px 24px rgba(27, 37, 89, 0.08);
    overflow: hidden;
    border: 1px solid rgba(72, 127, 255, 0.08);
}

.premium-notification-dropdown__header {
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.premium-notification-dropdown__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #27CEA7 0%, #487FFF 50%, #6142FF 100%);
}

.premium-notification-dropdown__header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.premium-notification-dropdown__header-icon i {
    font-size: 20px;
    color: #fff;
}

.premium-notification-dropdown__title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.premium-notification-dropdown__subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 600;
}

.premium-notification-dropdown__body {
    max-height: 340px;
    overflow-y: auto;
    padding: 8px 0;
}

.premium-notification-dropdown__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    color: #94a3b8;
    gap: 8px;
}

.premium-notification-dropdown__empty i {
    font-size: 32px;
    opacity: 0.5;
}

.premium-notification-dropdown__empty span {
    font-size: 14px;
    font-weight: 600;
}

/* Notification Item */
.premium-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.premium-notif-item:hover {
    background: #f8fafc;
}

.premium-notif-item--unread {
    background: linear-gradient(135deg, rgba(72, 127, 255, 0.04) 0%, rgba(97, 66, 255, 0.04) 100%);
    border-left-color: #487FFF;
}

.premium-notif-item--unread:hover {
    background: linear-gradient(135deg, rgba(72, 127, 255, 0.08) 0%, rgba(97, 66, 255, 0.06) 100%);
}

.premium-notif-item__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.premium-notif-item__icon i {
    font-size: 18px;
}

.premium-notif-item__icon--loan_new {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.12) 100%);
}

.premium-notif-item__icon--loan_new i {
    color: #F59E0B;
}

.premium-notif-item__icon--loan_return {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(22, 163, 74, 0.12) 100%);
}

.premium-notif-item__icon--loan_return i {
    color: #22C55E;
}

.premium-notif-item__icon--custom {
    background: linear-gradient(135deg, rgba(72, 127, 255, 0.12) 0%, rgba(97, 66, 255, 0.12) 100%);
}

.premium-notif-item__icon--custom i {
    color: #487FFF;
}

.premium-notif-item__icon--default {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.1) 0%, rgba(71, 85, 105, 0.1) 100%);
}

.premium-notif-item__icon--default i {
    color: #64748b;
}

.premium-notif-item__content {
    flex: 1;
    min-width: 0;
}

.premium-notif-item__text {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.premium-notif-item--unread .premium-notif-item__text {
    font-weight: 700;
    color: #1e293b;
}

.premium-notif-item__time {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.premium-notif-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    flex-shrink: 0;
    margin-top: 6px;
    box-shadow: 0 0 0 3px rgba(72, 127, 255, 0.15);
}

.premium-notif-item + .premium-notif-item {
    border-top: 1px solid #f1f5f9;
}

/* Footer Link */
.premium-notification-dropdown__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #487FFF;
    text-decoration: none;
    border-top: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    background: linear-gradient(180deg, #fafbff 0%, #f0f4ff 100%);
}

.premium-notification-dropdown__footer:hover {
    color: #6142FF;
    background: linear-gradient(180deg, #f0f4ff 0%, #e8eeff 100%);
}

.premium-notification-dropdown__footer i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.premium-notification-dropdown__footer:hover i {
    transform: translateX(3px);
}

@media (max-width: 480px) {
    .premium-notification-dropdown {
        border-radius: 16px;
    }
    .premium-notification-dropdown__body {
        max-height: 280px;
    }
}

/* ========== Premium Sidebar CTA ========== */
.premium-sidebar-cta {
    background: linear-gradient(135deg, rgba(72, 127, 255, 0.1) 0%, rgba(97, 66, 255, 0.1) 100%);
    border: 1px solid rgba(72, 127, 255, 0.15);
    border-radius: 16px;
    padding: 28px 20px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.premium-sidebar-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #27CEA7 0%, #487FFF 50%, #6142FF 100%);
}

.premium-sidebar-cta__glow {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(72, 127, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.premium-sidebar-cta__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 6px 20px rgba(72, 127, 255, 0.35);
}

.premium-sidebar-cta__title {
    font-family: "Nunito", sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}

.premium-sidebar-cta__text {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin: 0 0 18px;
}

.premium-sidebar-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(72, 127, 255, 0.3);
}

.premium-sidebar-cta__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(72, 127, 255, 0.45);
    color: #fff;
}

/* ========== Premium Profile Settings ========== */
.premium-profile-settings__avatar-section {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f1f5f9;
}

.premium-profile-settings__avatar-preview {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(72, 127, 255, 0.15);
    overflow: hidden;
    flex-shrink: 0;
}

.premium-profile-settings__avatar-preview div {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
}

.premium-profile-settings__upload-box {
    flex: 1;
    border: 2px dashed rgba(72, 127, 255, 0.25);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(72, 127, 255, 0.03) 0%, rgba(97, 66, 255, 0.03) 100%);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.premium-profile-settings__upload-box:hover,
.premium-profile-settings__upload-box.highlight {
    border-color: rgba(72, 127, 255, 0.5);
    background: linear-gradient(135deg, rgba(72, 127, 255, 0.07) 0%, rgba(97, 66, 255, 0.07) 100%);
}

.premium-profile-settings__upload-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(72, 127, 255, 0.1) 0%, rgba(97, 66, 255, 0.1) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #487FFF;
    font-size: 22px;
}

.premium-profile-settings__upload-text {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.premium-profile-settings__upload-hint {
    font-size: 12px;
    font-weight: 700;
    color: #487FFF;
}

.premium-form-group {
    margin-bottom: 0;
}

.premium-form-group label {
    font-family: "Nunito", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    display: block;
}

.premium-form-group .form-control {
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1B2559;
    transition: all 0.2s;
    background: #fff;
}

.premium-form-group .form-control:focus {
    border-color: #487FFF;
    box-shadow: 0 0 0 4px rgba(72, 127, 255, 0.1);
}

.premium-form-group .form-control::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.premium-form-group .form-control.is-invalid {
    border-color: #ef4444;
}

.premium-form-group .form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.premium-form-group .invalid-feedback {
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

.premium-form-group .toggle-password {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    font-size: 18px;
    transition: color 0.2s;
    z-index: 2;
}

.premium-form-group .toggle-password:hover {
    color: #487FFF;
}

.premium-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid #e2e8f0;
}

.premium-form-actions__cancel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.premium-form-actions__cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.premium-form-actions__submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(72, 127, 255, 0.3);
}

.premium-form-actions__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(72, 127, 255, 0.4);
}

.premium-form-actions__submit:active {
    transform: translateY(0);
}

.premium-password-hint {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-top: -4px;
    margin-bottom: 8px;
}

@media (max-width: 576px) {
    .premium-profile-settings__avatar-section {
        flex-direction: column;
        align-items: center;
    }

    .premium-form-actions {
        flex-direction: column;
        padding: 16px 20px;
    }

    .premium-form-actions__cancel,
    .premium-form-actions__submit {
        width: 100%;
        justify-content: center;
    }
}

/* ========== Premium Profile View ========== */
.premium-profile-hero {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 24px;
    border: 1px solid #E9EDF7;
    box-shadow: 0 4px 24px rgba(27, 37, 89, 0.06);
}

/* Banner */
.premium-profile-hero__banner {
    position: relative;
    height: 170px;
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 50%, #8B5CF6 100%);
    overflow: hidden;
}

.premium-profile-hero__banner-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.premium-profile-hero__banner-orb--1 {
    width: 220px;
    height: 220px;
    top: -80px;
    right: -40px;
    background: rgba(255, 255, 255, 0.08);
}

.premium-profile-hero__banner-orb--2 {
    width: 140px;
    height: 140px;
    bottom: -50px;
    left: 12%;
    background: rgba(255, 255, 255, 0.06);
}

.premium-profile-hero__banner-orb--3 {
    width: 90px;
    height: 90px;
    top: 30px;
    left: 45%;
    background: rgba(255, 255, 255, 0.04);
}

.premium-profile-hero__banner-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.premium-profile-hero__header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.premium-profile-hero__header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.premium-profile-hero__header-btn i {
    font-size: 16px;
}

/* Body with avatar overlap */
.premium-profile-hero__body {
    display: flex;
    gap: 24px;
    padding: 0 28px 28px;
    align-items: flex-start;
    margin-top: -52px;
    position: relative;
    z-index: 2;
}

.premium-profile-hero__avatar {
    flex-shrink: 0;
}

.premium-profile-hero__avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 8px 32px rgba(72, 127, 255, 0.25), 0 0 0 3px rgba(72, 127, 255, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-profile-hero__avatar img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(72, 127, 255, 0.35), 0 0 0 4px rgba(72, 127, 255, 0.18);
}

.premium-profile-hero__info {
    flex: 1;
    min-width: 0;
    padding-top: 60px;
}

.premium-profile-hero__name {
    font-family: 'Nunito', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #1B2559;
    margin: 0 0 8px;
    line-height: 1.2;
}

.premium-profile-hero__role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, #487FFF, #6142FF);
    color: #fff;
    margin-bottom: 16px;
}

/* Archived profile variant */
.premium-profile-hero__banner--archived {
    background: linear-gradient(135deg, #EA5455 0%, #FF6B6B 50%, #FF9F43 100%);
}

.premium-profile-hero__role--archived {
    background: linear-gradient(135deg, #EA5455, #FF6B6B);
}

.premium-profile-hero__role i {
    font-size: 14px;
}

.premium-profile-hero__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.premium-profile-hero__detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid #E9EDF7;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
}

.premium-profile-hero__detail:hover {
    background: #EFF6FF;
    border-color: rgba(72, 127, 255, 0.2);
}

.premium-profile-hero__detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.premium-profile-hero__detail-icon i {
    font-size: 16px;
    color: #487FFF;
}

.premium-profile-hero__detail a {
    color: #487FFF;
    text-decoration: none;
    transition: color 0.2s;
}

.premium-profile-hero__detail a:hover {
    color: #6142FF;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .premium-profile-hero__banner {
        height: 120px;
    }

    .premium-profile-hero__body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 0 20px 24px;
        margin-top: -40px;
    }

    .premium-profile-hero__avatar img {
        width: 100px;
        height: 100px;
    }

    .premium-profile-hero__info {
        padding-top: 0;
    }

    .premium-profile-hero__name {
        font-size: 22px;
    }

    .premium-profile-hero__details {
        justify-content: center;
    }

    .premium-profile-hero__banner-actions {
        top: 10px;
        right: 10px;
    }
}

/* ========== Premium Profile Dropdown ========== */
.premium-profile-dropdown {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(27, 37, 89, 0.16), 0 6px 16px rgba(27, 37, 89, 0.06);
    overflow: hidden;
    border: 1px solid rgba(72, 127, 255, 0.08);
    min-width: 260px;
}

.premium-profile-dropdown__header {
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    padding: 18px 20px 14px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.premium-profile-dropdown__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #27CEA7 0%, #487FFF 50%, #6142FF 100%);
}

.premium-profile-dropdown__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.premium-profile-dropdown__name {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.premium-profile-dropdown__email {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.65);
    margin: 2px 0 0;
    line-height: 1.3;
}

.premium-profile-dropdown__role {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.premium-profile-dropdown__role i {
    font-size: 10px;
}

.premium-profile-dropdown__body {
    padding: 8px;
}

.premium-profile-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: 'Nunito', sans-serif;
}

.premium-profile-dropdown__item:hover {
    background: #f8fafc;
}

.premium-profile-dropdown__item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    transition: all 0.2s ease;
}

.premium-profile-dropdown__item-icon--profile {
    background: linear-gradient(135deg, rgba(72, 127, 255, 0.1) 0%, rgba(97, 66, 255, 0.1) 100%);
    color: #487FFF;
}

.premium-profile-dropdown__item-icon--settings {
    background: linear-gradient(135deg, rgba(39, 206, 167, 0.1) 0%, rgba(72, 127, 255, 0.1) 100%);
    color: #27CEA7;
}

.premium-profile-dropdown__item-icon--logout {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.08) 100%);
    color: #EF4444;
}

.premium-profile-dropdown__item:hover .premium-profile-dropdown__item-icon--profile {
    background: linear-gradient(135deg, rgba(72, 127, 255, 0.18) 0%, rgba(97, 66, 255, 0.18) 100%);
}

.premium-profile-dropdown__item:hover .premium-profile-dropdown__item-icon--settings {
    background: linear-gradient(135deg, rgba(39, 206, 167, 0.18) 0%, rgba(72, 127, 255, 0.18) 100%);
}

.premium-profile-dropdown__item:hover .premium-profile-dropdown__item-icon--logout {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
}

.premium-profile-dropdown__item-text {
    font-weight: 700;
    font-size: 14px;
    color: #334155;
}

.premium-profile-dropdown__item--logout .premium-profile-dropdown__item-text {
    color: #EF4444;
}

.premium-profile-dropdown__item--logout:hover {
    background: rgba(239, 68, 68, 0.04);
}

.premium-profile-dropdown__divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 12px;
}

/* ========== Premium Language Switcher ========== */
.premium-lang-dropdown {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(27, 37, 89, 0.16), 0 6px 16px rgba(27, 37, 89, 0.06);
    overflow: hidden;
    border: 1px solid rgba(72, 127, 255, 0.08);
    min-width: 220px;
}

.premium-lang-dropdown__header {
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    padding: 12px 16px;
    position: relative;
}

.premium-lang-dropdown__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #27CEA7 0%, #487FFF 50%, #6142FF 100%);
}

.premium-lang-dropdown__header-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-lang-dropdown__header-title i {
    font-size: 16px;
    opacity: 0.8;
}

.premium-lang-dropdown__body {
    padding: 8px;
}

.premium-lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.premium-lang-item:hover {
    background: #f8fafc;
}

.premium-lang-item--active {
    background: linear-gradient(135deg, rgba(72, 127, 255, 0.06) 0%, rgba(97, 66, 255, 0.06) 100%);
    border-color: rgba(72, 127, 255, 0.2);
}

.premium-lang-item--active:hover {
    background: linear-gradient(135deg, rgba(72, 127, 255, 0.1) 0%, rgba(97, 66, 255, 0.08) 100%);
}

.premium-lang-item__flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s ease;
}

.premium-lang-item--active .premium-lang-item__flag {
    border-color: #487FFF;
    box-shadow: 0 0 0 2px rgba(72, 127, 255, 0.2);
}

.premium-lang-item__name {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #334155;
    flex: 1;
}

.premium-lang-item--active .premium-lang-item__name {
    color: #487FFF;
    font-weight: 800;
}

.premium-lang-item__check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.premium-lang-item--active .premium-lang-item__check {
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    border-color: transparent;
}

.premium-lang-item--active .premium-lang-item__check i {
    color: #fff;
    font-size: 12px;
}

/* ========== Premium Notifications Page ========== */
.premium-notifications-page {
    margin-bottom: 24px;
}

.premium-notifications-page__header {
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    padding: 20px 28px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.premium-notifications-page__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #27CEA7 0%, #487FFF 50%, #6142FF 100%);
}

.premium-notifications-page__header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.premium-notifications-page__header-icon i {
    font-size: 24px;
    color: #fff;
}

.premium-notifications-page__header-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    margin: 0;
}

.premium-notifications-page__header-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 600;
}

.premium-notifications-page__header-back {
    margin-left: auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.premium-notifications-page__header-back:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.premium-notifications-page__stats {
    display: flex;
    gap: 16px;
    padding: 20px 28px;
    background: #fff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 30px rgba(27, 37, 89, 0.08);
    flex-wrap: wrap;
}

.premium-notifications-page__stat {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.premium-notifications-page__stat:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.premium-notifications-page__stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.premium-notifications-page__stat-icon i {
    font-size: 20px;
}

.premium-notifications-page__stat-icon--total {
    background: linear-gradient(135deg, rgba(72, 127, 255, 0.12) 0%, rgba(97, 66, 255, 0.12) 100%);
}

.premium-notifications-page__stat-icon--total i {
    color: #487FFF;
}

.premium-notifications-page__stat-icon--unread {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.12) 100%);
}

.premium-notifications-page__stat-icon--unread i {
    color: #F59E0B;
}

.premium-notifications-page__stat-icon--read {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(22, 163, 74, 0.12) 100%);
}

.premium-notifications-page__stat-icon--read i {
    color: #22C55E;
}

.premium-notifications-page__stat-number {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #1B2559;
    line-height: 1.2;
}

.premium-notifications-page__stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Page variant — поголеми items за full-page */
.premium-notif-item--page {
    padding: 16px 24px;
}

.premium-notif-item--page .premium-notif-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.premium-notif-item--page .premium-notif-item__icon i {
    font-size: 20px;
}

.premium-notif-item--page .premium-notif-item__text {
    font-size: 14px;
    -webkit-line-clamp: 3;
}

.premium-notif-item--page .premium-notif-item__time {
    font-size: 13px;
    display: flex;
    align-items: center;
}

.premium-notif-item__date {
    color: #b0b8c9;
    font-weight: 500;
}

@media (max-width: 768px) {
    .premium-notifications-page__stats {
        padding: 16px;
        gap: 10px;
    }
    .premium-notifications-page__stat {
        min-width: 90px;
        padding: 10px 12px;
    }
    .premium-notifications-page__stat-number {
        font-size: 18px;
    }
    .premium-notif-item--page {
        padding: 14px 16px;
    }
}

/* ========== Book Detail Premium ========== */
.book-detail-hero {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(27, 37, 89, 0.12), 0 0 0 1px rgba(72, 127, 255, 0.06);
    background: #fff;
    margin-bottom: 24px;
}

.book-detail-hero__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    position: relative;
}

.book-detail-hero__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27CEA7 0%, #487FFF 50%, #6142FF 100%);
}

.book-detail-hero__header-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.book-detail-hero__header-icon i {
    font-size: 22px;
    color: #fff;
}

.book-detail-hero__header-text {
    font-family: "Nunito", sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.book-detail-hero__header-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.book-detail-hero__header-back {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    text-decoration: none;
}

.book-detail-hero__header-back:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.book-detail-hero__body {
    display: flex;
    gap: 32px;
    padding: 28px;
}

.book-detail-hero__cover {
    flex-shrink: 0;
    width: 200px;
    border-radius: 14px;
    overflow: hidden;
}

.book-detail-hero__cover img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(27, 37, 89, 0.18), 0 4px 8px rgba(0, 0, 0, 0.06);
    object-fit: cover;
}

.book-detail-hero__cover .book-cover-placeholder {
    width: 100%;
    height: 280px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #94a3b8;
}

.book-detail-hero__info {
    flex: 1;
    min-width: 0;
}

.book-detail-hero__title {
    font-family: "Nunito", sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #1B2559;
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.book-detail-hero__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.book-detail-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.book-detail-hero__meta-item i {
    font-size: 18px;
    color: #487FFF;
}

.book-detail-hero__meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.book-detail-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, rgba(72, 127, 255, 0.1) 0%, rgba(97, 66, 255, 0.1) 100%);
    color: #487FFF;
    border: 1px solid rgba(72, 127, 255, 0.15);
}

.book-detail-hero__badge--genre {
    background: linear-gradient(135deg, rgba(39, 206, 167, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
    color: #1b8a5a;
    border: 1px solid rgba(39, 206, 167, 0.2);
}

.book-detail-hero__description {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.book-detail-hero__description h6 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Nunito", sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #487FFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.book-detail-hero__description h6 i {
    font-size: 16px;
}

.book-detail-hero__description p {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

/* Book Detail Stats */
.book-detail-stats {
    display: flex;
    gap: 16px;
    padding: 0 28px 28px;
}

.book-detail-stat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.book-detail-stat:hover {
    border-color: rgba(72, 127, 255, 0.2);
    box-shadow: 0 4px 12px rgba(72, 127, 255, 0.08);
}

.book-detail-stat__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.book-detail-stat__icon i {
    font-size: 24px;
}

.book-detail-stat__icon--total {
    background: linear-gradient(135deg, rgba(72, 127, 255, 0.12) 0%, rgba(97, 66, 255, 0.12) 100%);
}

.book-detail-stat__icon--total i {
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.book-detail-stat__icon--available {
    background: linear-gradient(135deg, rgba(39, 206, 167, 0.12) 0%, rgba(76, 175, 80, 0.12) 100%);
}

.book-detail-stat__icon--available i {
    background: linear-gradient(135deg, #27CEA7 0%, #4CAF50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.book-detail-stat__icon--loaned {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.12) 0%, rgba(255, 87, 34, 0.12) 100%);
}

.book-detail-stat__icon--loaned i {
    background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.book-detail-stat__number {
    font-family: "Nunito", sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1B2559;
    line-height: 1;
    margin-bottom: 2px;
}

.book-detail-stat__label {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

/* Book Detail Section Cards */
.book-detail-section {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(27, 37, 89, 0.06), 0 0 0 1px rgba(72, 127, 255, 0.04);
    background: #fff;
    margin-bottom: 24px;
}

.book-detail-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.book-detail-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Nunito", sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #1B2559;
    margin: 0;
}

.book-detail-section__title-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(72, 127, 255, 0.12) 0%, rgba(97, 66, 255, 0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.book-detail-section__title-icon i {
    font-size: 18px;
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.book-detail-section__link {
    font-size: 13px;
    font-weight: 700;
    color: #487FFF;
    text-decoration: none;
    transition: color 0.2s;
}

.book-detail-section__link:hover {
    color: #6142FF;
    text-decoration: underline;
}

.book-detail-section__body {
    padding: 20px 24px;
}

/* Copy item in copies list */
.book-copy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.book-copy-item:not(:last-child) {
    margin-bottom: 10px;
}

.book-copy-item:hover {
    border-color: rgba(72, 127, 255, 0.2);
    background: #f1f5f9;
}

.book-copy-item__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.book-copy-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #487FFF;
    flex-shrink: 0;
}

.book-copy-item__title {
    font-size: 14px;
    font-weight: 700;
    color: #1B2559;
    margin-bottom: 2px;
}

.book-copy-item__sub {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

/* Premium badge additions for book detail */
.premium-badge--available {
    background: linear-gradient(135deg, rgba(39, 206, 167, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
    color: #1b8a5a;
    border: 1px solid rgba(39, 206, 167, 0.2);
}

.premium-badge--loaned {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.12) 0%, rgba(255, 193, 7, 0.12) 100%);
    color: #e65100;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

/* Premium table for loan history */
.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.premium-table thead th {
    font-family: "Nunito", sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #487FFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.premium-table tbody td {
    font-size: 14px;
    font-weight: 600;
    color: #1B2559;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.premium-table tbody tr:hover {
    background: #f8fafc;
}

.premium-table tbody td .text-muted-cell {
    color: #94a3b8;
}

.premium-table__book-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1B2559;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.premium-table__book-link:hover {
    color: #487FFF;
}

.premium-table__overdue {
    color: #dc2626;
    font-weight: 700;
}

.premium-badge--overdue {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* ==========================================
   Dashboard Cinema Cards — Overlay Design
   ========================================== */
@keyframes dashCardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Grid: 6 columns on XXL ────────────── */
.dash-cinema-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
@media (max-width: 1599px) { .dash-cinema-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1399px) { .dash-cinema-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1199px) { .dash-cinema-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .dash-cinema-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .dash-cinema-grid { grid-template-columns: 1fr; } }

/* Staggered entrance */
.dash-cinema-grid > :nth-child(1) { animation-delay: 0s; }
.dash-cinema-grid > :nth-child(2) { animation-delay: 0.05s; }
.dash-cinema-grid > :nth-child(3) { animation-delay: 0.10s; }
.dash-cinema-grid > :nth-child(4) { animation-delay: 0.15s; }
.dash-cinema-grid > :nth-child(5) { animation-delay: 0.20s; }
.dash-cinema-grid > :nth-child(6) { animation-delay: 0.25s; }

/* Accent colors per card position */
.dash-cinema-grid > :nth-child(6n+1) { --accent: 72, 127, 255; }
.dash-cinema-grid > :nth-child(6n+2) { --accent: 139, 92, 246; }
.dash-cinema-grid > :nth-child(6n+3) { --accent: 39, 206, 167; }
.dash-cinema-grid > :nth-child(6n+4) { --accent: 244, 114, 182; }
.dash-cinema-grid > :nth-child(6n+5) { --accent: 251, 146, 60; }
.dash-cinema-grid > :nth-child(6n+6) { --accent: 56, 189, 248; }

/* ── Card ──────────────────────────────── */
.dash-card {
    --accent: 72, 127, 255;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    animation: dashCardIn 0.5s ease both;
    box-shadow:
        inset 0 0 0 2px rgba(var(--accent), 0.25),
        0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-card:hover {
    transform: translateY(-8px);
    box-shadow:
        inset 0 0 0 2px rgba(var(--accent), 0.7),
        0 0 20px rgba(var(--accent), 0.25),
        0 0 50px rgba(var(--accent), 0.1),
        0 20px 40px rgba(27, 37, 89, 0.15);
}

/* Bottom accent glow line */
.dash-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: rgb(var(--accent));
    border-radius: 3px 3px 0 0;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.4s, left 0.4s, right 0.4s;
    pointer-events: none;
}

.dash-card:hover::after {
    opacity: 1;
    left: 0;
    right: 0;
}

/* ── Link ──────────────────────────────── */
.dash-card__link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
}

/* ── Visual (cover image) ──────────────── */
.dash-card__visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.dash-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dash-card:hover .dash-card__visual img {
    transform: scale(1.05);
}

/* ── Shine sweep on hover ────────────── */
.dash-card__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.18) 45%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.18) 55%,
        transparent 60%
    );
    transform: translateX(-120%);
    transition: none;
    pointer-events: none;
}

.dash-card:hover .dash-card__visual::after {
    transform: translateX(120%);
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Placeholder (no cover) */
.dash-card__visual-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0c1a4a 0%, #1a1545 40%, #0d2e3a 100%);
    position: relative;
    overflow: hidden;
}

.dash-card__visual-ph::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 75%, rgba(72, 127, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(139, 92, 246, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(39, 206, 167, 0.08) 0%, transparent 55%);
}

.dash-card__visual-ph i {
    font-size: 56px;
    color: rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(var(--accent), 0.25));
}

/* ── Overlay (no gradient — cover stays fully visible) ── */
.dash-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    background: none;
}

/* ── Badge (glassmorphism) ─────────────── */
.dash-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.dash-card__badge--genre {
    background: rgba(10, 40, 30, 0.7);
    color: #6ee7b7;
}

.dash-card__badge--loaned {
    background: rgba(40, 20, 5, 0.7);
    color: #fed7aa;
}

.dash-card__badge--returned {
    background: rgba(10, 40, 30, 0.7);
    color: #6ee7b7;
}

/* ── Info block (branded frosted glass) ── */
.dash-card__info {
    position: relative;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(12, 25, 80, 0.8) 0%,
        rgba(50, 25, 95, 0.75) 50%,
        rgba(8, 60, 50, 0.75) 100%
    );
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                border-color 0.4s ease,
                background 0.4s ease;
}

.dash-card:hover .dash-card__info {
    transform: translateY(-4px);
    background: linear-gradient(
        135deg,
        rgba(18, 35, 100, 0.82) 0%,
        rgba(60, 30, 110, 0.78) 50%,
        rgba(12, 75, 60, 0.78) 100%
    );
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.dash-card__title {
    font-family: "Nunito", sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.dash-card__title a { color: inherit; text-decoration: none; }

.dash-card__sub {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-card__sub i {
    font-size: 12px;
    opacity: 0.7;
    flex-shrink: 0;
}

/* User row in overlay (for loans) */
.dash-card__user-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}

.dash-card__user-row img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.dash-card__user-row .avatar-placeholder {
    flex-shrink: 0;
}

.dash-card__user-row span {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-card__user-row a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

/* Date pill in overlay */
.dash-card__date-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.dash-card__date-pill i {
    font-size: 11px;
    opacity: 0.7;
}

.dash-card__date-pill--danger {
    color: #fca5a5;
}

@media (max-width: 480px) {
    .dash-card { border-radius: 12px; }
    .dash-cinema-grid { gap: 14px; }
    .dash-card__overlay { padding: 10px; }
    .dash-card__title { font-size: 13px; }
    .dash-card__info { padding: 6px 8px; border-radius: 8px; }
    .dash-card__badge { font-size: 9px; padding: 3px 8px; top: 8px; right: 8px; }
}

/* Responsive */
@media (max-width: 768px) {
    .book-detail-hero__body {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .book-detail-hero__cover {
        width: 160px;
        margin: 0 auto;
    }

    .book-detail-stats {
        flex-direction: column;
        padding: 0 20px 20px;
    }

    .book-detail-hero__title {
        font-size: 22px;
        text-align: center;
    }

    .book-detail-hero__meta {
        justify-content: center;
    }
}


/* Modal animation */
.modal.fade .premium-modal {
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.modal.show .premium-modal {
    transform: scale(1) translateY(0);
}

@media screen and (max-width: 991px) {
    .navbar-collapse.collapse:not(.show) {
        display: block;
    }
    
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        background: #191919;
        width: 215px;
        height: 100%;
        z-index: 9999;
        padding: 25px;
        transform: translateX(215px);
        transition: 0.3s ease-in-out;
        display: block;
    }
    
    .navbar-collapse.show {
        transform: translateX(0px);
    }
    
    body:not(.menu-active) .overlay {
        display: none;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0);
        z-index: 9002;
        opacity: 0;
        pointer-events: none;
    }


    body.menu-active .overlay {
        pointer-events: auto;
        animation: fadeIn 0.4s ease-in-out forwards;*/
    }

    body:not(.menu-active) .overlay{
		animation: fadeOut 0.4s ease-in-out forwards;
    }


    @keyframes fadeIn {
        from {
            opacity: 0;
            background-color: rgba(0, 0, 0, 0);
        }
        to {
            opacity: 1;
            background-color: rgba(0, 0, 0, 0.6);
        }
    }

     @keyframes fadeOut {
        from {
          opacity: 1;
          background-color: rgba(0, 0, 0, 0.6);
        }
        to {
          opacity: 0;
          background-color: rgba(0, 0, 0, 0);
        }
    }
    
    .navbar-light .navbar-nav .nav-link {
        color: rgba(255, 255, 255, .6);
    }
    
    .nav-icons {
        margin-top: 25px !important;
    }
    
    .navbar-nav {
        margin-top: 35px;
    }
    
    .navbar-collapse .bi-x-lg {
        display: block;
        cursor: pointer;
        position: absolute;
        color: rgba(255, 255, 255, .6);
        top: 13px;
        right: 13px;
    }
    
    .navbar-expand-lg .navbar-nav .nav-link {
        text-align: left !important;
    }
    
    .navbar-nav li.nav-item {
        border-top: 1px solid rgba(255, 255, 255, .03);
        margin-bottom: 5px;
    }
    
    .nav-icons li.nav-item {
        border: none;
    }
    
    .navbar-expand-lg .navbar-nav .nav-icons .nav-link {
        padding-left: 3px !important;
        padding-right: 4px !important;
    }
}

@media (max-width: 768px) {
    .footer {
        margin-top: 25px !important;
    }
    
    .cards-row .card {
        margin-bottom: 40px;
    }
    
    .navbar-expand-lg .navbar-nav .nav-link {
        text-align: right;
    }
    
    .nav-icons {
        display: inline-block;
        float: right;
        margin-left: 0;
        width: auto;
        margin-top: 0;
        text-align: right;
    }
    
    table .btn {
        margin-bottom: 5px;
    }
    
    .classes-view h5 strong {
        display: block;
        width: 100%;
    }
    
    .list-group-item h5 {
        padding-left: 55px;
    }
    
    .list-group-item h5 .badge.rounded-pill {
        position: absolute;
        left: 2px;
        top: 5px;
    }
    
    .list-group.popular-book h5 span {
        margin-left: 0;
        display: block;
    }
    
    .stats-details h2 span {
        display: block;
        width: 100%;
    }
    
    .stats-details h2 {
        margin-bottom: 0;
    }
    
    .card.book-info h4 {
        width: 100%;
        padding-left: 15px;
        padding-top: 15px;
        margin-bottom: 10px;
        font-size: 20px;
        line-height: 28px;
    }
    
    .cover {
        height: 480px;
    }
    
    .title-margin {
        margin-bottom: 15px;
    }
    
    .popular-book.active-loans h5 {
        padding-left: 0 !important;
    }
    
    .popular-book .list-group-item h5 {
        padding-left: 0;
    }
    
    .list-group.top-students h5 span {
        margin-left: 0;
    }
    
    .loan-class h5 {
        padding-left: 0;
    }
    
    
    h5 .text-body-secondary, .last-added-book small {
        display: none;
    }
    
    .list-group h5 span {
        font-size: 11px !important;
    }
    
    .list-group-item h5 {
        line-height: 20px;
    }
}

/* ==========================================
   Textbook Assign Page — Ultra Premium
   ========================================== */

@keyframes tbAssignFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes tbProgressShine {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ── Hero Header ─────────────────────────── */
.tb-assign-hero {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(27, 37, 89, 0.12), 0 0 0 1px rgba(72, 127, 255, 0.06);
    background: #fff;
    margin-bottom: 24px;
    animation: tbAssignFadeIn 0.5s both;
}

.tb-assign-hero__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #6142FF 0%, #487FFF 100%);
    position: relative;
}

.tb-assign-hero__header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27CEA7 0%, #487FFF 50%, #6142FF 100%);
}

.tb-assign-hero__header-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.tb-assign-hero__header-icon i { font-size: 22px; color: #fff; }

.tb-assign-hero__title {
    font-family: "Nunito", sans-serif;
    font-size: 18px; font-weight: 800; color: #fff; margin: 0;
}

.tb-assign-hero__sub {
    font-size: 13px; color: rgba(255,255,255,0.7); margin: 0;
}

.tb-assign-hero__back {
    margin-left: auto;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none;
    transition: all 0.2s ease;
}

.tb-assign-hero__back:hover {
    background: rgba(255,255,255,0.25);
    transform: translateX(-2px);
    color: #fff;
}

/* ── Sidebar ─────────────────────────────── */
.tb-assign-sidebar {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(27, 37, 89, 0.06), 0 0 0 1px rgba(72, 127, 255, 0.04);
    background: #fff;
    position: sticky;
    top: 100px;
    z-index: 1;
}

.tb-assign-sidebar__header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 16px 24px;
    background: linear-gradient(135deg, rgba(72,127,255,0.06), rgba(97,66,255,0.06));
    border-bottom: 1px solid #e2e8f0;
}

.tb-assign-sidebar__title {
    display: flex; align-items: center; gap: 10px;
    font-family: "Nunito", sans-serif;
    font-size: 15px; font-weight: 800; color: #1B2559; margin: 0;
}

.tb-assign-sidebar__title-icon {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, #487FFF, #6142FF);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(72, 127, 255, 0.3);
}

.tb-assign-sidebar__title-icon i { font-size: 16px; color: #fff; }

.tb-assign-sidebar__count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 28px; padding: 0 10px;
    border-radius: 50px; font-size: 12px; font-weight: 800;
    background: linear-gradient(135deg, #487FFF, #6142FF);
    color: #fff; white-space: nowrap; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(72, 127, 255, 0.3);
}

.tb-assign-sidebar__body { padding: 20px 24px; }

/* ── Class Selector ──────────────────────── */
.tb-assign-class-select { margin-bottom: 20px; }

.tb-assign-class-select label {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: #487FFF;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px;
}

.tb-assign-class-select label i { font-size: 14px; }

.tb-assign-class-select .form-select {
    border-radius: 12px; border: 2px solid #e2e8f0;
    padding: 10px 16px; font-weight: 600; color: #1B2559;
    transition: all 0.2s ease; background-color: #f8fafc;
}

.tb-assign-class-select .form-select:focus {
    border-color: #487FFF;
    box-shadow: 0 0 0 4px rgba(72, 127, 255, 0.1);
    background-color: #fff;
}

/* ── Search Input ────────────────────────── */
.tb-assign-search { position: relative; margin-bottom: 16px; }

.tb-assign-search__input {
    width: 100%; padding: 10px 16px 10px 42px;
    border: 2px solid #e2e8f0; border-radius: 12px;
    font-size: 14px; font-weight: 500; color: #1B2559;
    background: #f8fafc; transition: all 0.2s ease;
}

.tb-assign-search__input:focus {
    outline: none; border-color: #487FFF;
    box-shadow: 0 0 0 4px rgba(72, 127, 255, 0.1);
    background: #fff;
}

.tb-assign-search__input::placeholder { color: #A3AED0; font-weight: 500; }

.tb-assign-search__icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 18px; color: #A3AED0; pointer-events: none;
}

/* ── Student List ────────────────────────── */
.tb-assign-student-list {
    max-height: calc(100vh - 320px);
    overflow-y: auto; padding-right: 4px; margin-right: -4px;
    display: flex; flex-direction: column; gap: 8px;
}

.tb-assign-student-list::-webkit-scrollbar { width: 5px; }
.tb-assign-student-list::-webkit-scrollbar-track { background: transparent; }
.tb-assign-student-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }
.tb-assign-student-list::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* ── Student Card ────────────────────────── */
.tb-assign-student {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 16px; border-radius: 14px; min-height: 72px;
    background: #fff; border: 2px solid transparent;
    cursor: pointer; position: relative; overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    animation: tbAssignFadeIn 0.4s both;
}

.tb-assign-student::before {
    content: ''; position: absolute; inset: 0; border-radius: 14px;
    background: linear-gradient(135deg, rgba(72,127,255,0.04), rgba(39,206,167,0.04));
    opacity: 0; transition: opacity 0.25s ease;
}

.tb-assign-student:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(72, 127, 255, 0.1);
    border-color: rgba(72, 127, 255, 0.12);
}

.tb-assign-student:hover::before { opacity: 1; }

.tb-assign-student--active {
    border-color: #487FFF !important;
    background: linear-gradient(135deg, rgba(72,127,255,0.06), rgba(97,66,255,0.04));
    box-shadow: 0 4px 16px rgba(72, 127, 255, 0.15);
}

.tb-assign-student--active::after {
    content: ''; position: absolute;
    left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 60%;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #487FFF, #6142FF);
}

.tb-assign-student__name {
    font-size: 14px; font-weight: 700; color: #1B2559;
    margin-bottom: 2px; line-height: 1.3;
}

.tb-assign-student__meta {
    font-size: 12px; color: #A3AED0; font-weight: 500;
    display: flex; align-items: center; gap: 8px;
}

.tb-assign-student__arrow {
    margin-left: auto; flex-shrink: 0;
    width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; color: #cbd5e1;
}

.tb-assign-student--active .tb-assign-student__arrow {
    background: linear-gradient(135deg, #487FFF, #6142FF);
    color: #fff;
    box-shadow: 0 2px 8px rgba(72, 127, 255, 0.3);
}

/* Staggered entrance */
.tb-assign-student:nth-child(1)  { animation-delay: 0s; }
.tb-assign-student:nth-child(2)  { animation-delay: 0.03s; }
.tb-assign-student:nth-child(3)  { animation-delay: 0.04s; }
.tb-assign-student:nth-child(4)  { animation-delay: 0.06s; }
.tb-assign-student:nth-child(5)  { animation-delay: 0.08s; }
.tb-assign-student:nth-child(6)  { animation-delay: 0.10s; }
.tb-assign-student:nth-child(7)  { animation-delay: 0.12s; }
.tb-assign-student:nth-child(8)  { animation-delay: 0.14s; }
.tb-assign-student:nth-child(9)  { animation-delay: 0.16s; }
.tb-assign-student:nth-child(10) { animation-delay: 0.18s; }

/* ── Student Profile Hero ────────────────── */
.tb-assign-profile {
    border: none; border-radius: 20px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(27, 37, 89, 0.08), 0 0 0 1px rgba(72, 127, 255, 0.04);
    background: #fff; margin-bottom: 24px;
    animation: tbAssignFadeIn 0.5s both;
}

.tb-assign-profile__header {
    padding: 28px;
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
    position: relative;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}

.tb-assign-profile__header::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.tb-assign-profile__header::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #27CEA7 0%, #487FFF 50%, #6142FF 100%);
}

.tb-assign-profile__info {
    display: flex; align-items: center; gap: 20px;
    position: relative; z-index: 1;
}

.tb-assign-profile__avatar {
    width: 80px; height: 80px; border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover; flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.tb-assign-profile__name {
    font-family: "Nunito", sans-serif;
    font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 4px;
}

.tb-assign-profile__class {
    font-size: 14px; color: rgba(255,255,255,0.75); margin: 0;
    display: flex; align-items: center; gap: 8px;
}

.tb-assign-profile__class i { font-size: 16px; }

.tb-assign-profile__actions {
    position: relative; z-index: 1;
    display: flex; gap: 10px;
}

.tb-assign-profile__print-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px; border-radius: 50px;
    font-size: 13px; font-weight: 700;
    color: #487FFF; background: rgba(255,255,255,0.95);
    border: none; cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tb-assign-profile__print-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    background: #fff;
}

/* ── Stats Row ───────────────────────────── */
.tb-assign-stats {
    display: flex; gap: 16px;
    padding: 20px 28px;
    border-bottom: 1px solid #e2e8f0;
}

.tb-assign-stat {
    flex: 1; display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 14px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.tb-assign-stat:hover {
    border-color: rgba(72, 127, 255, 0.2);
    box-shadow: 0 4px 12px rgba(72, 127, 255, 0.08);
}

.tb-assign-stat__icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.tb-assign-stat__icon i { font-size: 22px; }

.tb-assign-stat__icon--active {
    background: linear-gradient(135deg, rgba(72,127,255,0.12), rgba(97,66,255,0.12));
}
.tb-assign-stat__icon--active i { color: #487FFF; }

.tb-assign-stat__icon--returned {
    background: linear-gradient(135deg, rgba(39,206,167,0.12), rgba(76,175,80,0.12));
}
.tb-assign-stat__icon--returned i { color: #27CEA7; }

.tb-assign-stat__icon--total {
    background: linear-gradient(135deg, rgba(255,159,67,0.12), rgba(255,87,34,0.12));
}
.tb-assign-stat__icon--total i { color: #FF9F43; }

.tb-assign-stat__number {
    font-family: "Nunito", sans-serif;
    font-size: 22px; font-weight: 800; color: #1B2559;
    line-height: 1; margin-bottom: 2px;
}

.tb-assign-stat__label {
    font-size: 12px; font-weight: 600; color: #94a3b8;
}

/* ── Progress Bar ────────────────────────── */
.tb-assign-progress { padding: 16px 28px 20px; }

.tb-assign-progress__label {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}

.tb-assign-progress__text { font-size: 13px; font-weight: 600; color: #64748b; }
.tb-assign-progress__count { font-size: 13px; font-weight: 800; color: #1B2559; }

.tb-assign-progress__bar {
    height: 8px; border-radius: 50px;
    background: #e2e8f0; overflow: hidden; position: relative;
}

.tb-assign-progress__fill {
    height: 100%; border-radius: 50px;
    background: linear-gradient(90deg, #487FFF 0%, #6142FF 50%, #27CEA7 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tb-assign-progress__fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: tbProgressShine 2s infinite;
}

/* ── Loan Card ───────────────────────────── */
.tb-assign-loan {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; border-radius: 16px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    animation: tbAssignFadeIn 0.4s both;
}

.tb-assign-loan:not(:last-child) { margin-bottom: 12px; }

.tb-assign-loan:hover {
    border-color: rgba(72, 127, 255, 0.2);
    box-shadow: 0 8px 24px rgba(72, 127, 255, 0.08);
    transform: translateY(-2px);
}

.tb-assign-loan:nth-child(1) { animation-delay: 0s; }
.tb-assign-loan:nth-child(2) { animation-delay: 0.05s; }
.tb-assign-loan:nth-child(3) { animation-delay: 0.10s; }
.tb-assign-loan:nth-child(4) { animation-delay: 0.15s; }

.tb-assign-loan__cover {
    width: 56px; height: 72px; border-radius: 10px;
    overflow: hidden; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(27, 37, 89, 0.1);
}

.tb-assign-loan__cover img { width: 100%; height: 100%; object-fit: cover; }

.tb-assign-loan__cover-ph {
    width: 100%; height: 100%;
    background: linear-gradient(145deg, #0c1a4a 0%, #1a1545 40%, #0d2e3a 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: rgba(255, 255, 255, 0.3);
    position: relative; overflow: hidden;
}
.tb-assign-loan__cover-ph::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 25% 75%, rgba(72, 127, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(139, 92, 246, 0.12) 0%, transparent 45%);
}
.tb-assign-loan__cover-ph i { position: relative; z-index: 1; }

.tb-assign-loan__info { flex: 1; min-width: 0; }

.tb-assign-loan__title {
    font-size: 14px; font-weight: 700; color: #1B2559;
    margin-bottom: 4px; line-height: 1.3;
}

.tb-assign-loan__author {
    font-size: 12px; color: #A3AED0; margin-bottom: 6px;
}

.tb-assign-loan__badges {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

.tb-assign-loan__badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 6px;
    font-size: 11px; font-weight: 700;
}

.tb-assign-loan__badge--inv {
    background: linear-gradient(135deg, rgba(72,127,255,0.1), rgba(97,66,255,0.1));
    color: #487FFF; border: 1px solid rgba(72, 127, 255, 0.15);
    font-family: monospace;
}

.tb-assign-loan__badge--date {
    background: rgba(148, 163, 184, 0.1);
    color: #64748b; border: 1px solid rgba(148, 163, 184, 0.15);
}

.tb-assign-loan__return-btn { flex-shrink: 0; }

/* ── Available Textbooks Grid ────────────── */
.tb-assign-available-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px; padding: 20px 24px;
}

@media (max-width: 1199px) { .tb-assign-available-grid { grid-template-columns: 1fr; } }

.tb-assign-available {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 16px 12px; border-radius: 14px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tb-assign-available:hover {
    border-color: rgba(72, 127, 255, 0.2);
    box-shadow: 0 8px 24px rgba(72, 127, 255, 0.08);
    transform: translateY(-2px);
}

.tb-assign-available--assigned {
    background: linear-gradient(135deg, rgba(39,206,167,0.06), rgba(76,175,80,0.04));
    border-color: rgba(39, 206, 167, 0.2);
}

.tb-assign-available--no-stock { opacity: 0.5; }

.tb-assign-available__cover {
    width: 48px; height: 62px; border-radius: 8px;
    overflow: hidden; margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(27, 37, 89, 0.08);
}

.tb-assign-available__cover img { width: 100%; height: 100%; object-fit: cover; }

.tb-assign-available__cover-ph {
    width: 100%; height: 100%;
    background: linear-gradient(145deg, #0c1a4a 0%, #1a1545 40%, #0d2e3a 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: rgba(255, 255, 255, 0.3);
    position: relative; overflow: hidden;
}
.tb-assign-available__cover-ph::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 25% 75%, rgba(72, 127, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(139, 92, 246, 0.12) 0%, transparent 45%);
}
.tb-assign-available__cover-ph i { position: relative; z-index: 1; }

.tb-assign-available__title {
    font-size: 13px; font-weight: 700; color: #1B2559;
    margin-bottom: 2px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

.tb-assign-available__author {
    font-size: 11px; color: #A3AED0; margin-bottom: 8px;
}

.tb-assign-available__stock {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 10px; border-radius: 50px;
    font-size: 11px; font-weight: 700; margin-bottom: 10px;
}

.tb-assign-available__stock--ok {
    background: rgba(39, 206, 167, 0.1); color: #1b8a5a;
    border: 1px solid rgba(39, 206, 167, 0.2);
}

.tb-assign-available__stock--empty {
    background: rgba(234, 84, 85, 0.1); color: #EA5455;
    border: 1px solid rgba(234, 84, 85, 0.2);
}

.tb-assign-available__action {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; font-size: 18px;
    transition: all 0.2s ease;
}

.tb-assign-available__action--assign {
    background: linear-gradient(135deg, #487FFF, #6142FF);
    color: #fff; box-shadow: 0 4px 12px rgba(72, 127, 255, 0.3);
}

.tb-assign-available__action--assign:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(72, 127, 255, 0.4);
}

.tb-assign-available__action--done {
    background: linear-gradient(135deg, #27CEA7, #22C55E);
    color: #fff; box-shadow: 0 4px 12px rgba(39, 206, 167, 0.3);
    cursor: default;
}

.tb-assign-available__action--disabled {
    background: #e2e8f0; color: #94a3b8; cursor: not-allowed;
}

/* ── Welcome / Empty / Tip ───────────────── */
.tb-assign-welcome {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 80px 40px; text-align: center;
}

.tb-assign-welcome__icon {
    width: 100px; height: 100px; border-radius: 28px;
    background: linear-gradient(135deg, rgba(72,127,255,0.08), rgba(39,206,167,0.08));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}

.tb-assign-welcome__icon i {
    font-size: 48px; color: #487FFF;
}

.tb-assign-welcome__title {
    font-family: "Nunito", sans-serif;
    font-size: 20px; font-weight: 800; color: #1B2559; margin-bottom: 8px;
}

.tb-assign-welcome__text {
    font-size: 14px; color: #A3AED0; max-width: 320px; line-height: 1.6;
}

.tb-assign-tip {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 24px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(72,127,255,0.06), rgba(39,206,167,0.04));
    border: 1px solid rgba(72, 127, 255, 0.1);
}

.tb-assign-tip__icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, #487FFF, #6142FF);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(72, 127, 255, 0.3);
}

.tb-assign-tip__icon i { font-size: 22px; color: #fff; }

.tb-assign-tip__text h6 {
    font-size: 14px; font-weight: 700; color: #1B2559; margin-bottom: 4px;
}

.tb-assign-tip__text p {
    font-size: 13px; color: #64748b; margin: 0; line-height: 1.5;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 767px) {
    .tb-assign-stats { flex-direction: column; gap: 10px; padding: 16px 20px; }
    .tb-assign-profile__header { padding: 20px; }
    .tb-assign-profile__info { flex-direction: column; text-align: center; }
    .tb-assign-profile__name { font-size: 18px; }
    .tb-assign-profile__class { justify-content: center; }
    .tb-assign-profile__actions { margin-left: 0; justify-content: center; }
    .tb-assign-available-grid { grid-template-columns: 1fr; }
    .tb-assign-loan { flex-wrap: wrap; }
    .tb-assign-welcome { padding: 40px 20px; }
}


/* ==========================================
   Textbook Issue Wizard — Ultra Premium
   ========================================== */

@keyframes tbIssueFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes tbIssuePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(72, 127, 255, 0.4); }
    50%      { box-shadow: 0 0 0 8px rgba(72, 127, 255, 0); }
}

@keyframes tbIssueSuccessPop {
    0%   { transform: scale(0.5); opacity: 0; }
    60%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes tbIssueRing {
    0%   { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ── Hero Header (green variant) ────────── */
.tb-issue-hero {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(27, 37, 89, 0.12), 0 0 0 1px rgba(39, 206, 167, 0.06);
    background: #fff;
    margin-bottom: 24px;
    animation: tbIssueFadeIn 0.5s both;
}

.tb-issue-hero__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #22C55E 0%, #27CEA7 100%);
    position: relative;
}

.tb-issue-hero__header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22C55E 0%, #487FFF 50%, #6142FF 100%);
}

.tb-issue-hero__header-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.tb-issue-hero__header-icon i { font-size: 22px; color: #fff; }

.tb-issue-hero__title {
    font-family: "Nunito", sans-serif;
    font-size: 18px; font-weight: 800; color: #fff; margin: 0;
}

.tb-issue-hero__sub {
    font-size: 13px; color: rgba(255,255,255,0.75); margin: 0;
}

.tb-issue-hero__sub a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tb-issue-hero__sub a:hover { color: #fff; }

.tb-issue-hero__back {
    margin-left: auto;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none;
    transition: all 0.2s ease;
}

.tb-issue-hero__back:hover {
    background: rgba(255,255,255,0.25);
    transform: translateX(-2px);
    color: #fff;
}

/* ── Premium Stepper ────────────────────── */
.tb-issue-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    padding: 24px 32px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(27, 37, 89, 0.06), 0 0 0 1px rgba(72, 127, 255, 0.04);
    animation: tbIssueFadeIn 0.5s 0.1s both;
}

.tb-issue-step {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    position: relative;
}

.tb-issue-step:not(:last-child)::after {
    content: '';
    flex: 1;
    height: 3px;
    border-radius: 50px;
    background: #e2e8f0;
    margin: 0 16px;
    transition: background 0.4s ease;
}

.tb-issue-step--done:not(:last-child)::after {
    background: linear-gradient(90deg, #22C55E, #27CEA7);
}

.tb-issue-step__number {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: "Nunito", sans-serif;
    font-size: 16px; font-weight: 800;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: #f1f5f9;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
}

.tb-issue-step--active .tb-issue-step__number {
    background: linear-gradient(135deg, #487FFF, #6142FF);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(72, 127, 255, 0.35);
    animation: tbIssuePulse 2s infinite;
}

.tb-issue-step--done .tb-issue-step__number {
    background: linear-gradient(135deg, #22C55E, #27CEA7);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(39, 206, 167, 0.3);
}

.tb-issue-step__info { min-width: 0; }

.tb-issue-step__title {
    font-size: 14px; font-weight: 700; color: #94a3b8;
    white-space: nowrap; margin-bottom: 2px;
    transition: color 0.3s ease;
}

.tb-issue-step--active .tb-issue-step__title { color: #1B2559; }
.tb-issue-step--done .tb-issue-step__title { color: #1b8a5a; }

.tb-issue-step__sub {
    font-size: 11px; color: #A3AED0;
    white-space: nowrap;
}

/* ── Step Content Card ──────────────────── */
.tb-issue-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(27, 37, 89, 0.06), 0 0 0 1px rgba(72, 127, 255, 0.04);
    background: #fff;
    animation: tbIssueFadeIn 0.5s 0.2s both;
}

.tb-issue-card__header {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 28px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, rgba(72,127,255,0.03), rgba(39,206,167,0.03));
}

.tb-issue-card__header-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.tb-issue-card__header-icon--step1 {
    background: linear-gradient(135deg, rgba(72,127,255,0.12), rgba(97,66,255,0.12));
}
.tb-issue-card__header-icon--step1 i { color: #487FFF; font-size: 18px; }

.tb-issue-card__header-icon--step2 {
    background: linear-gradient(135deg, rgba(39,206,167,0.12), rgba(34,197,94,0.12));
}
.tb-issue-card__header-icon--step2 i { color: #22C55E; font-size: 18px; }

.tb-issue-card__header-icon--step3 {
    background: linear-gradient(135deg, rgba(255,159,67,0.12), rgba(255,87,34,0.12));
}
.tb-issue-card__header-icon--step3 i { color: #FF9F43; font-size: 18px; }

.tb-issue-card__title {
    font-family: "Nunito", sans-serif;
    font-size: 16px; font-weight: 800; color: #1B2559; margin: 0;
}

.tb-issue-card__body { padding: 32px 28px; }

/* ── Step 1: Class Selection ────────────── */
.tb-issue-step1 {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
}

.tb-issue-step1__icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(72,127,255,0.1), rgba(39,206,167,0.1));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}

.tb-issue-step1__icon i { font-size: 32px; color: #487FFF; }

.tb-issue-step1__title {
    font-family: "Nunito", sans-serif;
    font-size: 18px; font-weight: 800; color: #1B2559; margin-bottom: 8px;
}

.tb-issue-step1__text {
    font-size: 14px; color: #A3AED0; margin-bottom: 28px; line-height: 1.6;
}

.tb-issue-step1 .tb-assign-class-select { text-align: left; }

/* ── Info Pill ──────────────────────────── */
.tb-issue-info {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    animation: tbIssueFadeIn 0.4s both;
}

.tb-issue-info--students {
    background: linear-gradient(135deg, rgba(72,127,255,0.06), rgba(39,206,167,0.06));
    border: 1px solid rgba(72, 127, 255, 0.1);
}

.tb-issue-info__icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #487FFF, #6142FF);
    box-shadow: 0 4px 12px rgba(72, 127, 255, 0.25);
}

.tb-issue-info__icon i { font-size: 18px; color: #fff; }

.tb-issue-info__text {
    font-size: 14px; color: #1B2559; font-weight: 600; line-height: 1.5;
}

.tb-issue-info__text strong { font-weight: 800; color: #487FFF; }

/* ── CTA Button ─────────────────────────── */
.tb-issue-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 32px;
    border-radius: 50px; border: none;
    background: linear-gradient(135deg, #487FFF, #6142FF);
    color: #fff;
    font-family: "Nunito", sans-serif;
    font-size: 15px; font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(72, 127, 255, 0.3);
    text-decoration: none;
}

.tb-issue-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(72, 127, 255, 0.4);
    color: #fff;
}

.tb-issue-cta--success {
    background: linear-gradient(135deg, #22C55E, #27CEA7);
    box-shadow: 0 6px 20px rgba(39, 206, 167, 0.3);
}

.tb-issue-cta--success:hover {
    box-shadow: 0 10px 30px rgba(39, 206, 167, 0.4);
}

.tb-issue-cta--outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
    box-shadow: none;
}

.tb-issue-cta--outline:hover {
    border-color: #487FFF;
    color: #487FFF;
    box-shadow: 0 4px 16px rgba(72, 127, 255, 0.15);
}

/* ── Banners ────────────────────────────── */
.tb-issue-banner {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    animation: tbIssueFadeIn 0.4s both;
}

.tb-issue-banner__icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.tb-issue-banner__icon i { font-size: 20px; }

.tb-issue-banner__text { flex: 1; }
.tb-issue-banner__text strong { display: block; margin-bottom: 4px; font-weight: 700; }
.tb-issue-banner__text p { margin: 0; font-size: 13px; line-height: 1.5; opacity: 0.85; }

.tb-issue-banner--success {
    background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(39,206,167,0.06));
    border: 1px solid rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.tb-issue-banner--success .tb-issue-banner__icon {
    background: linear-gradient(135deg, #22C55E, #27CEA7);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.tb-issue-banner--success .tb-issue-banner__icon i { color: #fff; }

.tb-issue-banner--warning {
    background: linear-gradient(135deg, rgba(255,159,67,0.08), rgba(255,193,7,0.06));
    border: 1px solid rgba(255, 159, 67, 0.15);
    color: #92400e;
}

.tb-issue-banner--warning .tb-issue-banner__icon {
    background: linear-gradient(135deg, #FF9F43, #FFC107);
    box-shadow: 0 4px 12px rgba(255, 159, 67, 0.3);
}

.tb-issue-banner--warning .tb-issue-banner__icon i { color: #fff; }

.tb-issue-banner--info {
    background: linear-gradient(135deg, rgba(72,127,255,0.06), rgba(97,66,255,0.04));
    border: 1px solid rgba(72, 127, 255, 0.1);
    color: #1e40af;
}

.tb-issue-banner--info .tb-issue-banner__icon {
    background: linear-gradient(135deg, #487FFF, #6142FF);
    box-shadow: 0 4px 12px rgba(72, 127, 255, 0.3);
}

.tb-issue-banner--info .tb-issue-banner__icon i { color: #fff; }

/* ── Bulk Assign Card ───────────────────── */
.tb-issue-bulk {
    padding: 24px;
    border-radius: 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    transition: all 0.25s ease;
}

.tb-issue-bulk:hover {
    border-color: rgba(72, 127, 255, 0.2);
    box-shadow: 0 8px 24px rgba(72, 127, 255, 0.08);
}

.tb-issue-bulk__title {
    font-size: 15px; font-weight: 700; color: #1B2559; margin-bottom: 8px;
}

.tb-issue-bulk__text {
    font-size: 13px; color: #64748b; margin-bottom: 20px; line-height: 1.5;
}

/* ── Matrix Table ───────────────────────── */
.tb-issue-matrix {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(27, 37, 89, 0.06), 0 0 0 1px rgba(72, 127, 255, 0.04);
    margin-bottom: 24px;
    max-height: 600px;
    overflow-y: auto;
}

.tb-issue-matrix::-webkit-scrollbar { width: 6px; height: 6px; }
.tb-issue-matrix::-webkit-scrollbar-track { background: #f1f5f9; }
.tb-issue-matrix::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.tb-issue-matrix table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.tb-issue-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 14px 12px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 2px solid #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    color: #1B2559;
    text-align: center;
    vertical-align: middle;
}

.tb-issue-matrix thead th:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 11;
    min-width: 180px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.tb-issue-matrix tbody td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    transition: background 0.15s ease;
}

.tb-issue-matrix tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: #1B2559;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
    border-right: 1px solid #f1f5f9;
}

.tb-issue-matrix tbody tr:hover td { background: rgba(72, 127, 255, 0.03); }
.tb-issue-matrix tbody tr:hover td:first-child { background: rgba(72, 127, 255, 0.05); }

.tb-issue-matrix__book-header {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    min-width: 110px;
}

.tb-issue-matrix__book-title {
    font-size: 12px; font-weight: 700; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

.tb-issue-matrix__book-title--ok { color: #15803d; }
.tb-issue-matrix__book-title--low { color: #dc2626; }

.tb-issue-matrix__stock {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 8px; border-radius: 50px;
    font-size: 10px; font-weight: 700;
}

.tb-issue-matrix__stock--ok {
    background: rgba(34, 197, 94, 0.1); color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.tb-issue-matrix__stock--low {
    background: rgba(234, 84, 85, 0.1); color: #dc2626;
    border: 1px solid rgba(234, 84, 85, 0.2);
}

/* Custom checkbox in matrix */
.tb-issue-matrix .form-check-input {
    width: 24px; height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tb-issue-matrix .form-check-input:checked {
    background: linear-gradient(135deg, #487FFF, #6142FF);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(72, 127, 255, 0.3);
}

.tb-issue-matrix .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(72, 127, 255, 0.1);
}

.tb-issue-matrix__dash {
    color: #d4d4d8; font-size: 16px; font-weight: 300;
}

/* ── Step 3: Success ────────────────────── */
.tb-issue-success {
    text-align: center;
    padding: 40px 20px;
    animation: tbIssueFadeIn 0.5s both;
}

.tb-issue-success__icon-wrap {
    position: relative;
    width: 120px; height: 120px;
    margin: 0 auto 28px;
}

.tb-issue-success__icon {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22C55E, #27CEA7);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    z-index: 1;
    animation: tbIssueSuccessPop 0.6s 0.2s both;
    box-shadow: 0 16px 40px rgba(39, 206, 167, 0.3);
}

.tb-issue-success__icon i { font-size: 52px; color: #fff; }

.tb-issue-success__icon-wrap::before,
.tb-issue-success__icon-wrap::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(39, 206, 167, 0.3);
    animation: tbIssueRing 2s 0.8s infinite;
}

.tb-issue-success__icon-wrap::after {
    inset: -16px;
    animation-delay: 1.3s;
    border-color: rgba(72, 127, 255, 0.2);
}

.tb-issue-success__title {
    font-family: "Nunito", sans-serif;
    font-size: 24px; font-weight: 800; color: #1B2559;
    margin-bottom: 8px;
    animation: tbIssueFadeIn 0.5s 0.4s both;
}

.tb-issue-success__text {
    font-size: 14px; color: #64748b; margin-bottom: 8px;
    line-height: 1.6; max-width: 480px; margin-left: auto; margin-right: auto;
    animation: tbIssueFadeIn 0.5s 0.5s both;
}

.tb-issue-success__count {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 18px; border-radius: 50px;
    background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(39,206,167,0.08));
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #15803d; font-weight: 800; font-size: 14px;
    margin-bottom: 32px;
    animation: tbIssueFadeIn 0.5s 0.6s both;
}

/* ── Print Action Card ──────────────────── */
.tb-issue-print-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 16px;
    padding: 28px 32px;
    border-radius: 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    margin: 0 auto 20px;
    max-width: 520px;
    transition: all 0.25s ease;
    animation: tbIssueFadeIn 0.5s 0.7s both;
}

.tb-issue-print-card:hover {
    border-color: rgba(72, 127, 255, 0.2);
    box-shadow: 0 8px 24px rgba(72, 127, 255, 0.08);
}

.tb-issue-print-card__icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #487FFF, #6142FF);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(72, 127, 255, 0.3);
}

.tb-issue-print-card__icon i { font-size: 24px; color: #fff; }

.tb-issue-print-card__text {
    font-size: 13px; color: #64748b; line-height: 1.5; text-align: center;
}

/* ── Navigation Buttons (Step 3) ────────── */
.tb-issue-nav {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-top: 32px;
    animation: tbIssueFadeIn 0.5s 0.9s both;
}

/* ── Back Button ────────────────────────── */
.tb-issue-back {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px; border-radius: 50px;
    font-size: 13px; font-weight: 600;
    color: #64748b; background: transparent;
    border: 2px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tb-issue-back:hover {
    border-color: #487FFF;
    color: #487FFF;
    transform: translateX(-2px);
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 767px) {
    .tb-issue-stepper {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .tb-issue-step {
        flex-direction: row;
        width: 100%;
    }

    .tb-issue-step:not(:last-child)::after {
        display: none;
    }

    .tb-issue-step__number { width: 36px; height: 36px; font-size: 14px; }

    .tb-issue-card__body { padding: 24px 20px; }

    .tb-issue-success__title { font-size: 20px; }

    .tb-issue-success__icon-wrap { width: 96px; height: 96px; }
    .tb-issue-success__icon { width: 96px; height: 96px; }
    .tb-issue-success__icon i { font-size: 40px; }

    .tb-issue-nav { flex-direction: column; }

    .tb-issue-matrix thead th:first-child { min-width: 140px; }

    .tb-issue-print-card { padding: 20px; }
}


/* ==========================================
   Textbook Return Wizard — Ultra Premium
   ========================================== */

/* ── Hero Header (orange/red variant) ───── */
.tb-return-hero {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(27, 37, 89, 0.12), 0 0 0 1px rgba(255, 159, 67, 0.06);
    background: #fff;
    margin-bottom: 24px;
    animation: tbIssueFadeIn 0.5s both;
}

.tb-return-hero__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #FF9F43 0%, #EA5455 100%);
    position: relative;
}

.tb-return-hero__header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF9F43 0%, #EA5455 50%, #6142FF 100%);
}

.tb-return-hero__header-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.tb-return-hero__header-icon i { font-size: 22px; color: #fff; }

.tb-return-hero__title {
    font-family: "Nunito", sans-serif;
    font-size: 18px; font-weight: 800; color: #fff; margin: 0;
}

.tb-return-hero__sub {
    font-size: 13px; color: rgba(255,255,255,0.75); margin: 0;
}

.tb-return-hero__sub a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tb-return-hero__sub a:hover { color: #fff; }

.tb-return-hero__back {
    margin-left: auto;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none;
    transition: all 0.2s ease;
}

.tb-return-hero__back:hover {
    background: rgba(255,255,255,0.25);
    transform: translateX(-2px);
    color: #fff;
}

/* ── Quick Actions Bar ──────────────────── */
.tb-return-quick-actions {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 14px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34,197,94,0.06), rgba(39,206,167,0.04));
    border: 1px solid rgba(34, 197, 94, 0.12);
}

.tb-return-quick-actions__label {
    font-size: 13px; font-weight: 600; color: #64748b;
    display: flex; align-items: center; gap: 6px;
}

.tb-return-quick-actions__label i { color: #27CEA7; }

/* ── Return Matrix (card-based) ─────────── */
.tb-return-matrix {
    display: flex; flex-direction: column;
    gap: 16px;
}

/* ── Student Card ───────────────────────── */
.tb-return-student {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: all 0.25s ease;
    animation: tbIssueFadeIn 0.4s both;
}

.tb-return-student:hover {
    border-color: rgba(72, 127, 255, 0.15);
    box-shadow: 0 4px 16px rgba(27, 37, 89, 0.06);
}

.tb-return-student__header {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.tb-return-student__avatar {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #487FFF, #6142FF);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-family: "Nunito", sans-serif;
    font-size: 14px; font-weight: 800; color: #fff;
    box-shadow: 0 4px 12px rgba(72, 127, 255, 0.25);
}

.tb-return-student__name {
    font-size: 15px; font-weight: 700; color: #1B2559;
    flex: 1;
}

.tb-return-student__count {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 50px;
    font-size: 12px; font-weight: 700;
    background: rgba(72, 127, 255, 0.08);
    color: #487FFF;
    border: 1px solid rgba(72, 127, 255, 0.12);
}

.tb-return-student__books { padding: 0; }

/* ── Book Row ───────────────────────────── */
.tb-return-book {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.tb-return-book:last-child { border-bottom: none; }

.tb-return-book:hover { background: rgba(72, 127, 255, 0.02); }

.tb-return-book__info {
    display: flex; flex-direction: column; gap: 4px;
    flex: 1; min-width: 200px;
}

.tb-return-book__title {
    font-size: 14px; font-weight: 600; color: #1B2559; line-height: 1.3;
}

.tb-return-book__badges {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

.tb-return-book__badge {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 8px; border-radius: 6px;
    font-size: 11px; font-weight: 600;
    background: rgba(148, 163, 184, 0.1);
    color: #64748b;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.tb-return-book__badge--inv {
    background: linear-gradient(135deg, rgba(72,127,255,0.08), rgba(97,66,255,0.08));
    color: #487FFF;
    border-color: rgba(72, 127, 255, 0.12);
    font-family: monospace;
}

/* ── Condition Radio Pills ──────────────── */
.tb-return-book__conditions {
    display: flex; align-items: center; gap: 8px;
    flex-shrink: 0;
}

.tb-return-condition__radio { display: none; }

.tb-return-condition {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px; font-weight: 700;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    background: #fff;
    opacity: 0.45;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.tb-return-condition:hover {
    opacity: 0.75;
    transform: translateY(-1px);
}

.tb-return-condition__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* Good */
.tb-return-condition--good { color: #15803d; }
.tb-return-condition--good .tb-return-condition__dot { background: #94a3b8; }

.tb-return-condition__radio:checked + .tb-return-condition--good {
    opacity: 1;
    border-color: #22C55E;
    background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(39,206,167,0.05));
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.tb-return-condition__radio:checked + .tb-return-condition--good .tb-return-condition__dot {
    background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Damaged */
.tb-return-condition--damaged { color: #92400e; }
.tb-return-condition--damaged .tb-return-condition__dot { background: #94a3b8; }

.tb-return-condition__radio:checked + .tb-return-condition--damaged {
    opacity: 1;
    border-color: #FF9F43;
    background: linear-gradient(135deg, rgba(255,159,67,0.08), rgba(255,193,7,0.05));
    box-shadow: 0 2px 8px rgba(255, 159, 67, 0.2);
}

.tb-return-condition__radio:checked + .tb-return-condition--damaged .tb-return-condition__dot {
    background: #FF9F43;
    box-shadow: 0 0 0 3px rgba(255, 159, 67, 0.2);
}

/* Lost */
.tb-return-condition--lost { color: #991b1b; }
.tb-return-condition--lost .tb-return-condition__dot { background: #94a3b8; }

.tb-return-condition__radio:checked + .tb-return-condition--lost {
    opacity: 1;
    border-color: #EA5455;
    background: linear-gradient(135deg, rgba(234,84,85,0.08), rgba(239,68,68,0.05));
    box-shadow: 0 2px 8px rgba(234, 84, 85, 0.2);
}

.tb-return-condition__radio:checked + .tb-return-condition--lost .tb-return-condition__dot {
    background: #EA5455;
    box-shadow: 0 0 0 3px rgba(234, 84, 85, 0.2);
}

/* ── Staggered entrance ─────────────────── */
.tb-return-student:nth-child(1)  { animation-delay: 0s; }
.tb-return-student:nth-child(2)  { animation-delay: 0.05s; }
.tb-return-student:nth-child(3)  { animation-delay: 0.10s; }
.tb-return-student:nth-child(4)  { animation-delay: 0.15s; }
.tb-return-student:nth-child(5)  { animation-delay: 0.20s; }
.tb-return-student:nth-child(6)  { animation-delay: 0.25s; }
.tb-return-student:nth-child(7)  { animation-delay: 0.30s; }
.tb-return-student:nth-child(8)  { animation-delay: 0.35s; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 767px) {
    .tb-return-book { flex-direction: column; align-items: flex-start; gap: 10px; }
    .tb-return-book__conditions { width: 100%; }
    .tb-return-quick-actions { flex-direction: column; text-align: center; }
    .tb-return-student__header { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════
   CLASS TEXTBOOKS — Teacher Accordion View
   /class-textbooks/
   ═══════════════════════════════════════════ */

/* ── Hero ──────────────────────────────── */
.tb-class-hero {
    border-radius: 20px; overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(21, 128, 61, 0.12);
}
.tb-class-hero__header {
    background: linear-gradient(135deg, #27CEA7 0%, #15803d 100%);
    padding: 32px 36px; position: relative; overflow: hidden;
}
.tb-class-hero__header::after {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.tb-class-hero__top {
    display: flex; align-items: center; gap: 16px;
    position: relative; z-index: 1;
}
.tb-class-hero__icon {
    width: 52px; height: 52px; border-radius: 16px;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.tb-class-hero__icon i { font-size: 24px; color: #fff; }
.tb-class-hero__title {
    font-family: "Nunito", sans-serif;
    font-size: 22px; font-weight: 800; color: #fff;
    margin: 0; text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.tb-class-hero__sub {
    font-size: 13px; color: rgba(255,255,255,0.75);
    margin-top: 4px;
}

/* ── Stats Bar ─────────────────────────── */
.tb-class-stats {
    display: flex; gap: 16px; padding: 20px 36px;
    background: #fff; border-top: 1px solid rgba(39, 206, 167, 0.1);
}
.tb-class-stat {
    display: flex; align-items: center; gap: 12px;
    flex: 1; padding: 14px 16px; border-radius: 14px;
    background: #f8fafc; border: 1px solid #e2e8f0;
}
.tb-class-stat__icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff; flex-shrink: 0;
}
.tb-class-stat__icon--students { background: linear-gradient(135deg, #487FFF, #6142FF); }
.tb-class-stat__icon--active { background: linear-gradient(135deg, #FF9F43, #ea580c); }
.tb-class-stat__icon--returned { background: linear-gradient(135deg, #27CEA7, #22C55E); }
.tb-class-stat__number { font-size: 20px; font-weight: 800; color: #1B2559; line-height: 1; }
.tb-class-stat__label { font-size: 12px; color: #A3AED0; font-weight: 600; }

/* ── Accordion ─────────────────────────── */
.tb-class-accordion-list {
    display: flex; flex-direction: column; gap: 12px;
    padding: 24px;
}

.tb-class-accordion {
    border-radius: 16px; overflow: hidden;
    background: #fff; border: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: tbAssignFadeIn 0.4s both;
}
.tb-class-accordion:hover {
    border-color: rgba(72, 127, 255, 0.15);
    box-shadow: 0 4px 16px rgba(72, 127, 255, 0.06);
}
.tb-class-accordion--open {
    border-color: rgba(72, 127, 255, 0.25);
    box-shadow: 0 8px 32px rgba(72, 127, 255, 0.1);
}

.tb-class-accordion__header {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px; cursor: pointer;
    user-select: none; transition: background 0.2s ease;
}
.tb-class-accordion__header:hover { background: rgba(72, 127, 255, 0.02); }
.tb-class-accordion--open .tb-class-accordion__header {
    background: linear-gradient(135deg, rgba(72,127,255,0.04), rgba(39,206,167,0.03));
    border-bottom: 1px solid #e2e8f0;
}

.tb-class-accordion__avatar {
    width: 44px; height: 44px; border-radius: 12px;
    overflow: hidden; flex-shrink: 0;
}
.tb-class-accordion__avatar img {
    width: 100%; height: 100%; object-fit: cover;
}

.tb-class-accordion__name {
    font-size: 15px; font-weight: 700; color: #1B2559;
    flex: 1; min-width: 0;
}
.tb-class-accordion__badges {
    display: flex; gap: 8px; align-items: center; flex-shrink: 0;
}
.tb-class-accordion__badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 8px;
    font-size: 12px; font-weight: 700; white-space: nowrap;
}
.tb-class-accordion__badge--active {
    background: rgba(255, 159, 67, 0.1); color: #ea580c;
    border: 1px solid rgba(255, 159, 67, 0.2);
}
.tb-class-accordion__badge--returned {
    background: rgba(39, 206, 167, 0.1); color: #15803d;
    border: 1px solid rgba(39, 206, 167, 0.2);
}

.tb-class-accordion__chevron {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9; color: #94a3b8; flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tb-class-accordion--open .tb-class-accordion__chevron {
    background: linear-gradient(135deg, #487FFF, #6142FF);
    color: #fff; transform: rotate(180deg);
    box-shadow: 0 2px 8px rgba(72, 127, 255, 0.3);
}

/* ── Accordion Body (collapsible) ──────── */
.tb-class-accordion__body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.tb-class-accordion--open .tb-class-accordion__body {
    max-height: 2000px;
}
.tb-class-accordion__body-inner {
    padding: 16px 20px; display: flex; flex-direction: column; gap: 10px;
}

/* ── Book Row ──────────────────────────── */
.tb-class-book {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; border-radius: 12px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}
.tb-class-book:hover {
    border-color: rgba(72, 127, 255, 0.15);
    box-shadow: 0 4px 12px rgba(72, 127, 255, 0.05);
}

.tb-class-book__cover {
    width: 44px; height: 58px; border-radius: 8px;
    overflow: hidden; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(27, 37, 89, 0.08);
}
.tb-class-book__cover img { width: 100%; height: 100%; object-fit: cover; }

.tb-class-book__info { flex: 1; min-width: 0; }
.tb-class-book__title {
    font-size: 13px; font-weight: 700; color: #1B2559;
    margin-bottom: 3px; line-height: 1.3;
}
.tb-class-book__author { font-size: 11px; color: #A3AED0; margin-bottom: 5px; }
.tb-class-book__meta {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

.tb-class-book__status { flex-shrink: 0; }

/* ── Staggered Entrance ────────────────── */
.tb-class-accordion:nth-child(1) { animation-delay: 0s; }
.tb-class-accordion:nth-child(2) { animation-delay: 0.04s; }
.tb-class-accordion:nth-child(3) { animation-delay: 0.08s; }
.tb-class-accordion:nth-child(4) { animation-delay: 0.12s; }
.tb-class-accordion:nth-child(5) { animation-delay: 0.16s; }
.tb-class-accordion:nth-child(6) { animation-delay: 0.20s; }
.tb-class-accordion:nth-child(7) { animation-delay: 0.24s; }
.tb-class-accordion:nth-child(8) { animation-delay: 0.28s; }
.tb-class-accordion:nth-child(9) { animation-delay: 0.32s; }
.tb-class-accordion:nth-child(10) { animation-delay: 0.36s; }

/* ── Responsive ────────────────────────── */
@media (max-width: 991px) {
    .tb-class-stats { flex-direction: column; gap: 10px; }
    .tb-class-hero__header { padding: 24px 20px; }
    .tb-class-stats { padding: 16px 20px; }
}
@media (max-width: 767px) {
    .tb-class-accordion__badges { flex-wrap: wrap; }
    .tb-class-book { flex-wrap: wrap; gap: 10px; }
    .tb-class-accordion-list { padding: 16px; }
}

/* ═══════════════════════════════════════════
   CLASS LOANS — Teacher Accordion View
   /class-loans/  (reuses tb-class-* base)
   ═══════════════════════════════════════════ */

/* ── Hero Variant (blue/indigo) ──────────── */
.tb-class-hero--loans {
    box-shadow: 0 8px 32px rgba(72, 127, 255, 0.12);
}
.tb-class-hero--loans .tb-class-hero__header {
    background: linear-gradient(135deg, #487FFF 0%, #6142FF 100%);
}
.tb-class-hero--loans .tb-class-stats {
    border-top-color: rgba(72, 127, 255, 0.1);
}

/* ── Extra stat icon variants ────────────── */
.tb-class-stat__icon--loans { background: linear-gradient(135deg, #487FFF, #6142FF); }
.tb-class-stat__icon--overdue { background: linear-gradient(135deg, #EF4444, #DC2626); }

/* ── Overdue badge variant ───────────────── */
.tb-class-accordion__badge--overdue {
    background: rgba(239, 68, 68, 0.1); color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ── Due date in book row ────────────────── */
.tb-class-book__due {
    display: flex; align-items: center; gap: 4px;
    font-size: 11px; color: #A3AED0; white-space: nowrap;
}
.tb-class-book__due--overdue { color: #DC2626; font-weight: 700; }
.tb-class-book__due i { font-size: 13px; }

/* ═══════════════════════════════════════════
   MY LOANS — Student/Teacher View
   /loans/  (premium card list)
   ═══════════════════════════════════════════ */

/* ── Hero Variant (violet/purple) ────────── */
.tb-class-hero--myloans {
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.12);
}
.tb-class-hero--myloans .tb-class-hero__header {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
}
.tb-class-hero--myloans .tb-class-stats {
    border-top-color: rgba(139, 92, 246, 0.1);
}

/* ── Filter Bar ──────────────────────────── */
.tb-myloans-filters {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 20px 28px;
    background: #fff; border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(27, 37, 89, 0.04);
    margin-bottom: 24px;
}
.tb-myloans-filters__group {
    display: flex; align-items: center; gap: 8px;
}
.tb-myloans-filters__label {
    font-size: 13px; font-weight: 700; color: #1B2559;
    white-space: nowrap;
}
.tb-myloans-filters__pills {
    display: flex; gap: 6px;
}
.tb-myloans-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 10px;
    font-size: 13px; font-weight: 600;
    border: 1.5px solid #e2e8f0; background: #f8fafc; color: #64748b;
    text-decoration: none; cursor: pointer;
    transition: all 0.2s ease;
}
.tb-myloans-pill:hover {
    border-color: rgba(139, 92, 246, 0.3); color: #6D28D9;
    background: rgba(139, 92, 246, 0.04);
}
.tb-myloans-pill--active {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: #fff; border-color: transparent;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}
.tb-myloans-pill--active:hover {
    color: #fff; background: linear-gradient(135deg, #7C3AED, #5B21B6);
}
.tb-myloans-pill i { font-size: 14px; }

.tb-myloans-filters__search {
    position: relative; flex: 1; min-width: 180px;
}
.tb-myloans-filters__search input {
    width: 100%; padding: 8px 14px 8px 36px;
    border-radius: 10px; border: 1.5px solid #e2e8f0;
    font-size: 13px; color: #1B2559; background: #f8fafc;
    transition: all 0.2s ease;
}
.tb-myloans-filters__search input:focus {
    outline: none; border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
    background: #fff;
}
.tb-myloans-filters__search i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    font-size: 16px; color: #A3AED0; pointer-events: none;
}

.tb-myloans-filters__perpage select {
    padding: 8px 30px 8px 12px; border-radius: 10px;
    border: 1.5px solid #e2e8f0; font-size: 13px; font-weight: 600;
    color: #1B2559; background: #f8fafc; cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.tb-myloans-filters__perpage select:focus {
    outline: none; border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
}

/* ── Loan Card ───────────────────────────── */
.tb-myloans-list {
    display: flex; flex-direction: column; gap: 12px;
}

.tb-myloans-card {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; border-radius: 16px;
    background: #fff; border: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: tbAssignFadeIn 0.4s both;
}
.tb-myloans-card:hover {
    border-color: rgba(139, 92, 246, 0.15);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.08);
    transform: translateY(-1px);
}
.tb-myloans-card--overdue {
    border-color: rgba(239, 68, 68, 0.2);
    background: linear-gradient(135deg, #fff 90%, rgba(239,68,68,0.03));
}
.tb-myloans-card--overdue:hover {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.08);
}

/* ── Cover ────────────────────────────────── */
.tb-myloans-card__cover {
    width: 52px; height: 70px; border-radius: 10px;
    overflow: hidden; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(27, 37, 89, 0.1);
}
.tb-myloans-card__cover img { width: 100%; height: 100%; object-fit: cover; }

/* ── Info ─────────────────────────────────── */
.tb-myloans-card__info { flex: 1; min-width: 0; }
.tb-myloans-card__title {
    font-size: 14px; font-weight: 700; color: #1B2559;
    margin-bottom: 3px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 1;
    -webkit-box-orient: vertical; overflow: hidden;
}
.tb-myloans-card__title a {
    color: inherit; text-decoration: none;
    transition: color 0.2s ease;
}
.tb-myloans-card__title a:hover { color: #8B5CF6; }
.tb-myloans-card__author {
    font-size: 12px; color: #A3AED0; margin-bottom: 6px;
}

/* ── Meta Dates ──────────────────────────── */
.tb-myloans-card__meta {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.tb-myloans-card__date {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; color: #94a3b8; white-space: nowrap;
}
.tb-myloans-card__date i { font-size: 13px; }
.tb-myloans-card__date--overdue { color: #DC2626; font-weight: 700; }
.tb-myloans-card__date--returned { color: #15803d; }

/* ── Right Section ───────────────────────── */
.tb-myloans-card__right {
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
    flex-shrink: 0;
}
.tb-myloans-card__loanedby {
    font-size: 11px; color: #A3AED0; text-align: right;
}
.tb-myloans-card__loanedby strong { color: #64748b; font-weight: 600; }

/* ── Staggered Entrance ──────────────────── */
.tb-myloans-card:nth-child(1) { animation-delay: 0s; }
.tb-myloans-card:nth-child(2) { animation-delay: 0.03s; }
.tb-myloans-card:nth-child(3) { animation-delay: 0.06s; }
.tb-myloans-card:nth-child(4) { animation-delay: 0.09s; }
.tb-myloans-card:nth-child(5) { animation-delay: 0.12s; }
.tb-myloans-card:nth-child(6) { animation-delay: 0.15s; }
.tb-myloans-card:nth-child(7) { animation-delay: 0.18s; }
.tb-myloans-card:nth-child(8) { animation-delay: 0.21s; }
.tb-myloans-card:nth-child(9) { animation-delay: 0.24s; }
.tb-myloans-card:nth-child(10) { animation-delay: 0.27s; }

/* ── Pagination Wrapper ──────────────────── */
.tb-myloans-pagination {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    padding: 20px 28px; margin-top: 20px;
    background: #fff; border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(27, 37, 89, 0.04);
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 991px) {
    .tb-myloans-filters { gap: 12px; padding: 16px 20px; }
    .tb-myloans-card { padding: 14px 16px; gap: 12px; }
}
@media (max-width: 767px) {
    .tb-myloans-filters { flex-direction: column; align-items: stretch; }
    .tb-myloans-filters__group { flex-wrap: wrap; }
    .tb-myloans-card { flex-wrap: wrap; }
    .tb-myloans-card__right { align-items: flex-start; flex-direction: row; gap: 10px; }
    .tb-myloans-pill { padding: 5px 10px; font-size: 12px; }
}

/* ═══════════════════════════════════════════
   MY TEXTBOOKS — Student View
   /my-textbooks/  (premium card grid)
   ═══════════════════════════════════════════ */

/* ── Hero Variant (emerald/teal) ───────── */
.tb-class-hero--mytb {
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.14);
}
.tb-class-hero--mytb .tb-class-hero__header {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}
.tb-class-hero--mytb .tb-class-stats {
    border-top-color: rgba(16, 185, 129, 0.12);
}

/* ── Filter Pills ──────────────────────── */
.tb-mytb-filters {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 20px 28px;
    background: #fff; border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(27, 37, 89, 0.04);
    margin-bottom: 24px;
}
.tb-mytb-filters__group {
    display: flex; align-items: center; gap: 8px;
}
.tb-mytb-filters__label {
    font-size: 13px; font-weight: 700; color: #1B2559;
    white-space: nowrap;
}
.tb-mytb-filters__pills {
    display: flex; gap: 6px;
}
.tb-mytb-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 10px;
    font-size: 13px; font-weight: 600;
    border: 1.5px solid #e2e8f0; background: #f8fafc; color: #64748b;
    text-decoration: none; cursor: pointer;
    transition: all 0.2s ease;
}
.tb-mytb-pill:hover {
    border-color: rgba(16, 185, 129, 0.3); color: #059669;
    background: rgba(16, 185, 129, 0.04);
}
.tb-mytb-pill--active {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff; border-color: transparent;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.tb-mytb-pill--active:hover {
    color: #fff; background: linear-gradient(135deg, #059669, #047857);
}
.tb-mytb-pill i { font-size: 14px; }

/* ── Textbook Card ─────────────────────── */
.tb-mytb-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.tb-mytb-card {
    display: flex; gap: 16px;
    padding: 18px 20px; border-radius: 16px;
    background: #fff; border: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: tbAssignFadeIn 0.4s both;
    position: relative; overflow: hidden;
}
.tb-mytb-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 4px; height: 100%; border-radius: 4px 0 0 4px;
    background: linear-gradient(180deg, #10B981, #059669);
    opacity: 0; transition: opacity 0.3s ease;
}
.tb-mytb-card:hover::before { opacity: 1; }
.tb-mytb-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}
.tb-mytb-card--returned {
    opacity: 0.7;
}
.tb-mytb-card--returned:hover { opacity: 1; }

/* ── Cover ────────────────────────────── */
.tb-mytb-card__cover {
    width: 64px; height: 88px; border-radius: 12px;
    overflow: hidden; flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(27, 37, 89, 0.1);
}
.tb-mytb-card__cover img { width: 100%; height: 100%; object-fit: cover; }

/* ── Info ──────────────────────────────── */
.tb-mytb-card__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tb-mytb-card__title {
    font-size: 15px; font-weight: 700; color: #1B2559;
    margin-bottom: 2px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.tb-mytb-card__author {
    font-size: 12px; color: #A3AED0; margin-bottom: 4px;
}
.tb-mytb-card__subject {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600; color: #059669;
    background: rgba(16, 185, 129, 0.08);
    padding: 2px 8px; border-radius: 6px;
    margin-bottom: 8px; width: fit-content;
}
.tb-mytb-card__subject i { font-size: 12px; }

/* ── Meta Row ─────────────────────────── */
.tb-mytb-card__meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-top: auto;
}
.tb-mytb-card__inv {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600; color: #64748b;
    background: #f1f5f9; padding: 3px 8px; border-radius: 6px;
}
.tb-mytb-card__inv i { font-size: 12px; color: #94a3b8; }
.tb-mytb-card__date {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; color: #94a3b8; white-space: nowrap;
}
.tb-mytb-card__date i { font-size: 13px; }
.tb-mytb-card__date--returned { color: #15803d; }

/* ── Status Badge ─────────────────────── */
.tb-mytb-card__status {
    position: absolute; top: 14px; right: 14px;
}

/* ── Stat icon variants ───────────────── */
.tb-class-stat__icon--textbooks { background: linear-gradient(135deg, #10B981, #059669); }

/* ── Info Card (Важно) ────────────────── */
.tb-mytb-info {
    display: flex; gap: 14px;
    padding: 20px 24px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.04), rgba(234, 88, 12, 0.02));
    border: 1.5px solid rgba(245, 158, 11, 0.15);
    margin-top: 24px;
}
.tb-mytb-info__icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, #F59E0B, #ea580c);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #fff; font-size: 18px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}
.tb-mytb-info__content { flex: 1; }
.tb-mytb-info__title {
    font-size: 14px; font-weight: 700; color: #92400e;
    margin-bottom: 6px;
}
.tb-mytb-info__list {
    list-style: none; padding: 0; margin: 0;
}
.tb-mytb-info__list li {
    font-size: 13px; color: #78716c;
    padding: 3px 0; padding-left: 16px;
    position: relative;
}
.tb-mytb-info__list li::before {
    content: ''; position: absolute; left: 0; top: 11px;
    width: 6px; height: 6px; border-radius: 50%;
    background: #F59E0B;
}

/* ── Staggered Entrance ──────────────── */
.tb-mytb-card:nth-child(1) { animation-delay: 0s; }
.tb-mytb-card:nth-child(2) { animation-delay: 0.04s; }
.tb-mytb-card:nth-child(3) { animation-delay: 0.06s; }
.tb-mytb-card:nth-child(4) { animation-delay: 0.08s; }
.tb-mytb-card:nth-child(5) { animation-delay: 0.10s; }
.tb-mytb-card:nth-child(6) { animation-delay: 0.12s; }
.tb-mytb-card:nth-child(7) { animation-delay: 0.14s; }
.tb-mytb-card:nth-child(8) { animation-delay: 0.16s; }
.tb-mytb-card:nth-child(9) { animation-delay: 0.18s; }
.tb-mytb-card:nth-child(10) { animation-delay: 0.20s; }
.tb-mytb-card:nth-child(11) { animation-delay: 0.22s; }
.tb-mytb-card:nth-child(12) { animation-delay: 0.24s; }

/* ── Responsive ──────────────────────── */
@media (max-width: 991px) {
    .tb-mytb-filters { gap: 12px; padding: 16px 20px; }
    .tb-mytb-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 575px) {
    .tb-mytb-filters { flex-direction: column; align-items: stretch; }
    .tb-mytb-filters__group { flex-wrap: wrap; }
    .tb-mytb-list { grid-template-columns: 1fr; }
    .tb-mytb-card { padding: 14px 16px; }
    .tb-mytb-pill { padding: 5px 10px; font-size: 12px; }
}