/* =============================================================
   가나바사아 - 커스텀 스타일
   ============================================================= */

:root {
    /* 다크 컬러 시스템 — 검은색 바탕 + 검붉은색 + 분홍색 포인트 */
    --bg-black:     #07060A;   /* 가장 깊은 배경 */
    --bg-dark:      #0F0B12;   /* 섹션 배경 */
    --bg-card:      #15101A;   /* 카드 배경 */
    --bg-elevated:  #1C1421;   /* 살짝 떠있는 표면 */

    --primary:        #FF1B6B;   /* 강렬한 핑크 (액센트) */
    --primary-dark:   #C2185B;   /* 검붉은 핑크 */
    --primary-light:  #FF7FB1;   /* 밝은 핑크 */
    --crimson:        #8B0F2C;   /* 검붉은색 (deep crimson) */
    --crimson-light:  #C71F47;   /* 중간 톤 검붉음 */
    --pink-soft:      #FFB1D2;   /* 부드러운 분홍 */

    /* 텍스트 */
    --text-primary:   #F5E9EE;   /* 본문 (살짝 핑크빛 화이트) */
    --text-secondary: #C9B8C0;   /* 부제 */
    --text-muted:     #8A7782;   /* 보조 */
    --text-dim:       #574550;   /* 더 흐린 */

    --border:         rgba(255, 27, 107, 0.15);
    --border-hover:   rgba(255, 27, 107, 0.45);

    /* 라이트 톤 호환용 (관리자 페이지 등 일부에서 사용) */
    --gray-900: var(--text-primary);
    --gray-700: var(--text-secondary);
    --gray-500: var(--text-muted);
    --gray-200: var(--border);
    --gray-100: var(--bg-dark);
    --white: var(--text-primary);

    --success: #10B981;
    --danger:  #FF1B6B;
    --warning: #F59E0B;
}

/* ===== 기본 ===== */
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-black);
    line-height: 1.65;
    background-image:
        radial-gradient(ellipse at top left, rgba(139, 15, 44, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(255, 27, 107, 0.12) 0%, transparent 50%);
    background-attachment: fixed;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--primary-light);
}

main {
    min-height: calc(100vh - 320px);
}

/* ===== 헤더 / 브랜드 ===== */
.navbar {
    padding: 1rem 0;
    background-color: rgba(7, 6, 10, 0.85) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border) !important;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--gray-900) !important;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--crimson) 0%, var(--primary) 100%);
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 0 24px rgba(255, 27, 107, 0.4);
}
.brand-text {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.navbar .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}
.brand-logo { color: var(--text-primary) !important; }
.navbar .nav-link:hover {
    color: var(--primary-light) !important;
}
.navbar .nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
}
.navbar-toggler {
    border-color: var(--border) !important;
}
.navbar-toggler-icon {
    filter: invert(1) opacity(0.85);
}
@media (min-width: 992px) {
    .navbar .nav-link.active::after {
        content: '';
        position: absolute;
        left: 1rem;
        right: 1rem;
        bottom: -4px;
        height: 2px;
        background-color: var(--primary);
    }
}

/* ===== 히어로 섹션 ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1A0510 0%, #3D0820 35%, #5C0F2C 70%, #1A0510 100%);
    color: var(--text-primary);
    padding: 6rem 0 5rem;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-cta .btn {
    padding: 0.85rem 2rem;
    font-weight: 600;
    border-radius: 8px;
}
.hero-cta .btn-light {
    color: var(--primary);
}
.hero-cta .btn-outline-light {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 3rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ===== 페이지 타이틀 섹션 ===== */
.page-header {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-black) 100%);
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.page-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.page-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===== 섹션 ===== */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* ===== 포트폴리오 카드 ===== */
.portfolio-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    height: 100%;
    background: var(--bg-card);
}
.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(255, 27, 107, 0.18), 0 0 0 1px rgba(255, 27, 107, 0.25);
    border-color: var(--border-hover);
}
.portfolio-card__image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.portfolio-card__placeholder {
    font-size: 2.5rem;
    color: var(--text-muted);
}
.portfolio-card__body {
    padding: 1.5rem;
    background: var(--bg-card);
}
.portfolio-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}
.portfolio-card__description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.portfolio-card__stacks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tech-badge {
    display: inline-block;
    background-color: rgba(255, 27, 107, 0.12);
    color: var(--primary-light);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 27, 107, 0.2);
}

/* ===== 팀원 카드 ===== */
.member-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
    height: 100%;
    background: var(--bg-card);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.member-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 14px 30px rgba(255, 27, 107, 0.14);
}
.member-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crimson) 0%, var(--primary) 100%);
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(255, 27, 107, 0.4);
}
.member-card__name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.member-card__position {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.member-card__intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== 연락처 카드 ===== */
.contact-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    background: var(--bg-card);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 18px 40px rgba(255, 27, 107, 0.18);
}
.contact-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--crimson) 0%, var(--primary) 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 24px rgba(255, 27, 107, 0.35);
}
.contact-card__label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.contact-card__value {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.contact-card__button {
    margin-top: auto;
}

/* ===== 회사소개 페이지 ===== */
.about-section {
    padding: 4rem 0;
}
.about-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    height: 100%;
    background: var(--bg-card);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.about-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 14px 30px rgba(255, 27, 107, 0.14);
}
.about-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--crimson) 0%, var(--primary) 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(255, 27, 107, 0.3);
}
.about-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.about-card__text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== 푸터 ===== */
.site-footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-black) 100%) !important;
    border-top: 1px solid var(--border);
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--white);
    font-weight: 700;
}
.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}
.footer-contact {
    list-style: none;
    padding: 0;
}
.footer-contact li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.footer-contact i {
    color: var(--primary-light);
}
.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
}
.footer-contact a:hover {
    color: var(--white);
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}
.footer-links a:hover {
    color: var(--white);
}
.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1.5rem;
}

/* ===== 관리자 영역 ===== */
.admin-body {
    background-color: var(--gray-100);
    min-height: 100vh;
}
.admin-navbar {
    background-color: var(--gray-900);
    padding: 1rem 0;
}
.admin-navbar .navbar-brand,
.admin-navbar .nav-link {
    color: var(--white) !important;
}
.admin-navbar .nav-link:hover {
    color: var(--primary-light) !important;
}
.admin-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.admin-stat {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.admin-stat:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}
.admin-stat__label {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.admin-stat__value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* 로그인 페이지 */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.login-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
}
.login-card__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}
.login-card__brand .brand-mark {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.login-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
}
.login-card__subtitle {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* 테이블 썸네일 */
.table-thumb {
    width: 64px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    background-color: var(--gray-100);
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--gray-500);
}
.empty-state__icon {
    font-size: 3rem;
    color: var(--gray-200);
    margin-bottom: 1rem;
}

/* 유틸 */
.text-balance {
    text-wrap: balance;
}

/* =============================================================
   🎨 인터랙티브 효과
   ============================================================= */

/* --- 히어로 인터랙티브 강화 --- */
.hero-section--animated {
    padding: 7rem 0 8rem;
    position: relative;
    background: radial-gradient(ellipse at 30% 20%, #4A0E22 0%, #1A0510 40%, #07060A 80%);
    overflow: hidden;
}
.hero-section--animated::before {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(circle at 15% 25%, rgba(255, 27, 107, 0.35) 0%, transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(139, 15, 44, 0.55) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(255, 127, 177, 0.18) 0%, transparent 50%);
    animation: heroAura 20s ease-in-out infinite;
    pointer-events: none;
}
@keyframes heroAura {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-3%, 2%) scale(1.05); }
    66%      { transform: translate(2%, -3%) scale(0.95); }
}

/* 그리드 배경 */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    animation: gridMove 25s linear infinite;
    pointer-events: none;
}
@keyframes gridMove {
    from { background-position: 0 0; }
    to   { background-position: 60px 60px; }
}

/* 빛나는 글로우 */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 27, 107, 0.5) 0%, transparent 70%);
    filter: blur(60px);
    animation: glowPulse 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 0.8; }
}

/* 파티클 (떠다니는 점들) */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(147, 197, 253, 0.6);
    animation: particleFloat linear infinite;
}
.hero-particles span:nth-child(1)  { left: 5%;  width: 6px; height: 6px; animation-duration: 18s; animation-delay: 0s; }
.hero-particles span:nth-child(2)  { left: 12%; width: 4px; height: 4px; animation-duration: 22s; animation-delay: 2s; }
.hero-particles span:nth-child(3)  { left: 20%; width: 8px; height: 8px; animation-duration: 16s; animation-delay: 4s; }
.hero-particles span:nth-child(4)  { left: 28%; width: 3px; height: 3px; animation-duration: 25s; animation-delay: 1s; }
.hero-particles span:nth-child(5)  { left: 35%; width: 5px; height: 5px; animation-duration: 20s; animation-delay: 6s; }
.hero-particles span:nth-child(6)  { left: 45%; width: 7px; height: 7px; animation-duration: 19s; animation-delay: 3s; }
.hero-particles span:nth-child(7)  { left: 52%; width: 4px; height: 4px; animation-duration: 24s; animation-delay: 8s; }
.hero-particles span:nth-child(8)  { left: 60%; width: 6px; height: 6px; animation-duration: 17s; animation-delay: 5s; }
.hero-particles span:nth-child(9)  { left: 68%; width: 5px; height: 5px; animation-duration: 21s; animation-delay: 7s; }
.hero-particles span:nth-child(10) { left: 75%; width: 8px; height: 8px; animation-duration: 23s; animation-delay: 9s; }
.hero-particles span:nth-child(11) { left: 82%; width: 3px; height: 3px; animation-duration: 18s; animation-delay: 2s; }
.hero-particles span:nth-child(12) { left: 88%; width: 6px; height: 6px; animation-duration: 22s; animation-delay: 11s; }
.hero-particles span:nth-child(13) { left: 92%; width: 4px; height: 4px; animation-duration: 20s; animation-delay: 4s; }
.hero-particles span:nth-child(14) { left: 96%; width: 5px; height: 5px; animation-duration: 26s; animation-delay: 10s; }
.hero-particles span:nth-child(15) { left: 40%; width: 4px; height: 4px; animation-duration: 19s; animation-delay: 6s; }

@keyframes particleFloat {
    0%   { transform: translateY(110vh) translateX(0) scale(0); opacity: 0; }
    10%  { opacity: 1; transform: translateY(95vh) translateX(0) scale(1); }
    50%  { transform: translateY(40vh) translateX(20px) scale(1); }
    90%  { opacity: 1; transform: translateY(5vh) translateX(-15px) scale(1); }
    100% { transform: translateY(-10vh) translateX(0) scale(0); opacity: 0; }
}

/* 히어로 콘텐츠 */
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
    animation: badgeFadeIn 0.8s ease-out 0.2s both;
}
.hero-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@keyframes badgeFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    animation: heroFadeUp 1s ease-out 0.3s both;
}
.hero-title__gradient {
    background: linear-gradient(135deg, #FF1B6B 0%, #FFB1D2 50%, #FF5C8F 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: gradientShift 5s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(255, 27, 107, 0.4);
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 자동 타이핑 텍스트 */
.hero-typer { display: inline-flex; align-items: baseline; }
.hero-typer__dynamic {
    color: #FFB1D2;
    font-weight: 800;
    min-width: 4ch;
    display: inline-block;
    text-align: left;
    text-shadow: 0 0 24px rgba(255, 177, 210, 0.6);
}
.hero-typer__cursor {
    display: inline-block;
    color: #FF1B6B;
    font-weight: 200;
    animation: blink 1s infinite;
    margin-left: 2px;
}
@keyframes blink {
    0%, 49%    { opacity: 1; }
    50%, 100%  { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.75;
    animation: heroFadeUp 1s ease-out 0.5s both;
}
.hero-cta { animation: heroFadeUp 1s ease-out 0.7s both; }
.hero-btn {
    position: relative;
    padding: 0.9rem 2.2rem;
    font-weight: 600;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}
.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.hero-btn__shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s;
}
.hero-btn:hover .hero-btn__shine { left: 100%; }

/* 카운터 통계 */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    animation: heroFadeUp 1s ease-out 0.9s both;
}
.hero-stat {
    flex: 1 1 140px;
    text-align: center;
    padding: 0.5rem;
    transition: transform 0.3s;
}
.hero-stat:hover { transform: translateY(-4px); }
.hero-stat__number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFB1D2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 27, 107, 0.5);
}
.hero-stat__label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.5rem;
}

/* 웨이브 */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    line-height: 0;
}
.hero-wave svg { width: 100%; height: 100%; display: block; }

@media (max-width: 768px) {
    .hero-section--animated { padding: 5rem 0 6rem; }
    .hero-stat__number { font-size: 1.8rem; }
}

/* --- 스크롤 리빌 애니메이션 --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 포트폴리오 카드 강화 (3D 틸트 + 광택) --- */
.portfolio-card--tilt {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s, border-color 0.4s;
    will-change: transform;
}
.portfolio-card--tilt:hover {
    transform: perspective(900px) rotateX(3deg) rotateY(-3deg) translateY(-8px);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2), 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: var(--primary);
}
.portfolio-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-100);
}
.portfolio-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 30, 92, 0.45) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.portfolio-card--tilt:hover .portfolio-card__image::after { opacity: 1; }

/* --- 카드 비주얼 (한국식 미니멀: 그라데이션 + 아이콘 + 카테고리 라벨) --- */
.portfolio-card__visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.96);
}
.portfolio-card__pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 30%),
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: auto, auto, 32px 32px, 32px 32px;
    pointer-events: none;
}
.portfolio-card__icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    z-index: 1;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.portfolio-card--tilt:hover .portfolio-card__icon {
    transform: scale(1.1) rotate(-6deg);
}
.portfolio-card__label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #FFFFFF;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    z-index: 2;
}
.portfolio-card__shine {
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
    transform: rotate(20deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 1;
}
.portfolio-card--tilt:hover .portfolio-card__shine { left: 150%; }
.portfolio-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}
.portfolio-card--tilt:hover .portfolio-card__overlay { opacity: 1; }
.portfolio-card__view {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.tech-badge {
    transition: transform 0.15s, background-color 0.15s, color 0.15s;
}
.tech-badge:hover {
    transform: translateY(-2px);
    background-color: var(--primary);
    color: var(--white);
}

/* --- About 카드 호버 --- */
.about-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
}
.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
    transform: scale(0);
    transition: transform 0.6s;
    pointer-events: none;
}
.about-card:hover::before { transform: scale(1); }
.about-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
}
.about-card__icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s, color 0.3s;
}
.about-card:hover .about-card__icon {
    transform: rotate(-8deg) scale(1.1);
    background-color: var(--primary);
    color: var(--white);
}

/* --- 멤버 카드 강화 --- */
.member-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
}
.member-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #A78BFA 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s;
}
.member-card:hover::after { transform: scaleX(1); }
.member-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
}
.member-card__avatar {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.member-card:hover .member-card__avatar {
    transform: scale(1.08) rotate(-5deg);
}

/* --- 연락처 카드 --- */
.contact-card { position: relative; overflow: hidden; }
.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(37, 99, 235, 0.06), transparent, rgba(167, 139, 250, 0.06), transparent);
    animation: cardRotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.contact-card:hover::before { opacity: 1; }
@keyframes cardRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.contact-card__icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}
.contact-card:hover .contact-card__icon { transform: scale(1.15) rotate(-8deg); }

/* --- 네비게이션 active 인디케이터 --- */
.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s, left 0.3s;
}
.navbar .nav-link:hover::after {
    width: 60%;
    left: 20%;
}

/* --- 페이지 헤더 강화 --- */
.page-header {
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.page-header h1 { animation: heroFadeUp 0.8s ease-out both; }
.page-header p { animation: heroFadeUp 0.8s ease-out 0.15s both; }

/* --- 부드러운 스크롤 --- */
html { scroll-behavior: smooth; }

/* --- 스크롤바 스타일 --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* --- 모션 감소 설정 존중 --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =============================================================
   🌑 다크 모드 일괄 오버라이드 (Bootstrap 클래스)
   ============================================================= */
.bg-light { background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-black) 100%) !important; }
.bg-white { background: var(--bg-card) !important; color: var(--text-primary); }
.bg-dark  { background-color: var(--bg-black) !important; }

.text-secondary { color: var(--text-secondary) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-body      { color: var(--text-primary) !important; }
.text-danger    { color: var(--primary) !important; }
.text-white-50  { color: rgba(245, 233, 238, 0.5) !important; }

/* 버튼 */
.btn-primary {
    background: linear-gradient(135deg, var(--crimson) 0%, var(--primary) 100%);
    border: none;
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(255, 27, 107, 0.3);
    transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--primary) 0%, var(--crimson-light) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 27, 107, 0.45);
    color: #FFFFFF;
    filter: brightness(1.05);
}
.btn-outline-primary {
    color: var(--primary-light);
    border-color: var(--primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}
.btn-light {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-light:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}
.btn-outline-light { color: var(--text-primary); border-color: var(--border); }
.btn-outline-light:hover {
    background: rgba(255, 27, 107, 0.18);
    color: #FFFFFF;
    border-color: var(--primary);
}
.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border);
}
.btn-outline-secondary:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-hover);
}
.btn-outline-danger {
    color: var(--primary-light);
    border-color: rgba(255, 27, 107, 0.4);
}
.btn-outline-danger:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

/* 폼 컨트롤 */
.form-control, .form-select {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
}
.form-control:focus, .form-select:focus {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 27, 107, 0.2);
}
.form-control::placeholder { color: var(--text-dim); }
.form-label { color: var(--text-primary); }
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.form-check-label { color: var(--text-primary); }
.form-switch .form-check-input { background-color: var(--bg-elevated); border-color: var(--border); }

/* 알림 */
.alert-success {
    background-color: rgba(16, 185, 129, 0.12);
    color: #6EE7B7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.alert-danger {
    background-color: rgba(255, 27, 107, 0.12);
    color: var(--primary-light);
    border: 1px solid rgba(255, 27, 107, 0.35);
}
.alert-info {
    background-color: rgba(255, 177, 210, 0.1);
    color: var(--pink-soft);
    border: 1px solid rgba(255, 177, 210, 0.3);
}
.alert-warning {
    background-color: rgba(245, 158, 11, 0.12);
    color: #FDE68A;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* 배지 */
.badge.bg-success {
    background-color: rgba(16, 185, 129, 0.2) !important;
    color: #6EE7B7 !important;
    border: 1px solid rgba(16, 185, 129, 0.4);
}
.badge.bg-secondary {
    background-color: var(--bg-elevated) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border);
}

/* 테이블 (관리자) */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
    --bs-table-striped-bg: rgba(255, 27, 107, 0.05);
    color: var(--text-primary);
    border-color: var(--border) !important;
}
.table > :not(caption) > * > * { border-color: #E5E7EB !important; background-color: transparent !important; color: #111827; }
.table .text-muted { color: #6B7280 !important; }
.table a { color: #2563EB; }
.table small { color: #6B7280; }
.admin-card .table thead.table-light th { background-color: #F9FAFB !important; color: #111827 !important; }
.admin-card .table-hover > tbody > tr:hover > * { background-color: rgba(255, 27, 107, 0.06) !important; color: #111827 !important; }

/* 관리자 admin-card 내부 텍스트 라이트 톤 강제 */
.admin-card { color: #111827; }
.admin-card h1, .admin-card h2, .admin-card h3, .admin-card h4, .admin-card h5, .admin-card h6 { color: #111827; }
.admin-card .form-label { color: #111827; }
.admin-card .text-muted { color: #6B7280 !important; }
.admin-card small { color: #6B7280; }
.admin-card .form-control,
.admin-card .form-select {
    background-color: #FFFFFF;
    border-color: #D1D5DB;
    color: #111827;
}
.admin-card .form-control:focus,
.admin-card .form-select:focus {
    background-color: #FFFFFF;
    border-color: var(--primary);
    color: #111827;
    box-shadow: 0 0 0 0.2rem rgba(255, 27, 107, 0.15);
}
.admin-card .form-control::placeholder { color: #9CA3AF; }
.admin-card .form-check-label { color: #111827; }
.admin-card .table { color: #111827; }
.admin-card .table > :not(caption) > * > * { color: #111827; }
.admin-card hr { border-color: #E5E7EB; opacity: 1; }
.table-light, .table > thead {
    --bs-table-bg: var(--bg-elevated);
    background-color: var(--bg-elevated) !important;
    color: var(--text-primary);
}
.table-light > th { background-color: var(--bg-elevated) !important; color: var(--text-primary); border-color: var(--border) !important; }
.table-hover > tbody > tr:hover > * { background-color: rgba(255, 27, 107, 0.06) !important; color: var(--text-primary); }

/* 스크롤바 (다크) */
::-webkit-scrollbar-track { background: var(--bg-black); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--crimson) 0%, var(--primary) 100%);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Selection */
::selection {
    background: rgba(255, 27, 107, 0.4);
    color: #FFFFFF;
}

/* 페이지 헤더 오버레이 (분홍) */
.page-header::after {
    background: radial-gradient(circle, rgba(255, 27, 107, 0.18) 0%, transparent 70%) !important;
}
.page-header::before {
    content: '';
    position: absolute;
    left: -100px;
    bottom: -100px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(139, 15, 44, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* About 페이지 라이트 그라데이션 박스 → 다크 */
[style*="linear-gradient(135deg, #DBEAFE"] {
    background: linear-gradient(135deg, rgba(139, 15, 44, 0.4) 0%, rgba(255, 27, 107, 0.18) 100%) !important;
    border: 1px solid var(--border);
}

/* About 카드 내부의 흰색 카드 (통계용) */
[style*="background: linear-gradient"] .bg-white {
    background: var(--bg-card) !important;
}
[style*="background: linear-gradient"] .text-secondary { color: var(--text-muted) !important; }

/* About 카드 호버 시 색상 정리 */
.about-card:hover { border-color: var(--primary) !important; }
.tech-badge:hover {
    background-color: var(--primary) !important;
    color: #FFFFFF !important;
}

/* 히어로 배지/통계 톤 정리 */
.hero-badge {
    background: rgba(255, 27, 107, 0.12) !important;
    border: 1px solid rgba(255, 27, 107, 0.35) !important;
    color: var(--pink-soft) !important;
}
.hero-badge__dot {
    background: var(--primary) !important;
    box-shadow: 0 0 0 0 rgba(255, 27, 107, 0.7) !important;
    animation: pulsePink 2s infinite !important;
}
@keyframes pulsePink {
    0%   { box-shadow: 0 0 0 0 rgba(255, 27, 107, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(255, 27, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 27, 107, 0); }
}
.hero-subtitle { color: rgba(255, 232, 240, 0.8) !important; }
.hero-stat__label { color: rgba(255, 232, 240, 0.65) !important; }
.hero-stats { border-top: 1px solid rgba(255, 27, 107, 0.25) !important; }
.hero-particles span {
    background: rgba(255, 177, 210, 0.75) !important;
    box-shadow: 0 0 12px rgba(255, 27, 107, 0.9), 0 0 28px rgba(255, 27, 107, 0.5) !important;
}
.hero-wave svg path { fill: var(--bg-black) !important; }

/* =============================================================
   ✨ 고급 인터랙션 — 마우스 스포트라이트 / 트레일
   ============================================================= */

/* 전역 마우스 스포트라이트 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 27, 107, 0.07),
        transparent 40%
    );
    pointer-events: none;
    z-index: 1;
    transition: background 0.15s linear;
}
main, header, footer { position: relative; z-index: 2; }

/* 마우스 트레일 (커서 따라오는 분홍 점) */
.cursor-trail {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 27, 107, 0.95) 0%, rgba(255, 27, 107, 0) 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
}
.cursor-trail--ring {
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1.5px solid rgba(255, 27, 107, 0.6);
    transition: transform 0.18s ease-out, width 0.2s, height 0.2s;
}
@media (hover: none), (pointer: coarse) {
    .cursor-trail, .cursor-trail--ring { display: none; }
}

/* 히어로 스포트라이트 (히어로 내부 한정) */
.hero-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        500px circle at var(--spot-x, 50%) var(--spot-y, 50%),
        rgba(255, 177, 210, 0.22),
        transparent 60%
    );
    transition: background 0.12s linear;
    opacity: 0;
}
.hero-section--animated:hover .hero-spotlight { opacity: 1; }

/* 히어로 별자리(constellation) 캔버스 — 마우스 따라 선이 연결되는 인터랙티브 점들 */
.hero-constellation {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 마그네틱 버튼 */
.hero-btn { will-change: transform; }

/* 미리보기 모바일 폰 프레임 — 포트폴리오 이미지 위에 오버레이로 표시 */
.portfolio-card__image {
    position: relative;
    background-color: #0A070D;
}
.portfolio-card__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(7, 6, 10, 0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

/* 글로우 텍스트 (h1/h2 등) */
.section-title {
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--pink-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.page-header h1 {
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* About에서 색상 강조 <strong> */
main strong { color: var(--text-primary) !important; }
main em      { color: var(--pink-soft); font-style: normal; }

/* =============================================================
   📦 자료실
   ============================================================= */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.resource-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.resource-item:hover {
    border-color: var(--border-hover);
    box-shadow: 0 14px 30px rgba(255, 27, 107, 0.14);
}
.resource-item__icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--crimson) 0%, var(--primary) 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 0 20px rgba(255, 27, 107, 0.25);
    flex-shrink: 0;
}
.resource-item__main { min-width: 0; }
.resource-item__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}
.resource-item__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}
.resource-item__category {
    background: rgba(255, 27, 107, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(255, 27, 107, 0.3);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}
.resource-item__desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin: 0 0 0.6rem;
    line-height: 1.55;
}
.resource-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.resource-item__meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.resource-item__meta svg {
    color: var(--primary-light);
}
.resource-item__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}
.resource-item__btn svg { margin-right: 0.3rem; }
.footer-contact li svg { color: var(--primary-light); }
.resource-item__action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    min-width: 200px;
}
.resource-item__btn {
    white-space: nowrap;
    padding: 0.7rem 1.25rem;
}
.resource-item__btn--locked {
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border);
    cursor: not-allowed;
    box-shadow: none;
}
.resource-item__btn--locked:hover {
    background: var(--bg-elevated);
    color: var(--text-muted);
    transform: none;
    box-shadow: none;
}
.resource-item__status {
    text-align: center;
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}
.resource-item__status--open {
    background: rgba(16, 185, 129, 0.12);
    color: #6EE7B7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.resource-item__status--expired {
    background: rgba(245, 158, 11, 0.1);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.resource-item__status--locked {
    background: rgba(255, 27, 107, 0.08);
    color: var(--pink-soft);
    border: 1px solid rgba(255, 27, 107, 0.25);
}

@media (max-width: 768px) {
    .resource-item {
        grid-template-columns: auto 1fr;
        gap: 1rem;
    }
    .resource-item__action {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
    }
    .resource-item__btn { flex: 1; }
}

.resource-help {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: rgba(255, 27, 107, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}
.resource-help__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--crimson) 0%, var(--primary) 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.resource-help strong { display: block; color: var(--text-primary); margin-bottom: 0.4rem; }
.resource-help p { color: var(--text-secondary); margin: 0; font-size: 0.95rem; line-height: 1.6; }

/* 관리자 자료실 전용 */
.admin-resource-row td { vertical-align: middle; }
.access-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.access-badge--open    { background: rgba(16, 185, 129, 0.15); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, 0.3); }
.access-badge--locked  { background: rgba(255, 27, 107, 0.1);  color: var(--pink-soft); border: 1px solid rgba(255, 27, 107, 0.25); }
.access-badge--expired { background: rgba(245, 158, 11, 0.1);  color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.3); }
.quick-access-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.quick-access-btns .btn {
    font-size: 0.82rem;
    padding: 0.3rem 0.7rem;
}

/* 인증 방식 선택 카드 (라디오 그룹) — 관리자 라이트 톤 / 다크 톤 양쪽 모두 대응 */
.auth-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1rem 0.6rem;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
    color: #6B7280;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-align: center;
    user-select: none;
    height: 100%;
    position: relative;
}
.auth-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    inset: 0;
}
.auth-type-card i {
    font-size: 1.5rem;
    color: #9CA3AF;
    transition: color 0.2s, transform 0.2s;
}
.auth-type-card span {
    font-size: 0.88rem;
    font-weight: 600;
}
.auth-type-card:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(255, 27, 107, 0.1);
}
.auth-type-card:hover i { color: var(--primary); }
.auth-type-card--active,
.auth-type-card:has(input:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 27, 107, 0.08) 0%, rgba(255, 27, 107, 0.18) 100%);
    color: var(--primary-dark);
    box-shadow: 0 6px 18px rgba(255, 27, 107, 0.18);
}
.auth-type-card--active i,
.auth-type-card:has(input:checked) i {
    color: var(--primary);
    transform: scale(1.1);
}
