/* --- 기본 리셋 및 글로벌 변수 --- */


:root {
    --bg-main: #f3f5f8;
    --sidebar-bg: #f8fafc;
    --sidebar-border: #e2e8f0;
    --active-blue: #0066ff;
    --brand-green: #24C766;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --border-radius-m: 12px;
    --border-radius-l: 18px;
}



.youtube-bg {
	height: -webkit-fill-available !important;
    width: -webkit-fill-available !important;
    z-index: 0 !important;
    position: inherit !important;
    aspect-ratio: 16 / 4;
    border-radius: var(--border-radius);
	display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;

	iframe {
		top: initial !important;
		left: initial !important;
		transform: none !important;
		position: initial !important;
		opacity: 1 !important;		
	}

}

/* --- 대시보드 전체 레이아웃 구조 --- */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* --- 사이드바 스타일 (Sidebar) --- */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.logo-area {
    background-color: var(--brand-green);
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    flex-grow: 1;
    margin-right: 8px;
    text-align: center;
    letter-spacing: -0.5px;
}

.profile-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.profile-btn:hover {
    color: var(--active-blue);
}

.sidebar-auth {
    margin-bottom: 24px;
    text-align: center;
}

.login-btn {
    width: 100%;
    background-color: var(--active-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
    transition: background-color 0.2s, transform 0.1s;
}

.login-btn:hover {
    background-color: #0052cc;
}

.login-btn:active {
    transform: scale(0.98);
}

.signup-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.signup-link:hover {
    color: var(--text-main);
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-item a i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
    text-align: center;
}

.nav-item.has-sub a {
    justify-content: space-between;
}

.nav-link-left {
    display: flex;
    align-items: center;
}

.arrow-icon {
    font-size: 11px;
    color: #94a3b8;
}

.nav-item:hover a {
    background-color: #f1f5f9;
    color: var(--text-main);
}

.nav-item.active a {
    background-color: #edf5ff;
    color: var(--active-blue);
    font-weight: 600;
}

/* --- 메인 콘텐츠 영역 (Main Content) --- */
.main-content {
    flex-grow: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}


/* --- 상단 그린 배너 디자인 --- */
.banner-card {
    background-color: var(--color-1);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
	padding:0 0 0 50px;
}

.banner-text-side {
    max-width: 50%;
	padding:var(--box-pd);
}

.banner-sub {
    font:var(--type-body);
    display: inline-block;
    margin-bottom: 8px;
	padding:8px 15px 10px;
	border-radius:50em;
	background:var(--color-3);
}

.banner-main-title {
    font:var(--type-title-b);
}

.banner-main-subtitle {
	font:var(--type-subtitle);
	 margin-bottom: 12px;
}

.banner-description {
    font:var(--type-body);
    opacity: 0.85;
}

.banner-app-side {
    max-width: 48%;
}

/* 앱 아이콘 그리드 */
.app-icon-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.app-box {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    color: #1e293b;
    transition: transform 0.2s;
}

.app-box:hover {
    transform: translateY(-3px);
}

.app-box span {
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
}

.app-box small {
    font-size: 7px;
    font-weight: 700;
    margin-top: 2px;
    opacity: 0.8;
    text-align: center;
}

.app-box i {
    font-size: 16px;
}

/* 브랜드 고유 컬러별 스타일링 */
.kb-sec { background-color: #ffbc00; color: #3b2814; }
.sol-pay { background-color: #0046ff; color: white; }
.hana { background-color: #009793; color: white; }
.sol-bank { background-color: #1a62ff; color: white; }
.payco { background-color: #ff2c2c; color: white; }
.paybooc { background-color: #ff124a; color: white; }
.culture { background-color: #a81e23; color: white; }
.m-able { background-color: #ff9d00; color: #3b2814; }
.kb-card { background-color: #ffc400; color: #3b2814; }
.kb-pay { background-color: #ffd200; color: #3b2814; }
.kb-land { background-color: #ffffff; color: #2c3e50; border: 1px solid #e2e8f0; }
.kb-cha { background-color: #ff7d00; color: white; }
.kb-insure { background-color: #ffbc00; color: #3b2814; }
.kb-bank { background-color: #ffbc00; color: #3b2814; }
.ok-cb { background-color: #e60012; color: white; }
.lpoint { background-color: #3ca9ff; color: white; }
.cu { background-color: #5e2bb8; color: white; }
.hpoint { background-color: #3b2814; color: white; }
.syrup { background-color: #f73859; color: white; }
.monimo { background-color: #0054ff; color: white; }
.mock-app { background-color: #00b0ff; color: white; }

/* --- 중간 오퍼월 서비스 바로가기 디자인 --- */
.offerwall-card {
     display: flex;
    justify-content: space-between;
    align-items: center;
}

.offerwall-left h2 {
    font:var(--type-semititle-b);
}

.offerwall-right {
    display: flex;
    gap: 40px;
    margin-right: 40px;
}

.offerwall-btn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
	gap:8px;
}

.offerwall-btn-item:hover {
    transform: translateY(-2px);
}

.main-icon-wrap {
	    background: #00b94117;
    border-radius: var(--border-radius);
}

.btn-icon-box {
    width: 64px;
    height: 64px;
    background-color: var(--brand-green);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(36, 199, 102, 0.2);
}

.star-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    color: var(--brand-green);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-text {
    font:var(--type-bodytitle-b);
    color: #475569;
}

/* --- 하단 2단 레이아웃 (맞춤 주문 / 공지사항) --- */
.bottom-split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bottom-card {
    background-color: white;
    border-radius: var(--border-radius-l);
    padding: 24px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

/* 맞춤 주문 영역 */
.custom-order-box {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: space-between;
}

.custom-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 42%;
}



.tags-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

.pill-tag {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.pill-tag.user-tag { background-color: #3b82f6; }
.pill-tag.partner-tag { background-color: #8b5cf6; }
.pill-tag.auto-tag { background-color: #06b6d4; }

/* 말풍선 컨테이너 */
.chat-bubbles-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 55%;
}

.chat-bubble {
    background-color: #f1f5f9;
    padding: 10px 14px;
    border-radius: 12px;
    font:var(--type-body);
    color: #334155;
    position: relative;
    border-top-left-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

/* 공지사항 영역 */
.notice-box {
    display: flex;
    flex-direction: column;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.notice-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.view-more-btn {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.view-more-btn:hover {
    color: var(--active-blue);
}

.notice-list {
    display: flex;
    flex-direction: column;
}

.notice-list li {
    border-bottom: 1px solid #f1f5f9;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 4px;
    transition: background-color 0.2s;
    border-radius: 6px;
}

.notice-item:hover {
    background-color: #f8fafc;
}

.notice-item .title {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.notice-item .date {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* --- 반응형 레이아웃 스타일 지원 --- */
@media (max-width: 1024px) {
    .banner-card {
        flex-direction: column;
        align-items: flex-start;
		padding:0;
    }
    .banner-text-side, .banner-app-side {
        max-width: 100%;
    }
    .bottom-split-section {
        grid-template-columns: 1fr;
    }

	.offerwall-right {
		margin-right:0;
		gap:10px;
	}

	.offerwall-btn-item {
		width:33%;
	}
}


/* --- 반응형 레이아웃 스타일 지원 --- */
@media (max-width:816px) {
    .offerwall-card {
		align-items: flex-start;
		flex-direction: column;
	}

	.youtube-bg {aspect-ratio: 2 / 1;}

	.custom-order-box {flex-direction: column;}

	.custom-header { max-width: -webkit-fill-available;}

	.tags-container {flex-direction: row;}

	.chat-bubbles-container { width: -webkit-fill-available;}

	.btn-text {font: var(--type-body-b);}
}