@charset "utf-8";

/* Web App Style - Gallery List Skin */
#bo_gall .gall_row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 24px; }
#bo_gall .gall_li { width: calc(33.333% - 16px); margin-bottom: 24px; }
@media (max-width: 1024px) {
    #bo_gall .gall_row { gap: 18px; }
    #bo_gall .gall_li { width: calc(50% - 9px); }
}
@media (max-width: 768px) {
    #bo_gall .gall_row { gap: 16px; width: 100%; display: flex; flex-direction: column; }
    #bo_gall .gall_li { width: 100%; margin-bottom: 16px; }
    #bo_gall .gall_img img { height: 200px; width: 100%; object-fit: cover; }
    #bo_gall .btn_consult { display: block; width: 100%; padding: 11px 0; box-sizing: border-box; text-align: center; }
}
#bo_gall .gall_box { position: relative; border: 1px solid #f1f3f5; background: #fff; text-align: center; overflow: hidden; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
#bo_gall .gall_box:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
#bo_gall .gall_img { overflow: hidden; }
#bo_gall .gall_img img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.5s ease; }
#bo_gall .gall_box:hover .gall_img img { transform: scale(1.05); }
#bo_gall .gall_text_href { padding: 20px 15px; }
#bo_gall .bo_tit { display: block; font-size: 17px; font-weight: 700; color: #212529; margin-bottom: 12px; letter-spacing: -0.3px; }
#bo_gall .gall_price { color: #3a8afd; font-size: 15px; font-weight: 600; margin-bottom: 15px; }
#bo_gall .btn_consult { display: inline-block; padding: 8px 24px; border: 1px solid #3a8afd; color: #3a8afd; border-radius: 20px; font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.2s; }
#bo_gall .btn_consult:hover { background: #3a8afd; color: #fff; box-shadow: 0 4px 12px rgba(0,120,255,0.2); }

/* Gallery Checkbox Styles */
.gall_allchk {
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.gall_allchk .custom-chk-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
}
.gall_allchk input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
    margin: 0;
}

.gall_chk {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}
.gall_chk:hover {
    background: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.gall_chk input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
    margin: 0;
}

/* Board Action Buttons */
.bo_fx { margin: 30px 0 20px; }
.btn_bo_user {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-end;
    align-items: center;
}
.btn_bo_user li { display: inline-block; }
.btn_bo_user .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}
.btn_bo_user .btn_admin {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.btn_bo_user .btn_admin:hover {
    background: #dc2626;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}
.btn_bo_user .btn_b01 {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.btn_bo_user .btn_b01:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.btn_bo_user .btn_b02 {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn_bo_user .btn_b02:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
}

/* Web App Style - View Skin Layout */
#bo_v { padding: 40px; background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); border: 1px solid #f1f3f5; }
#bo_v_title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 800;
    padding-bottom: 22px;
    border-bottom: 2px solid #f1f3f5;
    margin-bottom: 30px;
    color: #111827;
    letter-spacing: -0.5px;
    line-height: 1.35;
}
#bo_v_title .bo_v_cate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.2px;
    white-space: nowrap;
    flex-shrink: 0;
}
#bo_v_title .bo_v_cate i {
    color: #9333ea;
    font-size: 13px;
}
#bo_v_title .bo_v_tit {
    flex: 1;
    min-width: 200px;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    word-break: keep-all;
}

.view-flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    margin-bottom: 35px;
    align-items: stretch;
}
.view-img-col {
    flex: 1 1 450px;
    min-width: 320px;
    max-width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    display: flex;
    align-self: stretch;
    min-height: 480px;
}
.view-info-col {
    flex: 1 1 480px;
    min-width: 320px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.view-img-slider {
    width: 100%;
    height: 100%;
    min-height: 480px;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}
.view-img-slider .swiper-wrapper {
    height: 100%;
}
.view-img-slider .swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    padding: 0;
    overflow: hidden;
}
.view-slide-item {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    overflow: hidden;
}
.view-slide-item img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.view-slide-item:hover img {
    transform: scale(1.04);
}
.slide-hover-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 5;
    pointer-events: none;
}
.hint-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}
.view-slide-item:hover .hint-badge {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.view-img-slider .swiper-button-prev,
.view-img-slider .swiper-button-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.view-img-slider .swiper-button-prev:hover,
.view-img-slider .swiper-button-next:hover {
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.6);
}
.view-img-slider .swiper-button-prev:after,
.view-img-slider .swiper-button-next:after {
    font-size: 16px;
    font-weight: 800;
}
.view-img-slider .swiper-button-prev { left: 18px; }
.view-img-slider .swiper-button-next { right: 18px; }

.view-img-slider .swiper-pagination {
    bottom: 20px !important;
    left: 20px !important;
    width: auto !important;
    text-align: left;
    z-index: 6;
    display: flex;
    gap: 6px;
    align-items: center;
}
.view-img-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: #ffffff;
    opacity: 0.5;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.view-img-slider .swiper-pagination-bullet-active {
    width: 24px;
    opacity: 1;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.no_image_wrap {
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 500;
    background: #f8fafc;
}

.view-info-col .extra_table { width: 100%; border-collapse: separate; border-spacing: 0 10px; margin: 0; border: none; }
.view-info-col .extra_table th, .view-info-col .extra_table td { padding: 16px 20px; font-size: 15px; }
.view-info-col .extra_table th { background: #f8f9fa; width: 30%; text-align: left; font-weight: 700; color: #495057; border-radius: 12px 0 0 12px; }
.view-info-col .extra_table td { width: 70%; color: #212529; background: #fff; border: 1px solid #f1f3f5; border-left: none; border-radius: 0 12px 12px 0; font-weight: 500; }
.view-info-col .extra_table .highlight { color: #3a8afd; font-weight: 800; font-size: 18px; }

#bo_v_atc { margin-top: 40px; padding-top: 40px; border-top: 1px dashed #dee2e6; min-height: 200px; font-size: 16px; line-height: 1.6; color: #343a40; }

@media (max-width: 768px) {
    #bo_v { padding: 20px 16px; border-radius: 16px; }
    #bo_v_title { font-size: 20px; gap: 10px; margin-bottom: 20px; padding-bottom: 16px; }
    #bo_v_title .bo_v_tit { font-size: 20px; }
    #bo_v_title .bo_v_cate { font-size: 13px; padding: 5px 12px; }
    .view-flex-wrap { flex-direction: column; gap: 20px; }
    .view-img-col { width: 100%; min-width: 100%; min-height: 0; height: auto; align-self: auto; border-radius: 14px; overflow: hidden; background: transparent; }
    .view-img-slider { width: 100%; height: clamp(210px, 58vw, 360px); min-height: 0; max-height: 380px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; }
    .view-img-slider .swiper-wrapper { height: 100%; }
    .view-img-slider .swiper-slide { height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
    .view-slide-item { width: 100%; height: 100%; overflow: hidden; }
    .view-slide-item img { width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: cover; object-position: center; display: block; }
    .no_image_wrap { min-height: 0; height: clamp(200px, 55vw, 300px); aspect-ratio: 16 / 10; }
    .view-info-col { width: 100%; min-width: 100%; }
    .slide-hover-hint { bottom: 14px; right: 14px; }
    .hint-badge { padding: 5px 12px; font-size: 12px; }
}

/* Membership Layout (Sidebar) */
.membership-layout { display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-start; }
.membership-main { flex: 1; min-width: 0; }
.membership-sidebar { width: 320px; flex-shrink: 0; position: sticky; top: 120px; }

/* Web App Style - Market Sidebar Widget */
.market-sidebar { background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); padding: 30px; border: 1px solid #f1f3f5; }
.market-tabs { display: flex; background: #f1f3f5; border-radius: 12px; padding: 5px; margin-bottom: 25px; list-style: none; }
.market-tabs li { flex: 1; text-align: center; padding: 12px 5px; color: #868e96; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 10px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.market-tabs li.active { background: #fff; color: #212529; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.market-search { position: relative; margin-bottom: 25px; }
.market-search input { width: 100%; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 12px; padding: 14px 45px 14px 18px; font-size: 14px; outline: none; transition: all 0.2s ease; box-sizing: border-box; }
.market-search input:focus { background: #fff; border-color: #3a8afd; box-shadow: 0 0 0 4px rgba(0,120,255,0.1); }
.market-search button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 18px; color: #3a8afd; cursor: pointer; padding: 5px; }

.market-table-wrap { max-height: 500px; overflow-y: auto; padding-right: 5px; border: none; }
.market-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; }
.market-table th { background: #fff; border-bottom: 2px solid #f1f3f5; font-size: 12px; color: #adb5bd; text-transform: uppercase; padding: 12px 5px; position: sticky; top: 0; z-index: 2; font-weight: 600; border-right: none; }
.market-table td { padding: 14px 5px; border-bottom: 1px solid #f8f9fa; font-size: 14px; font-weight: 600; color: #343a40; transition: background 0.2s; border-right: none; }
.market-table tr:hover td { background: #f8f9fa; border-radius: 8px; }
.market-table .td-name { text-align: left; padding-left: 10px; }
.market-table .td-updown span.up { color: #e74c3c; font-weight: 700; }
.market-table .td-updown span.down { color: #3a8afd; font-weight: 700; }
.market-table .td-updown span.none { color: #adb5bd; }

/* Custom Scrollbar for Sidebar Table */
.market-table-wrap::-webkit-scrollbar { width: 6px; }
.market-table-wrap::-webkit-scrollbar-track { background: transparent; }
.market-table-wrap::-webkit-scrollbar-thumb { background: #dee2e6; border-radius: 10px; }
.market-table-wrap::-webkit-scrollbar-thumb:hover { background: #ced4da; }

@media (max-width: 1024px) {
    .membership-layout { flex-direction: column; width: 100%; max-width: 100%; align-items: stretch; gap: 25px; box-sizing: border-box; }
    .membership-main { width: 100%; max-width: 100%; flex: 1 1 100%; box-sizing: border-box; }
    .membership-sidebar { width: 100%; max-width: 100%; position: relative; top: 0; box-sizing: border-box; }
    .view-flex-wrap { flex-direction: column; gap: 24px; }
    .view-img-col { width: 100%; min-width: 100%; min-height: 0; height: auto; align-self: auto; border-radius: 14px; overflow: hidden; background: transparent; }
    .view-img-slider { width: 100%; height: clamp(230px, 58vw, 420px); min-height: 0; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; }
    .view-img-slider .swiper-wrapper { height: 100%; }
    .view-img-slider .swiper-slide { height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
    .view-slide-item { width: 100%; height: 100%; overflow: hidden; }
    .view-slide-item img { width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: cover; object-position: center; display: block; }
}

/* Web App Style - Category Styling */
#bo_cate { margin-bottom: 40px; text-align: center; }
#bo_cate h2 { display: none; }
#bo_cate_ul { list-style: none; padding: 0; margin: 0; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
#bo_cate_ul li { display: block; }
#bo_cate_ul li a { display: block; padding: 12px 30px; background: #fff; border: 1px solid #e9ecef; color: #495057; border-radius: 30px; font-size: 15px; font-weight: 600; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
#bo_cate_ul li a:hover { border-color: #3a8afd; color: #3a8afd; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,120,255,0.1); }
#bo_cate_ul li a#bo_cate_on { background: #3a8afd; border-color: #3a8afd; color: #fff; box-shadow: 0 6px 16px rgba(0,120,255,0.25); }

@media (max-width: 768px) {
    #bo_cate_ul { gap: 5px; }
    #bo_cate_ul li a { padding: 8px 15px; font-size: 13px; }
}



/* Web App Style - Write Skin (Membership Admin) */
.webapp-card { background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); padding: 40px; border: 1px solid #f1f3f5; margin-bottom: 30px; }
.webapp-card h2.bo_v_title { font-size: 24px; font-weight: 800; color: #212529; margin-bottom: 30px; letter-spacing: -0.5px; }

.webapp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 14px; font-weight: 600; color: #495057; margin-bottom: 8px; display: inline-block; }

.input-modern { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 12px; padding: 14px 18px; font-size: 15px; color: #212529; transition: all 0.2s ease; outline: none; box-sizing: border-box; width: 100%; }
.input-modern:focus { background: #fff; border-color: #3a8afd; box-shadow: 0 0 0 4px rgba(0,120,255,0.1); }
.input-modern::placeholder { color: #adb5bd; }

.btn_submit_modern { width: 100%; padding: 16px; background: #3a8afd; color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 6px 20px rgba(0,120,255,0.25); text-align: center; display: inline-block; }
.btn_submit_modern:hover { background: #0062cc; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,120,255,0.35); text-decoration: none; color: #fff; }
.btn_cancel_modern { width: 100%; padding: 16px; background: #f8f9fa; color: #495057; border: 1px solid #dee2e6; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.2s; text-align: center; display: inline-block; text-decoration: none; box-sizing: border-box; }
.btn_cancel_modern:hover { background: #e9ecef; color: #212529; text-decoration: none; }
.btn-group { display: flex; gap: 15px; grid-column: 1 / -1; margin-top: 20px; }
.btn-group > * { flex: 1; }

.file-group { padding: 15px; border: 1px dashed #ced4da; border-radius: 12px; background: #fdfdfd; margin-bottom: 10px; }
.file-group input[type=file] { width: 100%; }

@media (max-width: 768px) {
    .webapp-card { padding: 25px; border-radius: 16px; }
    .webapp-form { grid-template-columns: 1fr; gap: 15px; }
    .btn-group { flex-direction: column-reverse; }
}

/* Layer Gallery Modal Styles */
body.lg-modal-open {
    overflow: hidden !important;
}

.layer-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.layer-gallery-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.layer-gallery-modal .lg-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 29, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.layer-gallery-modal .lg-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 24px;
    box-sizing: border-box;
    user-select: none;
}

.layer-gallery-modal .lg-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.layer-gallery-modal .lg-counter-badge {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.5px;
}

.layer-gallery-modal .lg-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.layer-gallery-modal .lg-btn-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.layer-gallery-modal .lg-btn-close:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: rgba(239, 68, 68, 1);
    transform: scale(1.08);
}

.layer-gallery-modal .lg-viewport {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px 0;
}

.layer-gallery-modal .lg-stage {
    max-width: 90vw;
    max-height: calc(85vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.layer-gallery-modal .lg-stage img {
    max-width: 100%;
    max-height: calc(85vh - 120px);
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.layer-gallery-modal .lg-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
}

.layer-gallery-modal .lg-btn-prev { left: 20px; }
.layer-gallery-modal .lg-btn-next { right: 20px; }

.layer-gallery-modal .lg-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.layer-gallery-modal .lg-thumbs-wrap {
    display: flex;
    justify-content: center;
    padding: 10px 0 5px;
}

.layer-gallery-modal .lg-thumbs-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    max-width: 80%;
    padding: 6px;
}

.layer-gallery-modal .lg-thumb-item {
    width: 64px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.layer-gallery-modal .lg-thumb-item:hover {
    opacity: 0.85;
}

.layer-gallery-modal .lg-thumb-item.active {
    border-color: #3b82f6;
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.layer-gallery-modal .lg-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.layer-gallery-modal .lg-bottombar {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .layer-gallery-modal .lg-shell { padding: 12px 14px; }
    .layer-gallery-modal .lg-arrow-btn { width: 42px; height: 42px; font-size: 16px; }
    .layer-gallery-modal .lg-btn-prev { left: 8px; }
    .layer-gallery-modal .lg-btn-next { right: 8px; }
    .layer-gallery-modal .lg-bottombar { font-size: 11px; }
    .layer-gallery-modal .lg-modal-title { font-size: 14px; }
}

/* Template Tools Toolbar (Fitness Orange Theme) */
.template-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-tool {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    line-height: 1.4;
}
.btn-tool-primary {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff;
    box-shadow: 0 2px 8px rgba(234,88,12,0.25);
}
.btn-tool-primary:hover {
    background: linear-gradient(135deg, #c2410c, #9a3412);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(154,52,18,0.35);
}
.btn-tool-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.btn-tool-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
    transform: translateY(-1px);
}
.btn-tool-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.btn-tool-danger:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
    transform: translateY(-1px);
}

/* ========================================================
   Web App Style - Board Search Bar & Empty State
   ======================================================== */
.bo_sch_container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.bo_sch_form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.bo_sch_form .sch_select {
    height: 42px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    color: #334155;
    background-color: #f8fafc;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bo_sch_form .sch_select:focus {
    border-color: #3a8afd;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(58, 138, 253, 0.12);
}

.sch_input_wrap {
    display: flex;
    align-items: center;
    position: relative;
}

.sch_input_wrap .sch_input {
    width: 260px;
    height: 42px;
    padding: 0 76px 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sch_input_wrap .sch_input:focus {
    border-color: #3a8afd;
    width: 290px;
    box-shadow: 0 0 0 3px rgba(58, 138, 253, 0.12);
}

.sch_input_wrap .sch_input::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

.sch_input_wrap .sch_submit_btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    padding: 0 14px;
    border: none;
    border-radius: 7px;
    background: #3a8afd;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background 0.2s, transform 0.1s;
}

.sch_input_wrap .sch_submit_btn:hover {
    background: #2563eb;
}

.sch_input_wrap .sch_submit_btn:active {
    transform: scale(0.96);
}

.sch_reset_btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    padding: 0 14px;
    height: 42px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sch_reset_btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #94a3b8;
}

/* Search Term Highlight */
.sch_word {
    color: #1d4ed8 !important;
    background: #dbeafe !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
    font-weight: 800 !important;
}

/* Empty Search Results Style */
#bo_gall .empty_list {
    width: 100% !important;
    list-style: none !important;
    padding: 30px 10px !important;
    text-align: center !important;
}

.empty_search_box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty_search_box .empty_icon {
    font-size: 40px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.empty_search_box .empty_msg {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.empty_search_box .empty_submsg {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px 0;
}

.empty_search_box .empty_reset_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.empty_search_box .empty_reset_btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* Responsive Search Bar */
@media (max-width: 768px) {
    .bo_sch_container {
        padding: 12px 14px;
        justify-content: center;
    }
    .bo_sch_form {
        display: flex;
        width: 100%;
        gap: 6px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .bo_sch_form .sch_select {
        flex: 0 0 90px;
        font-size: 13px;
        padding: 0 6px;
    }
    .sch_input_wrap {
        flex: 1 1 auto;
    }
    .sch_input_wrap .sch_input {
        width: 100% !important;
        font-size: 13px;
        padding-right: 68px;
    }
    .sch_input_wrap .sch_submit_btn {
        padding: 0 10px;
    }
    .sch_btn_txt {
        display: inline;
    }
    .sch_reset_btn {
        height: 42px;
        font-size: 13px;
        padding: 0 10px;
    }
}
