/* =========================================================
   BDGoldPrice — UNIVERSAL TOOL DESIGN SYSTEM
   BLUE + WHITE THEME

   IMPORTANT:
   - Existing interface/design preserved.
   - No redesign.
   - No feature removal.
   - Only visual color system changed.
   - Framework structure remains unchanged.
   ========================================================= */


/* =========================================================
   TOOL PAGE VARIABLES
========================================================= */

.tool-page {

    --tool-primary: #2563eb;
    --tool-primary-light: #60a5fa;
    --tool-primary-dark: #1d4ed8;

    --tool-bg: #ffffff;
    --tool-surface: #ffffff;
    --tool-surface-2: #f8fafc;
    --tool-surface-3: #eff6ff;

    --tool-border: rgba(15, 23, 42, 0.08);
    --tool-border-strong: rgba(15, 23, 42, 0.14);

    --tool-text: #0f172a;
    --tool-text-soft: #334155;
    --tool-text-muted: #64748b;

    --tool-success: #15803d;
    --tool-danger: #dc2626;

    --tool-radius: 18px;
    --tool-radius-sm: 12px;

    --tool-shadow:
        0 20px 60px rgba(15, 23, 42, 0.08);

    --tool-transition: 180ms ease;

    color: var(--tool-text);
    color-scheme: light;

    box-sizing: border-box;
}


.tool-page *,
.tool-page *::before,
.tool-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   DARK THEME
========================================================= */

[data-theme="dark"] .tool-page {

    --tool-bg: #0b1220;
    --tool-surface: #111827;
    --tool-surface-2: #172033;
    --tool-surface-3: #1e293b;

    --tool-border: rgba(255, 255, 255, 0.08);
    --tool-border-strong: rgba(255, 255, 255, 0.14);

    --tool-text: #f8fafc;
    --tool-text-soft: #cbd5e1;
    --tool-text-muted: #94a3b8;

    --tool-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);

    color-scheme: dark;
}


/* =========================================================
   HERO
========================================================= */

.tool-hero {

    padding: 46px 0 30px;

    text-align: center;
}


.tool-hero-content {

    width: 100%;

    max-width: 820px;

    margin: 0 auto;
}


.tool-eyebrow,
.tool-label {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: var(--tool-primary);

    font-size: 0.74rem;

    font-weight: 800;

    letter-spacing: 0.11em;

    line-height: 1.2;

    text-transform: uppercase;
}


.tool-hero h1 {

    margin: 10px 0 12px;

    color: var(--tool-text);

    font-size:
        clamp(2.2rem, 5vw, 3.6rem);

    line-height: 1.04;

    font-weight: 850;

    letter-spacing: -0.04em;
}


.tool-hero p {

    max-width: 720px;

    margin: 0 auto;

    color: var(--tool-text-muted);

    font-size: 0.98rem;

    line-height: 1.7;
}


/* =========================================================
   TOOL AREA
========================================================= */

.tool-section {

    padding: 8px 0 52px;
}


.tool-layout {

    width: 100%;

    max-width: 1120px;

    margin: 0 auto;
}


.tool-card {

    position: relative;

    padding: 26px;

    background:

        linear-gradient(
            145deg,
            rgba(37, 99, 235, 0.025),
            rgba(255, 255, 255, 0.9)
        ),

        var(--tool-surface);

    border:
        1px solid var(--tool-border-strong);

    border-radius: 22px;

    box-shadow: var(--tool-shadow);

    overflow: hidden;
}


[data-theme="dark"] .tool-card {

    background:

        linear-gradient(
            145deg,
            rgba(37, 99, 235, 0.06),
            rgba(255, 255, 255, 0.01)
        ),

        var(--tool-surface);
}


/* =========================================================
   CURRENT PRICE CARD
========================================================= */

.tool-price-card {

    position: relative;

    padding: 22px;

    background:

        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.09),
            rgba(37, 99, 235, 0.025)
        ),

        var(--tool-surface-2);

    border:
        1px solid rgba(37, 99, 235, 0.24);

    border-radius: 16px;
}


.tool-price-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;
}


.tool-price-header h2 {

    margin: 4px 0 0;

    color: var(--tool-text);

    font-size: 1.35rem;

    line-height: 1.2;

    font-weight: 800;
}


.tool-live-indicator {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    flex: 0 0 auto;

    padding: 6px 10px;

    color: var(--tool-success);

    background:
        rgba(21, 128, 61, 0.07);

    border:
        1px solid rgba(21, 128, 61, 0.20);

    border-radius: 999px;

    font-size: 0.68rem;

    font-weight: 800;

    letter-spacing: 0.08em;
}


.tool-live-indicator > span {

    width: 7px;

    height: 7px;

    flex: 0 0 7px;

    background: currentColor;

    border-radius: 50%;

    box-shadow:
        0 0 0 4px rgba(21, 128, 61, 0.07);
}


.tool-price-content {

    margin-top: 18px;
}


.tool-price-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.tool-price-item {

    min-width: 0;

    padding: 13px 15px;

    background:
        rgba(37, 99, 235, 0.025);

    border:
        1px solid var(--tool-border);

    border-radius: 11px;
}


[data-theme="dark"] .tool-price-item {

    background:
        rgba(255, 255, 255, 0.025);
}


.tool-price-label {

    display: block;

    margin-bottom: 5px;

    color: var(--tool-text-muted);

    font-size: 0.74rem;

    line-height: 1.4;
}


.tool-price-value {

    display: block;

    color: var(--tool-text);

    font-size: 1.04rem;

    font-weight: 800;

    overflow-wrap: anywhere;
}


/* =========================================================
   CALCULATOR
========================================================= */

.tool-calculator {

    margin-top: 28px;
}


.tool-section-heading {

    margin-bottom: 20px;
}


.tool-section-heading h2,
.tool-section-heading h3 {

    margin: 5px 0 7px;

    color: var(--tool-text);

    line-height: 1.2;

    font-weight: 800;
}


.tool-section-heading h2 {

    font-size:
        clamp(1.45rem, 3vw, 1.9rem);
}


.tool-section-heading h3 {

    font-size:
        clamp(1.4rem, 3vw, 1.8rem);
}


.tool-section-heading p {

    max-width: 780px;

    margin: 0;

    color: var(--tool-text-muted);

    font-size: 0.9rem;

    line-height: 1.65;
}


/* =========================================================
   FORM
========================================================= */

.tool-form {

    display: flex;

    flex-direction: column;

    gap: 18px;
}


.tool-field {

    display: flex;

    flex-direction: column;

    gap: 7px;

    min-width: 0;
}


.tool-field > label {

    color: var(--tool-text-soft);

    font-size: 0.8rem;

    font-weight: 750;

    letter-spacing: 0.015em;
}


.tool-field-help {

    color: var(--tool-text-muted);

    font-size: 0.72rem;

    line-height: 1.55;
}


/* =========================================================
   INPUTS
========================================================= */

.tool-page input,
.tool-page select {

    width: 100%;

    min-width: 0;

    min-height: 48px;

    padding: 12px 14px;

    color: var(--tool-text);

    background:
        var(--tool-surface-2);

    border:
        1px solid var(--tool-border-strong);

    border-radius: 10px;

    outline: none;

    font: inherit;

    font-size: 0.88rem;

    line-height: 1.4;

    transition:
        border-color var(--tool-transition),
        box-shadow var(--tool-transition),
        background var(--tool-transition),
        color var(--tool-transition);
}


.tool-page select {

    cursor: pointer;

    appearance: auto;

    -webkit-appearance: auto;
}


.tool-page input::placeholder {

    color: var(--tool-text-muted);

    opacity: 1;
}


.tool-page input:hover,
.tool-page select:hover {

    border-color:
        rgba(37, 99, 235, 0.34);
}


.tool-page input:focus,
.tool-page select:focus {

    border-color:
        var(--tool-primary);

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.12);
}


.tool-page input:disabled,
.tool-page select:disabled {

    opacity: 0.55;

    cursor: not-allowed;
}


.tool-page input:read-only {

    cursor: default;
}


/* =========================================================
   INPUT WRAPPER
========================================================= */

.tool-input-wrapper {

    position: relative;

    display: flex;

    align-items: stretch;

    width: 100%;

    min-width: 0;
}


.tool-input-wrapper input {

    min-width: 0;
}


.tool-input-unit {

    position: absolute;

    right: 14px;

    color: var(--tool-text-muted);

    font-size: 0.78rem;

    font-weight: 750;

    pointer-events: none;

    user-select: none;
}


.tool-input-unit-select {

    width: auto !important;

    min-width: 110px;

    flex: 0 0 auto;

    margin-left: -1px;

    border-top-left-radius: 0 !important;

    border-bottom-left-radius: 0 !important;

    background:
        var(--tool-surface-3) !important;
}


.tool-input-wrapper input +
.tool-input-unit-select {

    border-left-color:
        var(--tool-border-strong);
}


/* =========================================================
   SOURCE SWITCH
========================================================= */

.tool-source-switch {

    display: inline-flex;

    align-items: center;

    width: fit-content;

    min-height: 42px;

    padding: 3px;

    background:
        var(--tool-surface-3);

    border:
        1px solid var(--tool-border-strong);

    border-radius: 999px;

    overflow: hidden;
}


.tool-source-option {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 120px;

    min-height: 34px;

    padding: 0 14px;

    color: var(--tool-text-muted);

    border-radius: 999px;

    font-size: 0.73rem;

    font-weight: 750;

    cursor: pointer;

    transition:
        background var(--tool-transition),
        color var(--tool-transition),
        box-shadow var(--tool-transition);
}


.tool-source-option input {

    position: absolute;

    width: 1px;

    height: 1px;

    margin: -1px;

    padding: 0;

    opacity: 0;

    pointer-events: none;

    overflow: hidden;

    clip: rect(0 0 0 0);

    clip-path: inset(50%);
}


.tool-source-option:hover {

    color: var(--tool-text);
}


/* =========================================================
   SOURCE SWITCH ACTIVE
========================================================= */

@supports selector(.tool-source-option:has(input:checked)) {

    .tool-source-option:has(input:checked) {

        color: #ffffff;

        background:

            linear-gradient(
                135deg,
                var(--tool-primary-light),
                var(--tool-primary)
            );

        box-shadow:
            0 3px 12px
            rgba(37, 99, 235, 0.20);
    }


    .tool-source-option:has(input:checked):hover {

        color: #ffffff;
    }

}


.tool-source-option.is-active {

    color: #ffffff;

    background:

        linear-gradient(
            135deg,
            var(--tool-primary-light),
            var(--tool-primary)
        );

    box-shadow:
        0 3px 12px
        rgba(37, 99, 235, 0.20);
}


.tool-source-option.is-active:hover {

    color: #ffffff;
}


/* =========================================================
   PRICE SUMMARY
========================================================= */

.tool-price-summary {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;

    margin-top: 14px;
}


.tool-price-summary-item {

    min-width: 0;

    padding: 12px 14px;

    background:
        rgba(37, 99, 235, 0.025);

    border:
        1px solid var(--tool-border);

    border-radius: 11px;
}


[data-theme="dark"] .tool-price-summary-item {

    background:
        rgba(255, 255, 255, 0.025);
}


.tool-price-summary-item span {

    display: block;

    margin-bottom: 5px;

    color: var(--tool-text-muted);

    font-size: 0.7rem;

    line-height: 1.4;
}


.tool-price-summary-item strong {

    display: block;

    color: var(--tool-text);

    font-size: 0.88rem;

    font-weight: 800;

    overflow-wrap: anywhere;
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.tool-actions {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 2px;

    width: 100%;
}


/* =========================================================
   STRONG BUTTON RESET
========================================================= */

.tool-page .tool-primary-button,
.tool-page .tool-secondary-button {

    position: relative;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    width: auto !important;

    max-width: 100% !important;

    height: auto !important;

    max-height: 60px !important;

    min-height: 46px !important;

    flex: 0 0 auto !important;

    margin: 0 !important;

    padding: 0 20px !important;

    box-sizing: border-box !important;

    border-radius: 10px;

    font: inherit;

    font-size: 0.84rem;

    font-weight: 800;

    line-height: 1.2;

    text-align: center;

    cursor: pointer;

    appearance: none;

    -webkit-appearance: none;

    text-decoration: none;

    white-space: nowrap;

    transition:
        transform var(--tool-transition),
        box-shadow var(--tool-transition),
        background var(--tool-transition),
        border-color var(--tool-transition),
        color var(--tool-transition);
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.tool-page .tool-primary-button {

    color: #ffffff !important;

    background:

        linear-gradient(
            135deg,
            var(--tool-primary-light),
            var(--tool-primary)
        ) !important;

    border:
        1px solid
        rgba(37, 99, 235, 0.70) !important;

    box-shadow:
        0 7px 22px
        rgba(37, 99, 235, 0.16);
}


/* =========================================================
   SECONDARY BUTTON
========================================================= */

.tool-page .tool-secondary-button {

    color: var(--tool-text) !important;

    background: transparent !important;

    border:
        1px solid var(--tool-border-strong) !important;
}


/* =========================================================
   BUTTON HOVER
========================================================= */

.tool-page .tool-primary-button:hover,
.tool-page .tool-secondary-button:hover {

    transform:
        translateY(-1px);
}


.tool-page .tool-primary-button:hover {

    color: #ffffff !important;

    background:

        linear-gradient(
            135deg,
            #60a5fa,
            #1d4ed8
        ) !important;

    box-shadow:
        0 10px 28px
        rgba(37, 99, 235, 0.23);
}


.tool-page .tool-secondary-button:hover {

    color: var(--tool-primary) !important;

    border-color:
        rgba(37, 99, 235, 0.40) !important;

    background:
        rgba(37, 99, 235, 0.05) !important;
}


/* =========================================================
   BUTTON ACTIVE
========================================================= */

.tool-page .tool-primary-button:active,
.tool-page .tool-secondary-button:active {

    transform:
        translateY(0);
}


/* =========================================================
   BUTTON FOCUS
========================================================= */

.tool-page .tool-primary-button:focus-visible,
.tool-page .tool-secondary-button:focus-visible {

    outline: none;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.16);
}


/* =========================================================
   ERROR
========================================================= */

.tool-error {

    min-height: 0;

    color:
        var(--tool-danger);

    font-size: 0.8rem;

    line-height: 1.5;
}


.tool-error:empty {

    display: none;
}


/* =========================================================
   RESULT CARD
========================================================= */

.tool-result-card {

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    margin-top: 22px;

    padding: 28px 24px;

    text-align: center;

    background:

        radial-gradient(
            circle at 50% 0%,
            rgba(37, 99, 235, 0.12),
            transparent 55%
        ),

        linear-gradient(
            145deg,
            rgba(37, 99, 235, 0.07),
            rgba(255, 255, 255, 0.012)
        ),

        var(--tool-surface-2);

    border:
        1px solid
        rgba(37, 99, 235, 0.24);

    border-radius: 16px;

    overflow: hidden;
}


.tool-result-card[hidden] {

    display: none !important;
}


.tool-result-label {

    color:
        var(--tool-primary);

    font-size: 0.68rem;

    font-weight: 850;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.tool-result-value {

    margin-top: 7px;

    color: var(--tool-text);

    font-size:
        clamp(2.2rem, 5vw, 3.4rem);

    line-height: 1;

    font-weight: 900;

    letter-spacing: -0.045em;

    overflow-wrap: anywhere;

    word-break: break-word;
}


.tool-result-description {

    max-width: 900px;

    margin: 9px 0 0;

    color: var(--tool-text-soft);

    font-size: 0.82rem;

    line-height: 1.55;

    overflow-wrap: anywhere;
}


/* =========================================================
   RESULT META
========================================================= */

.tool-result-meta {

    width: 100%;

    margin-top: 12px;

    color: var(--tool-text-muted);

    font-size: 0.78rem;

    line-height: 1.6;

    overflow-wrap: anywhere;
}


.tool-result-bdt {

    width: 100%;

    margin-top: 18px;

    padding: 16px 18px;

    background:

        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.09),
            rgba(37, 99, 235, 0.025)
        );

    border:
        1px solid
        rgba(37, 99, 235, 0.20);

    border-radius: 12px;
}


.tool-result-bdt span {

    display: block;

    margin-bottom: 4px;

    color: var(--tool-text-muted);

    font-size: 0.72rem;
}


.tool-result-bdt strong {

    display: block;

    color: var(--tool-text);

    font-size: 1.25rem;

    font-weight: 850;

    overflow-wrap: anywhere;

    word-break: break-word;
}


/* =========================================================
   RESULT BREAKDOWN
========================================================= */

.tool-result-card .tool-price-summary {

    width: 100%;

    margin-top: 12px;
}


/* =========================================================
   ERROR RESULT
========================================================= */

.tool-result-card.tool-result-error,
.tool-result-card.is-error {

    align-items: flex-start;

    padding: 15px 17px;

    text-align: left;

    background:
        rgba(220, 38, 38, 0.055);

    border-color:
        rgba(220, 38, 38, 0.22);
}


.tool-result-card.tool-result-error .tool-result-label,
.tool-result-card.is-error .tool-result-label {

    color:
        var(--tool-danger);
}


.tool-result-card.tool-result-error .tool-result-value,
.tool-result-card.is-error .tool-result-value {

    display: none;
}


.tool-result-card.tool-result-error .tool-result-description,
.tool-result-card.is-error .tool-result-description {

    margin: 0;

    color: var(--tool-text-soft);

    font-size: 0.82rem;
}


/* =========================================================
   LOADING
========================================================= */

.tool-loading-state {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 54px;

    color: var(--tool-text-muted);

    font-size: 0.8rem;
}


.tool-loading-spinner {

    width: 17px;

    height: 17px;

    flex: 0 0 17px;

    border:
        2px solid
        rgba(37, 99, 235, 0.18);

    border-top-color:
        var(--tool-primary);

    border-radius: 50%;

    animation:
        tool-spin 0.8s linear infinite;
}


@keyframes tool-spin {

    to {

        transform:
            rotate(360deg);
    }
}


/* =========================================================
   EMPTY STATE
========================================================= */

.tool-empty-state {

    padding: 18px;

    text-align: center;

    color: var(--tool-text-muted);

    background:
        rgba(37, 99, 235, 0.025);

    border:
        1px dashed var(--tool-border);

    border-radius: 12px;
}


.tool-empty-state strong {

    display: block;

    margin-bottom: 5px;

    color: var(--tool-text);
}


.tool-empty-state p {

    margin: 0;

    font-size: 0.8rem;

    line-height: 1.55;
}


/* =========================================================
   INTERNATIONAL PRICE COMPARISON
========================================================= */

.tool-price-comparison {

    margin-top: 38px;

    padding-top: 32px;

    border-top:
        1px solid var(--tool-border);
}


.tool-price-comparison-content {

    width: 100%;

    margin-top: 18px;

    overflow-x: auto;

    border:
        1px solid var(--tool-border);

    border-radius: 14px;

    scrollbar-width: thin;

    -webkit-overflow-scrolling: touch;
}


.tool-price-comparison-content table {

    width: 100%;

    min-width: 760px;

    border-collapse: collapse;

    background:
        var(--tool-surface);
}


.tool-price-comparison-content thead {

    background:
        var(--tool-surface-3);
}


.tool-price-comparison-content th {

    padding: 14px 16px;

    color: var(--tool-text-soft);

    font-size: 0.75rem;

    font-weight: 800;

    text-align: left;

    white-space: nowrap;

    border-bottom:
        1px solid var(--tool-border);
}


.tool-price-comparison-content td {

    padding: 13px 16px;

    color: var(--tool-text-soft);

    font-size: 0.82rem;

    white-space: nowrap;

    border-bottom:
        1px solid var(--tool-border);
}


.tool-price-comparison-content tbody tr {

    transition:
        background var(--tool-transition);
}


.tool-price-comparison-content tbody tr:hover {

    background:
        rgba(37, 99, 235, 0.035);
}


.tool-price-comparison-content tbody tr:last-child td {

    border-bottom: 0;
}


.tool-price-comparison-content td strong,
.tool-price-comparison-content th strong {

    color: var(--tool-text);
}


.tool-price-comparison-content td:first-child {

    color: var(--tool-text);

    font-weight: 750;
}


/* =========================================================
   CONTENT
========================================================= */

.tool-content-section,
.tool-faq-section,
.tool-browse-section {

    padding: 44px 0;
}


.tool-content {

    max-width: 900px;

    margin: 0 auto;
}


.tool-content h2 {

    margin: 7px 0 14px;

    color: var(--tool-text);

    font-size:
        clamp(1.55rem, 3vw, 2.15rem);

    line-height: 1.2;

    font-weight: 800;
}


.tool-content p {

    margin: 0 0 12px;

    color: var(--tool-text-muted);

    font-size: 0.92rem;

    line-height: 1.8;
}


.tool-content p:last-child {

    margin-bottom: 0;
}


/* =========================================================
   FAQ
========================================================= */

.tool-faq-container {

    display: flex;

    flex-direction: column;

    gap: 9px;

    margin-top: 20px;
}


.tool-faq-item {

    background:
        var(--tool-surface);

    border:
        1px solid var(--tool-border);

    border-radius: 12px;

    overflow: hidden;

    transition:
        border-color var(--tool-transition),
        background var(--tool-transition);
}


.tool-faq-item:hover {

    border-color:
        rgba(37, 99, 235, 0.25);
}


.tool-faq-item summary {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    padding: 16px 17px;

    color: var(--tool-text);

    font-size: 0.88rem;

    font-weight: 750;

    cursor: pointer;

    list-style: none;
}


.tool-faq-item summary::-webkit-details-marker {

    display: none;
}


.tool-faq-item summary::after {

    content: "+";

    flex: 0 0 auto;

    color:
        var(--tool-primary);

    font-size: 1.2rem;

    font-weight: 500;

    transition:
        transform var(--tool-transition);
}


.tool-faq-item[open] summary::after {

    transform:
        rotate(45deg);
}


.tool-faq-answer {

    padding:
        0 17px 16px;
}


.tool-faq-answer p {

    margin: 0;

    color: var(--tool-text-muted);

    font-size: 0.84rem;

    line-height: 1.7;
}


/* =========================================================
   BROWSE MORE TOOLS
========================================================= */

.tool-browse-card {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 28px;

    padding: 24px;

    background:

        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.07),
            rgba(255, 255, 255, 0.012)
        ),

        var(--tool-surface);

    border:
        1px solid var(--tool-border);

    border-radius: 17px;
}


.tool-browse-content {

    min-width: 0;
}


.tool-browse-content h2 {

    margin: 6px 0 7px;

    color: var(--tool-text);

    font-size:
        clamp(1.35rem, 3vw, 1.8rem);

    line-height: 1.2;
}


.tool-browse-content p {

    margin: 0;

    color: var(--tool-text-muted);

    font-size: 0.84rem;

    line-height: 1.6;
}


.tool-browse-actions {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    flex: 0 0 auto;
}


.tool-browse-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: auto;

    min-height: 41px;

    padding: 0 15px;

    border-radius: 9px;

    font-size: 0.76rem;

    font-weight: 800;

    line-height: 1.2;

    text-decoration: none;

    white-space: nowrap;

    transition:
        transform var(--tool-transition),
        background var(--tool-transition),
        border-color var(--tool-transition),
        color var(--tool-transition);
}


.tool-browse-primary {

    color: #ffffff;

    background:
        var(--tool-primary);

    border:
        1px solid var(--tool-primary);
}


.tool-browse-secondary {

    color: var(--tool-text);

    background:
        transparent;

    border:
        1px solid var(--tool-border-strong);
}


.tool-browse-button:hover {

    transform:
        translateY(-1px);
}


/* =========================================================
   GOLD PRICE CALCULATOR
   TOOL-SPECIFIC ENHANCEMENTS
========================================================= */

.gpc-status {

    margin-top: 10px;

    min-height: 20px;
}


.gpc-status-success {

    color:
        #15803d;
}


.gpc-status-warning {

    color:
        #2563eb;
}


.gpc-status-error {

    color:
        #dc2626;
}


/* =========================================================
   CALCULATOR RESULT GRID
========================================================= */

.gpc-result-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-top: 18px;
}


.gpc-result-item {

    min-width: 0;

    padding: 14px;

    border-radius: 12px;

    background:
        rgba(37, 99, 235, 0.06);
}


.gpc-result-item span {

    display: block;

    font-size: 0.85rem;

    opacity: 0.75;

    margin-bottom: 5px;
}


.gpc-result-item strong {

    display: block;

    font-size: 1rem;

    overflow-wrap: anywhere;
}


/* =========================================================
   CONVERSION NOTE
========================================================= */

.gpc-conversion-note {

    margin-top: 10px;

    font-size: 0.85rem;

    opacity: 0.75;
}


/* =========================================================
   COMPARISON TABLE
========================================================= */

.gpc-comparison-table-wrap {

    width: 100%;

    overflow-x: auto;

    border-radius: 12px;

    scrollbar-width: thin;

    -webkit-overflow-scrolling: touch;
}


.gpc-comparison-table {

    width: 100%;

    border-collapse: collapse;

    min-width: 680px;
}


.gpc-comparison-table th,
.gpc-comparison-table td {

    padding: 12px 14px;

    text-align: left;

    border-bottom:
        1px solid
        rgba(37, 99, 235, 0.14);

    white-space: nowrap;
}


.gpc-comparison-table th {

    font-size: 0.82rem;

    opacity: 0.75;
}


.gpc-comparison-table td strong {

    font-weight: 700;
}


/* =========================================================
   SELECTED COMPARISON ROW
========================================================= */

.gpc-selected-row {

    background:
        rgba(37, 99, 235, 0.09);
}


/* =========================================================
   BADGE
========================================================= */

.gpc-badge {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 4px 8px;

    border-radius: 999px;

    font-size: 0.72rem;

    font-weight: 700;

    color:
        var(--tool-primary);

    background:
        rgba(37, 99, 235, 0.10);

    white-space: nowrap;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.gpc-empty-state {

    padding: 20px;

    text-align: center;

    opacity: 0.75;
}


/* =========================================================
   PRICE SOURCE
========================================================= */

.gpc-price-source {

    font-size: 0.82rem;

    opacity: 0.72;

    margin-top: 5px;
}


/* =========================================================
   HIGHLIGHT
========================================================= */

.gpc-highlight {

    font-size: 1.45rem;

    font-weight: 800;

    color:
        var(--tool-primary);

    overflow-wrap: anywhere;
}


/* =========================================================
   MUTED
========================================================= */

.gpc-muted {

    opacity: 0.68;
}


/* =========================================================
   DATA TIME
========================================================= */

.gpc-data-time {

    margin-top: 8px;

    font-size: 0.78rem;

    opacity: 0.65;
}


/* =========================================================
   ERROR MESSAGE
========================================================= */

.gpc-error-message {

    margin-top: 10px;
}


/* =========================================================
   GPC LOADING
========================================================= */

.gpc-loading {

    display: flex;

    align-items: center;

    gap: 10px;
}


.gpc-loading-dot {

    width: 10px;

    height: 10px;

    flex: 0 0 10px;

    border-radius: 50%;

    background:
        var(--tool-primary);

    animation:
        gpcPulse 1s infinite ease-in-out;
}


@keyframes gpcPulse {

    0%,
    100% {

        opacity: 0.35;

        transform:
            scale(0.8);
    }

    50% {

        opacity: 1;

        transform:
            scale(1);
    }
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 900px) {

    .tool-layout {

        max-width: 100%;
    }

    .tool-card {

        padding: 22px;
    }

    .tool-price-summary {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 760px) {

    .tool-hero {

        padding: 38px 0 25px;
    }

    .tool-section {

        padding-bottom: 34px;
    }

    .tool-card {

        padding: 17px;

        border-radius: 17px;
    }

    .tool-price-card {

        padding: 17px;
    }

    .tool-price-header {

        align-items: center;
    }

    .tool-price-grid {

        grid-template-columns: 1fr;
    }

    .tool-source-switch {

        width: 100%;
    }

    .tool-source-option {

        flex:
            1 1 50%;

        min-width: 0;
    }

    .tool-browse-card {

        align-items: flex-start;

        flex-direction: column;
    }

    .tool-browse-actions {

        width: 100%;
    }

    .tool-browse-button {

        flex:
            1 1 140px;
    }

    .gpc-result-grid {

        grid-template-columns: 1fr;
    }

    .gpc-highlight {

        font-size: 1.25rem;
    }


    /* =====================================================
       MOBILE BUTTON PROTECTION
    ===================================================== */

    .tool-page .tool-primary-button,
    .tool-page .tool-secondary-button {

        min-height: 46px !important;

        height: 46px !important;

        max-height: 46px !important;

        width: auto !important;

        flex:
            0 0 auto !important;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .tool-hero {

        padding: 30px 0 22px;
    }

    .tool-hero h1 {

        font-size: 2rem;
    }

    .tool-hero p {

        font-size: 0.9rem;
    }

    .tool-card {

        padding: 13px;

        border-radius: 15px;
    }

    .tool-price-card {

        padding: 14px;
    }

    .tool-price-header {

        align-items: flex-start;

        flex-direction: column;

        gap: 9px;
    }

    .tool-price-header h2 {

        font-size: 1.2rem;
    }

    .tool-source-switch {

        width: 100%;
    }

    .tool-source-option {

        font-size: 0.69rem;
    }

    .tool-price-summary {

        grid-template-columns: 1fr;
    }

    .tool-input-unit-select {

        min-width: 92px;
    }

    .tool-actions {

        width: 100%;
    }

    /*
       Keep existing button behavior.
       Buttons remain side-by-side when space allows.
    */

    .tool-page .tool-primary-button,
    .tool-page .tool-secondary-button {

        width: auto !important;

        min-height: 46px !important;

        height: 46px !important;

        max-height: 46px !important;
    }

    .tool-result-card {

        padding: 24px 14px;
    }

    .tool-result-value {

        font-size: 2.25rem;
    }

    .tool-result-bdt strong {

        font-size: 1.1rem;
    }

    .tool-content-section,
    .tool-faq-section,
    .tool-browse-section {

        padding: 34px 0;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .tool-result-value {

        font-size: 1.95rem;
    }

    .tool-source-option {

        padding: 0 8px;

        font-size: 0.64rem;
    }

    /*
       At very narrow widths buttons safely stack.
    */

    .tool-page .tool-primary-button,
    .tool-page .tool-secondary-button {

        width: 100% !important;

        flex:
            1 1 100% !important;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .tool-page *,
    .tool-page *::before,
    .tool-page *::after {

        scroll-behavior: auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }
}


/* =========================================================
   HIGH CONTRAST / FORCED COLORS
   Compatibility hardening only.
========================================================= */

@media (forced-colors: active) {

    .tool-page input,
    .tool-page select,
    .tool-page .tool-primary-button,
    .tool-page .tool-secondary-button,
    .tool-source-switch,
    .tool-source-option,
    .tool-card,
    .tool-price-card,
    .tool-result-card,
    .tool-faq-item,
    .tool-browse-card {

        border-color:
            CanvasText;
    }

    .tool-page .tool-primary-button {

        color:
            ButtonText !important;

        background:
            ButtonFace !important;
    }

    .tool-page .tool-secondary-button {

        color:
            ButtonText !important;

        background:
            ButtonFace !important;
    }
}