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

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

body {
    background: linear-gradient(135deg, #f4e4c1, #e8d5b7);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background pattern */
body::before {
    content: "";
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(
            circle at 25% 25%,
            rgba(139, 69, 19, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 75% 75%,
            rgba(139, 69, 19, 0.1) 0%,
            transparent 50%
        );
    background-image: radial-gradient(
            circle at 25% 25%,
            rgba(139, 69, 19, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 75% 75%,
            rgba(139, 69, 19, 0.1) 0%,
            transparent 50%
        );
    background-size: 200px 200px;
    z-index: -1;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.container-fluid {
    max-width: 95%;
    width: 100%;
}

main {
    margin: 50px 0;
}

/* Header */
.navbar-custom {
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 16px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
    transform: translateY(-1px);
}
.btn-logout {
    background: rgba(220, 53, 69, 0.9);
    border: 1px solid rgba(220, 53, 69, 0.7);
    color: white !important;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-logout:hover {
    background: rgba(220, 53, 69, 1);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}
.btn-login {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white !important;
    border-radius: 25px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}
.btn-login:hover {
    background: linear-gradient(45deg, #218838, #1ea97c);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}
.welcome-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-right: 20px;
}
/*  */
.form-lasotutru {
    margin-top: 24px;
}

.form-lasotutru .form-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-lasotutru .form-header .title {
    font-size: 28px;
    font-weight: bold;
    color: #8b4513;
    color: #8b4513;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    text-align: center;
}

.form-lasotutru .form-header .subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.form-lasotutru form .note {
    text-align: center;
    width: 100%;
    color: #fb0000;
    margin: 20px 0;
    font-size: 15px;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.checkbox-container label {
    font-size: 16px;
    color: #555;
}

.main-content {
    position: relative;
    background: linear-gradient(145deg, #f9f1e6, #f0e6d2);
    border: 3px solid #8b4513;
    border: 3px solid #8b4513;
    border-radius: 15px;
    padding: 40px;
    margin-top: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Decorative scrolls */
.scroll-left,
.scroll-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 400px;
    background: linear-gradient(45deg, #dc143c, #b22222);
    background: linear-gradient(45deg, #dc143c, #b22222);
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.scroll-left {
    left: -30px;
}

.scroll-right {
    right: -30px;
}

.scroll-left::before,
.scroll-right::before {
    content: "";
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 30px;
    background: linear-gradient(45deg, #daa520, #b8860b);
    background: linear-gradient(45deg, #daa520, #b8860b);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-left::after,
.scroll-right::after {
    content: "";
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 30px;
    background: linear-gradient(45deg, #daa520, #b8860b);
    background: linear-gradient(45deg, #daa520, #b8860b);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Scroll patterns */
.scroll-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 300px;
    background: repeating-linear-gradient(
        0deg,
        rgba(139, 69, 19, 0.3) 0px,
        rgba(139, 69, 19, 0.3) 10px,
        transparent 10px,
        transparent 20px
    );
    background: repeating-linear-gradient(
        0deg,
        rgba(139, 69, 19, 0.3) 0px,
        rgba(139, 69, 19, 0.3) 10px,
        transparent 10px,
        transparent 20px
    );
    border-radius: 20px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.form-label {
    width: 120px;
    font-size: 16px;
    font-weight: bold;
    color: #8b4513;
    color: #8b4513;
    text-align: right;
}

.form-label-spacing {
    width: 30px;
}

.form-input,
.form-select {
    padding: 10px 15px;
    border: 2px solid #d2b48c;
    border: 2px solid #d2b48c;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    width: auto;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #8b4513;
    border-color: #8b4513;
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.2);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%238B4513' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.form-select.is-invalid {
    border-color: red;
}

.name-inputs {
    display: flex;
    gap: 15px;
    flex: 1;
}

.name-inputs .form-input {
    flex: 1;
}

.date-inputs,
.time-inputs {
    display: flex;
    gap: 15px;
    flex: 1;
}

.gender-options {
    display: flex;
    gap: 20px;
    align-items: center;
}

.gender-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gender-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #8b4513;
    accent-color: #8b4513;
}

.gender-option label {
    font-size: 16px;
    color: #8b4513;
    color: #8b4513;
    cursor: pointer;
}

.tutru-options {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.tutru-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tutru-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #8b4513;
    accent-color: #8b4513;
}

.tutru-option label {
    font-size: 16px;
    color: #8b4513;
    color: #8b4513;
    cursor: pointer;
}

.tutru-results-text {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #8b4513;
    margin-bottom: 6px;
    margin-top: 10px;
}

.submit-container {
    text-align: center;
    margin-top: 20px;
    position: relative;
}

.submit-btn {
    background: linear-gradient(45deg, #8b0000, #dc143c);
    color: #ffd700;
    background: linear-gradient(45deg, #8b0000, #dc143c);
    color: #ffd700;
    border: none;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

/* CSS cho 2 thẻ p xem tứ trụ */
.view-tu-tru-btn {
    background: linear-gradient(45deg, #8b0000, #dc143c);
    color: #ffd700;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px;
}

.view-tu-tru-btn:hover {
    background: linear-gradient(45deg, #6b0000, #b22222);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
    color: #ffd700;
    text-decoration: none;
}

.view-tu-tru-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-save-laso-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
}

/* Decorative swirls around button */
.swirl-left,
.swirl-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3e%3cpath d='M10,20 Q20,5 30,20 Q40,35 50,20' stroke='%23DAA520' stroke-width='3' fill='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
}

.swirl-left {
    left: -80px;
}

.swirl-right {
    right: -80px;
    transform: translateY(-50%) scaleX(-1);
}

.laso-wrapper {
    background: #fef6e8;
    border: 3px solid #2c5aa0;
    border-radius: 8px;
    overflow: hidden;
    margin: 30px auto;
    max-width: 1000px;
}

.laso-header {
    background: #fef6e8;
    padding: 15px;
    border-bottom: 2px solid #2c5aa0;
}

.result-lasotutru {
    margin-top: 24px;
}

.result-lasotutru .result-header {
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.result-lasotutru .result-header .result-header-left {
    display: flex;
    gap: 16px;
    width: 20%;
}

.result-lasotutru .result-content {
    background-color: white;
    border: 3px solid #2c5aa0;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.result-lasotutru .lasotutru {
    width: 900px;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.result-lasotutru .lasotutru.show {
    width: 100%;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 80px;
    height: 80px;
    background: #2c5aa0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.website {
    color: #2c5aa0;
    font-weight: bold;
}

.title-section {
    text-align: center;
    flex: 1;
}

.main-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 20px;
    font-weight: bold;
    color: #2c5aa0;
}

.info-section {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-section .info-row {
    display: flex;
    align-items: center;
}

.info-label {
    font-weight: bold;
    color: #333;
    width: 80px;
    display: flex;
}

.red-text {
    color: red;
    font-weight: bold;
}

.green-text {
    color: #28a745;
    font-weight: bold;
}

.main-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.main-table th,
.main-table td {
    border: 1px solid #2c5aa0;
    padding: 8px;
    text-align: center;
    font-weight: bold;
}

.main-table th {
    font-size: 14px;
    width: 80px;
    border-left: 0;
    line-height: 20px;
}

.main-table td:last-child {
    border-right: 0;
}

.date-row {
    font-size: 18px;
    color: #2c5aa0;
    width: 22%;
}

.zodiac-row {
    font-size: 14px;
}

.batu-row {
    font-size: 24px;
    font-weight: bold;
}

.batu-row span:first-child {
    margin-bottom: 4px;
}

.batu-row span {
    display: block;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
}

.ky-mao {
    color: #28a745;
}

.dinh-suu {
    color: red;
}

.canh-dan {
    color: #6c757d;
}

.elements-row td {
    font-size: 12px;
    padding: 4px;
}

.fortune-row td {
    font-size: 11px;
    padding: 6px 4px;
}

.tuong-phap-menu-row th {
    font-size: 14px;
    line-height: 20px;
}

.tuong-phap-menu-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tuong-phap-main-categories,
.tuong-phap-sub-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tuong-phap-section-label {
    font-size: 13px;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 4px;
}

.tuong-phap-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.tuong-phap-radio-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.tuong-phap-radio-label input[type="radio"] {
    display: none;
}

.tuong-phap-radio-text {
    display: inline-block;
    padding: 6px 14px;
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    user-select: none;
}

.tuong-phap-radio-label:hover .tuong-phap-radio-text {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tuong-phap-radio-label input[type="radio"]:checked + .tuong-phap-radio-text {
    background: linear-gradient(135deg, #ffeabc 0%, #ffd966 100%);
    color: #5a4500; /* chữ nâu đậm cho dễ đọc */
    border-color: #f1c232; /* vàng đậm nổi bật */
    box-shadow: 0 2px 8px rgba(241, 194, 50, 0.35);
    transform: translateY(-1px);
}

.tuong-phap-radio-label input[type="radio"]:checked + .tuong-phap-radio-text:hover {
    background: linear-gradient(135deg, #ffd966 0%, #ffeabc 100%);
    box-shadow: 0 4px 12px rgba(241, 194, 50, 0.5);
}

.tuong-phap-result-row th {
    font-size: 12px;
    line-height: 18px;
    vertical-align: middle;
    width: 12%;
}

.tuong-phap-result-cell {
    padding: 8px 6px;
    font-size: 11px;
    line-height: 1.4;
    text-align: left !important;
    vertical-align: top;
    width: 22% !important;
}

.tuong-phap-result-content {
    min-height: 20px;
    word-wrap: break-word;
    color: #333;
}

.dai-van-section {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.dai-van-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c5aa0;
    text-align: left;
}

.dai-van-info {
    font-size: 14px;
    text-align: left;
    color: black;
    font-weight: 600;
}

.fortune-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

.fortune-table th,
.fortune-table td {
    border: 1px solid #2c5aa0;
    padding: 6px 4px;
    text-align: center;
    font-size: 12px;
}

.fortune-table th {
    font-weight: bold;
    width: 80px;
    font-size: 14px;
    border-left: 0;
    line-height: 20px;
}

.fortune-table td:last-child {
    border-right: 0;
}

.period-cell {
    font-size: 10px;
    line-height: 1.2;
}

.year-cell {
    font-weight: bold;
    color: #2c5aa0;
}

.age-cell {
    color: #6c757d;
    font-size: 10px;
}

.result-footer {
    padding: 8px 15px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legend {
    display: flex;
    gap: 15px;
    font-size: 11px;

    position: absolute;
    left: 35%;
    bottom: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.kim {
    background: #6c757d;
}

.moc {
    background: #28a745;
}

.thuy {
    background: #2c5aa0;
}

.hoa {
    background: red;
}

.tho {
    background: #8b4513;
}

.txt-kim {
    color: #6c757d;
}

.txt-moc {
    color: #28a745;
}

.txt-thuy {
    color: #2c5aa0;
}

.txt-hoa {
    color: red;
}

.txt-tho {
    color: #8b4513;
}

.explain-text {
    /* color: red; */
    /* font-weight: 800; */
}

.daivan-wrapper {
    border-top: 1px solid #2c5aa0;
}

.daivan-wrapper .daivan-header {
    padding: 8px;
}

.daivan-wrapper .daivan-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.daivan-wrapper .daivan-content .daivan-title {
    width: 80px;
    font-size: 14px;
    width: 80px;
    line-height: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #2c5aa0;
    border-bottom: 1px solid #2c5aa0;
}

.daivan-wrapper .daivan-content .daivan-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid #2c5aa0;
    border-left: 1px solid #2c5aa0;
}

.daivan-wrapper .daivan-content .daivan-grid .daivan-item {
    border-right: 1px solid #2c5aa0;
    border-bottom: 1px solid #2c5aa0;
    box-sizing: border-box;
}

.daivan-wrapper .daivan-content .daivan-grid .daivan-item:nth-child(5n) {
    border-right: none;
}

.tab-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 10px;
}

.daivan-wrapper
    .daivan-content
    .daivan-grid
    .daivan-item:last-child:nth-child(-n + 5) {
}
.daivan-wrapper
    .daivan-content
    .daivan-grid
    .daivan-item:last-child:nth-child(-n + 5) {
    border-bottom: none;
}

.than_sat-item {
    display: flex;
    flex-direction: row;
    gap: 4px;
    justify-content: center;
}

.than_item-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 50%;
    text-align: center;
}

.daivan-wrapper .daivan-content .daivan-grid .daivan-info-head {
    padding: 8px;
    font-size: 12px;
    font-weight: bold;
    border-bottom: 1px solid #2c5aa0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.daivan-wrapper .daivan-content .daivan-grid .daivan-info-body {
    padding: 8px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.diengiai-wrapper {
    padding: 15px;
}

.diengiai-wrapper .dai-van-title {
    margin-bottom: 0;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.diengiai-wrapper .dai-van-title a {
    width: 150px;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-overlay-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 10px;
    color: #2c5aa0;
    font-size: 16px;
    text-align: center;
}

.card-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    height: 40px;
    border: none;
    border-radius: 8px;
    background: #2c5aa0;
    padding: 8px 12px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-outline-primary {
    height: 40px;
    border: 1px solid #2c5aa0;
    border-radius: 8px;
    background: transparent;
    padding: 8px 12px;
    font-size: 14px;
    color: #2c5aa0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.form-input-group label {
    display: block;
    font-size: 16px;
    margin-bottom: 12px;
}

.form-input-group input {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    padding: 10px;
    outline: none;
    border: 1px solid #ccc;
}

.form-input-group textarea {
    width: 100%;
    padding: 10px;
    outline: none;
    resize: vertical;
    border-radius: 4px;
}

.btn-action {
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
}

.btn-action.btn-edit {
    border: 1px solid #daa520;
    background: #daa520;
}

.btn-action.btn-delete {
    border: 1px solid #dc143c;
    background: #dc143c;
}

.btn-action.btn-info {
    border: 1px solid #007bff;
    background: #007bff;
}

.btn-action.btn-info:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.custom-explain-modal .modal-content {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border: none;
}
.custom-explain-modal .modal-header {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background: linear-gradient(90deg, #007bff 60%, #00c6ff 100%);
    color: #fff;
    border-bottom: 1px solid #e3e3e3;
}
.custom-explain-modal .close {
    font-size: 2rem;
    opacity: 0.8;
    outline: none;
}
.custom-explain-modal .modal-body {
    font-size: 1.1rem;
    color: #222;
    padding: 2rem;
}

.explain-edit-input {
    border: 1px solid #bdbdbd;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 1rem;
    background: #f8f9fa;
    margin: 0 12px;
    min-width: 220px;
    transition: border-color 0.2s;
}
.explain-edit-input:focus {
    border-color: #007bff;
    outline: none;
    background: #fff;
}

.modal-container{
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    background: #fafbfc;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.limit-container {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
}

.list-tab {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #ccc;
    white-space: nowrap;
    overflow-x: auto;
}

.list-tab .tab-item {
    display: inline-block;
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.list-tab .tab-item:hover,
.list-tab .tab-item.active {
    color: #2c5aa0;
    border-color: #2c5aa0;
}

.account-filter {
    margin-top: 20px;
}

.account-filter .form-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
}

.account-filter .form-filter-wrapper .icon {
    display: inline-flex;
}

.account-filter .form-filter-group,
.account-filter .form-filter-group-calendar {
    display: flex;
    align-items: center;
    height: 32px;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--input, #e2e8f0);
}

.account-filter .form-filter-group input,
.account-filter .form-filter-group-calendar input {
    width: 196px;
    height: 100%;
    border: none;
    box-shadow: none;
    border-radius: 0;
    outline: none;
    padding: 0;
}

.account-filter .form-filter-group-dropdown {
    position: relative;
    min-width: 111px;
    height: 32px;
}

.account-filter .form-filter-group-dropdown .form-filter-dropdown-btn {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border-border-input, #e4e4e7);
    box-shadow: 0px 1px 2px 0px #0000000d;
    border-radius: 6px;
    cursor: pointer;
}

.account-filter .form-filter-group-dropdown .form-filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 3px);
    width: 100%;
    background: #fff;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    padding: 4px 0;
    border-width: 0 1px 1px 1px;
    border-style: solid;
    border-color: #e4e4e7;
    box-shadow: 0px 4px 20px 0px #00000029;
    z-index: 99;
}

.account-filter .form-filter-group-dropdown .form-filter-dropdown-menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.account-filter .form-filter-group-dropdown .form-filter-dropdown-menu ul li {
    padding: 8px 12px;
    cursor: pointer;
}

.account-filter
    .form-filter-group-dropdown
    .form-filter-dropdown-menu
    ul
    li:not(:last-child) {
    border-bottom: 1px solid #e4e4e7;
}
.account-filter
    .form-filter-group-dropdown
    .form-filter-dropdown-menu
    ul
    li:not(:last-child) {
    border-bottom: 1px solid #e4e4e7;
}

.account-filter .form-filter-group-calendar {
    min-width: 126px;
}

.account-filter .form-filter-group-calendar input {
    width: 100%;
}

.account-table {
    margin-top: 20px;
}

.account-table-responsive {
    overflow-y: hidden;
    overflow-x: auto;
    padding-bottom: 16px;
}

.table-common {
    width: 100%;
    white-space: nowrap;
    text-align: left;
    overflow-y: hidden;
    border-collapse: collapse;
}

.table-common thead {
    background: #fcf8f0;
    border-top-right-radius: 5px;
}

.table-common thead th {
    padding: 15px 10px;
    font-weight: 600;
    font-size: 14px;
    line-height: 145%;
    color: #667394;
}

.table-common tbody tr:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

.table-common tbody tr td {
    padding: 15px 10px;
    font-size: 14px;
}

.table-common .table-acion-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}

.table-common .table-acion-wrapper .btn-table-action {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    box-shadow: none;
    cursor: pointer;
}

.table-common .table-acion-wrapper .btn-table-action-blue {
    background: #5ca0ff;
}

.table-common .table-acion-wrapper .btn-table-action-red {
    background: #dc143c;
}

.laso-manage .laso-wrapper {
    padding: 16px;
}

.laso-manage .title {
    font-size: 24px;
    text-align: center;
    text-transform: uppercase;
    color: #2c5aa0;
    margin-bottom: 24px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding-left: 0;
    gap: 4px;
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-item .page-link {
    color: #2c5aa0;
    border: 1px solid #2c5aa0;
    background-color: transparent;
    transition: all 0.3s ease;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
}

.pagination .page-item .page-link:hover {
    background-color: #2c5aa0;
    color: #fff;
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
    color: #fff;
    pointer-events: none;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    background-color: #f9f9f9;
    border-color: #eee;
    pointer-events: none;
}

.pagination .page-item.disabled .page-link {
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: bold;
    background-color: transparent;
    border: none;
    color: #aaa;
}
/* End Pagination */

/* MODAL */
.modal-common {
    text-align: center;
}

.modal-common::before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
}

.modal-common .modal-dialog {
    display: inline-block;
    vertical-align: middle;
    text-align: left;
    width: 100%;
}

.modal-common .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: none;
}

.modal-common .modal-header,
.modal-common .modal-footer {
    border-color: rgba(0, 0, 0, 0.1);
}

.modal-common .modal-header {
    padding: 28px 20px;
    position: relative;
}

.modal-common .modal-header .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    margin: 0;
}

.modal-common .modal-body {
    padding: 30px;
}

.modal-common .modal-footer {
    padding: 30px;
    justify-content: center;
}

.modal .modal-header {
    position: relative;
}

.modal .btn-close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
    cursor: pointer;
}

.modal-detail-horoscope .modal-dialog {
    max-width: 1060px;
}

.modal-detail-horoscope .detail-horoscope-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 100%;
    text-align: center;
    text-transform: uppercase;
    color: #cc9332;
    margin: 0;
    margin-bottom: 6px;
}

.modal-detail-horoscope .horoscope-created-at {
    display: block;
    font-weight: 400;
    font-size: 12px;
    line-height: 145%;
    text-align: center;
    color: #667394;
}

.modal-detail-horoscope .laso-action-wrapper {
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}

.modal-detail-horoscope .horoscope-image img {
    max-width: 100%;
    height: auto;
}

.modal-delete .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.modal-delete .modal-delete-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 18px;
    color: #09090b;
    margin: 0;
    text-align: center;
}

.modal-delete .btn-wrapper {
    display: flex;
    align-items: stretch;
    gap: 15px;
    margin-top: 24px;
}

.modal-delete .btn-wrapper .btn-modal {
    width: 100%;
    height: 44px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 24px;
    box-shadow: 0px 1px 2px 0px #1018280d;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

.modal-delete .btn-wrapper .btn-modal-cancel {
    background: #e2e8f0;
    color: #121213;
}

.modal-delete .btn-wrapper .btn-modal-submit {
    background: #cb3f3f;
    color: #fff;
}
/* End Modal */

/* Select2 - Beautiful Custom Styling */
.select2-container {
    width: 100% !important;
    font-family: inherit;
}

/* Main selection box */
.select2-container--default .select2-selection--single {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    height: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #8b4513;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
    transform: translateY(-1px);
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #8b4513;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.2);
    background: linear-gradient(145deg, #ffffff, #f0f8ff);
}

/* Selection text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    line-height: 36px;
    padding-left: 16px;
    padding-right: 40px;
}

/* Placeholder */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Arrow icon */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    width: 30px;
    position: absolute;
    right: 8px;
    top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #8b4513;
    transition: all 0.3s ease;
    transform: rotate(0deg);
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow::before {
    transform: rotate(180deg);
}

/* Dropdown styling */
.select2-dropdown {
    border: 2px solid #8b4513;
    border-top: 3px solid #8b4513;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    overflow: hidden;
    margin-top: 4px;
    min-width: 200px !important;
    width: auto !important;
    max-width: 300px !important;
}

.select2-container--default .select2-results__option {
    padding: 12px 16px;
    font-size: 14px;
    color: #495057;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
}

.select2-container--default .select2-results__option:last-child {
    border-bottom: none;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, #8b4513, #d2691e);
    color: white;
    font-weight: 500;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: linear-gradient(135deg, #e8d5b7, #f4e4c1);
    color: #8b4513;
    font-weight: 600;
}

/* Search field in dropdown */
.select2-search--dropdown {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
}

.select2-search--dropdown .select2-search__field {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

/* Multiple selection styling */
.select2-container--default .select2-selection--multiple {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    min-height: 48px;
    padding: 8px 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--multiple:hover {
    border-color: #8b4513;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
}

.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #8b4513;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.2);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(135deg, #8b4513, #d2691e);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    margin: 2px 4px 2px 0;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.2);
    transition: all 0.2s ease;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 8px;
    font-weight: bold;
    font-size: 14px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    top: 50%;
    transform: translateY(-50%);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: white;
    background-color: transparent;
    /* transform: scale(1.1); */
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.select2-container .select2-search--inline .select2-search__field {
    border: none;
    background: transparent;
    font-size: 14px;
    color: #495057;
    margin: 0;
    /* padding: 8px 0; */
    min-width: 120px;
}

.select2-container .select2-search--inline .select2-search__field:focus {
    outline: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 8px;
}

/* Invalid state */
.select2-container--default.select2-container--error .select2-selection--single,
.select2-container--default.select2-container--error .select2-selection--multiple {
    border-color: red;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Disabled state */
.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background: #f8f9fa;
    border-color: #e9ecef;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading state */
.select2-container--loading .select2-selection--single::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 40px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #8b4513;
    border-radius: 50%;
    animation: select2-spin 1s linear infinite;
}

/* Hide clear button (x) */
.select2-container--default .select2-selection--single .select2-selection__clear {
    display: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
    display: none !important;
}

@keyframes select2-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .select2-container--default .select2-selection--single {
        height: 44px;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 40px;
        font-size: 13px;
    }

    .select2-container--default .select2-selection--multiple {
        min-height: 44px;
    }

    .select2-dropdown {
        border-radius: 8px;
    }

    .select2-container--default .select2-results__option {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Focus states for accessibility */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #8b4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

/* Smooth transitions for all interactive elements */
.select2-container * {
    transition: all 0.2s ease;
}

/* Custom scrollbar for dropdown */
.select2-results__options::-webkit-scrollbar {
    width: 6px;
}

.select2-results__options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background: #8b4513;
    border-radius: 3px;
}

.select2-results__options::-webkit-scrollbar-thumb:hover {
    background: #d2691e;
}

/* BOOK */
.img-wrap {
    position: relative;
    height: auto;
    overflow: hidden;
    background-position: 50% 50%;
    background-size: cover;
    padding-top: 56.25%;
}

.img-wrap img {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    transform: translateZ(0);
    margin: 0 auto;
    right: 0;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    top: 0;
    position: absolute;
    object-position: 50% 50%;
    object-fit: cover;
}

.img-wrap iframe {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    transform: translateZ(0);
    margin: 0 auto;
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    top: 0;
    right: 0;
}

.book-inner .book-header {
    padding: 16px 32px;
    text-align: center;
    background: #FFFFFF;
    box-shadow: 0px 2px 10px 0px #0000000D;
}

.book-inner .book-header .title {
    font-size: 24px;
    font-weight: 600;
}

.book-inner .book-content {
    padding: 30px 0;
}

.book-inner a {
    text-decoration: none;
}

.list-category {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category-card {
    padding: 16px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 2px 10px 0px #0000000D;
}

.category-item .category-item-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.category-item .category-item-head .title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.category-item .category-item-head .view-more {
    font-size: 16px;
    color: #2c5aa0;
    font-weight: 600;
}

.grid-book {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.list-book .item-book {
    padding: 0 8px 8px 8px;
    border-bottom: 1px dashed #B0B0B0;
}

.list-book .item-book .thumbnail .img-wrap {
    padding-top: 145.25%;
}

.list-book .item-book .info .title {
    margin: 0;
    margin-top: 8px;
}

.list-book .item-book .info .title a {
    font-size: 16px;
    color: #000;
    line-height: 20px;
}

.book-inner .pagination-wrapper {
    margin-top: 40px;
}
/* END BOOK */

/* BOOK DETAIL */
.book-detail-info {
    display: flex;
    gap: 24px;
}

.book-detail-info .thumbnail {
    width: 250px;
}

.book-detail-info .thumbnail .img-wrap {
    padding-top: 145.25%;
}

.book-detail-info .info {
    flex: 1;
}

.book-detail-info .info .title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.book-detail-info .info .author {
    margin-bottom: 12px;
}

.book-file-iframe .img-wrap {
    padding-top: 100%;
}
/* END BOOK DETAIL */

/* VIDEO */
.grid-video {
    grid-template-columns: repeat(4, 1fr);
}

.list-book .item-video .thumbnail .img-wrap {
    padding-top: 56.25%;
}

.list-book .item-video .thumbnail .img-wrap img {
    border-radius: 16px;
}
/* END VIDEO */

/* VIDEO DETAIL */
.video-info-wrapper {
    margin-top: 16px;
}

.video-info-wrapper .video-info .title {
    font-size: 24px;
    font-weight: bold;
}

.video-info-wrapper .video-info .description {
    font-size: 16px;
    font-weight: 500;
}

.video-info-wrapper .related-video {
    margin-top: 48px;
}

.video-info-wrapper .related-video .title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
}
/* END VIDEO DETAIL */

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 991px) {
    .grid-video {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .modal-common::before {
        content: none;
    }

    .modal-common .modal-dialog {
        width: 90%;
    }

    .main-content {
        margin: 20px;
        padding: 20px;
    }

    .scroll-left,
    .scroll-right {
        display: none;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .form-label {
        width: auto;
        text-align: left;
    }

    .name-inputs,
    .date-inputs,
    .time-inputs {
        flex-direction: column;
    }

    .main-title {
        font-size: 20px;
    }

    .swirl-left,
    .swirl-right {
        display: none;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .main-title {
        font-size: 18px;
    }

    .subtitle {
        font-size: 16px;
    }

    .main-table,
    .fortune-table {
        font-size: 10px;
    }

    .footer {
        flex-direction: column;
        gap: 10px;
    }
    .modal-common {
        padding: 0 !important;
    }

    .modal-common .modal-dialog {
        margin: 0 !important;
        max-width: 95%;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 92% !important;
        display: flex;
        align-items: center;
        min-height: calc(100% - 1rem);
    }

    .modal-common .modal-content {
        border-radius: 12px;
        max-height: 90vh;
        overflow: hidden;
        width: 100%;
    }

    .modal-common .modal-body {
        padding: 15px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: 70vh;
    }

    .modal-detail-horoscope {
        padding-top: 0 !important;
    }

    .modal-detail-horoscope .modal-dialog {
        margin: 0 !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 95% !important;
        max-width: 95% !important;
    }

    .modal-detail-horoscope .horoscope-image {
        overflow-y: auto;
        max-height: 60vh;
        display: flex;
        justify-content: center;
    }

    .modal-detail-horoscope .detail-horoscope-title {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .modal-common .modal-header {
        padding: 15px;
    }

    .modal-common .modal-footer {
        padding: 15px;
    }

    .modal .btn-close-modal {
        top: 10px;
        right: 10px;
    }

    .modal-backdrop {
        opacity: 0.7 !important;
    }
    .modal {
        padding-right: 0 !important;
    }

    .modal-open .modal {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .grid-book {
        grid-template-columns: repeat(3, 1fr);
    }
    .book-detail-info {
        flex-direction: column;
    }
    .book-detail-info .thumbnail {
        width: 100%;
    }
    .book-file-iframe .img-wrap {
        padding-top: 200%;
    }
}
@media (max-width: 576px) {
    .modal-detail-horoscope .modal-dialog {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 92% !important;
        max-width: 92% !important;
        margin: 0 !important;
        height: auto !important;
    }
    .modal-detail-horoscope .modal-content {
        max-height: 85vh;
        border-radius: 10px;
    }
    .modal-detail-horoscope .horoscope-image {
        display: flex;
        justify-content: center;
        align-items: center;
        max-height: 70vh;
        padding: 5px;
    }
    .modal-detail-horoscope .horoscope-image img {
        max-width: 100%;
        max-height: 65vh;
        object-fit: contain;
        margin: 0 auto;
    }
    .modal-detail-horoscope .modal-body {
        padding: 10px;
        max-height: 75vh;
        overflow-y: auto;
    }
    .modal-common .modal-dialog {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 92% !important;
        max-width: 92% !important;
        margin: 0 !important;
    }

    .grid-book {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        row-gap: 24px;
    }
    .list-book .item-book .info .title a {
        font-size: 12px;
        line-height: 16px;
    }
}
@media (min-width: 577px) and (max-width: 1074px) {
    .modal-detail-horoscope .modal-dialog {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 90% !important;
        margin: 0 !important;
    }
    .modal-detail-horoscope .modal-content {
        max-height: 90vh;
    }
    .modal-detail-horoscope .horoscope-image {
        display: flex;
        justify-content: center;
        align-items: center;
        max-height: 75vh;
        padding: 10px;
    }
    .modal-detail-horoscope .horoscope-image img {
        max-width: 100%;
        max-height: 70vh;
        object-fit: contain;
    }
    .modal-detail-horoscope .modal-body {
        padding: 15px;
        max-height: 80vh;
        overflow-y: auto;
    }
}

.result-body {
    background: #fef6e8;
}

.result-body {
    background-image: url('/assets/images/icon/om2.png');
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}

.result-footer {
    background: #fef6e8;
    align-content: center;
    display: flex;
    justify-content: center;
}

.thap-nien-item {
    color: black;
    font-weight: 600;
}
