.account-switcher-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    z-index: 50;
}

.account-switcher-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.switcher-sub-label {
    font-size: 0.64rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-selector-dropdown {
    width: 100%;
    padding: 9px 10px;
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.account-selector-dropdown:hover {
    background: var(--surface-hover);
    border-color: #3e3b4f;
    transform: translateY(-1px);
}

.account-selector-dropdown.open {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-glow);
}

.account-selector-dropdown.switching {
    animation: accountSwitchPulse 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes accountSwitchPulse {
    0% { transform: scale(1); }
    30% { transform: scale(0.96); background: rgba(59, 130, 246, 0.2); }
    70% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.dropdown-acc-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1;
}

.dropdown-acc-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.80rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.account-selector-dropdown:hover .dropdown-acc-icon {
    background: var(--accent-primary);
    color: #ffffff;
}

.dropdown-acc-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.dropdown-acc-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.dropdown-acc-balance {
    font-size: 0.70rem;
    font-weight: 800;
    color: var(--success);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.dropdown-arrow-wrap {
    padding-left: 6px;
    color: var(--text-muted);
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-arrow {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-arrow.rotate {
    transform: rotate(180deg);
    color: var(--accent-light);
}

.accounts-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #171620;
    border: 1px solid var(--surface-border);
    border-radius: 9px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    z-index: 99;
    animation: dropdownPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownPop {
    from { opacity: 0; transform: translateY(-8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-menu-inner {
    display: flex;
    flex-direction: column;
    padding: 6px;
    gap: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-menu-inner::-webkit-scrollbar {
    width: 3px;
}

.dropdown-menu-inner::-webkit-scrollbar-thumb {
    background: var(--surface-border);
    border-radius: 2px;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.dropdown-menu-item:hover {
    background: var(--surface-hover);
    border-color: #3b384a;
    transform: translateX(2px);
}

.dropdown-menu-item.active {
    background: rgba(59, 130, 246, 0.14);
    border-color: var(--accent-primary);
}

.dropdown-menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--accent-primary);
    border-radius: 0 3px 3px 0;
}

.dropdown-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.dropdown-item-icon {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.70rem;
    flex-shrink: 0;
}

.dropdown-menu-item.active .dropdown-item-icon {
    background: var(--accent-primary);
    color: #ffffff;
}

.dropdown-item-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.dropdown-item-name {
    font-size: 0.70rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item-balance {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--success);
}

.dropdown-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-del-account-drop {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.64rem;
    cursor: pointer;
    transition: all 0.15s ease;
    opacity: 0.6;
}

.btn-del-account-drop:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.35);
    color: var(--danger);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 9, 14, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    border-radius: 14px;
    animation: fadeInTab 0.15s ease;
}

.modal-card {
    width: 390px;
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.account-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
}

.account-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    background: #0f1015;
    border: 1px solid #1f2330;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.16s ease;
    color: var(--text-muted);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.account-type-card i {
    font-size: 1.05rem;
    color: #2563eb;
    transition: all 0.16s ease;
}

.account-type-card .type-name {
    font-size: 0.68rem;
    font-weight: 700;
}

.account-type-card:hover {
    background: #141722;
    color: #ffffff;
    border-color: #2b3347;
    transform: translateY(-1px);
}

.account-type-card:hover i {
    color: #3b82f6;
}

.account-type-card.selected {
    background: #11141f;
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.25), inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.account-type-card.selected i {
    color: #60a5fa;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}

.account-type-card.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(1);
    border-color: rgba(255, 255, 255, 0.05);
}

.account-type-tag {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 6px;
}

.modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.modal-card h3 {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-card p {
    font-size: 0.70rem;
    color: var(--text-muted);
}

.modal-form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.modal-form-group label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
}

.modal-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.btn-modal {
    padding: 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
}

.btn-modal.cancel {
    background: var(--surface-hover);
    border: 1px solid var(--surface-border);
    color: var(--text-muted);
}

.btn-modal.cancel:hover {
    background: var(--surface-border);
    color: var(--text-main);
}

.btn-modal.confirm {
    background: var(--accent-primary);
    color: #ffffff;
}

.btn-modal.confirm:hover {
    background: var(--accent-secondary);
    box-shadow: 0 0 12px var(--accent-glow);
}

.form-card {
    background: #0f1015;
    border: 1px solid #1f2330;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.form-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.form-card-title i {
    color: var(--accent-light);
    font-size: 0.85rem;
}

.form-sub-desc {
    font-size: 0.70rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

.shared-add-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
}

.shared-add-row .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.shared-add-row .input-wrapper .custom-input {
    width: 100%;
    height: 42px;
    padding-right: 90px;
}

.shared-add-row .input-wrapper .btn-input-action {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
}

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    background: #0f1015;
    border: 1px solid #1f2330;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-action i {
    color: var(--accent-light);
    font-size: 0.82rem;
    transition: transform 0.2s ease;
}

.btn-primary-action:hover {
    background: #141722;
    border-color: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
}

.btn-primary-action:hover i {
    transform: scale(1.15);
}

.btn-primary-action:active {
    transform: translateY(0);
}

.shared-members-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.shared-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--surface-hover);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    transition: all 0.15s ease;
}

.shared-member-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shared-member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.shared-member-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.shared-member-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.shared-role-tag {
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shared-role-tag.owner {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.shared-role-tag.member {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-light);
}

.btn-remove-member {
    padding: 5px 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 6px;
    color: var(--danger);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.btn-remove-member:hover {
    background: var(--danger);
    color: #ffffff;
}

.val-copy-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-copy-small {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 6px;
    color: var(--accent-light);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.btn-copy-small:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-copy-small:active {
    transform: translateY(0);
}

.btn-copy-small.copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.btn-card-copy {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    color: #ffffff;
    font-size: 0.72rem;
    padding: 3px 7px;
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;
    transition: all 0.18s ease;
    backdrop-filter: blur(4px);
    outline: none;
}

.btn-card-copy:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.btn-card-copy.copied {
    background: rgba(16, 185, 129, 0.5);
    border-color: var(--success);
    color: #ffffff;
}

.btn-copy-micro {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.62rem;
    padding: 2px 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.15s ease;
    outline: none;
    margin-left: 6px;
}

.btn-copy-micro:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.btn-copy-micro.copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    color: var(--success);
}

#btn-order-pos-terminal {
    position: relative;
    overflow: hidden;
    background: #0f1015;
    border: 1px solid #1f2330;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

#btn-order-pos-terminal i {
    color: #2563eb;
    transition: all 0.22s ease;
}

#btn-order-pos-terminal::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.25), transparent);
    transform: skewX(-20deg);
    animation: orderBtnShimmer 3.5s infinite;
}

@keyframes orderBtnShimmer {
    0% { left: -120%; }
    40% { left: 140%; }
    100% { left: 140%; }
}

#btn-order-pos-terminal:hover {
    background: #141722;
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.3);
}

#btn-order-pos-terminal:hover i {
    color: #60a5fa;
    transform: scale(1.12);
}

#btn-order-pos-terminal:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.terminals-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.terminal-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #0f1015;
    border: 1px solid #1f2330;
    border-radius: 9px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    transition: all 0.16s ease;
}

.terminal-row-item:hover {
    background: #141722;
    border-color: #2b3347;
    transform: translateY(-1px);
}

.terminal-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.terminal-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.terminal-item-icon.frozen {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.terminal-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.terminal-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-serial {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.04em;
}

.terminal-status-badge {
    font-size: 0.58rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.terminal-status-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.terminal-status-badge.frozen {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.terminal-sub-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.terminal-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-term-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 0.70rem;
    font-weight: 700;
    cursor: pointer;
    background: #0f1015;
    border: 1px solid #1f2330;
    transition: all 0.16s ease;
    outline: none;
}

.btn-term-action.freeze {
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
}

.btn-term-action.freeze:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--warning);
    transform: translateY(-1px);
}

.btn-term-action.unlock {
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-term-action.unlock:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
    transform: translateY(-1px);
}

.btn-term-action.delete {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-term-action.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
    transform: translateY(-1px);
}

.atm-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    pointer-events: none;
    animation: atmOverlayFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes atmOverlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.atm-machine-bezel {
    width: 520px;
    background: linear-gradient(180deg, #2d333b 0%, #1f2329 25%, #15181c 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.95),
        0 10px 24px rgba(0, 0, 0, 0.7),
        inset 0 1px 2px rgba(255, 255, 255, 0.22),
        inset 0 -2px 6px rgba(0, 0, 0, 0.9);
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    user-select: none;
    box-sizing: border-box;
    pointer-events: auto;
    animation: atmBezelPop 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes atmBezelPop {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.atm-top-slot-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.atm-bezel-brand {
    font-size: 0.74rem;
    font-weight: 800;
    color: #e2e8f0;
    letter-spacing: 0.12em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.atm-bezel-brand i {
    color: #10b981;
    font-size: 0.85rem;
}

.atm-screen-frame {
    background: #090b0e;
    border: 2px solid #1c2027;
    border-radius: 12px;
    padding: 10px 8px;
    box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: stretch;
    gap: 10px;
    box-sizing: border-box;
}

.atm-screen-inner {
    flex: 1;
    min-width: 0;
    background: radial-gradient(circle at 50% 20%, #151a24 0%, #0d1017 65%, #080a0f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 250px;
    box-sizing: border-box;
    color: #f8fafc;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    pointer-events: none;
}

.atm-bezel-side-buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    padding: 70px 0 12px;
    box-sizing: border-box;
}

.atm-hardware-btn {
    width: 30px;
    height: 30px;
    background: linear-gradient(180deg, #323740 0%, #20242b 100%);
    border: 1px solid #3c434f;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.1s ease, border-color 0.1s ease, transform 0.08s ease;
    outline: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.atm-hardware-btn i {
    font-size: 0.68rem;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.1s ease, transform 0.08s ease;
}

.atm-hardware-btn:hover i {
    color: #f1f5f9;
}

.atm-hardware-btn.hw-cancel-btn i {
    color: #ef4444;
}

.atm-hardware-btn.hw-cancel-btn:hover i {
    color: #fca5a5;
}

.atm-hardware-btn.hw-ok-btn i {
    color: #10b981;
}

.atm-hardware-btn.hw-ok-btn:hover i {
    color: #6ee7b7;
}

.atm-hardware-btn:hover {
    background: linear-gradient(180deg, #3b424d 0%, #272c35 100%);
    border-color: #555f70;
}

.atm-bezel-side-buttons.right .atm-hardware-btn:hover {
    border-color: #555f70;
}

.atm-hardware-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.atm-hardware-btn.hw-cancel-btn {
    border-color: #4a2828;
    background: linear-gradient(180deg, #3a2222 0%, #251616 100%);
}

.atm-hardware-btn.hw-cancel-btn:hover {
    border-color: #733434;
    background: linear-gradient(180deg, #462828 0%, #2e1a1a 100%);
}

.atm-hardware-btn.hw-ok-btn {
    border-color: #244230;
    background: linear-gradient(180deg, #1f3628 0%, #14241b 100%);
}

.atm-hardware-btn.hw-ok-btn:hover {
    border-color: #316143;
    background: linear-gradient(180deg, #274533 0%, #1a2f22 100%);
}

.atm-screen-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.atm-screen-title {
    color: #cbd5e1;
}

.atm-screen-time {
    color: #38bdf8;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.atm-screen-view-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.atm-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    animation: atmViewFade 0.16s ease;
}

@keyframes atmViewFade {
    from {
        opacity: 0;
        transform: scale(0.99);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.atm-screen-welcome {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.04em;
    text-align: center;
}

.atm-screen-instruction {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    text-align: center;
    margin-top: 2px;
}

.atm-screen-card-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.06em;
    margin: 6px auto;
}

.atm-screen-card-box i {
    color: #10b981;
}

.atm-pin-screen-display {
    margin: 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.atm-pin-hidden-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.atm-pin-digits-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 18px;
    background: #0b0d12;
    border: 1px solid #1f2733;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.12s ease;
}

.atm-pin-digits-wrap:hover {
    border-color: #2e3b4e;
}

.atm-pin-digits-wrap.shake-error {
    animation: pinBoxShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    border-color: #ef4444 !important;
}

.atm-pin-digits-wrap.shake-error .atm-pin-slot {
    border-color: #ef4444 !important;
    background: #ef4444 !important;
}

@keyframes pinBoxShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(3px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
    40%, 60% { transform: translate3d(5px, 0, 0); }
}

.atm-pin-slot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s ease;
    box-sizing: border-box;
}

.atm-pin-slot.filled {
    background: #10b981;
    border-color: #10b981;
    box-shadow: none;
    transform: none;
}

.atm-pin-slot.active {
    border-color: #64748b;
    box-shadow: none;
}

.atm-screen-row-hints {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.atm-prompt-line {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.1s ease;
}

.atm-prompt-line.left {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.atm-prompt-line.left:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.35);
}

.atm-prompt-line.right {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.atm-prompt-line.right:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.35);
}

.atm-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px;
    background: #0f1217;
    border: 1px solid #1c222b;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.atm-menu-user {
    font-weight: 800;
    color: #ffffff;
}

.atm-menu-sub {
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.atm-side-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    flex: 1;
    min-height: 0;
}

.atm-side-options-grid.compact {
    gap: 6px 10px;
}

.atm-side-options-grid.bottom-only {
    align-content: flex-end;
    margin-top: auto;
}

.atm-side-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    height: 100%;
}

.atm-opt-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.02em;
    background: #11141a;
    border: 1px solid #1f2530;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: default;
    height: 30px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.atm-opt-item.empty {
    visibility: hidden;
    pointer-events: none;
}

.atm-side-col.left .atm-opt-item {
    justify-content: flex-start;
}

.atm-side-col.right .atm-opt-item {
    justify-content: flex-end;
    text-align: right;
}

.atm-opt-item i {
    display: none;
}

.atm-opt-item.cancel {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.atm-opt-item.cancel i {
    color: #ef4444;
}

.atm-opt-item.confirm {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.atm-opt-item.confirm i {
    color: #10b981;
}

.atm-balance-tag {
    font-size: 0.68rem;
    color: #94a3b8;
    text-align: center;
    font-weight: 600;
    margin: 2px 0 6px;
}

.atm-balance-tag strong {
    color: #34d399;
    font-weight: 800;
}

.atm-custom-amount-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.atm-amt-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
}

.atm-amt-input-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.atm-screen-input {
    width: 140px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    border: 1.5px solid #10b981;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
    padding: 0 24px 0 8px;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.atm-screen-input::-webkit-inner-spin-button,
.atm-screen-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.atm-cur {
    position: absolute;
    right: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #10b981;
    pointer-events: none;
}

.atm-balance-display-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 4px 6px 10px;
}

.atm-card-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    color: #94a3b8;
}

.atm-card-field .val {
    color: #ffffff;
    font-weight: 800;
}

.atm-card-field.balance-row {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
    margin-top: 2px;
}

.atm-card-field .val-big {
    font-size: 1.15rem;
    font-weight: 900;
    color: #34d399;
}

.atm-status-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto 0;
    gap: 8px;
}

.atm-status-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #e2e8f0;
}

.atm-status-icon.loading {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.atm-status-icon.loading i {
    animation: atmSpin 0.9s linear infinite;
}

@keyframes atmSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.atm-status-icon.success {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #10b981;
}

.atm-status-icon.error {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

.atm-status-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}

.atm-status-desc {
    font-size: 0.70rem;
    font-weight: 600;
    color: #94a3b8;
}

.atm-screen-progressbar-wrap {
    width: 220px;
    height: 6px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
    display: none;
}

.atm-screen-progressbar-wrap.active {
    display: block;
}

.atm-screen-progressbar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    border-radius: 999px;
    transition: width 0.1s linear;
}

.atm-keypad-tray {
    background: #0f1116;
    border: 1px solid #232832;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.75);
    margin: 0 auto;
    width: 260px;
    box-sizing: border-box;
}

.atm-keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.atm-keypad-spacer {
    height: 34px;
}

.atm-num-btn {
    height: 34px;
    background: linear-gradient(180deg, #2b313b 0%, #1e222a 100%);
    border: 1px solid #3c4452;
    border-radius: 6px;
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.12);
    transition: all 0.1s ease;
    user-select: none;
    outline: none;
}

.atm-num-btn:hover {
    background: linear-gradient(180deg, #373f4d 0%, #262b35 100%);
    border-color: #556073;
    color: #ffffff;
}

.atm-num-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}


