body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #1a1a1a;
    color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
}

.sidebar a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 1.2em;
    color: #818181;
    display: block;
    transition: 0.2s;
    cursor: pointer;
}

.sidebar a:hover {
    color: white;
    background: #1f1f1f;
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
}

.top-nav {
    background-color: #2c3e50;
    padding: 15px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

.menu-icon {
    font-size: 30px;
    cursor: pointer;
    margin-right: 20px;
    color: white;
}

.nav-title {
    font-weight: bold;
    font-size: 1.2em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.panel {
    background: #2c3e50;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: none;
    box-sizing: border-box;
    background: #ecf0f1;
    color: #333;
}

.btn-main {
    padding: 12px 16px;
    background: #e06b4f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-main:hover {
    opacity: 0.92;
}

.btn-small {
    width: 80px;
}

.login-btn {
    background: white;
    color: black;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.row {
    display: flex;
    gap: 10px;
}

.row-wrap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.empty-box {
    background: #2c3e50;
    padding: 18px;
    border-radius: 10px;
    color: #ddd;
    margin-bottom: 20px;
}

#chat-window {
    height: 450px;
    overflow-y: auto;
    background: #222;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 15px;
    line-height: 1.4;
    font-size: 14px;
    word-break: break-word;
    white-space: pre-wrap;
}

.user-msg {
    align-self: flex-end;
    background: #e74c3c;
    color: white;
    border-bottom-right-radius: 2px;
}

.bot-msg {
    align-self: flex-start;
    background: #34495e;
    color: white;
    border-bottom-left-radius: 2px;
}

.account-list {
    margin-top: 20px;
}

.account-box {
    background: #2c3e50;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 10px;
}

.card-item {
    background: #1f2d3a;
    padding: 10px;
    border-radius: 8px;
}

.card-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.card-actions input {
    margin: 0;
    text-align: center;
    padding: 8px;
}

.count-btn {
    background: #34495e;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.result-box {
    background: #2c3e50;
    padding: 20px;
    border-radius: 10px;
    margin-top: 10px;
    white-space: pre-wrap;
    line-height: 1.7;
}

.result-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 18px;
}

.trade-selection-list {
    display: grid;
    gap: 8px;
}

.trade-selection-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1f2d3a;
    padding: 10px;
    border-radius: 8px;
}

.trade-selection-row input[type="checkbox"] {
    width: auto !important;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
    background: none;
}

.trade-selection-label {
    flex: 1;
    margin: 0;
}

.trade-limit {
    width: 80px !important;
    margin: 0 !important;
    padding: 6px 8px !important;
}

/* ================================================
   ★ 내 정보 탭 전용 스타일
================================================ */

.profile-not-logged-in {
    color: #aaa;
    text-align: center;
    padding: 40px 0;
    font-size: 15px;
}

/* 상단 행: 아바타 + 스탯 */
.profile-top-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* 아바타 박스 */
.profile-avatar-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.profile-avatar-emoji {
    font-size: 72px;
    line-height: 1;
    background: #1f2d3a;
    border-radius: 50%;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e06b4f;
}

/* 닉네임 / 스탯 */
.profile-info-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.profile-nickname {
    font-size: 22px;
    font-weight: bold;
    color: #f0f0f0;
}

.profile-stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-stat-label {
    color: #aaa;
    font-size: 13px;
    min-width: 40px;
}

.profile-stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #e06b4f;
}

/* 경험치 바 */
.profile-exp-bar-wrap {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: #1f2d3a;
    border-radius: 4px;
    overflow: hidden;
}

.profile-exp-bar-inner {
    height: 100%;
    background: #e06b4f;
    border-radius: 4px;
    transition: width 0.4s ease;
    min-width: 4px;
}

.profile-exp-label {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* 섹션 소제목 */
.profile-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #ddd;
    margin-bottom: 12px;
}

/* 프로필 사진 그리드 */
.profile-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
}

.profile-photo-card {
    background: #1f2d3a;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    border: 2px solid transparent;
}

.profile-photo-card:hover:not(.locked):not(.active) {
    background: #2a3f52;
    transform: scale(1.05);
}

.profile-photo-card.active {
    border-color: #e06b4f;
    background: #2a3c50;
    cursor: default;
}

.profile-photo-card.locked {
    opacity: 0.45;
    cursor: not-allowed;
}

.profile-photo-emoji {
    font-size: 36px;
    line-height: 1.2;
}

.profile-photo-label {
    font-size: 11px;
    color: #bbb;
    margin-top: 6px;
}

.other-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.card-mini-item {
    background: #2c3e50;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #444;
}

.card-mini-item .card-name {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #ffd700; /* 황금색 강조 */
}

.card-mini-item .card-count {
    font-size: 12px;
    color: #fff;
}