/* 
 * StableLens Component Styles
 * Styles for CountdownBanner, PegMonitor, AttestationClock, MintBurnTape, ComplianceScoreCard, WaitlistModal
 */

/* ========================================
   Countdown Banner Component
   ======================================== */
.countdown-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease-out;
}

.countdown-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
}

.countdown-text {
    display: flex;
    align-items: center;
    gap: 20px;
}

.countdown-title {
    font-weight: 600;
    font-size: 16px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Monaco', 'Menlo', monospace;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 35px;
}

.time-value {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.time-label {
    font-size: 10px;
    opacity: 0.8;
    text-transform: uppercase;
}

.time-separator {
    font-size: 16px;
    font-weight: bold;
    opacity: 0.6;
}

.countdown-cta {
    font-size: 14px;
    padding: 8px 16px;
    margin-right: 30px;
}

.countdown-close {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.countdown-close:hover {
    opacity: 1;
}

.countdown-content.launched .countdown-title {
    font-size: 18px;
}

.countdown-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-left: 10px;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ========================================
   Peg Monitor Component
   ======================================== */
.peg-monitor {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.peg-monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.peg-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.peg-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.live-badge .pulse {
    animation: pulse 2s infinite;
}

.peg-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-refresh {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.last-update {
    font-size: 12px;
    color: var(--text-secondary);
}

.peg-monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.peg-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.peg-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.peg-card.depegged {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.peg-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.coin-symbol {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.coin-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 2px;
}

.coin-status.stable {
    color: #22c55e;
}

.coin-status.warning {
    color: #f59e0b;
}

.peg-price {
    font-size: 18px;
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', monospace;
}

.peg-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

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

.metric-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 500;
}

.metric-value {
    font-size: 13px;
    font-weight: 600;
}

.metric-value.positive {
    color: #22c55e;
}

.metric-value.negative {
    color: #ef4444;
}

.metric-value.warning {
    color: #f59e0b;
}

.peg-chart-mini {
    position: relative;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.peg-line {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--text-secondary);
    transform: translateX(-50%);
}

.price-dot {
    position: absolute;
    top: -2px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
}

.peg-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.skeleton-item {
    height: 120px;
    background: var(--skeleton-bg);
    border-radius: 10px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

/* ========================================
   Attestation Clock Component
   ======================================== */
.attestation-clock {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.attestation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.attestation-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.attestation-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.attestation-symbol {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.attestation-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.loading {
    background: #6b7280;
    animation: pulse 2s infinite;
}

.status-dot.recent {
    background: #22c55e;
}

.status-dot.normal {
    background: #3b82f6;
}

.status-dot.stale {
    background: #f59e0b;
}

.status-dot.overdue {
    background: #ef4444;
}

.attestation-clock-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.clock-face {
    position: relative;
    width: 120px;
    height: 120px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin: 0 auto;
}

.clock-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 40px;
    background: var(--primary-color);
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(0deg);
    transition: transform 0.5s ease;
}

.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.clock-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.marker {
    position: absolute;
    font-size: 10px;
    color: var(--text-secondary);
}

.marker-12 { top: 5px; left: 50%; transform: translateX(-50%); }
.marker-3 { right: 5px; top: 50%; transform: translateY(-50%); }
.marker-6 { bottom: 5px; left: 50%; transform: translateX(-50%); }
.marker-9 { left: 5px; top: 50%; transform: translateY(-50%); }

.attestation-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    font-size: 12px;
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', monospace;
}

.detail-value.overdue {
    color: #ef4444;
}

.attestation-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.attestation-legend {
    display: flex;
    gap: 15px;
    font-size: 11px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.legend-dot.recent { background: #22c55e; }
.legend-dot.stale { background: #f59e0b; }
.legend-dot.overdue { background: #ef4444; }

/* ========================================
   Mint Burn Tape Component
   ======================================== */
.mint-burn-tape {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.tape-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.tape-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tape-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.tape-symbol {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.tape-controls {
    display: flex;
    gap: 8px;
}

.tape-control {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.tape-control:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tape-control.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tape-container {
    height: 300px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.tape-track {
    padding: 16px;
}

.event-item {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.event-item:hover {
    border-color: var(--primary-color);
    transform: translateX(2px);
}

.event-item.recent {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

.event-item.mint {
    border-left: 3px solid #22c55e;
}

.event-item.burn {
    border-left: 3px solid #ef4444;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.event-type-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.event-type-badge.mint {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.event-type-badge.burn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.event-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.event-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-amount {
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', monospace;
}

.event-hash {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    font-family: 'Monaco', 'Menlo', monospace;
}

.event-pulse {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 2px solid #22c55e;
    border-radius: 8px;
    animation: pulse-border 2s infinite;
}

.tape-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--glass-bg);
}

.tape-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mint-icon {
    color: #22c55e;
}

.burn-icon {
    color: #ef4444;
}

.empty-events,
.error-events,
.loading-events {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* ========================================
   Compliance Score Card Component
   ======================================== */
.compliance-score-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.compliance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.compliance-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.compliance-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.compliance-symbol {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.info-button {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.info-button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.compliance-gauge-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.compliance-gauge {
    text-align: center;
}

.gauge-svg {
    width: 200px;
    height: 120px;
}

.gauge-bg {
    opacity: 0.2;
}

.gauge-fill {
    transition: stroke-dasharray 1s ease-in-out;
}

.gauge-score-text {
    font-size: 24px;
    font-weight: bold;
    fill: var(--text-primary);
}

.gauge-label {
    font-size: 12px;
    font-weight: 600;
}

.compliance-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.compliance-summary {
    text-align: center;
}

.score-grade {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
}

.score-description {
    font-size: 13px;
    color: var(--text-secondary);
}

.compliance-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.metric-label {
    color: var(--text-secondary);
}

.metric-value {
    font-weight: 600;
}

.metric-value.yes {
    color: #22c55e;
}

.metric-value.no {
    color: #ef4444;
}

.metric-value.low {
    color: #22c55e;
}

.metric-value.medium {
    color: #f59e0b;
}

.metric-value.high {
    color: #ef4444;
}

.compliance-breakdown {
    margin-top: 10px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 11px;
}

.breakdown-label {
    min-width: 60px;
    color: var(--text-secondary);
}

.breakdown-bar {
    flex: 1;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.compliance-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.compliance-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-content {
    padding: 16px;
}

.tooltip-content h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
}

.score-factors {
    margin-bottom: 15px;
}

.factor {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
}

.factor:last-child {
    border-bottom: none;
}

.factor-name {
    font-weight: 600;
}

.factor-weight {
    color: var(--text-secondary);
    font-weight: 500;
}

.factor-desc {
    color: var(--text-secondary);
}

.score-ranges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.range {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.range.excellent {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.range.good {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.range.fair {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.range.poor {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ========================================
   Waitlist Modal Component
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

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

.modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--border-color);
}

.modal-body {
    padding: 24px;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.form-error {
    color: #ef4444;
    font-size: 12px;
    display: none;
}

.form-disclaimer {
    margin-top: 8px;
}

.text-muted {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

.submit-spinner {
    display: inline-block;
}

.waitlist-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 48px;
    color: #22c55e;
    margin-bottom: 16px;
}

.waitlist-success h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 600;
}

.waitlist-success p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.success-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
    text-align: left;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.detail-item i {
    color: var(--primary-color);
    width: 16px;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.error-banner {
    margin-bottom: 16px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* ========================================
   Utility Classes and Animations
   ======================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-border {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes skeleton-pulse {
    0% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .countdown-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .countdown-timer {
        font-size: 14px;
    }
    
    .peg-monitor-grid {
        grid-template-columns: 1fr;
    }
    
    .attestation-clock-display,
    .compliance-gauge-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-dialog {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .success-actions {
        flex-direction: column;
    }
}

/* ========================================
   Dark Mode Adjustments
   ======================================== */
body.modal-open {
    overflow: hidden;
}

/* Add body padding when countdown banner is visible */
body:has(.countdown-banner) {
    padding-top: 50px;
}

@media (max-width: 768px) {
    body:has(.countdown-banner) {
        padding-top: 80px;
    }
}

/* ============================
   Coin Detail Page Styles
   ============================ */

.coin-detail-page {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    min-height: 100vh;
}

.coin-header {
    background: rgba(16, 185, 129, 0.05);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.coin-title-section {
    display: flex;
    align-items: center;
}

.coin-icon-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.coin-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.coin-icon img {
    width: 40px;
    height: 40px;
}

.coin-icon-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 1.5rem;
}

.coin-title {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coin-symbol {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.coin-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.coin-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.coin-change {
    font-size: 0.875rem;
    font-weight: 500;
}

.coin-change.positive {
    color: #10b981;
}

.coin-change.negative {
    color: #ef4444;
}

.coin-peg-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.coin-peg-status.stable {
    color: #10b981;
}

.coin-peg-status.warning {
    color: #f59e0b;
}

.coin-actions {
    display: flex;
    justify-content: flex-end;
}

.coin-detail-section {
    margin-bottom: 1.5rem;
}

/* Peg Analysis */
.peg-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.peg-metric {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.metric-unit {
    font-size: 0.75rem;
    color: #6b7280;
}

.peg-chart-container {
    height: 300px;
    position: relative;
}

/* Market Data */
.market-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.market-stat {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.market-stat:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.market-stat .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #10b981;
    font-size: 1.25rem;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Quick Stats */
.quick-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-stat {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-stat .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.quick-stat .stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.quick-stat .stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.quick-stat .stat-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.quick-stat .stat-icon.primary {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

.stat-info {
    flex: 1;
}

.stat-info .stat-label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.stat-info .stat-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
}

/* Related Assets */
.related-assets {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.related-asset {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.related-asset:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateX(4px);
    color: inherit;
    text-decoration: none;
}

.asset-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.asset-icon img {
    width: 20px;
    height: 20px;
}

.asset-info {
    flex: 1;
}

.asset-symbol {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.asset-name {
    font-size: 0.75rem;
    color: #9ca3af;
}

.asset-arrow {
    color: #6b7280;
    transition: all 0.2s ease;
}

.related-asset:hover .asset-arrow {
    color: #10b981;
    transform: translateX(4px);
}

/* ============================
   Pricing Page Styles
   ============================ */

.pricing-page {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    min-height: 100vh;
}

.pricing-header {
    text-align: center;
    padding: 4rem 0 2rem;
}

.pricing-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.pricing-subtitle {
    font-size: 1.125rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-cards {
    padding: 2rem 0;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.pro-plan {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.05);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.plan-price {
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.price-period {
    font-size: 1rem;
    color: #9ca3af;
    margin-left: 0.5rem;
}

.plan-description {
    color: #9ca3af;
    line-height: 1.5;
}

.pricing-card-body {
    margin-bottom: 2rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

.feature-included i {
    color: #10b981;
}

.feature-excluded {
    opacity: 0.5;
}

.feature-excluded i {
    color: #6b7280;
}

.pricing-card-footer {
    text-align: center;
}

.btn-plan {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.btn-free {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-free:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-pro {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
}

.btn-pro:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    color: #fff;
}

.btn-team {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #fff;
}

.btn-team:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    color: #fff;
}

.btn-enterprise {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    border: none;
    color: #fff;
}

.btn-enterprise:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    color: #fff;
}

.plan-note {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.75rem;
}

/* ============================
   Feature Comparison Table
   ============================ */

.feature-comparison {
    background: rgba(255, 255, 255, 0.02);
    padding: 4rem 0;
}

.comparison-table-container {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table {
    margin: 0;
    color: #fff;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    border-color: rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    text-align: center;
}

.feature-column {
    text-align: left !important;
    font-weight: 500;
}

.plan-column.featured {
    background: rgba(16, 185, 129, 0.05);
}

.feature-name {
    font-weight: 500;
}

.feature-check {
    color: #10b981;
    text-align: center;
}

.feature-value {
    text-align: center;
    font-weight: 500;
}

.feature-none {
    color: #6b7280;
    text-align: center;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.accordion-button {
    background: transparent;
    color: #fff;
    border: none;
    padding: 1.5rem;
    font-weight: 500;
}

.accordion-button:focus {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.accordion-button:not(.collapsed) {
    background: rgba(16, 185, 129, 0.1);
    color: #fff;
}

.accordion-body {
    background: rgba(255, 255, 255, 0.02);
    color: #e5e7eb;
    padding: 1.5rem;
    line-height: 1.6;
}

/* Pricing CTA */
.pricing-cta {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    text-align: center;
    padding: 4rem 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: #9ca3af;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================
   Compliance & Changelog Responsive
   ============================ */

/* ============================
   Site Footer Styles
   ============================ */

.site-footer {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    border-top: 1px solid rgba(16, 185, 129, 0.1);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    color: #d1d5db;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.footer-tagline {
    font-size: 1rem;
    font-weight: 500;
    color: #10b981;
    margin-bottom: 0.75rem;
}

.footer-description {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #10b981;
    text-decoration: none;
}

.footer-contact {
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.contact-item i {
    color: #10b981;
    width: 16px;
}

.contact-item a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #10b981;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.5;
}

.footer-disclaimer strong {
    color: #d1d5db;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #6b7280;
}

.footer-copyright p {
    margin: 0;
}

/* Ensure footer sticks to bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-footer {
    margin-top: auto;
}

@media (max-width: 768px) {
    .coin-title {
        font-size: 1.5rem;
    }
    
    .coin-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .coin-actions {
        margin-top: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .peg-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .market-data-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-title,
    .compliance-title,
    .changelog-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .site-footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-copyright {
        margin-top: 1rem;
    }
}

/* ============================
   Error Pages Styles
   ============================ */

.error-page {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    min-height: 100vh;
}

.error-container {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 4rem 0;
}

.error-content {
    text-align: center;
    color: #fff;
}

.error-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.error-icon i {
    font-size: 3rem;
    color: #10b981;
}

.error-icon.server-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.error-icon.server-error i {
    color: #ef4444;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.125rem;
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-suggestions h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.suggestion-links {
    margin-bottom: 2rem;
}

.suggestion-links .btn {
    margin: 0.25rem;
}

.popular-coins h6 {
    color: #9ca3af;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.coin-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.coin-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #d1d5db;
    font-weight: 500;
    transition: all 0.2s ease;
}

.coin-link:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
    text-decoration: none;
}

.coin-icon-small {
    width: 20px;
    height: 20px;
}

.error-details {
    margin: 2rem 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #f59e0b;
    font-size: 0.875rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
}

.status-dot.pulsing {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.error-actions {
    margin: 2rem 0;
}

.error-actions .btn {
    margin: 0.25rem;
}

.error-contact {
    font-size: 0.875rem;
}

.text-aurora {
    color: #10b981;
    text-decoration: none;
}

.text-aurora:hover {
    color: #059669;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .error-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }
    
    .error-icon i {
        font-size: 2rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .suggestion-links .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .coin-links {
        flex-direction: column;
        align-items: center;
    }
    
    .coin-link {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}