/* Subscription Modal & Plan Cards - Aligned with App Design System */

.subscription-modal {
    max-width: 900px;
    width: 90%;
}

.subscription-modal .modal-body {
    padding: 20px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.plan-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 200ms ease;
    box-shadow: var(--shadow-sm);
}

.plan-card:hover {
    border-color: var(--border-2);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.plan-current {
    border-color: rgba(47, 125, 246, 0.4);
    background: linear-gradient(to bottom, var(--accent-surface), rgba(47, 125, 246, 0.02));
}

.plan-current:hover {
    border-color: rgba(47, 125, 246, 0.5);
}

.plan-header {
    margin-bottom: 14px;
}

.plan-name {
    font-size: 20px;
    font-weight: 750;
    margin: 0 0 8px 0;
    color: var(--text);
}

.plan-price {
    font-size: 26px;
    font-weight: 750;
    color: var(--accent-2);
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
}

.plan-duration {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.plan-description {
    color: var(--text-secondary);
    margin-bottom: 14px;
    min-height: 36px;
    font-size: 13px;
    line-height: 1.4;
}

.plan-limits {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    flex-grow: 1;
}

.plan-limits li {
    padding: 7px 0;
    padding-left: 22px;
    position: relative;
    color: var(--text);
    font-size: 13px;
}

.plan-limits li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-2);
    font-weight: 700;
    font-size: 14px;
}

.plan-card button {
    width: 100%;
    padding: 0 16px;
    height: var(--btn-h);
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 160ms ease;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.plan-card .btn-primary {
    background: rgba(0, 52, 116, 0.95);
    color: #fff;
    border-color: rgba(0, 52, 116, 0.95);
    box-shadow: 0 10px 22px rgba(0, 52, 116, 0.16);
}

.plan-card .btn-primary:hover:not(:disabled) {
    background: rgba(0, 52, 116, 1);
    border-color: rgba(0, 52, 116, 1);
    transform: translateY(-1px);
}

.plan-card .btn-secondary {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-secondary);
    border-color: var(--border);
}

.plan-card button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.loading,
.error {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    grid-column: 1 / -1;
    font-size: 14px;
}

.error {
    color: #d32f2f;
}

/* Responsive */
@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .subscription-modal {
        width: 95%;
    }
}

/* Promo Code Section */
.promo-section {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.018), rgba(15, 23, 42, 0.00));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.promo-title {
    font-size: 14px;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 12px;
}

.promo-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.promo-input {
    flex: 1;
    height: var(--btn-h);
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 13.5px;
    transition: border-color 160ms ease;
}

.promo-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus);
}

.promo-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.promo-apply-btn {
    white-space: nowrap;
}

.promo-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.promo-success {
    background: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.26);
}

.promo-error {
    background: rgba(211, 47, 47, 0.12);
    color: #c62828;
    border: 1px solid rgba(211, 47, 47, 0.26);
}

/* Price with discount */
.plan-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.price-original {
    font-size: 16px;
    color: var(--text-secondary);
    text-decoration: line-through;
    font-weight: 400;
}

.price-discounted {
    font-size: 26px;
    font-weight: 750;
    color: #2e7d32;
}