:root {
    --primary: #ee4d2d;
    --primary-dark: #d73211;
    --accent: #ff9f43;
    --glass: rgba(255, 255, 255, 0.85);
    --text: #2d3436;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    color: var(--text);
    padding: 15px 20px;
}

/* Animated Blobs Background */
.blob-c {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #f7f9fc;
}

.shape-blob {
    background: #ee4d2d;
    height: 400px;
    width: 400px;
    border-radius: 40% 50% 30% 40%;
    position: absolute;
    filter: blur(80px);
    opacity: 0.15;
    animation: move 20s infinite alternate;
}

.shape-blob.one {
    background: #ff9f43;
    height: 300px;
    width: 300px;
    right: -100px;
    top: -50px;
}

.shape-blob.two {
    background: #ee4d2d;
    left: -50px;
    bottom: -50px;
}

@keyframes move {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(100px, 100px) rotate(360deg);
    }
}

.container {
    width: 90%;
    max-width: 520px;
    z-index: 10;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
    animation: bounce 2s infinite;
}

.header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 5px;
}

.header h1 span {
    color: var(--primary);
}

.subtitle {
    color: #636e72;
    margin-top: 0;
    font-size: 0.95rem;
}

/* Main Card (Glassmorphism) */
.main-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.input-section label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2d3436;
    font-size: 0.95rem;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 14px;
    border: 2px solid #edf2f7;
    background: white;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(238, 77, 45, 0.1);
    transform: scale(1.01);
}

small {
    display: block;
    margin-top: 8px;
    color: #95a5a6;
    font-size: 0.8rem;
}

/* Buttons */
.btn-generate {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(238, 77, 45, 0.2);
}

.btn-generate:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(238, 77, 45, 0.3);
}

/* Result Section */
.result-card {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #dfe6e9;
    animation: fadeIn 0.5s ease;
}

.output-group {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.output-group input {
    flex: 1;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #2d3436;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-copy {
    padding: 0 20px;
    background: #2d3436;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-copy:hover {
    background: #000;
}

/* Steps Section */
.steps-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 25px;
    opacity: 0.8;
}

.step-item {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.step-num {
    width: 28px;
    height: 28px;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 6px;
    font-size: 0.9rem;
}

.step-arrow {
    color: #b2bec3;
    font-size: 0.8rem;
}

/* Toast Notification */
.toast {
    background: #27ae60;
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hidden {
    display: none;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .main-card {
        padding: 25px;
    }

    .output-group {
        flex-direction: column;
    }

    .btn-copy {
        padding: 15px;
    }
}

/* Fo
oter */
.footer {
    text-align: center;
    margin-top: 30px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.3);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(24, 119, 242, 0.4);
}

.social-link i {
    font-size: 1.2rem;
}

/* L
ink Comparison Stats */
#linkComparison {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border-left: 4px solid #0ea5e9;
}

#linkComparison strong {
    color: #0369a1;
}

#linkComparison span {
    color: #64748b;
    font-size: 0.9rem;
}

/*
 Voucher Section */
.voucher-section {
    margin-top: 35px;
    animation: fadeIn 0.8s ease 0.6s both;
}

.voucher-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.voucher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.voucher-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ee4d2d 0%, #ff6b35 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(238, 77, 45, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.voucher-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.voucher-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 25px 20px 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voucher-card:hover .voucher-overlay {
    opacity: 1;
}

.voucher-overlay p {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

@media (max-width: 480px) {
    .voucher-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .voucher-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    }

    .voucher-overlay p {
        font-size: 0.9rem;
    }
}

/* 
Mobile adjustments for social link */
@media (max-width: 480px) {
    .social-link-top {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}

/* In
structions Section */
.instructions-section {
    margin-top: 25px;
    animation: fadeIn 0.8s ease 0.8s both;
}

.instructions-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-radius: 16px;
    padding: 25px;
    border: 2px solid #fee;
    box-shadow: 0 8px 20px rgba(238, 77, 45, 0.1);
}

.instructions-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instructions-card h3 i {
    font-size: 1.2rem;
}

.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instructions-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #fdd;
    font-size: 0.95rem;
    line-height: 1.6;
}

.instructions-list li:last-child {
    border-bottom: none;
}

.step-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.instructions-list strong {
    color: var(--primary);
    font-weight: 700;
}

.instructions-note {
    margin-top: 18px;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #2d3436;
    border-left: 4px solid #ffd700;
}

.instructions-note i {
    color: #ffd700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .instructions-card {
        padding: 20px;
    }

    .instructions-card h3 {
        font-size: 1rem;
    }

    .instructions-list li {
        font-size: 0.9rem;
        gap: 10px;
    }

    .step-icon {
        font-size: 1.1rem;
    }

    .instructions-note {
        font-size: 0.85rem;
    }
}

/* Facebook Post Button */
.facebook-post-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

.facebook-post-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(24, 119, 242, 0.4);
    background: linear-gradient(135deg, #0c63d4 0%, #0952b8 100%);
}

.facebook-post-btn i:first-child {
    font-size: 1.4rem;
}

.facebook-post-btn i:last-child {
    font-size: 1rem;
    animation: arrowMove 1.5s infinite;
}

@keyframes arrowMove {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

@media (max-width: 480px) {
    .facebook-post-btn {
        font-size: 0.95rem;
        padding: 14px 20px;
    }
}

/* Sub
title Logo */
.subtitle-logo {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 4px;
    display: inline-block;
}

@media (max-width: 480px) {
    .subtitle-logo {
        height: 18px;
        margin-right: 5px;
    }
}