/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
    --bg-dark: #030712;
    --bg-card: rgba(17, 24, 39, 0.4);
    --purple-primary: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.4);
    --pink-accent: #ec4899;
    --text-white: #ffffff;
    --text-muted: #9ca3af;
    --border-purple: rgba(168, 85, 247, 0.2);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-h-screen: 100vh;
    overflow-x: hidden;
}

/* Background Gradients & Grid */
.bg-gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 50% 30%, rgba(88, 28, 135, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 10% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
    z-index: -1;
    pointer-events: none;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Header */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    padding: 0 1.5rem;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.nav-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    pointer-events: auto;
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Loading Overlay Styles (mimicking target site) */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.5s ease-out;
}

.loader-content {
    text-align: center;
}

.orb-container {
    position: relative;
    width: 128px;
    height: 128px;
    margin: 0 auto;
}

.orb-layer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.2;
}

.orb-1 {
    background: linear-gradient(to bottom right, var(--purple-primary), var(--pink-accent));
    animation: pulse 2s infinite;
}

.orb-2 {
    background: linear-gradient(to top left, var(--purple-primary), transparent);
    animation: pulse 2s infinite 0.5s;
    inset: 8px;
}

.orb-3 {
    background: linear-gradient(to right, var(--purple-primary), var(--pink-accent));
    animation: spin-slow 3s linear infinite;
    inset: 16px;
    opacity: 0.3;
}

.orb-core {
    position: absolute;
    inset: 24px;
    background: linear-gradient(to bottom right, var(--purple-primary), #db2777);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    animation: pulse 2s infinite;
}

.loading-text {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(to right, #d8b4fe, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1.5s infinite;
}

.logo-svg {
    height: 50px;
}

.logo-image {
    height: 48px;
    width: auto;
    object-fit: contain;
    pointer-events: auto;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
    margin: 0 8px;
}

.logo-link:hover .logo-image {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.5));
}

.logo-symbol {
    pointer-events: auto;
    display: none;
}
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: auto;
}

.connect-button {
    background: linear-gradient(to right, #9333ea, #c026d3);
    border: none;
    border-radius: 9999px;
    padding: 0.6rem 1.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
}

@media (max-width: 480px) {
    .connect-button {
        display: none;
    }
}

.connect-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(147, 51, 234, 0.4);
    filter: brightness(1.1);
}

.project-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.info-label {
    color: var(--text-muted);
}

.info-value {
    color: var(--text-white);
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

.menu-button {
    pointer-events: auto;
    background: rgba(88, 28, 135, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 9999px;
    padding: 0.6rem 1.25rem;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
}

.menu-button:hover {
    background: rgba(88, 28, 135, 0.5);
    border-color: rgba(168, 85, 247, 0.5);
    transform: scale(0.98);
}

/* Main Content */
main {
    padding-top: 100px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.hero-section {
    width: 100%;
    max-width: 1000px;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

@media (max-width: 850px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
}

/* New Project Card Header & Steps */
.steps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-step {
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple-primary);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.badge-migrate {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.external-link-icon {
    color: var(--purple-primary);
    opacity: 0.8;
}

/* Token Header Section */
.token-header-section {
    margin-bottom: 2rem;
}

.token-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.token-subtitle {
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Token Details Card */
.token-details-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.token-main-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.token-large-icon {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.token-name {
    font-size: 2.25rem;
    font-weight: 800;
}

.token-full-name {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: -0.25rem;
    margin-bottom: 0.5rem;
}

.badge-detail {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    margin-right: 0.5rem;
}

/* Mint Address Section */
.mint-address-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mint-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.mint-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.mint-input {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    flex: 1;
    outline: none;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
}

.copy-btn:hover {
    color: white;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 1rem;
    background: rgba(168, 85, 247, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
}

.info-icon-wrapper {
    color: #c084fc;
    flex-shrink: 0;
}

.info-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.migration-controls {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Project Card */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-purple);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.project-title h1 {
    font-size: 1.875rem;
    font-weight: 700;
    background: linear-gradient(to right, #e9d5ff, #fbcfe8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-status {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Migration State */
.migration-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.token-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.token-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.token-input-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.token-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.token-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.token-symbol {
    font-weight: 600;
    font-size: 1.125rem;
}

.token-amount {
    font-size: 1.25rem;
    font-weight: 700;
    background: none;
    border: none;
    color: white;
    text-align: right;
    width: 100px;
    outline: none;
}

.arrow-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -0.5rem 0;
}

.migrate-button {
    width: 100%;
    background: linear-gradient(to right, #9333ea, #db2777);
    border: none;
    border-radius: 16px;
    padding: 1.25rem;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.migrate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.5);
    filter: brightness(1.1);
}

/* Sidebar Stats */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-purple);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-change {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.text-positive { color: #4ade80; }
.text-negative { color: #f87171; }

/* Progress */
.progress-section {
    margin-top: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--purple-primary), var(--pink-accent));
    width: 65%;
    border-radius: 999px;
    box-shadow: 0 0 10px var(--purple-glow);
}

/* Footer */
footer {
    margin-top: auto;
    width: 100%;
    padding: 3rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}
