/* ==========================================
   Coin Difference - CSS Styles
   ========================================== */

/* CSS Variables */
:root {
    /* Colors - Light Mode */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);

    /* Spacing */
    --header-height: 70px;
    --container-max: 1400px;
    --border-radius: 12px;
    --border-radius-lg: 16px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 1.25rem;
}

.btn-icon:hover {
    background: var(--border-color);
}

.refresh-icon {
    transition: transform var(--transition-normal);
}

.btn:active .refresh-icon {
    transform: rotate(180deg);
}

/* Main Content */
.main-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 24px 20px;
    min-height: calc(100vh - var(--header-height) - 100px);
}

/* Status Bar */
.status-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.status-info span:last-child {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-indicator.loading .status-dot {
    background: var(--warning);
}

.status-indicator.error .status-dot {
    background: var(--danger);
    animation: none;
}

/* Live Indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: live-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px var(--success);
}

@keyframes live-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Coin Cards */
.coin-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.coin-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.coin-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.coin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.coin-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.coin-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
}

.coin-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coin-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.coin-symbol {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.coin-summary {
    text-align: right;
}

.summary-row {
    display: flex;
    gap: 24px;
}

.summary-item {
    text-align: right;
}

.max-diff-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.max-diff-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

.max-diff-value.negative {
    color: var(--danger);
}

.max-diff-value.positive {
    color: var(--success);
}

/* Price Table */
.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th,
.price-table td {
    padding: 16px 24px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.price-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-table th:first-child,
.price-table td:first-child {
    text-align: left;
}

.price-table tbody tr {
    transition: background-color var(--transition-fast);
}

.price-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.exchange-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.exchange-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.price-value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.diff-positive {
    color: var(--success);
}

.diff-negative {
    color: var(--danger);
}

.best-price {
    background: rgba(16, 185, 129, 0.1);
}

.worst-price {
    background: rgba(239, 68, 68, 0.1);
}

.best-badge,
.worst-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.best-badge {
    background: var(--success);
    color: white;
}

.worst-badge {
    background: var(--danger);
    color: white;
}

/* Arbitrage Tip */
.arbitrage-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-top: 1px solid var(--border-color);
}

.arbitrage-tip.tip-positive {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.arbitrage-tip.tip-negative {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-details {
    flex: 1;
}

.tip-route {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.tip-route strong {
    color: var(--text-primary);
}

.tip-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
}

.breakdown-item {
    color: var(--text-secondary);
}

.breakdown-item.result {
    color: var(--text-primary);
    font-weight: 600;
}

.breakdown-item strong {
    margin-left: 4px;
}

/* Profit Calculator */
.profit-calculator {
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
    background: var(--bg-secondary);
}

.calculator-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

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

.calc-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calculator-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.calc-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-input-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.calc-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px 12px;
}

.currency-prefix {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 4px;
}

.calc-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    width: 120px;
    outline: none;
}

.calc-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.calc-result {
    display: flex;
    gap: 20px;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.result-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Loading Overlay */
.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.loading-overlay.hidden {
    display: none;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error Message */
.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    text-align: center;
}

.error-icon {
    font-size: 3rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}

.footer p+p {
    margin-top: 8px;
}

.api-attribution {
    margin: 12px 0;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: inline-block;
}

.api-attribution a {
    color: var(--accent-primary);
    text-decoration: none;
}

.api-attribution a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.2rem;
    }

    .btn-text {
        display: none;
    }

    .btn-secondary {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
    }

    .header-actions {
        gap: 8px;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .logo {
        gap: 8px;
    }
}

@media (max-width: 380px) {
    .logo h1 {
        font-size: 0.85rem;
    }

    .logo-icon {
        font-size: 1rem;
    }

    .btn-secondary,
    .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .refresh-icon,
    .theme-icon {
        font-size: 0.9rem;
    }

    .header-content {
        padding: 0 6px;
        height: 50px;
    }

    .header-actions {
        gap: 4px;
    }

    .logo {
        gap: 6px;
    }

    .status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .status-indicator {
        margin-left: 0;
    }

    .coin-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .coin-summary {
        text-align: left;
    }

    .price-table {
        display: block;
        overflow-x: auto;
    }

    .price-table th,
    .price-table td {
        padding: 12px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .arbitrage-tip {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {

    /* Base font size reduction for mobile */
    body {
        font-size: 14px;
    }

    .header-content {
        padding: 0 10px;
    }

    .main-content {
        padding: 8px;
    }

    .coin-card-header {
        padding: 10px;
    }

    /* Hide difference columns on very small screens */
    .price-table th:nth-child(4),
    .price-table td:nth-child(4),
    .price-table th:nth-child(5),
    .price-table td:nth-child(5) {
        display: none;
    }

    .price-table {
        table-layout: fixed;
        width: 100%;
    }

    .price-table th,
    .price-table td {
        padding: 5px 3px;
        font-size: 0.65rem;
        word-break: break-all;
    }

    .exchange-logo {
        display: none;
    }

    .exchange-name {
        font-size: 0.7rem;
    }

    .best-badge,
    .worst-badge {
        font-size: 0.55rem;
        padding: 1px 3px;
    }

    .coin-name {
        font-size: 0.9rem;
    }

    .coin-symbol {
        font-size: 0.75rem;
    }

    .coin-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .max-diff-label {
        font-size: 0.65rem;
    }

    .max-diff-value {
        font-size: 1rem;
    }

    .max-diff-value span {
        font-size: 0.7rem !important;
    }

    .summary-row {
        gap: 12px;
    }

    .arbitrage-tip {
        padding: 8px;
        font-size: 0.7rem;
    }

    .tip-icon {
        font-size: 1.1rem;
    }

    .tip-route {
        font-size: 0.75rem;
    }

    .tip-breakdown {
        gap: 8px;
        font-size: 0.7rem;
    }

    /* Profit Calculator */
    .profit-calculator {
        padding: 10px;
    }

    .calc-title {
        font-size: 0.75rem;
    }

    .calc-input-group label {
        font-size: 0.7rem;
    }

    .calc-input {
        font-size: 0.8rem;
        width: 90px;
    }

    .result-label {
        font-size: 0.65rem;
    }

    .result-value {
        font-size: 0.85rem;
    }

    /* Status bar */
    .status-bar {
        padding: 10px;
        gap: 8px;
        font-size: 0.75rem;
    }

    .status-label {
        font-size: 0.7rem;
    }

    .coin-card {
        margin-bottom: 10px;
    }

    .coin-cards {
        gap: 12px;
    }
}

/* ==========================================
   Additional Pages Styles
   ========================================== */

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

/* Logo as link */
.logo {
    text-decoration: none;
    color: inherit;
}

/* Page Content */
.page-content {
    min-height: calc(100vh - var(--header-height) - 120px);
    padding: 40px 20px;
}

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

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

/* Legal Content */
.legal-content .last-updated {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.legal-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.legal-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.legal-section p,
.legal-section li {
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-section ul {
    margin-left: 20px;
    margin-top: 10px;
}

.legal-section li {
    margin-bottom: 8px;
}

/* Guide Sections */
.guide-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.guide-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.guide-section p {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.guide-list li {
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.guide-list li:last-child {
    border-bottom: none;
}

/* Exchange List */
.exchange-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exchange-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.exchange-item .exchange-logo {
    font-size: 1.5rem;
}

.exchange-item strong {
    color: var(--text-primary);
}

.exchange-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Contact Section */
.contact-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.contact-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.contact-card h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.faq-section h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.faq-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.faq-item h4 {
    color: var(--accent-primary);
    font-size: 1rem;
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* Responsive for pages */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: 16px;
    }
}

/* ==========================================
   Layout with Sidebar
   ========================================== */

.layout-container {
    display: flex;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 320px;
    /* Equal padding on both sides for true center */
}

.layout-container .main-content {
    flex: 0 1 900px;
    max-width: 900px;
    min-width: 0;
}

/* Sidebar */
.sidebar {
    position: fixed;
    right: 60px;
    top: calc(var(--header-height) + 20px);
    width: 280px;
    z-index: 50;
}

.sidebar-sticky {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* Affiliate Cards */
.affiliate-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    text-decoration: none;
    transition: var(--transition-normal);
}

.affiliate-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.affiliate-logo {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.affiliate-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.affiliate-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.affiliate-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.affiliate-cta {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 600;
    white-space: nowrap;
}

.affiliate-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* Exchange-specific colors on hover */
.affiliate-coincheck:hover {
    border-color: #10b981;
}

.affiliate-gmo:hover {
    border-color: #3b82f6;
}

.affiliate-bitbank:hover {
    border-color: #8b5cf6;
}

/* Sidebar responsive */
@media (max-width: 1100px) {
    .layout-container {
        flex-direction: column;
        padding: 0 20px;
        /* Remove sidebar space on mobile */
    }

    .layout-container .main-content {
        flex: 1;
        max-width: 100%;
    }

    .sidebar {
        position: static;
        width: 100%;
        order: 2;
        margin-top: 30px;
    }

    .sidebar-sticky {
        position: static;
    }

    .sidebar-title {
        text-align: center;
    }

    .affiliate-card {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}