/* Reset y base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    transition: background 0.5s;
}

.main-header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 1s;
}
.main-header .logo {
    margin-bottom: 0.5rem;
}
.main-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.main-header .subtitle {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.container.pro {
    background: rgba(255,255,255,0.95);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 12px 32px rgba(76, 110, 245, 0.10), 0 2px 8px rgba(0,0,0,0.04);
    text-align: center;
    animation: fadeInUp 1.2s;
}

.shorten-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.shorten-form input[type="text"] {
    flex: 1;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid #bcd0ee;
    font-size: 1.08rem;
    background: #f7faff;
    transition: border 0.2s;
    outline: none;
}
.shorten-form input[type="text"]:focus {
    border-color: #4a90e2;
}
.shorten-form button {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #4a90e2 0%, #2563eb 100%);
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(76, 110, 245, 0.08);
    transition: background 0.2s, transform 0.2s;
}
.shorten-form button:hover {
    background: linear-gradient(90deg, #357abd 0%, #174ea6 100%);
    transform: translateY(-2px) scale(1.04);
}

.result {
    margin-top: 1.5rem;
    background: #f7f9fc;
    padding: 1.5rem 1rem;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(76, 110, 245, 0.07);
    display: none;
    animation: fadeIn 1.1s;
}
.result .success-icon {
    margin-bottom: 0.5rem;
}
.result .success-msg {
    font-size: 1.15rem;
    color: #2ecc71;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.result .links {
    margin-bottom: 1rem;
}
.result a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 600;
    word-break: break-all;
    transition: color 0.2s;
}
.result a:hover {
    color: #e67e22;
}

.buttons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.buttons button {
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    flex: 1;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.08);
    transition: background 0.2s, transform 0.2s;
}
.buttons button.copy {
    background: linear-gradient(90deg, #e67e22 0%, #f39c12 100%);
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.08);
}
.buttons button:hover {
    opacity: 0.95;
    transform: translateY(-2px) scale(1.03);
}

@media (max-width: 600px) {
    .container.pro {
        padding: 1.2rem 0.5rem;
        max-width: 98vw;
    }
    .shorten-form {
        flex-direction: column;
        gap: 0.7rem;
    }
    .shorten-form button {
        width: 100%;
    }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}