/* TikFuel Widget Styles */
.tikfuel-widget-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0.5rem;
}

@media (min-width: 640px) {
    .tikfuel-widget-container {
        max-width: 28rem;
        padding: 1rem;
    }
}

@media (min-width: 1024px) {
    .tikfuel-widget-container {
        max-width: 42rem;
    }
}

.tikfuel-widget {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .tikfuel-widget {
        padding: 1.5rem;
    }
}

/* Niche Section */
.niche-section {
    margin-bottom: 1.5rem;
}

.niche-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.niche-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .niche-grid {
        gap: 0.75rem;
    }
}

@media (min-width: 768px) {
    .niche-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .niche-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.niche-button {
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

@media (min-width: 640px) {
    .niche-button {
        padding: 0.75rem;
    }
}

.niche-button:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.niche-button.selected {
    border-color: #ec4899;
    background: linear-gradient(to bottom right, #fdf2f8, #fecaca);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    ring: 2px solid #fbcfe8;
}

.niche-emoji {
    font-size: 1.125rem;
}

.niche-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.25;
}

/* Username Section */
.username-section {
    margin-bottom: 1.5rem;
}

.username-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.username-input-wrapper {
    display: flex;
}

.username-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    color: white;
    padding: 0 0.75rem;
    border-radius: 0.5rem 0 0 0.5rem;
    font-weight: 500;
}

.username-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.username-input:focus {
    outline: none;
    ring: 2px solid #3b82f6;
    border-color: #3b82f6;
}

/* Platform Section */
.platform-section {
    margin-bottom: 1.5rem;
}

.platform-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.75rem;
}

.platform-toggle {
    display: flex;
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.platform-button {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    color: #4b5563;
    background: transparent;
}

.platform-button:hover {
    color: #111827;
}

.platform-button.active[data-platform="tiktok"] {
    background: linear-gradient(to right, #ec4899, #ef4444);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.platform-button.active[data-platform="instagram"] {
    background: linear-gradient(to right, #8b5cf6, #ec4899, #f97316);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.submit-button:not(.disabled) {
    background: #2563eb;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.submit-button:not(.disabled):hover {
    background: #1d4ed8;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.submit-button.disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

/* Validation Message */
.validation-message {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.validation-message.hidden {
    display: none;
}

/* Step 2 Styles */
.step-2 {
    width: 100%;
}

.back-button {
    display: flex;
    align-items: center;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.back-button:hover {
    color: #111827;
}

.step-2-header {
    margin-bottom: 1.5rem;
}

.step-2-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

/* Package Grid */
.package-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .package-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.package-button {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.package-button:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.package-button.selected {
    border-color: #ec4899;
    background: linear-gradient(to bottom right, #fdf2f8, #fecaca);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    ring: 2px solid #fbcfe8;
}

.package-quantity {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.package-tagline {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Package Details */
.package-details {
    background: white;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.price-section {
    text-align: center;
    margin-bottom: 1rem;
}

.price-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.old-price-display {
    font-size: 1.125rem;
    color: #6b7280;
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.purchase-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    background: #2563eb;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.75rem;
}

.purchase-button:hover {
    background: #1d4ed8;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.delivery-time {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.savings {
    text-align: center;
    font-size: 0.875rem;
    color: #16a34a;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-time {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Step 1 */
#step-1 {
    width: 100%;
}