/**
 * coupairfrm_up - 상세보기(View) 스타일
 * 3단 레이아웃: 왼쪽 캐릭터 / 중앙 전신 / 오른쪽 캐릭터
 */

/* ===== 메인 컨테이너 ===== */
.cfrm-view {
    --char1-hair: #333333;
    --char1-skin: #FFE0BD;
    --char1-eye1: #4169E1;
    --char1-eye2: #4169E1;
    --char1-etc: #888888;
    --char2-hair: #333333;
    --char2-skin: #FFE0BD;
    --char2-eye1: #4169E1;
    --char2-eye2: #4169E1;
    --char2-etc: #888888;
    padding: 10px 25px 0px;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.cfrm-bg {
    width: 100vw;
    height: 100vh;
    background-size: cover;
    position: fixed;
    z-index: -1;
}

/* 화이트 테마 */
.cfrm-view.theme-white {
    background: linear-gradient(0deg, rgb(255, 255, 255) 40%, transparent 100%);
    color: #333;
}

.cfrm-view.theme-white .ra0-content blockquote,
.cfrm-view.theme-white .ra0-content {
    color: #333;
}


/* 블랙 테마 */
.cfrm-view.theme-black {
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 40%, transparent 100%);
    color: #eee;
}

.cfrm-view.theme-black .ra0-content blockquote,
.cfrm-view.theme-black .ra0-content {
    color: #eee;
}

/* 투명 테마 - 화이트 테마의 글자색/UI는 그대로 쓰고 배경만 투명하게 (뒤 배경이 그대로 비쳐 보임) */
.cfrm-view.theme-transparent {
    background: transparent;
}

/* ===== 헤더 (뒤로가기, BGM, AU썸네일, 메뉴) ===== */
.cfrm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cfrm-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cfrm-header-center {
    flex: 1;
    text-align: center;
}

.cfrm-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 뒤로가기 버튼 */
.cfrm-btn-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cfrm-btn-back:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

/* BGM 컨트롤 */
.cfrm-bgm-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 6px 12px;
}

.cfrm-bgm-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cfrm-bgm-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cfrm-bgm-btn.playing {
    color: var(--primary-color, #6366f1);
}

.cfrm-bgm-volume-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cfrm-bgm-slider {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 12px 8px;
    display: none;
    z-index: 100;
}

.cfrm-bgm-slider.open {
    display: block;
}

.cfrm-bgm-slider input[type="range"] {
    writing-mode: vertical-lr;
    direction: rtl;
    width: 8px;
    height: 80px;
    cursor: pointer;
    -webkit-appearance: none;
    background: transparent;
}

.cfrm-bgm-slider input[type="range"]::-webkit-slider-track {
    width: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.cfrm-bgm-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary-color, #6366f1);
    border-radius: 50%;
    cursor: pointer;
    margin-left: -5px;
}

.cfrm-bgm-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cfrm-bgm-name i {
    margin-right: 4px;
    opacity: 0.7;
}

/* 로고/타이틀 영역 (별도 행) */
.cfrm-logo-area {
    width: 100%;
    text-align: center;
    color: var(--white);
    text-shadow: 0 0 3px var(--black), 0 0 10px rgb(from var(--gray-700) r g b / 70%), 0 0 20px rgb(from var(--white) r g b / 70%);
}

.cfrm-main-logo {
    max-height: 200px;
    object-fit: contain;
}

.cfrm-main-title {
    font-size: 8.5em;
    font-weight: 700;
    margin: 0;
    color: white;
    line-height: 1;
}

.cfrm-subtitle {
    font-size: 14px;
    font-family: pretendard;
    opacity: 0.7;
    margin-bottom: 8px;
    letter-spacing: 15px;
    translate: 15px;
}

/* AU 원형 썸네일 */
.cfrm-au-thumbs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cfrm-au-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cfrm-au-thumb:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.cfrm-au-thumb.active {
    border-color: var(--primary-color, #6366f1);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4);
}

.cfrm-au-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cfrm-au-thumb-text {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.cfrm-more-menu.open {
    display: block;
}

/* 더보기 메뉴 */
.cfrm-more-dropdown {
    position: relative;
}

button#moreToggleBtn {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 6px;
    background: rgb(from var(--btn-primary-bg) r g b / 30%);
    border: 1px solid rgb(from var(--btn-primary-text) r g b / 50%);
    color: var(--btn-primary-text);
}

.cfrm-more-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 140px;
    background: var(--card-bg-color);
    border: 1px solid var(--form-border-color);
    border-radius: var(--form-border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.theme-black .cfrm-more-menu {
    background: #374151;
    border-color: #4b5563;
}

.cfrm-more-menu .cfrm-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    border: 0;
    background: transparent;
    color: var(--content-font-color);
    text-decoration: none;
    border-bottom: 1px solid var(--form-border-color);
}

.cfrm-more-menu .cfrm-menu-item:last-child {
    border-bottom: none;
}

.cfrm-more-menu .cfrm-menu-item:hover {
    background: var(--container-bg-color);
}

.theme-black .cfrm-more-menu .cfrm-menu-item {
    color: #f9fafb;
    border-color: #4b5563;
}

.theme-black .cfrm-more-menu .cfrm-menu-item:hover {
    background: #4b5563;
}

/* ===== 3단 메인 레이아웃 ===== */
.cfrm-main {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    gap: 10px;
    width: 100%;
    flex: 1;
    min-height: 0;
}

/* ===== 캐릭터 프로필 (좌/우) ===== */
.cfrm-char {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    overflow: visible;
}

/* ===== ID 카드 스타일 ===== */
.cfrm-id-card {
    position: relative;
    width: 380px;
    min-height: 220px;
    background: linear-gradient(135deg, rgb(from var(--gray-50, #f3f4f6) r g b / 0.7) 0%, var(--gray-300, #d1d5db) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border: 1px solid var(--gray-300, #d1d5db);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.cfrm-id-card:hover {
    transform: translateY(-5px);
}

/* ID 카드 상단/하단 패턴 - 머리 색상(--id-accent-color) + 흰색 줄무늬 */
/* .cfrm-id-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    background: repeating-linear-gradient(
        45deg,
        var(--id-accent-color, #333),
        var(--id-accent-color, #333) 8px,
        color-mix(in srgb, var(--id-accent-color, #333) 30%, white) 8px,
        color-mix(in srgb, var(--id-accent-color, #333) 30%, white) 16px
    );
    opacity: 0.1;
    z-index: 0;
}

.cfrm-id-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: repeating-linear-gradient(
        45deg,
        var(--id-accent-color, #333),
        var(--id-accent-color, #333) 8px,
        color-mix(in srgb, var(--id-accent-color, #333) 30%, white) 8px,
        color-mix(in srgb, var(--id-accent-color, #333) 30%, white) 16px
    );
    opacity: 0.1;
    z-index: 0;
} */

/* 홀로그램 배지 — 무지개 conic 그라데이션 + 대시 링 + 대각선 시닝 (STUDENT 카드와 동일 기법) */
.cfrm-id-hologram {
    position: absolute;
    top: 40px;
    right: 16px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: conic-gradient(from 180deg, #8b7abc, #80e0fd, #b9a4e8, #f5e6a3, #f4a6c1, #8b7abc);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.6), 0 0 0 2.5px rgba(240,192,96,0.55);
    z-index: 3;
}

.cfrm-id-hologram::before {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px dashed rgba(240,192,96,0.55);
    border-radius: 10px;
    opacity: 0.6;
}

.cfrm-id-hologram::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, transparent 35%, rgba(255,255,255,0.9) 50%, transparent 65%);
    background-size: 280% 280%;
    animation: cfrmHoloBadgeSheen 3.2s linear infinite;
}

@keyframes cfrmHoloBadgeSheen {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* ID 카드 내용 */
.cfrm-id-body {
    position: relative;
    z-index: 1;
}

.cfrm-id-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800, #1f2937);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.cfrm-id-en-name {
    font-size: 11px;
    color: var(--gray-500, #6b7280);
    font-style: italic;
}

/* 하단 서브 이름 (한글) - 영문 이름 스타일 적용 */
.cfrm-id-sub-name {
    font-size: 11px;
    color: var(--gray-500, #6b7280);
    font-style: italic;
}

/* ID 카드 헤더 (사진 + 정보) */
.cfrm-id-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* 사진 영역 */
.cfrm-id-head {
    width: 90px;
    height: 110px;
    flex-shrink: 0;
    border: 2px solid var(--gray-400, #9ca3af);
    background: #fff;
    padding: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.cfrm-id-head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 사진 코너 장식 */
.cfrm-id-head::before,
.cfrm-id-head::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: var(--gray-500, #6b7280);
    border-style: solid;
}

.cfrm-id-head::before {
    top: -2px;
    left: -2px;
    border-width: 2px 0 0 2px;
}

.cfrm-id-head::after {
    bottom: -2px;
    right: -2px;
    border-width: 0 2px 2px 0;
}

/* 정보 영역 */
.cfrm-id-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cfrm-id-info-row {
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: var(--gray-700, #374151);
    border-bottom: 1px dashed var(--gray-300, #d1d5db);
}

.cfrm-id-info-row:last-child {
    border-bottom: none;
}

.cfrm-id-info-row::before {
    content: "✶";
    color: var(--primary-color, #6366f1);
    margin-right: 8px;
    font-size: 10px;
}

.cfrm-id-info-label {
    font-weight: 600;
    margin-right: 6px;
    color: var(--gray-600, #4b5563);
}

.cfrm-id-info-value {
    flex: 1;
}

/* ID 카드 푸터 */
.cfrm-id-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--gray-500, #6b7280);
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--gray-300, #d1d5db);
}

.cfrm-id-footer .cfrm-id-en-name {
    text-align: left;
}

.cfrm-id-footer .cfrm-id-number {
    text-align: right;
}

/* 다크 테마 ID 카드 */
.theme-black .cfrm-id-card {
    background: linear-gradient(135deg, rgba(64, 67, 70, 0.70) 0%, #151619 100%);
    border-color: #3d3d3d;
}

.theme-black .cfrm-id-themis {
    background: transparent;
    border: none;
}

.theme-black .cfrm-id-name {
    color: #f9fafb;
}

.theme-black .cfrm-id-en-name,
.theme-black .cfrm-id-sub-name {
    color: #9ca3af;
}

.theme-black .cfrm-id-head {
    border-color: #6b7280;
    background: #374151;
}

.theme-black .cfrm-id-info-row {
    color: #e5e7eb;
    border-color: #4b5563;
}

.theme-black .cfrm-id-info-label {
    color: #9ca3af;
}

.theme-black .cfrm-id-footer {
    color: #9ca3af;
    border-color: #4b5563;
}

/* 컬러 팔레트 (가로 배열) */
.cfrm-colors {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.cfrm-color {
    font-size: 40px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    cursor: default;
    transition: transform 0.2s ease;
}

.cfrm-color:hover {
    transform: scale(1.5);
}

/* 태그 */
.cfrm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}

.cfrm-tag {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
    cursor: default;
    transition: transform 0.2s ease;
}

.cfrm-tag:hover {
    transform: scale(1.1);
}

/* 대사 */
.cfrm-quote {
    max-width: 100%;
    position: relative;
    width: 100%;
    font-size: 30px;
    font-style: italic;
    font-family: chosunsm;
    line-height: 1.5;
    text-align: center;
    color: var(--white);
    text-shadow: 0 0 3px var(--black), 0 0 10px rgb(from var(--gray-700) r g b / 70%), 0 0 20px rgb(from var(--white) r g b / 70%);
    margin: 50px 0 20px;
}

.cfrm-quote::before {
    content: "“";
    font-size: 60px;
    line-height: 1;
    position: absolute;
    opacity: 0.3;
    top: -15px;
    translate: -50%;
}

/* 간단 프로필 */
.cfrm-char-profile {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    text-align: justify;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    margin-top: 15px;
}

/* 기존 호환용 */
.cfrm-character {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 두상 이미지 */
.cfrm-char-head {
    text-align: center;
}

.cfrm-char-head img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--form-border-color);
}

.theme-black .cfrm-char-head img {
    border-color: #4b5563;
}

/* 캐릭터 이름 */
.cfrm-char-name-box {
    text-align: center;
}

.cfrm-char-name-main {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.cfrm-char-name-en {
    font-size: 13px;
    opacity: 0.6;
    margin-top: 4px;
}

/* 캐릭터 정보 */
.cfrm-char-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cfrm-char-info-row {
    display: flex;
    font-size: 13px;
}

.cfrm-char-info-label {
    width: 70px;
    flex-shrink: 0;
    font-weight: 600;
    opacity: 0.8;
}

.cfrm-char-info-value {
    flex: 1;
}

/* 한마디 */
.cfrm-char-quote {
    padding: 12px 16px;
    font-size: 13px;
    font-style: italic;
    opacity: 0.8;
    border-left: 3px solid var(--primary-color);
    background: var(--container-bg-color);
    border-radius: 0 var(--form-border-radius) var(--form-border-radius) 0;
}

.theme-black .cfrm-char-quote {
    background: rgba(255, 255, 255, 0.05);
}

/* 컬러 팔레트 */
.cfrm-char-colors {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.cfrm-color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.theme-black .cfrm-color-dot {
    border-color: rgba(255, 255, 255, 0.2);
}

/* 캐릭터 태그 */
.cfrm-char-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.cfrm-char-tag {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
}

/* 캐릭터 갤러리 */
.cfrm-char-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cfrm-char-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--form-border-radius);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cfrm-char-gallery img:hover {
    transform: scale(1.05);
}

/* ===== 중앙 전신 이미지 + 양쪽 캐릭터 이미지 ===== */
.cfrm-body-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    position: relative;
}

.cfrm-body-area .cfrm-logo-area {
    flex-shrink: 0;
}

.cfrm-body-content {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.cfrm-body-images {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex: 1;
    max-height: 100%;
    min-height: 0;
}

/* 캐릭터 대표 이미지 (전신 영역 양쪽) */
.cfrm-char-images {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 왼쪽: 위에서 아래로 (상단 정렬) */
.cfrm-images-left {
    flex-direction: column;
    justify-content: flex-start;
    position: absolute;
    top: 120px;
    left: 0;
    z-index: 1;
}

/* 오른쪽: 아래에서 위로 (하단 정렬) */
.cfrm-images-right {
    flex-direction: column;
    justify-content: flex-end;
    position: absolute;
    bottom: 15px;
    right: 0;
    z-index: 1;
}

.cfrm-char-img {
    position: relative;
    width: 160px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.theme-black .cfrm-char-img {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cfrm-char-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.cfrm-char-img:hover img {
    transform: scale(1.1);
}

/* 캐릭터 이미지 캡션 */
.cfrm-char-img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 6px 4px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 30%, transparent 60%);
    color: #fff;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 이미지 모달 */
.cfrm-img-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
}

.cfrm-img-modal.open {
    display: flex;
}

.cfrm-img-modal-content {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
}

.cfrm-img-modal-caption {
    color: #fff;
    font-size: 14px;
    text-align: center;
    max-width: 80%;
}

.cfrm-img-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cfrm-img-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.cfrm-body-img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.cfrm-body-img:hover {
    transform: scale(1.05);
    z-index: 10;
}

.cfrm-body-img:hover img {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
}

.theme-black .cfrm-body-img:hover img {
    filter: drop-shadow(0 0 15px rgba(200, 200, 255, 0.5)) drop-shadow(0 0 30px rgba(150, 150, 255, 0.3));
}

.cfrm-body-images img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.cfrm-body-img:nth-child(2) {
    margin-left: -150px;
}

/* 본문 내용 */
.cfrm-content {
    line-height: 1.8;
    font-size: 15px;
}

.cfrm-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--form-border-radius);
}

/* ===== 하단 키워드 ===== */
.cfrm-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 15px 0;
}

.cfrm-keyword {
    padding: 6px 14px;
    background: var(--container-bg-color);
    border-radius: 9999px;
    font-size: 13px;
    color: var(--content-font-color);
    text-decoration: none;
}

.cfrm-keyword:hover {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

/* ===== 하단 컨트롤 (수정/삭제/목록 버튼) ===== */
.cfrm-view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--form-border-color);
}

.theme-black .cfrm-view-controls {
    border-color: #374151;
}

.cfrm-view-controls .cfrm-left,
.cfrm-view-controls .cfrm-right {
    display: flex;
    gap: 8px;
}

/* 대표 지정 버튼 */
.cfrm-btn-main {
    background: #10b981;
    color: #fff;
}

.cfrm-btn-main:hover {
    background: #059669;
}

.cfrm-btn-main.is-main {
    background: #f59e0b;
}

.cfrm-btn-main.is-main:hover {
    background: #d97706;
}

.cfrm-footer {
    position: absolute;
    bottom: 0;
    left: 50%;
    translate: -50%;
}

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
    .cfrm-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cfrm-char {
        order: 1;
    }

    .cfrm-body-area {
        order: 0;
    }

    .cfrm-char-right {
        order: 2;
    }
}

@media (max-width: 640px) {
    .cfrm-view {
        padding: 16px;
    }

    .cfrm-header {
        flex-direction: column;
        gap: 16px;
    }

    .cfrm-header-left,
    .cfrm-header-right {
        width: 100%;
        justify-content: center;
    }

    .cfrm-pair-title {
        font-size: 20px;
    }

    .cfrm-char-head img {
        max-width: 140px;
        max-height: 140px;
    }

    .cfrm-char-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .cfrm-view-controls {
        flex-direction: column;
        gap: 12px;
    }

    .cfrm-view-controls .cfrm-left,
    .cfrm-view-controls .cfrm-right {
        width: 100%;
        justify-content: center;
    }
}

/* ===== BGM 플레이어 (iframe) ===== */
.group-bgm {
    display: inline-flex;
    align-items: center;
}

div#gruop_bgm_con {
    display: inline-flex;
}

#gruop_bgm_frame {
    width: 160px;
    height: 40px;
    border: none;
    background: transparent;
}

/* ===== THEMIS 스타일 ID 카드 (재디자인) ===== */
.cfrm-id-wrap {
    perspective: 1600px;
}

.cfrm-id-themis {
    width: 400px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.cfrm-id-themis:hover {
    transform: translateY(-4px);
}

/* THEMIS 앞면 홀로그램 배지는 다시 숨김 (전체 카드 시닝 효과만 유지) */
.cfrm-id-themis .cfrm-id-hologram {
    display: none;
}

/* 카드 전체 표면 홀로그램 — 성능 때문에 mix-blend-mode 제거하고(브라우저가 매 프레임
   전체 레이어를 다시 합성하게 만드는 원인) 스침 영역도 줄임. 뒤집혀서 안 보이는 면은
   애니메이션 자체를 멈춰서 항상 절반만 돌아가게 함 */
.cfrm-id-face::after {
    content: "";
    position: absolute;
    inset: -15%;
    background: linear-gradient(
        115deg,
        transparent 40%,
        rgba(155,138,251,0.10) 46%,
        rgba(255,255,255,0.20) 50%,
        rgba(240,192,96,0.10) 54%,
        transparent 60%
    );
    background-size: 250% 250%;
    pointer-events: none;
    z-index: 3;
    animation: cfrmHoloSheen 6.5s ease-in-out infinite;
    will-change: background-position;
}

.cfrm-id-card.is-flipped .cfrm-id-front::after {
    animation-play-state: paused;
}
.cfrm-id-card:not(.is-flipped) .cfrm-id-back::after {
    animation-play-state: paused;
}
/* 뒤집혀서 안 보이는 뒷면의 QR닷 반짝임도 같이 정지 */
.cfrm-id-card:not(.is-flipped) .cfrm-id-qd.is-on::after,
.cfrm-id-card:not(.is-flipped) .cfrm-sid-qd.is-on::after {
    animation-play-state: paused;
}

@keyframes cfrmHoloSheen {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

.cfrm-id-flip-inner {
    display: grid;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}

.cfrm-id-card.is-flipped .cfrm-id-flip-inner {
    transform: rotateY(180deg);
}

.cfrm-id-face {
    grid-area: 1 / 1;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cfrm-id-front {
    position: relative;
    background: #13151d;
    display: flex;
    flex-direction: column;
}

.cfrm-id-left-logo {
    width: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 2px solid rgba(155,138,251,0.35);
    background: rgba(155,138,251,0.06);
}

.cfrm-id-left-logo span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #d8d5ce;
}

.cfrm-id-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cfrm-id-back {
    transform: rotateY(180deg);
    background: #13151d;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* 상단 KOREA HQ 바 (전체 폭) */
.cfrm-id-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 1;
}


.cfrm-id-hq-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: linear-gradient(90deg, rgb(from var(--id-accent-color, #9b8afb) r g b / 0.18), transparent);
    border-bottom: 1px solid rgba(155,138,251,0.14);
    font-size: 9px;
    letter-spacing: 0.12em;
    color: rgba(216,213,206,0.55);
}

.cfrm-id-hq-bar i {
    color: var(--id-accent-color, #9b8afb);
    opacity: 0.6;
    font-size: 12px;
}

.cfrm-id-themis .cfrm-id-body {
    padding: 14px 18px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cfrm-id-themis .cfrm-id-name {
    font-size: 15px;
    font-weight: 500;
    color: #d8d5ce;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 2px;
}

.cfrm-id-codename {
    font-size: 10px;
    color: #7a7770;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.cfrm-id-themis .cfrm-id-header {
    gap: 14px;
}

.cfrm-id-themis .cfrm-id-head {
    width: 88px;
    height: 108px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: linear-gradient(160deg,#181b25,#0e1017);
    padding: 0;
    box-shadow: none;
    overflow: hidden;
}

.cfrm-id-themis .cfrm-id-head::before,
.cfrm-id-themis .cfrm-id-head::after {
    display: none;
}

.cfrm-id-themis .cfrm-id-info-row {
    padding: 4px 0;
    font-size: 11px;
    color: #a8a59e;
    border-bottom: none;
}

.cfrm-id-themis .cfrm-id-info-row::before {
    content: "\2726";
    color: var(--id-accent-color, #9b8afb);
    font-size: 9px;
}

.cfrm-id-themis .cfrm-id-info-label {
    color: #d8d5ce;
    font-weight: 500;
}

/* 하단 바코드 푸터 */
.cfrm-id-themis .cfrm-id-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.06);
}

.cfrm-id-barcode {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 16px;
}

.cfrm-id-barcode span {
    display: block;
    height: 100%;
    background: #d8d5ce;
    opacity: 0.8;
}

.cfrm-id-themis .cfrm-id-number {
    color: var(--id-accent-color, #9b8afb);
    font-weight: 500;
}

/* 뒷면 */
.cfrm-id-back-strip {
    height: 26px;
    width: 100%;
    background: #9b8afb !important;
}

.cfrm-id-back-wm {
    font-size: 160px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.006);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-22deg);
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
}


.cfrm-id-back-cnt {
    flex: 1;
    padding: 12px 18px 14px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.cfrm-id-back-lg {
    margin-bottom: 8px;
}

.cfrm-id-back-lgn {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #d8d5ce;
}

.cfrm-id-back-lgs {
    font-size: 8px;
    letter-spacing: 0.1em;
    color: #7a7770;
}

.cfrm-id-back-quote {
    font-size: 10px;
    color: #a8a59e;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 8px;
}

.cfrm-id-back-tm-meta {
    font-size: 8px;
    line-height: 1.7;
    color: #6f6d68;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.cfrm-id-back-tm {
    font-size: 8px;
    line-height: 1.7;
    color: #6f6d68;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
    text-align: justify;
    position: relative;
    z-index: 1;
}

.cfrm-id-back-info .cfrm-id-info-row {
    font-size: 10px;
    color: #a8a59e;
    padding: 2px 0;
}

.cfrm-id-back-info .cfrm-id-info-row::before {
    content: "\2726";
    color: var(--id-accent-color, #9b8afb);
    font-size: 8px;
}

.cfrm-id-back-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 6px 0 4px;
}

.cfrm-id-back-tag {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    color: #d8d5ce;
}

.cfrm-id-back-sg {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
}

.cfrm-id-back-sl {
    font-size: 7px;
    letter-spacing: 0.08em;
    color: #6f6d68;
    margin-bottom: 2px;
}

.cfrm-id-back-sln {
    width: 110px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.cfrm-id-back-cn {
    font-size: 9px;
    color: #a8a59e;
    font-style: italic;
}

.cfrm-id-back-barcode {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 16px;
    margin-top: auto;
}

.cfrm-id-back-barcode span {
    display: block;
    height: 100%;
    background: #d8d5ce;
    opacity: 0.8;
}

.cfrm-id-back-bt {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.cfrm-id-back-ft {
    font-size: 8px;
    color: #7a7770;
    letter-spacing: 0.02em;
}

.cfrm-id-back-qr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 5px);
    grid-template-rows: repeat(6, 5px);
    gap: 1px;
    padding: 5px;
    background: #13151d;
    border: 1px solid rgba(155,138,251,0.4);
    border-radius: 4px;
}

.cfrm-id-back-qr .cfrm-id-hologram {
    display: none;
}

.cfrm-id-qd {
    position: relative;
    overflow: hidden;
}

.cfrm-id-qd.is-on::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -30%;
    width: 220%;
    height: 220%;
    background: linear-gradient(
        135deg,
        rgba(155,138,251,0.3) 0%,
        rgba(94,230,184,0.35) 22%,
        rgba(255,255,255,0.55) 42%,
        rgba(255,255,255,0.55) 58%,
        rgba(240,192,96,0.35) 78%,
        rgba(232,136,176,0.3) 100%
    );
    background-size: 320% 320%;
    pointer-events: none;
    animation: cfrmQdSheen 4s cubic-bezier(.45,.05,.55,.95) infinite;
}

@keyframes cfrmQdSheen {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.cfrm-id-qd {
    width: 5px;
    height: 5px;
    border-radius: 1.5px;
}



/* =========================================================
   STUDENT 카드 스타일 (여청 학생증) — 목업과 동일한 고정 컬러셋
   머리색(--id-accent-color)에 기대지 않고, 캐릭터별 고정 팔레트(sid-navy / sid-rose)를 사용
   ========================================================= */
.cfrm-id-student {
    width: 400px;
    aspect-ratio: 1.586 / 1;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.sid-navy {
    --sid-panel: #f9f9fc;
    --sid-deep: #2f5bc7;
    --sid-mid: #6a92f0;
    --sid-ink: #141c30;
    --sid-gold: #e0c04f;
    --sid-gold-soft: #f8ecc0;
    --sid-label: #3f63d0;
}
.sid-rose {
    --sid-panel: #fdf6fa;
    --sid-deep: #d6337a;
    --sid-mid: #ee85b3;
    --sid-ink: #3a1530;
    --sid-gold: #f0c0da;
    --sid-gold-soft: #ffe9f4;
    --sid-label: #d6337a;
}

.cfrm-id-student:hover {
    transform: translateY(-4px);
}

.cfrm-id-student .cfrm-id-flip-inner {
    height: 100%;
}

.cfrm-id-student .cfrm-id-face {
    height: 100%;
}

/* 도트 텍스처는 성능 문제(11px 타일이 홀로그램 애니메이션과 같은 레이어에서
   매 프레임 다시 계산되며 렉을 유발)로 제거함 */

.cfrm-sid-front,
.cfrm-sid-back {
    background: var(--sid-panel);
    position: relative;
}

/* ---- 이중 프레임 + 코너 마크 ---- */
.cfrm-sid-frame {
    position: absolute;
    inset: 7px;
    border: 1px solid var(--sid-gold);
    border-radius: 8px;
    z-index: 7;
    pointer-events: none;
}
.cfrm-sid-frame::after {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid var(--sid-gold);
    opacity: 0.5;
    border-radius: 6px;
}
.cfrm-sid-corner {
    position: absolute;
    width: 7px;
    height: 7px;
    z-index: 8;
    pointer-events: none;
}
.cfrm-sid-corner::before, .cfrm-sid-corner::after {
    content: "";
    position: absolute;
    background: var(--sid-gold);
}
.cfrm-sid-corner::before { width: 100%; height: 1px; top: 50%; left: 0; transform: translateY(-50%) rotate(45deg); }
.cfrm-sid-corner::after { width: 1px; height: 100%; left: 50%; top: 0; transform: translateX(-50%) rotate(45deg); }
.cfrm-sid-corner.tl { top: 3px; left: 3px; }
.cfrm-sid-corner.tr { top: 3px; right: 3px; }
.cfrm-sid-corner.bl { bottom: 3px; left: 3px; }
.cfrm-sid-corner.br { bottom: 3px; right: 3px; }

/* ---- 앞면: 헤더 ---- */
.cfrm-sid-content {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 13px 15px 4px;
    min-height: 0;
}

.cfrm-sid-header {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--sid-deep);
    position: relative;
}
.cfrm-sid-header::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -2.5px; height: 1px;
    background: var(--sid-gold); opacity: 0.65;
}
.cfrm-sid-rule {
    position: absolute; left: 50%; bottom: -3.5px; width: 5px; height: 5px;
    background: var(--sid-gold); transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 0 0 2.5px var(--sid-panel);
}
.cfrm-sid-title-kr {
    font-family: 'Noto Serif KR', serif;
    font-weight: 900;
    font-size: 15px;
    color: var(--sid-deep);
    letter-spacing: 0.1em;
}
.cfrm-sid-title-en {
    font-family: 'Space Mono', monospace;
    font-size: 6.5px;
    letter-spacing: 0.22em;
    color: var(--sid-gold);
    margin-top: 2px;
}
.cfrm-sid-crest {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.cfrm-sid-crest svg { width: 26px; height: 26px; }
.cfrm-sid-word-kr {
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    font-size: 8.5px;
    color: var(--sid-deep);
    letter-spacing: 0.06em;
    margin-top: 1px;
}
.cfrm-sid-word-en {
    font-family: 'Space Mono', monospace;
    font-size: 5px;
    letter-spacing: 0.16em;
    color: var(--sid-gold);
    opacity: 0.9;
}

/* ---- 앞면: 사진 + 정보 ---- */
.cfrm-sid-body {
    flex: 1 1 auto;
    display: flex;
    gap: 13px;
    padding: 10px 0 6px;
    min-height: 0;
}
.cfrm-sid-photo {
    flex: 0 0 78px;
    height: 100%;
    border-radius: 5px;
    border: 1.5px solid var(--sid-gold);
    padding: 2px;
    position: relative;
    background: linear-gradient(155deg, var(--sid-mid), var(--sid-deep));
    overflow: hidden;
}
.cfrm-sid-photo::before {
    content: "";
    position: absolute; inset: -3px; border: 1px solid var(--sid-gold); opacity: 0.35; border-radius: 8px;
}
.cfrm-sid-photo img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 3px; display: block;
}
.cfrm-sid-photo-ph {
    width: 100%; height: 100%; border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Mono', monospace; font-size: 6px; letter-spacing: 0.18em;
    color: rgba(255,255,255,0.65);
}
.cfrm-sid-info {
    flex: 1 1 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.cfrm-sid-watermark {
    position: absolute; top: -8px; right: -10px; width: 100px; height: 100px;
    opacity: 0.08; z-index: 0; pointer-events: none;
}
.cfrm-sid-name-block { position: relative; z-index: 1; }
.cfrm-sid-lbl {
    font-family: 'Noto Sans KR', sans-serif; font-weight: 700; font-size: 7.5px;
    color: var(--sid-label);
    letter-spacing: 0.08em; margin-bottom: 2px;
    display: flex; align-items: center; gap: 4px;
}
.cfrm-sid-lbl::before { content: ""; width: 3px; height: 3px; background: var(--sid-gold); transform: rotate(45deg); display: inline-block; }
.cfrm-sid-kr {
    font-family: 'Noto Serif KR', serif; font-weight: 700; font-size: 14px;
    color: var(--sid-ink); letter-spacing: 0.06em; line-height: 1.15;
}
.cfrm-sid-en {
    font-family: 'Space Mono', monospace; font-size: 8px;
    color: var(--sid-deep); opacity: 0.85; letter-spacing: 0.05em; margin-top: 1px;
}
.cfrm-sid-fields {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px;
    padding-top: 6px; border-top: 1px dashed var(--sid-gold);
}
.cfrm-sid-field { display: flex; flex-direction: column; gap: 1px; padding-bottom: 4px; border-bottom: 1px dotted var(--sid-gold); }
.cfrm-sid-flbl { font-family: 'Noto Sans KR', sans-serif; font-weight: 700; font-size: 6.5px; color: var(--sid-label); letter-spacing: 0.06em; }
.cfrm-sid-fval { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 9.5px; color: var(--sid-ink); }

/* ---- 앞면: 하단 곡선 밴드 ---- */
.cfrm-sid-swoop {
    flex: 0 0 32%;
    position: relative;
    width: 100%;
}
.cfrm-sid-swoop-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cfrm-sid-swoop-content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding-bottom: 4%;
}
.cfrm-sid-star { width: 11px; height: 11px; }
.cfrm-sid-school-kr { font-family: 'Noto Serif KR', serif; font-weight: 700; font-size: 10.5px; color: #fff; letter-spacing: 0.08em; }
.cfrm-sid-school-en { font-family: 'Space Mono', monospace; font-size: 5.5px; letter-spacing: 0.2em; color: var(--sid-gold-soft); margin-top: -1px; }
.cfrm-sid-holo {
    width: 17px; height: 17px; border-radius: 4px; position: relative; overflow: visible;
    background: conic-gradient(from 180deg, #8b7abc, #80e0fd, #b9a4e8, #f5e6a3, #f4a6c1, #8b7abc);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.6), 0 0 0 2px var(--sid-gold-soft);
    margin-top: 2px;
}
.cfrm-sid-holo::before {
    content: ""; position: absolute; inset: -4px; border: 1px dashed var(--sid-gold-soft); border-radius: 7px; opacity: 0.55;
}
.cfrm-sid-holo::after {
    content: ""; position: absolute; inset: 0; border-radius: 4px;
    background: linear-gradient(135deg, transparent 35%, rgba(255,255,255,0.9) 50%, transparent 65%);
    background-size: 280% 280%;
    animation: cfrmSidHoloSheen 3.2s linear infinite;
}
@keyframes cfrmSidHoloSheen {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* ---- 뒷면 ---- */
.cfrm-sid-strip {
    flex: 0 0 6px;
    background: repeating-linear-gradient(90deg, var(--sid-deep) 0 3px, var(--sid-mid) 3px 6px);
    position: relative; z-index: 2;
}
.cfrm-sid-back .cfrm-sid-content {
    padding: 11px 15px 0;
}
.cfrm-sid-row2 { flex: 1 1 auto; display: flex; gap: 12px; min-height: 0; }
.cfrm-sid-left { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cfrm-sid-logo-line {
    font-family: 'Noto Serif KR', serif; font-weight: 700; font-size: 9.5px;
    color: var(--sid-deep); letter-spacing: 0.08em;
}
.cfrm-sid-logo-line small {
    display: block; font-family: 'Space Mono', monospace; font-weight: 400; font-size: 5.5px;
    letter-spacing: 0.18em; color: var(--sid-deep); opacity: 0.55; margin-top: 1px;
}
.cfrm-sid-terms {
    font-size: 6.6px; line-height: 1.5; color: var(--sid-ink); opacity: 0.82; text-align: justify; margin-top: 1px;
}
.cfrm-sid-meta {
    margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px;
    border-top: 1px dashed var(--sid-gold); padding-top: 5px;
}
.cfrm-sid-mlbl { font-family: 'Space Mono', monospace; font-size: 5.5px; letter-spacing: 0.12em; color: var(--sid-label); }
.cfrm-sid-mval { font-family: 'Space Mono', monospace; font-size: 7.5px; color: var(--sid-ink); font-weight: 700; }

.cfrm-sid-right { flex: 0 0 100px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding-top: 1px; }
.cfrm-sid-sign { width: 100%; text-align: center; }
.cfrm-sid-sign-line { height: 1px; background: var(--sid-ink); opacity: 0.35; margin-bottom: 2px; }
.cfrm-sid-sign-cap { font-family: 'Space Mono', monospace; font-size: 5.2px; letter-spacing: 0.12em; color: var(--sid-deep); opacity: 0.65; }
.cfrm-sid-qr {
    display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr);
    gap: 1.5px; width: 46px; height: 46px; padding: 4px; border: 1px solid var(--sid-gold); border-radius: 5px;
}
.cfrm-sid-qd { background: rgba(20,20,30,0.08); border-radius: 1px; position: relative; overflow: hidden; }
.cfrm-sid-qd.is-on { background: var(--sid-deep); }
.cfrm-sid-qd.is-on::after {
    content: ""; position: absolute; top: -30%; left: -30%; width: 220%; height: 220%;
    background: linear-gradient(135deg, #8b7abc, #80e0fd, #f5e6a3, #f4a6c1, #8b7abc);
    background-size: 320% 320%;
    animation: cfrmSidQdSheen 4s cubic-bezier(.45,.05,.55,.95) infinite;
    opacity: 0.85;
}
@keyframes cfrmSidQdSheen {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}
.cfrm-sid-idcode { font-family: 'Space Mono', monospace; font-size: 6.5px; color: var(--sid-deep); letter-spacing: 0.04em; text-align: center; }
.cfrm-sid-idcode b { display: block; font-size: 8px; color: var(--sid-ink); letter-spacing: 0.06em; }

.cfrm-sid-barcode-footer {
    flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 8px 15px 11px;
    position: relative; z-index: 2;
}
.cfrm-sid-barcode {
    flex: 1 1 auto; height: 18px; background: #fff; border-radius: 2px;
    display: flex; align-items: stretch; padding: 2px 5px; gap: 1px; border: 1px solid var(--sid-gold);
    overflow: hidden;
}
.cfrm-sid-barcode span { display: block; height: 100%; background: #1c1c22; flex-shrink: 0; flex-basis: 0; min-width: 0; }
.cfrm-sid-idcode-mini { font-family: 'Space Mono', monospace; font-size: 6px; color: var(--sid-deep); opacity: 0.7; letter-spacing: 0.05em; white-space: nowrap; }

.cfrm-sid-watermark-big {
    position: absolute; right: -26px; bottom: -6px;
    font-family: 'Noto Serif KR', serif; font-weight: 900; font-size: 46px;
    color: var(--sid-deep); opacity: 0.05; transform: rotate(-22deg);
    letter-spacing: 0.06em; white-space: nowrap; pointer-events: none; z-index: 1;
}
