/* ========================================
   아크그리드 전용 CSS
   ======================================== */

/* 전체 컨테이너 */
#arcGridApp {
    background: #0f111a;
    color: #cbd5e1;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 18px 20px 40px 20px;
    box-sizing: border-box;
    position: relative;
}

/* ========================================
   직업 선택 그리드
   ======================================== */
#jobGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 12px;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 20px;
    background: #11131e;
    margin-bottom: 24px;
}

.arc-job-item {
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 4px;
    transition: all 0.2s ease;
}

.arc-job-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    background: #07080e;
    border: 2px solid #1e293b;
    display: block;
    margin: 0 auto;
    transition: all 0.2s ease;
}

.arc-job-item span {
    display: block;
    font-size: 12px;
    margin-top: 8px;
    color: #64748b;
    font-weight: 500;
    transition: color 0.2s ease;
}

.arc-job-item.disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.arc-job-item:not(.disabled):hover img {
    border-color: #38bdf8;
    transform: translateY(-2px);
}

.arc-job-item:not(.disabled):hover span {
    color: #e2e8f0;
}

.arc-job-item.active img {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.arc-job-item.active span {
    color: #38bdf8;
    font-weight: 700;
}

/* ========================================
   직업 헤더 + 각인 탭
   ======================================== */
#classHeaderPanel {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%),
        linear-gradient(135deg, #161a29 0%, #0b0f18 100%);
    border: 1px solid #263247;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 12px;
    align-items: stretch;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

#selectedJobTitle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #e2f3ff;
    background: linear-gradient(180deg, #132033 0%, #0f1726 100%);
    border: 1px solid #314158;
    border-radius: 12px;
    box-sizing: border-box;
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 4px 14px rgba(0,0,0,0.22);
}

#styleToggleTabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    min-height: 52px;
    border: 1px solid #314158;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #0f1624 0%, #0b111c 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 4px 14px rgba(0,0,0,0.2);
}

#styleToggleTabs button {
    width: 100%;
    height: 100%;
    background: transparent;
    color: #7f8ea3;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-right: 1px solid #314158;
    transition: all 0.18s ease;
    box-sizing: border-box;
    letter-spacing: -0.1px;
}

#styleToggleTabs button:last-child {
    border-right: none;
}

#styleToggleTabs button:hover {
    color: #dbeafe;
    background: rgba(56, 189, 248, 0.06);
}

#styleToggleTabs button.active {
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(56,189,248,0.18) 0%, rgba(56,189,248,0.08) 100%),
        #182234;
    box-shadow:
        inset 0 0 0 1px rgba(90, 170, 255, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ========================================
   코어 선택 셀렉트
   ======================================== */
#coreSelectRow {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

#coreSelectRow select {
    width: 100%;
    background: #11131e;
    border: 1px solid #1e293b;
    color: #cbd5e1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.divider {
    border: none;
    border-top: 1px solid #1e293b;
    margin: 30px 0;
}

/* ========================================
   결과 카드 영역
   ======================================== */
#resultRow {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.card-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grade-bar {
    display: flex;
    gap: 4px;
}

.grade-btn {
    background: #161925;
    border: 1px solid #1e293b;
    color: #64748b;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.grade-btn.active.legendary {
    color: #ffb042;
    border-color: #ffb042;
    background: #241c15;
}

.grade-btn.active.relic {
    color: #e65c00;
    border-color: #e65c00;
    background: #291610;
}

.grade-btn.active.ancient {
    color: #bca47a;
    border-color: #bca47a;
    background: #211d17;
}

/* ========================================
   코어 카드
   ======================================== */
.core-card {
    background: #11131e;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 24px;
    min-height: 480px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.core-card.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 14px;
    border-style: dashed;
    background: #0d0f17;
}

.card-grade-sticker {
    position: absolute;
    top: 14px;
    left: -32px;
    width: 100px;
    height: 28px;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: #0f111a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.card-grade-sticker.legendary { background: #ffb042; }
.card-grade-sticker.relic     { background: #e65c00; }
.card-grade-sticker.ancient   { background: #bca47a; }

.card-title-row {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 15px;
}

.card-title-row.legendary { color: #ffb042; }
.card-title-row.relic     { color: #e65c00; }
.card-title-row.ancient   { color: #bca47a; }

.card-icon-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 1px rgba(255,255,255,.15),
        0 0 6px rgba(0,0,0,.5);
}

.card-icon-box img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

/* 전설 */
.card-icon-box.legendary {
    background: linear-gradient(135deg, #8d5a10, #c78a1e);
}

/* 유물 */
.card-icon-box.relic {
    background: radial-gradient(circle at 50% 30%, #ff8c00 0%, #e65c00 50%, #8a2500 100%);
    border: 1px solid rgba(255, 140, 0, 0.3);
    box-sizing: border-box;
}

/* 고대 */
.card-icon-box.ancient {
    background: linear-gradient(135deg, #b9a77a, #efe1a9);
}

.card-icon-label {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

.card-basic-info {
    font-size: 12px;
    color: #64748b;
    line-height: 1.8;
}

.card-no-trade {
    position: absolute;
    top: 72px;
    right: 24px;
    color: #f43f5e;
    font-size: 12px;
    font-weight: bold;
}

/* ========================================
   카드 섹션
   ======================================== */
.card-section {
    border-top: 1px solid #1e293b;
    padding-top: 14px;
    margin-bottom: 16px;
}

.card-section:last-child {
    margin-bottom: 0;
}

.card-section-label {
    color: #38bdf8;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.card-section-value {
    color: #e2e8f0;
    font-size: 13px;
}

.card-section-gray {
    color: #64748b;
    font-size: 13px;
}

.points-highlight {
    color: #e2e8f0;
    font-weight: bold;
}

.points-number {
    color: #10b981;
    font-weight: 800;
}

.card-passive-condition {
    color: #f43f5e;
    font-size: 13px;
    font-weight: bold;
}

/* ========================================
   티어 옵션
   ======================================== */
.tier {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.tier-label {
    color: #eab308;
    font-weight: 700;
    margin-right: 6px;
}

.tier-desc {
    color: #e2e8f0;
    white-space: pre-line;
}

/* ========================================
   토스트 메시지
   ======================================== */
#arcGridToast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    background: rgba(15, 17, 26, 0.96);
    color: #38bdf8;
    border: 1px solid #334155;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 99999;
}

#arcGridToast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* ========================================
   모바일 전용 컴포넌트
   ======================================== */
.m-arc-section {
    background: linear-gradient(180deg, #141722 0%, #11131e 100%);
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 16px;
}

.m-arc-label {
    font-size: 12px;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-arc-label::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 14px;
    background: #38bdf8;
    border-radius: 2px;
}

.m-arc-select {
    width: 100%;
    background: #0d0f17;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.m-arc-select:focus {
    outline: none;
    border-color: #38bdf8;
}

.m-arc-select:active {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

.m-arc-select optgroup {
    background: #11131e;
    color: #64748b;
    font-weight: 700;
    font-size: 13px;
}

.m-arc-select optgroup option {
    color: #cbd5e1;
    font-weight: 400;
    font-size: 14px;
}

.m-arc-job-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m-arc-job-row .m-arc-select {
    flex: 1;
}

.m-arc-job-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0d0f17;
    border: 2px solid #334155;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.m-arc-job-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-arc-job-thumb:has(img) {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.m-arc-job-placeholder {
    color: #475569;
    font-size: 20px;
    font-weight: 700;
}

.m-arc-tabs {
    display: flex;
    gap: 0;
    background: #0d0f17;
    border: 1px solid #1e293b;
    border-bottom: 2px solid #334155;
    border-radius: 12px 12px 0 0;
    padding: 4px 4px 0 4px;
    position: relative;
}

.m-arc-tab {
    flex: 0 0 auto;
    min-width: 48px;
    padding: 10px 16px;
    background: rgba(13, 15, 23, 0.6);
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    color: #64748b;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    top: 2px;
}

.m-arc-tab:not(:first-child) {
    margin-left: -1px;
}

.m-arc-tab.active {
    flex: 1 1 auto;
    background: #161925;
    color: #e2e8f0;
    border-color: #334155;
    border-bottom: 2px solid #161925;
    z-index: 2;

    padding: 10px 18px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

.m-arc-tab.has-selection {
    color: #38bdf8;
}

.m-arc-tab:not(.active):hover {
    background: #161925;
    color: #94a3b8;
}


.m-arc-core-select {
    background: #161925;
    border: 1px solid #1e293b;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 12px;
    margin-top: -1px;
}

.m-arc-card-wrap {
    position: relative;
    background: linear-gradient(180deg, #141722 0%, #0f111a 100%);
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 2px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.m-arc-card-wrap .core-card {
    border: none;
    border-radius: 12px;
}

.m-arc-card-wrap .core-card.empty {
    border: 1px dashed #334155;
    background: #0d0f17;
    min-height: 120px;
}

.m-arc-grade-float {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 3px;
    z-index: 5;
}

.m-arc-grade-float .grade-btn {
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    background: rgba(22, 25, 37, 0.85);
    border: 1px solid #1e293b;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.m-arc-grade-float .grade-btn.active.legendary {
    color: #ffb042;
    border-color: #ffb042;
    background: rgba(36, 28, 21, 0.9);
}

.m-arc-grade-float .grade-btn.active.relic {
    color: #e65c00;
    border-color: #e65c00;
    background: rgba(41, 22, 16, 0.9);
}

.m-arc-grade-float .grade-btn.active.ancient {
    color: #bca47a;
    border-color: #bca47a;
    background: rgba(33, 29, 23, 0.9);
}

.m-arc-grade-float .grade-btn:active {
    transform: scale(0.93);
}

#mobileCard {
    min-height: auto;
    padding: 40px 18px 18px 18px;
}

#mobileCard.empty {
    padding: 18px;
}

/* ========================================
   반응형
   ======================================== */
@media (max-width: 768px) {

    .arc-pc-header {
        display: none;
    }

    #arcGridApp {
        padding: 16px 12px 24px 12px;
        border-radius: 10px;
    }

    #arcGridApp.mobile {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* PC 전용 요소 숨김 */
    #jobGrid,
    #coreSelectRow,
    .divider,
    #resultRow {
        display: none !important;
    }

    #classHeaderPanel {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    #selectedJobTitle {
        min-height: 46px;
        font-size: 18px;
    }

    #styleToggleTabs {
        min-height: 46px;
    }

    #styleToggleTabs button {
        font-size: 14px;
    }

    #styleToggleTabs button.active {
        transform: scale(0.97);
    }

    #arcGridToast {
        font-size: 13px;
        padding: 12px 16px;
        width: 80%;
        text-align: center;
    }

    #mobileCard .card-title-row {
        font-size: 14px;
        padding-left: 10px;
    }

    #mobileCard .card-no-trade {
        top: 60px;
        right: 16px;
        font-size: 11px;
    }

    #mobileCard .card-icon-box {
        width: 38px;
        height: 38px;
    }

#mobileCard .card-icon-box img {
    width: 38px;
    height: 38px;
}


    #mobileCard .card-icon-label {
        font-size: 12px;
    }

    #mobileCard .tier {
        font-size: 12px;
    }

    #mobileCard .tier-label {
        font-size: 12px;
    }
}




/* 직각 섹션 비활성/활성 */
.m-arc-style-section {
    position: relative;
}

.m-arc-style-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    background: #0d0f17;
    border: 1px solid #1e293b;
    border-radius: 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.m-arc-style-section #styleToggleTabs {
    display: none;
}

.m-arc-style-section.style-active .m-arc-style-disabled {
    display: none;
}

.m-arc-style-section.style-active #styleToggleTabs {
    display: grid;
}

/* 코어 탭 이모지 크게 */
.m-arc-tab {
    font-size: 22px;
}

.m-arc-tab.active {
    font-size: 18px;
}

/* 빈 카드 최소 높이 */
.m-arc-card-wrap .core-card.empty {
    min-height: 200px;
}


.hero-arc-grid {
    margin-bottom: 24px;
}


.hero-arc-grid {
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(56, 189, 248, 0) 60%),
        linear-gradient(180deg, #141722 0%, #11131e 100%);
    border: 1px solid #263247;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 4px 16px rgba(0,0,0,0.2);
}

.hero-arc-grid .p-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero-arc-grid .p-hero-left {
    width: 100%;
}

.hero-arc-grid .p-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-arc-grid .p-hero-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #bca47a;
    text-transform: uppercase;
}

.hero-arc-grid .p-hero-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-arc-grid .p-hero-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1a2744 0%, #0f172a 100%);
    border: 1px solid #314158;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 12px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

.hero-arc-grid .p-hero-icon img {
    display: block;
}

.hero-arc-grid .p-hero-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-arc-grid .p-hero-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #e2f3ff;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.hero-arc-grid .p-hero-subtitle {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    line-height: 1.3;
}

.hero-arc-grid .p-hero-desc {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .hero-arc-grid {
        padding: 16px 16px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .hero-arc-grid .p-hero-title-row {
        gap: 12px;
    }

    .hero-arc-grid .p-hero-icon {
        width: 56px;
        height: 56px;
        min-width: 56px;
        border-radius: 12px;
    }

    .hero-arc-grid .p-hero-title {
        font-size: 20px;
    }

    .hero-arc-grid .p-hero-subtitle {
        font-size: 12px;
    }

    .hero-arc-grid .p-hero-desc {
        font-size: 12px;
    }
}


..hero-arc-grid .p-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.hero-arc-grid .p-pill:nth-child(1) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #bca47a;
    background: rgba(188, 164, 122, 0.12);
    border: 1px solid rgba(188, 164, 122, 0.3);
}

.hero-arc-grid .p-pill:nth-child(2) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.10);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.hero-arc-grid .p-pill:nth-child(3) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.10);
    border: 1px solid rgba(167, 139, 250, 0.25);
}

@media (max-width: 768px) {
    .hero-arc-grid .p-hero-pills {
        gap: 6px;
    }

    .hero-arc-grid .p-pill {
        height: 26px;
        padding: 0 10px;
        font-size: 11px;
    }
}



@media (max-width: 768px) {
    .m-arc-style-section {
        position: relative;
    }

    .m-arc-style-disabled {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 46px;
        background: #0d0f17;
        border: 1px solid #1e293b;
        border-radius: 12px;
        color: #475569;
        font-size: 13px;
        font-weight: 600;
    }

    .m-arc-style-section #styleToggleTabs {
        display: none !important;
    }

    .m-arc-style-section.style-active .m-arc-style-disabled {
        display: none !important;
    }

    .m-arc-style-section.style-active #styleToggleTabs {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        min-height: 46px;
    }


.custom-core-select {
    display: none !important;
}

}

#coreSelectRow select,
.m-arc-select {
    font-size: 16px;
}

#coreSelectRow select option,
.m-arc-select option {
    font-size: 16px;
}

/* 코어 번호 배지 */
.core-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #1a1d29;
    border: 1px solid #2c3244;
    border-radius: 5px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    vertical-align: middle;
    margin: 0 4px 0 2px;
}

/* ========================================
   PC 해 코어 커스텀 드롭다운
   ======================================== */
.custom-core-select {
    position: relative;
    width: 100%;
}

.custom-core-trigger {
    width: 100%;
    background: #11131e;
    border: 1px solid #1e293b;
    color: #cbd5e1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    cursor: pointer;
    box-sizing: border-box;
    min-height: 46px;
    transition: all 0.2s ease;
}

.custom-core-trigger::after {
    content: "▼";
    margin-left: auto;
    font-size: 11px;
    color: #64748b;
}

.custom-core-select.open .custom-core-trigger {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.12);
}

.custom-core-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #11131e;
    border: 1px solid #263247;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    padding: 6px;
    display: none;
    z-index: 30;
    max-height: 280px;
    overflow-y: auto;
}

.custom-core-select.open .custom-core-menu {
    display: block;
}

.custom-core-option {
    width: 100%;
    background: transparent;
    border: none;
    color: #cbd5e1;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.custom-core-option:hover {
    background: rgba(56, 189, 248, 0.08);
    color: #ffffff;
}

.custom-core-option.active {
    background: rgba(56, 189, 248, 0.12);
    color: #ffffff;
}

.custom-core-option-icon {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 1.5em;
    line-height: 1;
}

.custom-core-option-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.core-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #1a1d29;
    border: 1px solid #2c3244;
    border-radius: 5px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    vertical-align: middle;
    flex-shrink: 0;
}


/* ========================================
   모바일 커스텀 코어 드롭다운
   ======================================== */
@media (max-width: 768px) {
    .m-custom-core-select {
        position: relative;
        width: 100%;
    }

    .m-custom-core-trigger {
        width: 100%;
        background: #0d0f17;
        border: 1px solid #334155;
        color: #cbd5e1;
        padding: 12px 14px;
        border-radius: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: flex-start;
        min-height: 46px;
        cursor: pointer;
        box-sizing: border-box;
        transition: all 0.2s ease;
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
    }

    .m-custom-core-trigger::after {
        content: "▼";
        margin-left: auto;
        font-size: 11px;
        color: #64748b;
    }

    .m-custom-core-select.open .m-custom-core-trigger {
        border-color: #38bdf8;
        box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
    }

    .m-custom-core-menu {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        background: #11131e;
        border: 1px solid #263247;
        border-radius: 10px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.4);
        padding: 6px;
        display: none;
        z-index: 40;
        max-height: 260px;
        overflow-y: auto;
    }

    .m-custom-core-select.open .m-custom-core-menu {
        display: block;
    }

    .m-custom-core-option {
        width: 100%;
        background: transparent;
        border: none;
        color: #cbd5e1;
        padding: 10px 12px;
        border-radius: 8px;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        transition: all 0.18s ease;
    }

    .m-custom-core-option:hover {
        background: rgba(56, 189, 248, 0.08);
        color: #ffffff;
    }

    .m-custom-core-option.active {
        background: rgba(56, 189, 248, 0.12);
        color: #ffffff;
    }

   .m-custom-core-option-icon {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 1.5em;
    line-height: 1;
}

.m-custom-core-trigger .custom-core-trigger-icon {
    font-size: 1.7em;
    line-height: 1;
}

    .m-custom-core-option-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.custom-core-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    line-height: 1;
}

.custom-core-trigger:disabled {
    background: #0d0f17;
    border-color: #1a2230;
    color: #475569;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.custom-core-trigger:disabled::after {
    color: #3b4454;
}

@media (max-width: 768px) {
    .m-arc-tab,
    .m-arc-tab.active,
    .m-arc-tab:active {
        transform: none !important;
        font-size: 16px !important;
        line-height: 1 !important;
    }
}

.custom-core-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 6px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 800;
     color: #f87171;
    border-top: 1px solid #243041;
}

.custom-core-group-title:first-child {
    border-top: none;
    margin-top: 0;
}

.custom-core-group-title img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.custom-core-group-title.chaos {
    color: #7dd3fc;
}

.custom-core-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 6px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #f87171;
    border-top: 1px solid #243041;
}

.custom-core-group-title:first-child {
    border-top: none;
    margin-top: 0;
}

.custom-core-group-title img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.custom-core-group-title.chaos {
    color: #7dd3fc;
}
