@media (max-width:768px){.about-us{padding:20px}.about-us h1{font-size:2em}.about-us p{font-size:1.2em}.column h2{font-size:1.8em}.column p{font-size:1em}.quick-links .links{flex-direction:column}.transaction-table th,.transaction-table td{font-size:14px;padding:8px}.summary-list{font-size:1em}.services-container{flex-direction:column;align-items:center}.service{margin-bottom:20px;max-width:100%}.hero h2{font-size:2em}.hero p{font-size:1em}body{font-size:90%}.dashboard-container,.transaction-history,.quick-links{padding:10px;margin:0;flex-direction:column}.quick-links .links{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.quick-links .btn{flex:1 1 calc(100% - 20px);max-width:100%;margin-bottom:10px}table{display:block;overflow-x:auto;white-space:nowrap}.modal{width:90%;margin:0 auto;top:50%}.modal-content{padding:30px}.animated-balance h2,.animated-balance p{text-align:center}.loan-column{flex:1 1 100%;max-width:100%;height:120px}.loan-detail-content{padding:15px;font-size:.9em}.slider-container input[type="range"]{width:80%}.login-support-container{flex-direction:column;align-items:center}.login-box,.support-box{max-width:100%;margin-bottom:20px}.button-group{flex-direction:column;align-items:stretch}.login-btn{width:100%;text-align:center}.about-us{padding:20px}.about-us h1{font-size:2em}.about-us p{font-size:1.2em}.column h2{font-size:1.8em}.column p{font-size:1em}.services-container{flex-direction:column;align-items:center}.service{margin-bottom:20px;max-width:100%}.hero h2{font-size:2em}.hero p{font-size:1em}.contacts-page{padding:30px 15px}.contacts-page h2{font-size:2em}.social-links{flex-direction:column;gap:15px}.social-links .icon{width:36px;height:36px}}@media screen and (max-width:768px){.hamburger{display:block}.desktop-menu{display:none}}@media screen and (min-width:769px){.mobile-menu{display:none}.hamburger{display:none}}

/* ============================================================
   HEADER H1 — force consistent font across all pages
   Bootstrap (loaded on admin pages) overrides with its own
   font-weight, font-family and color via _reboot.scss
   ============================================================ */

header h1 {
    font-family: Arial, sans-serif !important;
    font-weight: normal !important;
    font-size: 0.9em !important;
    color: #fff !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

/* ============================================================
   HAMBURGER & MOBILE MENU — unified across all pages
   Matches styles.css: full-width dark menu, transparent button
   ============================================================ */

/* Reset hamburger — override admin.css global button { background: #4CAF50 } */
.hamburger {
    font-size: 24px !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer;
    padding: 5px 10px !important;
    margin: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    border-radius: 0 !important;
    line-height: 1 !important;
    display: none;
    position: static;
    z-index: 1002;
}

.hamburger:hover {
    background: none !important;
    background-color: transparent !important;
    transform: none !important;
}

/* Mobile menu — full-width, dark, matching styles.css */
.mobile-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #036;
    z-index: 1000;
    box-shadow: 0 4px 8px rgb(0 0 0 / .2);
    border-radius: 0;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu ul li {
    border-bottom: 1px solid #00509e;
    text-align: center;
    padding: 0;
}

.mobile-menu ul li a {
    display: block;
    padding: 12px 10px;
    font-size: 1em;
    color: #fff;
    text-decoration: none;
}

.mobile-menu ul li a:hover {
    background-color: #00509e;
}

.mobile-menu.active {
    display: block;
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block !important;
    }

    .desktop-menu {
        display: none !important;
    }
}

@media screen and (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }

    .hamburger {
        display: none !important;
    }
}
@media (max-width: 480px) {
    .fraud-modal {
        padding: 20px;
        font-size: 0.95em;
    }

    .fraud-modal-content button {
        width: 100%;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .mission > div:first-child,
    .values > div:first-child,
    .history > div:first-child {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 20px !important;
    }

    .mission img,
    .values img,
    .history img {
        max-height: 200px !important;
        object-fit: cover;
        width: 100%;
        border-radius: 10px;
    }

    .mission .learn-more-btn,
    .values .learn-more-btn,
    .history .learn-more-btn {
        margin-top: 16px;
        align-self: flex-start;
    }
}

/* ============================================================
   ADMIN PANEL — MOBILE ADAPTATION
   ============================================================ */

/* --- Fix: #notifications is position:absolute in admin.css — reset on mobile --- */
@media (max-width: 768px) {
    #notifications {
        position: static !important;
        top: auto !important;
        right: auto !important;
        z-index: auto !important;
        width: 100%;
    }

    #notification-btn {
        width: 100%;
    }

    #notification-list {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1100;
    }
}

/* --- Header toolbar: stack buttons vertically on small screens --- */
@media (max-width: 768px) {
    .container.py-4 > .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Button group in admin header wraps into 2-column grid */
    .container.py-4 > .d-flex.justify-content-between > .d-flex.gap-2 {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .container.py-4 > .d-flex.justify-content-between > .d-flex.gap-2 #notifications {
        grid-column: 1 / -1;
    }

    .container.py-4 > .d-flex.justify-content-between > .d-flex.gap-2 .btn,
    .container.py-4 > .d-flex.justify-content-between > .d-flex.gap-2 a.btn {
        width: 100%;
        font-size: 13px;
        padding: 8px 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* --- Search form stacks vertically --- */
@media (max-width: 576px) {
    .container.py-4 form.row.g-2 {
        flex-direction: column;
    }

    .container.py-4 form.row.g-2 .col-md-4,
    .container.py-4 form.row.g-2 .col-md-auto {
        width: 100%;
    }

    .container.py-4 form.row.g-2 .col-md-auto {
        display: flex;
        gap: 8px;
    }

    .container.py-4 form.row.g-2 .col-md-auto .btn {
        flex: 1;
    }
}

/* --- Filter switches side-by-side on one line --- */
@media (max-width: 576px) {
    .form-check.form-switch {
        font-size: 13px;
    }
}

/* --- Users table: card view on mobile --- */
@media (max-width: 768px) {
    .table-responsive table.table {
        display: block;
        white-space: normal; /* override the global nowrap so text wraps inside cards */
    }

    .table-responsive table.table thead {
        display: none; /* hide column headers */
    }

    .table-responsive table.table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .table-responsive table.table tbody tr {
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 10px;
        padding: 12px 14px;
        box-shadow: 0 1px 4px rgba(0,0,0,.07);
    }

    .table-responsive table.table tbody tr.table-danger {
        border-color: #f5c6cb;
        background-color: #fff5f5;
    }

    /* Each cell becomes a labelled row */
    .table-responsive table.table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 13px;
        white-space: normal;
    }

    .table-responsive table.table tbody td:last-child {
        border-bottom: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding-top: 10px;
    }

    /* Data labels injected via CSS counters / attr */
    .table-responsive table.table tbody td:nth-child(1)::before { content: "Account #"; }
    .table-responsive table.table tbody td:nth-child(2)::before { content: "Name"; }
    .table-responsive table.table tbody td:nth-child(3)::before { content: "Email"; }
    .table-responsive table.table tbody td:nth-child(4)::before { content: "Phone"; }
    .table-responsive table.table tbody td:nth-child(5)::before { content: "Balance"; }
    .table-responsive table.table tbody td:nth-child(6)::before { content: "Type"; }
    .table-responsive table.table tbody td:nth-child(7)::before { content: "Role"; }

    .table-responsive table.table tbody td::before {
        font-weight: 700;
        color: #555;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .5px;
        flex-shrink: 0;
        margin-right: 8px;
    }

    /* Action buttons full-width stacked */
    .table-responsive table.table tbody td.d-flex.flex-column {
        flex-direction: column !important;
    }

    .table-responsive table.table tbody td .btn-sm {
        width: 100%;
        text-align: center;
        font-size: 13px;
        padding: 7px;
    }

    .table-responsive table.table tbody td form {
        width: 100%;
    }

    .table-responsive table.table tbody td form .btn-sm {
        width: 100%;
    }
}

/* --- Pagination wraps nicely --- */
@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .page-link {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* --- Crypto Rates modal grid becomes single column --- */
@media (max-width: 576px) {
    #cryptoRatesGrid .col-md-3 {
        width: 100%;
    }

    #manualRateForm .col-md-3,
    #manualRateForm .col-md-4,
    #manualRateForm .col-md-2 {
        width: 100%;
    }
}

/* --- Loans modal filter radios stack --- */
@media (max-width: 576px) {
    #loansModal .row.mb-3 .col-md-6 {
        width: 100%;
        margin-bottom: 10px;
    }

    #loansModal .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }

    #loansModal .btn-group .btn {
        flex: 1 1 calc(50% - 6px);
        font-size: 12px;
    }
}

/* ============================================================
   VIEW USER PAGE — MOBILE ADAPTATION
   ============================================================ */

@media (max-width: 768px) {
    /* Top action buttons stack */
    .container.mt-4 > .d-flex.gap-2 {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .container.mt-4 > .d-flex.gap-2 .btn,
    .container.mt-4 > .d-flex.gap-2 form {
        flex: 1 1 100%;
    }

    .container.mt-4 > .d-flex.gap-2 button {
        width: 100%;
    }

    /* User info card */
    .container.mt-4 .card.p-3 p {
        font-size: 14px;
        word-break: break-word;
    }

    /* Crypto wallets list */
    .container.mt-4 .d-flex.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }

    .container.mt-4 .d-flex.align-items-center.justify-content-between form {
        width: 100%;
    }

    .container.mt-4 .d-flex.align-items-center.justify-content-between form .btn {
        width: 100%;
    }

    /* Transactions table: card style */
    .container.mt-4 .table-bordered {
        display: block;
        white-space: normal;
    }

    .container.mt-4 .table-bordered thead {
        display: none;
    }

    .container.mt-4 .table-bordered tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .container.mt-4 .table-bordered tbody tr {
        display: flex;
        flex-direction: column;
        border: 1px solid #dee2e6;
        border-radius: 10px;
        padding: 12px 14px;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0,0,0,.06);
    }

    .container.mt-4 .table-bordered tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 5px 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 13px;
        word-break: break-word;
    }

    .container.mt-4 .table-bordered tbody td:last-child {
        border-bottom: none;
    }

    .container.mt-4 .table-bordered tbody td:nth-child(1)::before { content: "Дата"; }
    .container.mt-4 .table-bordered tbody td:nth-child(2)::before { content: "Тип"; }
    .container.mt-4 .table-bordered tbody td:nth-child(3)::before { content: "Сумма"; }
    .container.mt-4 .table-bordered tbody td:nth-child(4)::before { content: "Детали"; }
    .container.mt-4 .table-bordered tbody td:nth-child(5)::before { content: "Статус"; }
    .container.mt-4 .table-bordered tbody td:nth-child(6)::before { content: ""; }

    .container.mt-4 .table-bordered tbody td::before {
        font-weight: 700;
        color: #555;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .5px;
        flex-shrink: 0;
        margin-right: 8px;
    }

    /* Status update form inside transaction td */
    .container.mt-4 .table-bordered tbody td .form-select {
        font-size: 12px;
        padding: 4px 8px;
        width: 100%;
    }

    .container.mt-4 .table-bordered tbody td .btn-sm {
        width: 100%;
        margin-top: 4px;
        font-size: 12px;
    }

    .container.mt-4 .table-bordered tbody td form {
        width: 100%;
    }

    /* Wallet modal */
    #walletModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
}

/* --- Extra small screens (phones in portrait) --- */
@media (max-width: 420px) {
    .container.py-4 > .d-flex.justify-content-between > .d-flex.gap-2 {
        grid-template-columns: 1fr; /* single column on very small screens */
    }

    .container.py-4 h2,
    .container.mt-4 h2 {
        font-size: 1.4em;
    }

    .container.mt-4 h3 {
        font-size: 1.1em;
    }
}

/* ============================================================
   DASHBOARD — MOBILE ADAPTATION
   ============================================================ */

@media (max-width: 768px) {

    /* --- Header --- */
    .modern-dashboard {
        padding: 12px !important;
    }

    .dashboard-header {
        padding: 14px 16px !important;
        margin-bottom: 16px !important;
    }

    .welcome-text h1 {
        font-size: 1.3em !important;
    }

    .welcome-text .account-info {
        font-size: 0.82em !important;
    }

    .header-actions {
        flex-wrap: wrap;
        gap: 6px !important;
        justify-content: flex-start !important;
    }

    .header-actions .btn {
        font-size: 0.82em !important;
        padding: 7px 12px !important;
    }

    /* gear button stays compact */
    .header-actions .btn[title="Settings"] {
        padding: 7px 10px !important;
    }

    /* --- Balance cards: 2 columns on tablet, 1 on phone --- */
    .balance-cards-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .balance-card {
        padding: 14px !important;
    }

    .balance-amount {
        font-size: 1.5em !important;
    }

    .card-value {
        font-size: 1.3em !important;
    }

    /* --- Quick actions: 2x2 grid --- */
    .quick-actions-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .action-card {
        padding: 14px 10px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .action-icon {
        margin-bottom: 6px;
    }

    .action-content h4 {
        font-size: 0.82em !important;
    }

    .action-content p {
        font-size: 0.72em !important;
    }

    /* --- Tabs --- */
    .tab-navigation {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 4px !important;
    }

    .tab-btn {
        padding: 8px 4px !important;
        font-size: 0.72em !important;
    }

    .tab-btn span {
        display: block !important;
        font-size: 0.9em;
        margin-top: 2px;
    }

    .tab-btn i {
        font-size: 1em;
    }

    /* --- Dashboard cards --- */
    .dashboard-card {
        padding: 14px !important;
    }

    .card-header-section {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .card-header-section h3 {
        font-size: 0.95em !important;
    }

    /* --- Transaction list --- */
    .transaction-item {
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 0 !important;
    }

    .transaction-details {
        flex: 1;
        min-width: 0;
    }

    .transaction-type {
        font-size: 0.82em !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .transaction-recipient {
        font-size: 0.75em !important;
    }

    .transaction-amount-status {
        text-align: right !important;
        flex-shrink: 0;
    }

    .transaction-amount span {
        font-size: 0.85em !important;
    }

    /* --- Transactions table --- */
    .table-header { display: none !important; }

    .table-row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px 12px !important;
        padding: 10px !important;
        border: 1px solid #eee;
        border-radius: 8px;
        margin-bottom: 8px;
    }

    .table-row .table-cell { border: none !important; padding: 2px 0 !important; }
    .table-row .table-cell:nth-child(1) { width: 100%; font-size: 0.75em; color: #888; }
    .table-row .table-cell:nth-child(2) { flex: 1; }
    .table-row .table-cell:nth-child(3) { font-weight: 700; }
    .table-row .table-cell:nth-child(4) { width: 100%; font-size: 0.78em; color: #666; }
    .table-row .table-cell:nth-child(5) { margin-left: auto; }

    /* --- Loans summary cards: 3-column stays but smaller --- */
    .loans-summary-cards {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .summary-card {
        padding: 12px 8px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 6px !important;
    }

    .summary-card h4 { font-size: 0.72em !important; }
    .summary-number  { font-size: 1.1em !important; }

    /* --- Loan options grid --- */
    .loan-options-grid {
        grid-template-columns: 1fr !important;
    }

    /* --- Crypto wallets grid --- */
    .crypto-wallets-grid {
        grid-template-columns: 1fr !important;
    }

    .crypto-wallet-item {
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        text-align: left !important;
    }

    .crypto-detailed-grid {
        grid-template-columns: 1fr !important;
    }

    /* --- Modals --- */
    .custom-modal-content {
        width: 95% !important;
        padding: 16px !important;
        margin: 10px auto !important;
    }

    .scrollable-modal {
        max-height: 85vh !important;
    }

    /* Convert modal tabs */
    .conversion-tabs {
        flex-direction: row !important;
        gap: 6px;
    }

    .conversion-tab-btn {
        flex: 1;
        font-size: 0.82em !important;
        padding: 8px !important;
    }

    /* --- dashboard-btn --- */
    .dashboard-btn {
        font-size: 0.85em !important;
        padding: 9px 16px !important;
    }
}

@media (max-width: 480px) {

    .balance-cards-grid {
        grid-template-columns: 1fr !important;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .header-actions {
        justify-content: space-between !important;
    }

    .header-actions .btn {
        flex: 1;
        text-align: center;
        font-size: 0.78em !important;
        padding: 7px 6px !important;
    }

    .balance-amount {
        font-size: 1.3em !important;
    }

    .loans-summary-cards {
        grid-template-columns: 1fr !important;
    }

    .tab-navigation {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .tab-btn span {
        font-size: 0.78em;
    }
}


/* ============================================================
   SETTINGS MODAL — MOBILE ADAPTATION
   ============================================================ */

@media (max-width: 768px) {

    .settings-modal-content {
        flex-direction: column !important;
        width: 95vw !important;
        min-height: unset !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }

    .settings-sidebar {
        width: 100% !important;
        flex-direction: row !important;
        padding: 8px 6px !important;
        border-radius: 12px 12px 0 0 !important;
        overflow-x: auto !important;
        gap: 2px;
        /* hide scrollbar visually */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .settings-sidebar::-webkit-scrollbar { display: none; }

    .settings-sidebar-title {
        display: none !important;
    }

    .settings-nav-btn {
        flex-direction: column !important;
        align-items: center !important;
        gap: 3px !important;
        padding: 8px 10px !important;
        font-size: 0.7em !important;
        white-space: nowrap !important;
        border-left: none !important;
        border-bottom: 3px solid transparent !important;
        flex-shrink: 0;
    }

    .settings-nav-btn.active {
        border-left-color: transparent !important;
        border-bottom-color: #4fc3f7 !important;
    }

    .settings-nav-btn i {
        font-size: 1.1em !important;
    }

    .settings-body {
        border-radius: 0 0 12px 12px !important;
        padding: 20px 16px 16px !important;
        overflow-y: visible !important;
    }

    .settings-close {
        top: 10px !important;
        right: 12px !important;
    }

    .info-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .settings-panel h3 {
        font-size: 1em !important;
        padding-right: 24px; /* avoid close button overlap */
    }

    /* 2FA digit inputs */
    .stwofa-digit {
        width: 34px !important;
        height: 40px !important;
        font-size: 1.1em !important;
    }

    #stwofa-backup-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 360px) {
    .settings-nav-btn {
        padding: 6px 7px !important;
        font-size: 0.65em !important;
    }
}


/* ============================================================
   2FA CHALLENGE PAGE — MOBILE ADAPTATION
   ============================================================ */

/* Always constrain inputs to fit inside the card */
#code-inputs {
    flex-wrap: nowrap;
    overflow: visible;
    justify-content: center;
}

#code-inputs input {
    /* fluid width: shrinks from 46px down to fit 6 inputs + gaps */
    width: min(46px, calc((100vw - 80px) / 6 - 6px)) !important;
    height: min(54px, calc(((100vw - 80px) / 6 - 6px) * 1.15)) !important;
    font-size: clamp(1em, 4vw, 1.4em) !important;
    flex-shrink: 1;
}

@media (max-width: 480px) {

    .login-support-container {
        padding: 12px !important;
    }

    .login-box {
        padding: 24px 14px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    #code-inputs {
        gap: 5px !important;
    }
}

@media (max-width: 380px) {
    #code-inputs {
        gap: 4px !important;
    }

    #code-inputs input {
        width: min(38px, calc((100vw - 60px) / 6 - 4px)) !important;
        height: min(46px, calc(((100vw - 60px) / 6 - 4px) * 1.2)) !important;
    }
}


/* ============================================================
   2FA SETUP PAGE — MOBILE ADAPTATION
   ============================================================ */

@media (max-width: 480px) {

    /* Step indicators — compress */
    .step-circle {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.78em !important;
    }

    .step-lbl {
        font-size: 0.68em !important;
    }

    /* QR + secret: stack vertically */
    #p1 > div:first-child {
        flex-direction: column !important;
        align-items: center !important;
    }

    #p1 > div:first-child > div:first-child {
        width: 140px !important;
        height: 140px !important;
    }

    /* Confirm code inputs — fluid to fit container */
    #ci {
        gap: 5px !important;
        flex-wrap: nowrap;
        justify-content: center;
    }

    #ci input {
        width: min(44px, calc((100vw - 80px) / 6 - 5px)) !important;
        height: min(52px, calc(((100vw - 80px) / 6 - 5px) * 1.15)) !important;
        font-size: clamp(1em, 4vw, 1.4em) !important;
        flex-shrink: 1;
    }

    /* Backup codes grid: single column */
    #backup-grid {
        grid-template-columns: 1fr !important;
    }

    .login-box {
        padding: 20px 14px !important;
    }
}

@media (max-width: 360px) {
    #ci input,
    #code-inputs input {
        width: min(32px, calc((100vw - 48px) / 6 - 4px)) !important;
        height: min(40px, calc(((100vw - 48px) / 6 - 4px) * 1.2)) !important;
        font-size: clamp(0.9em, 3.5vw, 1em) !important;
    }
}