* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    overflow-x: hidden;
}

body {
    background: #ffffff;
    color: #000000;
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
}

.navbar {
    padding: 24px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo .logo-img {
    height: 40px;
    width: auto;
}

.nav-right {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-name {
    font-weight: 600;
}

.btn {
    padding: 10px 36px;
    border-radius: 24px;
    border: 2px solid #7c3aed;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    background: transparent;
    color: #7c3aed;
}

.btn-login {
    background: #7c3aed;
    color: #ffffff;
}

.btn-register {
    background: transparent;
    color: #7c3aed;
}

.btn-primary {
    background: #7c3aed;
    color: #ffffff;
}

.btn-secondary {
    background: #f5f0ff;
    color: #7c3aed;
    border-color: #7c3aed;
}

.btn-icon {
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #7c3aed;
}

.btn-icon:hover {
    background: #f5f0ff;
}

.icon-small {
    width: 24px;
    height: 24px;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

.usage-info {
    text-align: center;
    margin-bottom: 32px;
    font-size: 18px;
    font-weight: 600;
    color: #7c3aed;
}

.drop-zone {
    border: 4px dashed #7c3aed;
    border-radius: 24px;
    padding: 48px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 32px;
    width: 100%;
}

.drop-zone:hover,
.drop-zone.drag-active {
    background: #f5f0ff;
}

.drop-zone.has-file {
    background: #f0fff0;
    border-color: #4caf50;
}

.drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.drop-icon {
    width: 80px;
    height: 80px;
}

.drop-text {
    color: #7c3aed;
    font-size: 16px;
    font-weight: 600;
}

.format-section {
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #000080;
    margin-bottom: 32px;
}

.formats-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.format-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.format-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.format-content {
    width: 140px;
    height: 140px;
    border-radius: 24px;
    border: 4px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: all 0.2s ease;
    position: relative;
}

.format-card:nth-child(1) .format-content {
    border-color: #dc2626;
}

.format-card:nth-child(2) .format-content {
    border-color: #65a30d;
}

.format-card:nth-child(3) .format-content {
    border-color: #f59e0b;
}

.format-card:nth-child(4) .format-content {
    border-color: #0ea5e9;
}

.format-card:nth-child(5) .format-content {
    border-color: #000000;
}

.format-card:hover .format-content {
    transform: scale(1.05);
}

.format-card.selected .format-content {
    background: #fefce8;
}

.format-icon {
    width: 80px;
    height: 80px;
}

.checkmark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
}

.checkmark img {
    width: 28px;
    height: 28px;
}

.format-card.selected .checkmark {
    display: flex;
}

.btn-convert {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #7c3aed;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 24px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 auto 48px;
    transition: all 0.2s ease;
}

.btn-convert:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

.convert-btn-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.hidden {
    display: none !important;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.alert-success {
    background: #e8ffd3;
    border: 1px solid #c9ff99;
    color: #2d5a00;
}

.alert-error {
    background: #ffebeb;
    border: 1px solid #ffcccc;
    color: #cc0000;
}

.pricing-section {
    text-align: center;
}

.pricing-section h2 {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.pricing-section > p {
    color: #666666;
    font-size: 18px;
    margin-bottom: 40px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.plan-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
}

.plan-card.featured {
    border: 2px solid #7c3aed;
    transform: scale(1.02);
}

.plan-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333333;
}

.plan-price {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #000000;
}

.plan-price span {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
}

.plan-limit {
    color: #666666;
    margin-bottom: 24px;
    font-size: 15px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-large {
    max-width: 900px;
}

.modal-large .plans-grid {
    grid-template-columns: repeat(3, 1fr);
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666666;
}

.close-btn:hover {
    color: #000000;
}

.modal-content h2 {
    margin-bottom: 24px;
    color: #000080;
}

.modal-link {
    margin-top: 16px;
    text-align: center;
}

.modal-link a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
}

.modal-link a:hover {
    text-decoration: underline;
}

#limitActions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #000000;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #7c3aed;
    background: #ffffff;
}

/* Profile Styles */
.profile-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
}

.profile-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #000080;
    margin-bottom: 20px;
}

.profile-plan {
    width: 100%;
}

.profile-plan-card {
    background: #f5f0ff;
    border: 2px solid #7c3aed;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.profile-plan-card h4 {
    font-size: 22px;
    font-weight: 700;
    color: #7c3aed;
    margin-bottom: 12px;
}

.profile-plan-card .plan-limit {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 12px;
}

.profile-plan-card .plan-status {
    font-size: 15px;
    color: #666666;
    margin-bottom: 8px;
}

.profile-plan-card .plan-price {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 16px;
    }

    .nav-right {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .user-name {
        width: 100%;
        text-align: right;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .main-container {
        padding: 20px 16px 60px;
    }

    .formats-grid {
        gap: 12px;
    }

    .format-content {
        width: 100px;
        height: 100px;
    }

    .format-icon {
        width: 56px;
        height: 56px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .modal-large .plans-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .modal-content {
        padding: 24px;
    }

    .modal {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 12px;
    }

    .main-container {
        padding: 16px 12px 40px;
    }

    .drop-zone {
        padding: 32px 16px;
    }

    .format-content {
        width: 80px;
        height: 80px;
    }

    .format-icon {
        width: 48px;
        height: 48px;
    }

    .section-title {
        font-size: 20px;
    }

    .pricing-section h2 {
        font-size: 24px;
    }
}
