:root {
    /* Negocio Visible Palette */
    --bg-main: #F0F0F0;
    --bg-panel: #FFFFFF;
    --bg-panel-hover: #F9F9F9;
    --accent: #E74C3C; /* Vibrant reddish orange */
    --accent-hover: #C0392B;
    --text-main: #333333; 
    --text-muted: #666666;
    --border-color: #E5E5E5;
    --wireframe-bg: #F0F0F0;
    --wireframe-block: #DDDDDD;
    
    /* Receipt Elements */
    --receipt-bg: #FFFFFF;
    --receipt-text: #333333;
    --receipt-muted: #666666;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.fn-calculator-wrapper {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    padding: 2rem 0; /* Changed from 0 to give space top/bottom */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.accent {
    color: var(--accent);
}

.calculator-container {
    max-width: 100%; 
    width: 100%;
    background: transparent;
    border: none;
    padding: 2rem 5%; /* Use percentage for breathing room on mobile */
    box-sizing: border-box;
}

.calc-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.calc-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* Prevent breaking */
}

.header-icon {
    color: var(--accent);
}

.calc-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
}

/* Left Column: Controls */
.control-group {
    margin-bottom: 3rem;
}

.control-group h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Custom Slider */
.slider-wrapper {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    position: relative;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    position: relative;
    z-index: 2;
    height: 40px; /* Increased hit area */
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px; /* Thicker track */
    cursor: pointer;
    background: var(--border-color);
}

input[type=range]::-webkit-slider-thumb {
    height: 40px; /* Larger thumb as requested */
    width: 40px;
    border-radius: 50%;
    background: var(--accent);
    cursor: grab; /* Shows a hand/grab cursor */
    -webkit-appearance: none;
    margin-top: -16px; /* Adjusted for larger thumb height (8px track - 40px thumb)/2 */
    transition: transform 0.1s ease;
    border: 3px solid #FFF;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

input[type=range]::-webkit-slider-thumb:active {
    cursor: grabbing;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.slider-labels span {
    transition: color 0.3s ease;
    text-align: center;
    width: 33%;
}

.slider-labels span.active {
    color: var(--accent);
}

.hosting-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1.5rem;
    opacity: 0.8;
}

/* Toggles / Add-ons */
.addons-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.addon-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    cursor: pointer; /* Ensure hand cursor on toggles */
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
    gap: 1rem;
}

.addon-toggle:hover {
    background: var(--bg-panel-hover);
    border-color: var(--accent);
    transform: translateX(5px);
}

.addon-icon-wrapper {
    color: var(--accent);
    background: rgba(231, 76, 60, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.addon-info {
    display: flex;
    flex-direction: column;
}

.addon-name {
    font-weight: 600;
    font-size: 1rem;
}

.addon-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Custom Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider.round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
}

.slider.round:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: .3s;
}

input:checked + .slider.round {
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid var(--accent);
}

input:checked + .slider.round:before {
    transform: translateX(20px);
    background-color: var(--accent);
}

/* Right Column */
.calc-summary {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Dynamic Wireframe */
.wireframe-container {
    background: var(--wireframe-bg);
    border: 1px solid var(--border-color);
    height: 220px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wf-header {
    height: 24px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
}

.wf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
}

.wf-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    height: 100%;
}

.wf-body::-webkit-scrollbar {
    width: 4px;
}

.wf-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

/* Wireframe Elements */
.wf-hero, .wf-features, .wf-form, .wf-card, .wf-product {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: rgba(0,0,0,0.4);
    text-align: center;
    padding: 5px;
    text-transform: uppercase;
}

.wf-hero {
    height: 60px;
    background: var(--wireframe-block);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.wf-features {
    height: 40px;
    background: var(--wireframe-block);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.wf-form {
    height: 80px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px dashed var(--accent);
    transition: all 0.4s ease;
    color: var(--accent);
}

.wf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    transition: all 0.4s ease;
}

.wf-card {
    height: 50px;
    background: var(--wireframe-block);
    opacity: 0.6;
}

.wf-ecommerce {
    display: flex;
    gap: 10px;
    transition: all 0.4s ease;
}

.wf-product {
    height: 60px;
    flex: 1;
    background: rgba(0, 150, 255, 0.1);
    border: 1px solid rgba(0, 150, 255, 0.3);
    color: #0096FF;
}

.hidden {
    display: none !important;
    opacity: 0;
}

/* Receipt Ticket */
.receipt {
    background: var(--receipt-bg);
    color: var(--receipt-text);
    border: 1px solid var(--receipt-bg);
    padding: 2.5rem;
    border-radius: 8px; /* Slight rounding for modern look */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.base-row {
    font-weight: 600;
}

.mono-price {
    font-family: var(--font-mono);
    letter-spacing: -0.5px;
}

#addons-receipt-list .receipt-row {
    color: var(--receipt-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.receipt-divider {
    height: 1px;
    background: solid var(--border-color);
    margin: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.receipt-total .mono-price {
    font-size: 1.5rem;
}

.cta-button {
    width: 100%;
    background: var(--accent);
    color: #FFFFFF;
    border: none;
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-transform: uppercase;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.calc-feedback {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

.calc-feedback.error {
    background: #FFF1F0;
    border: 1px solid #FFA39E;
    color: #CF1322;
}

.calc-feedback.success {
    background: #F6FFED;
    border: 1px solid #B7EB8F;
    color: #389E0D;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cta-button:hover {
    background: var(--accent-hover);
}

.cta-button:active {
    transform: scale(0.98);
}

.wa-close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
    padding: 1rem;
    background: transparent;
    color: #25D366 !important;
    border: 2px solid #25D366;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.wa-close-button:hover {
    background: #25D366;
    color: #FFF !important;
}

.wa-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    line-height: 1.4;
    padding: 0 10px;
}

@media (max-width: 900px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
    .calc-header h1 {
        font-size: 1.8rem;
    }
}

/* Feature Details Box */
.plan-features {
    background: #FFF;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-left: 4px solid var(--accent);
}
.plan-features h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}
.plan-features ul.feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.plan-features ul.feature-list li {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.plan-features hr {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin: 1.2rem 0;
}
.hosting-tag {
    display: inline-block;
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 1rem;
}
