:root {
    --bg-dark: #0f1115;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0aab2;
    --g-blue: #4285F4;
    --g-red: #EA4335;
    --g-yellow: #FBBC05;
    --g-green: #34A853;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Background gradient blobs */
body::before, body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    animation: float 20s ease-in-out infinite alternate;
}

body::before {
    background: var(--g-blue);
    top: -200px;
    left: -200px;
}

body::after {
    background: var(--g-red);
    bottom: -200px;
    right: -200px;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
}

.mode-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.hidden {
    display: none !important;
    opacity: 0;
}

/* Google-like Logo */
.logo {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    user-select: none;
}

.g-blue { color: var(--g-blue); }
.g-red { color: var(--g-red); }
.g-yellow { color: var(--g-yellow); }
.g-green { color: var(--g-green); }

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Search Box */
.search-box {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 0.8rem 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.input-wrapper:hover, .input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.glow-border:hover, .glow-border:focus-within {
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.2), 0 0 40px rgba(66, 133, 244, 0.1);
    border-color: rgba(66, 133, 244, 0.5);
}

.search-icon {
    color: var(--text-secondary);
    margin-right: 1rem;
}

input[type="text"] {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
    width: 100%;
}

input[type="text"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

button {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.glow-btn {
    background: linear-gradient(45deg, var(--g-blue), #5c98f5);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.glow-btn:hover {
    background: linear-gradient(45deg, #5c98f5, var(--g-blue));
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.5);
    transform: translateY(-2px);
}

/* Link Container */
.link-container {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    width: 100%;
    max-width: 580px;
    animation: fadeIn 0.3s ease-out;
}

.link-container input {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    color: #4285F4;
}

.icon-btn {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: transparent;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--g-blue);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    background: var(--g-green);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(52, 168, 83, 0.4);
    animation: slideUpFade 0.3s ease-out forwards;
    z-index: 1000;
}

/* Animation Mode Specs */
.anim-message {
    margin-top: 3rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    min-height: 2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.anim-message.show {
    opacity: 1;
    transform: translateY(0);
}

.fake-cursor {
    position: fixed;
    width: 28px;
    height: 28px;
    pointer-events: none;
    z-index: 9999;
    top: 50%;
    left: 80%;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
    transition: top 1s cubic-bezier(0.25, 1, 0.5, 1), left 1s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
}

.google-btn {
    background: #303134;
    border: 1px solid #303134;
    color: #e8eaed;
}

.google-btn:hover {
    background: #3c4043;
    border: 1px solid #5f6368;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 600px) {
    .logo { font-size: 3.5rem; }
    .subtitle { font-size: 1rem; }
    .buttons { flex-direction: column; }
    .google-btn { width: 100%; }
}
