* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html {
    background: #1e293b;
    min-height: 100vh;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1e293b;
    min-height: 100vh;
    color: white;
    padding: 20px;
    margin: 0;
}

body::before {
    content: '';
    position: fixed;
    top: -200vh;
    left: 0;
    right: 0;
    height: 500vh;
    background: #1e293b;
    z-index: -1;
}

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

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.025em;
    margin: 0;
}

.source-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 140, 0, 0.15) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.date {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 400;
}

.update-time {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.price-table {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr 1.5fr;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-header div:nth-child(2),
.table-header div:nth-child(3),
.table-header div:nth-child(4) {
    text-align: center;
}

.metal-row {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr 1.5fr;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    align-items: center;
}

.metal-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.metal-row:last-child {
    border-bottom: none;
}

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

.metal-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #ffffff;
    letter-spacing: -0.025em;
}

.metal-detail {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 400;
}

.price-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #ffffff;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.change.positive {
    color: #ef4444;
}

.change.negative {
    color: var(--primary);
}

.change.neutral {
    color: #fbbf24;
}

.loading {
    color: #94a3b8;
    font-size: 1rem;
}

.last-updated {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 30px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.info-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 140, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.info-section h2 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.guide-content {
    display: grid;
    gap: 25px;
}

.guide-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-item h3 {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.guide-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-item li {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.guide-item li::before {
    content: "▸";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.guide-item li strong {
    color: #fbbf24;
}

.guide-item p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 10px 0;
    padding-left: 0;
}

@media (min-width: 768px) {
    .guide-content {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.note p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 5px;
}

.service-info {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.service-info h3 {
    color: #e2e8f0;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.service-details {
    display: grid;
    gap: 12px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-item strong {
    color: var(--primary);
    min-width: 120px;
    margin-right: 12px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .service-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Visitor Counter */
.visitor-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.visitor-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.visitor-icon {
    font-size: 1.2rem;
}

.visitor-label {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.visitor-count {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 60px;
    text-align: right;
}

.visitor-divider {
    color: rgba(255, 215, 0, 0.3);
    font-size: 1.2rem;
}

@media (max-width: 640px) {
    body {
        padding: 12px;
    }

    .visitor-counter {
        flex-direction: column;
        gap: 12px;
    }

    .visitor-divider {
        display: none;
    }

    .visitor-stat {
        width: 100%;
        justify-content: center;
    }

    .visitor-count {
        text-align: center;
    }
}

.footer-links {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    background-color: rgba(255, 215, 0, 0.1);
}

.footer-links span {
    color: #6b7280;
    margin: 0 10px;
}

.copyright {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    color: #64748b;
    font-size: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.4;
}

/* 광고 컨테이너 */
.ad-container {
    margin: 20px 0;
    text-align: center;
}

.ad-banner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculator-section {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-top: 2rem;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.metal-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    text-align: left;
}

.weight-conversion {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    justify-content: center;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    max-width: 140px;
}

.conversion-symbol {
    font-size: 1.2rem;
    font-weight: 600;
    color: #94a3b8;
    padding-bottom: 12px;
}

.metal-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    width: 100%;
}

.metal-button {
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.metal-button:hover {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.metal-button.active {
    border-color: var(--primary);
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.metal-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.weight-input,
.don-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.weight-input:focus,
.don-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.weight-input::placeholder,
.don-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.result-section {
    margin-top: 25px;
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.result-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.result-price {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    transform: scale(1);
}

.result-price.animate {
    transform: scale(1.05);
}

.result-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.conversion-display {
    margin: 8px 0;
    text-align: center;
    padding: 8px 20px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s ease;
}

.conversion-display.hidden {
    opacity: 0;
    transform: translateY(-10px);
}

.fee-notice {
    margin-top: 12px;
    color: #fbbf24;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.result-detail {
    margin-top: 15px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 400;
    text-align: center;
    line-height: 1.5;
}

.calculation-details {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.detail-info-text {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 4px 0;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.detail-value {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.action-buttons {
    margin-top: 20px;
    text-align: center;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.detail-btn:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
}

.share-button {
    margin-top: 20px;
    text-align: center;
}

.share-btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.share-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.share-icon {
    width: 16px;
    height: 16px;
}

/* 지도 섹션 스타일 */
.map-section {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.map-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.map-header p {
    color: #94a3b8;
    font-size: 1rem;
}

.map-container {
    position: relative;
}

.map-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.gold-map {
    flex: 1;
    height: 400px;
    background: #1e293b;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

/* 이 지역 재검색 버튼 */
.map-research-btn {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: linear-gradient(135deg, var(--primary) 0%, #f59e0b 100%);
    color: #0f172a;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.map-research-btn.visible {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.map-research-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.5);
}

.map-research-btn:active {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.map-research-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.shop-list {
    flex: 0 0 300px;
    height: 400px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    border: 2px solid var(--primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shop-list-header {
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-list-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.shop-items {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.empty-message {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    padding: 40px 20px;
    line-height: 1.6;
}

.shop-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.shop-item:last-child {
    border-bottom: none;
}

.shop-info {
    flex: 1;
    cursor: pointer;
}

.shop-actions {
    display: flex;
    align-items: center;
}

.shop-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-name .distance {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
}

.shop-address {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 3px;
}

.shop-phone {
    color: #64748b;
    font-size: 0.8rem;
}

.directions-btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.directions-btn:hover {
    background: var(--primary-gradient);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}

.directions-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.directions-btn svg {
    width: 16px;
    height: 16px;
}

.map-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    font-size: 1.1rem;
    gap: 15px;
}

.location-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.location-btn:hover {
    background: var(--primary-gradient);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.map-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.search-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.search-btn.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: #fbbf24;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        align-items: center;
    }
    
    .header-content {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .source-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    
    .calculator-title {
        font-size: 1.3rem;
    }
    
    .calculator-form {
        gap: 20px;
    }
    
    .weight-conversion {
        gap: 10px;
    }
    
    .input-group {
        max-width: 120px;
    }
    
    .conversion-symbol {
        font-size: 1rem;
        padding-bottom: 10px;
    }
    
    .weight-input,
    .don-input {
        font-size: 1rem;
        padding: 12px 14px;
    }
    
    .input-label {
        font-size: 0.85rem;
    }
    
    .result-price {
        font-size: 2rem;
    }
    
    .price-table {
        font-size: 0.85rem;
    }
    
    .table-header {
        padding: 15px 10px;
        font-size: 0.75rem;
        grid-template-columns: 1.5fr 1.5fr 1.5fr 1.2fr;
    }

    .metal-row {
        padding: 20px 10px;
        grid-template-columns: 1.5fr 1.5fr 1.5fr 1.2fr;
    }
    
    .metal-name {
        font-size: 1.1rem;
    }
    
    .metal-detail {
        font-size: 0.8rem;
    }
    
    .price {
        font-size: 1rem;
    }
    
    .change {
        font-size: 0.8rem;
    }
    
    .map-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .map-header h2 {
        font-size: 1.5rem;
    }
    
    .map-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .gold-map {
        width: 100%;
        height: 300px;
        flex: none;
    }
    
    .shop-list {
        width: 100%;
        flex: none;
        height: 250px;
    }
    
    .shop-list-header {
        padding: 15px;
    }
    
    .shop-list-header h3 {
        font-size: 1.1rem;
    }
    
    .shop-item {
        padding: 12px 15px;
        gap: 8px;
    }
    
    .directions-btn {
        min-width: 32px;
        height: 32px;
        padding: 6px 8px;
    }
    
    .directions-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .search-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* 광고 스타일 */
.ad-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 10px;
}

.ad-banner {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .ad-container {
        margin: 15px 0;
    }

    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .detail-btn, .share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* App Download Banner */
.app-banner {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 16px 20px;
    margin: 2rem auto 2rem auto;
    max-width: 1200px;
    backdrop-filter: blur(10px);
}

.app-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.app-banner-text {
    font-size: 0.95rem;
    color: #e2e8f0;
}

.app-banner-text strong {
    color: #fbbf24;
    font-weight: 700;
}

.app-banner-buttons {
    display: flex;
    gap: 10px;
}

.app-banner-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    color: #fbbf24;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.app-banner-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.app-banner-btn svg {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .app-banner-text {
        font-size: 0.85rem;
    }

    .app-banner-buttons {
        justify-content: center;
    }

    .app-banner-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    color: #fbbf24;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 10000;
    transition: bottom 0.3s ease-in-out;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.toast.show {
    bottom: 30px;
}

@media (max-width: 768px) {
    .toast {
        bottom: -100px;
        font-size: 0.9rem;
        padding: 14px 20px;
        max-width: calc(100% - 40px);
        white-space: normal;
        text-align: center;
    }

    .toast.show {
        bottom: 20px;
    }
}

/* Source Toggle Button */
.source-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.source-label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.source-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.source-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.source-btn:hover {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
}

.source-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #1e293b;
    font-weight: 600;
}

/* Margin Info Banner */
.margin-info-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.margin-info-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.margin-info-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #60a5fa;
}

.margin-info-detail {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.margin-highlight {
    color: #fbbf24;
    font-weight: 600;
}

/* 국제시세 컬럼 스타일 */
.price-section:nth-child(4) {
    color: #60a5fa;
}

.price-section:nth-child(4) .price {
    color: #60a5fa;
    font-size: 0.95em;
}

@media (max-width: 768px) {
    .source-toggle-container {
        margin-top: 10px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .source-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .margin-info-banner {
        padding: 10px 12px;
    }

    .margin-info-content {
        gap: 4px;
    }

    .margin-info-title {
        font-size: 0.85rem;
    }

    .margin-info-detail {
        font-size: 0.7rem;
        line-height: 1.4;
    }
}

/* ==========================================
   UX Improvements - Phase 1, 2, 3
   ========================================== */

/* Phase 1: CTA Button - Calculator to Gold Dealer */
.dealer-cta-button {
    width: 100%;
    max-width: 360px;
    margin: 1.5rem auto 0 auto;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #FCD34D 0%, #FBBF24 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dealer-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.4);
}

.cta-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1F2937;
}

.cta-arrow {
    font-size: 1.2rem;
    color: #1F2937;
    transition: transform 0.3s ease;
}

.dealer-cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .dealer-cta-button {
        padding: 0.875rem 1.25rem;
    }

    .cta-text {
        font-size: 1rem;
    }
}

/* Phase 2: News Widget */
.news-widget-section {
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 0 20px;
}

.news-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.news-widget-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e2e8f0;
}

.news-widget-more {
    font-size: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-widget-more:hover {
    transform: translateX(4px);
}

.news-widget-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 0;
    color: #94a3b8;
}

.news-widget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-widget-item {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.news-widget-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(251, 191, 36, 0.3);
    border-color: var(--primary);
}

.news-widget-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-widget-item-description {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-widget-item-date {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .news-widget-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .news-widget-grid {
        grid-template-columns: 1fr;
    }

    .news-widget-title {
        font-size: 1.5rem;
    }
}

/* Phase 3: Affiliate Banners */
.affiliate-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px solid #FCD34D;
    border-radius: 12px;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.affiliate-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(252, 211, 77, 0.3);
}

.affiliate-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.affiliate-content {
    flex: 1;
}

.affiliate-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.25rem;
}

.affiliate-description {
    font-size: 0.9rem;
    color: #4B5563;
}

.affiliate-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    color: #1F2937;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.affiliate-button:hover {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .affiliate-banner {
        flex-direction: column;
        text-align: center;
    }

    .affiliate-button {
        width: 100%;
    }
}