* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #070709;
    color: #f3f3f6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 40px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.interactive-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.draggable-emoji {
    position: absolute;
    font-size: 2.3rem;
    opacity: 0.35;
    cursor: grab;
    pointer-events: auto;
    user-select: none;
    animation: smoothFloat 10s ease-in-out infinite alternate;
    transition: transform 0.1s ease;
}

.draggable-emoji:active {
    cursor: grabbing;
    transform: scale(1.4);
    animation: none;
}

@keyframes smoothFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -25px) rotate(10deg); }
    100% { transform: translate(-20px, 20px) rotate(-10deg); }
}

.marquee-container {
    width: 100%;
    background: rgba(15, 15, 20, 0.95);
    border-bottom: 1px solid #22222f;
    border-top: 1px solid #22222f;
    overflow: hidden;
    white-space: nowrap;
    position: absolute;
    top: 0;
    padding: 14px 0;
    box-shadow: 0 0 25px rgba(255, 117, 140, 0.18);
    z-index: 10;
}

.marquee-track {
    display: inline-flex;
    white-space: nowrap;
    will-change: transform;
    animation: leftToRightScroll 35s linear infinite;
}

.marquee-track span.mix-text {
    display: inline-block;
    padding: 0 40px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffd1dc;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-shadow: 0 0 12px rgba(255, 117, 140, 0.7);
}

.marquee-track span.ar-word {
    font-family: 'Tajawal', sans-serif;
    font-weight: 900;
    color: #ff758c;
    margin: 0 4px;
}

@keyframes leftToRightScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.container {
    width: 100%;
    max-width: 520px;
    padding: 20px;
    margin-top: 70px;
    z-index: 1;
}

.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.logo-pro {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(270deg, #ff758c, #ff7eb3, #7928ca, #4facfe, #00f2fe, #ff758c);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
    text-align: center;
    filter: drop-shadow(0 0 20px rgba(255, 117, 140, 0.4));
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.subtitle {
    font-size: 1rem;
    color: #a1a6b0;
    margin-bottom: 22px;
    text-align: center;
    font-weight: 600;
}

.card {
    background: rgba(16, 16, 22, 0.95);
    border: 1px solid #262638;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #e2e8f0;
    font-weight: 700;
}

textarea, input[type="url"] {
    width: 100%;
    padding: 14px 16px;
    background: #121218;
    border: 1px solid #2a2a3d;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    font-weight: 600;
}

textarea:focus, input[type="url"]:focus {
    border-color: #ff758c;
    box-shadow: 0 0 12px rgba(255, 117, 140, 0.25);
}

.stickers-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    max-height: 130px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #121218;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #2a2a3d;
}

.stickers-grid.expanded {
    max-height: 380px;
    overflow-y: auto;
}

.sticker-opt {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #181822;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}

.sticker-opt img, 
.sticker-opt video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.sticker-opt:hover {
    background: #232333;
    border-color: rgba(255, 117, 140, 0.5);
    transform: scale(1.08);
}

.sticker-opt.selected {
    background: #181822;
    border: 2px solid #ff758c;
    box-shadow: 0 0 25px rgba(255, 117, 140, 0.6);
    transform: scale(1.25);
    z-index: 5;
    position: relative;
}

.more-stickers-btn {
    background: transparent;
    border: 1px dashed #ff758c;
    color: #ff758c;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s;
}

.more-stickers-btn:hover {
    background: rgba(255, 117, 140, 0.12);
}

.send-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff758c, #ff7eb3);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
}

.send-btn:hover {
    opacity: 0.92;
    transform: translateY(-2px);
}

.hidden {
    display: none;
    text-align: center;
    color: #4ade80;
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 700;
}
.selected-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
}

.selected-sticker-box {
    width: 90px;
    height: 90px;
    background: #181822;
    border: 2px solid #ff758c;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 117, 140, 0.4);
    animation: pulseGlow 2s infinite alternate;
}

.selected-sticker-box img, 
.selected-sticker-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.selected-hint {
    font-size: 0.75rem;
    color: #ff758c;
    margin-top: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(255, 117, 140, 0.3); }
    100% { box-shadow: 0 0 25px rgba(255, 117, 140, 0.7); }
}
