/* === License Grid ===
 * Intent: visually align license cards with product cards for a consistent shop flow.
 */

/* License Grid Container */
.license-options {
    /* Responsive grid without many breakpoints. */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 2rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* License Card */
.license-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Spotlight Glow Effect on Hover */
.license-card::before {
    /* Gradient border overlay using mask-composite (keeps inner content intact). */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.license-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(99, 102, 241, 0.4);
}

.license-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, var(--accent-primary), transparent 60%);
}

/* License Card Content */
.license-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
}

.license-card p strong {
    color: var(--text-main);
    font-size: 1.2rem;
}

/* Price Styling */
.license-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 1rem 0;
    letter-spacing: -0.02em;
}

/* AGB Form Area */
.license-card form {
    /* Keep the CTA anchored to the bottom of the card. */
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.license-card form p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem !important;
}

.license-card form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.license-card form label {
    cursor: pointer;
}

.license-card form label a {
    color: var(--accent-primary);
}

.license-card form label a:hover {
    text-decoration: underline;
}

/* Button in Card */
.license-card .btn {
    align-self: center;
    margin-top: 0.5rem;
    width: 100%;
}

/* Responsive */
@media (max-width: 600px) {
    .license-options {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }
}