:root {
    --font-main: 'Outfit', sans-serif;
    --bg-color: #0F172A;
    /* Dark Slate Blue */
    --card-bg: rgba(255, 255, 255, 0.05);
    /* Glass */
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #94A3B8;
    --accent-color: #25D366;
    /* WhatsApp Green */
    --accent-gradient: linear-gradient(135deg, #128C7E, #25D366);
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-border: rgba(255, 255, 255, 0.2);
    --input-hover-border: rgba(37, 211, 102, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.5);

    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #128C7E;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #25D366;
    bottom: -150px;
    right: -150px;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 30px) scale(1.1);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    padding: var(--spacing-md);
}

/* Glass Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

/* Header */
header {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.icon-wrapper {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 0 10px rgba(37, 211, 102, 0.4));
    animation: pulse 3s infinite ease-in-out;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Form Styles */
#generator-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: var(--spacing-sm);
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: 0 var(--spacing-md);
    transition: all 0.3s ease;
    height: 50px;
}

.phone-input-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
    background: rgba(255, 255, 255, 0.15);
}



input[type="tel"],
textarea {
    background: transparent;
    border: none;
    width: 100%;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

input[type="tel"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

textarea {
    resize: none;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    min-height: 100px;
}

textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: var(--spacing-sm);
    opacity: 0.7;
}

/* Button */
button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

#generate-btn {
    background: var(--accent-gradient);
    color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    margin-top: var(--spacing-sm);
}

#generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    filter: brightness(1.1);
}

#generate-btn:active {
    transform: translateY(0);
}

/* Result Area */
.result-area {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    border-top: 1px solid var(--card-border);
    animation: slideDown 0.3s ease-out;
}

.hidden {
    display: none !important;
}

.link-display {
    display: flex;
    gap: var(--spacing-sm);
    background: var(--input-bg);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    align-items: center;
}

#generated-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 100%;
    font-size: 0.85rem;
    padding-left: var(--spacing-sm);
    text-overflow: ellipsis;
}

#copy-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    min-width: 40px;
}

#copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Simple Responsive */
@media (max-width: 480px) {
    .glass-card {
        padding: var(--spacing-md);
    }
}