    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Arial', sans-serif;
        background: linear-gradient(135deg, #ff9ec7, #ffc9dd);
        min-height: 100vh;
    }

    .header {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 2px solid #ff9ec7;
        box-shadow: 0 4px 20px rgba(255, 158, 199, 0.3);
    }

    .top-bar {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 20px 40px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 15px;
        font-size: 32px;
        font-weight: bold;
        color: #e91e63;
        text-decoration: none;
        transition: transform 0.3s ease;
    }

    .logo:hover {
        transform: scale(1.05);
    }

    .logo-text {
        font-size: 36px;
        font-weight: 900;
        background: linear-gradient(45deg, #e91e63, #ff5722);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 2px 2px 4px rgba(233, 30, 99, 0.3);
    }

    .gacha-machine {
        width: 60px;
        height: 80px;
        position: relative;
        animation: bounce 2s infinite;
    }

    @keyframes bounce {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0);
        }

        40% {
            transform: translateY(-10px);
        }

        60% {
            transform: translateY(-5px);
        }
    }

    .machine-top {
        width: 50px;
        height: 15px;
        background: linear-gradient(45deg, #1565c0, #0d47a1);
        border-radius: 10px 10px 5px 5px;
        border: 3px solid #0d47a1;
        position: relative;
    }

    .machine-top::before {
        content: '';
        position: absolute;
        top: 3px;
        left: 5px;
        width: 8px;
        height: 3px;
        background: #ffebee;
        border-radius: 2px;
    }

    .machine-top::after {
        content: '';
        position: absolute;
        top: 8px;
        left: 5px;
        width: 35px;
        height: 2px;
        background: #e53935;
    }

    .machine-body {
        width: 50px;
        height: 40px;
        background: linear-gradient(45deg, #4dd0e1, #26c6da);
        border: 3px solid #0d47a1;
        border-radius: 5px;
        position: relative;
        margin-top: -2px;
    }

    .machine-window {
        position: absolute;
        top: 5px;
        left: 8px;
        width: 30px;
        height: 25px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 3px;
        border: 2px solid #0d47a1;
    }

    .machine-ball {
        position: absolute;
        top: 8px;
        left: 12px;
        width: 15px;
        height: 15px;
        background: linear-gradient(45deg, #ffd54f, #ffb300);
        border-radius: 50%;
        border: 2px solid #0d47a1;
    }

    .machine-ball::after {
        content: '';
        position: absolute;
        top: 6px;
        left: 0;
        width: 100%;
        height: 1px;
        background: #e53935;
    }

    .machine-controls {
        width: 50px;
        height: 20px;
        background: linear-gradient(45deg, #e53935, #c62828);
        border: 3px solid #0d47a1;
        border-radius: 0 0 8px 8px;
        position: relative;
        margin-top: -2px;
    }

    .control-button {
        position: absolute;
        top: 3px;
        left: 8px;
        width: 12px;
        height: 12px;
        background: #ffebee;
        border-radius: 50%;
        border: 2px solid #0d47a1;
    }

    .control-knob {
        position: absolute;
        top: 5px;
        right: 8px;
        width: 8px;
        height: 8px;
        background: #90a4ae;
        border-radius: 50%;
        border: 2px solid #0d47a1;
    }

    .auth-buttons {
        display: flex;
        gap: 15px;
    }

    .btn {
        padding: 12px 24px;
        border: none;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-block;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .btn-login {
        background: transparent;
        color: #e91e63;
        border: 2px solid #e91e63;
    }

    .btn-login:hover {
        background: #e91e63;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
    }

    .btn-signup {
        background: linear-gradient(45deg, #e91e63, #ff5722);
        color: white;
    }

    .btn-signup:hover {
        background: linear-gradient(45deg, #c2185b, #e64a19);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    }

    .nav-menu {
        background: rgba(255, 255, 255, 0.9);
        border-top: 1px solid #ffcdd2;
        padding: 0 40px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .nav-list {
        display: flex;
        list-style: none;
        gap: 40px;
        padding: 15px 0;
    }

    .nav-item a {
        color: #e91e63;
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
        padding: 10px 15px;
        border-radius: 20px;
        transition: all 0.3s ease;
        position: relative;
    }

    .nav-item a::before {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(45deg, #e91e63, #ff5722);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-item a:hover {
        background: rgba(233, 30, 99, 0.1);
        color: #c2185b;
        transform: translateY(-2px);
    }

    .nav-item a:hover::before {
        width: 100%;
    }

    .main-content {
        background: white;
        min-height: calc(100vh - 200px);
        padding: 40px;
        max-width: 1200px;
        margin: 0 auto;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    }

    .search-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 60px 0;
    }

    .search-wrapper {
        position: relative;
        width: 100%;
        max-width: 800px;
    }

    .search-input {
        width: 100%;
        padding: 20px 60px 20px 24px;
        border: 3px solid #e0e0e0;
        border-radius: 50px;
        font-size: 18px;
        background: #fafafa;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    .search-input:focus {
        outline: none;
        border-color: #e91e63;
        background: white;
        box-shadow: 0 4px 30px rgba(233, 30, 99, 0.2);
        transform: translateY(-2px);
    }

    .search-input::placeholder {
        color: #999;
        font-weight: 500;
    }

    .voice-search-btn {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 50%;
        background: linear-gradient(45deg, #e91e63, #ff5722);
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    }

    .voice-search-btn:hover {
        background: linear-gradient(45deg, #c2185b, #e64a19);
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    }

    .voice-search-btn:active {
        transform: translateY(-50%) scale(0.95);
    }

    .voice-icon {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    /* 신제품 광고 배너 스타일 */
    .banner-container {
        background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
        border-radius: 20px;
        padding: 30px;
        margin: 40px 0;
        box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
        overflow: hidden;
        position: relative;
    }

    .search-btn {
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 50%;
        background: linear-gradient(45deg, #2196f3, #03a9f4);
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    }

    .search-btn:hover {
        background: linear-gradient(45deg, #1976d2, #0288d1);
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
    }

    .search-btn:active {
        transform: translateY(-50%) scale(0.95);
    }

    .search-icon {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .search-results {
        display: grid;
        gap: 20px;
        margin-top: 20px;
    }

    .horizontal-scroll-container {
        display: flex;
        overflow-x: auto;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
    }

    .search-card {
        min-width: 250px;
        border: 1px solid #ccc;
        padding: 10px;
        border-radius: 10px;
        flex-shrink: 0;
        background-color: #fff;
    }

    .search-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }

    .search-card-title {
        font-size: 18px;
        font-weight: 700;
        color: #e91e63;
    }

    .search-card-content {
        font-size: 14px;
        color: #333;
        margin-top: 8px;
    }

    .search-card-link {
        text-decoration: none;
        /* Remove underline */
        color: inherit;
        /* Inherit text color */
        display: block;
        /* Make the whole card clickable */
        margin-bottom: 15px;
        /* Add some space between cards */
        transition: transform 0.2s;
    }

    .search-card-link:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        /* Add a subtle shadow on hover */
    }

    /* Also ensure your existing .search-card styles are compatible */
    .search-card {
        background-color: #f9f9f9;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    /* For horizontal scrolling containers */
    .horizontal-scroll-container {
        display: flex;
        overflow-x: auto;
        /* Enable horizontal scrolling */
        white-space: nowrap;
        /* Prevent items from wrapping */
        padding-bottom: 10px;
        height: 250;
        /* Space for scrollbar */
        gap: 15px;
        /* Space between cards */
        margin-bottom: 15px;
        scrollbar-width: thin;
        /* Firefox */
        scrollbar-color: #888 #f1f1f1;
        /* Firefox */
    }

    /* For Webkit browsers (Chrome, Safari) */
    .horizontal-scroll-container::-webkit-scrollbar {
        height: 8px;
    }

    .horizontal-scroll-container::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 10px;
    }

    .horizontal-scroll-container::-webkit-scrollbar-track {
        background-color: #f1f1f1;
        border-radius: 10px;
    }

    /* Style for search cards within horizontal scroll */
    .gacha-card-small,
    .info-card-small {
        flex: 0 0 auto;
        /* Prevent stretching and allow shrinking */
        width: 150px;
        /* Fixed width for small cards */
        height: 250px;
        /* Fixed height for consistency */
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Push content and image apart */
        align-items: center;
        text-align: center;
        background-color: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        transition: transform 0.2s ease-in-out;
    }

    .gacha-card-small:hover,
    .info-card-small:hover,
    .board-card-small:hover .search-card {
        transform: translateY(-5px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .gacha-card-small img,
    .info-card-small img {
        max-width: 100%;
        max-height: 120px;
        /* Limit image height */
        object-fit: contain;
        /* Ensure image fits without cropping */
        margin-top: 10px;
        border-radius: 4px;
    }

    .gacha-card-small p,
    .info-card-small p,
    .search-card-title,
    .gacha-name {
        /* 긴 단어를 강제로 줄바꿈 */
        overflow-wrap: break-word;
        word-break: break-word;

        /* (선택사항) 텍스트가 여러 줄일 때 보기 좋게 스타일을 추가할 수 있습니다. */
        line-height: 1.4;
        /* 줄 간격 */
        margin-top: auto;
        /* 이미지가 위쪽에, 텍스트가 아래쪽에 붙도록 합니다. */
        padding-top: 5px;
        /* 이미지와 텍스트 사이의 간격 */
    }

    /* Styles for board search results (column display) */
    .search-results {
        display: flex;
        flex-direction: column;
        gap: 15px;
        /* Space between board cards */
        margin-bottom: 20px;
    }

    /* Shared styling for all search cards (if not already defined) */
    .search-card {
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .search-card-title {
        overflow-wrap: break-word;
        word-break: break-word;
        white-space: normal;
        font-weight: bold;
        font-size: 1.1em;
        color: #333;
        margin-bottom: 5px;
    }

    .search-card-content {
        font-size: 0.9em;
        color: #555;
        white-space: normal;
        /* Allow text wrapping */
        overflow: hidden;
        text-overflow: ellipsis;
        /* Add ellipsis for long content */
        max-height: 3.6em;
        /* Show approx 3 lines, adjust as needed */
        line-height: 1.2em;
    }


    /* Styling for "More" buttons */
    .more-btn {
        display: block;
        width: fit-content;
        margin: 15px auto 30px auto;
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1em;
        transition: background-color 0.2s ease-in-out;
    }

    .more-btn:hover {
        background-color: #0056b3;
    }

    /* Styling for clickable links within search cards */
    .search-card-link {
        text-decoration: none;
        color: inherit;
        display: block;
        /* Make the whole card clickable */
        height: 100%;
        /* Ensure link covers the whole card */
    }

    /* Reset default link behavior within the card */
    .search-card-link:visited {
        color: inherit;
    }

    .banner-slider {
        position: relative;
        width: 100%;
        height: 75px;
        overflow: hidden;
        border-radius: 15px;
    }

    .banner-track {
        display: flex;
        transition: transform 0.5s ease;
        height: 100%;
    }

    .banner-slide {
        flex: 0 0 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 30px;
        background: linear-gradient(45deg, #667eea, #764ba2);
        color: white;
        position: relative;
    }

    .banner-slide:nth-child(2) {
        background: linear-gradient(45deg, #f093fb, #f5576c);
    }

    .banner-slide:nth-child(3) {
        background: linear-gradient(45deg, #4facfe, #00f2fe);
    }

    .banner-content {
        flex: 1;
        z-index: 2;
    }

    .banner-title {
        font-size: 28px;
        font-weight: 800;
        margin-bottom: 10px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .banner-subtitle {
        font-size: 16px;
        opacity: 0.9;
        margin-bottom: 20px;
    }

    .banner-btn {
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid white;
        color: white;
        padding: 12px 24px;
        border-radius: 25px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .banner-btn:hover {
        background: white;
        color: #667eea;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    }

    .banner-image {
        width: 120px;
        height: 60px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 48px;
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .banner-controls {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
    }

    .banner-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .banner-dot.active {
        background: white;
        transform: scale(1.2);
    }

    /* 메인 액션 버튼들 */
    .action-buttons {
        display: flex;
        gap: 20px;
        margin: 40px 0;
    }

    .action-btn {
        flex: 1;
        background: white;
        border: 3px solid #e0e0e0;
        border-radius: 20px;
        padding: 40px 20px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        color: #333;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .action-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        border-color: #e91e63;
    }

    .action-btn-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 36px;
        transition: all 0.3s ease;
    }

    .map-btn .action-btn-icon {
        background: linear-gradient(45deg, #4caf50, #8bc34a);
        color: white;
    }

    .list-btn .action-btn-icon {
        background: linear-gradient(45deg, #2196f3, #03a9f4);
        color: white;
    }

    .action-btn-title {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 10px;
        color: #333;
    }

    .action-btn-subtitle {
        font-size: 14px;
        color: #666;
        line-height: 1.4;
    }

    .action-btn:hover .action-btn-icon {
        transform: scale(1.1);
    }

    .action-btn:hover .action-btn-title {
        color: #e91e63;
    }

    /* 게시판 버튼 */
    .board-btn {
        background: linear-gradient(45deg, #ff9800, #f57c00);
        color: white;
        border: none;
        border-radius: 20px;
        padding: 25px;
        width: 100%;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 18px;
        font-weight: 600;
        margin-top: 20px;
        box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .board-btn:hover {
        background: linear-gradient(45deg, #f57c00, #e65100);
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(255, 152, 0, 0.4);
    }

    .board-icon {
        width: 32px;
        height: 32px;
        fill: currentColor;
    }

    /* 모달 스타일 */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        display: none;
        justify-content: c enter;
        align-items: center;
        z-index: 1000;
        animation: fadeIn 0.3s ease;
    }

    .modal-overlay.active {
        display: flex;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .modal {
        background: white;
        padding: 40px;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        width: 100%;
        max-width: 400px;
        position: relative;
        animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
        from {
            transform: translateY(50px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .modal-close {
        position: absolute;
        top: 15px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        color: #999;
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .modal-close:hover {
        color: #e91e63;
    }

    .modal-title {
        text-align: center;
        font-size: 28px;
        font-weight: 700;
        color: #e91e63;
        margin-bottom: 30px;
        background: linear-gradient(45deg, #e91e63, #ff5722);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-label {
        display: block;
        margin-bottom: 8px;
        color: #333;
        font-weight: 600;
        font-size: 14px;
    }

    .form-input {
        width: 100%;
        padding: 15px;
        border: 2px solid #e0e0e0;
        border-radius: 12px;
        font-size: 16px;
        transition: all 0.3s ease;
        background: #fafafa;
    }

    .form-input:focus {
        outline: none;
        border-color: #e91e63;
        background: white;
        box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    }

    .form-input::placeholder {
        color: #999;
    }

    .form-btn {
        width: 100%;
        padding: 15px;
        background: linear-gradient(45deg, #e91e63, #ff5722);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        margin: 20px 0;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    }

    .form-btn:hover {
        background: linear-gradient(45deg, #c2185b, #e64a19);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    }

    .form-links {
        display: flex;
        justify-content: space-between;
        margin: 20px 0;
    }

    .form-link {
        color: #e91e63;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .form-link:hover {
        color: #c2185b;
        text-decoration: underline;
    }

    .switch-link {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid #eee;
        margin-top: 20px;
    }

    .switch-text {
        color: #666;
        font-size: 14px;
    }

    .switch-btn {
        color: #e91e63;
        background: none;
        border: none;
        font-weight: 600;
        margin-left: 5px;
        transition: color 0.3s ease;
        cursor: pointer;
        font-size: 14px;
    }

    .switch-btn:hover {
        color: #c2185b;
        text-decoration: underline;
    }

    @media (max-width: 768px) {
        .top-bar {
            padding: 15px 20px;
            flex-direction: row;
            align-items: flex-start;
            gap: 10px;
        }

        .nav-menu {
            padding: 0 20px;
        }

        .nav-list {
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
        }

        .main-content {
            padding: 20px;
            margin: 0 10px;
        }

        .search-container {
            margin: 30px 0;
        }

        .search-input {
            padding: 16px 60px 16px 20px;
            font-size: 16px;
        }

        .voice-search-btn {
            width: 40px;
            height: 40px;
            right: 6px;
        }

        .voice-icon {
            width: 18px;
            height: 18px;
        }

        .logo-text {
            font-size: 28px;
        }

        .modal {
            margin: 20px;
            padding: 30px;
        }

        .form-links {
            flex-direction: column;
            gap: 10px;
            text-align: center;
        }

        .banner-container {
            padding: 20px;
        }

        .banner-slider {
            height: 60px;
        }

        .banner-slide {
            padding: 0 20px;
        }

        .banner-title {
            font-size: 22px;
        }

        .banner-subtitle {
            font-size: 14px;
        }

        .banner-image {
            width: 80px;
            height: 80px;
            font-size: 32px;
        }

        .action-buttons {
            flex-direction: column;
            gap: 15px;
        }

        .action-btn {
            padding: 30px 20px;
        }

        .action-btn-icon {
            width: 60px;
            height: 60px;
            font-size: 28px;
        }

        .action-btn-title {
            font-size: 20px;
        }

        .board-btn {
            padding: 20px;
            font-size: 16px;
        }

        .board-icon {
            width: 28px;
            height: 28px;
        }
    }

    .btn-small {
        padding: 6px 14px;
        font-size: 14px;
        height: 40px;
        background: #e91e63;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        white-space: nowrap;
        /* 줄 바꿈 방지 */
        display: inline-block;
        /* 버튼 사이즈 안정화 */
        flex-shrink: 0;
    }

    .switch {
        position: relative;
        display: inline-block;
        width: 60px;
        height: 34px;
    }

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: 0.4s;
        border-radius: 34px;
    }

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

    input:checked+.slider {
        background-color: #e91e63;
    }

    input:checked+.slider:before {
        transform: translateX(26px);
    }

    body.dark-mode {
        background: #121212;
        color: #f1f1f1;
    }

    body.dark-mode .main-content {
        background: #1e1e1e;
        color: #f1f1f1;
    }

    body.dark-mode select,
    body.dark-mode input,
    body.dark-mode .form-input {
        background-color: #2a2a2a;
        color: #fff;
        border-color: #555;
    }

    body.dark-mode .search-input {
        background-color: #2a2a2a;
        color: white;
        border-color: #555;
    }

    body.dark-mode .switch .slider {
        background-color: #666;
    }

    body.dark-mode label,
    body.dark-mode select,
    body.dark-mode option {
        color: #f0f0f0;
        background-color: #4a4a4a;
        border-color: #777;
    }

    /* 다크모드에서 설정창 섹션 스타일 명확히 조정 */
    body.dark-mode #settingsContent {
        background-color: #3a3a3a;
        color: #f0f0f0;
    }

    body.dark-mode #settingsContent select {
        background-color: #4a4a4a;
        color: #f0f0f0;
        border: 2px solid #777;
    }

    /* 토글 버튼의 슬라이더 색상 조정 */
    body.dark-mode .switch .slider {
        background-color: #777;
    }

    body.dark-mode #settingsContent,
    body.dark-mode #settingsContent label,
    body.dark-mode #settingsContent h2,
    body.dark-mode #settingsContent h3,
    body.dark-mode #settingsContent p,
    body.dark-mode #settingsContent strong,
    body.dark-mode #settingsContent select,
    body.dark-mode #settingsContent option {
        color: #f1f1f1 !important;
    }

    /* ✅ 다크모드 배경 */
    body.dark-mode #settingsContent>div {
        background-color: #3a3a3a !important;
    }

    /* ✅ select box 배경 및 테두리 */
    body.dark-mode #settingsContent select {
        background-color: #4a4a4a;
        border-color: #888;
    }

    /* ✅ Q&A 상자도 어둡게 */
    body.dark-mode #settingsContent div[style*="border: 1px solid"] {
        background-color: #2c2c2c;
        border-color: #555;
    }

    /* === GLOBAL DARK MODE SUPPORT === */
    body.dark-mode {
        background-color: #121212;
        color: #f1f1f1;
    }

    /* all_info.html 카드용 */
    body.dark-mode .info-card {
        background-color: #1e1e1e;
        border-color: #555;
        color: #f1f1f1;
    }

    body.dark-mode .info-card-title,
    body.dark-mode .info-card-address {
        color: #f1f1f1 !important;
    }

    /* all_board.html 카드용 */
    body.dark-mode .search-card {
        background-color: #1e1e1e;
        border-color: #555;
        color: #f1f1f1;
    }

    body.dark-mode .search-card-title,
    body.dark-mode .search-card-content {
        color: #f1f1f1 !important;
    }

    /* 검색 결과 없음 텍스트 */
    body.dark-mode .no-results {
        color: #bbb !important;
    }

    /* 컨테이너 박스 배경 */
    body.dark-mode .container {
        background-color: #1a1a1a;
    }

    /* FAB 버튼 유지 (흰색 화살표) */
    body.dark-mode .fab svg {
        fill: white;
    }

    .product-link {
        text-decoration: none;
        /* 밑줄 제거 */
        color: inherit;
        /* 부모 요소의 글자색 상속 (보통 검은색) */
        display: block;
        /* 링크가 카드 전체 영역을 차지하도록 설정 */
    }

    /* =====================================================
   4. 모달 (공통)
===================================================== */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        animation: fadeIn 0.3s ease;
    }

    .modal-overlay.active {
        display: flex;
    }

    .modal {
        background: white;
        padding: 30px;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        width: 90%;
        max-width: 800px;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
        animation: slideUp 0.3s ease;
    }

    .modal-close {
        position: absolute;
        top: 15px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        color: #999;
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .modal-close:hover {
        color: #e91e63;
    }

    .modal-title {
        text-align: center;
        font-size: 28px;
        font-weight: 700;
        color: #e91e63;
        margin-bottom: 30px;
        background: linear-gradient(45deg, #e91e63, #ff5722);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-label {
        display: block;
        margin-bottom: 8px;
        color: #333;
        font-weight: 600;
        font-size: 14px;
    }

    .form-input {
        width: 100%;
        padding: 15px;
        border: 2px solid #e0e0e0;
        border-radius: 12px;
        font-size: 16px;
        transition: all 0.3s ease;
        background: #fafafa;
    }

    .form-input:focus {
        outline: none;
        border-color: #e91e63;
        background: white;
        box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    }

    .form-btn {
        width: 100%;
        padding: 15px;
        background: linear-gradient(45deg, #e91e63, #ff5722);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        margin-top: 20px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    }

    .form-btn:hover {
        background: linear-gradient(45deg, #c2185b, #e64a19);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    }

    .form-links {
        display: flex;
        justify-content: space-between;
        margin: 20px 0;
    }

    .form-link {
        color: #e91e63;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.3s ease;
    }

    .form-link:hover {
        color: #c2185b;
        text-decoration: underline;
    }

    .switch-link {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid #eee;
        margin-top: 20px;
    }

    .switch-text {
        color: #666;
        font-size: 14px;
    }

    .switch-btn {
        color: #e91e63;
        background: none;
        border: none;
        font-weight: 600;
        margin-left: 5px;
        transition: color 0.3s ease;
        cursor: pointer;
        font-size: 14px;
    }

    .switch-btn:hover {
        color: #c2185b;
        text-decoration: underline;
    }

    /* 가게 상세 정보 모달 */
    .modal-header {
        display: flex;
        gap: 25px;
        margin-bottom: 25px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .modal-store-img {
        width: 220px;
        height: 220px;
        object-fit: cover;
        border-radius: 10px;
        flex-shrink: 0;
        border: 3px solid #000000;
    }

    .modal-store-info {
        flex-grow: 1;
        min-width: 250px;
    }

    .modal-store-info h2 {
        font-size: 2.2rem;
        margin: 0 0 10px 0;
        display: flex;
        align-items: center;
        gap: 15px;
        color: #333;
    }

    .favorite-star {
        font-size: 2rem;
        cursor: pointer;
        color: #ccc;
        transition: all 0.2s;
    }

    .favorite-star.active {
        color: #ffc107;
        transform: scale(1.2);
    }

    .modal-store-info p {
        margin: 10px 0;
        color: #555;
        font-size: 1rem;
    }

    .info-line {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 12px 0;
        color: #555;
        font-size: 1rem;
    }

    .info-line i {
        font-size: 1.1rem;
        color: #e91e63;
        width: 20px;
        text-align: center;
    }

    .like-count {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1.1rem;
        margin-top: 15px;
        color: #e91e63;
    }

    .like-count .fa-heart {
        font-size: 1.3rem;
    }

    .modal h3 {
        color: #e91e63;
        margin-bottom: 20px;
        font-size: 1.8rem;
    }

    /* --- 가챠 즐겨찾기 하트 아이콘 --- */
    .favorite-gacha-heart {
        position: absolute;
        top: 8px;
        right: 8px;
        font-size: 22px;
        color: #ffffff;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
        cursor: pointer;
        transition: color 0.2s, transform 0.2s;
        z-index: 10;
    }

    .favorite-gacha-heart:hover {
        transform: scale(1.5);
    }

    .favorite-gacha-heart.active {
        color: #ff4d4d;
    }

    /* 찜한 상품 목록 컨테이너 */
    #gacha-list-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        margin-top: 15px;
    }

    /* 찜한 가게 목록 컨테이너 */
    #favorite-shops-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        margin-top: 15px;
    }

    /* 찜한 상품 카드 */
    .gacha-card {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        text-align: center;
    }

    .gacha-card .gacha-img-container {
        position: relative;
        width: 120px;
        height: 120px;
        margin: 0 auto 8px auto;
    }

    .gacha-card .gacha-img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

    .gacha-card .favorite-gacha-heart {
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: 2;

        font-size: 22px;
        color: #ff4d4d;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
        cursor: pointer;
        transition: color 0.2s, transform 0.2s;
    }

    .gacha-card .gacha-name {
        overflow-wrap: break-word;
        font-weight: bold;
        font-size: 14px;
        word-break: break-word;
    }

    /* 찜한 가게 카드 */
    .favorite-shop-card {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 20px;
        text-align: center;
        font-weight: bold;
        background-color: #f9f9f9;
    }
    .main-content > div:nth-of-type(1) { /* 마이페이지 h2 다음의 첫 번째 div (버튼 컨테이너) */
    width: 100%; /* 항상 전체 너비를 차지하도록 설정 */
    margin-bottom: 30px; /* 버튼 아래에 여백 추가 */
    /* display: flex; gap: 20px; flex-wrap: wrap; 는 그대로 유지 */
}

/* 2. 각 섹션(게시물, 댓글, 좋아요 목록)에 상단 여백을 추가합니다. */
#posts-section,
#comments-section,
#likes-section {
    width: 100%; /* 이 섹션들도 항상 전체 너비를 차지하도록 명시적으로 설정 */
    margin-top: 20px; /* 위에 있는 요소(버튼 컨테이너)와의 간격 */
    box-sizing: border-box; /* 패딩과 보더가 너비에 포함되도록 */
    padding: 20px; /* 내부 여백 */
    border: 1px solid #ddd; /* 시각적인 구분을 위한 테두리 (선택 사항) */
    border-radius: 8px; /* 둥근 모서리 (선택 사항) */
    background-color: #f9f9f9; /* 배경색 (선택 사항) */
}

/* 3. 테이블에도 기본 스타일을 적용하여 보기 좋게 만듭니다. */
.post-table {
    width: 100%;
    border-collapse: collapse; /* 셀 경계선을 합칩니다. */
    margin-top: 15px;
}

.post-table th,
.post-table td {
    border: 1px solid #eee;
    padding: 12px 15px;
    text-align: left;
}

.post-table th {
    background-color: #e0e0e0;
    font-weight: bold;
}

.post-table tr:nth-child(even) { /* 짝수 행 배경색 */
    background-color: #f5f5f5;
}

.post-table tr:hover { /* 호버 효과 */
    background-color: #e9e9e9;
}

.post-table a { /* 링크 스타일 */
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
}

.post-table a:hover {
    text-decoration: underline;
}