:root {
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --primary-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    --text-color: #ffffff;
    --input-bg: rgba(0, 0, 0, 0.2);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Deep animated gradient background */
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Decorative background blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.8;
    animation: float 10s infinite ease-in-out;
}
.blob-1 { top: 10%; left: 10%; width: 300px; height: 300px; background: #ff00cc; border-radius: 40% 60% 70% 30%; }
.blob-2 { bottom: 10%; right: 10%; width: 350px; height: 350px; background: #00d4ff; border-radius: 60% 40% 30% 70%; animation-delay: -5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Glass Card Container */
.glass-card {
    position: relative;
    z-index: 10;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 40px;
    width: 90%;
    max-width: 550px;
    text-align: center;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

h1 {
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-top: 0;
}

p.subtitle {
    font-size: 0.95rem;
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.5;
}

textarea {
    width: 100%;
    height: 120px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    box-sizing: border-box;
    transition: background 0.3s, border 0.3s;
}

textarea:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255,255,255,0.6);
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

button.action-btn {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

button.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 65, 108, 0.6);
}

button.action-btn:active {
    transform: translateY(1px);
}

/* Results Area */
.result-container {
    margin-top: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    display: none;
    animation: fadeIn 0.4s ease-out;
    border: 1px solid rgba(255,255,255,0.1);
}

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

.result-item {
    margin-bottom: 12px;
}

.result-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.result-value {
    font-size: 1.1rem;
    font-weight: 600;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

a.link-style {
    color: #4facfe;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border 0.2s;
}

a.link-style:hover {
    border-bottom: 1px dashed #4facfe;
}

.copy-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.copy-btn:hover { background: rgba(255,255,255,0.4); }

.error-msg {
    margin-top: 20px;
    padding: 10px;
    background: rgba(220, 38, 38, 0.25);
    border: 1px solid rgba(220, 38, 38, 0.5);
    border-radius: 8px;
    color: #ffcccc;
    font-size: 0.9rem;
    display: none;
}

@media (max-width: 600px) {
    .glass-card { padding: 25px; width: 85%; }
    h1 { font-size: 1.5rem; }
    .result-value { flex-direction: column; align-items: flex-start; }
    .copy-btn { width: 100%; margin-top: 5px; }
}