/* Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    padding: 0 24px;
    border-radius: 980px;
    /* Pill shape */
    transition: all var(--transition-fast);
}

.btn-lg {
    height: 56px;
    font-size: 1.1rem;
    padding: 0 32px;
}

.btn-sm {
    height: 36px;
    font-size: 0.9rem;
    padding: 0 16px;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background-color: var(--color-border);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background-color: rgba(0, 0, 0, 0.05);
    /* Very light grey */
    color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

/* Standard Badges */
.badge-popular {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(90deg, #FF6B6B 0%, #FF8E53 100%);
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
}

/* Sections Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

/* Extra Large Button for Conversion */
.btn-xl {
    height: 64px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.4);
    letter-spacing: 0.01em;
}

.btn-xl:not(:disabled):hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.5);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    /* Apple glass effect */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Modal Container */
.modal-container {
    background: var(--color-bg-card);
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.hidden .modal-container {
    transform: scale(0.9);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-text-secondary);
    background: none;
    border: none;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--color-text-primary);
}

.modal-subtitle {
    margin-bottom: 24px;
    color: var(--color-text-secondary);
}

.modal-price-display {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 24px;
    padding: 12px;
    background: rgba(0, 113, 227, 0.1);
    border-radius: 12px;
}

/* Form Styles */
.checkout-form {
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.secure-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-align: center;
}

/* 3-column Grid for new Options */
.options-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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