:root {
    --primary-blue: #3b82f6;
    --dark-blue: #2563eb;
    --text-dark: #1f2937;
    --text-muted: #4b5563;
    --bg-light: #f9fafb;
    --kakao-yellow: #fae100;
    --border-color: #e5e7eb;
    --price-buy: #3b82f6;
    /* Blue */
    --price-sell: #ef4444;
    /* Red */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
}

html {
    font-size: 16px;
    /* Reverted to standard 16px */
}

body {
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
header {
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 2rem;
    /* Reduced padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 35px;
    /* Reduced logo height */
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.05rem;
}

.auth-links {
    width: 100px;
    text-align: right;
}

.auth-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Consolidated Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
}

/* Notice Section */
.notice-section {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.notice-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-blue);
    border-bottom: 2px solid #eff6ff;
    padding-bottom: 0.5rem;
}

.highlight-blue {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: underline;
}

/* Table Section */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

thead th {
    background-color: var(--primary-blue);
    color: white;
    padding: 15px;
    font-weight: 600;
    text-align: center;
}

tbody td {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
    background: white;
}

tbody tr:last-child td {
    border-bottom: none;
}

.item-name {
    text-align: left;
    font-weight: 500;
    padding-left: 20px;
}

/* Footer Styles (Moved from inline) */
.main-footer {
    background-color: #1f2937;
    color: white;
    padding: 4rem 1.5rem 8rem 1.5rem;
    /* Extra bottom padding for fixed buttons */
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 280px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-info {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-cs-title {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-phone-large {
    font-size: 2rem;
    font-weight: 700;
    color: #60a5fa;
}

/* Sticky Bottom Buttons */
.footer-buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    display: flex;
    gap: 15px;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.bottom-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.2s;
}

.bottom-btn:active {
    transform: scale(0.98);
}

.kakao-btn {
    background: var(--kakao-yellow);
    color: #3c1e1e;
}

.call-btn {
    background: var(--primary-blue);
    color: white;
}

.btn-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Price Colors */
.price-buy {
    color: var(--price-buy) !important;
    font-weight: 700;
}

.price-sell {
    color: var(--price-sell) !important;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .logo-img {
        height: 40px;
    }

    nav {
        width: 100%;
        border-top: 1px solid #f3f4f6;
        padding-top: 1rem;
    }

    nav ul {
        gap: 20px;
        justify-content: center;
    }

    nav a {
        font-size: 1rem;
    }

    .auth-links {
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-phone-large {
        font-size: 1.8rem;
    }

    .footer-buttons {
        bottom: 15px;
        width: 94%;
        padding: 8px;
        gap: 10px;
    }

    .bottom-btn {
        padding: 12px;
        font-size: 0.95rem;
    }
}