@charset "utf-8";

.s_txt{margin-bottom: 50px;}
.s_txt h2{color:var(--heading-color); font-size: 48px; margin-bottom: 20px;}
.s_txt p{color:var(--text-color); font-size: 18px; line-height: 1.6em;}
.s_txt p a{color:var(--primary-color); margin-left: 5px;}

@media all and (max-width:1280px){
    .s_txt{margin-bottom: 45px;}
    .s_txt h2{font-size: 44px;}
    .s_txt p{font-size: 17px;}
}
@media all and (max-width:1024px){
    .s_txt h2{font-size: 41px;}
}
@media all and (max-width:768px){
    .s_txt{margin-bottom: 40px;}
    .s_txt h2{font-size: 38px;}
    .s_txt p{font-size: 16px;}
}
@media all and (max-width:500px){
    .s_txt h2{font-size: 35px;}
}

/* ==========================================================================
   #design 테마 마켓 (포트폴리오) 스타일 시트
   ========================================================================== */

/* Enable sticky positioning by removing overflow: hidden from parent */
#pageCont {
    overflow: visible !important;
}

#design {
    color: var(--heading-color);
    background: var(--bg-color);
    width: 100%;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   목록 화면 (Portfolio Grid List & Wide Layout)
   -------------------------------------------------------------------------- */
#design .tm-list-wrap {
    width: 100%;
    box-sizing: border-box;
    padding: 0px 3%;
}

/* 와이드형 상단 검색창 */
#design .tm-list-header-wide {
    width: 100%;
    margin-bottom: 40px;
}

#design .tm-search-box-wide {
    display: flex;
    align-items: center;
    border: 1px solid var(--header-border2);
    border-radius: 12px;
    padding: 14px 24px;
    background: var(--bg-color, #ffffff);
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#design .tm-search-box-wide:focus-within {
    border-color: var(--heading-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

#design .tm-search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-color, #9ca3af);
    margin-right: 12px;
    flex-shrink: 0;
}

#design .tm-search-input {
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 400;
    color: var(--heading-color);
    background: transparent;
    width: 100%;
}

/* 2단 레이아웃 (좌측 분류 / 우측 그리드) */
#design .tm-list-columns {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* 좌측 세로 카테고리 사이드바 */
#design .tm-list-sidebar {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

#design .tm-sidebar-filter-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading-color, #111827);
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--header-border2);
    padding-bottom: 10px;
}

#design .tm-filter-tags-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#design .tm-filter-tag-vertical {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    background: transparent;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#design .tm-filter-tag-vertical:hover {
    background-color: var(--header-border2);
    color: var(--heading-color);
}

#design .tm-filter-tag-vertical.active {
    background-color: var(--heading-color);
    color: var(--bg-color);
    font-weight: 700;
}

/* 우측 그리드 목록 */
#design .tm-list-grid {
    flex: 1;
    min-width: 0;
}

#design .tm-grid-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

#design .tm-grid-sort-bar-left {
    display: flex;
    align-items: center;
}

#design #tm-cat-dropdown {
    display: none;
}

#design .tm-grid-count {
    font-size: 15px;
    color: var(--text-color);
}

#design .tm-grid-count strong {
    color: var(--heading-color);
    font-weight: 700;
}

#design .tm-sort-dropdown {
    position: relative;
    display: inline-block;
}

#design .tm-sort-trigger {
    background: var(--bg-color);
    border: 1px solid var(--header-border2);
    border-radius: 8px;
    padding: 0 16px;
    height: 38px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 600;
    color: var(--heading-color);
    cursor: pointer;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

@media all and (max-width: 768px) {
    #design .tm-sort-trigger {
        height: 34px;
        padding: 0 12px;
        font-size: 13px;
    }
}

@media all and (max-width: 480px) {
    #design .tm-sort-trigger {
        height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }
}

#design .tm-sort-trigger:hover {
    border-color: var(--heading-color);
}

#design .tm-dropdown-arrow {
    width: 12px;
    height: 12px;
    color: var(--text-color);
    transition: transform 0.2s ease;
}

#design .tm-sort-dropdown.open .tm-dropdown-arrow {
    transform: rotate(180deg);
}

#design .tm-sort-options {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-color);
    border: 1px solid var(--header-border2);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    min-width: 110px;
    padding: 6px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.2s cubic-bezier(0.25, 1, 0.5, 1),
                visibility 0.2s;
}

#design .tm-sort-dropdown.open .tm-sort-options {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

#design .tm-sort-option {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    white-space: nowrap;
}

#design .tm-sort-option:hover {
    background: var(--header-border2);
    color: var(--heading-color);
}

#design .tm-sort-option.active {
    background: var(--header-border2);
    color: var(--heading-color);
    font-weight: 700;
}

#design .tm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px 24px;
}

#design .tm-card {
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: opacity 0.3s;
}

#design .tm-card.private-theme {
    opacity: 0.65;
}

#design .tm-card-thumb-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 83/100;
    background: var(--bg-color);
    /* border: 1px solid var(--header-border2); */
}

#design .tm-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

#design .tm-card:hover .tm-card-thumb {
    transform: scale(1.03);
}

#design .tm-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

#design .tm-card-badge.private {
    background: rgba(107, 114, 128, 0.85);
}

#design .tm-card-meta {
    padding: 12px 2px 0;
}

#design .tm-card-category {
    font-size: 13px;
    color: var(--text-color, #6b7280);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 5px;
}

#design .tm-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color, #111827);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#design .tm-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

#design .tm-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 75%;
    overflow: hidden;
}

#design .tm-tag {
    font-size: 11px;
    padding: 3px 8px;
    border: 1px solid var(--header-border2, rgba(0, 0, 0, 0.15));
    border-radius: 6px;
    background: transparent;
    color: var(--text-color, #555555);
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
    display: inline-block;
}

/* 카드 목록 — 조회수 / 추천수 공통 */
#design .tm-card-views,
#design .tm-card-recommend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #9ca3af;
    white-space: nowrap;
}

#design .tm-card-views svg,
#design .tm-card-recommend svg {
    color: #9ca3af;
    flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   상세 보기 화면 (Imweb Detail Mode - Width-expanded)
   -------------------------------------------------------------------------- */
#design .tm-detail-wrap {
    display: none;
    width: 100%;
    box-sizing: border-box;
    padding: 0px 3%;
}

#design .tm-detail-wrap.active {
    display: block;
    animation: tmFadeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes tmFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#design .tm-detail-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 10px 0 20px;
    border-bottom: 1px solid var(--header-border2); */
    margin-bottom: 35px;
}

#design .tm-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color, #111827);
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    transition: background-color 0.2s;
}

#design .tm-btn-back:hover {
    background-color: var(--header-border2);
}

#design .tm-device-switcher {
    display: flex;
    background: var(--header-border2);
    border-radius: 30px;
    padding: 4px;
    gap: 2px;
}

#design .tm-device-btn {
    border: none;
    background: none;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.2s ease;
}

#design .tm-device-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

#design .tm-device-btn.active {
    background: var(--bg-color);
    color: var(--heading-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

#design .tm-detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#design .tm-detail-actions > .tm-action-btn,
#design .tm-detail-actions > .tm-action-divider {
    display: none;
}

#design .tm-action-btn {
    border: 1px solid var(--header-border2);
    background: var(--bg-color);
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-color);
    transition: all 0.2s ease;
    white-space: nowrap;
}

#design .tm-action-btn:hover {
    background: var(--header-border2);
    color: var(--heading-color);
}

#design .tm-action-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

#design .tm-action-btn-label {
    font-size: 14px;
    font-weight: 500;
}

#design .tm-action-divider {
    width: 1px;
    height: 20px;
    background-color: var(--header-border2);
    margin: 0 4px;
}

#design .tm-arrow-group {
    display: flex;
    border: 1px solid var(--header-border2);
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    height: 36px;
    align-items: center;
}

#design .tm-arrow-btn {
    border: none;
    background: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.2s ease;
}

#design .tm-arrow-btn:hover {
    background: var(--header-border2);
    color: var(--heading-color);
}

#design .tm-arrow-btn svg {
    width: 18px;
    height: 18px;
}

#design .tm-arrow-divider {
    width: 1px;
    height: 16px;
    background-color: var(--header-border2);
}

#design .tm-detail-columns {
    display: flex;
    gap: 30px;
}

#design .tm-detail-left {
    flex: 1;
    min-width: 0;
}

#design .tm-detail-right {
    width: 380px;
    flex-shrink: 0;
}

/* iframe 뷰어 목업 영역 */
#design .tm-viewer-container {
    background: transparent;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: max-width 0.4s ease, padding 0.4s ease;
    /* margin-bottom: 40px; */
}

#design .tm-viewer-iframe-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-color);
    border: 1px solid var(--header-border2);
    box-shadow: 0 15px 35px var(--header-bg);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                border 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                border-radius 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

#design .tm-viewer-bar {
    background: var(--bg-color);
    border-bottom: 1px solid var(--header-border2);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

#design .tm-viewer-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

#design .tm-viewer-bar .dot.red {
    background: #ff5f56;
}

#design .tm-viewer-bar .dot.yellow {
    background: #ffbd2e;
}

#design .tm-viewer-bar .dot.green {
    background: #27c93f;
}

#design .tm-viewer-iframe-wrapper.pc-mode {
    width: 100%;
    height: 720px;
}

#design .tm-viewer-iframe-wrapper.mobile-mode {
    width: 375px;
    height: 667px;
    border: 10px solid var(--header-border2);
    border-radius: 36px;
    box-sizing: content-box;
}

#design .tm-viewer-iframe-wrapper.mobile-mode .tm-viewer-bar {
    display: none;
}

#design .tm-viewer-frame {
    flex: 1;
    width: 100%;
    border: none;
    display: block;
    background: #ffffff;
}

/* 파생 디자인 (전문가의 다른 작업) */
#design .tm-sub-designs-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--header-border2);
}

#design .tm-sub-designs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

#design .tm-sub-designs-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0;
}

#design .tm-sub-slider-nav {
    display: flex;
    gap: 6px;
}

#design .tm-sub-slider-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--header-border2);
    background: var(--bg-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

#design .tm-sub-slider-btn:hover:not(:disabled) {
    background: var(--heading-color);
    color: var(--bg-color);
    border-color: var(--heading-color);
}

#design .tm-sub-slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#design .tm-sub-slider-btn svg {
    width: 14px;
    height: 14px;
}

#design .tm-sub-designs-slider-wrap {
    overflow: hidden;
    width: 100%;
}

#design .tm-sub-designs-slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

/* Page containing 2x2 grid */
.tm-sub-designs-page {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    flex-shrink: 0;
}

/* Individual Card adjustment for 2x2 */
#design .tm-sub-card {
    width: 100%;
    cursor: pointer;
}

#design .tm-sub-card-thumb-wrap {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    transition: all 0.3s ease;
    background: var(--bg-color);
}

#design .tm-sub-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

#design .tm-sub-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

#design .tm-sub-card.active .tm-sub-card-title {
    color: var(--heading-color);
    font-weight: 600;
}

/* 우측 Sticky 사이드바 */
#design .tm-sticky-sidebar {
    position: sticky;
    top: 100px;
    background: var(--bg-color);
    border: 1px solid var(--header-border2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

#design .tm-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

#design .tm-detail-tag {
    display: inline-block;
    font-size: 13px;
    padding: 3px 8px;
    border: 1px solid var(--header-border2, rgba(0, 0, 0, 0.15));
    border-radius: 6px;
    background: transparent;
    color: var(--text-color, #555555);
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
}

#design .tm-detail-tag--cat {
    color: var(--heading-color);
    border-color: var(--heading-color);
    font-weight: 600;
}

#design .tm-sidebar-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--heading-color);
    margin-top: 0;
    line-height: 1.35;
}

#design .tm-sidebar-desc {
    font-size: 16px;
    color: var(--text-color);
    margin-top: 18px;
    line-height: 1.65;
}

#design .tm-detail-cta-row {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    width: 100%;
}

#design .tm-detail-bottom-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    width: 100%;
}

#design .tm-detail-bottom-actions .tm-action-btn {
    flex: 1;
    height: 48px;
    padding: 0 14px;
}

#design .tm-btn-recommend {
    flex-shrink: 0;
    height: 54px;
    border-radius: 12px;
    border: 1px solid var(--header-border2, rgba(0, 0, 0, 0.15));
    background: var(--bg-color, #ffffff);
    color: var(--text-color, #555555);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 0 18px;
    gap: 2px;
    outline: none;
    white-space: nowrap;
}

#design .tm-btn-recommend-label {
    font-size: 14px;
    font-weight: 600;
}

#design .tm-btn-recommend:hover {
    border-color: var(--heading-color);
}

#design .tm-btn-recommend:hover .tm-heart-icon {
    stroke: var(--heading-color);
}

#design .tm-btn-recommend.recommended {
    background: var(--bg-color, #ffffff);
    border-color: var(--header-border2, rgba(0, 0, 0, 0.15));
    color: var(--text-color);
}

#design .tm-heart-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease, fill 0.3s ease, stroke 0.3s ease;
}

#design .tm-btn-recommend.recommended .tm-heart-icon {
    fill: var(--heading-color);
    stroke: var(--heading-color);
}

#design .tm-btn-recommend:active .tm-heart-icon {
    transform: scale(1.2);
}

#design .tm-btn-inquiry {
    flex: 1;
    background: var(--heading-color);
    color: var(--bg-color);
    border: none;
    border-radius: 12px;
    height: 54px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.4s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#design .tm-btn-inquiry:hover{opacity: 0.5;}

#design .tm-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--header-border2);
}

#design .tm-profile-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #f3f4f6;
}

#design .tm-profile-info {
    font-size: 16px;
    line-height: 1.4;
}

#design .tm-profile-name {
    font-weight: 700;
    color: var(--heading-color);
    font-size: 16px;
}

#design .tm-profile-desc {
    color: var(--text-color);
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   문의하기 오버레이 모달 (Inquiry Modal)
   -------------------------------------------------------------------------- */
#design .tm-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#design .tm-modal-overlay.active {
    display: flex;
}

#design .tm-modal-container {
    background: var(--bg-color);
    border-radius: 24px;
    width: 960px;
    max-width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
    display: flex;
    animation: tmPopUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tmPopUp {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

#design .tm-modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--heading-color);
    z-index: 10;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

#design .tm-modal-close-btn:hover {
    background-color: var(--header-border2);
}

#design .tm-modal-left {
    width: 340px;
    background: #f9fafb;
    border-right: 1px solid var(--header-border2);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow-y: auto;
}

[data-theme="dark"] #design .tm-modal-left {
    background: #121212;
}

#design .tm-modal-right {
    flex: 1;
    padding: 50px 45px;
    overflow-y: auto;
    box-sizing: border-box;
}

#design .tm-modal-right-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 25px;
}

#design .tm-modal-profile {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

#design .tm-modal-logo {
    width: 144px;
    height: 40px;
    background: url(/images/common/logo.webp) no-repeat center center / contain;
    filter: invert(1);
    transition: filter 0.3s;
}

[data-theme="dark"] #design .tm-modal-logo {
    filter: none;
}

#design .tm-modal-info-list {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    border-top: 1px solid var(--header-border2);
    padding-top: 20px;
}

#design .tm-modal-info-item {
    margin-bottom: 12px;
}

#design .tm-modal-info-label {
    font-weight: 700;
    color: var(--heading-color, #111827);
    margin-bottom: 2px;
}

#design .tm-form-group {
    margin-bottom: 24px;
}

#design .tm-form-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--heading-color, #111827);
    margin-bottom: 8px;
}

#design .tm-form-label span.req {
    color: #ef4444;
    margin-left: 3px;
}

#design input,
#design textarea,
#design select,
#design button {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

#design .tm-select,
#design .tm-input,
#design .tm-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--header-border2, #e5e7eb);
    border-radius: 10px;
    font-size: 16px;
    color: var(--heading-color, #111827);
    background: var(--bg-color, #ffffff);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#design .tm-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 40px;
    cursor: pointer;
}

#design .tm-select:focus,
#design .tm-input:focus,
#design .tm-textarea:focus {
    border-color: var(--heading-color, #111827);
    box-shadow: 0 0 0 3px var(--header-border);
}

#design .tm-textarea {
    height: 100px;
    resize: none;
    line-height: 1.6;
}

#design .tm-form-row {
    display: flex;
    gap: 12px;
}

#design .tm-form-col {
    flex: 1;
}

#design .tm-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    user-select: none;
}

#design .tm-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--header-border2);
    cursor: pointer;
}


#design .tm-error-msg {
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    margin-top: 16px;
    display: none;
}

#design .tm-privacy-box {
    background: var(--bg-color);
    border: 1px solid var(--header-border2);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 15px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

#design .tm-privacy-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 8px;
}

#design .tm-privacy-bullets {
    padding-left: 16px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#design .tm-privacy-bullets li {
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.4;
    list-style-type: disc;
}

#design .tm-btn-submit {
    width: 100%;
    background: var(--heading-color);
    color: var(--bg-color);
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.2s, background-color 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#design .tm-btn-submit:hover {
    opacity: 0.85;
}

#design .tm-btn-submit:disabled {
    background: var(--header-border2);
    color: var(--text-color);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

/* ==========================================================================
   반응형 모바일 미디어 쿼리 (main.css Breakpoints 동기화)
   ========================================================================== */
@media all and (max-width: 1600px) {
    #design .tm-grid { grid-template-columns: repeat(3, 1fr); gap:35px; }
}
@media all and (max-width: 1280px) {
    #design .tm-list-wrap { padding: 0px 3%; }
    #design .tm-grid { grid-template-columns: repeat(2, 1fr); gap:35px; }
}

@media all and (max-width: 1024px) {
    #design .tm-list-columns { flex-direction: column; gap: 30px; align-items: stretch; }
    #design .tm-list-sidebar { display: none; }
    #design #tm-cat-dropdown { display: inline-block; }
    #design .tm-grid-count { display: none; }
    
    #design .tm-detail-columns { flex-direction: column; gap: 30px; }
    #design .tm-detail-left { display: contents; }
    #design .tm-viewer-container { order: 1; margin-bottom: 0; }
    #design .tm-detail-right { order: 2; width: 100%; }
    #design .tm-sub-designs-section { order: 3; margin-top: 40px; }
    #design .tm-sticky-sidebar { position: static; box-shadow: none; border: none; padding: 0; }
    
    #design .tm-modal-container {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
        width: 100%;
        max-width: 500px;
        overflow-y: auto;
    }
    #design .tm-modal-left {
        display: none;
    }
    #design .tm-modal-right {
        padding: 35px 25px;
        width: 100%;
        overflow-y: visible;
        box-sizing: border-box;
    }

    /* 모바일에서 15px까지 본문/인풋 텍스트 허용 (14px 제한 적용) */
    #design .tm-sidebar-filter-title,
    #design .tm-filter-tag-vertical,
    #design .tm-card-category,
    #design .tm-btn-back,
    #design .tm-sub-card-title,
    #design .tm-sidebar-category,
    #design .tm-sidebar-desc,
    #design .tm-btn-inquiry,
    #design .tm-profile-info,
    #design .tm-profile-name,
    #design .tm-modal-info-list,
    #design .tm-form-label,
    #design .tm-select,
    #design .tm-input,
    #design .tm-textarea,
    #design .tm-checkbox-wrap,
    #design .tm-error-msg {
        font-size: 15px;
    }
}

@media all and (max-width: 768px) {
    #design .tm-device-switcher {
        display: none !important;
    }
    #design .tm-viewer-iframe-wrapper {
        width: 100% !important;
        max-width: 340px;
        height: 560px !important;
        border: 10px solid var(--header-border2) !important;
        border-radius: 36px !important;
        box-sizing: border-box !important;
    }
    #design .tm-viewer-bar {
        display: none !important;
    }
    #design .tm-card-thumb-wrap{
        aspect-ratio: 89/80;
    }
}

@media all and (max-width: 500px) {
    #design .tm-grid { grid-template-columns: 1fr; }
    #design .tm-form-row { flex-direction: column; gap: 15px; }
    #design .tm-filter-tags-vertical { gap: 6px; }
    #design .tm-filter-tag-vertical { font-size: 15px; padding: 8px 12px; }
}


/* ==========================================================================
   초기 로딩 FOUC 방지 & 스켈레톤 로딩 카드
   ========================================================================== */

/* 그리드 / 정렬바 — JS 완료 전까지 숨김 */
#tm-theme-grid {
    opacity: 0;
    transition: opacity 0.45s ease;
}
#tm-theme-grid.tm-grid-ready {
    opacity: 1;
}
#tm-grid-sort-bar-wrap {
    opacity: 0;
    transition: opacity 0.3s ease;
}
#tm-grid-sort-bar-wrap.tm-grid-ready {
    opacity: 1;
}

/* 스켈레톤 래퍼 — 실제 .tm-grid와 동일한 그리드 레이아웃 */
#design #tm-skeleton-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px 24px;
    padding: 0 0 24px;
}

/* 스켈레톤 카드 — .tm-card와 동일한 구조 */
#design .tm-skeleton-card {
    cursor: default;
}

/* 썸네일 영역 — .tm-card-thumb-wrap과 동일한 형태 */
#design .tm-skeleton-card .sk-thumb {
    border-radius: 10px;
    aspect-ratio: 4 / 3;
    background: var(--header-border2);
    border: 1px solid var(--header-border);
    position: relative;
    overflow: hidden;
}

/* 메타 영역 — .tm-card-meta와 동일한 패딩 */
#design .tm-skeleton-card .sk-body {
    padding: 12px 2px 0;
}

/* 타이틀 줄 — .tm-card-title 높이·폰트에 대응 */
#design .tm-skeleton-card .sk-title {
    height: 18px;
    border-radius: 6px;
    background: var(--header-border2);
    width: 62%;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

/* 태그 줄 — .tm-tag 크기에 대응 */
#design .tm-skeleton-card .sk-tag {
    height: 13px;
    border-radius: 6px;
    background: var(--header-border2);
    width: 42%;
    position: relative;
    overflow: hidden;
}

/* Shimmer 슈도 요소 — 배경색에 반투명 하이라이트를 슬라이드해 라이트·다크 모두 호환 */
#design .tm-skeleton-card .sk-thumb::after,
#design .tm-skeleton-card .sk-title::after,
#design .tm-skeleton-card .sk-tag::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: tm-skeleton-shimmer 1.6s ease-in-out infinite;
}

[data-theme="dark"] #design .tm-skeleton-card .sk-thumb::after,
[data-theme="dark"] #design .tm-skeleton-card .sk-title::after,
[data-theme="dark"] #design .tm-skeleton-card .sk-tag::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 100%
    );
}

@keyframes tm-skeleton-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* 스켈레톤 반응형 — .tm-grid 브레이크포인트와 동기화 */
@media all and (max-width: 1600px) {
    #design #tm-skeleton-wrap {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
}
@media all and (max-width: 1280px) {
    #design #tm-skeleton-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}
@media all and (max-width: 500px) {
    #design #tm-skeleton-wrap {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   요금제 (Pricing)
   ========================================================================== */


/* 토글 */
.pricing_toggle_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 50px;
}

.ptoggle_label {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ptoggle_badge {
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    background: var(--heading-color);
    color: var(--bg-color);
    padding: 3px 10px;
    border-radius: 30px;
}

.ptoggle_switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.ptoggle_switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.ptoggle_slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--header-border2);
    border-radius: 28px;
    transition: background 0.3s ease;
}

.ptoggle_slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.ptoggle_switch input:checked + .ptoggle_slider {
    background: var(--heading-color);
}

.ptoggle_switch input:checked + .ptoggle_slider::before {
    transform: translateY(-50%) translateX(24px);
}

/* 카드 컨테이너 */
.pricing_cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* 애니메이션 border 래퍼 (프로 카드 전용) */
.pc_border_wrap {
    flex: 1;
    position: relative;
    border-radius: 22px;
    padding: 1px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pc_border_wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    aspect-ratio: 1 / 1;
    background: conic-gradient(
        #1a65ff,
        #ce5eff,
        #fd5766,
        #ffcb56,
        #ff725e,
        #1a65ff
    );
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center center;
    animation: proBorderRotate 5s linear infinite;
    z-index: 0;
}

@keyframes proBorderRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 카드 공통 */
.pricing_card {
    flex: 1;
    border: 1px solid var(--header-border2);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg-color);
    transition: box-shadow 0.3s ease;
}

.pricing_card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* 프로 카드 — 래퍼 안쪽, 미세하게 다른 배경 */
.pricing_card.is_featured {
    border: none;
    border-radius: 20.5px;
    background: #fcfcfc;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .pricing_card.is_featured {
    background: #111;
}

.pricing_card.is_featured:hover { box-shadow: none; }

/* 인기 뱃지 */
.pc_badge {
    position: absolute;
    top: 28px;
    right: 28px;
    background: var(--heading-color);
    color: var(--bg-color);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
}

/* 카드 헤더 */
.pc_header { margin-bottom: 28px; }

.pc_name {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.pc_desc {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 24px;
    line-height: 1.5em;
}

/* 가격 */
.pc_price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pc_original {
    display: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: line-through;
    line-height: 1;
    margin-bottom: 2px;
}

.pc_original.show {
    animation: origSlideIn 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes origSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pc_price_row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pc_currency {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
    align-self: flex-start;
    margin-top: 14px;
    line-height: 1;
}

.pc_amount {
    font-size: 54px;
    font-weight: 800;
    color: var(--heading-color);
    line-height: 1;
    letter-spacing: -0.03em;
}

.pc_period {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    align-self: flex-end;
    margin-bottom: 6px;
}

/* 버튼 */
.pc_btn {
    display: block;
    text-align: center;
    background: var(--heading-color);
    color: var(--bg-color);
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 28px;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.pc_btn:hover { opacity: 0.65; }


/* 기능 목록 */
.pc_features {
    display: flex;
    flex-direction: column;
    gap: 13px;
    border-top: 1px solid var(--header-border2);
    padding-top: 24px;
}

.pc_features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--heading-color);
    line-height: 1.4em;
}

.pc_features li em {
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--header-border2);
    color: var(--text-color);
    margin-left: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 체크 아이콘 */
.pc_check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--header-border2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pc_check::after {
    content: '✓';
    font-size: 11px;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1;
}

/* 반응형 */
@media all and (max-width: 1280px) {
    .pricing_card { padding: 35px; }
    .pc_amount { font-size: 48px; }
}

@media all and (max-width: 768px) {
    .pricing_toggle_wrap { margin-bottom: 35px; }
    .pricing_cards { display: flex; flex-direction: column; }
    .pc_border_wrap { flex: none; width: 100%; order:-1;}
    .pricing_card { padding: 30px; }
    .pc_amount { font-size: 44px; }
    .pc_badge { top: 22px; right: 22px; }
}

@media all and (max-width: 500px) {
    .pricing_card { padding: 24px; }
    .pc_name { font-size: 20px; }
    .pc_desc { font-size: 14px; margin-bottom: 18px; }
    .pc_amount { font-size: 40px; }
    .pc_currency { font-size: 19px; }
    .pc_features li { font-size: 14px; }
    .ptoggle_label { font-size: 15px; }
}

/* 개인정보 툴팁 */
.tm-privacy-trigger {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: var(--heading-color, #000);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tm-privacy-tooltip {
    display: none;
    position: fixed;
    min-width: 260px;
    max-width: 300px;
    background: var(--bg-color, #fff);
    border: 1px solid var(--header-border2, rgba(0, 0, 0, 0.15));
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    font-size: 13px;
    color: var(--text-color, #555);
    line-height: 1.7;
    z-index: 99999;
    white-space: normal;
    text-align: left;
}

.tm-privacy-tooltip-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--heading-color, #000);
}

.tm-privacy-tooltip ul {
    margin: 0;
}

.tm-privacy-tooltip li {
    margin-bottom: 2px;
}


/* ==========================================================================
   #support 견적 상담 신청 페이지 전용 스타일
   ========================================================================== */
.support-container {
    display: flex;
    align-items: stretch;
    margin: 0px auto 0px;
    padding: 0;
    box-sizing: border-box;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    gap: 48px !important;
}

/* support-container 내부 배치 및 기존 모달 스타일 복구 */
.support-container .tm-modal-left {
    position: static !important;
    height: auto !important;
    overflow-y: visible !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 60px 45px !important;
    box-sizing: border-box !important;
}

.support-container .tm-modal-right {
    position: static !important;
    height: auto !important;
    overflow-y: visible !important;
    padding: 10px 10px !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 폼 요소들의 삐져나옴 방지를 위한 보강 */
.support-container .tm-form-row {
    width: 100% !important;
    box-sizing: border-box !important;
}

.support-container .tm-form-col {
    box-sizing: border-box !important;
}

.support-container .tm-input,
.support-container .tm-textarea {
    box-sizing: border-box !important;
}

/* 모바일 반응형 처리 */
@media all and (max-width: 1024px) {
    .support-container {
        flex-direction: column;
        margin: 0px auto 0px;
        gap: 30px !important;
    }
    .support-container .tm-modal-left {
        width: 100% !important;
        border: none !important;
        border-radius: 20px !important;
        padding: 40px 30px !important;
    }
    .support-container .tm-modal-right {
        width: 100% !important;
        padding: 20px 10px !important;
    }
}

/*pricing1 */
.pricing{}
.pricing #sec8{margin-top: 140px;}

@media  all and (max-width:1280px) {
    .pricing #sec8{margin-top: 120px;}
}
@media  all and (max-width:1024px) {
    .pricing #sec8{margin-top: 110px;}
}
@media  all and (max-width:768px) {
    .pricing #sec8{margin-top: 100px;}
}
@media  all and (max-width:500px) {
    .pricing #sec8{margin-top: 90px;}
}

/* support1 */
.support1{}
.support1 #sec8{margin-top: 140px;}

@media  all and (max-width:1280px) {
    .support1 #sec8{margin-top: 120px;}
}
@media  all and (max-width:1024px) {
    .support1 #sec8{margin-top: 110px;}
}
@media  all and (max-width:768px) {
    .support1 #sec8{margin-top: 100px;}
}
@media  all and (max-width:500px) {
    .support1 #sec8{margin-top: 90px;}
}

/* support1 counter */
.support1 .counter {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin: 0 auto 60px;
    padding: 0;
}
.support1 .counter li {
    text-align: center;
}
.support1 .counter li p {
    font-size: 16px;
    color: var(--text-color, #555);
    margin-bottom: 5px;
}
.support1 .counter li .num {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.support1 .counter li .num .count {
    font-size: 48px;
    color: var(--heading-color, #000);
    font-weight: 700;
    line-height: 1em;
    margin-top: 7px;
}
.support1 .counter li .num .count + span {
    color: var(--heading-color, #000);
    font-size: 24px;
    font-weight: 700;
    margin-left: 5px;
}
.support1 .counter li .num.num2 .count + span,
.support1 .counter li .num.num3 .count + span {
    font-size: 48px;
    font-weight: 700;
    line-height: 1em;
}

@media all and (max-width: 1280px) {
    .support1 .counter { gap: 80px; margin-bottom: 50px; }
    .support1 .counter li .num .count { font-size: 42px; }
    .support1 .counter li .num.num2 .count + span, 
    .support1 .counter li .num.num3 .count + span { font-size: 42px; }
}

@media all and (max-width: 1024px) {
    .support1 .counter { gap: 60px; margin-bottom: 45px; }
    .support1 .counter li p { font-size: 15px; }
    .support1 .counter li .num .count { font-size: 40px; }
    .support1 .counter li .num.num2 .count + span, 
    .support1 .counter li .num.num3 .count + span { font-size: 40px; }
}

@media all and (max-width: 768px) {
    .support1 .counter { gap: 40px; margin-bottom: 40px; display: grid; grid-template-columns: repeat(2, 1fr); }
    .support1 .counter li .num .count { font-size: 38px; }
    .support1 .counter li .num.num2 .count + span, 
    .support1 .counter li .num.num3 .count + span { font-size: 38px; }
}

@media all and (max-width: 500px) {
    .support1 .counter { gap: 30px; margin-bottom: 30px; }
    .support1 .counter li .num .count { font-size: 34px; }
    .support1 .counter li .num.num2 .count + span, 
    .support1 .counter li .num.num3 .count + span { font-size: 34px; }
}
