/* Calculator page — Omni-inspired UI */

.calc-page {
    padding: 1.5rem 0 3rem;
    background: #f5f7fa;
}

.calc-breadcrumb {
    margin-bottom: 1.25rem;
}

.calc-breadcrumb .breadcrumb-item a {
    color: #288dfd;
    font-weight: 600;
    text-decoration: none;
}

.calc-breadcrumb .breadcrumb-item.active {
    color: #8a96a8;
    font-weight: 600;
}

/* Main widget card */
.calc-widget {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    padding: 1.75rem 1.75rem 2rem;
    margin-bottom: 1.5rem;
}

.calc-widget-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f3f7;
}

.calc-widget-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.calc-widget-headings {
    flex: 1;
    min-width: 0;
}

.calc-category-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #288dfd;
    background: rgba(40, 141, 253, 0.1);
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    margin-bottom: 0.4rem;
}

.calc-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1e3a5f;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}

.calc-subtitle {
    font-size: 0.95rem;
    color: #8a96a8;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

/* Input grid */
.calc-inputs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.calc-field-full {
    grid-column: 1 / -1;
}

.calc-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 800;
    color: #2d3a4a;
    margin-bottom: 0.5rem;
}

.calc-field-unit {
    font-size: 0.8rem;
    font-weight: 700;
    color: #8a96a8;
    background: #f0f3f7;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

.calc-field-input {
    width: 100%;
    height: 50px;
    padding: 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    color: #1e3a5f;
    background: #f8fafc;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.calc-field-input:focus {
    background: #fff;
    border-color: #288dfd;
    box-shadow: 0 0 0 3px rgba(40, 141, 253, 0.12);
}

select.calc-field-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a96a8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.calc-field-hint {
    font-size: 0.8rem;
    color: #8a96a8;
    margin: 0.35rem 0 0;
    font-weight: 600;
}

/* Range slider */
.calc-range-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calc-range-wrap .form-range {
    flex: 1;
    height: 6px;
    accent-color: #288dfd;
}

.calc-range-value {
    min-width: 48px;
    text-align: center;
    font-weight: 800;
    color: #288dfd;
    background: rgba(40, 141, 253, 0.1);
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Checkbox */
.calc-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: #2d3a4a;
    padding: 0.75rem 0;
}

.calc-checkbox-wrap input { display: none; }

.calc-checkbox-ui {
    width: 22px;
    height: 22px;
    border: 2px solid #e8ecf1;
    border-radius: 6px;
    background: #f8fafc;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s;
}

.calc-checkbox-wrap input:checked + .calc-checkbox-ui {
    background: #288dfd;
    border-color: #288dfd;
}

.calc-checkbox-wrap input:checked + .calc-checkbox-ui::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Toolbar */
.calc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid #f0f3f7;
    border-bottom: 1px solid #f0f3f7;
    margin-bottom: 1.5rem;
}

.calc-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    color: #5a6a7e;
    background: #fff;
    border: 1.5px solid #e8ecf1;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.15s;
}

.calc-tool-btn i {
    font-size: 0.9rem;
    color: #8a96a8;
}

.calc-tool-btn:hover {
    border-color: #288dfd;
    color: #288dfd;
    background: #f0f6ff;
}

.calc-tool-btn:hover i {
    color: #288dfd;
}

.calc-tool-btn.is-active {
    background: #288dfd;
    border-color: #288dfd;
    color: #fff;
}

.calc-tool-btn.is-active i {
    color: #fff;
}

.calc-share-wrap {
    position: relative;
}

.calc-share-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 200;
    min-width: 280px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(30, 58, 95, 0.15);
    padding: 0.85rem;
}

.calc-share-panel[hidden] {
    display: none;
}

.calc-share-panel-title {
    margin: 0 0 0.5rem;
    padding: 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a96a8;
}

.calc-share-panel-title:not(:first-child) {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eef2f6;
}

.calc-share-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

.calc-share-opt {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2d3a4a;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.calc-share-opt i {
    width: 16px;
    text-align: center;
    font-size: 0.95rem;
}

.calc-share-opt:hover {
    border-color: #288dfd;
    background: #f0f6ff;
    color: #288dfd;
}

.calc-share-opt.is-whatsapp:hover { border-color: #25d366; background: #ecfdf3; color: #128c7e; }
.calc-share-opt.is-whatsapp i { color: #25d366; }

.calc-share-opt.is-facebook:hover { border-color: #1877f2; background: #eff6ff; color: #1877f2; }
.calc-share-opt.is-facebook i { color: #1877f2; }

.calc-share-opt.is-twitter:hover { border-color: #14171a; background: #f4f4f5; color: #14171a; }
.calc-share-opt.is-twitter i { color: #14171a; }

.calc-share-opt.is-linkedin:hover { border-color: #0a66c2; background: #eff6ff; color: #0a66c2; }
.calc-share-opt.is-linkedin i { color: #0a66c2; }

.calc-share-opt.is-pdf:hover { border-color: #e74c3c; background: #fef2f2; color: #c0392b; }
.calc-share-opt.is-pdf i { color: #e74c3c; }

.calc-share-opt:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Results */
.calc-results-block {
    margin-bottom: 1rem;
}

.calc-results-heading {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e3a5f;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calc-results-heading i {
    color: #288dfd;
    font-size: 0.95rem;
}

.calc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.calc-result-card {
    background: linear-gradient(145deg, #3b9bfd 0%, #288dfd 100%);
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    color: #fff;
    box-shadow: 0 6px 20px rgba(40, 141, 253, 0.22);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calc-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(40, 141, 253, 0.3);
}

.calc-result-card.is-primary {
    background: linear-gradient(145deg, #1d6fd8 0%, #1557b0 100%);
    grid-column: span 1;
}

.calc-result-card.is-updated {
    animation: resultPulse 0.4s ease;
}

@keyframes resultPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.calc-result-label {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.9;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.calc-result-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    word-break: break-word;
}

.calc-result-unit {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 0.25rem;
    font-weight: 600;
}

.calc-result-placeholder {
    opacity: 0.5;
}

/* Secondary result card colors */
.calc-result-card:nth-child(2) {
    background: linear-gradient(145deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.calc-result-card:nth-child(3) {
    background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.calc-result-card:nth-child(4) {
    background: linear-gradient(145deg, #a78bfa 0%, #8b5cf6 100%);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
}

/* Steps */
.calc-steps-block {
    background: #f8fafc;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-top: 1rem;
    border: 1px solid #e8ecf1;
}

.calc-steps-heading {
    font-size: 0.95rem;
    font-weight: 800;
    color: #2d3a4a;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calc-steps-heading i { color: #288dfd; }

.calc-steps-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #5a6a7e;
    font-weight: 600;
    font-size: 0.9rem;
}

.calc-steps-list li {
    margin-bottom: 0.4rem;
}

.calc-chart-block {
    margin-top: 1.25rem;
    padding: 1.25rem 1.25rem 1.5rem;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e8ecf1;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    overflow: visible;
}

.calc-chart-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.calc-chart-heading {
    font-size: 0.95rem;
    font-weight: 800;
    color: #2d3a4a;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.calc-chart-heading i {
    color: #288dfd;
    font-size: 0.9rem;
}

.calc-chart-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 280px;
    margin: 0 auto;
}

.calc-chart-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
}

.calc-chart-center {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    line-height: 1.2;
    width: 45%;
}

.calc-chart-center-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e3a5f;
}

.calc-chart-center-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #8a96a8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* Article */
.calc-article {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e8ecf1;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.calc-article h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e3a5f;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
}

.calc-article h2:first-child { margin-top: 0; }

.calc-article p, .calc-article li {
    color: #5a6a7e;
    font-weight: 600;
    line-height: 1.7;
}

/* Conversion / reference tables in article content */
.calc-table-wrap {
    margin: 1.25rem 0 1.75rem;
    max-width: 560px;
    border-radius: 14px;
    border: 1px solid #e8ecf1;
    overflow: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 18px rgba(40, 141, 253, 0.08);
    background: #fff;
}

.calc-article .calc-ref-table,
.calc-article table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
}

.calc-article .calc-ref-table thead th,
.calc-article table thead th,
.calc-article table > tr:first-child > th,
.calc-article table > tbody > tr:first-child > th,
.calc-article table:not(:has(th)) > tr:first-child > td,
.calc-article table:not(:has(th)) > tbody > tr:first-child > td {
    background: linear-gradient(135deg, #288dfd 0%, #1d6fd8 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.85rem 1.15rem;
    border: none;
    text-align: left;
    white-space: nowrap;
}

.calc-article .calc-ref-table tbody td,
.calc-article table tbody td {
    padding: 0.72rem 1.15rem;
    border-bottom: 1px solid #eef2f7;
    color: #334155;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    transition: background 0.15s ease, color 0.15s ease;
}

.calc-article .calc-ref-table tbody tr:nth-child(even) td,
.calc-article table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.calc-article .calc-ref-table tbody tr:hover td,
.calc-article table tbody tr:hover td {
    background: #eff6ff;
}

.calc-article .calc-ref-table tbody tr:hover td:first-child,
.calc-article table tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 #288dfd;
}

.calc-article .calc-ref-table tbody tr:last-child td,
.calc-article table tbody tr:last-child td {
    border-bottom: none;
}

.calc-article .calc-ref-table tbody td:first-child,
.calc-article table tbody td:first-child {
    color: #1e3a5f;
    font-weight: 700;
}

.calc-article .calc-ref-table tbody td:last-child,
.calc-article table tbody td:last-child {
    color: #2563eb;
    font-weight: 700;
}

.calc-formula-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f4fd 100%);
    border-left: 4px solid #288dfd;
    border-radius: 0 14px 14px 0;
    padding: 1.25rem 1.5rem;
}

.calc-formula-box i {
    font-size: 1.5rem;
    color: #288dfd;
}

.calc-formula-box code {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a5f;
    background: none;
}

.calc-faq {
    margin-top: 1.75rem;
}

.calc-faq .accordion-item {
    border: 1px solid #e8ecf1;
    border-radius: 12px !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.calc-faq .accordion-button {
    font-weight: 700;
    color: #2d3a4a;
    background: #f8fafc;
    box-shadow: none !important;
}

.calc-faq .accordion-button:not(.collapsed) {
    background: #f0f6ff;
    color: #288dfd;
}

/* User reviews */
.calc-reviews {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid #e8ecf1;
}

.calc-reviews h2 {
    margin-top: 0;
}

.calc-reviews-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f6ff 100%);
    border: 1px solid #e8ecf1;
    border-radius: 14px;
}

.calc-reviews-score {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.calc-reviews-avg {
    font-size: 2rem;
    font-weight: 800;
    color: #1e3a5f;
    line-height: 1;
}

.calc-reviews-stars,
.calc-review-stars-sm {
    display: inline-flex;
    gap: 0.15rem;
    color: #f59e0b;
    font-size: 0.95rem;
}

.calc-review-stars-sm {
    font-size: 0.75rem;
}

.calc-reviews-stars .calc-star-empty,
.calc-review-stars-sm .calc-star-empty {
    color: #d1d5db;
}

.calc-reviews-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #8a96a8;
    width: 100%;
}

.calc-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calc-review-card {
    padding: 1rem 1.15rem;
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.calc-review-card:hover {
    border-color: #c7d9f5;
    box-shadow: 0 2px 10px rgba(40, 141, 253, 0.08);
}

.calc-review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.calc-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #288dfd 0%, #1d6fd8 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.calc-review-meta {
    flex: 1;
    min-width: 0;
}

.calc-review-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #1e3a5f;
    line-height: 1.3;
}

.calc-review-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: #8a96a8;
    white-space: nowrap;
    flex-shrink: 0;
}

.calc-review-text {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5a6a7e;
    line-height: 1.65;
}

/* Author box */
.calc-author-card .calc-side-title i {
    color: #288dfd;
    margin-right: 0.35rem;
}

.calc-author-body {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.calc-author-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e8ecf1;
    box-shadow: 0 2px 10px rgba(40, 141, 253, 0.15);
    flex-shrink: 0;
}

.calc-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.calc-author-name {
    font-size: 1rem;
    font-weight: 800;
    color: #1e3a5f;
    line-height: 1.25;
}

.calc-author-role {
    font-size: 0.8rem;
    font-weight: 700;
    color: #288dfd;
    line-height: 1.3;
}

.calc-author-bio {
    font-size: 0.82rem;
    font-weight: 600;
    color: #5a6a7e;
    line-height: 1.6;
    margin: 0 0 0.85rem;
}

.calc-author-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.calc-author-stats li {
    font-size: 0.78rem;
    font-weight: 700;
    color: #8a96a8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calc-author-stats i {
    width: 16px;
    text-align: center;
    color: #288dfd;
    font-size: 0.75rem;
}

/* Sidebar */
.calc-sidebar {
    position: sticky;
    top: 130px;
}

.calc-side-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.calc-side-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1e3a5f;
    margin-bottom: 1rem;
}

.calc-side-desc {
    font-size: 0.85rem;
    color: #8a96a8;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.calc-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calc-related-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f3f7;
    transition: padding-left 0.15s;
}

.calc-related-list li:last-child .calc-related-link {
    border-bottom: none;
}

.calc-related-link:hover {
    padding-left: 4px;
}

.calc-related-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.calc-related-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2d3a4a;
    line-height: 1.3;
}

.calc-related-link:hover .calc-related-text {
    color: #288dfd;
}

.calc-embed-code {
    width: 100%;
    font-size: 0.75rem;
    font-family: monospace;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    padding: 0.65rem;
    background: #f8fafc;
    resize: none;
    color: #5a6a7e;
}

.calc-embed-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.65rem;
    padding: 0.55rem;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    color: #288dfd;
    background: rgba(40, 141, 253, 0.08);
    border: 1.5px solid rgba(40, 141, 253, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.calc-embed-copy:hover {
    background: rgba(40, 141, 253, 0.15);
}

.calc-embed-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.calc-embed-actions .calc-embed-copy {
    flex: 1;
    margin-top: 0;
}

.calc-embed-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1;
    padding: 0.55rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #5a6a7e;
    background: #f8fafc;
    border: 1.5px solid #e8ecf1;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.calc-embed-preview:hover {
    background: #eef2f7;
    border-color: #d0d8e4;
    color: #2d3a4a;
}

/* Embed iframe page */
.page-embed {
    margin: 0;
    padding: 0;
    background: #fff;
    min-height: 100vh;
}

.calc-embed-page {
    padding: 1rem;
    max-width: 720px;
    margin: 0 auto;
}

.calc-widget-embed {
    box-shadow: none;
    border: 1px solid #e8ecf1;
}

.calc-widget-embed .calc-toolbar {
    justify-content: flex-start;
}

.calc-embed-powered {
    text-align: center;
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
}

.calc-embed-powered a {
    color: #8a96a8;
    text-decoration: none;
    font-weight: 600;
}

.calc-embed-powered a:hover {
    color: #288dfd;
}

.calc-toast-embed {
    bottom: 1rem;
}

.calc-side-meta {
    font-size: 0.85rem;
    color: #8a96a8;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
}

/* Toast */
.calc-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e3a5f;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.calc-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Print */
@media print {
    .calc-toolbar, .calc-sidebar, .omni-inner-header, .footer-v2, .calc-breadcrumb, .calc-toast { display: none !important; }
    .calc-widget { box-shadow: none; border: 1px solid #ccc; }
}

/* Responsive */
@media (max-width: 767.98px) {
    .calc-inputs-grid {
        grid-template-columns: 1fr;
    }

    .calc-widget {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .calc-title {
        font-size: 1.35rem;
    }

    .calc-result-value {
        font-size: 1.45rem;
    }

    .calc-toolbar {
        gap: 0.35rem;
    }

    .calc-tool-btn span {
        display: none;
    }

    .calc-tool-btn {
        padding: 0.55rem 0.7rem;
    }

    .calc-share-panel {
        left: auto;
        right: 0;
        min-width: 260px;
    }

    .calc-sidebar {
        position: static;
    }

    .calc-table-wrap {
        max-width: 100%;
    }
}
