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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #ff6b35 0%, #f72585 50%, #b5179e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b35, #f72585);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    color: #666;
    margin-top: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.btn-shorten {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b35, #f72585);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-shorten:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(247, 37, 133, 0.4);
}

.btn-shorten:active {
    transform: translateY(0);
}

.btn-shorten:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.result {
    display: none;
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f0, #fff0f5);
    border-radius: 16px;
    border: 2px solid #ffe0e0;
}

.result.show {
    display: block;
    animation: slideUp 0.3s ease;
}

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

.result-url {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.result-url input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.result-url input:focus {
    outline: none;
    border-color: #ff6b35;
}

.btn-copy {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b35, #f72585);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    transform: scale(1.05);
}

.btn-copy.copied {
    background: #10b981;
}

.qr-container {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#qrCode {
    display: flex;
    justify-content: center;
}

#qrCode img,
#qrCode canvas {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

.qr-container p {
    margin-top: 8px;
    color: #666;
    font-size: 0.9rem;
}

.btn-download-qr {
    margin-top: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff6b35, #f72585);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download-qr:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(247, 37, 133, 0.3);
}

.original-url {
    margin-top: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    word-break: break-all;
    font-size: 0.85rem;
    color: #666;
}

.original-url strong {
    color: #333;
}

.error {
    display: none;
    padding: 16px;
    background: #fee2e2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    color: #dc2626;
    font-weight: 500;
    margin-top: 16px;
}

.error.show {
    display: block;
    animation: slideUp 0.3s ease;
}

.new-section {
    margin-top: 16px;
    text-align: center;
}

.btn-new {
    padding: 12px 32px;
    background: linear-gradient(135deg, #ff6b35, #f72585);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(247, 37, 133, 0.4);
}

.footer {
    text-align: center;
    margin-top: 24px;
    padding: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.footer a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.footer a:hover {
    color: #ffe0e0;
}

.help-section {
    margin-bottom: 24px;
}

.help-section h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #ffe0e0;
}

.help-section p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.help-steps {
    padding-left: 20px;
    color: #555;
    line-height: 2;
    font-size: 0.95rem;
}

.help-steps li {
    margin-bottom: 4px;
}

.help-steps strong {
    color: #f72585;
}

.help-section code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #6b21a8;
}

.contact-info {
    margin-top: 10px;
    padding: 12px;
    background: #fff5f0;
    border-radius: 8px;
    border: 1px solid #ffe0e0;
}

.contact-info p {
    margin-bottom: 4px;
}

.contact-info a {
    color: #f72585;
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

.help-back {
    margin-top: 20px;
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #ff6b35, #f72585);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-back:hover {
    opacity: 0.9;
}

@media (max-width: 480px) {
    .card {
        padding: 24px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .result-url {
        flex-direction: column;
    }
    
    .btn-copy {
        width: 100%;
    }
}
