/* DigiSEO Pricing modal — dock styles in digiseo-user-dock.css */

/* Modal */
.digiseo-pricing-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}
.digiseo-pricing-backdrop.is-open {
    display: flex;
}
.digiseo-pricing-modal {
    width: min(1180px, 100%);
    max-height: min(92vh, 900px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid rgba(0, 230, 118, 0.25);
    background: linear-gradient(165deg, #0a1228 0%, #050b18 45%, #030712 100%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    color: #e2e8f0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.digiseo-pricing-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    flex-shrink: 0;
}
.digiseo-pricing-head h2 {
    margin: 0 0 4px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}
.digiseo-pricing-head p {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
}
.digiseo-pricing-close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.digiseo-pricing-close:hover {
    color: #fff;
    border-color: rgba(0, 230, 118, 0.45);
    color: #00e676;
}

.digiseo-pricing-toolbar {
    padding: 14px 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    flex-shrink: 0;
}
.digiseo-toggle-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    background: rgba(15, 23, 42, 0.6);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.15);
}
.digiseo-toggle-btn {
    padding: 8px 14px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.digiseo-toggle-btn.is-active {
    background: rgba(0, 230, 118, 0.22);
    color: #00e676;
    box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.35);
}
.digiseo-coupon-wrap {
    flex: 1 1 200px;
    min-width: 0;
}
.digiseo-coupon-wrap label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.digiseo-coupon-wrap input {
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.55);
    color: #f1f5f9;
    font-family: inherit;
    font-size: 0.88rem;
}
.digiseo-coupon-wrap input::placeholder {
    color: #64748b;
}
.digiseo-coupon-wrap input:focus {
    outline: 2px solid rgba(0, 230, 118, 0.35);
    border-color: rgba(0, 230, 118, 0.5);
}

.digiseo-pricing-scroll {
    overflow-y: auto;
    padding: 16px 18px 22px;
    flex: 1 1 auto;
}
.digiseo-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
@media (max-width: 1024px) {
    .digiseo-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .digiseo-pricing-grid {
        grid-template-columns: 1fr;
    }
}

.digiseo-plan-card {
    position: relative;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.55);
    padding: 16px 14px 14px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.digiseo-plan-card.is-popular {
    border-color: rgba(0, 230, 118, 0.55);
    box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.25), 0 12px 36px rgba(0, 230, 118, 0.12);
}
.digiseo-plan-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #00c264, #00a050);
    color: #04140a;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.digiseo-plan-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 8px 0 6px;
}
.digiseo-plan-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #00e676;
    margin-bottom: 2px;
}
.digiseo-plan-per {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 12px;
}
.digiseo-plan-byok {
    font-size: 0.78rem;
    color: #fbbf24;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
}
.digiseo-plan-card.is-free-trial {
    border-color: rgba(251, 191, 36, 0.35);
}
.digiseo-plan-meta {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-bottom: 10px;
    line-height: 1.45;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.digiseo-plan-meta strong {
    color: #fff;
    font-weight: 700;
}
.digiseo-plan-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.digiseo-plan-meta-row:last-child {
    margin-bottom: 0;
}
.digiseo-plan-meta-icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    opacity: 0.85;
    font-size: 0.9rem;
}
.digiseo-plan-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    font-size: 0.78rem;
}
.digiseo-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
    color: #cbd5e1;
    line-height: 1.35;
}
.digiseo-plan-features .ok {
    color: #00e676;
    flex-shrink: 0;
    font-weight: 800;
}
.digiseo-plan-features .no {
    color: #f87171;
    flex-shrink: 0;
    font-weight: 800;
}
.digiseo-plan-buy,
a.digiseo-plan-buy {
    margin-top: 14px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 230, 118, 0.55);
    background: rgba(0, 230, 118, 0.12);
    color: #00e676;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}
.digiseo-plan-buy:hover,
a.digiseo-plan-buy:hover {
    background: rgba(0, 230, 118, 0.22);
    transform: translateY(-1px);
    color: #00e676;
    text-decoration: none;
}

.digiseo-pricing-foot {
    padding: 10px 22px 16px;
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

/* Full-page /pricing — same shell as upgrade modal */
.digiseo-pricing-page-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}
.digiseo-pricing-page-shell {
    border-radius: 18px;
    border: 1px solid rgba(0, 230, 118, 0.25);
    background: linear-gradient(165deg, #0a1228 0%, #050b18 45%, #030712 100%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.digiseo-pricing-page-shell .digiseo-pricing-head h1 {
    margin: 0 0 4px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}
.digiseo-pricing-scroll--page {
    max-height: none;
    overflow: visible;
}
.digiseo-plan-card.is-current-plan {
    border-color: rgba(0, 230, 118, 0.75);
    box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.2);
}
.digiseo-plan-card.is-current-plan .digiseo-plan-buy {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.35);
    color: #94a3b8;
    cursor: default;
    pointer-events: none;
}
.digiseo-plan-badge--current {
    background: linear-gradient(135deg, #334155, #475569);
    color: #e2e8f0;
}
