/* YouTube Premium+ & Music - Gen-Z Ultra Modern - Centered Layout */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --yt-red: #FF0000;
    --yt-music: #FF6B6B;
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.8);
    --text-white: #ffffff;
    --text-gray: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.08);
    --gradient-main: linear-gradient(135deg, #FF0000 0%, #FF6B6B 50%, #8B5CF6 100%);
    --gradient-glow: radial-gradient(circle, rgba(255, 0, 0, 0.4) 0%, transparent 70%);
    --gradient-btn: linear-gradient(135deg, #FF0000 0%, #8B5CF6 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 107, 107, 0.08) 0%, transparent 50%);
    animation: bgShift 15s ease infinite;
}

@keyframes bgShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 25s ease-in-out infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.25) 0%, rgba(255, 0, 0, 0) 100%);
    top: -15%;
    left: -15%;
    animation-delay: 0s;
}

.shape-2 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0) 100%);
    bottom: -15%;
    right: -15%;
    animation-delay: -8s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.18) 0%, rgba(255, 107, 107, 0) 100%);
    top: 40%;
    left: 40%;
    animation-delay: -16s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, transparent 100%);
    top: 20%;
    right: 20%;
    animation-delay: -12s;
    animation-duration: 30s;
}

.shape-5 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, transparent 100%);
    bottom: 20%;
    left: 15%;
    animation-delay: -20s;
    animation-duration: 28s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(40px, -40px) scale(1.1) rotate(5deg); }
    50% { transform: translate(-30px, 30px) scale(0.9) rotate(-5deg); }
    75% { transform: translate(-40px, -30px) scale(1.05) rotate(3deg); }
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease;
}

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

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--gradient-glow);
    border-radius: 50%;
    filter: blur(30px);
    animation: glowPulse 3s ease infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo svg {
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5));
}

.music-icon {
    animation: musicBounce 2s ease infinite;
}

@keyframes musicBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.brand-text h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text .plus {
    color: var(--yt-red);
    -webkit-text-fill-color: var(--yt-red);
    font-size: 1.8rem;
}

.brand-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-gray);
}

/* Main Content */
.main-content {
    width: 100%;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

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

.content-card {
    background: var(--bg-card);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Title Section */
.title-section {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.title-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.title-section p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Form */
#coupon-form {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper input:focus + .input-shine ~ .input-icon,
.input-wrapper input:focus ~ .input-icon {
    color: var(--yt-red);
}

.input-wrapper input {
    width: 100%;
    padding: 1.4rem 1.25rem 1.4rem 4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-white);
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
    font-weight: 600;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--yt-red);
    background: rgba(255, 0, 0, 0.03);
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.1), 0 0 40px rgba(255, 0, 0, 0.15);
}

.input-wrapper input.error {
    border-color: #ff4444;
    box-shadow: 0 0 0 4px rgba(255, 68, 68, 0.15);
}

.input-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
    border-radius: 20px;
    z-index: 3;
}

.input-wrapper:hover .input-shine {
    animation: shine 3s ease infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.error-message {
    display: block;
     margin-bottom: 1rem; 
    padding: 1rem 1.25rem;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 14px;
    color: #ff6b6b;
    font-size: 0.9rem;
    text-align: center;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Verify Button */
.verify-btn {
    width: 100%;
    padding: 1.4rem;
    background: var(--gradient-btn);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.3);
}

.verify-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.verify-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 0, 0, 0.4);
}

.verify-btn:hover::before {
    left: 100%;
}

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

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--gradient-glow);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.verify-btn:hover .btn-glow {
    opacity: 0.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: default;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 0, 0, 0.3);
    transform: translateY(-3px);
}

.feature-icon-wrapper {
    position: relative;
}

.feature-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.feature-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
    text-align: center;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: white;
}

.contact-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.contact-item:hover svg {
    opacity: 1;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.powered-by span {
    color: rgba(255, 255, 255, 0.5);
}

.powered-by a {
    color: var(--yt-red);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.powered-by a:hover {
    color: #ff3333;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.cross {
    color: rgba(255, 255, 255, 0.3) !important;
    font-weight: 300;
}

.copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

/* Responsive */
@media (max-width: 580px) {
    .container {
        padding: 1.5rem;
    }

    .content-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .brand-text h1 {
        font-size: 2rem;
    }

    .brand-text .plus {
        font-size: 1.4rem;
    }

    .brand-text h2 {
        font-size: 1.1rem;
    }

    .title-section h3 {
        font-size: 1.4rem;
    }

    .input-wrapper input {
        padding: 1.2rem 1rem 1.2rem 3.5rem;
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .input-icon {
        left: 1rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card {
        padding: 0.85rem;
    }

    .feature-icon {
        width: 38px;
        height: 38px;
    }

    .feature-card span {
        font-size: 0.75rem;
    }
}
