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

body {
    background: #0a0a0f;
    font-family: "Inter", sans-serif;
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 560px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #00f2ea, #ff004f);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 242, 234, 0.3);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c084fc, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text span {
    color: #a78bfa;
    background: none;
}

.tagline {
    font-size: 0.75rem;
    color: #71717a;
}

/* Card */
.card {
    background: rgba(18, 18, 26, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 242, 234, 0.2);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(0, 242, 234, 0.4);
}

/* Input */
.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #00f2ea;
    font-size: 1rem;
    z-index: 2;
}

.url-input {
    width: 100%;
    padding: 0.9rem 2.5rem 0.9rem 2.8rem;
    background: #1c1c26;
    border: 1.5px solid #2a2a35;
    border-radius: 60px;
    color: #fff;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.url-input:focus {
    outline: none;
    border-color: #00f2ea;
    box-shadow: 0 0 0 3px rgba(0, 242, 234, 0.1);
}

.clear-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.clear-btn:hover {
    background: #2a2a35;
    color: #fff;
}

/* Badge */
.badge-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: rgba(0, 242, 234, 0.1);
    border-radius: 60px;
    font-size: 0.7rem;
    color: #00f2ea;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 0.75rem;
}

.btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem;
    border: none;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.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.4s;
}

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

.btn-video {
    background: linear-gradient(135deg, #00f2ea, #004e9e);
    color: #fff;
}

.btn-audio {
    background: linear-gradient(135deg, #fe2c55, #8b5cf6);
    color: #fff;
}

.btn-photo {
    background: linear-gradient(135deg, #ff004f, #ec4899);
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn:active {
    transform: scale(0.97);
}

/* Loading */
.loading-card {
    background: #13131a;
    border-radius: 24px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #1f1f2a;
    margin-bottom: 1rem;
}

.spinner {
    width: 45px;
    height: 45px;
    margin: 0 auto 1rem;
    border: 2px solid rgba(0, 242, 234, 0.2);
    border-top-color: #00f2ea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.progress-track {
    background: #1c1c26;
    border-radius: 60px;
    height: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00f2ea, #ff004f);
    transition: width 0.3s;
}

.loading-text {
    font-size: 0.75rem;
    color: #a1a1aa;
    margin-top: 0.5rem;
}

/* Result */
.result-card {
    background: #13131a;
    border-radius: 24px;
    padding: 1rem;
    border: 1px solid #1f1f2a;
    margin-bottom: 1rem;
}

.result-info {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1f1f2a;
}

.result-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.result-meta {
    display: flex;
    gap: 12px;
    font-size: 0.65rem;
    color: #a1a1aa;
}

.file-info {
    background: #1c1c26;
    border-radius: 10px;
    padding: 8px 12px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    font-family: monospace;
    color: #00f2ea;
}

.download-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 60px;
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
}

.download-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.secure-note {
    margin-top: 8px;
    font-size: 0.55rem;
    text-align: center;
    color: #6b7280;
}

.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fca5a5;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

/* Slideshow Images */
.slideshow-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.slideshow-image {
    background: #1c1c26;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.slideshow-image:hover {
    transform: scale(1.02);
}

.slideshow-image img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.slideshow-note {
    font-size: 0.6rem;
    text-align: center;
    color: #a1a1aa;
    margin-top: 8px;
}

/* How to */
.howto-card {
    background: linear-gradient(
        135deg,
        rgba(0, 242, 234, 0.04),
        rgba(255, 0, 79, 0.02)
    );
}

.howto-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1f1f2a;
}

.howto-header i {
    font-size: 1rem;
    color: #00f2ea;
}

.howto-header h3 {
    font-size: 0.85rem;
    font-weight: 600;
}

.howto-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.howto-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.howto-num {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #00f2ea, #ff004f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.howto-text {
    font-size: 0.75rem;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 1rem;
}

.feature {
    background: #1c1c26;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    transition: all 0.2s;
}

.feature:hover {
    background: #27272a;
    transform: translateY(-2px);
}

.feature i {
    font-size: 1.2rem;
    margin-bottom: 6px;
    display: block;
    color: #00f2ea;
}

.feature span {
    font-size: 0.6rem;
    color: #a1a1aa;
}

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

.donate-btn {
    background: rgba(255, 51, 102, 0.1);
    border: 1.5px solid rgba(255, 51, 102, 0.3);
    padding: 8px 24px;
    border-radius: 60px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.donate-btn:hover {
    border-color: #ff3366;
    transform: translateY(-2px);
    background: rgba(255, 51, 102, 0.15);
}

.donate-btn i:first-child {
    color: #ff3366;
    animation: heartbeat 1.5s infinite;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.social-links a {
    width: 34px;
    height: 34px;
    background: #1c1c26;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a1aa;
    font-size: 1rem;
    transition: all 0.2s;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.social-links a:first-child:hover {
    color: #25d366;
    background: rgba(37, 211, 102, 0.15);
}

.social-links a:last-child:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.55rem;
    color: #6b7280;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #13131a;
    border-radius: 24px;
    max-width: 320px;
    width: 90%;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.modal-close {
    float: right;
    background: none;
    border: none;
    color: #a1a1aa;
    font-size: 1.2rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.modal-close:hover {
    background: #2a2a35;
    color: #fff;
}

.modal h3 {
    margin: 16px 0 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.modal p {
    font-size: 0.7rem;
    color: #a1a1aa;
    margin-bottom: 20px;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff3366, #ff6b3d);
    border-radius: 60px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.hidden {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes heartbeat {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    .card {
        padding: 1rem;
    }
    .button-group {
        flex-direction: column;
        gap: 0.6rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .slideshow-images {
        grid-template-columns: repeat(2, 1fr);
    }
}
