/* Uses StoryHost's existing brand tokens; no extra CSS custom properties. */
.sh-hosting-plans,
.sh-hosting-plans * { box-sizing: border-box; }
.sh-hosting-plans {
    direction: rtl;
    color: var(--text, #4A5572);
    font-family: inherit;
    width: 100%;
}
.sh-hosting-plans [hidden] { display: none !important; }
.sh-hosting-plans .sh-plans__bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 27px;
}
.sh-hosting-plans .sh-plans__bar:empty { display: none; }
.sh-hosting-plans .sh-seg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    border-radius: 13px;
    background: var(--section2, #EEF3FC);
    border: 1px solid var(--border, #E3E8F2);
    max-width: 100%;
}
.sh-hosting-plans .sh-seg button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 0;
    padding: 11px 17px;
    border-radius: 9px;
    color: var(--text, #4A5572);
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    box-shadow: none;
    transition: background .2s ease, color .2s ease;
    white-space: nowrap;
}
.sh-hosting-plans .sh-seg button:hover { background: var(--light-primary, #DCE6FA); color: var(--dark-text, #0B1B3F); }
.sh-hosting-plans .sh-seg button[aria-selected="true"],
.sh-hosting-plans .sh-seg button[aria-pressed="true"] {
    background: white;
    color: var(--primary, #0E3A9C);
    box-shadow: 0 2px 9px color-mix(in srgb, var(--dark-text, #0B1B3F) 10%, transparent);
}
.sh-hosting-plans .sh-seg button:focus-visible,
.sh-hosting-plans .sh-plan__btn:focus-visible { outline: 2px solid var(--primary, #0E3A9C); outline-offset: 3px; }
.sh-hosting-plans .sh-seg button svg { width: 18px; height: 18px; flex-shrink: 0; }
.sh-hosting-plans .sh-seg button em {
    font-style: normal;
    color: var(--green, #16A34A);
    font-size: 10px;
    border-radius: 6px;
    padding: 2px 6px;
    background: color-mix(in srgb, var(--green, #16A34A) 10%, white);
}
.sh-hosting-plans .sh-plans__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.sh-hosting-plans .sh-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 31px 24px 22px;
    border: 1px solid var(--border, #E3E8F2);
    border-radius: 17px;
    background: white;
    box-shadow: 0 7px 26px color-mix(in srgb, var(--dark-text, #0B1B3F) 4%, transparent);
    transition: box-shadow .2s ease, transform .2s ease;
}
.sh-hosting-plans .sh-plan:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px color-mix(in srgb, var(--dark-text, #0B1B3F) 10%, transparent);
}
.sh-hosting-plans .sh-plan.is-featured {
    border: 1.5px solid var(--secondary, #F2B51E);
    box-shadow: 0 7px 30px color-mix(in srgb, var(--secondary, #F2B51E) 14%, transparent);
}
.sh-hosting-plans .sh-plan__badge {
    position: absolute;
    top: -13px;
    right: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    background: var(--secondary, #F2B51E);
    color: var(--dark-text, #0B1B3F);
}
.sh-hosting-plans .sh-plan__tier {
    margin: 0 0 8px;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--dark-text, #0B1B3F);
}
.sh-hosting-plans .sh-plan__for {
    margin: 0 0 25px;
    color: var(--text, #4A5572);
    font-size: 13px;
    line-height: 1.85;
    min-height: 48px;
}
.sh-hosting-plans .sh-plan__price {
    margin: 0 0 23px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: baseline;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border, #E3E8F2);
}
.sh-hosting-plans .sh-plan__price strong {
    color: var(--primary, #0E3A9C);
    font-weight: 850;
    font-size: clamp(25px, 2.5vw, 31px);
    letter-spacing: -.8px;
    line-height: 1.3;
    font-variant-numeric: lining-nums;
    direction: ltr;
    unicode-bidi: isolate;
}
.sh-hosting-plans .sh-plan__price span {
    color: var(--light-text, #8A94AD);
    font-size: 11px;
    white-space: nowrap;
}
.sh-hosting-plans .sh-plan__price i { font-style: normal; }
.sh-hosting-plans .sh-plan__specs {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 0;
    margin: 0 0 28px;
    list-style: none;
}
.sh-hosting-plans .sh-plan__specs li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    color: var(--text, #4A5572);
    font-size: 12px;
    line-height: 1.85;
}
.sh-hosting-plans .sh-plan__specs svg {
    color: var(--green, #16A34A);
    flex: 0 0 17px;
    height: 17px;
    width: 17px;
    margin-top: 3px;
}
.sh-hosting-plans .sh-plan__specs b,
.sh-hosting-plans .sh-plan__specs strong { color: var(--dark-text, #0B1B3F); font-weight: 800; }
.sh-hosting-plans .sh-plan__btn {
    width: 100%;
    min-height: 48px;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    text-decoration: none !important;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 11px 14px;
    background: var(--primary, #0E3A9C);
    color: white;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    transition: background .2s ease, transform .2s ease;
}
.sh-hosting-plans .sh-plan__btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
.sh-hosting-plans a.sh-plan__btn:hover { background: var(--primary-hover, #0A2C78); color: white; }
.sh-hosting-plans .sh-plan__btn.is-gold { background: var(--secondary, #F2B51E); color: var(--dark-text, #0B1B3F); }
.sh-hosting-plans a.sh-plan__btn.is-gold:hover { background: var(--secondary-hover, #D99E0B); color: var(--dark-text, #0B1B3F); }
.sh-hosting-plans .sh-plan__btn.is-disabled { opacity: .55; cursor: not-allowed; }
.sh-hosting-plans .sh-plans__note {
    margin: 24px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--text, #4A5572);
    font-size: 12px;
    text-align: center;
    line-height: 1.8;
}
.sh-hosting-plans .sh-plans__note svg { color: var(--green, #16A34A); width: 20px; height: 20px; flex-shrink: 0; }
.sh-hosting-plans .sh-plans__empty { color: var(--text, #4A5572); padding: 20px; }
@media (max-width: 1024px) {
    .sh-hosting-plans .sh-plans__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sh-hosting-plans .sh-plan__for { min-height: 0; }
}
@media (max-width: 767px) {
    .sh-hosting-plans .sh-plans__bar { align-items: stretch; gap: 11px; }
    .sh-hosting-plans .sh-seg { width: 100%; justify-content: center; }
    .sh-hosting-plans .sh-seg button { flex: 1; padding: 10px 9px; font-size: 12px; }
    .sh-hosting-plans .sh-plans__grid { grid-template-columns: minmax(0, 1fr); gap: 21px; }
    .sh-hosting-plans .sh-plan { padding: 31px 22px 21px; }
    .sh-hosting-plans .sh-plan__price strong { font-size: 29px; }
    .sh-hosting-plans .sh-plans__note { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .sh-hosting-plans .sh-plan,
    .sh-hosting-plans .sh-plan__btn,
    .sh-hosting-plans .sh-seg button { transition: none; }
    .sh-hosting-plans .sh-plan:hover { transform: none; }
}
