html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}





/* ==== Interest Clock layout ==== */
.ic-container {
    max-width: 1100px;
    margin: 32px auto 48px;
    padding: 0 16px;
}

.ic-grid {
    display: grid;
    grid-template-columns: 1fr minmax(360px, 520px);
    gap: 28px;
    align-items: start;
}

@media (max-width: 900px) {
    .ic-grid {
        grid-template-columns: 1fr;
    }
}

.ic-title {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: #2b2b2b;
}

.ic-panel {
    background: #ffffffc7;
    backdrop-filter: blur(4px);
    border: 1px solid #cfd8e3;
    border-radius: 14px;
    padding: 18px;
}

.ic-form {
    display: grid;
    gap: 14px;
}

.ic-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    align-items: center;
}

    .ic-row label {
        font-weight: 600;
        color: #3a3a3a;
    }

    .ic-row input {
        padding: 12px 14px;
        border-radius: 10px;
        border: 1px solid #b9c3d0;
        background: #fff;
        color: #222;
        font-size: 18px;
    }

.ic-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.ic-apr-note {
    margin-top: 8px;
    color: #64748b;
}

.ic-ticker {
    background: #ffffffc7;
    border: 1px solid #cfd8e3;
    border-radius: 14px;
    padding: 24px 22px;
    text-align: right;
}

.ic-earned {
    font-variant-numeric: tabular-nums; /* keeps digits from shifting */
    font-weight: 900;
    letter-spacing: .3px;
    font-size: clamp(24px, 6vw, 68px);
    color: #314C83; /* Bootstrap blue */
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /*letter-spacing: 0;*/
}

.ic-elapsed {
    margin-top: 6px;
    color: #6c757d;
    font-size: 12px;
}

.ic-card {
    background: #ffffffc7;
    border: 1px solid #cfd8e3;
    border-radius: 14px;
    padding: 18px;
    margin-top: 20px;
}

.ic-card-title {
    font-weight: 800;
    margin-bottom: 10px;
}

.ic-list {
    display: grid;
    gap: 8px;
}

.ic-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #d9e0ea;
    padding: 8px 0;
}

    .ic-item:last-child {
        border-bottom: none;
    }

    .ic-item span:last-child {
        font-weight: 700;
    }







/* ===== Mobile fixes (phones) ===== */
@media (max-width: 576px) {

    /* Kill the fixed blue “frames” on phones and restore margins */
    .frame-left, .frame-right {
        display: none !important;
    }

    .content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Stack form labels above inputs */
    .ic-row {
        grid-template-columns: 1fr !important;
    }

        .ic-row label {
            margin-bottom: 6px;
        }

    /* Make the two main panels full-width and centered */
    .ic-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .ic-panel, .ic-ticker, .ic-card {
        border-radius: 12px;
    }

    /* Ticker: keep it visible, centered, and sized for phones */
    .ic-ticker {
        text-align: center;
        padding: 18px 14px;
    }

    .ic-earned {
        white-space: nowrap; /* one line */
        overflow: hidden; /* no scrollbars */
        text-overflow: ellipsis; /* clip gracefully if too long */
        font-size: clamp(28px, 9vw, 56px); /* smaller range on phones */
        letter-spacing: 0;
    }

    .ic-elapsed {
        font-size: 11px;
        margin-top: 4px;
    }

    /* Buttons: easier to hit */
    .ic-actions {
        gap: 8px;
        flex-wrap: wrap;
    }

        .ic-actions .btn {
            padding: 10px 14px;
        }
}























































/* ==== Interest Clock styles ==== */
/*.ic-wrap {
    max-width: 900px;
    margin: 32px auto;
    padding: 0 16px;
    color: #212529;*/ /* bootstrap body color */
/*}

.ic-form {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    display: grid;
    gap: 12px;
}

.ic-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    align-items: center;
}

    .ic-row label {
        font-weight: 500;
    }

    .ic-row input {
        padding: 10px 12px;
        border-radius: 6px;
        border: 1px solid #ced4da;
        background: #fff;
        color: #212529;
    }

.ic-actions {
    display: flex;
    gap: 10px;
}

    .ic-actions button {
        padding: 10px 14px;
        border-radius: 6px;
    }

.ic-display {
    margin: 22px 0;
    text-align: center;
}

.ic-big {
    font-size: clamp(32px, 6vw, 60px);
    font-weight: 700;
    color: #0d6efd;*/ /* Bootstrap blue */
/*}

.ic-meta {
    color: #6c757d;
    margin-top: 6px;
    display: grid;
    gap: 4px;
}

.ic-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.ic-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 12px;
}

.ic-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.ic-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #dee2e6;
}

    .ic-line:last-child {
        border-bottom: none;
    }*/

