* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-color);
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 48px;
    color: white;
}

.logo h1 {
    font-size: 42px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 300;
}

/* Upload Section */
.upload-section {
    margin-bottom: 40px;
}

.upload-area {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    border: 3px dashed var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}

.upload-area:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 72px;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.upload-content p {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 16px;
}

.file-types {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary i {
    margin-right: 8px;
}

/* Preview Section */
.preview-section {
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.preview-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.preview-header h3 {
    color: var(--success-color);
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.btn-close:hover {
    background: var(--bg-color);
    color: var(--danger-color);
}

.preview-image-container {
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
}

.preview-image-container img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

/* Image Info */
.image-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.info-item i {
    color: var(--primary-color);
    font-size: 20px;
}

/* Link Section */
.link-section {
    margin-bottom: 25px;
}

.link-section label,
.code-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.link-input-group {
    display: flex;
    gap: 10px;
}

.link-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    background: var(--bg-color);
    transition: all 0.3s ease;
}

.link-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.btn-copy {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-copy-small {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy-small:hover {
    background: var(--primary-dark);
}

/* Share Options */
.share-options {
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    margin-bottom: 25px;
}

.share-options h4 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.code-group {
    margin-bottom: 15px;
}

.code-group:last-child {
    margin-bottom: 0;
}

.btn-new {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-new:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-new i {
    margin-right: 8px;
}

/* Gallery Section */
.gallery-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.gallery-section h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay i {
    color: white;
    font-size: 32px;
}

/* Footer */
.footer {
    text-align: center;
    color: white;
    padding: 30px 0;
}

/* Footer Advertisements */
.footer-ads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.footer-ad {
    animation: fadeIn 0.5s ease;
}

.footer-ad a {
    text-decoration: none;
    display: block;
}

.ad-content {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.ad-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ad-purple:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.ad-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.ad-orange:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.ad-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.ad-green:hover {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
}

.ad-red {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.ad-red:hover {
    background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
}

.ad-blue {
    background: linear-gradient(135deg, #2196f3 0%, #1e3c72 100%);
}

.ad-blue:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #2196f3 100%);
}

.ad-yellow {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.ad-yellow:hover {
    background: linear-gradient(135deg, #ffd200 0%, #f7971e 100%);
}

.ad-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.ad-content > i {
    font-size: 32px;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.ad-text {
    flex: 1;
    text-align: left;
    color: white;
}

.ad-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
    color: white;
}

.ad-text span {
    font-size: 12px;
    opacity: 0.9;
    color: white;
    line-height: 1.4;
}

.ad-icon {
    font-size: 18px;
    color: white;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.ad-content:hover .ad-icon {
    opacity: 1;
    transform: translateX(5px);
}

/* Advertisement CTA */
.ad-cta {
    margin: 30px auto 25px;
    max-width: 800px;
}

.ad-cta-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.ad-cta-content:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.02);
}

.ad-cta-text {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    flex: 1;
}

.ad-cta-text > i {
    font-size: 36px;
    color: white;
    animation: pulse 2s infinite;
}

.ad-cta-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: white;
}

.ad-cta-text span {
    font-size: 13px;
    opacity: 0.9;
    color: white;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    white-space: nowrap;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    font-size: 22px;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer .creator {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.7;
    font-style: italic;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--success-color);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .logo h1 {
        font-size: 32px;
    }

    .logo i {
        font-size: 36px;
    }

    .tagline {
        font-size: 14px;
    }

    .upload-area {
        padding: 40px 20px;
    }

    .upload-icon {
        font-size: 56px;
    }

    .upload-content h2 {
        font-size: 22px;
    }

    .preview-card {
        padding: 20px;
    }

    .link-input-group {
        flex-direction: column;
    }

    .btn-copy {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .toast {
        right: 10px;
        left: 10px;
        bottom: 10px;
    }

    /* Modal responsive */
    .modal {
        padding: 10px;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 22px;
    }

    .modal-body {
        padding: 20px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .social-icons {
        justify-content: center;
    }

    /* Ad responsive */
    .footer-ads {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ad-content {
        flex-direction: column;
        text-align: center;
        padding: 12px 15px;
    }

    .ad-content > i {
        font-size: 28px;
    }

    .ad-text {
        text-align: center;
    }

    .ad-text strong {
        font-size: 14px;
    }

    .ad-text span {
        font-size: 11px;
    }

    .ad-icon {
        display: none;
    }

    /* Ad CTA responsive */
    .ad-cta-content {
        flex-direction: column;
        text-align: center;
        padding: 18px 20px;
    }

    .ad-cta-text {
        flex-direction: column;
        text-align: center;
    }

    .ad-cta-text > i {
        font-size: 32px;
    }

    .ad-cta-text strong {
        font-size: 15px;
    }

    .ad-cta-text span {
        font-size: 12px;
    }

    .btn-whatsapp {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-color);
    color: var(--danger-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    color: var(--text-color);
}

.modal-body h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.modal-body h4 {
    color: var(--primary-color);
    margin: 20px 0 10px;
    font-size: 18px;
}

.modal-body p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--text-light);
}

.modal-body ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.modal-body ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-light);
}

.modal-footer-info {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
}

.modal-footer-info p {
    margin-bottom: 5px;
    color: var(--text-color);
}

.privacy-update {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
}

/* Contact Info Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.contact-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.contact-item i {
    font-size: 28px;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

/* Contact Form */
.contact-form {
    margin: 30px 0;
    padding: 25px;
    background: var(--bg-color);
    border-radius: 15px;
}

.contact-form h4 {
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Social Links */
.social-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.social-links h4 {
    margin-top: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 22px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

