/* Exchange Detail Page Styles */
/* Inherits from parent style.css */

html {
    scroll-behavior: smooth;
}

.exchange-detail-page {
    min-height: 100vh;
    padding-top: 100px;
}

.exchange-hero {
    text-align: center;
    padding: 60px 0;
}

.exchange-hero-logo {
    width: 180px;
    margin: 0 auto 24px;
}

.exchange-hero-logo img {
    width: 100%;
    height: auto;
}

.exchange-hero-logo .dark-logo {
    filter: invert(1) hue-rotate(180deg) brightness(1.2);
}

.exchange-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.exchange-hero .subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.exchange-hero .cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 거래소 정보 토글 버튼 (glass 활성 상태) */
.cta-row a.glass.active {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* 거래소 정보 패널 */
.exchange-info-panel {
    max-height: none;
    overflow: visible;
}

.exchange-info-inner {
    margin-top: 28px;
    padding: 28px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.exchange-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.exchange-info-item {
    text-align: left;
}

.exchange-info-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exchange-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

/* ========================================== */
/* Guide Hero Card (V4 Split: Payback + Info)   */
/* ========================================== */
.guide-hero-card-section {
    padding: 40px 0 20px;
}

.guide-hero-payback-note-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
}

.guide-hero-payback-note {
    max-width: 300px;
    margin-top: 16px;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.48);
}

.guide-hero-payback-note-outside {
    display: block;
    max-width: min(900px, calc(100% - 48px));
    margin: 0;
    padding: 0;
    text-align: center;
}

.guide-hero-card {
    max-width: 900px;
    margin: 0 auto;
    background: #13131a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
}

.guide-hero-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 210, 255, 0.1);
}

.guide-hero-left {
    padding: 48px 32px;
    background: linear-gradient(180deg, #1a1a24, #13131a);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.guide-hero-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.08), transparent);
    transform: rotate(25deg);
    animation: guide-hero-shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes guide-hero-shimmer {
    0% { left: -100%; }
    60% { left: 150%; }
    100% { left: 150%; }
}

.guide-hero-left::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    animation: guide-hero-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes guide-hero-pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.guide-hero-left > * {
    position: relative;
    z-index: 1;
}

.guide-hero-logo {
    height: 120px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.guide-hero-logo img {
    max-height: 80px;
    max-width: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Per-exchange logo size normalization (larger for guide hero context) */
.guide-hero-logo img.logo-binance { max-height: 120px; max-width: 280px; }
.guide-hero-logo img.logo-bybit   { max-height: 60px;  max-width: 220px; }
.guide-hero-logo img.logo-okx     { max-height: 56px;  max-width: 210px; }
.guide-hero-logo img.logo-bitget  { max-height: 70px;  max-width: 240px; }
.guide-hero-logo img.logo-gate    { max-height: 84px;  max-width: 250px; }
.guide-hero-logo img.logo-mexc    { max-height: 50px;  max-width: 240px; }
.guide-hero-logo img.logo-bitmart { max-height: 62px;  max-width: 260px; }
.guide-hero-logo img.logo-htx     { max-height: 72px;  max-width: 230px; }

.guide-hero-payback-label {
    font-size: 0.78rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 700;
}

.guide-hero-payback-value {
    font-size: 5rem;
    font-weight: 900;
    color: var(--highlight-value);
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
    animation: guide-hero-glow 2.5s ease-in-out infinite;
}

@keyframes guide-hero-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(0, 210, 255, 0.3); }
    50% { text-shadow: 0 0 40px rgba(0, 210, 255, 0.6), 0 0 60px rgba(0, 210, 255, 0.3); }
}

.guide-hero-right {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.guide-hero-right .exchange-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    margin: 0;
}

.guide-hero-right .exchange-info-item {
    text-align: left;
}

.guide-hero-right .exchange-info-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 700;
}

.guide-hero-right .exchange-info-value {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

@media screen and (max-width: 900px) {
    .guide-hero-card {
        grid-template-columns: 1fr;
    }
    .guide-hero-left {
        padding: 36px 24px 30px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .guide-hero-payback-value {
        font-size: 4rem;
    }
    .guide-hero-right {
        padding: 28px 24px;
    }
    .guide-hero-right .exchange-info-grid {
        gap: 16px 20px;
    }
}

@media screen and (max-width: 480px) {
    .guide-hero-left {
        padding: 30px 20px 26px;
    }
    .guide-hero-payback-value {
        font-size: 3.2rem;
    }
    .guide-hero-right {
        padding: 24px 20px;
    }
    .guide-hero-right .exchange-info-grid {
        grid-template-columns: 1fr;
    }
    .guide-hero-payback-note {
        font-size: 0.88rem;
        margin-top: 14px;
        max-width: 280px;
    }
}

/* Policy Section */
.policy-section {
    padding: 60px 0;
}

.policy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 460px;
    margin: 0 auto;
}

.policy-card {
    background: linear-gradient(180deg, #1a1a24, #13131a);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.policy-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 210, 255, 0.1);
}

.policy-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.08), transparent);
    transform: rotate(25deg);
    animation: policy-shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes policy-shimmer {
    0% { left: -100%; }
    60% { left: 150%; }
    100% { left: 150%; }
}

.policy-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    animation: policy-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes policy-pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.policy-card > * {
    position: relative;
    z-index: 1;
}

.policy-card .policy-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.3));
}

.policy-card .policy-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 700;
}

.policy-card .policy-value {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--highlight-value);
    line-height: 1;
    margin-bottom: 14px;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
    animation: policy-glow 2.5s ease-in-out infinite;
}

@keyframes policy-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(0, 210, 255, 0.3); }
    50% { text-shadow: 0 0 40px rgba(0, 210, 255, 0.6), 0 0 60px rgba(0, 210, 255, 0.3); }
}

.policy-card p {
    position: relative;
    z-index: 1;
    font-size: 0.88rem !important;
    color: #aaa !important;
    margin-top: 0 !important;
}

.policy-card .policy-value.orange {
    color: #ff9f0a;
}

@media screen and (max-width: 640px) {
    .policy-card {
        padding: 36px 24px;
    }
    .policy-card .policy-value {
        font-size: 3.5rem;
    }
    .policy-card .policy-icon {
        font-size: 2rem;
    }
}

/* VIP Comparison Table */
.vip-section {
    padding: 60px 0;
}

.vip-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.vip-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
}

.vip-table th,
.vip-table td {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vip-table th {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
}

.vip-table td {
    font-size: 0.95rem;
}

.vip-table .highlight-col {
    background: rgba(0, 210, 255, 0.05);
    color: var(--highlight-value);
    font-weight: 700;
}

.vip-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Guide Section */
.guide-section {
    padding: 60px 0;
}

.guide-section h2 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 2rem;
}

.guide-section .guide-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.guide-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.guide-tab {
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-dim);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guide-tab.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border-color: transparent;
    font-weight: 600;
}

.guide-steps {
    max-width: 600px;
    margin: 0 auto;
}

.guide-step {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.guide-step-content h4 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.guide-step-content p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 40%),
        linear-gradient(135deg, rgba(17, 21, 34, 0.9), rgba(10, 14, 24, 0.94));
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.back-link:hover {
    color: #fff;
    border-color: rgba(0, 210, 255, 0.36);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 42%),
        linear-gradient(135deg, rgba(20, 27, 43, 0.96), rgba(11, 18, 29, 0.96));
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(0, 210, 255, 0.08) inset;
}

/* Guide Step Link (버튼 스타일) */
.guide-step-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: 8px;
    background: rgba(0, 210, 255, 0.06);
    transition: border-color 0.2s, background 0.2s;
}

.guide-step-link:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 210, 255, 0.12);
}

/* KYC Guide Page */
.kyc-guide-page {
    padding-bottom: 60px;
}

.kyc-hero {
    text-align: center;
    padding: 48px 0 32px;
}

.kyc-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 210, 255, 0.24);
    background: rgba(0, 210, 255, 0.08);
    color: var(--highlight-value);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.kyc-disclaimer {
    max-width: 760px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    line-height: 1.6;
}

.kyc-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.kyc-fact-card {
    padding: 22px;
    border-radius: 18px;
}

.kyc-fact-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.kyc-fact-value {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: white;
}

.kyc-section {
    padding: 28px 0;
}

.kyc-section h2 {
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.kyc-bullet-list {
    display: grid;
    gap: 12px;
    padding-left: 20px;
    color: var(--text-dim);
    line-height: 1.75;
}

.kyc-bullet-list li::marker {
    color: var(--accent-blue);
}

.kyc-step-list {
    display: grid;
    gap: 18px;
}

.kyc-step-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    padding: 24px;
    border-radius: 18px;
    align-items: start;
}

.kyc-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.kyc-step-content-block h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.kyc-step-content-block p {
    color: var(--text-dim);
    line-height: 1.75;
    font-size: 0.95rem;
}

.kyc-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 0 10px;
}

.kyc-info-card {
    padding: 24px;
    border-radius: 18px;
}

.kyc-info-card h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.kyc-secondary-link {
    padding: 14px 28px;
    text-decoration: none;
    color: white;
    display: inline-block;
}

/* Bottom CTA */
.exchange-bottom-cta {
    text-align: center;
    padding: 80px 0;
}

.exchange-bottom-cta h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.exchange-bottom-cta p {
    color: var(--text-dim);
    margin-bottom: 30px;
}

/* 유의 및 고지사항 Footer */
.exchange-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 0 30px;
    margin-top: 0;
}

.exchange-footer .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.disclaimer-title {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.disclaimer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 40px;
}

.disclaimer-grid li {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1.65;
    list-style: none;
    margin-bottom: 2px;
}

.exchange-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.exchange-legal-links a {
    color: rgba(255, 255, 255, 0.48);
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.2s ease;
}

.exchange-legal-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* 승급 조건 행 */
.vip-table .condition-row td {
    font-size: 0.8rem;
    color: var(--text-dim);
    padding-top: 10px;
    padding-bottom: 10px;
}

.vip-table .condition-row .highlight-col {
    color: var(--highlight-value);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 640px) {
    .policy-grid {
        grid-template-columns: 1fr;
    }

    .kyc-facts-grid {
        grid-template-columns: 1fr;
    }

    .kyc-step-card {
        grid-template-columns: 1fr;
    }

    .kyc-info-grid {
        grid-template-columns: 1fr;
    }

    .exchange-hero h1 {
        font-size: 1.8rem;
    }

    .guide-tabs {
        flex-direction: column;
        align-items: center;
    }

    .disclaimer-grid {
        grid-template-columns: 1fr;
    }

    .exchange-legal-links {
        gap: 12px;
    }
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.exchange-faq-section {
    padding: 60px 0;
}

.exchange-faq-section h2 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 2rem;
}

.exchange-faq-section .faq-subtitle {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
    color: var(--text-dim);
}

.exchange-faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.exchange-faq-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    overflow: hidden;
}

.exchange-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 22px;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
}

.exchange-faq-item summary::-webkit-details-marker {
    display: none;
}

.exchange-faq-item summary::after {
    content: '+';
    float: right;
    color: var(--accent-blue);
    font-size: 1.15rem;
    line-height: 1;
}

.exchange-faq-item[open] summary::after {
    content: '−';
}

.exchange-faq-content {
    padding: 0 22px 22px;
}

.exchange-faq-content p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

.exchange-faq-content p + p {
    margin-top: 10px;
}

.exchange-faq-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
