/* Modern service detail — teal / slate theme */
.svc-detail__shell { --svc-accent: #0d9488; --svc-accent2: #059669; --svc-dark: #0f172a; }

.svc-detail__hero {
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 40%, #ffffff 100%);
    border: 1px solid #99f6e4;
    border-radius: 20px;
    padding: 28px 28px 24px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.08);
}
.svc-detail__icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.svc-detail__meta h1 { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin: 0 0 8px; letter-spacing: -0.03em; }
.svc-detail__meta p { color: #475569; font-size: 0.92rem; line-height: 1.55; max-width: 54ch; margin: 0; }
.svc-detail__price {
    margin-left: auto;
    text-align: right;
    padding: 14px 18px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.svc-detail__price strong { display: block; font-size: 1.35rem; color: #0f172a; font-weight: 800; }
.svc-detail__price span { font-size: 0.8rem; color: #64748b; }
.svc-detail__buy-strip {
    width: 100%;
    margin-top: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #ccfbf1;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #0f766e;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.svc-detail__buy-strip strong { color: #0f172a; }
.svc-detail__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; width: 100%; }
.svc-detail__btn-buy {
    padding: 13px 24px;
    background: linear-gradient(135deg, #14b8a6, #059669);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.svc-detail__btn-buy:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(5, 150, 105, 0.4); }
.svc-detail__btn-buy:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.svc-detail__btn-doc {
    padding: 13px 20px;
    background: #fff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    font-family: inherit;
}
.svc-detail__active {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.06);
}
.svc-detail__wallet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    border-radius: 14px;
}
.svc-detail__wallet span { font-size: 0.8rem; opacity: 0.85; }
.svc-detail__wallet strong { font-size: 1.45rem; font-weight: 800; }
.svc-detail__wallet strong small { font-size: 0.75rem; font-weight: 600; opacity: 0.9; }
.svc-detail__detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.svc-detail__detail-grid > div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
}
.svc-detail__detail-grid span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: #94a3b8; margin-bottom: 6px; }
.svc-detail__detail-grid strong { font-size: 0.88rem; color: #0f172a; font-weight: 700; }
.svc-detail__active-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.svc-detail__expiry { font-size: 0.92rem; color: #0f172a; line-height: 1.5; }
.svc-detail__expiry span { color: #64748b; }
.svc-detail__renew {
    padding: 11px 20px;
    background: linear-gradient(135deg, #334155, #0f172a);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
}
.svc-detail__chart-head { margin-bottom: 12px; }
.svc-detail__chart-head h3 { font-size: 0.98rem; font-weight: 800; color: #0f172a; }
.svc-detail__chart-head p { font-size: 0.8rem; color: #64748b; margin-top: 4px; }
.svc-detail__chart {
    height: 168px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 4px 0;
}
.svc-detail__bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.svc-detail__bars { display: flex; gap: 4px; align-items: flex-end; width: 100%; height: calc(100% - 22px); }
.svc-detail__bar { flex: 1; background: linear-gradient(180deg, #2dd4bf, #0d9488); border-radius: 4px 4px 0 0; min-height: 6px; transition: height 0.3s ease; }
.svc-detail__bar-label { font-size: 0.65rem; color: #94a3b8; text-align: center; }

.svc-detail__history {
    margin-top: 22px;
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
}
.svc-detail__history h3 { font-size: 0.95rem; font-weight: 800; color: #0f172a; margin: 0 0 6px; }
.svc-detail__history > p { font-size: 0.8rem; color: #64748b; margin: 0 0 12px; }
.svc-detail__history-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.svc-detail__btn-log {
    padding: 8px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: inherit;
    color: #334155;
}
.svc-detail__btn-log:hover { background: #e2e8f0; }
.svc-detail__table-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 12px; }
.svc-detail__table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.svc-detail__table th { text-align: left; padding: 10px 12px; background: #f8fafc; color: #64748b; font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }
.svc-detail__table td { padding: 10px 12px; border-top: 1px solid #f1f5f9; color: #334155; }
.svc-detail__history-empty { text-align: center; color: #94a3b8 !important; font-size: 0.85rem; padding: 20px !important; }
.svc-detail__badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: #ecfeff;
    color: #0e7490;
    font-size: 0.72rem;
    font-weight: 700;
}

.svc-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}
.svc-modal.open { display: flex; }
.svc-modal__card {
    background: #fff;
    border-radius: 16px;
    padding: 26px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    text-align: center;
}
.svc-modal__card i { font-size: 2.5rem; color: #14b8a6; margin-bottom: 12px; }
.svc-modal__card h3 { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.svc-modal__card p { color: #64748b; font-size: 0.9rem; line-height: 1.5; margin-bottom: 18px; }
.svc-modal__ok {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #14b8a6, #059669);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.svc-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
}
.svc-back-link a:hover { background: #f1f5f9; color: #0f172a; }
