* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Progress Bar */

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    z-index: 10000;
    transition: width 0.3s ease;
}


/* Navigation */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    height: 100px;
    /* 데스크톱 navbar 높이 */
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.logo img {
    height: 10rem;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}


/* 태블릿 크기 */

@media (max-width: 768px) {
    nav {
        height: 100px;
        /* 태블릿도 데스크톱과 동일 */
    }
    .logo img {
        height: 10rem;
    }
}


/* 모바일 크기 */

@media (max-width: 480px) {
    nav {
        height: 90px;
        /* 모바일에서 적당한 크기 */
    }
    .logo img {
        height: 8rem;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.nav-links a.auth-link {
    color: #667eea;
}

.nav-links a.nav-login {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-links a.nav-login:hover {
    color: white;
    background: linear-gradient(45deg, #5a6fd8, #6a4a96);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.nav-links a.nav-mypage {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.nav-links a.nav-mypage:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}


/* 모바일 네비게이션 컨테이너 */

.mobile-nav-container {
    display: none;
    align-items: center;
    gap: 1rem;
}


/* 모바일 상단 버튼들 */

.mobile-top-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-login-btn,
.mobile-mypage-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-login-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.mobile-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.mobile-mypage-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.mobile-mypage-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.mobile-logout-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    background: #e9ecef;
    color: #495057;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-logout-btn:hover {
    background: #dee2e6;
    transform: translateY(-1px);
}

.mobile-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333;
}

.mobile-menu:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.mobile-menu.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.close-icon {
    font-size: 1.8rem;
    font-weight: bold;
}


/* Hero Section */

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="100" fill="rgba(255,255,255,0.1)"/><circle cx="800" cy="300" r="150" fill="rgba(255,255,255,0.05)"/><circle cx="300" cy="700" r="80" fill="rgba(255,255,255,0.08)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideUp 1s ease-out;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 1s ease-out 0.6s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Buttons */

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    border: none;
    cursor: pointer;
    min-width: auto;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.cta-button-white {
    display: inline-block;
    padding: 18px 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
}

.cta-button-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}


/* Section Titles */

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    color: #333;
}


/* How it Works Section */

.how-it-works {
    padding: 100px 20px;
    background: #f8f9fa;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.step {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.step p {
    color: #666;
    line-height: 1.6;
}


/* Features Section */

.features {
    padding: 100px 20px;
    background: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}


/* Stats Section */

.stats {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    padding: 1rem;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}


/* Footer */

footer {
    background: #333;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 2rem;
    color: #999;
}


/* Authentication Page Styles */

.auth-hero {
    min-height: 50vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.auth-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.auth-form-container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
}

.auth-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form-header h1 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.auth-form-header p {
    color: #666;
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin: 1rem 0;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.checkbox-container input:checked~.checkmark {
    background-color: #667eea;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}


/* Social Login Styles */

.social-login-section {
    width: 100%;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-btn.google-btn:hover {
    border-color: #4285f4;
    background: rgba(66, 133, 244, 0.05);
}

.social-btn.naver-btn {
    border-color: #03C75A;
    color: #03C75A;
}

.social-btn.naver-btn:hover {
    background: rgba(3, 199, 90, 0.05);
}

.social-btn.kakao-btn {
    border-color: #FEE500;
    background: #FEE500;
    color: #000;
}

.social-btn.kakao-btn:hover {
    background: #FDD835;
}


/* Challenge and Authentication Styles */

.challenge-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: white;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.auth-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.auth-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calendar-day.completed {
    background: linear-gradient(45deg, #51cf66, #69db7c);
    color: white;
    border-color: #51cf66;
}

.calendar-day.today {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.photo-input-container {
    text-align: center;
}

.image-preview {
    width: 100%;
    height: 300px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.image-placeholder {
    font-size: 4rem;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.photo-input-controls,
.upload-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* Camera Modal */

.camera-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.camera-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 90vw;
    max-height: 90vh;
}

.camera-stream {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.camera-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* Fade-in Animation */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Loading and Alert Styles */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.alert {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-weight: 600;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}


/* Mobile Responsive */

@media (max-width: 768px) {
    /* 네비게이션 관련 */
    .nav-links {
        display: none;
    }
    .mobile-nav-container {
        display: flex;
    }
    .mobile-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 8px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        color: #333;
        cursor: pointer;
        position: relative;
    }
    .mobile-menu:hover {
        background: rgba(102, 126, 234, 0.1);
        color: #667eea;
        transform: scale(1.05);
    }
    .mobile-menu.active {
        color: #667eea;
        background: rgba(102, 126, 234, 0.1);
    }
    .hamburger-icon,
    .close-icon {
        font-size: 1.5rem;
        font-weight: bold;
        transition: all 0.3s ease;
    }
    .close-icon {
        font-size: 1.8rem;
    }
    /* 모바일 메뉴가 열렸을 때 강제로 표시 */
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        max-width: 400px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(25px);
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        padding: 1.5rem 0;
        gap: 0;
        animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        border: 1px solid rgba(255, 255, 255, 0.3);
        z-index: 1000;
    }
    .nav-links.active li {
        width: 100%;
    }
    .nav-links.active a {
        display: block;
        width: calc(100% - 2rem);
        padding: 1rem;
        margin: 0.2rem 1rem;
        text-align: center;
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        border-radius: 12px;
        box-sizing: border-box;
    }
    .nav-links.active a:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }
    .nav-links.active a.auth-link {
        background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
        color: white;
        font-weight: 700;
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
        margin: 0.2rem 1rem;
    }
    .nav-links.active a.auth-link:hover {
        background: linear-gradient(135deg, #ff5252 0%, #ff7979 100%);
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
    }
    .nav-links.active a.nav-login {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        font-weight: 700;
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        margin: 0.2rem 1rem;
    }
    .nav-links.active a.nav-login:hover {
        background: linear-gradient(135deg, #5a6fd8 0%, #6a4a96 100%);
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    }
    .nav-links.active a.nav-mypage {
        background: rgba(102, 126, 234, 0.1);
        color: #667eea;
        font-weight: 700;
        border: 2px solid rgba(102, 126, 234, 0.2);
        margin: 0.2rem 1rem;
    }
    .nav-links.active a.nav-mypage:hover {
        background: rgba(102, 126, 234, 0.2);
        border-color: rgba(102, 126, 234, 0.4);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }
    /* Hero 섹션 */
    .hero h1 {
        font-size: 2.5rem;
    }
    /* Steps 섹션 */
    .steps {
        grid-template-columns: 1fr;
    }
    /* Features 섹션 */
    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    /* 버튼들 */
    .cta-button,
    .cta-button-white {
        font-size: 1.2rem;
        padding: 18px 40px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    /* 인증 관련 */
    .auth-calendar {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.3rem;
    }
    .camera-controls,
    .photo-input-controls,
    .upload-controls {
        flex-direction: column;
        align-items: center;
    }
    .auth-form-card {
        padding: 2rem;
    }
    .image-preview {
        height: 250px;
    }
    .camera-container {
        padding: 1rem;
    }
    /* 테이블 관련 */
    .table-container {
        font-size: 0.9rem;
    }
    .applications-table th,
    .applications-table td {
        padding: 0.5rem;
    }
    /* 관리자 페이지 관련 */
    .admin-container {
        padding: 1rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .application-header {
        flex-direction: column;
        gap: 1rem;
    }
    .application-status {
        text-align: left;
    }
    .summary-grid {
        grid-template-columns: 1fr;
    }
    .filter-buttons {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    .action-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    .modal-content {
        width: 95vw;
        margin: 1rem;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .progress-overview {
        flex-direction: column;
        text-align: center;
    }
    .progress-stats {
        justify-content: center;
    }
    /* 쿠폰 관련 반응형 */
    .coupon-modal-content {
        width: 95vw;
        margin: 1rem;
    }
    .coupon-actions {
        flex-direction: column;
    }
    .coupon-btn-primary,
    .coupon-btn-secondary {
        width: 100%;
    }
    /* 마이페이지 관련 */
    .mypage-container {
        padding: 100px 15px 20px;
    }
    .mypage-header h1 {
        font-size: 2rem;
    }
    .user-info,
    .coupon-vault,
    .challenge-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .challenge-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .info-item {
        padding: 1rem;
    }
    .progress-circle-large {
        width: 120px;
        height: 120px;
    }
    .progress-circle-large::before {
        width: 95px;
        height: 95px;
    }
    .progress-text-large {
        font-size: 1.5rem;
    }
    .action-buttons {
        gap: 0.8rem;
    }
    .coupon-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    .coupon-use-btn {
        align-self: stretch;
    }
    .status-card {
        padding: 2rem;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    /* 컨테이너 패딩 조정 */
    .auth-container {
        padding: 20px 10px;
    }
    .auth-section {
        padding: 1.5rem;
    }
    .auth-form-card {
        padding: 1.5rem;
    }
    /* 이미지 관련 */
    .image-preview {
        height: 200px;
    }
    .camera-preview {
        height: 250px;
    }
    /* 모바일 상단 버튼들 크기 조정 */
    .mobile-top-buttons {
        gap: 0.3rem;
    }
    .mobile-login-btn,
    .mobile-mypage-btn,
    .mobile-logout-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    /* 관리자 페이지 */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    /* 마이페이지 */
    .challenge-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .info-item {
        padding: 0.8rem;
    }
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    .cta-button,
    .cta-button-white {
        min-width: 100%;
        text-align: center;
    }
}

.mobile-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333;
    cursor: pointer;
    position: relative;
}

.mobile-menu:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: scale(1.05);
}

.mobile-menu.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.hamburger-icon,
.close-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.close-icon {
    font-size: 1.8rem;
}


/* Final CTA 섹션 스타일 강화 */

.final-cta {
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="100" fill="rgba(255,255,255,0.1)"/><circle cx="800" cy="300" r="150" fill="rgba(255,255,255,0.05)"/></svg>');
    animation: float 15s ease-in-out infinite;
}

.final-cta h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.final-cta p {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.final-cta .hero-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.final-cta .cta-button-white {
    background: white;
    color: #667eea;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.final-cta .cta-button-white:hover {
    background: #f8f9fa;
    color: #5a6fd8;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}


/* 모바일 반응형 */

@media (max-width: 768px) {
    .final-cta {
        padding: 80px 20px;
    }
    .final-cta .cta-button-white {
        padding: 16px 32px;
        font-size: 1.1rem;
        min-width: 200px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


/* 맨 밑 버튼을 위 버튼과 같은 색깔로 */

.final-cta .cta-button-white {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3) !important;
}

.final-cta .cta-button-white:hover {
    background: linear-gradient(45deg, #ff5252, #ff7979) !important;
    color: white !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4) !important;
}

#startChallengeBtn {
    min-width: auto !important;
}


/* 모달 관련 스타일 */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* 상태 배지 */

.status-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-draft {
    background: #6c757d;
    color: white;
}

.status-payment_pending {
    background: #ffc107;
    color: #333;
}

.status-approved {
    background: #17a2b8;
    color: white;
}

.status-active {
    background: #28a745;
    color: white;
}

.status-completed {
    background: #20c997;
    color: white;
}

.status-cancelled {
    background: #dc3545;
    color: white;
}


/* 이벤트 관리 추가 스타일 */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons button {
    padding: 0.3rem 0.6rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.action-buttons button:hover {
    background: rgba(0, 0, 0, 0.1);
}