/* Mobile-first design with Poppins font, white background, etc. */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}
a {
text-decoration: none;
}

body {
    background-color: #fff;
    color: #000;
    font-size: 16px;
    margin: 0 auto;
    max-width: 600px; /* simulate mobile / narrower screen */
}

.calculator-container {
    padding: 20px;
}

/* Title */
.title {
    text-align: center;
    margin-bottom: 20px;
    color: #474747;
}

/* Switcher */
.switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.switcher-btn {
    background-color: #eee;
    border: none;
    color: #333;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    flex: 1;
    text-align: center;
    transition: background-color 0.3s;
    font-size: 16px;
}
.switcher-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #008fff, #1ab5ff);
}
.switcher-btn:not(:last-child) {
    border-right: 1px solid #ccc;
}
.switcher-btn:hover {
   background: linear-gradient(135deg, #008fff, #1ab5ff);
    color: #fff;
}

/* Calculator Divs */
.calc-div {
    background-color: #fafafa;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.hidden {
    display: none;
}

/* Input Rows */
.input-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}
.input-row label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
}
.input-with-icon {
    position: relative;
}
.input-with-icon input {
    width: 100%;
    padding: 8px 35px 8px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
.info-icon {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Converted currency text */
.converted-value {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #555;
    font-style: italic;
}

/* Results section */
.results-section > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.result-label {
    font-weight: 500;
    color: #333;
}
.result-value {
    font-weight: 600;
}

/* Platform Fee (collapsible) */
.platform-fee {
    display: flex;
    align-items: center;
    color: grey;
    font-weight: 400;
    margin-top: 15px;
    padding: 5px 0;
}
.platform-fee:hover {
    color: #666;
}
.fee-details {
    display: none; /* default closed */
    flex-direction: column;
    border-top: 1px dashed #ccc;
    margin-top: 5px;
    padding-top: 5px;
}
.fee-details > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

/* Currency Row */
.currency-row {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.currency-row label {
    margin-right: 10px;
    font-weight: 500;
}
.currency-row select {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: black;
}

/* Share Button */
.share-container {
    text-align: center;
    margin-top: 20px;
}
.share-button {
    background-color: #000000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
    width: 100%;
}
.share-button:hover {
    background-color: #555;
}

/* Tooltip Modal (simple approach) */
.tooltip-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.tooltip-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 300px;
    text-align: center;
    position: relative;
}
.tooltip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    color: #888;
    font-size: 1.2rem;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2em;
    cursor: pointer;
}

.tv {
    color: #ff0000;
    padding: 0px;
    font-weight: 700;
}

h1, h2, h3 {
    font-weight: 600;
    color: #000000;
}

.home-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.home-button {
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
    background: linear-gradient(135deg, #008fff, #1ab5ff);
}

#feeAmountValue , #feeAmountValue12, #platform {
    color: #000000;
}

.info-icon2 {
    margin-right: 8px;
    font-size: 1em;
    color: #555;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle; /* Align icon with the text */
}

.info-icon2 i {
    color: grey;
    font-size: .8em;
}

.info-icon2:hover {
    color: #000;
}

.result-label {
    display: flex;
    align-items: center;
}

#platformFeePercent {
    font-size: 16px;
    width: 4em;
    padding-left: .5em;
}

.fee-label {
    display: flex;
}
