:root {
   --primary-color: #2563eb;
   --secondary-color: #1d4ed8;
   --accent-color: #3b82f6;
   --text-color: #1e293b;
   --light-gray: #f8fafc;
   --dark-gray: #64748b;
   --white: #ffffff;
   --gradient: linear-gradient(135deg, #2563eb, #1d4ed8);
   --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
   --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
   --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
   --border-radius: 16px;
   --transition: all 0.3s ease;
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body {
   font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
   line-height: 1.6;
   color: var(--text-color);
   background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 45%), radial-gradient(circle at 10% 80%, rgba(99, 102, 241, 0.15), transparent 55%), var(--light-gray);
   min-height: 100vh;
   position: relative;
   overflow-x: hidden;
}
.auth-page {
   background: linear-gradient(180deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 35%), radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.18), transparent 55%), var(--light-gray);
}

.container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 20px;
}

/* Header Styles */
.header {
   background-color: rgba(255, 255, 255, 0.9);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
   box-shadow: var(--shadow-md);
   position: fixed;
   width: 100%;
   top: 0;
   z-index: 1000;
   border-bottom: 1px solid rgba(148, 163, 184, 0.15);
   transition: transform 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.header.scroll-down {
   transform: translateY(-100%);
}

.header.scroll-up {
   background-color: rgba(255, 255, 255, 0.98);
   border-color: rgba(37, 99, 235, 0.12);
   box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

.header-container {
   display: flex;
   justify-content: space-between;
   align-items: center;
   height: 70px;
}

.logo a {
   color: var(--primary-color);
   text-decoration: none;
   font-size: 24px;
   font-weight: 800;
   letter-spacing: -0.5px;
   display: flex;
   align-items: center;
}

.logo-image {
   height: 45px;
   width: auto;
   max-width: 100px;
   transition: var(--transition);
   object-fit: contain;
}

.logo-image:hover {
   transform: scale(1.05);
}

.main-nav ul {
   display: flex;
   list-style: none;
   gap: 40px;
}

.main-nav a {
   color: var(--text-color);
   text-decoration: none;
   font-weight: 600;
   transition: var(--transition);
   font-size: 15px;
   position: relative;
}

/* 일반 메뉴 밑줄 효과 */
.main-nav a::after {
   content: "";
   position: absolute;
   width: 0;
   height: 2px;
   bottom: -4px;
   left: 0;
   background-color: var(--accent-color);
   transition: var(--transition);
}

.main-nav a:hover::after {
   width: 100%;
}

/* Dropdown Menu */
.dropdown {
   position: relative;
}

/* 드롭다운 토글: 기본 밑줄 효과 제거하고 ::before로 새로 구현 */
.dropdown-toggle::after {
   content: "" !important;
   display: inline-block !important;
   position: static !important;
   margin-left: 6px !important;
   vertical-align: middle !important;
   border-top: 4px solid !important;
   border-right: 4px solid transparent !important;
   border-bottom: 0 !important;
   border-left: 4px solid transparent !important;
   width: auto !important;
   height: auto !important;
   background: none !important;
   transition: transform 0.2s ease !important;
}

.dropdown:hover .dropdown-toggle::after {
   transform: rotate(180deg);
}

/* 드롭다운 토글 밑줄 효과 (::before 사용) */
.dropdown-toggle::before {
   content: "";
   position: absolute;
   width: 0;
   height: 2px;
   bottom: -4px;
   left: 0;
   background-color: var(--accent-color);
   transition: var(--transition);
}

.dropdown:hover .dropdown-toggle::before {
   width: calc(100% - 16px);
}

.dropdown-menu {
   position: absolute;
   top: 100%;
   left: 0;
   width: 180px;
   background: var(--white);
   border-radius: 8px;
   box-shadow: var(--shadow-lg);
   padding: 4px 0;
   opacity: 0;
   visibility: hidden;
   transform: translateY(-10px);
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   z-index: 1000;
   border: 1px solid rgba(148, 163, 184, 0.15);
   margin-top: 8px;
   overflow: hidden;
   display: flex;
   flex-direction: column;
   gap: 0;
}

.dropdown:hover .dropdown-menu {
   opacity: 1;
   visibility: visible;
   transform: translateY(0);
}

/* 드롭다운이 오른쪽으로 넘어갈 때 왼쪽 정렬 */
.dropdown:last-child .dropdown-menu,
.dropdown:nth-last-child(2) .dropdown-menu {
   left: auto;
   right: 0;
}

/* 로그인/회원가입 모달 스타일 */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.auth-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    transition: var(--transition);
}

.auth-modal-close:hover {
    color: #333;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.auth-modal-header p {
    color: #666;
    font-size: 14px;
}

.auth-modal-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-modal-body {
    position: relative;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.auth-form .form-group input[type="text"],
.auth-form .form-group input[type="email"],
.auth-form .form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    box-sizing: border-box;
    font-family: inherit;
}

.auth-form .form-group input[type="text"]:focus,
.auth-form .form-group input[type="email"]:focus,
.auth-form .form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-form .form-group input[type="checkbox"] {
    margin-right: 8px;
}

.auth-form .form-actions {
    margin-top: 25px;
}

.auth-form .btn.full-width {
    width: 100% !important;
    padding: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
}

.auth-form .btn.btn-primary.full-width {
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
}

.auth-form .btn.btn-primary.full-width:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

.auth-form .btn.btn-register.full-width {
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
}

.auth-form .btn.btn-register.full-width:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .auth-modal-content {
        padding: 20px;
        margin: 20px;
        max-width: 350px;
    }
    
    .auth-modal-header h2 {
        font-size: 20px;
    }
    
    .auth-form .form-group input[type="text"],
    .auth-form .form-group input[type="email"],
    .auth-form .form-group input[type="password"] {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .auth-form .btn.full-width {
        font-size: 14px;
    }
}

.dropdown-menu li {
   list-style: none;
}

.dropdown-menu a {
   display: block;
   padding: 8px 12px;
   color: var(--text-color);
   text-decoration: none;
   font-size: 13px;
   font-weight: 500;
   transition: var(--transition);
   border-radius: 4px;
   margin: 0 6px;
   white-space: normal;
   word-break: keep-all;
   line-height: 1.4;
}

.dropdown-menu a:hover {
   background: rgba(37, 99, 235, 0.1);
   color: var(--primary-color);
   transform: translateX(4px);
}

.dropdown-menu a:active {
   transform: translateX(2px);
   background: rgba(37, 99, 235, 0.15);
}

.dropdown-menu a::after {
   display: none;
}

/* 키보드 포커스 스타일 */
.dropdown-toggle:focus + .dropdown-menu,
.dropdown-menu:hover {
   opacity: 1;
   visibility: visible;
   transform: translateY(0);
}

.dropdown-menu a:focus {
   background: rgba(37, 99, 235, 0.1);
   color: var(--primary-color);
   outline: 2px solid rgba(37, 99, 235, 0.3);
   outline-offset: -2px;
}

.auth-buttons {
   display: flex;
   gap: 12px;
}

.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 12px 24px;
   border-radius: 12px;
   text-decoration: none;
   transition: var(--transition);
   font-weight: 600;
   font-size: 14px;
   gap: 8px;
   position: relative;
   overflow: hidden;
   isolation: isolate;
}

.btn i {
   font-size: 16px;
}

.btn-login {
   color: var(--primary-color);
   background-color: rgba(37, 99, 235, 0.1);
}

.btn-register {
   background: var(--gradient);
   color: var(--white);
}

.btn:hover {
   transform: translateY(-2px);
   box-shadow: var(--shadow-md);
}

.btn::after {
   content: "";
   position: absolute;
   inset: 0;
   background: rgba(255, 255, 255, 0.25);
   opacity: 0;
   transition: opacity 0.3s ease;
   z-index: -1;
}

.btn:hover::after {
   opacity: 1;
}

.btn-primary {
   background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(226, 232, 240, 0.85));
   color: var(--primary-color);
   box-shadow: 0 18px 35px rgba(15, 23, 42, 0.15);
}

.btn-secondary {
   background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
   border: 1px solid rgba(255, 255, 255, 0.4);
   color: var(--white);
   backdrop-filter: blur(8px);
}

/* Hero Section */
.hero {
   padding: 160px 0 100px;
   background: var(--gradient);
   color: var(--white);
   position: relative;
   overflow: hidden;
   isolation: isolate;
}

.hero::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: url("/public/images/pattern.svg");
   opacity: 0.1;
   animation: float 20s linear infinite;
}

.hero::after {
   content: "";
   position: absolute;
   width: 520px;
   height: 520px;
   top: -180px;
   right: -140px;
   background: radial-gradient(circle, rgba(96, 165, 250, 0.7), rgba(37, 99, 235, 0));
   filter: blur(0);
   opacity: 0.55;
   pointer-events: none;
}

.hero .container {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 60px;
   align-items: center;
}

.hero-content {
   position: relative;
   z-index: 1;
   max-width: 540px;
}

.hero h2 {
   font-size: 3.5em;
   margin-bottom: 20px;
   font-weight: 800;
   line-height: 1.2;
   letter-spacing: -1px;
}

.hero p {
   font-size: 1.25em;
   margin-bottom: 40px;
   opacity: 0.9;
}

.hero-buttons {
   display: flex;
   gap: 20px;
   margin-bottom: 60px;
}

.hero-buttons .btn {
   padding: 16px 32px;
   font-size: 16px;
}

.hero-trust {
   display: flex;
   align-items: center;
   gap: 16px;
   margin-bottom: 32px;
   padding: 14px 18px;
   border-radius: 999px;
   background: rgba(15, 23, 42, 0.25);
   border: 1px solid rgba(255, 255, 255, 0.15);
   backdrop-filter: blur(14px);
   width: fit-content;
}

.hero-avatar-group {
   display: flex;
   align-items: center;
}

.hero-avatar-group .avatar {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   border: 2px solid rgba(255, 255, 255, 0.75);
   background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(99, 102, 241, 0.8));
   box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
   margin-left: -12px;
   position: relative;
}

.hero-avatar-group .avatar:first-child {
   margin-left: 0;
}

.hero-avatar-group .avatar:nth-child(2) {
   background: linear-gradient(135deg, rgba(244, 114, 182, 0.85), rgba(99, 102, 241, 0.8));
}

.hero-avatar-group .avatar:nth-child(3) {
   background: linear-gradient(135deg, rgba(34, 197, 94, 0.85), rgba(59, 130, 246, 0.75));
}

.hero-avatar-group .avatar:nth-child(4) {
   background: linear-gradient(135deg, rgba(251, 191, 36, 0.85), rgba(244, 114, 182, 0.75));
}

.hero-trust p {
   margin: 0;
   font-size: 0.95em;
   font-weight: 500;
   color: rgba(255, 255, 255, 0.85);
}

.hero-trust strong {
   color: var(--white);
   font-weight: 700;
   letter-spacing: 0.01em;
}

.hero-stats {
   display: flex;
   gap: 32px;
   padding: 24px 28px;
   border-radius: 24px;
   background: rgba(15, 23, 42, 0.25);
   border: 1px solid rgba(255, 255, 255, 0.18);
   backdrop-filter: blur(18px);
   align-items: center;
   flex-wrap: wrap;
   max-width: 420px;
   box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
}

.stat-item {
   text-align: left;
   min-width: 110px;
   position: relative;
}

.stat-item::after {
   content: "";
   position: absolute;
   left: 0;
   bottom: -12px;
   width: 32px;
   height: 3px;
   border-radius: 999px;
   background: rgba(255, 255, 255, 0.45);
}

.stat-number {
   display: block;
   font-size: 2.5em;
   font-weight: 800;
   line-height: 1;
   margin-bottom: 8px;
}

.stat-label {
   font-size: 0.9em;
   opacity: 0.85;
   font-weight: 500;
   letter-spacing: 0.02em;
}

.hero-image {
   position: relative;
   z-index: 1;
   display: flex;
   justify-content: flex-end;
}

.demo-box {
   background: var(--white);
   border-radius: 20px;
   box-shadow: var(--shadow-lg);
   width: 100%;
   max-width: 500px;
   margin-left: auto;
   overflow: hidden;
}

.hero-badge-card {
   position: absolute;
   bottom: -40px;
   left: -30px;
   display: flex;
   align-items: center;
   gap: 16px;
   background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.85));
   border-radius: 20px;
   padding: 18px 22px;
   box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
   border: 1px solid rgba(148, 163, 184, 0.2);
   min-width: 230px;
   width: clamp(220px, 32vw, 280px);
}

.badge-icon {
   width: 48px;
   height: 48px;
   border-radius: 16px;
   background: rgba(59, 130, 246, 0.15);
   color: #facc15;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.4em;
}

.badge-content {
   display: grid;
   gap: 4px;
}

.badge-label {
   font-size: 0.85em;
   color: rgba(226, 232, 240, 0.8);
   letter-spacing: 0.05em;
   text-transform: uppercase;
}

.badge-content strong {
   font-size: 1.1em;
   color: var(--white);
   letter-spacing: -0.01em;
}

.floating-delay {
   animation: floating 3.5s ease-in-out infinite;
   animation-delay: 0.8s;
}

.demo-header {
   background: var(--white);
   padding: 15px 20px;
   border-bottom: 1px solid rgba(0, 0, 0, 0.05);
   display: flex;
   align-items: center;
}

.demo-dots {
   display: flex;
   gap: 6px;
   margin-right: 15px;
}

.demo-dots span {
   width: 10px;
   height: 10px;
   border-radius: 50%;
   background: #eee;
}

.demo-dots span:nth-child(1) {
   background: #ff5f57;
}
.demo-dots span:nth-child(2) {
   background: #ffbd2e;
}
.demo-dots span:nth-child(3) {
   background: #28c940;
}

.demo-title {
   color: var(--text-color);
   font-weight: 600;
   font-size: 14px;
}

.demo-content {
   padding: 30px;
   background: var(--white);
}

.demo-question {
   margin-bottom: 25px;
}

.question-number {
   color: var(--primary-color);
   font-weight: 700;
   font-size: 18px;
   margin-right: 10px;
}

.demo-question p {
   color: var(--text-color);
   font-size: 16px;
   line-height: 1.6;
   margin-top: 10px;
}

.demo-answers {
   display: flex;
   flex-direction: column;
   gap: 12px;
}

.answer-item {
   display: flex;
   align-items: center;
   padding: 15px;
   border-radius: 12px;
   background: rgba(37, 99, 235, 0.05);
   transition: var(--transition);
   cursor: pointer;
   color: var(--text-color);
}

.answer-item:hover {
   background: rgba(37, 99, 235, 0.1);
}

.answer-item.active {
   background: var(--primary-color);
   color: var(--white);
}

.answer-number {
   width: 24px;
   height: 24px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.2);
   font-size: 14px;
   margin-right: 12px;
}

.answer-text {
   font-size: 14px;
   font-weight: 500;
}

.demo-footer {
   padding: 20px;
   background: var(--white);
   border-top: 1px solid rgba(0, 0, 0, 0.05);
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.progress-bar {
   flex: 1;
   height: 6px;
   background: rgba(37, 99, 235, 0.1);
   border-radius: 3px;
   margin-right: 15px;
   overflow: hidden;
}

.progress {
   height: 100%;
   background: var(--primary-color);
   border-radius: 3px;
}

.question-counter {
   color: var(--dark-gray);
   font-size: 14px;
   font-weight: 500;
}

.floating {
   animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
   0% {
      transform: translateY(0px);
   }
   50% {
      transform: translateY(-20px);
   }
   100% {
      transform: translateY(0px);
   }
}

/* 주관식 답안 영역 */
.demo-answer-area {
   margin-bottom: 15px;
}

.demo-textarea {
   width: 100%;
   min-height: 80px;
   padding: 12px 15px;
   border: 2px solid rgba(37, 99, 235, 0.2);
   border-radius: 10px;
   font-size: 13px;
   line-height: 1.6;
   color: var(--text-color);
   background: rgba(37, 99, 235, 0.03);
   resize: none;
   font-family: inherit;
}

/* AI 해설 인라인 영역 */
.demo-explanation-inline {
   background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
   border: 1px solid #86efac;
   border-radius: 10px;
   padding: 12px 15px;
}

.explanation-header {
   display: flex;
   align-items: center;
   gap: 8px;
   margin-bottom: 8px;
   color: #16a34a;
   font-weight: 600;
   font-size: 13px;
}

.explanation-header i {
   font-size: 14px;
}

.explanation-body {
   font-size: 12px;
   line-height: 1.6;
   color: #166534;
}

.explanation-body strong {
   color: #15803d;
}

/* Section Headers */
.section-header {
   text-align: center;
   margin-bottom: 60px;
}

.section-badge {
   display: inline-block;
   padding: 8px 16px;
   background-color: rgba(37, 99, 235, 0.1);
   color: var(--primary-color);
   border-radius: 20px;
   font-weight: 600;
   font-size: 14px;
   margin-bottom: 20px;
}

.section-header h2 {
   font-size: 2.5em;
   color: var(--text-color);
   margin-bottom: 20px;
   font-weight: 800;
   line-height: 1.2;
}

.section-header p {
   color: var(--dark-gray);
   font-size: 1.1em;
   max-width: 600px;
   margin: 0 auto;
}

/* Exam Types Section */
.exam-types {
   padding: 100px 0;
   background-color: var(--white);
   position: relative;
   overflow: hidden;
}

.exam-types::before {
   content: "";
   position: absolute;
   inset: 0;
   background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 60%), radial-gradient(circle at right, rgba(147, 197, 253, 0.22), transparent 55%);
   opacity: 0.8;
   pointer-events: none;
}

.exam-types .container {
   position: relative;
   z-index: 1;
}

.exam-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 30px;
   margin-top: 60px;
}

.exam-card {
   background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.85));
   padding: 40px;
   border-radius: var(--border-radius);
   border: 1px solid rgba(148, 163, 184, 0.15);
   transition: var(--transition);
   position: relative;
   overflow: hidden;
}

.exam-card::after {
   content: "";
   position: absolute;
   inset: 0;
   background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 60%);
   opacity: 0;
   transition: var(--transition);
}

.exam-card:hover {
   transform: translateY(-10px);
   box-shadow: var(--shadow-lg);
   border-color: rgba(59, 130, 246, 0.4);
}

.exam-card:hover::after {
   opacity: 1;
}

.exam-card-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 30px;
}

.exam-card i {
   font-size: 2.5em;
   background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.exam-badge {
   padding: 6px 12px;
   background-color: rgba(37, 99, 235, 0.1);
   color: var(--primary-color);
   border-radius: 20px;
   font-size: 12px;
   font-weight: 600;
}

.exam-card h3 {
   font-size: 1.5em;
   margin-bottom: 15px;
   color: var(--text-color);
}

.exam-card p {
   color: var(--dark-gray);
   margin-bottom: 25px;
}

.exam-features {
   list-style: none;
   margin-bottom: 30px;
}

.exam-features li {
   display: flex;
   align-items: center;
   gap: 10px;
   margin-bottom: 12px;
   color: var(--dark-gray);
}

.exam-features i {
   font-size: 14px;
   color: var(--accent-color);
   -webkit-text-fill-color: var(--accent-color);
}

.btn-exam {
   width: 100%;
   background: var(--gradient);
   color: var(--white);
   border: none;
   box-shadow: 0 15px 30px rgba(37, 99, 235, 0.25);
}

/* Features Section */
.features {
   padding: 100px 0;
   background-color: var(--light-gray);
   position: relative;
   overflow: hidden;
}

.features::before {
   content: "";
   position: absolute;
   inset: 0;
   background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.7), transparent 60%), radial-gradient(circle at 20% 80%, rgba(229, 231, 235, 0.65), transparent 55%);
   pointer-events: none;
}

.features .container {
   position: relative;
   z-index: 1;
}

.features-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 30px;
}

.feature-item {
   background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.9));
   padding: 40px;
   border-radius: var(--border-radius);
   transition: var(--transition);
   position: relative;
   overflow: hidden;
   border: 1px solid rgba(148, 163, 184, 0.14);
   box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.feature-item::after {
   content: "";
   position: absolute;
   inset: 0;
   background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 55%);
   opacity: 0;
   transition: var(--transition);
}

.feature-item:hover {
   transform: translateY(-10px);
   box-shadow: 0 25px 50px rgba(15, 23, 42, 0.18);
}

.feature-item:hover::after {
   opacity: 1;
}

.feature-icon {
   width: 60px;
   height: 60px;
   background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.35));
   border-radius: 16px;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 30px;
}

.feature-icon i {
   font-size: 24px;
   color: var(--primary-color);
}

.feature-item h3 {
   font-size: 1.3em;
   margin-bottom: 15px;
   color: var(--text-color);
   position: relative;
   z-index: 1;
}

.feature-item p {
   color: var(--dark-gray);
   position: relative;
   z-index: 1;
}

/* CTA Section */
.cta {
   padding: 100px 0;
   background: var(--gradient);
   color: var(--white);
   text-align: center;
   position: relative;
   overflow: hidden;
}

.cta::before,
.cta::after {
   content: "";
   position: absolute;
   border-radius: 50%;
   filter: blur(0);
   opacity: 0.6;
   pointer-events: none;
}

.cta::before {
   width: 420px;
   height: 420px;
   top: -160px;
   left: -120px;
   background: radial-gradient(circle, rgba(59, 130, 246, 0.5), rgba(37, 99, 235, 0));
}

.cta::after {
   width: 520px;
   height: 520px;
   bottom: -220px;
   right: -120px;
   background: radial-gradient(circle, rgba(96, 165, 250, 0.45), rgba(30, 64, 175, 0));
}

.cta .container {
   position: relative;
   z-index: 1;
}

.cta-content {
   max-width: 560px;
   margin: 0 auto;
   background: rgba(255, 255, 255, 0.08);
   border-radius: 30px;
   padding: 60px 50px;
   border: 1px solid rgba(255, 255, 255, 0.18);
   backdrop-filter: blur(16px);
   box-shadow: 0 25px 45px rgba(15, 23, 42, 0.2);
}

.cta h2 {
   font-size: 2.5em;
   margin-bottom: 20px;
   font-weight: 800;
}

.cta p {
   font-size: 1.2em;
   margin-bottom: 40px;
   opacity: 0.9;
}

.btn-cta {
   background: var(--white);
   color: var(--primary-color);
   padding: 16px 40px;
   font-size: 18px;
   border: none;
   border-radius: 999px;
   box-shadow: 0 20px 35px rgba(37, 99, 235, 0.25);
}

/* Books Section */
.books {
   padding: 100px 0;
   background-color: var(--white);
   position: relative;
   overflow: hidden;
}

.books::before {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), transparent 35%), radial-gradient(circle at 20% 20%, rgba(191, 219, 254, 0.35), transparent 55%);
   pointer-events: none;
   opacity: 0.7;
}

.books .container {
   position: relative;
   z-index: 1;
}

.book-slider {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 25px;
   margin-top: 60px;
}

@media (max-width: 1200px) {
   .book-slider {
      grid-template-columns: repeat(3, 1fr);
   }
}

@media (max-width: 900px) {
   .book-slider {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 600px) {
   .book-slider {
      grid-template-columns: 1fr;
   }
}

.book-card {
   background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(226, 232, 240, 0.9));
   border-radius: var(--border-radius);
   overflow: hidden;
   transition: var(--transition);
   box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
   border: 1px solid rgba(148, 163, 184, 0.16);
   position: relative;
}

.book-card::after {
   content: "";
   position: absolute;
   inset: 0;
   background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 60%);
   opacity: 0;
   transition: var(--transition);
}

.book-badge {
   position: absolute;
   top: 20px;
   right: 20px;
   padding: 6px 12px;
   background-color: var(--accent-color);
   color: var(--white);
   border-radius: 20px;
   font-size: 12px;
   font-weight: 600;
   z-index: 1;
}

.book-card:hover {
   transform: translateY(-10px);
   box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

.book-card:hover::after {
   opacity: 1;
}

.book-image {
   position: relative;
   padding-top: 60%;
}

.book-cover {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(129, 140, 248, 0.35));
   color: var(--primary-color);
}

.book-cover i {
   font-size: 3em;
   margin-bottom: 15px;
}

.book-cover span {
   font-size: 1.2em;
   font-weight: 600;
   padding: 5px 15px;
   background: rgba(255, 255, 255, 0.3);
   border-radius: 20px;
}

.book-content {
   padding: 30px;
}

.book-card h3 {
   font-size: 1.3em;
   margin-bottom: 15px;
   color: var(--text-color);
}

.book-meta {
   display: flex;
   gap: 20px;
   margin-bottom: 15px;
   color: var(--dark-gray);
   font-size: 14px;
}

.book-rating {
   color: #f59e0b;
}

.book-card .price {
   color: var(--primary-color);
   font-size: 1.2em;
   font-weight: 700;
   margin-bottom: 20px;
}

.btn-book {
   width: 100%;
   background: var(--gradient);
   color: var(--white);
}

/* Footer */
.footer {
   background-color: var(--text-color);
   color: var(--white);
   padding: 80px 0 20px;
   position: relative;
   overflow: hidden;
}

.footer::before {
   content: "";
   position: absolute;
   inset: 0;
   background: radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.35), transparent 60%), radial-gradient(circle at 85% 70%, rgba(37, 99, 235, 0.25), transparent 65%);
   opacity: 0.4;
   pointer-events: none;
}

.footer > .container {
   position: relative;
   z-index: 1;
}
.footer-content {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 60px;
   margin-bottom: 60px;
}

.footer h3 {
   font-size: 1.2em;
   margin-bottom: 25px;
   color: var(--white);
}

.footer-info p {
   margin-bottom: 10px;
   opacity: 0.8;
}

.footer-links ul {
   list-style: none;
}

.footer-links a {
   color: var(--white);
   text-decoration: none;
   opacity: 0.8;
   transition: var(--transition);
   display: block;
   margin-bottom: 12px;
}

.footer-links a:hover {
   opacity: 1;
   transform: translateX(5px);
}

.social-icons {
   display: flex;
   gap: 20px;
}

.social-icons a {
   color: var(--white);
   font-size: 1.5em;
   opacity: 0.8;
   transition: var(--transition);
}

.social-icons a:hover {
   opacity: 1;
   transform: translateY(-5px);
}

.footer-bottom {
   text-align: center;
   padding-top: 20px;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   opacity: 0.8;
}

/* Mobile Menu */
.menu-toggle {
   display: none;
   background: none;
   border: none;
   color: var(--primary-color);
   font-size: 1.5em;
   cursor: pointer;
   padding: 8px;
   position: relative;
   z-index: 1001;
   margin-left: 15px;
}

.nav-auth-buttons {
   display: none;
   margin-top: 30px;
   flex-direction: column;
   gap: 10px;
}

.desktop-only {
   display: flex;
}

@media (max-width: 768px) {
   .menu-toggle {
      display: flex;
      order: 1;
   }

   .header-container {
      padding: 0 15px;
   }

   .desktop-only {
      display: none;
   }

   .nav-auth-buttons {
      display: flex;
   }

   .logo {
      order: 0;
   }
   
   .logo-image {
      height: 32px;
      max-width: 80px;
   }

   .main-nav {
      order: 2;
   }

   .main-nav {
      position: fixed;
      top: 0;
      left: -100%;
      width: 80%;
      height: 100vh;
      background: var(--white);
      padding: 80px 30px 30px;
      transition: var(--transition);
      box-shadow: var(--shadow-lg);
      z-index: 999;
   }

   .main-nav.active {
      left: 0;
   }

   .nav-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
      opacity: 0;
      visibility: hidden;
      transition: var(--transition);
      z-index: 998;
   }

   .nav-overlay.active {
      opacity: 1;
      visibility: visible;
   }

   .main-nav ul {
      flex-direction: column;
      gap: 20px;
   }
   
   .dropdown-menu {
      position: static;
      opacity: 1;
      visibility: visible;
      transform: none;
      box-shadow: none;
      border: none;
      background: rgba(37, 99, 235, 0.05);
      border-radius: 8px;
      margin-top: 8px;
      padding: 8px;
      width: 100%;
      max-width: none;
      min-width: auto;
   }
   
   .dropdown-menu a {
      white-space: normal;
      word-break: keep-all;
      overflow-wrap: break-word;
      padding: 10px 16px;
      font-size: 13px;
   }
   
   .dropdown-toggle::after {
      display: none;
   }

   .hero {
      padding: 110px 0 70px;
   }

   .hero::after {
      width: 260px;
      height: 260px;
      top: -150px;
      right: -110px;
      opacity: 0.35;
   }

   .hero .container {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 32px;
      padding: 0 16px;
   }

   .hero-content {
      order: 1;
      width: 100%;
      max-width: 360px;
   }

   .hero h2 {
      font-size: 2.15em;
      margin-bottom: 18px;
   }

   .hero p {
      font-size: 1.05em;
      margin-bottom: 26px;
   }

   .hero-buttons {
      flex-direction: column;
      justify-content: center;
      gap: 14px;
      margin-bottom: 28px;
   }

   .hero-buttons .btn {
      width: 100%;
      max-width: 320px;
      margin: 0 auto;
      font-size: 15px;
      padding: 14px 22px;
   }

   .hero-trust {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 12px;
      width: 100%;
      max-width: 360px;
      margin: 0 auto;
      border-radius: 24px;
      padding: 18px;
   }

   .hero-avatar-group {
      justify-content: center;
   }

   .hero-avatar-group .avatar {
      margin-left: -10px;
      width: 36px;
      height: 36px;
   }

   .hero-stats {
      justify-content: center;
      margin: 0 auto;
      gap: 18px;
      padding: 18px 22px;
      width: 100%;
      max-width: 360px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
   }

   .stat-item {
      text-align: center;
      min-width: 0;
   }

   .stat-item::after {
      display: none;
   }

   .stat-number {
      font-size: 2.05em;
   }

   .stat-label {
      font-size: 0.85em;
   }

   .hero-image {
      order: 2;
      width: 100%;
      max-width: 360px;
      margin: 0 auto;
      padding: 0 12px;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      gap: 18px;
   }

   .demo-box {
      width: 100%;
      margin: 0 auto;
      transform: none;
   }

   .hero-badge-card {
      position: relative;
      bottom: auto;
      left: auto;
      margin: 24px auto 0;
      width: 100%;
      max-width: 360px;
      justify-content: center;
   }

   .exam-grid,
   .features-grid,
   .card-grid {
      grid-template-columns: 1fr;
   }

   .score-section,
   .analytics-grid,
   .exam-layout {
      grid-template-columns: 1fr;
   }
}

/* Popup Layer */
.popup-layer {
   position: fixed;
   background: var(--white);
   border-radius: 18px;
   box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
   border: 1px solid rgba(37, 99, 235, 0.15);
   padding: 0;
   overflow: hidden;
   z-index: 1500;
   max-width: 420px;
   width: calc(100% - 40px);
   animation: fadeInUp 0.45s ease;
}

.popup-layer--center {
   left: 50% !important;
   top: 50% !important;
   transform: translate(-50%, -50%);
}

.popup-layer.hidden {
   display: none !important;
}

.popup-header {
   padding: 20px 24px;
   background: linear-gradient(120deg, rgba(37, 99, 235, 0.12), rgba(79, 70, 229, 0.12));
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
}

.popup-header h3 {
   font-size: 1.1rem;
   color: var(--text-color);
   margin: 0;
}

.popup-close {
   border: none;
   background: rgba(255, 255, 255, 0.7);
   color: var(--primary-color);
   width: 38px;
   height: 38px;
   border-radius: 50%;
   font-size: 1.25rem;
   cursor: pointer;
   box-shadow: var(--shadow-sm);
   transition: var(--transition);
}

.popup-close:hover {
   transform: rotate(90deg);
   background: var(--white);
}

.popup-body {
   padding: 24px;
   max-height: 60vh;
   overflow-y: auto;
   color: var(--dark-gray);
   line-height: 1.6;
}

.popup-actions {
   display: flex;
   justify-content: space-between;
   padding: 16px 24px 20px;
   border-top: 1px solid rgba(148, 163, 184, 0.2);
   background: rgba(248, 250, 252, 0.9);
}

.popup-actions button {
   border: none;
   background: none;
   font-weight: 600;
   color: var(--secondary-color);
   cursor: pointer;
   padding: 10px 0;
   transition: var(--transition);
}

.popup-actions button:first-child {
   color: var(--dark-gray);
}

.popup-actions button:hover {
   color: var(--primary-color);
}

@keyframes fadeInUp {
   from {
      opacity: 0;
      transform: translate3d(0, 20px, 0);
   }
   to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
   }
}

/* Auth Modal Styles */
.auth-modal {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   z-index: 9999;
   justify-content: center;
   align-items: center;
}

.auth-modal.active {
   display: flex;
}

.auth-modal-overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.5);
}

.auth-modal-content {
   position: relative;
   background-color: #fff;
   width: 90%;
   max-width: 400px;
   border-radius: 10px;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
   z-index: 10000;
   overflow: hidden;
   animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
   from {
      transform: translateY(-30px);
      opacity: 0;
   }
   to {
      transform: translateY(0);
      opacity: 1;
   }
}

.auth-modal-close {
   position: absolute;
   top: 15px;
   right: 15px;
   background: none;
   border: none;
   font-size: 24px;
   cursor: pointer;
   color: #999;
   transition: color 0.3s;
   z-index: 10001;
}

.auth-modal-close:hover {
   color: #333;
}

.auth-modal-header {
   padding: 25px 20px 10px;
   text-align: center;
}

.auth-modal-header h2 {
   margin: 0 0 10px;
   font-size: 22px;
   color: #333;
   font-weight: 700;
}

.auth-modal-header p {
   margin: 0;
   color: #666;
   font-size: 14px;
}

.auth-modal-tabs {
   display: flex;
   border-bottom: 1px solid #eee;
   margin-top: 20px;
}

.auth-tab {
   flex: 1;
   padding: 15px;
   background: none;
   border: none;
   cursor: pointer;
   font-size: 16px;
   color: #888;
   font-weight: 600;
   transition: all 0.3s;
}

.auth-tab:hover {
   color: #555;
}

.auth-tab.active {
   color: var(--primary-color, #2563eb);
   border-bottom: 2px solid var(--primary-color, #2563eb);
}

.auth-modal-body {
   padding: 25px;
}

.auth-form {
   display: none;
}

.auth-form.active {
   display: block;
   animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
   from {
      opacity: 0;
   }
   to {
      opacity: 1;
   }
}

.form-group {
   margin-bottom: 20px;
}

.form-group label {
   display: block;
   margin-bottom: 8px;
   font-weight: 500;
   color: #333;
   font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
   width: 100%;
   padding: 12px;
   border: 1px solid #ddd;
   border-radius: 6px;
   font-size: 14px;
   transition: border-color 0.3s;
   box-sizing: border-box;
}

.form-group input:focus {
   border-color: var(--primary-color, #2563eb);
   outline: none;
}

.form-actions {
   margin-top: 20px;
}

.full-width {
   width: 100%;
   padding: 14px;
   border: none;
   border-radius: 6px;
   background: var(--gradient, linear-gradient(135deg, #2563eb, #1d4ed8));
   color: #fff;
   font-size: 16px;
   font-weight: 600;
   cursor: pointer;
   transition: opacity 0.3s;
}

.full-width:hover {
   opacity: 0.9;
}

.form-group input[type="checkbox"] {
   width: auto;
   margin-right: 5px;
   vertical-align: middle;
}

.form-group label:has(input[type="checkbox"]) {
   display: inline-flex;
   align-items: center;
   cursor: pointer;
}

/* Sub Page Hero Style */
.sub-page-hero {
   background: var(--gradient);
   min-height: 100vh;
   padding-top: 100px;
   padding-bottom: 60px;
   display: flex;
   align-items: center;
   justify-content: center;
   position: relative;
   overflow: hidden;
}

.sub-page-hero::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: url("/public/images/pattern.svg");
   opacity: 0.1;
   animation: float 20s linear infinite;
}

.sub-page-card {
   background: var(--white);
   border-radius: 24px;
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
   width: 100%;
   max-width: 600px;
   padding: 40px;
   position: relative;
   z-index: 1;
   margin: 0 20px;
}

.sub-page-header {
   text-align: center;
   margin-bottom: 30px;
}

.sub-page-header h2 {
   color: var(--text-color);
   font-size: 24px;
   font-weight: 800;
   margin-bottom: 10px;
}

.sub-page-header p {
   color: var(--dark-gray);
   font-size: 15px;
}

/* Board Styles */
.board-section {
   padding: 120px 0 100px;
   background: var(--light-gray);
   min-height: 100vh;
}

.board-container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 20px;
}

.board-header {
   text-align: center;
   margin-bottom: 50px;
}

.board-header h2 {
   font-size: 2.5rem;
   font-weight: 800;
   color: var(--text-color);
   margin-bottom: 15px;
}

.board-header p {
   color: var(--dark-gray);
   font-size: 1.1rem;
}

.board-content {
   background: var(--white);
   border-radius: 24px;
   box-shadow: var(--shadow-lg);
   padding: 40px;
   border: 1px solid rgba(148, 163, 184, 0.1);
}

.board-list-header {
   display: grid;
   grid-template-columns: 80px 1fr 120px 120px 80px;
   padding: 20px;
   border-bottom: 2px solid var(--light-gray);
   font-weight: 700;
   color: var(--text-color);
   text-align: center;
   background: #f8fafc;
   border-radius: 12px 12px 0 0;
}

.board-list-item {
   display: grid;
   grid-template-columns: 80px 1fr 120px 120px 80px;
   padding: 20px;
   border-bottom: 1px solid #f1f5f9;
   align-items: center;
   text-align: center;
   transition: var(--transition);
   color: var(--dark-gray);
}

.board-list-item:hover {
   background: #f8fafc;
   transform: translateY(-2px);
}

.col-title {
   text-align: left;
   padding-left: 20px;
}

.col-title a {
   color: var(--text-color);
   text-decoration: none;
   font-weight: 600;
   transition: color 0.2s;
   display: flex;
   align-items: center;
   gap: 8px;
}

.col-title a:hover {
   color: var(--primary-color);
}

.badge-new {
   font-size: 10px;
   background: #ef4444;
   color: white;
   padding: 2px 6px;
   border-radius: 4px;
   font-weight: 700;
}

.badge-hot {
   font-size: 10px;
   background: #f59e0b;
   color: white;
   padding: 2px 6px;
   border-radius: 4px;
   font-weight: 700;
}

.board-pagination {
   margin-top: 40px;
   display: flex;
   justify-content: center;
   gap: 8px;
}

.board-pagination li a,
.board-pagination li span {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 40px;
   height: 40px;
   border-radius: 10px;
   background: var(--white);
   border: 1px solid #e2e8f0;
   color: var(--dark-gray);
   text-decoration: none;
   transition: var(--transition);
   font-weight: 600;
}

.board-pagination li.active a,
.board-pagination li.active span,
.board-pagination li a:hover {
   background: var(--primary-color);
   color: var(--white);
   border-color: var(--primary-color);
}

.board-search {
   margin-bottom: 30px;
   display: flex;
   justify-content: flex-end;
   gap: 10px;
}

.search-input {
   padding: 12px 20px;
   border: 1px solid #e2e8f0;
   border-radius: 12px;
   width: 250px;
   font-family: inherit;
}

.btn-search {
   background: var(--dark-gray);
   color: var(--white);
   border: none;
   padding: 12px 24px;
   border-radius: 12px;
   cursor: pointer;
   font-weight: 600;
   transition: var(--transition);
}

.btn-search:hover {
   background: var(--text-color);
}

.board-footer {
   margin-top: 30px;
   display: flex;
   justify-content: flex-end;
}

@media (max-width: 768px) {
   .board-list-header {
      display: none;
   }

   .board-list-item {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      text-align: left;
      gap: 10px;
      padding: 25px;
   }

   .col-num,
   .col-hit {
      display: none;
   }

   .col-title {
      padding-left: 0;
      width: 100%;
      font-size: 1.1rem;
   }

   .col-info-mobile {
      display: flex;
      gap: 15px;
      font-size: 0.9rem;
      color: #94a3b8;
   }
}

/* Board Styles (User Template Support) */
.board-top {
   margin-bottom: 20px;
   display: flex;
   justify-content: flex-end;
}

.search-form {
   display: flex;
   gap: 10px;
   align-items: center;
}

.form-select {
   padding: 10px 15px;
   border: 1px solid #ddd;
   border-radius: 8px;
   font-size: 14px;
   height: 42px;
   background-color: var(--white);
}

.input-area {
   position: relative;
   display: flex;
   align-items: center;
}

.form-input {
   padding: 10px 45px 10px 15px;
   border: 1px solid #ddd;
   border-radius: 8px;
   width: 250px;
   height: 42px;
   font-size: 14px;
}

.select-button {
   position: absolute;
   right: 5px;
   top: 50%;
   transform: translateY(-50%);
   background: none;
   border: none;
   cursor: pointer;
   padding: 5px;
}

.select-button img {
   width: 20px;
   height: 20px;
   display: block;
}

.board-wrap {
   margin-top: 30px;
   background: var(--white);
   border-radius: 16px;
   box-shadow: var(--shadow-sm);
   padding: 20px;
}

.board-list.line-top {
   border-bottom: 1px solid #eee;
   margin-bottom: 10px;
}

.list {
   display: flex;
   align-items: center;
   padding: 15px 10px;
   border-bottom: 1px solid #f1f5f9;
   transition: var(--transition);
}

.list:last-child {
   border-bottom: none;
}

.list:hover {
   background-color: #f8fafc;
}

.list .major {
   width: 60px;
   text-align: center;
   background: var(--primary-color);
   color: var(--white);
   padding: 4px 8px;
   border-radius: 4px;
   font-size: 12px;
   font-weight: 700;
   margin-right: 15px;
}

.list .number {
   width: 60px;
   text-align: center;
   color: var(--dark-gray);
   font-weight: 600;
}

.list .subject {
   flex: 1;
   padding: 0 15px;
}

.list .subject a {
   color: var(--text-color);
   text-decoration: none;
   font-weight: 500;
   font-size: 15px;
   display: block;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.list .subject a:hover {
   color: var(--primary-color);
   text-decoration: underline;
}

.list .file {
   width: 40px;
   text-align: center;
   opacity: 0.5;
}

.list .file img {
   width: 16px;
   height: 16px;
}

.list .date {
   width: 100px;
   text-align: center;
   color: #94a3b8;
   font-size: 13px;
}

.ready {
   text-align: center;
   padding: 50px;
   color: #94a3b8;
   font-size: 15px;
}

/* Pagination */
.pagination {
   display: flex;
   justify-content: center;
   margin-top: 40px;
   gap: 5px;
}

.pagination ul {
   display: flex;
   list-style: none;
   gap: 5px;
   padding: 0;
}

.pagination li a {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 36px;
   height: 36px;
   border-radius: 8px;
   background: var(--white);
   border: 1px solid #e2e8f0;
   color: var(--dark-gray);
   text-decoration: none;
   font-size: 14px;
   transition: var(--transition);
}

.pagination li.active a,
.pagination li a:hover {
   background: var(--primary-color);
   color: var(--white);
   border-color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
   .board-top {
      justify-content: center;
   }

   .search-form {
      width: 100%;
      flex-direction: column;
   }

   .form-select,
   .input-area,
   .form-input {
      width: 100%;
   }

   .list {
      flex-wrap: wrap;
      position: relative;
      padding: 20px 15px;
   }

   .list .major {
      position: absolute;
      top: 20px;
      left: 15px;
      margin: 0;
   }

   .list .number {
      display: none;
   }

   .list .subject {
      width: 100%;
      padding: 0;
      margin-bottom: 10px;
      padding-left: 70px; /* Space for major/badge */
   }

   .list .subject a {
      white-space: normal;
      line-height: 1.4;
   }

   .list .file {
      display: none;
   }

   .list .date {
      width: 100%;
      text-align: left;
      padding-left: 70px;
      font-size: 12px;
   }
}

/* ========================================
   마이페이지 스타일 (메인 페이지와 동일한 결)
   ======================================== */
.mypage-main-wrap {
   padding: 60px 0 100px;
   background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 45%),
               radial-gradient(circle at 10% 80%, rgba(99, 102, 241, 0.06), transparent 55%),
               var(--light-gray);
   min-height: 100vh;
}

/* 사용자 정보 섹션 */
.mypage-user-section {
   margin-bottom: 40px;
}

.user-profile-card {
   display: flex;
   align-items: center;
   justify-content: space-between;
   background: var(--white);
   padding: 30px;
   border-radius: var(--border-radius);
   box-shadow: var(--shadow-md);
   margin-bottom: 25px;
}

.user-profile-info {
   display: flex;
   align-items: center;
   gap: 20px;
}

.user-avatar {
   width: 70px;
   height: 70px;
   background: var(--gradient);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--white);
   font-size: 28px;
}

.user-details .user-name {
   font-size: 1.5em;
   font-weight: 700;
   color: var(--text-color);
   margin-bottom: 5px;
}

.user-details .user-welcome {
   color: var(--dark-gray);
   font-size: 0.95em;
}

/* 사용자 통계 그리드 */
.user-stats-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
}

.stat-card {
   display: flex;
   align-items: center;
   gap: 15px;
   background: var(--white);
   padding: 25px;
   border-radius: var(--border-radius);
   box-shadow: var(--shadow-sm);
   transition: var(--transition);
}

.stat-card:hover {
   transform: translateY(-4px);
   box-shadow: var(--shadow-lg);
}

.stat-icon {
   width: 50px;
   height: 50px;
   background: rgba(37, 99, 235, 0.1);
   border-radius: 12px;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--primary-color);
   font-size: 20px;
}

.stat-info {
   display: flex;
   flex-direction: column;
}

.stat-label {
   font-size: 13px;
   color: var(--dark-gray);
   margin-bottom: 3px;
}

.stat-value {
   font-size: 1.3em;
   font-weight: 700;
   color: var(--text-color);
}

/* 섹션 헤더 (왼쪽 정렬) */
.section-header-left {
   margin-bottom: 25px;
}

.section-header-left .section-badge {
   display: inline-block;
   padding: 6px 14px;
   background-color: rgba(37, 99, 235, 0.1);
   color: var(--primary-color);
   border-radius: 20px;
   font-weight: 600;
   font-size: 13px;
   margin-bottom: 12px;
}

.section-header-left h3 {
   font-size: 1.5em;
   font-weight: 700;
   color: var(--text-color);
   margin-bottom: 8px;
}

.section-header-left .section-desc {
   font-size: 0.9em;
   color: var(--dark-gray);
}

/* 주문/배송 현황 */
.mypage-order-status {
   margin-bottom: 40px;
}

.order-status-card {
   background: var(--white);
   border-radius: var(--border-radius);
   box-shadow: var(--shadow-md);
   padding: 30px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 30px;
}

.order-process {
   flex: 1;
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.process-step {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 8px;
   padding: 10px 20px;
   border-radius: 12px;
   transition: var(--transition);
}

.process-step:hover {
   background: rgba(37, 99, 235, 0.05);
}

.process-step:hover .step-count {
   color: var(--primary-color);
   transform: scale(1.1);
}

.step-count {
   font-size: 2em;
   font-weight: 700;
   color: var(--text-color);
   transition: var(--transition);
}

.step-label {
   font-size: 13px;
   color: var(--dark-gray);
   font-weight: 500;
}

.process-arrow {
   color: #ddd;
   font-size: 12px;
}

.cancel-status {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 15px 25px;
   background: #fef2f2;
   border: 1px solid #fecaca;
   border-radius: 12px;
   color: #dc2626;
   font-size: 14px;
   font-weight: 500;
   transition: var(--transition);
}

.cancel-status:hover {
   background: #fee2e2;
}

.cancel-status strong {
   font-size: 1.3em;
   font-weight: 700;
}

/* 퀵 메뉴 */
.mypage-quick-menu {
   margin-bottom: 40px;
}

.mypage-quick-menu .quick-menu-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 20px;
}

.quick-item {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 12px;
   padding: 30px 20px;
   background: var(--white);
   border-radius: var(--border-radius);
   box-shadow: var(--shadow-sm);
   transition: var(--transition);
}

.quick-item:hover {
   transform: translateY(-4px);
   box-shadow: var(--shadow-lg);
}

.quick-item .quick-icon {
   width: 55px;
   height: 55px;
   background: var(--gradient);
   border-radius: 14px;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--white);
   font-size: 22px;
}

.quick-item span {
   font-size: 15px;
   font-weight: 600;
   color: var(--text-color);
}

/* 최근 주문 섹션 */
.mypage-recent-orders {
   margin-bottom: 40px;
}

.order-cards {
   display: flex;
   flex-direction: column;
   gap: 20px;
   margin-bottom: 30px;
}

.order-card {
   background: var(--white);
   border-radius: var(--border-radius);
   box-shadow: var(--shadow-sm);
   overflow: hidden;
   transition: var(--transition);
}

.order-card:hover {
   box-shadow: var(--shadow-md);
}

.order-card-head {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 18px 25px;
   background: var(--light-gray);
   border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.order-meta {
   display: flex;
   flex-direction: column;
   gap: 4px;
}

.order-date {
   font-size: 15px;
   font-weight: 600;
   color: var(--text-color);
}

.order-no {
   font-size: 12px;
   color: var(--dark-gray);
}

.order-badge {
   padding: 6px 14px;
   border-radius: 20px;
   font-size: 13px;
   font-weight: 600;
}

.order-badge.status-0 { background: #fff7ed; color: #c2410c; }
.order-badge.status-1 { background: #eff6ff; color: #1d4ed8; }
.order-badge.status-2 { background: #ecfdf5; color: #059669; }
.order-badge.status-3 { background: #faf5ff; color: #7c3aed; }
.order-badge.status-4 { background: #f0fdf4; color: #15803d; }
.order-badge.status-5 { background: #fef2f2; color: #dc2626; }

.order-card-body {
   display: flex;
   align-items: center;
   gap: 20px;
   padding: 25px;
}

.order-thumb {
   width: 90px;
   height: 90px;
   border-radius: 10px;
   overflow: hidden;
   flex-shrink: 0;
}

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

.order-product-info {
   flex: 1;
}

.product-title {
   font-size: 15px;
   font-weight: 600;
   color: var(--text-color);
   display: block;
   margin-bottom: 10px;
   line-height: 1.4;
}

.product-title:hover {
   color: var(--primary-color);
}

.product-details {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   font-size: 13px;
   color: var(--dark-gray);
}

.product-details span:not(:last-child)::after {
   content: "·";
   margin-left: 8px;
   color: #ddd;
}

.product-details .price {
   font-weight: 600;
   color: var(--text-color);
}

.order-card-foot {
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   gap: 10px;
   padding: 18px 25px;
   background: var(--light-gray);
   border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* 버튼 스타일 */
.btn-sm {
   padding: 8px 16px;
   font-size: 13px;
   border-radius: 8px;
   font-weight: 600;
}

.btn-outline {
   background: var(--white);
   border: 1px solid #e2e8f0;
   color: var(--text-color);
}

.btn-outline:hover {
   border-color: var(--primary-color);
   color: var(--primary-color);
}

.btn-accent {
   background: #f59e0b;
   color: var(--white);
   border: none;
}

.btn-accent:hover {
   background: #d97706;
}

.btn-success {
   background: #10b981;
   color: var(--white);
   border: none;
}

.btn-success:hover {
   background: #059669;
}

/* 버튼 영역 */
.btn-area-center {
   text-align: center;
   margin-top: 30px;
}

/* 빈 상태 */
.mypage-main-wrap .empty-state {
   text-align: center;
   padding: 80px 20px;
   background: var(--white);
   border-radius: var(--border-radius);
   box-shadow: var(--shadow-sm);
}

.mypage-main-wrap .empty-icon {
   font-size: 60px;
   color: #e2e8f0;
   margin-bottom: 20px;
}

.mypage-main-wrap .empty-state p {
   font-size: 16px;
   color: var(--dark-gray);
   margin-bottom: 25px;
}

/* 마이페이지 반응형 */
@media (max-width: 1024px) {
   .user-stats-grid {
      grid-template-columns: repeat(3, 1fr);
   }
   
   .order-status-card {
      flex-direction: column;
      gap: 20px;
   }
   
   .order-process {
      width: 100%;
   }
   
   .cancel-status {
      width: 100%;
      justify-content: center;
   }
}

@media (max-width: 768px) {
   .mypage-main-wrap {
      padding: 40px 0 60px;
   }
   
   .user-profile-card {
      flex-direction: column;
      align-items: flex-start;
      gap: 20px;
      padding: 25px;
   }
   
   .user-stats-grid {
      grid-template-columns: 1fr;
      gap: 15px;
   }
   
   .stat-card {
      padding: 20px;
   }
   
   .order-process {
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
   }
   
   .process-step {
      padding: 10px 15px;
   }
   
   .step-count {
      font-size: 1.5em;
   }
   
   .process-arrow {
      display: none;
   }
   
   .mypage-quick-menu .quick-menu-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
   }
   
   .quick-item {
      padding: 25px 15px;
   }
   
   .order-card-body {
      flex-direction: column;
      align-items: flex-start;
   }
   
   .order-thumb {
      width: 100%;
      height: 180px;
   }
   
   .order-card-foot {
      flex-wrap: wrap;
   }
   
   .order-card-foot .btn-sm {
      flex: 1;
      min-width: calc(50% - 5px);
      text-align: center;
      justify-content: center;
   }
}

@media (max-width: 480px) {
   .section-header-left h3 {
      font-size: 1.3em;
   }
   
   .order-status-card {
      padding: 20px;
   }
   
   .quick-item .quick-icon {
      width: 45px;
      height: 45px;
      font-size: 18px;
   }
   
   .quick-item span {
      font-size: 13px;
   }
}
