@charset "utf-8";

/* ==========================================================================
   #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: 8px 16px;
    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;
}

#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: 4/3;
    background: var(--bg-color);
    border: 1px solid var(--header-border);
}

#design .tm-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    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: 70%;
}

#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 {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #9ca3af;
    white-space: nowrap;
}

#design .tm-card-views 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-action-btn {
    border: 1px solid var(--header-border2);
    background: var(--bg-color);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.2s ease;
}

#design .tm-action-btn:hover {
    background: var(--header-border2);
    color: var(--heading-color);
}

#design .tm-action-btn svg {
    width: 18px;
    height: 18px;
}

#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: 45px;
}

#design .tm-sub-designs-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 22px;
}

#design .tm-sub-designs-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-behavior: smooth;
}

#design .tm-sub-designs-scroll::-webkit-scrollbar {
    height: 6px;
}

#design .tm-sub-designs-scroll::-webkit-scrollbar-track {
    background: var(--header-border2);
    border-radius: 10px;
}

#design .tm-sub-designs-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#design .tm-sub-card {
    width: 220px;
    flex-shrink: 0;
    cursor: pointer;
}

#design .tm-sub-card-thumb-wrap {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    background: var(--bg-color);
}


#design .tm-sub-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#design .tm-sub-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 우측 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-btn-recommend {
    flex-shrink: 0;
    width: 54px;
    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;
    gap: 2px;
    outline: none;
}

#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: 140px;
    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: 1280px) {
    #design .tm-list-wrap { padding: 0px 3%; }
    #design .tm-grid { grid-template-columns: repeat(3, 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: 0; }
    #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-grid { grid-template-columns: repeat(2, 1fr); }
    #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;
    }
}

@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; }
}




/* ==========================================================================
   요금제 (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: flex;
    gap: 24px;
    align-items: stretch;
}

/* 애니메이션 border 래퍼 (프로 카드 전용) */
.pc_border_wrap {
    flex: 1;
    position: relative;
    border-radius: 22px;
    padding: 1.5px;
    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 { 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; }
}
