:root {
    --orange: #ff6600;
    --bg: #09090b;
    --card: #18181b;
    --input: #0c0c0e;
    --border: #27272a;
    --text-dim: #a1a1aa;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    background: var(--bg);
    color: white;
    font-family: 'Inter', -apple-system, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* NOTIFICATIONS (TOP-CENTER) */
.notif-container { 
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); 
    z-index: 10000; display: flex; flex-direction: column; align-items: center; gap: 10px; 
    pointer-events: none; width: 90%; max-width: 400px;
}
.notif { 
    background: var(--card); border: 1px solid var(--border); color: white; padding: 14px 24px; border-radius: 16px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.8); width: 100%; text-align: center;
    animation: notifIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; pointer-events: auto;
}
.notif.success { border-bottom: 4px solid #22c55e; }
.notif.error { border-bottom: 4px solid #ef4444; }
.notif.info { border-bottom: 4px solid var(--orange); }

@keyframes notifIn { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: translateY(0); } }
@keyframes notifOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-100%); } }

/* NAVBAR */
nav { width: 100%; background: rgba(9, 9, 11, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: fixed; top: 0; z-index: 1000; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.nav-left { display: flex; align-items: center; gap: 15px; }
.nav-logo { height: 32px; }
.ca-badge { background: #1c1c1f; border: 1px solid var(--border); padding: 6px 12px; border-radius: 10px; font-size: 0.7rem; font-family: monospace; color: var(--orange); cursor: pointer; white-space: nowrap; }

.nav-center { display: flex; gap: 20px; align-items: center; }
.nav-icon-link { color: var(--text-dim); transition: 0.2s; display: flex; align-items: center; }
.nav-icon-link:hover { color: white; transform: translateY(-2px); }

.btn-connect { background: white; color: black; border: none; padding: 8px 16px; border-radius: 10px; font-weight: bold; cursor: pointer; transition: 0.2s; font-size: 0.85rem; }

/* SWAP CARD */
.container { display: flex; justify-content: center; padding-top: 140px; padding-bottom: 40px; padding-inline: 15px; }
.swap-card { background: var(--card); width: 100%; max-width: 440px; padding: 25px; border-radius: 28px; border: 1px solid var(--border); box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
.card-header { margin-bottom: 20px; font-weight: bold; }
.input-box { background: var(--input); padding: 20px; border-radius: 22px; border: 1px solid #1c1c1f; }
.input-header { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 12px; }
.input-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
input { background: transparent; border: none; color: white; font-size: 1.8rem; width: 50%; font-weight: bold; }
.token { display: flex; align-items: center; gap: 10px; background: #27272a; padding: 8px 16px; border-radius: 16px; font-weight: bold; min-width: 120px; }
.token img { width: 24px; height: 24px; border-radius: 50%; object-fit: contain; }
.token.orange { border: 1.5px solid var(--orange); color: var(--orange); }

.arrow-container { display: flex; justify-content: center; margin: -21px 0; position: relative; z-index: 10; }
.arrow-circle { background: #1c1c1f; border: 4px solid var(--card); border-radius: 12px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #a1a1aa; cursor: pointer; transition: 0.3s; }

.info-box { margin-top: 20px; background: rgba(0,0,0,0.2); padding: 15px; border-radius: 16px; border: 1px solid var(--border); }
.info-row { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 8px; color: var(--text-dim); }
.info-row span:last-child { color: white; font-weight: 500; }
.orange { color: var(--orange) !important; }

.btn-main { width: 100%; margin-top: 20px; padding: 18px; border-radius: 18px; background: var(--orange); color: black; border: none; font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: 0.3s; }
.btn-main:disabled { background: #27272a; color: #52525b; }

/* BG EFFECTS */
.bg-wrapper { position: fixed; inset: 0; z-index: -1; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,102,0,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,102,0,0.05) 1px, transparent 1px); background-size: 55px 55px; }
.glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.12; background: var(--orange); }
.glow-1 { width: 450px; height: 450px; top: -10%; left: -10%; }
.glow-2 { width: 350px; height: 350px; bottom: 5%; right: 5%; }

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 768px) {
    .ca-badge { display: none; }
    .nav-container { padding: 10px 15px; }
    .nav-center { gap: 15px; }
}

@media (max-width: 480px) {
    .container { padding-top: 100px; }
    .swap-card { padding: 15px; }
    input { font-size: 1.4rem; }
    .token { min-width: 100px; padding: 6px 12px; font-size: 0.85rem; }
    .nav-center { gap: 10px; }
    .nav-icon-link svg { width: 18px; height: 18px; }
}
