/* ==========================================
   DESIGN SYSTEM (Swiss Minimalist)
   ========================================== */
:root {
    --bg-color: #f6f6f9;
    --card-bg: #ffffff;
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-muted: #71717a;
    --border-color: #e4e4e7;
    --accent-color: #2563eb; /* Clean Blue */
    --accent-hover: #1d4ed8;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   CONTAINER & ELEGANT CARD
   ========================================== */
.container {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 44px 36px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.02),
        0 8px 24px rgba(24, 24, 27, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ==========================================
   BADGE STATUS
   ========================================== */
.badge-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 6px 12px;
    border-radius: 9999px;
    margin-bottom: 20px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #15803d;
    letter-spacing: 0.02em;
}

/* ==========================================
   DOMAIN DISPLAY & COPY
   ========================================== */
.domain-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 8px;
    user-select: none;
    cursor: pointer;
}

.domain-title .extension {
    color: var(--text-muted);
}

.copy-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 24px;
    transition: all var(--transition);
}

.copy-btn:hover {
    background: #f4f4f5;
    color: var(--text-primary);
}

.copy-icon {
    width: 12px;
    height: 12px;
}

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #18181b;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
}

.tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================
   PITCH & SPECS
   ========================================== */
.description {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.description strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================
   TRANSACTION BOX (PRICE + CTA)
   ========================================== */
.transaction-box {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.price-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.price-value .currency {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.btn {
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition);
}

.btn-primary {
    background-color: var(--text-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #27272a;
}

/* ==========================================
   SPECS LIST
   ========================================== */
.specs-list {
    width: 100%;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.specs-list li {
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.check-icon {
    width: 14px;
    height: 14px;
    color: #22c55e;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 360px;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: scale(0.96);
    transition: transform var(--transition);
    text-align: center;
}

.modal-overlay.open .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.modal-close:hover {
    background: #f4f4f5;
    color: var(--text-primary);
}

.modal-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.modal-header p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 20px;
}

.qr-container {
    width: 160px;
    height: 160px;
    margin: 0 auto 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px;
    background: #ffffff;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wechat-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 480px) {
    .main-card {
        padding: 32px 20px;
    }
    
    .domain-title {
        font-size: 2.2rem;
    }
}
