:root {
    --accent: #00e87b;
    --accent-rgb: 0,232,123;
    --base: #07070b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--base); overflow-x: hidden; }

/* ---- Dot Grid Background ---- */
.dot-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ---- Floating Blobs ---- */
.blob {
    position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
    filter: blur(100px); opacity: 0.6;
}
.blob-1 {
    width: 550px; height: 550px; top: -120px; left: -100px;
    background: radial-gradient(circle, rgba(var(--accent-rgb),0.1), transparent 70%);
    animation: blobFloat1 28s ease-in-out infinite;
}
.blob-2 {
    width: 450px; height: 450px; bottom: -80px; right: -60px;
    background: radial-gradient(circle, rgba(var(--accent-rgb),0.07), transparent 70%);
    animation: blobFloat2 32s ease-in-out infinite;
}
.blob-3 {
    width: 300px; height: 300px; top: 50%; left: 55%;
    background: radial-gradient(circle, rgba(120,80,255,0.06), transparent 70%);
    animation: blobFloat3 24s ease-in-out infinite;
}
@keyframes blobFloat1 {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(80px,60px) scale(1.1); }
    66% { transform: translate(-40px,90px) scale(0.95); }
}
@keyframes blobFloat2 {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(-70px,-50px) scale(1.08); }
    66% { transform: translate(50px,-80px) scale(0.92); }
}
@keyframes blobFloat3 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-60px,40px) scale(1.15); }
}

/* ---- Glassmorphic Card ---- */
.glass {
    background: rgba(14,14,21,0.7);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(40,40,60,0.6);
}

/* ---- Gradient Border Card ---- */
.glow-border {
    position: relative;
}
.glow-border::before {
    content: ''; position: absolute; inset: -1px; border-radius: inherit;
    background: linear-gradient(135deg, rgba(var(--accent-rgb),0.4), transparent 40%, transparent 60%, rgba(var(--accent-rgb),0.2));
    z-index: -1; opacity: 0; transition: opacity 0.4s ease;
}
.glow-border:hover::before, .glow-border:focus-within::before {
    opacity: 1;
}

/* ---- Ripple Effect ---- */
.ripple-btn { position: relative; overflow: hidden; }
.ripple-btn .ripple-circle {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transform: scale(0); animation: rippleExpand 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes rippleExpand {
    to { transform: scale(4); opacity: 0; }
}

/* ---- Input Glow ---- */
.input-glow {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.input-glow:focus {
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.15), 0 0 20px rgba(var(--accent-rgb),0.08);
    border-color: var(--accent) !important;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.3; }
    100% { transform: scale(0.9); opacity: 0.6; }
}
@keyframes textGlow {
    0%,100% { text-shadow: 0 0 20px rgba(var(--accent-rgb),0.3); }
    50% { text-shadow: 0 0 40px rgba(var(--accent-rgb),0.5), 0 0 80px rgba(var(--accent-rgb),0.2); }
}
.anim-fade-up { animation: fadeInUp 0.6s ease-out both; }
.anim-fade { animation: fadeIn 0.5s ease-out both; }
.anim-scale { animation: scaleIn 0.4s ease-out both; }

/* ---- Toast ---- */
.toast-item {
    animation: slideDown 0.35s ease-out both;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast-item.removing {
    opacity: 0; transform: translateY(-12px);
}

/* ---- Countdown Circle ---- */
.countdown-circle {
    transition: stroke-dashoffset 1s linear;
}

/* ---- Result Card Slide ---- */
.result-card {
    animation: fadeInUp 0.5s ease-out both;
}

/* ---- Gradient Text ---- */
.gradient-text {
    background: linear-gradient(135deg, var(--accent), #60ffc8, var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* ---- Feature Card Hover ---- */
.feature-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--accent-rgb),0.3);
    box-shadow: 0 8px 32px rgba(var(--accent-rgb),0.08);
}

/* ---- Recent Item ---- */
.recent-item {
    transition: background 0.2s ease, border-color 0.2s ease;
}
.recent-item:hover {
    background: rgba(var(--accent-rgb),0.04);
    border-color: rgba(var(--accent-rgb),0.2);
}

/* ---- Copy Button States ---- */
.copy-btn { transition: all 0.25s ease; }
.copy-btn:hover { color: var(--accent); }
.copy-btn.copied { color: var(--accent); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0e0e15; }
::-webkit-scrollbar-thumb { background: #28283c; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #38385a; }

/* ---- Get Link Button ---- */
.get-link-btn {
    background: linear-gradient(135deg, #00e87b, #00c468);
    box-shadow: 0 4px 20px rgba(var(--accent-rgb),0.3);
    transition: all 0.3s ease;
}
.get-link-btn:hover {
    box-shadow: 0 6px 30px rgba(var(--accent-rgb),0.45);
    transform: translateY(-2px);
}
.get-link-btn:active {
    transform: translateY(0) scale(0.97);
}

/* ---- Loading Spinner ---- */
.spinner {
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---- Misc ---- */
.hidden { display: none !important; }
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
